/* 观局文化 · 会员中心 / 合伙人中心 样式
   配色沿用站点国风基线：米白底 + 深棕主色 + 金强调
   v2026-09-05i — 支付成功页定制 */
:root {
    --bg: #faf7f2;
    --card: #fff;
    --line: #ece3d6;
    --main: #8B5E34;
    --main-d: #6f4a28;
    --gold: #d9a441;
    --gold-bg: #fff8ec;
    --gold-line: #f0d9a8;
    --title: #5C3A1E;
    --sub: #9b8a72;
    --txt: #2c2c2c;
    --muted: #b3a48c;
    --seal: #b83e2f;
}
* { box-sizing: border-box; }
body.vip-body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 56px;
    color: var(--txt);
    line-height: 1.9;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}
.vip-body a { color: var(--main); text-decoration: none; }

/* ---------- 顶部栏 ---------- */
.vip-top {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    margin-bottom: 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.vip-brand { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; min-width: 0; }
.vip-brand .nm { font-size: 18px; font-weight: 700; color: var(--title); letter-spacing: 2px; white-space: nowrap; }
.vip-brand .sub { font-size: 12px; color: var(--sub); white-space: nowrap; }
.vip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 5px;
}
.vip-nav a {
    flex: 0 0 calc(25% - 4.5px);
    text-align: center;
    font-size: 13px;
    color: var(--sub);
    border-radius: 9px;
    padding: 9px 2px;
    background: transparent;
    white-space: nowrap;
    transition: .15s;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.vip-nav a.on { background: var(--seal); color: #fff; font-weight: 700; }

/* ---------- 顶部栏 手机端：品牌占整行、导航 4+4 两行等分 ---------- */
@media (max-width: 520px) {
    .vip-top {
        flex-wrap: wrap;
        gap: 8px;
    }
    .vip-brand {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    .vip-nav {
        flex: 1 1 100%;
        gap: 6px;
    }
    .vip-nav a {
        font-size: 12px;
        padding: 8px 2px;
    }
}

/* ---------- 通用块 ---------- */
.vip-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 20px;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px rgba(120, 90, 40, .06);
}
.vip-h1 { font-size: 22px; font-weight: 700; color: var(--title); margin: 0 0 6px; letter-spacing: 1px; }
.vip-lead { font-size: 14.5px; color: #6b6152; margin: 0; }
.vip-sec-title { font-size: 16px; font-weight: 700; color: var(--title); margin: 22px 0 12px; }
.vip-muted { color: var(--sub); font-size: 13px; }
.vip-center { text-align: center; }

/* ---------- 档位卡片 ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.plan {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 18px 16px;
    transition: border-color .2s, box-shadow .2s;
}
.plan.reco { border-color: var(--gold); box-shadow: 0 6px 20px rgba(217, 164, 65, .16); }
.plan-tag {
    position: absolute; top: -10px; right: 14px;
    background: var(--gold); color: #fff;
    font-size: 12px; padding: 2px 10px; border-radius: 10px; letter-spacing: 1px;
}
.plan-name { font-size: 17px; font-weight: 700; color: var(--title); }
.plan-price { margin: 6px 0 2px; }
.plan-price .cur { font-size: 15px; color: var(--main); }
.plan-price .num { font-size: 30px; font-weight: 700; color: var(--main); }
.plan-price .unit { font-size: 13px; color: var(--sub); margin-left: 4px; }
.plan-old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.plan-anchor { font-size: 14px; color: #b9aa95; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.plan-sub { font-size: 13px; color: var(--sub); }
.plan-quota { font-size: 14px; color: #5c5344; margin: 8px 0 4px; }
.plan-quota b { color: var(--main); }
.plan-list { list-style: none; padding: 0; margin: 10px 0 0; }
.plan-list li { font-size: 13.5px; color: #6b6152; padding-left: 18px; position: relative; line-height: 1.9; }
.plan-list li::before { content: "·"; position: absolute; left: 6px; color: var(--gold); font-weight: 700; }
.plan-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.vip-body .btn {
    display: inline-block; border: none; cursor: pointer;
    font-family: inherit; font-size: 15px; letter-spacing: 1px;
    padding: 11px 24px; border-radius: 26px;
    background: var(--main); color: #fff;
    transition: background .2s, opacity .2s;
    text-decoration: none;
}
.vip-body .btn:hover { background: var(--main-d); }
.vip-body .btn:disabled { opacity: .55; cursor: not-allowed; }
.vip-body .btn-gold { background: var(--gold); color: #fff; }
.vip-body .btn-gold:hover { background: #c2902f; }
.vip-body .btn-ghost { background: #fff; color: var(--main); border: 1px solid var(--line); }
.vip-body .btn-ghost:hover { background: #faf6f0; color: var(--main-d); }
.vip-body .btn-wx { background: #07c160; color: #fff; border: 1px solid #07c160; }
.vip-body .btn-wx:hover { background: #06ad56; }
.vip-body .ro-box { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f4ef; color: var(--main); font-weight: 600; }
.vip-body .muted { color: #9a8f80; font-weight: 400; font-size: 13px; }
.vip-body .btn-sm { font-size: 13px; padding: 7px 16px; }
.vip-body .btn-block { display: block; width: 100%; }

/* ---------- 配额条 ---------- */
.quota-bar { height: 8px; background: #f1ebe1; border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
.quota-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #c2902f); }
.quota-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); }

/* ---------- 键值表 ---------- */
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--sub); }
.kv .v { color: var(--txt); font-weight: 600; text-align: right; }

/* ---------- 数据格（合伙人仪表盘） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
    background: var(--gold-bg); border: 1px solid var(--gold-line);
    border-radius: 12px; padding: 14px 12px; text-align: center;
}
.stat .n { font-size: 22px; font-weight: 700; color: var(--main); line-height: 1.3; }
.stat .l { font-size: 12.5px; color: var(--sub); }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--sub); font-weight: 600; font-size: 12.5px; background: #fdfbf7; }
.tbl td { color: #5c5344; }
.tbl .r { text-align: right; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; color: #5c5344; margin-bottom: 6px; font-weight: 600; }
.field input[type=text], .field input[type=number], .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: 15px; color: var(--txt);
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #5c5344; }
.chk input { width: 16px; height: 16px; }
.agree { font-size: 13.5px; color: #5c5344; line-height: 1.85; margin: 12px 0; padding-left: 24px; position: relative; }
.agree input[type=checkbox] { position: absolute; left: 0; top: 5px; margin: 0; width: 16px; height: 16px; }
.agree label { display: block; cursor: pointer; }
.agree .doc-link { white-space: nowrap; }

/* ---------- 提示条 ---------- */
.note {
    background: var(--gold-bg); border: 1px solid var(--gold-line);
    border-left: 4px solid var(--gold);
    padding: 14px 16px; border-radius: 8px;
    font-size: 13.5px; color: #6b5836; margin: 14px 0;
}
.note b { color: #8a5a1c; }
.err { background: #fdf1f0; border: 1px solid #f3d2ce; border-left: 4px solid #c0564b; color: #8b4038; }
.ok { background: #f2f8f1; border: 1px solid #cfe3cc; border-left: 4px solid #5d8c55; color: #476b41; }

/* ---------- 高级合伙人到期续费提醒横幅 ---------- */
.renew-banner {
    background: linear-gradient(135deg, #fff7e6, #fdeccd);
    border: 1px solid #e6c477; border-left: 4px solid #d99a2b;
    border-radius: 10px; padding: 16px 18px; margin: 14px 0;
    box-shadow: 0 2px 10px rgba(217, 154, 43, .12);
}
.renew-banner .rb-title { font-size: 15px; font-weight: 700; color: #9a5f12; margin-bottom: 6px; }
.renew-banner .rb-body { font-size: 13.5px; line-height: 1.7; color: #6b5836; }
.renew-banner .rb-body b { color: #c0392b; font-size: 15px; }
.renew-banner .plan-actions { margin-top: 12px; }

/* ---------- 升级进度条（v2：累计消费满 ¥200 自动升高阶版） ---------- */
.prog-wrap { margin-top: 10px; }
.prog-bar {
    width: 100%; height: 10px; background: #f0e4cc;
    border: 1px solid #e6c477; border-radius: 6px; overflow: hidden;
}
.prog-bar .prog-inner {
    height: 100%; border-radius: 6px 0 0 6px;
    background: linear-gradient(90deg, #d99a2b, #c0392b);
    transition: width .4s ease;
}
.prog-txt { margin-top: 6px; font-size: 12.5px; color: #8a6a33; text-align: right; }

/* ---------- 免责 ---------- */
.disclaimer {
    background: var(--gold-bg);
    border: 1px solid var(--gold-line);
    border-left: 4px solid var(--gold);
    padding: 14px 16px; border-radius: 8px;
    font-size: 13px; color: #6b5836; line-height: 1.85; margin: 14px 0 0;
}
.disclaimer b { color: #8a5a1c; }

/* ---------- 页脚 ---------- */
.vip-footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 26px; line-height: 2; }
.vip-footer a { color: var(--muted); }

/* ---------- 支付弹窗 ---------- */
.pay-mask {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(40, 30, 18, .5);
    display: none; align-items: center; justify-content: center;
    padding: 18px;
}
.pay-mask.on { display: flex; }
.pay-box {
    position: relative;
    background: #fff; border-radius: 14px;
    width: 100%; max-width: 360px; padding: 22px 20px 20px;
    box-shadow: 0 18px 50px rgba(60, 40, 20, .3);
    text-align: center;
}
.pay-close {
    position: absolute; top: 8px; right: 12px;
    font-size: 22px; line-height: 1; color: var(--muted);
    background: none; border: none; cursor: pointer; font-family: inherit;
}
.pay-title { font-size: 17px; font-weight: 700; color: var(--title); margin-bottom: 4px; }
.pay-amt { font-size: 26px; font-weight: 700; color: var(--main); margin: 6px 0; }
.pay-amt .u { font-size: 13px; color: var(--sub); font-weight: 400; margin-left: 4px; }
.pay-amt .u.old { color: #b9aa95; text-decoration: line-through; margin-right: 4px; }
.pay-desc { font-size: 13.5px; color: #6b6152; margin-bottom: 12px; }
.pay-qr-wrap { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.pay-qr { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pay-qr-caption { font-size: 13px; color: var(--sub); }
.pay-tip { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.pay-note { font-size: 12px; color: #6b5836; background: var(--gold-bg); border: 1px solid var(--gold-line); border-radius: 8px; padding: 10px 12px; margin-top: 12px; text-align: left; line-height: 1.8; }

/* ---------- 视图切换 ---------- */
.view { display: none; }
.view.on { display: block; }

/* ---------- 二维码（合伙人推广） ---------- */
.qr-frame { display: inline-block; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr-frame img { width: 168px; height: 168px; display: block; }
.link-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.link-row input {
    flex: 1 1 200px; min-width: 0; font-size: 13px; font-family: inherit;
    padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fdfbf7; color: #5c5344;
}

/* ---------- 协议 / 说明类正文 ---------- */
.doc-body { font-size: 14.5px; color: #5c5344; line-height: 1.95; }
.doc-body p { margin: 0 0 10px; }
.doc-body ul { margin: 0 0 12px; }
.doc-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.doc-links { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc-links a { display: inline-block; margin: 0 14px 6px 0; font-size: 13.5px; }
.doc-toc { background: #fdfbf7; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.doc-toc a { display: inline-block; margin: 0 12px 4px 0; font-size: 13.5px; }
.doc-link { color: #b07d2b; text-decoration: underline; cursor: pointer; font-weight: 600; }
.doc-link:hover { color: #8a601f; }

/* ---------- 窄屏适配 ---------- */
@media (max-width: 420px) {
    body.vip-body { padding: 0 12px 44px; }
    .vip-card { padding: 18px 15px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .chk-grid { grid-template-columns: 1fr; }
    .plan-price .num { font-size: 26px; }
}

/* ============ 支付成功页 ============ */
.vip-success-card { padding: 36px 24px 28px; }
.vip-success-emoji {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c79137, #8B5E34);
    color: #fff;
    font-size: 40px; font-weight: 700;
    line-height: 72px;
    margin: 0 auto 16px;
    box-shadow: 0 6px 18px rgba(184, 134, 56, 0.25);
}
.vip-success-info {
    text-align: left;
    margin: 22px auto 0;
    max-width: 360px;
    padding-top: 18px;
    border-top: 1px dashed #e0d4be;
}
.vip-success-info .kv { padding: 8px 0; border-bottom: 1px dotted #efe5d0; }
.vip-success-info .kv:last-child { border-bottom: none; }
