/* ============================================================
   中国好律师 · 共享设计系统 site.css v3.0
   品牌：深空蓝 #0D1B2A · 鎏金 #E8C96B · 暖白 #F8F6F0
   语言：Editorial Luxury × Soft Structuralism · Framer 动效
   ============================================================ */
:root {
    --ink: #0D1B2A;
    --ink-soft: #1A3A66;
    --ink-deep: #06152B;
    --accent: #C9A84C;
    --accent-soft: #E8C96B;
    --accent-deep: #A8862F;
    --gold: #E8C96B;
    --gold-soft: #F2DDA0;
    --gold-deep: #C9A84C;

    --bg: #F8F6F0;
    --surface: #FFFFFF;
    --surface-warm: #F0EDE4;
    --text: #0A1628;
    --text-2: #3D4F66;
    --text-3: #7288A0;
    --line: rgba(13, 27, 42, 0.08);
    --line-strong: rgba(13, 27, 42, 0.14);
    --success: #2A9D5A;
    --info: #3B82F6;
    --danger: #D9534A;

    --nav-bg: rgba(248, 246, 240, 0.72);
    --shell-bg: rgba(13, 27, 42, 0.035);
    --inner-hi: inset 0 1px 1px rgba(255, 255, 255, 0.9);
    --shadow-float: 0 24px 60px -24px rgba(13, 27, 42, 0.25);
    --shadow-lift: 0 40px 90px -32px rgba(13, 27, 42, 0.35);

    --r-xl: 2rem;
    --r-lg: 1.5rem;
    --r-md: 1.125rem;

    --font-display: 'Space Grotesk', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-body: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme="dark"] {
    --bg: #070D1A;
    --surface: #0D1628;
    --surface-warm: #111C33;
    --text: #E9EEF6;
    --text-2: #A5B6CC;
    --text-3: #66788F;
    --line: rgba(233, 238, 246, 0.09);
    --line-strong: rgba(233, 238, 246, 0.16);
    --nav-bg: rgba(7, 13, 26, 0.68);
    --shell-bg: rgba(233, 238, 246, 0.045);
    --inner-hi: inset 0 1px 1px rgba(255, 255, 255, 0.06);
    --shadow-float: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 40px 90px -32px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); }
.ambient::before { width: 56vw; height: 56vw; top: -22vw; right: -14vw; background: radial-gradient(circle, rgba(212, 168, 67, 0.14), transparent 65%); }
.ambient::after { width: 48vw; height: 48vw; bottom: -20vw; left: -16vw; background: radial-gradient(circle, rgba(13, 27, 42, 0.10), transparent 65%); }

::selection { background: rgba(201, 168, 76, 0.22); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 2rem; }

/* ============ 浮动玻璃胶囊导航 ============ */
.nav {
    position: fixed; top: 1.25rem; left: 50%; transform: translateX(-50%);
    z-index: 100;
    display: flex; align-items: center; gap: 0.25rem;
    padding: 0.45rem 0.55rem; border-radius: 999px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px -16px rgba(13, 27, 42, 0.28);
    max-width: calc(100vw - 2rem);
}
.nav-logo { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.85rem 0.4rem 0.5rem; border-radius: 999px; font-weight: 800; font-size: 0.92rem; letter-spacing: -0.02em; white-space: nowrap; }
.nav-logo .mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.18);
}
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a { padding: 0.42rem 0.95rem; border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--text-2); transition: all 0.35s var(--ease-spring); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--shell-bg); color: var(--text); }
.nav-cta {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-left: 0.3rem;
    padding: 0.42rem 0.5rem 0.42rem 1.1rem; border-radius: 999px;
    background: var(--ink); color: #FFF; font-size: 0.82rem; font-weight: 600; white-space: nowrap;
    transition: transform 0.35s var(--ease-spring), background 0.35s;
}
.nav-cta:hover { background: var(--ink-soft); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta .bubble { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; transition: transform 0.35s var(--ease-spring); }
.nav-cta:hover .bubble { transform: translate(2px, -1px) scale(1.06); }
.nav-user {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; margin-left: 0.25rem;
    background: var(--shell-bg); border: 1px solid var(--line-strong); color: var(--text-2);
    transition: all 0.35s var(--ease-spring); flex-shrink: 0;
}
.nav-user:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.theme-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; color: var(--text-2);
    display: flex; align-items: center; justify-content: center; margin-left: 0.2rem;
    transition: all 0.35s var(--ease-spring); flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(18deg); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; margin-left: 0.3rem; flex-shrink: 0; }
.burger span { position: absolute; left: 14px; width: 16px; height: 1.6px; background: var(--text); border-radius: 2px; transition: all 0.45s var(--ease-spring); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
body.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 99;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 6rem 2.5rem 3rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em;
    padding: 0.6rem 0; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(2.5rem);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.20s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.32s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.38s; }
body.menu-open .mobile-menu a:nth-child(7) { transition-delay: 0.44s; }
.mobile-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 0.4rem; }

/* ============ 通用元件 ============ */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.32rem 0.95rem; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-2); font-family: var(--font-display);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.h-display { font-family: var(--font-serif); font-weight: 900; letter-spacing: -0.02em; line-height: 1.14; }
.grad-text { background: linear-gradient(120deg, var(--gold-deep) 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 双表圈卡片 */
.bezel {
    background: var(--shell-bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 0.5rem;
    transition: transform 0.6s var(--ease-spring), box-shadow 0.6s var(--ease-spring), border-color 0.6s;
}
.bezel:hover { border-color: var(--line-strong); }
.bezel-core { background: var(--surface); border-radius: calc(var(--r-xl) - 0.5rem); box-shadow: var(--inner-hi); height: 100%; padding: 1.75rem; position: relative; overflow: hidden; }
.bezel.accent-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* 按钮：Button-in-Button */
.btn { display: inline-flex; align-items: center; gap: 0.7rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: transform 0.4s var(--ease-spring), background 0.4s, color 0.4s, border-color 0.4s; border: 1px solid transparent; }
.btn:active { transform: scale(0.97); }
.btn .bubble { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.4s var(--ease-spring); flex-shrink: 0; }
.btn:hover .bubble { transform: translate(3px, -2px) scale(1.05); }
.btn-primary { background: var(--ink); color: #FFF; padding: 0.55rem 0.6rem 0.55rem 1.6rem; }
.btn-primary .bubble { background: rgba(255,255,255,0.15); color: var(--gold-soft); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); padding: 0.55rem 0.6rem 0.55rem 1.6rem; }
.btn-ghost .bubble { background: var(--shell-bg); color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-accent { background: var(--accent); color: #FFF; padding: 0.55rem 0.6rem 0.55rem 1.6rem; }
.btn-accent .bubble { background: rgba(255,255,255,0.18); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-sm { font-size: 0.82rem; padding: 0.38rem 0.45rem 0.38rem 1.1rem; }
.btn-sm .bubble { width: 26px; height: 26px; }
.btn-xs { font-size: 0.72rem; padding: 0.28rem 0.4rem 0.28rem 0.9rem; }
.btn-xs .bubble { width: 22px; height: 22px; }
.btn-block { width: 100%; justify-content: center; }

/* 小药丸按钮 */
.lc-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); padding: 0.4rem 0.95rem; border-radius: 999px; border: 1px solid rgba(201,168,76,0.3); background: transparent; transition: all 0.35s var(--ease-spring); }
.lc-btn:hover { background: var(--accent); color: #FFF; border-color: var(--accent); }
.lc-btn.solid { background: var(--accent); color: #FFF; border-color: var(--accent); }
.lc-btn.solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.lc-btn.neutral { color: var(--text-2); border-color: var(--line-strong); }
.lc-btn.neutral:hover { background: var(--ink); color: #FFF; border-color: var(--ink); }

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(3rem); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

section { padding: 6rem 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 3rem; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 1.1rem 0 0.8rem; }
.sec-head p { color: var(--text-2); font-size: 1.02rem; }

/* 次级页面 Hero */
.page-hero { padding: 10rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 1.2rem 0 0.9rem; }
.page-hero .lead { color: var(--text-2); font-size: 1.05rem; max-width: 40rem; }
.crumb { font-size: 0.76rem; color: var(--text-3); margin-bottom: 1.6rem; display: flex; gap: 0.5rem; align-items: center; }
.crumb a:hover { color: var(--accent); }

/* 统计 */
.stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
[data-theme="dark"] .stat .num { color: var(--gold-soft); }
.stat .num em { font-style: normal; color: var(--accent); font-size: 1.1rem; margin-left: 2px; }
.stat .lbl { font-size: 0.78rem; color: var(--text-3); margin-top: 0.1rem; }

/* 筛选芯片 */
.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { padding: 0.42rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 0.82rem; font-weight: 500; transition: all 0.35s var(--ease-spring); }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #FFF; }
.chip.gold.on { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
    width: 100%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
    border-radius: 0.9rem; padding: 0.7rem 1.05rem; font-size: 0.9rem; font-family: inherit;
    outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { resize: vertical; min-height: 110px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237288A0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-hint { font-size: 0.7rem; color: var(--text-3); }

/* 标签页 */
.tabs { display: flex; gap: 0.4rem; padding: 0.35rem; border-radius: 999px; background: var(--shell-bg); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 0.5rem 1.4rem; border-radius: 999px; border: none; background: transparent; color: var(--text-2); font-size: 0.86rem; font-weight: 600; white-space: nowrap; transition: all 0.4s var(--ease-spring); }
.tab.on { background: var(--ink); color: #FFF; box-shadow: 0 8px 20px -8px rgba(13,27,42,0.4); }
.tab:hover:not(.on) { color: var(--text); }

/* 徽标 */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.66rem; font-weight: 700; padding: 0.16rem 0.7rem; border-radius: 999px; }
.badge.orange { background: rgba(201,168,76,0.1); color: var(--accent); }
.badge.gold { background: rgba(212,168,67,0.14); color: var(--gold-deep); }
[data-theme="dark"] .badge.gold { color: var(--gold-soft); }
.badge.blue { background: rgba(13,27,42,0.07); color: var(--ink); }
[data-theme="dark"] .badge.blue { background: rgba(233,238,246,0.08); color: var(--text-2); }
.badge.green { background: rgba(42,157,90,0.1); color: var(--success); }
.badge.gray { background: var(--shell-bg); color: var(--text-3); }

/* 律师卡 */
.lawyer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lawyer-card .bezel-core { padding: 1.5rem; display: flex; flex-direction: column; }
.lc-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; }
.lc-avatar { width: 80px; height: 80px; border-radius: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: #FFF; position: relative; box-shadow: 0 6px 20px rgba(13,27,42,0.15); }
.lc-avatar::after { content: ''; position: absolute; inset: -4px; border-radius: 26px; border: 1px solid var(--line-strong); }
.lc-avatar.lg { width: 96px; height: 96px; border-radius: 28px; font-size: 2.6rem; }
.lc-avatar.lg::after { border-radius: 32px; }
.av-1 { background: linear-gradient(135deg, #0D1B2A, #1A3A66); }
.av-2 { background: linear-gradient(135deg, #A8862F, #E8C96B); }
.av-3 { background: linear-gradient(135deg, #8C6D1F, #C9A84C); }
.av-4 { background: linear-gradient(135deg, #2A9D5A, #4CC38A); }
.av-5 { background: linear-gradient(135deg, #4A5A72, #7288A0); }
.av-6 { background: linear-gradient(135deg, #6B3FA0, #9B6ED0); }
.lc-name { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 0.45rem; }
.verified { color: var(--gold-deep); flex-shrink: 0; }
[data-theme="dark"] .verified { color: var(--gold-soft); }
.lc-title { font-size: 0.76rem; color: var(--text-3); }
.lc-status { margin-left: auto; font-size: 0.68rem; font-weight: 600; padding: 0.18rem 0.7rem; border-radius: 999px; flex-shrink: 0; }
.st-on { color: var(--success); background: rgba(42,157,90,0.1); }
.st-off { color: var(--text-3); background: var(--shell-bg); }
.lc-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lc-tags span { font-size: 0.68rem; font-weight: 500; color: var(--text-2); padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--shell-bg); border: 1px solid var(--line); }
.lc-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; padding: 0.85rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.lc-metrics div { text-align: center; }
.lc-metrics b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; display: block; letter-spacing: -0.02em; }
.lc-metrics span { font-size: 0.64rem; color: var(--text-3); }
.lc-case { font-size: 0.78rem; color: var(--text-2); background: var(--bg); border-radius: 0.9rem; padding: 0.75rem 0.95rem; margin-bottom: 1.1rem; border-left: 2px solid var(--gold); line-height: 1.65; }
.lc-case b { color: var(--text); }
.lc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.lc-rate { font-size: 0.78rem; color: var(--text-2); display: flex; align-items: center; gap: 0.35rem; }
.lc-rate b { font-family: var(--font-display); color: var(--gold-deep); font-size: 0.95rem; }
[data-theme="dark"] .lc-rate b { color: var(--gold-soft); }

/* 筛选侧边栏 */
.filter-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.6rem; align-items: start; }
.filter-panel { position: sticky; top: 6.5rem; }
.filter-panel .bezel-core { padding: 1.4rem; }
.filter-group { margin-bottom: 1.4rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.7rem; font-family: var(--font-display); }
.filter-opts { display: flex; flex-direction: column; gap: 0.15rem; }
.filter-opt { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0.7rem; border-radius: 0.7rem; font-size: 0.84rem; color: var(--text-2); border: none; background: transparent; text-align: left; transition: all 0.3s var(--ease-spring); width: 100%; }
.filter-opt:hover { background: var(--shell-bg); color: var(--text); }
.filter-opt.on { background: var(--ink); color: #FFF; }
.filter-opt .cnt { margin-left: auto; font-size: 0.68rem; color: var(--text-3); font-family: var(--font-display); }
.filter-opt.on .cnt { color: rgba(255,255,255,0.65); }
.switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; color: var(--text-2); padding: 0.42rem 0.7rem; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); border: none; position: relative; transition: background 0.3s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #FFF; top: 3px; left: 3px; transition: transform 0.35s var(--ease-spring); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(18px); }

/* 案源行 */
.case-list { display: flex; flex-direction: column; gap: 0.9rem; }
.case-row .bezel-core { padding: 1.4rem 1.6rem; display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.4rem; align-items: center; }
.urgency { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; gap: 1px; }
.urgency b { font-family: var(--font-display); font-size: 0.72rem; }
.u-high { background: rgba(217,83,74,0.1); color: var(--danger); }
.u-mid { background: rgba(212,168,67,0.14); color: var(--gold-deep); }
[data-theme="dark"] .u-mid { color: var(--gold-soft); }
.u-low { background: rgba(42,157,90,0.1); color: var(--success); }
.case-main b { font-size: 0.98rem; font-weight: 700; display: block; margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.case-main .meta { font-size: 0.75rem; color: var(--text-3); display: flex; gap: 1rem; flex-wrap: wrap; }
.case-main .meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.case-budget { text-align: right; flex-shrink: 0; }
.case-budget b { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); font-weight: 700; letter-spacing: -0.02em; display: block; }
.case-budget span { font-size: 0.65rem; color: var(--text-3); }
.case-anon { font-size: 0.68rem; color: var(--text-3); margin-top: 0.3rem; display: inline-flex; align-items: center; gap: 0.3rem; }

/* 进度时间线 */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 1.1rem; position: relative; padding-bottom: 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 1.5px; background: var(--line-strong); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--shell-bg); border: 1px solid var(--line-strong); color: var(--text-3); z-index: 1; }
.tl-item.done .tl-dot { background: var(--success); border-color: var(--success); color: #FFF; }
.tl-item.now .tl-dot { background: var(--accent); border-color: var(--accent); color: #FFF; animation: tlPulse 1.8s infinite; }
@keyframes tlPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.35); } 55% { box-shadow: 0 0 0 8px rgba(201,168,76,0); } }
.tl-body b { display: block; font-size: 0.92rem; }
.tl-body span { font-size: 0.75rem; color: var(--text-3); }
.tl-item.now .tl-body b { color: var(--accent); }
.tl-item.done .tl-body b { color: var(--success); }

/* 表格 */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 560px; }
.tbl th { background: var(--ink); color: #FFF; padding: 0.7rem 1rem; text-align: left; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-display); }
.tbl td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--text-2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--shell-bg); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; z-index: 200; background: rgba(6, 21, 43, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out); }
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--shell-bg); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 0.5rem; transform: translateY(2rem) scale(0.97); transition: transform 0.5s var(--ease-spring); }
.modal-mask.open .modal { transform: translateY(0) scale(1); }
.modal-core { background: var(--surface); border-radius: calc(var(--r-xl) - 0.5rem); padding: 1.8rem; box-shadow: var(--inner-hi); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.modal-head h3 { font-size: 1.2rem; font-weight: 700; }
.modal-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.modal-x:hover { border-color: var(--danger); color: var(--danger); transform: rotate(90deg); }

/* Toast */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 1rem); z-index: 300; background: var(--ink); color: #FFF; font-size: 0.84rem; font-weight: 500; padding: 0.75rem 1.5rem; border-radius: 999px; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; transition: all 0.45s var(--ease-spring); display: flex; align-items: center; gap: 0.5rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ok { color: #4CC38A; }

/* AI 深色区 */
.dark-sec { color: #EDF2FA; background: var(--ink-deep); border-radius: 3rem; margin: 3rem 1.2rem; overflow: hidden; position: relative; }
.dark-sec::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46rem 30rem at 85% -10%, rgba(212,168,67,0.16), transparent 60%), radial-gradient(40rem 28rem at 5% 110%, rgba(201,168,76,0.14), transparent 60%); }
.dark-sec .wrap, .dark-sec .wrap-wide { position: relative; }
.dark-sec .eyebrow { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #B9C6DA; }
.dark-sec h2, .dark-sec h1 { color: #FFF; }
.dark-sec .sec-head p, .dark-sec .lead { color: #93A5C0; }

/* 聊天 */
.chat-shell { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-xl); padding: 0.5rem; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6); }
.chat-core { background: #0A1322; border-radius: calc(var(--r-xl) - 0.5rem); box-shadow: inset 0 1px 1px rgba(255,255,255,0.05); overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.chat-head .avatar { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--gold)); display: flex; align-items: center; justify-content: center; color: #FFF; }
.chat-head b { font-size: 0.88rem; color: #FFF; display: block; }
.chat-head span { font-size: 0.68rem; color: #7C90AD; }
.chat-model { margin-left: auto; font-size: 0.66rem; color: var(--gold-soft); background: rgba(212,168,67,0.12); padding: 0.2rem 0.7rem; border-radius: 999px; border: 1px solid rgba(212,168,67,0.2); font-weight: 600; }
.chat-body { padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; min-height: 300px; max-height: 440px; overflow-y: auto; flex: 1; }
.msg { max-width: 88%; padding: 0.85rem 1.1rem; border-radius: 1.1rem; font-size: 0.84rem; line-height: 1.7; }
.msg.user { align-self: flex-end; background: rgba(201,168,76,0.16); border: 1px solid rgba(201,168,76,0.25); color: #F5D9CE; border-bottom-right-radius: 0.3rem; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #C9D6E8; border-bottom-left-radius: 0.3rem; }
.msg.bot .thinking { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--gold-soft); margin-bottom: 0.5rem; font-weight: 600; letter-spacing: 0.05em; }
.msg.bot .thinking::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,168,67,0.4); } 55% { box-shadow: 0 0 0 7px rgba(212,168,67,0); } }
.cite { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: var(--gold-soft); background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.18); padding: 0.12rem 0.6rem; border-radius: 999px; margin: 0.15rem 0.15rem 0 0; cursor: pointer; transition: all 0.3s; }
.cite:hover { background: rgba(212,168,67,0.2); }
.chat-input { display: flex; gap: 0.6rem; padding: 0.9rem 1rem; border-top: 1px solid rgba(255,255,255,0.07); }
.chat-input input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 0.65rem 1.15rem; color: #E8EEF8; font-size: 0.84rem; outline: none; font-family: inherit; transition: border-color 0.3s; }
.chat-input input:focus { border-color: rgba(212,168,67,0.5); }
.chat-input input::placeholder { color: #627492; }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: none; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #FFF; display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease-spring); }
.chat-send:hover { transform: scale(1.08) rotate(-8deg); }
.ai-disclaimer { font-size: 0.68rem; color: #627492; text-align: center; padding: 0.7rem 1rem 1rem; }

/* 来源溯源卡片 */
.cite-cards { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.5rem; }
.cite-group { background: rgba(212,168,67,0.06); border: 1px solid rgba(212,168,67,0.15); border-radius: 0.8rem; padding: 0.6rem 0.75rem; }
.cite-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; color: var(--gold-soft); margin-bottom: 0.35rem; }
.cite-item { font-size: 0.74rem; color: var(--text-2); padding: 0.18rem 0; border-top: 1px dashed rgba(255,255,255,0.06); line-height: 1.55; }
.cite-item:first-of-type { border-top: none; }
.cite-item b { color: var(--text-1); font-weight: 600; }
.cite-item .cite-sub { display: block; color: #627492; font-size: 0.68rem; }
.cite-item a { color: var(--accent); text-decoration: none; margin-left: 0.3rem; font-size: 0.68rem; }
.cite-item a:hover { text-decoration: underline; }

/* 常用指令快捷面板 */
.chat-quick { padding: 0.8rem 1rem 0.3rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.quick-title { font-size: 0.72rem; color: #627492; margin-bottom: 0.5rem; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.45rem; }
.quick-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.6rem; padding: 0.5rem 0.6rem; color: var(--text-2); font-size: 0.76rem; cursor: pointer; text-align: left; transition: all 0.25s; font-family: inherit; }
.quick-item:hover { background: rgba(212,168,67,0.12); border-color: rgba(212,168,67,0.3); color: var(--gold-soft); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; max-width: 820px; }
.faq-item .bezel-core { padding: 0; }
.faq-item details { border-radius: inherit; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.6rem; font-weight: 600; font-size: 0.98rem; transition: color 0.3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary .q-ico { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: var(--shell-bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 0.8rem; color: var(--accent); }
.faq-item summary .arrow { margin-left: auto; transition: transform 0.45s var(--ease-spring); color: var(--text-3); flex-shrink: 0; }
.faq-item details[open] summary .arrow { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 1.6rem 1.4rem 4.15rem; font-size: 0.87rem; color: var(--text-2); line-height: 1.8; }

/* 仪表盘布局 */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: start; }
.dash-side { position: sticky; top: 6.5rem; }
.dash-side .bezel-core { padding: 1.2rem 0.8rem; }
.dash-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.dash-nav button { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border-radius: 0.9rem; border: none; background: transparent; color: var(--text-2); font-size: 0.88rem; font-weight: 500; text-align: left; transition: all 0.3s var(--ease-spring); width: 100%; }
.dash-nav button:hover { background: var(--shell-bg); color: var(--text); }
.dash-nav button.on { background: var(--ink); color: #FFF; }
.dash-nav button svg { flex-shrink: 0; }
.dash-pane { display: none; }
.dash-pane.on { display: block; animation: paneIn 0.5s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: translateY(0); } }

/* 消息通知 */
.notice-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child { border-bottom: none; }
.notice-ico { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.notice-ico.orange { background: rgba(201,168,76,0.1); color: var(--accent); }
.notice-ico.green { background: rgba(42,157,90,0.1); color: var(--success); }
.notice-ico.blue { background: rgba(59,130,246,0.1); color: var(--info); }
.notice-ico.gold { background: rgba(212,168,67,0.14); color: var(--gold-deep); }
.notice-item b { display: block; font-size: 0.9rem; }
.notice-item p { font-size: 0.79rem; color: var(--text-2); }
.notice-item time { margin-left: auto; font-size: 0.7rem; color: var(--text-3); flex-shrink: 0; font-family: var(--font-display); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 0.55rem; }

/* 评分星 */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }

/* 空状态 */
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-3); }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--shell-bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--text-3); }

/* CTA + Footer */
.cta-final { text-align: center; padding: 7rem 0; }
.cta-final h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 1.3rem 0 1rem; }
.cta-final p { color: var(--text-2); max-width: 32rem; margin: 0 auto 2.4rem; }
.cta-final .hero-actions { justify-content: center; margin-bottom: 0; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.foot-brand p { font-size: 0.82rem; color: var(--text-3); margin-top: 0.9rem; max-width: 20rem; }
.foot-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; font-family: var(--font-display); }
.foot-col a { display: block; font-size: 0.86rem; color: var(--text-2); padding: 0.28rem 0; transition: color 0.3s, transform 0.3s; }
.foot-col a:hover { color: var(--accent); transform: translateX(3px); }
.foot-base { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--text-3); }
.foot-base .legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-base a:hover { color: var(--accent); }

.to-top { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #FFF; border: none; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(1rem); pointer-events: none; transition: all 0.5s var(--ease-spring); box-shadow: var(--shadow-float); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* 页面网格 */
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.geo-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.6rem; align-items: stretch; }
.split-main-aside { display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; align-items: start; }
.stat-4grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }

/* 工具类 */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-s { gap: 0.5rem; }
.gap-m { gap: 1rem; }
.wrap-flex { flex-wrap: wrap; }
.mt-s { margin-top: 0.5rem; }
.mt-m { margin-top: 1rem; }
.mt-l { margin-top: 1.6rem; }
.mb-m { margin-bottom: 1rem; }
.mb-l { margin-bottom: 1.6rem; }
.txt-2 { color: var(--text-2); }
.txt-3 { color: var(--text-3); }
.fs-s { font-size: 0.8rem; }
.fs-xs { font-size: 0.7rem; }
.fw-7 { font-weight: 700; }
.mono { font-family: var(--font-mono); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .lawyer-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .filter-layout, .dash-layout { grid-template-columns: 1fr; }
    .filter-panel, .dash-side { position: static; }
    .hero-split { grid-template-columns: 1fr; gap: 3rem; }
    .geo-split { grid-template-columns: 1fr; }
    .split-main-aside { grid-template-columns: 1fr; }
    .grid-3col, .grid-2col { grid-template-columns: 1fr; }
    .stat-4grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .wrap, .wrap-wide { padding: 0 1.25rem; }
    .nav-links, .nav .nav-cta span.txt { display: none; }
    .nav-cta { display: none; }
    .nav-cta { padding: 0.42rem; }
    .nav-cta .bubble { width: 30px; height: 30px; }
    .burger { display: block; }
    .page-hero { padding: 8rem 0 2.5rem; }
    .lawyer-grid { grid-template-columns: 1fr; }
    .case-row .bezel-core { grid-template-columns: auto 1fr; }
    .case-budget { text-align: left; grid-column: 2; }
    .case-row .lc-btn, .case-row .btn { grid-column: 2; justify-self: start; }
    .dark-sec { margin: 2rem 0.6rem; border-radius: 2rem; }
    .faq-a { padding-left: 1.6rem; }
    .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .tabs { width: 100%; flex-wrap: wrap; }
    .tab { padding: 0.45rem 1.05rem; font-size: 0.8rem; flex: 1 1 auto; text-align: center; }
}
/* ============================================================
   法律知识模块 · Knowledge Hub v3.1
   ============================================================ */
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.6rem; align-items: start; }
.kb-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1rem; }

/* 封面：零图片依赖，渐变 + 光斑 + 篆字水印 */
.kb-cover { position: relative; overflow: hidden; border-radius: 1.1rem; background: linear-gradient(135deg, var(--ink), var(--ink-soft)); display: flex; align-items: flex-end; padding: 0.8rem; flex-shrink: 0; }
.kb-cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 82% 16%, rgba(212,168,67,0.42), transparent 56%), radial-gradient(circle at 10% 90%, rgba(201,168,76,0.34), transparent 52%); }
.kb-cover::after { content: attr(data-glyph); position: absolute; right: -0.5rem; top: -1.4rem; font-family: var(--font-serif); font-size: 5rem; font-weight: 900; color: rgba(255,255,255,0.12); line-height: 1; pointer-events: none; }
.kb-cover-tag { position: relative; font-size: 0.66rem; font-weight: 700; color: #FFF; background: rgba(255,255,255,0.16); padding: 0.18rem 0.62rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(6px); }

/* 头条卡 */
.kb-feature .bezel-core { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.7rem; align-items: center; }
.kb-feature .kb-cover { height: 196px; }

/* 文章流 */
.kb-list { display: flex; flex-direction: column; gap: 1rem; }
.kb-card .bezel-core { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 1.3rem; padding: 1.2rem; align-items: center; }
.kb-card .kb-cover { height: 112px; }
.kb-title { font-size: 1.05rem; font-weight: 700; line-height: 1.55; letter-spacing: -0.01em; color: var(--text); display: block; }
a.kb-title:hover { color: var(--accent); }
.kb-excerpt { font-size: 0.85rem; color: var(--text-2); line-height: 1.75; margin-top: 0.42rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-meta { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--text-3); }
.kb-au { display: inline-flex; align-items: center; gap: 0.42rem; font-weight: 600; color: var(--text-2); }
.kb-au .ava { width: 22px; height: 22px; border-radius: 8px; color: #FFF; font-size: 0.68rem; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; }

/* 互动按钮 */
.act-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.act-btn { display: inline-flex; align-items: center; gap: 0.34rem; font-size: 0.74rem; font-weight: 600; color: var(--text-3); background: transparent; border: 1px solid var(--line); padding: 0.3rem 0.72rem; border-radius: 999px; cursor: pointer; font-family: inherit; transition: all 0.3s var(--ease-out); }
.act-btn:hover { color: var(--accent); border-color: rgba(201,168,76,0.4); transform: translateY(-1px); }
.act-btn.on { color: var(--accent); background: rgba(201,168,76,0.09); border-color: rgba(201,168,76,0.34); }
.act-btn.on svg { fill: currentColor; }
.act-btn.pop { animation: actPop 0.45s var(--ease-spring); }
@keyframes actPop { 0% { transform: scale(1); } 42% { transform: scale(1.16); } 100% { transform: scale(1); } }

.act-rail { display: flex; gap: 0.6rem; }
.act-rail button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.26rem; padding: 0.75rem 0.4rem; border-radius: 0.95rem; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-family: inherit; font-size: 0.68rem; font-weight: 600; color: var(--text-3); transition: all 0.3s var(--ease-out); }
.act-rail button:hover { transform: translateY(-2px); color: var(--text); box-shadow: var(--shadow-float); }
.act-rail button.on { color: var(--accent); border-color: rgba(201,168,76,0.34); background: rgba(201,168,76,0.07); }
.act-rail button.on svg { fill: currentColor; }
.act-rail b { font-family: var(--font-mono); font-size: 0.85rem; }

/* 侧栏榜单与标签云 */
.rank-item { display: flex; gap: 0.7rem; padding: 0.62rem 0; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.rank-no { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--text-3); width: 1.15rem; flex-shrink: 0; }
.rank-item:nth-child(-n+3) .rank-no { color: var(--accent); }
.rank-item p { font-size: 0.82rem; line-height: 1.6; font-weight: 600; color: var(--text); }
.rank-item p:hover { color: var(--accent); }
.rank-item span { font-size: 0.68rem; color: var(--text-3); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tagcloud button { font-size: 0.72rem; font-weight: 600; color: var(--text-2); background: var(--bg); border: 1px solid var(--line); padding: 0.28rem 0.7rem; border-radius: 999px; cursor: pointer; font-family: inherit; transition: all 0.3s var(--ease-out); }
.tagcloud button:hover { color: var(--accent); border-color: rgba(201,168,76,0.4); transform: translateY(-1px); }

/* 正文排版 */
.art-body { font-size: 0.96rem; line-height: 2.05; color: var(--text-2); }
.art-body > * + * { margin-top: 1.1rem; }
.art-body h2 { font-family: var(--font-serif); font-size: 1.42rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.5; margin-top: 2.4rem; padding-left: 0.9rem; border-left: 3px solid var(--accent); scroll-margin-top: 100px; }
.art-body h3 { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-top: 1.8rem; }
.art-body strong { color: var(--text); font-weight: 700; }
.art-body ul, .art-body ol { padding-left: 1.25rem; }
.art-body li { margin-top: 0.5rem; }
.art-body li::marker { color: var(--accent); }
.law-quote { background: var(--surface-warm); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.2rem; font-size: 0.88rem; line-height: 1.9; }
.law-quote b { display: block; font-size: 0.72rem; color: var(--gold-deep); letter-spacing: 0.06em; margin-bottom: 0.32rem; }
[data-theme="dark"] .law-quote b { color: var(--gold-soft); }
.art-note { border-left: 3px solid var(--gold); background: rgba(212,168,67,0.08); padding: 0.9rem 1.1rem; border-radius: 0 1rem 1rem 0; font-size: 0.86rem; line-height: 1.85; }

/* 目录 */
.toc { display: flex; flex-direction: column; gap: 0.12rem; }
.toc a { font-size: 0.8rem; color: var(--text-3); padding: 0.4rem 0.7rem; border-radius: 0.6rem; border-left: 2px solid transparent; line-height: 1.5; transition: all 0.3s var(--ease-out); }
.toc a:hover { color: var(--text); background: var(--bg); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); background: rgba(201,168,76,0.06); font-weight: 600; }

/* 评论 */
.cmt-list { display: flex; flex-direction: column; }
.cmt { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0.85rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.cmt:first-child { border-top: none; padding-top: 0.4rem; }
.cmt-av { width: 38px; height: 38px; border-radius: 12px; color: #FFF; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; }
.cmt-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.cmt-time { font-size: 0.7rem; color: var(--text-3); font-family: var(--font-mono); }
.cmt-text { font-size: 0.88rem; line-height: 1.85; color: var(--text-2); margin: 0.34rem 0 0.5rem; word-break: break-word; }
.cmt-sub { margin-top: 0.7rem; padding: 0.85rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 0.9rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cmt-sub .cmt { padding: 0; border-top: none; grid-template-columns: 30px minmax(0, 1fr); gap: 0.65rem; }
.cmt-sub .cmt-av { width: 30px; height: 30px; border-radius: 10px; font-size: 0.8rem; }
.cmt-editor { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0.85rem; align-items: start; }
.reply-box { margin-top: 0.7rem; display: none; }
.reply-box.open { display: block; animation: replyIn 0.4s var(--ease-out); }
@keyframes replyIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
    .kb-layout { grid-template-columns: 1fr; }
    .kb-side { position: static; }
    .kb-feature .bezel-core { grid-template-columns: 1fr; gap: 1.2rem; }
    .kb-feature .kb-cover { height: 150px; }
}
@media (max-width: 768px) {
    .kb-card .bezel-core { grid-template-columns: 1fr; }
    .kb-card .kb-cover { height: 92px; }
    .art-body { font-size: 0.92rem; }
    .art-body h2 { font-size: 1.24rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   隐私政策首访弹窗 · Policy Modal
   ============================================================ */
.policy-mask { z-index: 120; }
.policy-core { max-width: 520px; }
.policy-core .modal-head { padding: 1.3rem 1.6rem; }
.policy-links { display: flex; flex-direction: column; gap: 0.7rem; margin: 0.2rem 0 1.1rem; }
.policy-links a {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.85rem 1rem; border-radius: 0.9rem;
    border: 1px solid var(--line); background: var(--bg);
    font-weight: 700; font-size: 0.9rem; color: var(--text);
    transition: all 0.3s var(--ease-out);
}
.policy-links a:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-1px); box-shadow: var(--shadow-float); }
.policy-links a svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.policy-links a span { display: block; font-weight: 500; font-size: 0.75rem; color: var(--text-3); }
.policy-check {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.85rem; color: var(--text-2); line-height: 1.7;
    padding: 0.85rem 1rem; border-radius: 0.9rem;
    border: 1px solid var(--line); margin-bottom: 1rem; cursor: pointer;
}
.policy-check input { margin-top: 0.2rem; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.policy-check a { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════
   移动端体验优化 v1.0（2026-08-15）
   iOS 刘海屏安全区 / 点击高亮 / 滚动回弹 / 防误触
   ═══════════════════════════════════════════════ */
/* 刘海屏安全区 */
@supports (padding: max(0px)) {
    .nav, .mobile-menu { padding-left: max(0.5rem, env(safe-area-inset-left)); padding-right: max(0.5rem, env(safe-area-inset-right)); }
    .mobile-menu { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
    .foot { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
    .chat-input-wrap, .sticky-bar, .fixed-bottom { padding-bottom: max(0.6rem, env(safe-area-inset-bottom)); }
}

/* 去除移动端点击高亮灰框 */
* { -webkit-tap-highlight-color: transparent; }

/* iOS 滚动回弹（仅移动端） */
@supports (-webkit-overflow-scrolling: touch) {
    body { -webkit-overflow-scrolling: touch; }
}

/* 移动端输入框字号 ≥16px 防 iOS 自动缩放 */
@media (max-width: 768px) {
    input, textarea, select { font-size: 16px !important; }
}

/* 防止双击缩放误触（保留双指缩放） */
@media (pointer: coarse) {
    a, button { touch-action: manipulation; }
}

/* 移动菜单项加高（≥44px 触达目标） */
@media (max-width: 768px) {
    .mobile-menu a { padding: 0.85rem 0; }
    .nav-cta .bubble { width: 36px; height: 36px; }
    .footer a, .foot a { padding: 0.3rem 0; display: inline-block; }
}

/* 减少动效（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
