/* =========================================
   云隆恢复代码更新工具 - H5 页面样式
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
                 "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    background: #f2f3f7;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========== 顶部导航 ========== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.top-bar .icon-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #333;
}
.top-bar .title-wrap {
    flex: 1;
    text-align: center;
    line-height: 1.2;
}
.top-bar .title-wrap .t1 { font-size: 15px; font-weight: 600; color: #111; }
.top-bar .title-wrap .t2 {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ========== 主体容器 ========== */
.container {
    padding: 14px 12px 90px;
    max-width: 480px;
    margin: 0 auto;
}

/* ========== 卡片基础 ========== */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ========== 头部卡片 ========== */
.hero-card { text-align: center; padding: 28px 18px 24px; }
.hero-icon {
    width: 56px; height: 56px;
    background: #2ec36b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(46,195,107,0.3);
}
.hero-icon svg { width: 28px; height: 28px; fill: #fff; }
.hero-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.hero-subtitle { font-size: 13px; color: #888; margin-bottom: 14px; }
.hero-update {
    font-size: 13px; color: #555;
    display: inline-flex; align-items: center; gap: 6px;
    background: #fafafa;
    padding: 6px 14px;
    border-radius: 20px;
}
.hero-update .time { color: #e85a4f; font-weight: 600; }

/* ========== 地址卡片 ========== */
.addr-card { text-align: center; padding: 22px 18px; }
.addr-header {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; color: #555; font-size: 14px; margin-bottom: 14px;
}
.addr-header svg { width: 16px; height: 16px; fill: #555; }
.addr-value {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin: 4px 0 22px;
    word-break: break-all;
}
.copy-btn {
    width: 100%;
    background: #2ec36b;
    color: #fff;
    border-radius: 30px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(46,195,107,0.3);
    transition: transform 0.1s, background 0.2s;
}
.copy-btn:active { transform: scale(0.98); background: #27a85c; }
.copy-btn svg { width: 18px; height: 18px; fill: #fff; }
.copy-btn.copied { background: #6c757d; box-shadow: none; }

/* ========== 操作指引卡片 ========== */
.guide-card {
    background: #fff8e8;
    border-radius: 12px;
    padding: 16px 16px;
    margin-bottom: 14px;
    border: 1px solid #ffeabf;
}
.guide-title {
    display: flex; align-items: center; gap: 6px;
    color: #f39800; font-weight: 700; font-size: 14px;
    margin-bottom: 8px;
}
.guide-title svg { width: 16px; height: 16px; fill: #f39800; }
.guide-text {
    color: #555;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
}

/* ========== 演示图卡片 ========== */
.demo-card { padding: 18px 14px; }
.demo-title {
    text-align: center;
    font-size: 15px; font-weight: 600; color: #333;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.demo-title svg { width: 18px; height: 18px; fill: #333; }
.demo-image-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 100px;
    display: flex; align-items: center; justify-content: center;
}
.demo-image-wrap img { width: 100%; display: block; }
.demo-image-wrap .placeholder {
    color: #999; font-size: 13px; padding: 30px;
    text-align: center;
}

/* ========== 底部 tabbar ========== */
.tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 10px;
    border-top: 1px solid #f0f0f0;
    z-index: 5;
}
.tabbar .item {
    display: flex; flex-direction: column; align-items: center;
    color: #ff8aa3; font-size: 11px;
}
.tabbar .item svg { width: 22px; height: 22px; fill: #ff8aa3; margin-bottom: 2px; }

/* ========== 转发截图浮动按钮 ========== */
.fab-share {
    position: fixed;
    bottom: 70px; right: 14px;
    background: #fff;
    border-radius: 30px;
    padding: 8px 14px 8px 16px;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    font-size: 13px; color: #333; font-weight: 600;
    z-index: 6;
}
.fab-share svg { width: 16px; height: 16px; fill: #333; }

/* ========== 复制成功提示 ========== */
.toast {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.toast.show { opacity: 1; }

/* ========== 微信内引导弹窗 ========== */
.wx-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}
.wx-mask.show { display: block; }
.wx-guide {
    position: fixed;
    top: 0; right: 0;
    z-index: 9999;
    padding: 20px;
    color: #fff;
    text-align: right;
    display: none;
}
.wx-guide.show { display: block; }
.wx-guide .arrow {
    width: 80px; height: 80px;
    margin-left: auto;
    margin-bottom: 6px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><path d='M10 30 Q40 0 70 20' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round'/><polygon points='65,12 78,16 70,28' fill='%23fff'/></svg>") no-repeat center / contain;
    animation: bounce 1.4s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.wx-guide .tip {
    background: rgba(0,0,0,0.5);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== 响应式 ========== */
@media (min-width: 540px) {
    body { background: #ececec; }
    .container { padding: 24px 16px 90px; }
    .card { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
}
