/* ==========================================================================
   Gailuopu 天赋测评系统 —— 前台样式
   ---------------------------------------------------------------------------
   视觉基线（V1.4.0「紫金」）：紫罗兰 + 咖啡色 + 金黄 / 方正几何 / 细线分区 / 大留白
   设计令牌集中在 :root，改主题只改这里；页面样式一律引用变量，不写死色值。

   三色分工（全站唯一的配色口径，不要再引入其它色相）：
     · 紫  —— 品牌主色（首屏色带、按钮、链接、标题装饰）
     · 咖啡 —— 沉稳锚色（深色 CTA 带、页脚、暖中性底与次级版面）
     · 金  —— 强调色（kicker、序号、细线、价格、高亮点缀，用量 ≤5%）
   ========================================================================== */

:root {
    /* —— 品牌主色：紫罗兰（尊贵、理性、克制） —— */
    --c-primary: #4A2570;
    --c-primary-dark: #2B1245;
    --c-primary-mid: #6B3FA0;
    --c-primary-light: #F5F0FA;

    /* —— 咖啡色：沉稳锚色（深色带 / 页脚 / 暖中性） —— */
    --c-coffee: #4A392C;
    --c-coffee-dark: #2A1F17;
    --c-coffee-mid: #6E5544;
    --c-coffee-light: #F7F2EC;

    /* —— 强调色：金黄（高端点缀，全站总用量不超过 5%） —— */
    --c-accent: #8F6D18;
    --c-accent-light: #FBF3DD;
    --c-accent-bright: #D4AF37;   /* 深底上的亮金（对比度 ≥7:1） */

    --c-success: #1F6B4E;
    --c-success-light: #EDF6F1;
    --c-danger: #9B2C2C;
    --c-danger-light: #FBF1F1;
    --c-warning: #8A6A2F;
    --c-warning-light: #FAF6EC;

    /* —— 中性色阶：微暖、低饱和，作为紫与咖啡之间的过渡 —— */
    --c-text: #1F1826;
    --c-text-2: #463D52;
    --c-text-3: #6B6474;
    --c-text-4: #9A93A3;
    --c-border: #E6E0EA;
    --c-border-2: #D3CAD9;
    --c-bg: #FCFBFD;
    --c-surface: #FFFFFF;
    --c-surface-2: #F6F3F8;

    /* —— 几何：方正克制，几乎不用胶囊 —— */
    --radius-sm: 2px;
    --radius: 3px;
    --radius-lg: 4px;

    /* —— 阴影：纸感极轻，分区主要靠 hairline 而不是投影 —— */
    --shadow-sm: 0 1px 2px rgba(43, 25, 60, .05);
    --shadow: 0 2px 10px rgba(43, 25, 60, .06);
    --shadow-lg: 0 14px 40px rgba(43, 25, 60, .10);

    /* —— 留白节奏（8pt 栅格） —— */
    --gap-1: 8px;
    --gap-2: 16px;
    --gap-3: 24px;
    --gap-4: 32px;
    --gap-5: 48px;
    --section-y: 72px;

    --max-w: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    /* 展示层字体：仅用于拉丁文序号 / 大数字 / 品牌字标，正文仍走无衬线黑体 */
    --font-display: Georgia, "Times New Roman", "Songti SC", "Source Han Serif SC", serif;
}

* { box-sizing: border-box; }

/* 防止手机上「整页可往左拖」：在 html 层裁掉横向溢出。
   用 clip（不创建滚动容器，不影响 sticky 顶栏）；不支持的旧浏览器自动回退 hidden。 */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题层：重字重 + 负字距 = 印刷品式的紧凑感；大标题行高收窄以免"散" */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 32px; letter-spacing: -.025em; }
h2 { font-size: 23px; }
h3 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-mid); }
img { max-width: 100%; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 480px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 咨询级排版元件 ---------------- */

/* Kicker：大写拉丁字母 + 宽字距 + 前置细线，咨询机构的标志性标记 */
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--c-accent);
}
.kicker::before {
    content: ""; width: 24px; height: 1px; background: currentColor; flex: 0 0 auto;
}
.kicker.no-rule::before { display: none; }
.kicker-plain { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent); }

/* 细横线：区块内分隔 */
.rule { height: 1px; background: var(--c-border); border: 0; margin: var(--gap-3) 0; }
.rule-strong { height: 2px; background: var(--c-primary); width: 48px; border: 0; margin: 0 0 var(--gap-2); }

/* 小节标题：左侧细竖线 + 标题，替代 emoji 图标 */
.section-title {
    position: relative; padding-left: 14px; margin-bottom: 6px;
    font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--c-text);
}
.section-title::before {
    content: ""; position: absolute; left: 0; top: .28em;
    width: 3px; height: 1.05em; background: var(--c-primary);
}
.section-sub { font-size: 14px; color: var(--c-text-3); margin: 0 0 var(--gap-3); padding-left: 14px; }

/* 拉丁序号：01 / 02 / 03 */
.serial {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700; letter-spacing: .1em;
    color: var(--c-accent); font-variant-numeric: tabular-nums;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.site-header .bar {
    max-width: var(--max-w); margin: 0 auto; padding: 16px 20px;
    display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; color: var(--c-text); }
.logo .mark {
    width: 30px; height: 30px; border-radius: var(--radius-sm); display: grid; place-items: center;
    background: var(--c-primary); color: #fff; font-size: 15px; font-weight: 800;
    font-family: var(--font-display); letter-spacing: 0;
}
/* 自定义 Logo：logo-mark.png（只换左侧图标）/ logo-full.png（整块换成图片）
   尺寸统一由这里收口——图片原始尺寸多大都不影响版面：
   高度固定 34px、宽度封顶 200px，两者同时生效时用 object-fit 等比缩放，
   既不会把导航挤走，也不会被拉伸 / 压扁变形。 */
.logo .mark-img {
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    object-fit: contain; display: block; flex: 0 0 auto;
}
.logo.logo-image { flex: 0 1 auto; min-width: 0; }
.logo.logo-image img {
    display: block;
    height: 34px;            /* 基准高度：图片再大/再小都按这个高度展示 */
    width: auto;             /* 宽度按原图比例自动算 */
    max-height: 34px;        /* 双保险，防止被其它规则放大 */
    max-width: 200px;        /* 超宽横幅式 Logo 的宽度上限 */
    object-fit: contain;     /* 极端宽高比时等比缩放居中，绝不拉伸变形 */
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
/* 机构式导航：不用灰底块，用细下划线标示当前位置与悬停态 */
.nav a.nav-link {
    position: relative;
    padding: 8px 12px; border-radius: 0;
    color: var(--c-text-3); font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
}
.nav a.nav-link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 1.5px;
    background: var(--c-primary);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a.nav-link:hover { background: transparent; color: var(--c-primary); }
.nav a.nav-link:hover::after,
.nav a.nav-link.active::after { transform: scaleX(1); }
.nav a.nav-link.active { color: var(--c-primary); font-weight: 700; }
.nav .balance-chip {
    padding: 5px 11px; border-radius: var(--radius-sm);
    background: var(--c-accent-light); border: 1px solid rgba(143, 109, 24, .30);
    color: #6B4F12; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
    letter-spacing: .02em;
    background: var(--c-surface-2); color: var(--c-text-2);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    text-decoration: none; line-height: 1.4;
}
.btn:hover { background: #F1ECF5; color: var(--c-text); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: #74581A; color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { background: #17573F; color: #fff; }
.btn-outline { background: transparent; border-color: var(--c-border-2); color: var(--c-text-2); }
.btn-outline:hover { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost { background: transparent; color: var(--c-text-3); }
.btn-lg { padding: 15px 32px; font-size: 15.5px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
/* 深色底（hero 区）上的按钮：白描边版，不要 v1.2 时代的"白底白字" */
.btn-on-dark { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-on-dark:hover { background: rgba(255, 255, 255, .88); color: var(--c-primary-dark); }
.btn-ghost-on-dark { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-on-dark:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .85); color: #fff; }

/* ---------------- 卡片 ---------------- */
.card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 3px rgba(43, 25, 60, .05);
}
.card + .card { margin-top: 24px; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text-2); margin-bottom: 7px; letter-spacing: .01em; }
.form-control {
    width: 100%; padding: 11px 13px; border: 1px solid var(--c-border-2); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; color: var(--c-text); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(74, 37, 112, .12); }
.form-hint { font-size: 12.5px; color: var(--c-text-4); margin-top: 6px; }

/* ---------------- 提示条 ---------------- */
.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.alert-error { background: var(--c-danger-light); color: #7F2323; border-color: #EDD0D0; }
.alert-success { background: var(--c-success-light); color: #155440; border-color: #C4DFD4; }
.alert-info { background: var(--c-primary-light); color: var(--c-primary); border-color: #D9CDE7; }
.alert-warning { background: var(--c-warning-light); color: #6E5426; border-color: #E8DCC0; }

/* ---------------- 首屏 ---------------- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 0; border-radius: 0; background: transparent;
    color: var(--c-accent);
    font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    margin-bottom: 22px;
}
.hero .eyebrow::before,
.hero .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.hero h1 { font-size: 42px; line-height: 1.22; letter-spacing: -.03em; margin-bottom: 18px; }
.hero .lead { font-size: 17px; line-height: 1.85; color: var(--c-text-3); max-width: 660px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 44px; display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; color: var(--c-text-3); font-size: 13px; }
.hero .meta b {
    display: block; font-size: 27px; line-height: 1.3; color: var(--c-primary);
    font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 40px 0; }
.feature { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 22px; margin-bottom: 10px; }
.feature h3 { font-size: 15.5px; margin-bottom: 7px; }
.feature p { font-size: 13.5px; color: var(--c-text-3); margin: 0; line-height: 1.75; }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 32px 0; }
.price-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px; text-align: center; }
.price-card.highlight { border: 2px solid var(--c-primary); box-shadow: var(--shadow); position: relative; }
.price-card .tag {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 14px; border-radius: var(--radius-sm); white-space: nowrap;
}
.price-card .amount {
    font-size: 42px; font-weight: 700; color: var(--c-primary); line-height: 1.1;
    letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.price-card .amount small { font-size: 15px; font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; text-align: left; }
.price-card li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--c-text-2); line-height: 1.7; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--c-success); font-weight: 700; }

/* ---------------- 答题页 ---------------- */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 36px 20px 80px; }
.quiz-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.quiz-counter { font-size: 13px; color: var(--c-text-3); font-weight: 600; letter-spacing: .04em; }
.quiz-counter b { color: var(--c-primary); font-size: 19px; font-variant-numeric: tabular-nums; }
.progress { height: 3px; background: var(--c-border); border-radius: 0; overflow: hidden; margin-bottom: 28px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--c-primary); transition: width .3s ease; }

.question-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.question-dim { font-size: 11.5px; color: var(--c-accent); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.question-text { font-size: 21px; font-weight: 700; line-height: 1.5; letter-spacing: -.015em; margin-bottom: 28px; }
.options { display: grid; gap: 10px; }
.option {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    border: 1px solid var(--c-border); border-left: 3px solid transparent;
    border-radius: var(--radius-sm); background: #fff;
    cursor: pointer; transition: border-color .15s, background-color .15s; text-align: left;
    font-family: inherit; font-size: 15.5px; color: var(--c-text);
}
.option:hover { border-color: var(--c-border-2); border-left-color: var(--c-primary-mid); background: #FAFBFC; }
.option.selected { border-color: var(--c-primary); border-left-color: var(--c-primary); background: var(--c-primary-light); }
.option .key {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center;
    background: var(--c-surface-2); color: var(--c-text-3); font-weight: 700; font-size: 13.5px;
    font-family: var(--font-display);
}
.option.selected .key { background: var(--c-primary); color: #fff; }
.quiz-nav { display: flex; gap: 12px; margin-top: 26px; }
.quiz-nav .btn { flex: 1; }

.answer-map { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.answer-map button {
    width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--c-border);
    background: #fff; font-size: 13px; font-family: inherit; cursor: pointer; color: var(--c-text-3);
    font-variant-numeric: tabular-nums;
}
.answer-map button.done { background: var(--c-primary-light); border-color: #D9CDE7; color: var(--c-primary); font-weight: 700; }
.answer-map button.current { outline: 2px solid var(--c-primary); outline-offset: 1px; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(30, 16, 44, .62); z-index: 100;
    display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 460px;
    padding: 32px; box-shadow: var(--shadow-lg); margin: auto;
}
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal .sub { color: var(--c-text-3); font-size: 14px; margin-bottom: 22px; }
.pay-choice { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-option {
    display: flex; align-items: center; gap: 13px; padding: 15px;
    border: 1px solid var(--c-border); border-left: 3px solid transparent;
    border-radius: var(--radius-sm); background: #fff; cursor: pointer; text-align: left;
    font-family: inherit; transition: border-color .15s, background-color .15s;
}
.pay-option:hover { border-color: var(--c-border-2); border-left-color: var(--c-primary-mid); }
.pay-option.selected { border-color: var(--c-primary); border-left-color: var(--c-primary); background: var(--c-primary-light); }
.pay-option .pico { width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 18px; }
.pay-option .pico.wechat { background: #E8F8EE; }
.pay-option .pico.alipay { background: #E8F1FE; }
.pay-option .pico.balance { background: var(--c-accent-light); }
.pay-option .pico.paypal { background: var(--c-primary-light); font-size: 15px; font-weight: 700; color: var(--c-primary); }
.pay-option .pinfo { flex: 1; }
.pay-option .pinfo b { display: block; font-size: 15px; }
.pay-option .pinfo span { font-size: 12.5px; color: var(--c-text-3); }
.pay-option .pprice { font-weight: 800; color: var(--c-danger); font-size: 16px; }
.pay-option .pprice.free { color: var(--c-success); }

.qr-box { text-align: center; padding: 18px 0; }
.qr-box #qrcode { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.qr-box .tip { margin-top: 14px; font-size: 13.5px; color: var(--c-text-3); }
.qty-hint { font-size: 12.5px; color: var(--c-text-4); margin-top: 12px; text-align: center; word-break: break-all; }

/* ---------------- 报告页 ---------------- */
.report-head { text-align: center; padding: 40px 0 28px; }
.report-head .badge {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-sm);
    background: var(--c-accent-light); border: 1px solid rgba(143, 109, 24, .30);
    color: #6B4F12; font-size: 11.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.report-head h1 { font-size: 32px; letter-spacing: -.025em; margin-bottom: 10px; }
.report-head .meta { color: var(--c-text-3); font-size: 13.5px; }

.dim-list { display: grid; gap: 12px; }
.dim-row { display: flex; align-items: center; gap: 13px; }
.dim-row .name { flex: 0 0 88px; font-size: 14px; font-weight: 600; color: var(--c-text-2); }
.dim-row .bar { flex: 1; height: 8px; background: var(--c-surface-2); border-radius: 0; overflow: hidden; }
.dim-row .bar > i { display: block; height: 100%; border-radius: 0; background: var(--c-primary); transition: width .8s ease; }
.dim-row .bar > i.tier-high { background: #1F6B4E; }
.dim-row .bar > i.tier-mid { background: var(--c-primary-mid); }
.dim-row .bar > i.tier-low { background: var(--c-accent); }
.dim-row .score { flex: 0 0 52px; text-align: right; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }

.tier-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-text-3); margin-top: 14px; }
.tier-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

.strength-card {
    border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary);
    border-radius: var(--radius); padding: 18px; background: #fff;
}
.strength-card + .strength-card { margin-top: 14px; }
.strength-card.rank-1 { border-left-color: #D4AF37; }
.strength-card.rank-2 { border-left-color: #6B3FA0; }
.strength-card.rank-3 { border-left-color: #6E5544; }
.strength-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.strength-card .head b { font-size: 16.5px; }
.strength-card .head .sc { font-weight: 800; font-size: 17px; color: var(--c-primary); }
.strength-card .field { margin-bottom: 9px; font-size: 14.5px; color: var(--c-text-2); }
.strength-card .field:last-child { margin-bottom: 0; }
.strength-card .field em { font-style: normal; font-weight: 700; color: var(--c-text); }

.weak-card { border: 1px solid var(--c-border); border-left: 4px solid var(--c-warning); border-radius: var(--radius); padding: 18px; background: #fff; }
.weak-card + .weak-card { margin-top: 14px; }

.career-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.career-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; }
.career-item .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.career-item .top b { font-size: 15.5px; }
.fit-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-sm); letter-spacing: .04em; }
.fit-high { background: var(--c-success-light); color: #155440; }
.fit-mid { background: var(--c-primary-light); color: var(--c-primary); }
.career-item p { font-size: 13.5px; color: var(--c-text-2); margin: 0 0 8px; }
.career-item .path { font-size: 13px; color: var(--c-text-3); padding-top: 8px; border-top: 1px dashed var(--c-border); }

.plan-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--c-border); }
.plan-item:last-child { border-bottom: 0; }
.plan-item .phase { flex: 0 0 130px; font-weight: 700; font-size: 14.5px; color: var(--c-primary-dark); }
.plan-item .body b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.plan-item .body ul { margin: 0; padding-left: 18px; }
.plan-item .body li { font-size: 14px; color: var(--c-text-2); margin-bottom: 4px; }

.ai-label {
    display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--c-surface-2); border: 1px solid var(--c-border); font-size: 13px; color: var(--c-text-3);
    margin-top: 22px;
}
.ai-label .tag { flex: 0 0 auto; font-weight: 700; color: var(--c-text-2); }
.ai-label-top { margin-top: 0; margin-bottom: 18px; }

.disclaimer { font-size: 12.5px; color: var(--c-text-4); padding: 14px 0; border-top: 1px solid var(--c-border); margin-top: 12px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    border-top: 1px solid rgba(143, 109, 24, .38); background: var(--c-coffee-light); margin-top: 88px;
    padding: 44px 0; text-align: center; color: var(--c-text-4); font-size: 12.5px;
}
/* 页脚品牌行：机构署名感（咖啡色标题 + 金色细线） */
.site-footer .foot-brand { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--c-coffee); }
.site-footer .foot-brand span { color: var(--c-coffee-mid); font-weight: 600; }
.site-footer .foot-contact {
    display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
    margin-top: 8px; color: var(--c-text-2); font-size: 13.5px;
}
.site-footer .foot-contact b { color: var(--c-coffee); font-weight: 700; letter-spacing: .01em; }
.site-footer .foot-contact b a { color: inherit; }
.site-footer .foot-contact b a:hover { color: var(--c-primary); }
.site-footer a { color: var(--c-text-3); }
.site-footer a:hover { color: var(--c-primary); }
.site-footer .links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer .beian { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.site-footer .beian a { display: inline-flex; align-items: center; gap: 5px; }
.site-footer .beian .beian-ico { height: 16px; width: auto; display: block; }

/* ---------------- 工具类 ---------------- */
.text-center { text-align: center; }
.text-muted { color: var(--c-text-3); }
.text-sm { font-size: 13.5px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 16px; } .flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.badge-status { font-size: 11.5px; padding: 3px 9px; border-radius: var(--radius-sm); font-weight: 700; letter-spacing: .04em; }
.badge-green { background: var(--c-success-light); color: #155440; }
.badge-gray { background: var(--c-surface-2); color: var(--c-text-3); }
.badge-amber { background: var(--c-accent-light); color: #6B4F12; }
.badge-red { background: var(--c-danger-light); color: #7F2323; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-border); }
table.data th { background: var(--c-surface-2); font-weight: 600; font-size: 13px; color: var(--c-text-2); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   响应式（移动优先断点体系：手机 420 / 手机横屏 720 / 平板 1024）
   设计基线：>=1024 桌面三列，768~1023 平板两列，<768 单列堆叠
   ========================================================================== */

/* ---------------- 移动端导航（汉堡 + 右侧抽屉） ---------------- */
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--c-border-2); border-radius: 11px;
    background: #fff; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
    display: block; width: 18px; height: 2px; border-radius: 2px;
    background: var(--c-text-2);
    transition: transform .22s ease, opacity .18s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    position: fixed; inset: 0; z-index: 49;
    background: rgba(30, 16, 44, .45);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}

/* ---------------- 表格：窄屏横向滚动容器 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table.data { min-width: 560px; }

/* 刘海屏 / 手势条安全区（仅在支持 env() 的浏览器生效） */
@supports (padding: max(0px)) {
    .site-header .bar,
    .container,
    .container-narrow,
    .quiz-wrap {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* ---------------- 平板（<=1024） ---------------- */
@media (max-width: 1024px) {
    :root { --max-w: 100%; }
    .hero { padding: 56px 0 44px; }
    .hero h1 { font-size: 36px; }
    .price-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

/* ---------------- 导航折叠（<=860） ---------------- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    /* 第二层保险（第一层在下面 .nav 的收起态：彻底不产生溢出）。
       顶栏的 backdrop-filter 会成为 fixed 后代的包含块，这里再横向裁一次；
       抽屉展开时 body.nav-open 会关掉 backdrop-filter，抽屉回到以视口定位，
       不受这条裁剪影响，滑入动画照常。 */
    .site-header { overflow-x: hidden; overflow-x: clip; }

    /* backdrop-filter 会让 fixed 定位以 header 为包含块，抽屉展开时须关闭 */
    body.nav-open .site-header {
        backdrop-filter: none; -webkit-backdrop-filter: none;
    }

    .nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(84vw, 320px);
        z-index: 60; margin: 0;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
        background: #fff;
        border-left: 1px solid var(--c-border);
        box-shadow: var(--shadow-lg);
        display: flex; flex-direction: column; align-items: stretch; gap: 6px;
        /* V1.1.5e：收起时不再把抽屉移出屏幕。
           旧写法 translateX(105%) 会把抽屉推到视口右缘外约 340px，靠「顶栏 backdrop-filter
           建立包含块 + 顶栏 overflow 裁剪」才勉强裁掉；一旦手机缓存了旧样式、或浏览器不支持
           overflow-x: clip，这段溢出就会把整页撑宽（就是「能往左拖」）。
           现在改成：仍留在视口内 + 透明 + 不可见 + 不可点 —— 几何上零溢出，
           与包含块、裁剪支持与否都无关（负向 14px 做滑入，方向安全，不会超出屏幕）。 */
        transform: translateX(-14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .26s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, visibility .26s;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    body.nav-open .nav { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }

    .nav a.nav-link {
        display: flex; align-items: center;
        min-height: 46px; padding: 12px 12px;
        font-size: 15.5px; border-radius: var(--radius);
    }
    .nav .balance-chip { align-self: flex-start; margin: 4px 0; font-size: 14px; padding: 8px 14px; }
    .nav .nav-cta { margin-top: 8px; width: 100%; min-height: 46px; font-size: 15px; }
    .logo .logo-text { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .logo.logo-image img { height: 30px; max-height: 30px; max-width: 180px; }
}

/* ---------------- 手机（<=720） ---------------- */
@media (max-width: 720px) {
    h1 { font-size: 24px; }
    .logo.logo-image img { height: 28px; max-height: 28px; max-width: 150px; }
    h2 { font-size: 19px; }
    h3 { font-size: 16px; }
    .hero { padding: 40px 0 32px; }
    .hero h1 { font-size: 28px; }
    .hero .lead { font-size: 15.5px; }
    .hero .actions { flex-direction: column; }
    .hero .actions .btn { width: 100%; }
    .hero .meta { gap: 22px; margin-top: 32px; }
    .hero .meta b { font-size: 22px; }
    .card { padding: 22px; border-radius: var(--radius); }
    .card + .card { margin-top: 14px; }
    .modal { padding: 22px; max-width: 100%; border-radius: var(--radius); }
    .modal-mask { padding: 12px; }
    .question-card { padding: 22px; border-radius: var(--radius); }
    .question-text { font-size: 18px; }
    .option { padding: 14px; font-size: 15px; min-height: 52px; }
    .quiz-wrap { padding-bottom: 96px; }
    .quiz-nav { position: sticky; bottom: 0; background: var(--c-bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
    .plan-item { flex-direction: column; gap: 6px; }
    .plan-item .phase { flex: none; }
    .dim-row { gap: 10px; }
    .dim-row .name { flex: 0 0 72px; font-size: 13px; }
    .dim-row .score { flex: 0 0 46px; font-size: 13.5px; }
    .report-head { padding: 20px 0 16px; }
    .report-head h1 { font-size: 24px; }
    .price-card { padding: 22px; }
    .price-card .amount { font-size: 34px; }
    .strength-card .head { flex-wrap: wrap; }
    .career-grid, .feature-grid { grid-template-columns: 1fr; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
    .legal { font-size: 14px; }
    .legal table { font-size: 12.5px; }
    .legal th, .legal td { padding: 7px 8px; }
    .site-footer { margin-top: 40px; }
}

/* ---------------- 小屏手机（<=420） ---------------- */
@media (max-width: 420px) {
    .container, .container-narrow { padding: 0 14px; }
    .site-header .bar { padding: 10px 14px; gap: 10px; }
    .hero h1 { font-size: 24px; }
    .question-text { font-size: 17px; }
    .card { padding: 18px; }
    .question-card { padding: 18px; }
    .dim-row { gap: 8px; }
    .dim-row .name { flex: 0 0 62px; font-size: 12.5px; }
    .answer-map button { width: 30px; height: 30px; font-size: 12px; }
    .nav { width: 88vw; }
    .logo .logo-text { max-width: 44vw; font-size: 15px; }
    .logo .mark-img { width: 26px; height: 26px; }
    .logo.logo-image img { height: 26px; max-height: 26px; max-width: 120px; }
}

/* ---------------- 协议 / 政策页 ---------------- */
.legal { font-size: 14.5px; line-height: 1.9; color: var(--c-text-2); }
.legal h2 { font-size: 16px; margin: 26px 0 10px; color: var(--c-text); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 14.5px; margin: 18px 0 8px; color: var(--c-text); }
.legal p { margin: 0 0 10px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .legal-meta {
    font-size: 13px; color: var(--c-text-4);
    padding-bottom: 14px; border-bottom: 1px solid var(--c-border); margin-bottom: 22px;
}
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 13.5px; }
.legal th, .legal td { border: 1px solid var(--c-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--c-surface-2); font-weight: 600; color: var(--c-text); }
.legal .legal-note {
    background: var(--c-warning-light); border: 1px solid #FDE68A; border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 13.5px; color: #92400E; margin: 0 0 18px;
}

/* ---------------- 商标证书展示（/trademark.php） ---------------- */
.cert-info { margin: 0 0 16px; }
.cert-empty {
    background: var(--c-primary-light); border: 1px dashed var(--c-primary);
    border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--c-text-2);
}
.cert-empty code {
    background: #fff; border: 1px solid var(--c-border); border-radius: 4px;
    padding: 1px 5px; font-size: 12.5px; color: var(--c-primary-dark);
}
.cert-grid {
    display: grid; gap: 14px; margin-top: 18px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cert-item {
    margin: 0; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.cert-thumb {
    display: block; width: 100%; padding: 0; border: 0; background: var(--c-surface-2);
    cursor: zoom-in; line-height: 0;
}
.cert-thumb img {
    width: 100%; height: 300px; object-fit: contain; display: block; background: var(--c-surface-2);
}
.cert-thumb:hover img { opacity: .92; }
.cert-cap {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 12px; font-size: 13.5px; color: var(--c-text); border-top: 1px solid var(--c-border);
}
.cert-note { margin-top: 14px; }
.cert-lb {
    position: fixed; inset: 0; z-index: 90; background: rgba(24, 12, 36, .93);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px;
}
.cert-lb[hidden] { display: none; }
.cert-lb-bar {
    width: 100%; max-width: 1100px; color: #fff; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; padding: 6px 4px 10px; font-size: 14px;
}
.cert-lb-bar button {
    background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff;
    font-size: 20px; line-height: 1; width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
}
.cert-lb img {
    max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain;
    background: #fff; border-radius: var(--radius-sm);
}
@media (max-width: 720px) {
    .cert-grid { grid-template-columns: 1fr; gap: 12px; }
    .cert-thumb img { height: auto; max-height: 64vh; }
}

/* ---------------- 回到顶部（V1.5.0） ---------------- */
.back-top {
    position: fixed; right: 22px; bottom: 30px; z-index: 80;
    width: 42px; height: 42px; border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .16);
    background: var(--c-primary); color: #fff; cursor: pointer;
    display: grid; place-items: center;
    box-shadow: 0 8px 22px rgba(43, 18, 69, .35);
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.back-top:hover { background: var(--c-primary-dark); transform: translateY(-2px); }
.back-top:active { transform: translateY(0); }
.back-top[hidden] { display: none; }
@media (max-width: 720px) {
    .back-top { right: 14px; bottom: 20px; width: 40px; height: 40px; }
}

/* ---------------- 资讯栏目（V1.5.0） ---------------- */
.news-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.news-cat {
    padding: 7px 16px; border: 1px solid var(--c-border-2); border-radius: var(--radius-sm);
    font-size: 13.5px; color: var(--c-text-2); background: var(--c-surface);
}
.news-cat:hover { border-color: var(--c-primary); color: var(--c-primary); }
.news-cat.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }

.news-list { display: grid; }
.news-item {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px 4px; border-bottom: 1px solid var(--c-border);
    color: inherit; transition: background-color .15s ease;
}
.news-item:hover { background: var(--c-surface-2); color: inherit; }
.news-item:first-child { border-top: 1px solid var(--c-border); }
.news-cover { flex: 0 0 168px; }
.news-cover img {
    display: block; width: 168px; height: 108px; object-fit: cover;
    border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface-2);
}
.news-body { flex: 1; min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; color: var(--c-text-3); }
.news-tag {
    font-style: normal; font-weight: 700; font-size: 11.5px; letter-spacing: .08em;
    color: var(--c-accent); border: 1px solid rgba(143, 109, 24, .32);
    background: var(--c-accent-light); padding: 2px 9px; border-radius: var(--radius-sm);
}
.news-top {
    font-style: normal; font-weight: 700; font-size: 11.5px;
    color: var(--c-primary); background: var(--c-primary-light);
    padding: 2px 9px; border-radius: var(--radius-sm);
}
.news-title { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.5; margin-bottom: 6px; }
.news-item:hover .news-title { color: var(--c-primary); }
.news-summary { display: block; font-size: 13.5px; color: var(--c-text-3); line-height: 1.8; }
.news-views { font-variant-numeric: tabular-nums; }
.news-pager { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.news-pager a, .news-pager .current, .news-pager .dots {
    min-width: 34px; padding: 7px 11px; text-align: center; font-size: 13.5px;
    border: 1px solid var(--c-border-2); border-radius: var(--radius-sm);
    color: var(--c-text-2); background: var(--c-surface); font-variant-numeric: tabular-nums;
}
.news-pager .dots { border: 0; background: none; }
.news-pager a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.news-pager .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }

/* 详情页 */
.news-crumb { display: flex; gap: 8px; font-size: 13px; color: var(--c-text-3); margin-bottom: 20px; }
.news-crumb a { color: var(--c-text-3); }
.news-crumb a:hover { color: var(--c-primary); }
.news-art-head h1 { font-size: 27px; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 14px; }
.news-art-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-3); }
.news-art-cover { margin: 24px 0; }
.news-art-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--c-border); display: block; }
.news-prose { margin-top: 24px; }
.news-prose img { height: auto; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }
.news-prose h2 { font-size: 20px; margin-top: 34px; }
.news-prose h3 { font-size: 17px; margin-top: 26px; }
.news-prose img { max-width: 100%; }

.news-pdf { margin: 30px 0 8px; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-surface-2); }
.news-pdf-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; background: var(--c-surface); border-bottom: 1px solid var(--c-border);
}
.news-pdf-frame iframe { display: block; width: 100%; height: 560px; border: 0; background: #525659; }

.news-tip-box {
    margin-top: 34px; padding: 26px 20px; text-align: center;
    border: 1px dashed rgba(143, 109, 24, .4); border-radius: var(--radius);
    background: var(--c-accent-light);
}
.news-neighbors {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px;
}
.news-neighbor {
    display: block; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 14px 16px; background: var(--c-surface); min-width: 0;
}
.news-neighbor span { display: block; font-size: 12px; color: var(--c-text-4); margin-bottom: 5px; }
.news-neighbor b { display: block; font-size: 14px; line-height: 1.55; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.news-neighbor:hover { border-color: var(--c-primary); }
a.news-neighbor:hover b { color: var(--c-primary); }
.news-neighbor.next { text-align: right; }
.news-neighbor.muted { opacity: .55; }

/* 打赏页金额选择 */
.tip-amounts { display: flex; gap: 10px; flex-wrap: wrap; }
.tip-amt {
    min-width: 76px; padding: 10px 14px; border: 1px solid var(--c-border-2); border-radius: var(--radius-sm);
    background: var(--c-surface); font-size: 15px; font-weight: 700; color: var(--c-text-2);
    cursor: pointer; font-family: inherit; font-variant-numeric: tabular-nums;
    transition: border-color .15s, background-color .15s, color .15s;
}
.tip-amt:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tip-amt.selected { border-color: var(--c-primary); background: var(--c-primary-light); color: var(--c-primary); }

@media (max-width: 720px) {
    .news-cover { flex-basis: 112px; }
    .news-cover img { width: 112px; height: 76px; }
    .news-title { font-size: 15.5px; }
    .news-art-head h1 { font-size: 22px; }
    .news-neighbors { grid-template-columns: 1fr; }
    .news-neighbor.next { text-align: left; }
    .news-pdf-frame iframe { height: 420px; }
}

/* ---------------- 打印（导出 PDF） ---------------- */
@media print {
    :root { --c-bg: #fff; }
    body { background: #fff; font-size: 12pt; color: #000; }
    .site-header, .site-footer, .no-print, .btn, .quiz-nav, .modal-mask,
    .nav-toggle, .nav-backdrop { display: none !important; }
    .container { max-width: 100%; padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; page-break-inside: avoid; }
    .strength-card, .weak-card, .career-item, .plan-item { break-inside: avoid; page-break-inside: avoid; }
    .report-head { padding: 0 0 14px; }
    .report-head h1 { font-size: 22pt; }
    a { color: #000; text-decoration: none; }
    .page-break { page-break-before: always; }
    .dim-row .bar > i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ai-label { border: 1px solid #999; background: #f5f5f5; }
}

/* ==========================================================================
   常见问题（FAQ）—— 与首页 FAQPage 结构化数据同源
   ========================================================================== */
.faq-list { display: grid; gap: 10px; margin-top: 4px; }

.faq-item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    overflow: hidden;
}

.faq-item > summary {
    position: relative;
    padding: 12px 40px 12px 14px;
    font-weight: 600;
    color: var(--c-text);
    cursor: pointer;
    list-style: none;
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary::after {
    content: '+';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.faq-item[open] > summary {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
}

.faq-item[open] > summary::after { content: '−'; }

.faq-item > p { padding: 0 14px 14px; }

@media print {
    .faq-item[open] > summary { background: none; }
}

/* ==========================================================================
   咨询级品牌层（V1.3.0）
   ---------------------------------------------------------------------------
   这一层提供"顶级机构"的版面语言，页面按需取用：
     满幅深色色带 / 细线业务网格 / 大字序号流程 / 数据带 / 细线标签
   注意：深色底上局部覆盖 --c-accent 为亮金，保证对比度（#D4AF37 on #2B1245 ≈ 7.9:1）。
   ========================================================================== */

/* ---------------- 满幅色带 ---------------- */
.band { padding: 64px 0; }
.band-tight { padding: 44px 0; }
.band-flush-top { padding-top: 0; }

.band-dark {
    --c-accent: var(--c-accent-bright);   /* 深底上提亮到可读的对比度 */
    background: var(--c-coffee-dark); color: rgba(255, 255, 255, .8);
    position: relative; overflow: hidden;
}
/* 极细网格纹理：只做 4.5% 白的层次暗示，不喧宾夺主 */
.band-dark::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-gray { background: var(--c-surface-2); }
.band-line { border-top: 1px solid var(--c-border); }

/* ---------------- 首屏色带 ---------------- */
.hero-band {
    --c-accent: var(--c-accent-bright);
    background: var(--c-primary-dark); color: #fff;
    padding: 104px 0 92px; position: relative; overflow: hidden;
}
.hero-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}
/* 右下角一道克制的古铜斜光 */
.hero-band::before {
    content: ""; position: absolute; top: -30%; right: -10%; width: 60%; height: 160%;
    background: radial-gradient(closest-side, rgba(212, 175, 55, .18), transparent 70%);
    pointer-events: none;
}
.hero-band > * { position: relative; z-index: 1; }
.hero-band h1 { color: #fff; font-size: 46px; line-height: 1.2; letter-spacing: -.03em; margin: 20px 0 20px; }
.hero-band .lead { color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.9; max-width: 680px; margin: 0 0 32px; }
.hero-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-band .kicker { color: var(--c-accent); }
.hero-band .lead b { color: #fff; font-weight: 700; }

/* 内页首屏：比首页矮一档 */
.hero-band-sub { padding: 76px 0 64px; }
.hero-band-sub h1 { font-size: 38px; margin: 16px 0 14px; }
.hero-band-sub .lead { font-size: 16px; margin-bottom: 0; max-width: 760px; }

/* ---------------- 细线业务网格（无卡片背景，靠 hairline 分区） ---------------- */
.svc-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--c-border);
}
.svc-card {
    display: block; padding: 30px 28px; text-decoration: none; color: inherit;
    border-bottom: 1px solid var(--c-border);
    border-right: 1px solid var(--c-border);
    transition: background-color .18s ease;
}
.svc-card:nth-child(3n) { border-right: 0; }
.svc-card:hover { background: var(--c-surface-2); color: inherit; }
.svc-card .no {
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    letter-spacing: .1em; color: var(--c-accent); display: block;
}
.svc-card h3 { font-size: 17px; margin: 10px 0 7px; letter-spacing: -.015em; }
.svc-card .tagline { color: var(--c-primary); font-size: 13.5px; font-weight: 600; margin: 0 0 10px; }
.svc-card .desc { font-size: 13.5px; color: var(--c-text-3); line-height: 1.75; margin: 0 0 14px; }
.svc-card .enter {
    font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--c-text-4); transition: color .18s ease;
}
.svc-card:hover .enter { color: var(--c-primary); }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.svc-price { font-size: 12.5px; color: var(--c-text-3); }
.svc-price b {
    font-size: 17px; font-weight: 700; color: var(--c-primary);
    letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 4px;
}
.svc-services { list-style: none; margin: 0 0 18px; padding: 0; }
.svc-services li { position: relative; padding: 5px 0 5px 16px; font-size: 13px; color: var(--c-text-3); line-height: 1.7; }
.svc-services li::before {
    content: ""; position: absolute; left: 0; top: .95em;
    width: 7px; height: 1px; background: var(--c-accent);
}

/* ---------------- 业务详情页 ---------------- */
.prose { font-size: 15.5px; line-height: 2; color: var(--c-text-2); max-width: 840px; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }

/* 诊断面板：细边框 + 顶部品牌线，把"填表"变成一份正式委托 */
.diag-panel {
    border: 1px solid var(--c-border); border-top: 3px solid var(--c-primary);
    background: var(--c-surface); padding: 36px; margin-top: 52px;
}

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.opt-row {
    display: flex; align-items: flex-start; gap: 9px; padding: 10px 13px;
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    cursor: pointer; line-height: 1.65; font-size: 14px; color: var(--c-text-2);
    transition: border-color .15s, background-color .15s;
}
.opt-row:hover { border-color: var(--c-border-2); background: #FAFBFC; }
.opt-row.checked { border-color: var(--c-primary); background: var(--c-primary-light); }
.opt-row input { margin-top: 4px; flex: none; accent-color: var(--c-primary); }

/* ---------------- 大字序号流程 ---------------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
.step-card { border-top: 2px solid var(--c-primary); padding-top: 22px; }
.step-card .no {
    display: block; font-family: var(--font-display);
    font-size: 38px; font-weight: 700; line-height: 1;
    color: #E2D6BE; letter-spacing: -.03em; margin-bottom: 16px;
}
.step-card h3 { font-size: 16.5px; margin: 0 0 9px; }
.step-card p { font-size: 13.5px; color: var(--c-text-3); line-height: 1.78; margin: 0; }

/* ---------------- 数据带 ---------------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat-item { padding: 6px 26px; border-left: 1px solid var(--c-border); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item b {
    display: block; font-family: var(--font-display);
    font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em;
    color: var(--c-primary); font-variant-numeric: tabular-nums;
}
.stat-item span { font-size: 13px; color: var(--c-text-3); }

/* ---------------- 细线标签（取代圆角胶囊） ---------------- */
.chip {
    display: inline-block; padding: 4px 11px;
    border: 1px solid var(--c-border-2); border-radius: var(--radius-sm);
    background: transparent; color: var(--c-text-2);
    font-size: 12.5px; letter-spacing: .01em;
}
.chip-solid {
    background: var(--c-primary-light); border-color: #D9CDE7;
    color: var(--c-primary); font-weight: 600;
}
.chip-accent {
    background: var(--c-accent-light); border-color: rgba(143, 109, 24, .32);
    color: #6B4F12; font-weight: 600;
}
.band-dark .chip, .hero-band .chip { border-color: rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .85); }

/* ---------------- 细线列表（服务方向等） ---------------- */
.line-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 44px; }
.line-item { padding: 18px 0; border-bottom: 1px solid var(--c-border); }
.line-item b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 5px; }
.line-item span { font-size: 13.5px; color: var(--c-text-3); line-height: 1.72; }

/* ---------------- 页内小标题带（区块引子） ---------------- */
.head-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.head-row h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.head-row .head-sub { font-size: 14px; color: var(--c-text-3); margin: 8px 0 0; max-width: 620px; line-height: 1.8; }

/* ---------------- 首屏关键词标签 ---------------- */
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }

/* ---------------- 深色 CTA 分栏 ---------------- */
.cta-split { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.cta-split h2 { font-size: 30px; letter-spacing: -.025em; margin: 14px 0 16px; }
.cta-lead { color: rgba(255, 255, 255, .78); font-size: 15.5px; line-height: 1.95; margin: 0 0 20px; max-width: 700px; }
.cta-lead b { color: var(--c-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.cta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cta-list li { position: relative; padding-left: 20px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.cta-list li::before {
    content: ""; position: absolute; left: 0; top: .66em;
    width: 9px; height: 1px; background: var(--c-accent);
}
.cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 208px; }

/* ---------------- 页尾横条（个人测评 / 联系我们） ---------------- */
.promo-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap; padding: 32px 0;
    border-top: 1px solid var(--c-border);
}
.promo-row:first-child { border-top: 0; padding-top: 0; }
.promo-row h2 { font-size: 20px; letter-spacing: -.02em; margin: 10px 0 8px; }
.promo-row p { font-size: 14px; color: var(--c-text-3); line-height: 1.8; margin: 0; max-width: 660px; }
.contact-block { display: flex; gap: 34px; flex-wrap: wrap; }
.contact-block div { font-size: 13.5px; color: var(--c-text-3); }
.contact-block span {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--c-accent); margin-bottom: 5px;
}
.contact-block b { font-size: 16px; color: var(--c-text); letter-spacing: -.01em; }

/* ---------------- 品牌层的响应式 ---------------- */
@media (max-width: 1024px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-card:nth-child(3n) { border-right: 1px solid var(--c-border); }
    .svc-card:nth-child(2n) { border-right: 0; }
    .step-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 32px; }
    .hero-band { padding: 76px 0 64px; }
    .hero-band h1 { font-size: 38px; }
    .hero-band-sub { padding: 60px 0 52px; }
    .hero-band-sub h1 { font-size: 34px; }
    .band { padding: 52px 0; }
    .stat-item { padding: 6px 20px; }
    .cta-split { grid-template-columns: 1fr; gap: 28px; }
    .cta-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

@media (max-width: 720px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-card,
    .svc-card:nth-child(3n),
    .svc-card:nth-child(2n) { border-right: 0; }
    .svc-card { padding: 24px 20px; }
    .step-grid { grid-template-columns: 1fr; gap: 26px; }
    .step-card .no { font-size: 32px; margin-bottom: 12px; }
    .hero-band { padding: 48px 0 44px; }
    .hero-band h1 { font-size: 29px; }
    .hero-band .lead { font-size: 15.5px; }
    .hero-band .actions { flex-direction: column; }
    .hero-band .actions .btn { width: 100%; }
    .hero-band-sub { padding: 42px 0 38px; }
    .hero-band-sub h1 { font-size: 27px; }
    .hero-band-sub .lead { font-size: 15px; }
    .hero-tags { margin-top: 28px; }
    .band { padding: 40px 0; }
    .stat-band { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .stat-item { padding: 0 18px; }
    .stat-item b { font-size: 30px; }
    .line-list { grid-template-columns: 1fr; gap: 0; }
    .head-row { margin-bottom: 20px; }
    .head-row h2 { font-size: 20px; }
    .cta-split h2 { font-size: 23px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
    .promo-row { padding: 26px 0; gap: 18px; }
    .promo-row h2 { font-size: 17.5px; }
    .promo-row .btn { width: 100%; }
    .contact-block { gap: 20px; }
    .diag-panel { padding: 22px; margin-top: 36px; }
    .prose { font-size: 14.5px; }
}

/* 移动端抽屉导航里不用下划线指示（改用底纹块） */
@media (max-width: 860px) {
    .nav a.nav-link::after { display: none; }
    .nav a.nav-link.active { background: var(--c-primary-light); }
}
