/* ==========================================================
   上海盛沃律师事务所 · 遗产继承法律专题 · 全局样式
   风格：蓝白清爽 / 深蓝点缀 / 专题杂志式排版
   圆角规范：全站圆角不超过 4px
   ========================================================== */

:root {
    --bg: #f7f9fc;
    --bg-soft: #eef2f8;
    --panel: #ffffff;
    --panel-2: #f2f6fb;
    --panel-3: #e9eff7;
    --gold: #1e5aa8;
    --gold-bright: #2e74c8;
    --gold-dim: #8aa4c4;
    --text: #182637;
    --muted: #566578;
    --faint: #96a2b3;
    --line: rgba(30, 90, 168, .22);
    --line-soft: rgba(24, 38, 55, .10);
    --r: 4px;
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
    --header-h: 72px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.85;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-bright); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }
::selection { background: rgba(30, 90, 168, .25); color: #10243c; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #edf1f7; }
::-webkit-scrollbar-thumb { background: #c4d0e0; border: 2px solid #edf1f7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ---------- 布局容器 ---------- */
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-pad-t { padding-top: 72px; }

/* ---------- 区块标题 ---------- */
.section-head { margin-bottom: 56px; position: relative; }
.section-head.center { text-align: center; }
.kicker {
    display: inline-flex; align-items: center; gap: 14px;
    color: var(--gold); font-size: 13px; letter-spacing: .35em;
    text-transform: uppercase; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.kicker::after { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-head:not(.center) .kicker::before { display: none; }
.section-head.center:not(.no-line) .kicker::before { display: inline-block; }
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 600; letter-spacing: .06em; line-height: 1.35;
}
.section-sub { color: var(--muted); margin-top: 16px; max-width: 720px; font-size: 15px; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- 水印大字 ---------- */
.watermark {
    position: absolute; right: -1%; top: 50%; transform: translateY(-50%);
    font-family: var(--font-serif); font-size: clamp(160px, 30vw, 400px);
    color: rgba(30, 90, 168, .06); line-height: 1; z-index: 0;
    user-select: none; pointer-events: none;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(247, 249, 252, .78);
    border-bottom: 1px solid transparent;
    transition: background .35s, border-color .35s;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: var(--line);
}
.header-inner {
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 40px; height: 40px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--gold); border-radius: var(--r);
    color: var(--gold); font-family: var(--font-serif);
    font-size: 20px; font-weight: 600;
}
.brand-text {
    font-family: var(--font-serif); font-size: 18px; letter-spacing: .18em;
    color: var(--text); line-height: 1.2; display: flex; flex-direction: column;
}
.brand-text small {
    font-family: var(--font-sans); font-size: 10px; letter-spacing: .5em;
    color: var(--gold-dim); margin-top: 3px;
}
.brand:hover .brand-mark { background: var(--gold); color: #fff; transition: .3s; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
    color: var(--muted); font-size: 14px; letter-spacing: .08em;
    padding: 8px 13px; position: relative; border-radius: var(--r);
}
.nav-menu a::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
    height: 1px; background: var(--gold); transform: scaleX(0);
    transform-origin: center; transition: transform .3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-toggle {
    display: none; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line);
    border-radius: var(--r); flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--gold); transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 阅读进度条 */
.read-progress {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: 2px;
    background: transparent; z-index: 99; pointer-events: none;
}
.read-progress i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
}

/* ---------- 首页主视觉 ---------- */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 80px;
    background:
        radial-gradient(1100px 480px at 82% -8%, rgba(30, 90, 168, .12), transparent 62%),
        radial-gradient(900px 460px at 8% 112%, rgba(30, 90, 168, .08), transparent 60%),
        var(--bg);
}
.hero-frame {
    position: absolute; inset: 26px; border: 1px solid rgba(30, 90, 168, .16);
    border-radius: var(--r); pointer-events: none;
}
.hero-frame::before, .hero-frame::after {
    content: ""; position: absolute; width: 26px; height: 26px;
    border-color: var(--gold); border-style: solid;
}
.hero-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: var(--r) 0 0 0; }
.hero-frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 var(--r) 0; }
.hero-inner { position: relative; z-index: 2; }
.hero-kicker {
    color: var(--gold); font-size: 14px; letter-spacing: .55em; margin-bottom: 34px;
    display: flex; align-items: center; gap: 18px;
}
.hero-kicker::before { content: ""; width: 56px; height: 1px; background: var(--gold); }
.hero-title {
    font-family: var(--font-serif); font-weight: 600;
    font-size: clamp(44px, 7.2vw, 92px); line-height: 1.22; letter-spacing: .1em;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub {
    margin-top: 34px; max-width: 640px; color: var(--muted);
    font-size: clamp(14px, 1.6vw, 17px); letter-spacing: .04em;
}
.hero-actions { margin-top: 48px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
    color: var(--gold-dim); font-size: 12px; letter-spacing: .4em;
    display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.hero-scroll::after {
    content: ""; width: 1px; height: 44px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- 子页面页头 ---------- */
.page-hero {
    padding: calc(var(--header-h) + 76px) 0 84px; position: relative; overflow: hidden;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(30, 90, 168, .10), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--line-soft);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: 13px; color: var(--faint); letter-spacing: .1em; margin-bottom: 30px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { margin: 0 10px; color: var(--gold-dim); }
.page-hero .kicker { margin-bottom: 20px; }
.page-hero h1 {
    font-family: var(--font-serif); font-weight: 600;
    font-size: clamp(34px, 5vw, 58px); letter-spacing: .12em; line-height: 1.3;
}
.page-hero-sub { margin-top: 22px; max-width: 700px; color: var(--muted); font-size: 15px; }
.hero-tags { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags span {
    font-size: 12px; letter-spacing: .15em; color: var(--gold);
    border: 1px solid var(--line); padding: 6px 14px; border-radius: var(--r);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 34px; font-size: 14px; letter-spacing: .22em;
    border-radius: var(--r); transition: all .3s; border: 1px solid var(--gold);
    background: transparent; color: var(--gold);
}
.btn-solid { background: var(--gold); color: #ffffff; font-weight: 600; }
.btn-solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #ffffff; }
.btn-ghost:hover { background: rgba(30, 90, 168, .08); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- 数据条 ---------- */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--r);
    background: linear-gradient(180deg, rgba(30, 90, 168, .08), rgba(30, 90, 168, .02));
    overflow: hidden;
}
.stat-item { padding: 38px 24px; text-align: center; position: relative; }
.stat-item + .stat-item::before {
    content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 1px; background: var(--line);
}
.stat-num {
    font-family: var(--font-serif); font-size: clamp(30px, 3.6vw, 46px);
    color: var(--gold); line-height: 1.15;
}
.stat-num sup { font-size: .45em; margin-left: 2px; }
.stat-label { margin-top: 10px; font-size: 13px; color: var(--muted); letter-spacing: .18em; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--r); padding: 34px 30px; position: relative;
    transition: border-color .35s, transform .35s, background .35s;
    overflow: hidden;
}
.card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--gold); transform: scaleY(0); transform-origin: top;
    transition: transform .35s;
}
.card:hover { border-color: var(--line); background: var(--panel-2); transform: translateY(-4px); }
.card:hover::before { transform: scaleY(1); }
.card-num {
    font-family: var(--font-serif); font-size: 15px; letter-spacing: .2em;
    color: var(--gold); display: block; margin-bottom: 16px;
}
.card h3 {
    font-family: var(--font-serif); font-size: 20px; font-weight: 600;
    letter-spacing: .08em; margin-bottom: 14px;
}
.card p { color: var(--muted); font-size: 14px; }
.card .more { display: inline-block; margin-top: 18px; font-size: 13px; letter-spacing: .18em; }
.card .more::after { content: " →"; }
.card-icon {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--r); color: var(--gold);
    font-family: var(--font-serif); font-size: 24px; margin-bottom: 22px;
}

/* ---------- 法条块 ---------- */
.law-article {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-left: 3px solid var(--gold); border-radius: var(--r);
    padding: 30px 34px; margin-bottom: 22px;
}
.law-article .law-tag {
    display: inline-block; font-size: 12px; letter-spacing: .25em; color: var(--gold);
    border: 1px solid var(--line); padding: 4px 12px; border-radius: var(--r);
    margin-bottom: 16px;
}
.law-article h4 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 12px; letter-spacing: .06em; }
.law-article p { color: var(--muted); font-size: 14.5px; }
.law-article p + p { margin-top: 10px; }
.law-article b, .law-article strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- 列表（带菱形符） ---------- */
.dot-list li {
    position: relative; padding-left: 26px; margin-bottom: 14px;
    color: var(--muted); font-size: 14.5px;
}
.dot-list li::before {
    content: ""; position: absolute; left: 4px; top: .78em;
    width: 7px; height: 7px; background: var(--gold);
    transform: rotate(45deg);
}
.dot-list li b { color: var(--text); }
.dot-list.gold li { color: var(--text); }

/* ---------- 提示框 ---------- */
.tip-box {
    display: flex; gap: 18px; align-items: flex-start;
    background: rgba(30, 90, 168, .06); border: 1px solid var(--line);
    border-radius: var(--r); padding: 26px 30px; margin: 34px 0 0;
}
.tip-box .tip-ico {
    flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--gold); border-radius: var(--r);
    color: var(--gold); font-family: var(--font-serif); font-size: 18px;
}
.tip-box p { color: var(--muted); font-size: 14px; }
.tip-box p b { color: var(--gold-bright); }
.tip-box.warn { background: rgba(178, 60, 60, .07); border-color: rgba(200, 90, 90, .35); }
.tip-box.warn .tip-ico { border-color: rgba(200, 90, 90, .6); color: #d98c8c; }

/* ---------- 引用块 ---------- */
.quote-block {
    position: relative; padding: 60px 8%; text-align: center;
    background:
        radial-gradient(700px 300px at 50% 0, rgba(30, 90, 168, .09), transparent 70%),
        var(--bg-soft);
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.quote-block .quote-mark {
    font-family: var(--font-serif); font-size: 90px; line-height: 1;
    color: rgba(30, 90, 168, .30); display: block; margin-bottom: 8px;
}
.quote-block blockquote {
    font-family: var(--font-serif); font-size: clamp(20px, 2.6vw, 30px);
    letter-spacing: .12em; line-height: 2; color: var(--text);
}
.quote-block cite {
    display: block; margin-top: 24px; font-style: normal;
    color: var(--gold); font-size: 14px; letter-spacing: .3em;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); }
table.law-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--panel); }
.law-table th {
    background: var(--panel-3); color: var(--gold); font-size: 13.5px;
    letter-spacing: .14em; padding: 16px 20px; text-align: left;
    border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap;
}
.law-table td {
    padding: 16px 20px; font-size: 14px; color: var(--muted);
    border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.law-table tr:last-child td { border-bottom: 0; }
.law-table tr:hover td { background: rgba(30, 90, 168, .05); }
.law-table td b { color: var(--text); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 46px; }
.timeline::before {
    content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
    width: 1px; background: linear-gradient(180deg, var(--gold), rgba(30, 90, 168, .08));
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -41px; top: 8px;
    width: 11px; height: 11px; background: var(--bg);
    border: 2px solid var(--gold); transform: rotate(45deg);
}
.timeline-item .t-stage {
    font-size: 12px; letter-spacing: .3em; color: var(--gold); margin-bottom: 8px;
}
.timeline-item h3 {
    font-family: var(--font-serif); font-size: 21px; letter-spacing: .08em; margin-bottom: 12px;
}
.timeline-item p { color: var(--muted); font-size: 14.5px; max-width: 760px; }

/* ---------- 步骤（横向） ---------- */
.steps { display: grid; gap: 20px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step-item {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--r); padding: 28px 22px; position: relative;
}
.step-item .step-no {
    font-family: var(--font-serif); font-size: 34px; color: rgba(30, 90, 168, .5);
    line-height: 1; margin-bottom: 16px;
}
.step-item h4 { font-family: var(--font-serif); font-size: 17px; margin-bottom: 10px; letter-spacing: .06em; }
.step-item p { color: var(--muted); font-size: 13px; }

/* ---------- 标签页 ---------- */
.tabs { border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.tab-nav { display: flex; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.tab-btn {
    flex: 1; min-width: 140px; background: transparent; border: 0;
    border-right: 1px solid var(--line-soft); color: var(--muted);
    padding: 18px 12px; font-size: 14.5px; letter-spacing: .1em;
    transition: all .3s; border-radius: 0;
}
.tab-btn:last-child { border-right: 0; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: rgba(30, 90, 168, .10); color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.tab-panel { display: none; padding: 38px 36px; }
.tab-panel.active { display: block; }
.tab-panel h4 { font-family: var(--font-serif); font-size: 19px; margin-bottom: 16px; letter-spacing: .06em; }
.tab-panel p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }

/* ---------- FAQ 手风琴 ---------- */
.faq-item {
    border: 1px solid var(--line-soft); border-radius: var(--r);
    background: var(--panel); margin-bottom: 14px; overflow: hidden;
    transition: border-color .3s;
}
.faq-item.open { border-color: var(--line); }
.faq-q {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 28px; cursor: pointer; user-select: none;
}
.faq-q .faq-no {
    flex: none; font-family: var(--font-serif); color: var(--gold);
    font-size: 15px; letter-spacing: .1em;
}
.faq-q .faq-t { flex: 1; font-size: 15.5px; letter-spacing: .04em; }
.faq-q .faq-arrow {
    flex: none; width: 10px; height: 10px;
    border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
    transform: rotate(45deg); transition: transform .3s; margin-top: -5px;
}
.faq-item.open .faq-arrow { transform: rotate(225deg); margin-top: 5px; }
.faq-a { display: none; padding: 0 28px 26px 61px; color: var(--muted); font-size: 14.5px; }
.faq-a p + p { margin-top: 10px; }
.faq-a b { color: var(--gold-bright); }

/* ---------- 案例卡片 ---------- */
.case-card {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--r); overflow: hidden; margin-bottom: 26px;
    transition: border-color .3s;
}
.case-card:hover { border-color: var(--line); }
.case-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 24px 32px; border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(90deg, rgba(30, 90, 168, .08), transparent 60%);
    flex-wrap: wrap;
}
.case-head h3 { font-family: var(--font-serif); font-size: 20px; letter-spacing: .06em; }
.case-head .case-tag {
    font-size: 12px; letter-spacing: .2em; color: var(--gold);
    border: 1px solid var(--line); padding: 5px 14px; border-radius: var(--r);
}
.case-body { padding: 30px 32px; display: grid; gap: 20px; }
.case-block .case-label {
    font-size: 12.5px; letter-spacing: .3em; color: var(--gold); margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}
.case-block .case-label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.case-block p { color: var(--muted); font-size: 14.5px; }
.case-block p b { color: var(--text); }
.case-filter { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.case-filter button {
    background: transparent; border: 1px solid var(--line-soft); color: var(--muted);
    padding: 9px 22px; font-size: 13.5px; letter-spacing: .15em;
    border-radius: var(--r); transition: all .3s;
}
.case-filter button:hover { color: var(--text); border-color: var(--line); }
.case-filter button.active { background: var(--gold); border-color: var(--gold); color: #ffffff; font-weight: 600; }

/* ---------- 计算页 ---------- */
.calc-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 34px; align-items: start; }
.calc-form {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--r); padding: 36px 34px;
}
.form-row { margin-bottom: 24px; }
.form-row label {
    display: block; font-size: 13.5px; letter-spacing: .12em;
    color: var(--muted); margin-bottom: 10px;
}
.form-row label b { color: var(--gold); font-weight: 400; }
.form-row input[type="number"], .form-row input[type="text"], .form-row select {
    width: 100%; background: var(--bg); border: 1px solid var(--line-soft);
    border-radius: var(--r); color: var(--text); padding: 13px 16px;
    outline: none; transition: border-color .3s;
}
.form-row input:focus, .form-row select:focus { border-color: var(--gold); }
.form-row select option { background: var(--panel-2); }
.form-row .form-hint { font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.form-line { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check-row input { width: 16px; height: 16px; accent-color: var(--gold); }
.check-row span { font-size: 14px; color: var(--muted); }
.calc-result {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--r); padding: 36px 34px;
}
.calc-result h3 {
    font-family: var(--font-serif); font-size: 20px; letter-spacing: .1em;
    margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.calc-result h3::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.result-empty { color: var(--faint); font-size: 14px; padding: 30px 0; text-align: center; letter-spacing: .1em; }
.result-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.5px;
}
.result-row .r-name { color: var(--muted); letter-spacing: .06em; }
.result-row .r-val { font-family: var(--font-serif); color: var(--gold-bright); font-size: 18px; }
.result-row.total .r-name { color: var(--text); }
.result-row.total .r-val { font-size: 22px; }
.result-note { margin-top: 22px; font-size: 12.5px; color: var(--faint); line-height: 1.9; }

/* ---------- 页间导航 ---------- */
.page-nav { border-top: 1px solid var(--line-soft); }
.page-nav .container {
    display: flex; justify-content: space-between; gap: 20px; padding: 40px 0;
}
.pn-item {
    display: flex; flex-direction: column; gap: 6px; max-width: 46%;
    color: var(--muted); font-size: 13px; letter-spacing: .15em;
}
.pn-item strong { font-family: var(--font-serif); font-size: 18px; color: var(--text); font-weight: 600; transition: color .3s; }
.pn-item:hover strong { color: var(--gold); }
.pn-item.next { text-align: right; margin-left: auto; }
.pn-item em { font-style: normal; color: var(--gold-dim); }

/* ---------- 页脚 ---------- */
.site-footer { background: #16283e; border-top: 1px solid var(--line-soft); }
.footer-grid {
    display: grid; grid-template-columns: 4fr 3fr 4fr; gap: 50px;
    padding: 70px 0 54px;
}
.footer-brand {
    font-family: var(--font-serif); font-size: 21px; letter-spacing: .2em;
    color: #eef3fa;
    margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.footer-brand::before {
    content: "盛"; width: 34px; height: 34px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #8db4e8; border-radius: var(--r);
    color: #8db4e8; font-size: 17px;
}
.footer-col p { color: #9db0c8; font-size: 13.5px; }
.footer-col h4 {
    font-family: var(--font-serif); font-size: 15px; letter-spacing: .25em;
    color: #8db4e8; margin-bottom: 20px; font-weight: 600;
}
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-links a { color: #b9c7da; font-size: 13.5px; }
.footer-links a::before { content: "· "; color: #6e8bb0; }
.footer-links a:hover { color: #8db4e8; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09); padding: 22px 0;
}
.footer-bottom .container {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    color: #7e93af; font-size: 12.5px; letter-spacing: .08em;
}

/* ---------- 返回顶部 / 浮动 ---------- */
.back-top {
    position: fixed; right: 26px; bottom: 30px; z-index: 90;
    width: 46px; height: 46px; display: none;
    align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
    border-radius: var(--r); color: var(--gold);
    font-family: var(--font-serif); font-size: 15px; letter-spacing: 0;
    box-shadow: 0 4px 14px rgba(24, 38, 55, .12);
}
.back-top:hover { background: var(--gold); color: #ffffff; }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 章节序号大字（专题感） ---------- */
.chapter-row { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.chapter-no {
    font-family: var(--font-serif); font-size: 84px; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(30, 90, 168, .5);
    user-select: none;
}

/* ---------- 双栏布局 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split-64 { grid-template-columns: 6fr 5fr; }

/* ---------- 小标签 / 徽章 ---------- */
.tag-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-line span {
    font-size: 12.5px; color: var(--gold); letter-spacing: .08em;
    border: 1px solid var(--line); border-radius: var(--r); padding: 4px 12px;
}

/* ---------- 高亮数字序列 ---------- */
.num-banner {
    display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
    padding: 30px; border: 1px solid var(--line); border-radius: var(--r);
    background: linear-gradient(90deg, rgba(30,90,168,.10), rgba(30,90,168,.02));
}
.num-banner .nb-item { text-align: center; }
.num-banner .nb-val { font-family: var(--font-serif); font-size: 26px; color: var(--gold); }
.num-banner .nb-key { font-size: 12px; color: var(--muted); letter-spacing: .2em; margin-top: 4px; }
.num-banner .nb-sep { color: var(--gold-dim); font-size: 20px; }

/* ---------- 浮动拨号按钮（移动端） ---------- */
.call-float {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: none; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 20px; background: var(--gold); color: #ffffff;
    font-size: 16px; letter-spacing: .15em; font-weight: 600;
    box-shadow: 0 -4px 16px rgba(24, 38, 55, .15); transition: background .3s;
}
.call-float:hover { background: var(--gold-bright); color: #ffffff; }
.call-float .call-ico { width: 18px; height: 18px; flex: none; }
.call-float .call-ico svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- CTA 营销区块 ---------- */
.cta-section {
    padding: 80px 0; text-align: center;
    background:
        radial-gradient(800px 360px at 80% 10%, rgba(30, 90, 168, .12), transparent 65%),
        radial-gradient(700px 340px at 15% 90%, rgba(30, 90, 168, .08), transparent 60%),
        var(--bg-soft);
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.cta-section .cta-title {
    font-family: var(--font-serif); font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 600; letter-spacing: .08em; line-height: 1.5; margin-bottom: 18px;
}
.cta-section .cta-sub {
    color: var(--muted); font-size: 15px; max-width: 680px; margin: 0 auto 34px; line-height: 1.9;
}
.cta-section .cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.cta-section .cta-phone {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
    font-family: var(--font-serif); font-size: clamp(22px, 2.8vw, 30px);
    color: var(--gold); letter-spacing: .06em;
}
.cta-section .cta-phone::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.cta-section .cta-phone::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.cta-section .cta-address { margin-top: 14px; color: var(--faint); font-size: 13.5px; letter-spacing: .1em; }

/* ---------- CTA 营销条 ---------- */
.cta-bar {
    background: linear-gradient(90deg, rgba(30, 90, 168, .10), rgba(30, 90, 168, .03));
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
    padding: 34px 0;
}
.cta-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-bar-text strong { display: block; font-family: var(--font-serif); font-size: 19px; color: var(--text); margin-bottom: 4px; letter-spacing: .06em; }
.cta-bar-text span { color: var(--muted); font-size: 14px; }
.cta-bar-text span b { color: var(--gold); }

/* ---------- 页脚联系信息 ---------- */
.footer-contact { margin-top: 20px; }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 10px;
    color: #b9c7da; font-size: 13.5px; margin-bottom: 10px; line-height: 1.7;
}
.footer-contact-item .fc-ico {
    flex: none; width: 16px; height: 16px; margin-top: 3px;
    display: flex; align-items: center; justify-content: center; color: #8db4e8;
}
.footer-contact-item .fc-ico svg { width: 100%; height: 100%; fill: currentColor; }
.footer-contact-item a { color: #b9c7da; }
.footer-contact-item a:hover { color: #8db4e8; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps-4, .steps-5 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .chapter-row { grid-template-columns: 1fr; gap: 16px; }
    .chapter-no { font-size: 60px; }
}

@media (max-width: 860px) {
    :root { --header-h: 62px; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(24, 38, 55, .08); padding: 10px 4% 20px; display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a {
        padding: 14px 10px; border-bottom: 1px solid rgba(24, 38, 55, .06);
        border-radius: 0; font-size: 15px;
    }
    .nav-menu a::after { display: none; }
    .nav-menu a.active { color: var(--gold); }
    .section { padding: 66px 0; }
    .split, .split-64 { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3)::before { display: none; }
    .stat-item:nth-child(odd)::before { display: none; }
    .stat-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 54px 0 40px; }
    .quote-block { padding: 48px 6%; }
    .timeline { padding-left: 38px; }
    .timeline-item::before { left: -33px; }
    .faq-a { padding-left: 28px; }
    .hero-frame { inset: 14px; }
    .watermark { font-size: clamp(140px, 44vw, 260px); opacity: .8; }
    .call-float { display: flex; }
    .back-top { bottom: 66px; }
}

@media (max-width: 560px) {
    body { font-size: 15px; }
    .grid-2, .grid-3, .grid-4, .steps-4, .steps-5 { grid-template-columns: 1fr; }
    .form-line { grid-template-columns: 1fr; }
    .hero { padding-top: calc(var(--header-h) + 44px); }
    .hero-actions .btn { width: 100%; }
    .tab-btn { min-width: 50%; }
    .tab-panel { padding: 28px 22px; }
    .law-article { padding: 24px 20px; }
    .case-head, .case-body { padding-left: 22px; padding-right: 22px; }
    .back-top { right: 14px; bottom: 66px; }
    .cta-bar-inner { flex-direction: column; text-align: center; }
    .page-nav .container { flex-direction: column; }
    .pn-item, .pn-item.next { max-width: 100%; text-align: left; }
    .num-banner { gap: 14px; padding: 22px 16px; }
    .footer-links { grid-template-columns: 1fr; }
}
