/* ============================================================
   破产实务资源平台 — 设计系统
   无外部依赖，纯自研。支持浅色/深色双主题。
   ============================================================ */

:root {
    /* 「生长 Growth」双色轨：蓝 = 企业重整，绿 = 个人重生 */
    --bg: #F7F8FB;
    --surface: #ffffff;
    --surface-2: #f1f4f9;
    --surface-3: #e7ebf3;
    --border: #E6E9F0;
    --border-strong: #D5DAE5;
    --text: #141B26;
    --text-2: #546072;
    --text-3: #8B94A5;
    --accent: #2563EB;             /* 企业重整 · 信任蓝 */
    --accent-hover: #1D4FD7;
    --accent-soft: #EDF3FE;
    --accent-text: #1D4FD7;
    --reborn: #0E9F6E;              /* 个人重生 · 新生绿 */
    --reborn-hover: #057A54;
    --reborn-soft: #E6F6F0;
    --reborn-text: #057A54;
    --brand-900: #0C1B34;           /* 品牌深夜蓝（顶栏品牌标/案例带/页脚） */
    --brand-800: #122647;
    --brand-700: #18325E;
    --danger: #c0392b;
    --success: #1f8a54;
    --warning: #a86a00;
    --shadow-sm: 0 1px 2px rgba(20, 33, 63, .05);
    --shadow-md: 0 8px 32px rgba(20, 33, 63, .10);
    --shadow-lg: 0 24px 60px rgba(20, 33, 63, .18);
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --header-h: 60px;
    --content-w: 1180px;
    --read-w: 720px;
}

html[data-theme="dark"] {
    --bg: #0d0f13;
    --surface: #15181e;
    --surface-2: #1b1f27;
    --surface-3: #232833;
    --border: #262b35;
    --border-strong: #333a47;
    --text: #e9ecf1;
    --text-2: #a3abb9;
    --text-3: #737c8b;
    --accent: #6EA8FF;
    --accent-hover: #9DC0FF;
    --accent-soft: #1c2339;
    --accent-text: #9DC0FF;
    --reborn: #4AD295;
    --reborn-hover: #7FDFBC;
    --reborn-soft: #12241d;
    --reborn-text: #7FDFBC;
    --brand-900: #0a1526;
    --brand-800: #10203f;
    --brand-700: #16304f;
    --danger: #e57368;
    --success: #5cc98d;
    --warning: #e0a94a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--accent-text); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--content-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; }
.brand .brand-sub {
    font-weight: 500; font-size: 11px; color: var(--text-3);
    letter-spacing: .14em; margin-left: 3px; padding-left: 12px;
    border-left: 1px solid var(--border-strong);
}
@media (max-width: 1080px) { .brand .brand-sub { display: none; } }
.brand-mark {
    width: 26px; height: 26px; border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-800), var(--accent) 55%, var(--reborn) 130%);
    display: grid; place-items: center; color: #fff; flex: none;
}
.brand-mark svg { width: 15px; height: 15px; }

.nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav a {
    padding: 6px 11px; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text-2); transition: .15s;
    white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }

/* 双轨导航：蓝=企业，绿=个人 */
.nav a.nav-track { font-weight: 600; }
.nav a.nav-track.t-blue { color: var(--accent-text); }
.nav a.nav-track.t-blue:hover { background: var(--accent-soft); color: var(--accent-text); }
.nav a.nav-track.t-green { color: var(--reborn-text); }
.nav a.nav-track.t-green:hover { background: var(--reborn-soft); color: var(--reborn-text); }

.nav-badge {
    display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
    padding: 0 4px; margin-left: 4px; border-radius: 8px;
    background: var(--danger); color: #fff; font-size: 10.5px; text-align: center;
    vertical-align: 1px;
    white-space: nowrap;
}

.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 3px; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: .16s; z-index: 60;
    /* 仅在可悬停设备上显示；触屏/窄屏不参与布局，避免横向溢出 */
    pointer-events: none;
}
@media (hover: hover) and (min-width: 901px) {
    .nav-drop-menu { pointer-events: auto; }
    .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
}
.nav-drop-menu a {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 7px 10px; border-radius: var(--radius-sm);
    font-size: 13.5px; color: var(--text-2);
}
.nav-drop-menu a:hover { background: var(--accent-soft); color: var(--accent-text); }

.header-spacer { flex: 1; }

/* 搜索框 */
.searchbar {
    position: relative;
    width: 260px;
    flex: none;
}
.searchbar input {
    width: 100%;
    height: 34px;
    padding: 0 62px 0 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: .18s;
}
.searchbar input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.searchbar input::placeholder { color: var(--text-3); }
.searchbar .sb-icon {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--text-3); pointer-events: none; display: flex;
}
.kbd {
    position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
    display: flex; gap: 2px; pointer-events: none;
}
.kbd span {
    font-family: var(--mono); font-size: 10.5px; line-height: 1;
    padding: 3px 5px; border-radius: 5px;
    background: var(--surface); border: 1px solid var(--border-strong);
    color: var(--text-3);
}

.icon-btn {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); display: grid; place-items: center;
    cursor: pointer; transition: .15s; flex: none; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 15px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface);
    color: var(--text); font-size: 13.5px; font-family: inherit; font-weight: 500;
    cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: var(--danger); }
.btn-sm { height: 28px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12px; border-radius: 6px; }

/* ---------- Hero（简洁版） ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 20px;
    background:
      radial-gradient(680px 380px at 8% -4%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
      radial-gradient(680px 380px at 92% 0%, color-mix(in srgb, var(--reborn) 11%, transparent), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 {
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.3; font-weight: 800; letter-spacing: -.02em;
    margin: 0 0 14px;
}
.hero h1 .g-blue {
    background: linear-gradient(120deg, var(--brand-800), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .g-green {
    background: linear-gradient(120deg, var(--reborn-hover), var(--reborn));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-2); font-size: 16px; margin: 0 0 22px; letter-spacing: .06em; }
.hero-trust { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.trust-item svg { width: 14px; height: 14px; color: var(--reborn); flex: none; }

/* 双轨导航与按钮色 */
.btn-blue {
    background: var(--brand-800); border-color: var(--brand-800); color: #fff;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-800) 28%, transparent);
}
.btn-blue:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-green {
    background: linear-gradient(120deg, var(--reborn-hover), var(--reborn));
    border-color: transparent; color: #fff;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--reborn) 30%, transparent);
}
.btn-green:hover { filter: brightness(1.06); }

/* Hero 右侧旅程卡 */
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 13px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text-2);
    box-shadow: var(--shadow-sm); margin-bottom: 2px;
}
.pill .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--reborn);
    box-shadow: 0 0 0 3px var(--reborn-soft); flex: none;
}
/* 已随简洁版 Hero 一并移除，规则保留以兼容 */
.journey-card h3 {
    font-size: 15px; font-weight: 700; letter-spacing: -.01em;
    display: flex; align-items: center; gap: 9px; margin: 0 0 18px;
}
.journey-card h3 .jc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.j-step { display: flex; gap: 13px; padding-bottom: 18px; position: relative; }
.j-step:last-child { padding-bottom: 0; }
.j-step::before {
    content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px;
    border-radius: 2px; background: var(--surface-3);
}
.j-step:last-child::before { display: none; }
.j-num {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
    flex: none; font-size: 13px; font-weight: 700;
}
.j-num.blue { background: var(--accent-soft); color: var(--accent-text); }
.j-num.green { background: var(--reborn-soft); color: var(--reborn-text); }
.j-step b { display: block; font-size: 14px; margin-bottom: 2px; }
.j-step span.j-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.6; display: block; }
.j-tag {
    display: inline-block; margin-top: 6px; font-size: 11px; padding: 2px 8px;
    border-radius: 6px; font-weight: 600;
    background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning);
}
.j-step .j-body { min-width: 0; }

.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin-top: 40px; max-width: 880px;
}
.stat-item {
    border-top: 2px solid color-mix(in srgb, var(--accent) 32%, transparent);
    padding-top: 12px; text-align: left;
}
.stat-item.g { border-top-color: color-mix(in srgb, var(--reborn) 38%, transparent); }
.stat-item b { display: block; font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.stat-item b i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.stat-item span { font-size: 12px; color: var(--text-3); }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }

/* ---------- 区块 ---------- */
.section { margin: 40px 0; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin-bottom: 16px;
}
.section-head h2 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.section-head .more { font-size: 13px; color: var(--text-3); }
.section-head .more:hover { color: var(--accent); }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.cat-card {
    padding: 16px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    transition: .18s; position: relative; overflow: hidden;
}
.cat-card:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cat-card .cat-icon {
    width: 32px; height: 32px; border-radius: 9px;
    display: grid; place-items: center; margin-bottom: 11px;
    background: var(--accent-soft); color: var(--accent-text);
}
.cat-card .cat-icon svg { width: 17px; height: 17px; }
.cat-card h3 { margin: 0 0 3px; font-size: 14.5px; font-weight: 570; }
.cat-card .cat-count { font-size: 12.5px; color: var(--text-3); }

/* ---------- 文章列表 ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-item {
    display: block; padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    transition: .16s;
}
.feed-item:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.feed-title {
    font-size: 15.5px; font-weight: 560; line-height: 1.45;
    margin: 0 0 5px; letter-spacing: -.008em;
}
.feed-item:hover .feed-title { color: var(--accent); }
.feed-summary {
    color: var(--text-2); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--text-3);
}
.feed-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.feed-meta .m svg { width: 13px; height: 13px; }

.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 500;
    background: var(--surface-2); color: var(--text-2);
    border: 1px solid transparent; transition: .15s;
}
a.chip:hover { background: var(--accent-soft); color: var(--accent-text); }
.chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.chip svg { width: 12px; height: 12px; }

.login-card {
    max-width: 360px; margin: 60px auto 40px; text-align: center;
    padding: 34px 28px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--surface);
}
.login-card h1 { font-size: 19px; font-weight: 620; margin: 0 0 6px; }
.login-hint { margin: 0 0 20px; font-size: 13.5px; color: var(--text-3); }
.chip-original {
    background: var(--success); color: #fff; font-weight: 500;
}
.chip-repost {
    background: transparent; color: var(--text-3); border: 1px solid var(--border-strong);
}
.source-note {
    display: flex; align-items: center; gap: 7px;
    margin: 14px 0 0; padding: 9px 13px;
    border-radius: var(--radius-sm); background: var(--surface-2);
    font-size: 12.5px; color: var(--text-3); line-height: 1.6;
}
.source-note svg { width: 14px; height: 14px; flex: none; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 34px 0 10px; flex-wrap: wrap; }
.pager a, .pager span.pg-cur, .pager span.pg-off {
    min-width: 33px; height: 33px; padding: 0 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); font-size: 13.5px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
    transition: .15s;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pager span.pg-cur { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.pager span.pg-off { opacity: .38; cursor: default; }
.pager .pg-ellipsis { border: none; background: none; color: var(--text-3); }
.pager-info { text-align: center; font-size: 12.5px; color: var(--text-3); margin-bottom: 40px; }

/* ---------- 文章页 ---------- */
/* ---------- 文章页 ---------- */
.page { padding: 26px 24px 40px; }
.crumbs {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--text-3); margin-bottom: 14px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 12px; height: 12px; opacity: .55; }
.page-head { margin-bottom: 22px; }
.page-head h1 {
    font-size: clamp(20px, 2.6vw, 26px); font-weight: 620;
    letter-spacing: -.02em; margin: 0 0 5px; line-height: 1.35;
}
.page-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }

.search-again { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; position: relative; }
.search-again > svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search-again .input { padding-left: 34px; height: 38px; }
.search-again .btn { height: 38px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.article-foot { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.info-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-3); }
.info-row b { font-weight: 500; text-align: right; }

.read-progress {
    position: fixed; top: 0; left: 0; height: 2px; z-index: 200;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #a855f7));
    width: 0; transition: width .1s linear;
}

.article-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 40px;
    padding: 34px 0 60px; align-items: start;
}
.article-main { max-width: var(--read-w); }

.article-head { margin-bottom: 26px; }
.article-title {
    font-size: clamp(24px, 3.4vw, 33px); line-height: 1.3; font-weight: 640;
    letter-spacing: -.022em; margin: 12px 0 12px;
}
.article-meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-3);
    padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.article-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.article-meta .m svg { width: 14px; height: 14px; }

.prose { font-size: 15.5px; line-height: 1.85; color: var(--text); }
.prose h1, .prose h2, .prose h3, .prose h4 {
    letter-spacing: -.015em; line-height: 1.4; scroll-margin-top: 80px;
}
.prose h1 { font-size: 25px; font-weight: 620; margin: 34px 0 14px; }
.prose h2 {
    font-size: 20.5px; font-weight: 620; margin: 34px 0 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.prose h3 { font-size: 17px; font-weight: 600; margin: 26px 0 10px; }
.prose h4 { font-size: 15.5px; font-weight: 600; margin: 22px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
.prose strong { font-weight: 620; }
.prose blockquote {
    margin: 0 0 16px; padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-2);
}
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 8px 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.prose code {
    font-family: var(--mono); font-size: .88em;
    background: var(--surface-2); padding: 2px 6px; border-radius: 5px;
}
.prose pre {
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 14px 16px; border-radius: var(--radius-sm);
    overflow-x: auto; margin: 0 0 16px;
}
.prose pre code { background: none; padding: 0; font-size: 13px; }
.prose table {
    width: 100%; border-collapse: collapse; margin: 0 0 18px;
    font-size: 14px; display: block; overflow-x: auto;
}
.prose th, .prose td {
    border: 1px solid var(--border); padding: 8px 11px; text-align: left;
}
.prose th { background: var(--surface-2); font-weight: 570; }

/* 侧边大纲 */
.toc { position: sticky; top: 82px; }
.toc h4 {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-3); margin: 0 0 10px; font-weight: 600;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--border); }
.toc li a {
    display: block; padding: 5px 0 5px 12px; margin-left: -1.5px;
    border-left: 1.5px solid transparent;
    font-size: 13px; color: var(--text-2); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
}
.toc li a:hover { color: var(--accent); }
.toc li a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.toc li.toc-h3 a { padding-left: 24px; font-size: 12.5px; color: var(--text-3); }
.toc-empty { font-size: 12.5px; color: var(--text-3); }

.side-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 15px; margin-top: 16px; }
.side-card h4 { font-size: 12.5px; font-weight: 600; margin: 0 0 11px; color: var(--text-2); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.side-list li:last-child { border-bottom: none; }
.side-list a:hover { color: var(--accent); }
.side-list .li-title { display: block; line-height: 1.45; }

/* ---------- 命令面板 ---------- */
.cmdk-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(12, 15, 22, .42);
    backdrop-filter: blur(3px);
    display: none; padding-top: 12vh;
}
.cmdk-overlay.open { display: block; animation: fade .12s ease; }
.cmdk {
    max-width: 580px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: hidden; animation: pop .16s cubic-bezier(.2, .8, .3, 1);
}
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cmdk-input-row svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.cmdk-input-row input {
    flex: 1; border: none; outline: none; background: none;
    font-size: 15.5px; font-family: inherit; color: var(--text);
}
.cmdk-list { max-height: 340px; overflow-y: auto; padding: 7px; }
.cmdk-group { font-size: 11.5px; color: var(--text-3); padding: 8px 11px 5px; font-weight: 600; letter-spacing: .04em; }
.cmdk-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 14px;
}
.cmdk-item .ci-icon { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.cmdk-item .ci-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .ci-kind { font-size: 11.5px; color: var(--text-3); flex: none; }
.cmdk-item.selected { background: var(--accent-soft); color: var(--accent-text); }
.cmdk-item.selected .ci-kind, .cmdk-item.selected .ci-icon { color: var(--accent-text); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.cmdk-foot {
    padding: 9px 16px; border-top: 1px solid var(--border);
    background: var(--surface-2); font-size: 12px; color: var(--text-3);
    display: flex; gap: 14px;
}
.cmdk-foot kbd {
    font-family: var(--mono); font-size: 11px; padding: 1px 5px;
    border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface);
}

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

.rise { animation: rise .35s cubic-bezier(.2, .8, .3, 1) both; }

/* ---------- 空状态 ---------- */
.empty {
    text-align: center; padding: 56px 20px;
    border: 1px dashed var(--border-strong); border-radius: var(--radius);
    color: var(--text-2);
}
.empty svg { width: 34px; height: 34px; color: var(--text-3); margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; font-size: 16px; font-weight: 570; color: var(--text); }
.empty p { margin: 0; font-size: 13.5px; }

/* ---------- 提示条 ---------- */
.flash-wrap { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 250; }
.flash {
    padding: 9px 16px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-md); font-size: 13.5px; margin-bottom: 8px;
    animation: pop .18s ease;
}
.flash-ok { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.flash-warn { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }

/* ---------- 页脚（深夜蓝） ---------- */
.footer {
    border-top: none; margin-top: 56px; padding: 46px 0 36px;
    font-size: 13px; color: #8A97B5;
    background: linear-gradient(180deg, var(--brand-900), var(--brand-800));
    position: relative;
}
.footer::before {
    content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--accent) 90%, transparent),
        color-mix(in srgb, var(--reborn) 90%, transparent));
}
.footer-inner { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .footer-brand b, .footer .footer-brand { color: #D7E1F2; }
.footer .footer-brand .dim { color: #7C89A3; }
.footer-links a { color: #9AA8C6; }
.footer-links a:hover { color: #fff; }
.footer-links .dim, .footer-note { color: #6E7B99; }
.footer-links a.footer-cta {
    color: #fff; background: var(--reborn);
    padding: 5px 13px; border-radius: 999px; font-weight: 600;
}
.footer-links a.footer-cta:hover { filter: brightness(1.08); }
.footer-beian { max-width: var(--content-w); margin: 18px auto 0; padding: 0 24px; font-size: 12px; }
.footer-beian a { color: #5F6C87; }
.footer-beian a:hover { color: #9AA8C6; }
.footer-eyebrow {
    font-size: 11px; letter-spacing: .26em; color: #5F6C87;
    text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label, .lbl { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-2); }
.input, .select, .textarea {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font-size: 14px; font-family: inherit; outline: none; transition: .15s;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.textarea-mono { font-family: var(--mono); font-size: 13px; min-height: 320px; }
.select { height: 36px; padding: 0 10px; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left; font-weight: 550; color: var(--text-3);
    font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
    padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table .select { height: 30px; padding: 0 6px; font-size: 12.5px; }
.table .input { height: 30px; padding: 0 8px; font-size: 12.5px; }
.table tr:hover td { background: var(--surface-2); }
.table .num { font-variant-numeric: tabular-nums; color: var(--text-3); }

/* ---------- 管理后台 ---------- */
.admin-head { padding: 26px 0 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 22px; font-weight: 620; margin: 0 0 3px; letter-spacing: -.02em; }
.admin-head .sub { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin-bottom: 22px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; }
.stat-box b { display: block; font-size: 21px; font-weight: 620; letter-spacing: -.02em; }
.stat-box span { font-size: 12px; color: var(--text-3); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.panel-head {
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel-head h2 { font-size: 14.5px; font-weight: 570; margin: 0; }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }
.panel-body.flush .table th, .panel-body.flush .table td { padding-left: 16px; padding-right: 16px; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 130px; height: 34px; padding: 0 10px; }
.filter-bar .input { min-width: 220px; padding: 0 12px; }

.inline-form { display: inline; }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12px; }

details.collapse-box { border-top: 1px solid var(--border); }
details.collapse-box > summary {
    padding: 10px 16px; cursor: pointer; font-size: 13px; color: var(--text-2);
    list-style: none; display: flex; align-items: center; gap: 6px;
}
details.collapse-box > summary::-webkit-details-marker { display: none; }
details.collapse-box > summary::before { content: "+"; font-weight: 600; color: var(--text-3); width: 12px; }
details.collapse-box[open] > summary::before { content: "−"; }
details.collapse-box > div { padding: 4px 16px 16px; }

/* ---------- 页脚 ---------- */
.footer-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.footer-note {
    margin: 8px 0 0; font-size: 12px; color: var(--text-3);
    max-width: 620px; line-height: 1.6;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.footer-links a:hover { color: var(--accent); }

.header-cta { height: 32px; }

/* ---------- 任务卡 ---------- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.task-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 20px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    transition: .18s;
}
.task-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.task-featured { border-color: color-mix(in srgb, #993556 30%, var(--border)); }
.task-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; margin-bottom: 4px;
}
.task-icon svg { width: 18px; height: 18px; }
.task-card h3 { margin: 0; font-size: 15.5px; font-weight: 570; }
.task-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; flex: 1; }
.task-go {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 500; color: var(--accent); margin-top: 4px;
}
.task-go svg { width: 13px; height: 13px; }
.task-card:hover .task-go svg { transform: translateX(3px); }
.task-go svg { transition: transform .18s; }

/* ---------- 关于我（首页条 + 独立页） ---------- */
.about-strip {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
}
.about-avatar {
    width: 52px; height: 52px; border-radius: 14px; flex: none;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #8b5cf6));
    color: #fff; font-size: 22px; font-weight: 600;
}
.about-strip-body { flex: 1; min-width: 0; }
.about-strip-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.about-strip-head b { font-size: 16px; }
.about-strip-body p { margin: 0 0 12px; font-size: 14px; color: var(--text-2); line-height: 1.7; }

.about-hero { display: flex; gap: 22px; align-items: flex-start; padding: 8px 0 6px; }
.about-hero .about-avatar { width: 72px; height: 72px; border-radius: 18px; font-size: 30px; }
.about-id h1 { margin: 0 0 4px; font-size: 26px; font-weight: 640; letter-spacing: -.02em; }
.about-title { margin: 0 0 10px; font-size: 14px; color: var(--accent); font-weight: 500; }
.about-intro { margin: 0 0 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.75; max-width: 660px; }
.about-intro p { margin: 0 0 10px; }
.about-intro p:last-child { margin-bottom: 0; }

.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.expertise-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.expertise-card h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 570; }
.expertise-card p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.65; }

.output-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.output-box {
    padding: 16px; border-radius: var(--radius); text-align: center;
    background: var(--surface-2); border: 1px solid var(--border);
}
.output-box b { display: block; font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.output-box span { font-size: 12.5px; color: var(--text-3); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: none; }
.tl-when { flex: none; width: 74px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.tl-body b { display: block; font-size: 14px; font-weight: 500; }
.tl-body span { font-size: 12.5px; }

.org-card {
    padding: 20px 22px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
}
.org-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.org-mark {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--accent);
}
.org-mark svg { width: 16px; height: 16px; }
.org-head b { font-size: 15.5px; }
.org-text p { margin: 0 0 12px; font-size: 14px; color: var(--text-2); line-height: 1.8; }
.org-text p:last-child { margin-bottom: 0; }

.edu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.edu-list li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.edu-list svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.edu-list .dim { font-size: 13px; }

.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.role-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.role-list svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.role-list-past li { color: var(--text-2); }
.role-list-past svg { color: var(--text-3); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.contact-item { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.contact-item span { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 3px; }
.contact-item b { font-size: 14.5px; font-weight: 500; }

.disclaimer {
    margin-top: 18px; padding: 13px 15px;
    border-radius: var(--radius-sm); background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-3); line-height: 1.7;
}

/* ---------- 情形自测 ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.role-card {
    display: flex; flex-direction: column; gap: 9px;
    padding: 22px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface); transition: .18s;
}
.role-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.role-tag {
    align-self: flex-start; padding: 2px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 500;
}
.role-card h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.role-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.65; flex: 1; }
.role-go { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.role-go svg { width: 13px; height: 13px; transition: transform .18s; }
.role-card:hover .role-go svg { transform: translateX(3px); }

.notice {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin: 24px 0; padding: 16px 18px;
    border-radius: var(--radius); background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.notice > svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; }
.notice > div { flex: 1; min-width: 220px; }
.notice b { display: block; font-size: 14px; margin-bottom: 3px; }
.notice p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 36px; align-items: start; }
.guide-main { min-width: 0; }
.g-block { margin-bottom: 30px; }
.g-block h2 {
    display: flex; align-items: center; gap: 8px;
    font-size: 16.5px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.01em;
}
.g-block h2 svg { width: 17px; height: 17px; color: var(--accent); }
.g-block.warn h2 svg { color: var(--danger); }

.check-list, .num-list { margin: 0; padding-left: 0; list-style: none; }
.check-list li {
    position: relative; padding: 7px 0 7px 24px; font-size: 14.5px; line-height: 1.65; color: var(--text-2);
}
.check-list li::before {
    content: ""; position: absolute; left: 4px; top: 15px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.g-block.warn .check-list li::before { background: var(--danger); }
.num-list { padding-left: 20px; }
.num-list li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

.path-list { display: flex; flex-direction: column; gap: 12px; }
.path-card { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.path-card h3 { margin: 0 0 7px; font-size: 15px; font-weight: 570; }
.path-desc { margin: 0 0 9px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.path-fit { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.65; padding-top: 9px; border-top: 1px dashed var(--border); }
.path-fit span {
    display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 5px;
    background: var(--surface-2); color: var(--text-3); font-size: 12px;
}

.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface); }
.faq > summary {
    padding: 12px 15px; cursor: pointer; font-size: 14.5px; font-weight: 500;
    list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; color: var(--text-3); font-weight: 600; flex: none; }
.faq[open] > summary::after { content: "−"; }
.faq > div {
    padding: 0 15px 14px; font-size: 14px; color: var(--text-2); line-height: 1.8;
    border-top: 1px solid var(--border); margin-top: 2px; padding-top: 12px;
}

.cta-card {
    padding: 18px; border-radius: var(--radius);
    background: linear-gradient(150deg, var(--accent-soft), var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.cta-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 570; }
.cta-card p { margin: 0 0 14px; font-size: 13px; color: var(--text-2); line-height: 1.65; }
.cta-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

/* ---------- 咨询表单 ---------- */
.consult-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
.consult-form {
    padding: 22px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
}
.consult-side { position: sticky; top: 82px; }
.consult-side .side-card { margin-top: 0; margin-bottom: 14px; }

.radio-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.rc { position: relative; }
.rc input { position: absolute; opacity: 0; width: 0; height: 0; }
.rc span {
    display: inline-block; padding: 7px 15px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: .15s;
}
.rc span:hover { border-color: var(--border-strong); }
.rc input:checked + span {
    background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 500;
}

.done-card {
    max-width: 560px; margin: 40px auto; text-align: center;
    padding: 40px 28px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--surface);
}
.done-mark {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-text);
}
.done-mark svg { width: 24px; height: 24px; }
.done-card h1 { font-size: 22px; margin: 0 0 10px; font-weight: 620; }
.done-card > p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }

/* ---------- 线索后台 ---------- */
.tab-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
    padding: 6px 13px; border-radius: 999px; font-size: 13.5px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
    transition: .15s;
}
.tab:hover { border-color: var(--border-strong); }
.tab span { color: var(--text-3); font-size: 12px; margin-left: 3px; }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab.on span { color: rgba(255, 255, 255, .75); }

.note-row td { background: var(--surface-2); padding: 8px 16px !important; }
.note-row .input { background: var(--surface); }

/* ============================================================
   生长 Growth · 首页组件
   ============================================================ */

/* ---------- 双轨服务卡（简洁链接版） ---------- */
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 920px) { .track-grid { grid-template-columns: 1fr; } }
.track {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px 28px; overflow: hidden;
    transition: .22s; display: flex; align-items: center; gap: 18px;
}
.track::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--brand-800), var(--accent));
}
.track.t-green::before { background: linear-gradient(180deg, var(--reborn-hover), var(--reborn)); }
.track:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.track .t-icon {
    width: 52px; height: 52px; border-radius: 15px;
    display: grid; place-items: center; flex: none;
    background: var(--accent-soft); color: var(--accent-text);
}
.track.t-green .t-icon { background: var(--reborn-soft); color: var(--reborn-text); }
.track .t-icon svg { width: 26px; height: 26px; }
.track h3 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.01em; flex: 1; }
.t-go {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 650; color: var(--accent-text); flex: none;
}
.track.t-green .t-go { color: var(--reborn-text); }
.t-go svg { width: 14px; height: 14px; transition: transform .2s; }
.track:hover .t-go svg { transform: translateX(4px); }

/* ---------- 案例带（深夜蓝） ---------- */
.band {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 100%);
    color: #E9EDF5; padding: 56px 0; border-radius: var(--radius-lg);
}
.band::before {
    content: ""; position: absolute; bottom: -160px; left: -100px; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 66%);
}
.band::after {
    content: ""; position: absolute; top: -140px; right: -80px; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--reborn) 24%, transparent), transparent 66%);
}
.band .wrap { position: relative; }
.band h2 { color: #F5F8FE; font-size: 20px; font-weight: 750; letter-spacing: -.015em; margin: 0 0 22px; }
.band-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 920px) { .band-cases { grid-template-columns: 1fr; } }
.band-case {
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(140, 170, 220, .18);
    border-radius: 16px; padding: 18px; transition: .2s;
}
.band-case:hover { border-color: rgba(110, 168, 255, .5); background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
.band-case .c-top {
    display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
    padding: 3px 10px; border-radius: 7px; margin-bottom: 10px;
}
.band-case.c-blue .c-top { background: color-mix(in srgb, #2563EB 26%, transparent); color: #9DC0FF; }
.band-case.c-green .c-top { background: color-mix(in srgb, #0E9F6E 26%, transparent); color: #7FDFBC; }
.band-case h4 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.55; color: #F2F6FD; }
.band-more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.band-more span {
    font-size: 12px; color: #A7BBDD; background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(140, 170, 220, .16); padding: 4px 12px; border-radius: 999px;
}

/* ---------- 数据条 ---------- */
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .metrics-row { grid-template-columns: repeat(2, 1fr); } }
.metric {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 22px 20px; text-align: center; transition: .2s;
}
.metric:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.metric b {
    display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em;
    background: linear-gradient(120deg, var(--brand-800), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric.g b {
    background: linear-gradient(120deg, var(--reborn-hover), var(--reborn));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric b i { font-style: normal; font-size: 14px; }
.metric span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }

/* ---------- 律师卡（左深右白·简洁版） ---------- */
.lawyer-card {
    display: grid; grid-template-columns: 240px 1fr;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 880px) { .lawyer-card { grid-template-columns: 1fr; } }
.lawyer-left {
    position: relative; color: #EDF1F9; padding: 28px 24px;
    background: linear-gradient(170deg, var(--brand-900), var(--brand-700) 90%);
    display: flex; align-items: center; gap: 16px;
}
.lawyer-left .l-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex: none;
    background: rgba(255, 255, 255, .08); border: 2px solid rgba(110, 168, 255, .45);
    display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #CFE0FF;
}
.lawyer-left h3 { margin: 0; font-size: 19px; font-weight: 800; color: #F5F8FE; }
.lawyer-left .l-sub { font-size: 12px; color: #8DA3C8; margin-top: 4px; }
.lawyer-right { padding: 26px 28px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
@media (max-width: 640px) { .lawyer-right { flex-direction: column; align-items: flex-start; } }
.lawyer-right p { color: var(--text-2); font-size: 13.5px; line-height: 1.8; margin: 0; }
.r-tags { display: none; }

/* ---------- 首页双轨区块头 ---------- */
.duo-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.duo-head h2 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.015em; margin: 0; }
.duo-head .kicker {
    font-size: 11px; letter-spacing: .26em; font-weight: 700; color: var(--accent-text); text-transform: uppercase;
}
.duo-head .duo-note { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 720px) { .duo-head .duo-note { display: none; } }

/* ---------- 情形自测：角色卡双色 ---------- */
.role-grid .role-card { position: relative; overflow: hidden; }
.role-grid .role-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent);
}
.role-grid .role-card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent), var(--reborn)); }
.role-grid .role-card:nth-child(3)::before { background: var(--reborn); }
.role-card .role-tag {
    align-self: flex-start; padding: 2px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600;
}
.role-grid .role-card:nth-child(2) .role-tag {
    background: linear-gradient(100deg, var(--accent-soft), var(--reborn-soft));
    color: var(--accent-text);
}
.role-grid .role-card:nth-child(3) .role-tag { background: var(--reborn-soft); color: var(--reborn-text); }

/* ---------- 关于页身份条升级 ---------- */
.about-hero .about-avatar {
    background: linear-gradient(150deg, var(--brand-800), var(--accent));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-800) 25%, transparent);
}
.about-title { color: var(--accent-text); }
.about-hero::after {
    content: "企业重整 × 个人重生"; display: block;
    margin-top: 10px; font-size: 11px; letter-spacing: .22em;
    color: var(--reborn-text); font-weight: 700;
}

/* ============================================================
   首页四板块（咨询窗 / 最新发布 / 法条检索 / 管协公告）
   ============================================================ */

/* ---------- 板块一：咨询聊天窗（Hero 右侧，最醒目） ---------- */
.chat-window {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 16px 48px color-mix(in srgb, var(--brand-900) 16%, transparent);
    display: flex; flex-direction: column;
}
.chat-head {
    display: flex; align-items: center; gap: 11px;
    padding: 14px 18px; color: #EDF1F9;
    background: linear-gradient(150deg, var(--brand-900), var(--brand-700));
}
.chat-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: none;
    background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(110, 168, 255, .5);
    display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #CFE0FF;
}
.chat-title b { display: block; font-size: 14.5px; font-weight: 700; color: #F5F8FE; }
.chat-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: #8DA3C8; margin-top: 2px;
}
.chat-status i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--reborn);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--reborn) 30%, transparent);
}
.chat-body { padding: 16px 18px 6px; }
.chat-msg {
    max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 14px 4px;
    font-size: 13.5px; line-height: 1.7;
}
.chat-msg.bot {
    background: var(--surface-2); color: var(--text-2);
    margin-bottom: 14px;
}
.chat-quick {
    display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px;
}
@media (max-width: 560px) { .chat-quick { grid-template-columns: 1fr; } }
.chat-quick button {
    text-align: left; padding: 8px 11px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); font-size: 12.5px; font-family: inherit;
    cursor: pointer; transition: .15s; line-height: 1.5;
}
.chat-quick button:hover {
    border-color: var(--reborn); color: var(--reborn-text);
    background: var(--reborn-soft);
}
.chat-input {
    display: flex; align-items: flex-end; gap: 9px;
    padding: 12px 14px; border-top: 1px solid var(--border);
    background: var(--surface);
}
.chat-input textarea {
    flex: 1; resize: none; border: none; outline: none; background: none;
    font-size: 13.5px; font-family: inherit; color: var(--text);
    line-height: 1.55; max-height: 120px; padding: 7px 0 0;
}
.chat-input textarea::placeholder { color: var(--text-3); }
.chat-send {
    width: 36px; height: 36px; border-radius: 11px; border: none; flex: none;
    background: linear-gradient(120deg, var(--reborn-hover), var(--reborn));
    color: #fff; display: grid; place-items: center; cursor: pointer;
    transition: .15s;
}
.chat-send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.chat-send svg { width: 15px; height: 15px; }
.chat-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 0 14px 11px; font-size: 11px; color: var(--text-3);
}
.chat-foot .chat-err { color: var(--danger); font-size: 11.5px; }
.chat-foot a { color: var(--reborn-text); font-weight: 600; }
.chat-foot a:hover { text-decoration: underline; }

/* ---------- 板块二：最新发布 ---------- */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 920px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .latest-grid { grid-template-columns: 1fr; } }
.latest-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    transition: .18s; position: relative;
}
.latest-card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.latest-card.orig:hover { border-color: color-mix(in srgb, var(--reborn) 35%, var(--border)); }
.lc-top { display: flex; justify-content: space-between; align-items: center; }
.lc-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.lc-badge svg { width: 11px; height: 11px; }
.lc-badge.o { background: var(--reborn-soft); color: var(--reborn-text); }
.lc-badge.r { background: var(--surface-2); color: var(--text-3); }
.lc-date { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lc-title {
    margin: 0; font-size: 14.5px; font-weight: 650; line-height: 1.55;
    letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest-card:hover .lc-title { color: var(--accent-text); }
.latest-card.orig:hover .lc-title { color: var(--reborn-text); }
.lc-summary {
    margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lc-go {
    display: inline-flex; align-items: center; gap: 5px; margin-top: auto;
    font-size: 12.5px; font-weight: 600; color: var(--accent-text);
}
.lc-go svg { width: 12px; height: 12px; transition: transform .18s; }
.latest-card:hover .lc-go svg { transform: translateX(3px); }
.more-link { color: var(--reborn-text); font-weight: 600; margin-left: 10px; }
.more-link:hover { text-decoration: underline; }

/* ---------- 板块三：法条检索 ---------- */
.laws-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px 26px 22px;
    box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
}
.laws-panel::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-800), var(--accent) 50%, var(--reborn) 130%);
}
.laws-search {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid var(--border-strong); border-radius: 14px;
    padding: 6px 6px 6px 16px; background: var(--surface);
    transition: .18s;
}
.laws-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.laws-search > svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.laws-search input {
    flex: 1; height: 42px; border: none; outline: none; background: none;
    font-size: 15px; font-family: inherit; color: var(--text);
}
.laws-search input::placeholder { color: var(--text-3); }
.laws-search .btn { height: 42px; padding: 0 20px; border-radius: 10px; flex: none; }
.laws-cats { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.law-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface-2);
    font-size: 13px; font-weight: 600; color: var(--text-2);
    transition: .16s;
}
.law-chip svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.law-chip span { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
a.law-chip:hover {
    border-color: var(--accent); color: var(--accent-text);
    background: var(--accent-soft); transform: translateY(-1px);
}
.law-chip.static { cursor: default; opacity: .82; }

/* ---------- 板块四：管协公告板（占位） ---------- */
.notice-board {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); overflow: hidden;
}
.nb-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 15px 22px; border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}
.nb-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 700; color: var(--text);
}
.nb-title svg { width: 16px; height: 16px; color: var(--accent); }
.nb-src {
    font-size: 12.5px; font-weight: 600; color: var(--accent-text);
    white-space: nowrap;
}
.nb-src:hover { text-decoration: underline; }
.nb-list { list-style: none; margin: 0; padding: 6px 0; }
.nb-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 22px; font-size: 13.5px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    transition: .14s;
}
.nb-list li:last-child { border-bottom: none; }
.nb-list li:hover { background: var(--surface-2); }
.nb-type {
    flex: none; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px; letter-spacing: .04em;
}
.nb-type.t-invest { background: var(--accent-soft); color: var(--accent-text); }
.nb-type.t-auction { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }
.nb-type.t-pre { background: var(--reborn-soft); color: var(--reborn-text); }
.nb-body { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-date { flex: none; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nb-foot {
    padding: 12px 22px; font-size: 12px; color: var(--text-3);
    background: var(--surface-2); border-top: 1px solid var(--border);
    line-height: 1.65;
}
@media (max-width: 620px) {
    .nb-list li { flex-wrap: wrap; gap: 6px; }
    .nb-body { white-space: normal; width: 100%; order: 3; }
}

/* 中等屏幕下压缩搜索框，给导航留空间，避免挤压 */
@media (max-width: 1200px) {
    .searchbar { width: 180px; }
    .header-inner { gap: 12px; }
    .nav a { padding: 6px 8px; font-size: 13.5px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .article-layout, .guide-layout, .consult-wrap { grid-template-columns: 1fr; gap: 28px; }
    .toc, .consult-side { display: none; }
    .nav a.hide-sm { display: none; }
    .about-hero { flex-direction: column; gap: 14px; }
    /* 窄屏顶栏：导航转为横向滚动，不折行不溢出 */
    .header-inner { gap: 8px; }
    .brand .brand-sub { display: none; }
    .nav {
        order: 5; flex: 1; min-width: 0;
        overflow-x: auto; scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .nav::-webkit-scrollbar { display: none; }
    .nav .nav-drop { display: none; }
    .nav a { white-space: nowrap; padding: 6px 9px; }
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero { padding: 44px 0 36px; }
    .journey-card { display: none; }
}
@media (max-width: 720px) {
    .searchbar { width: 44px; }
    .searchbar input { padding-left: 32px; padding-right: 8px; }
    .searchbar .kbd { display: none; }
    .searchbar input:focus { width: 200px; position: absolute; right: 0; z-index: 10; }
    .hero { padding: 32px 0 26px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
    .article-layout { padding-top: 20px; }
    .wrap, .wrap-narrow, .header-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
}
/* 极窄屏：搜索收缩为图标，CTA 缩短文案，确保不溢出 */
@media (max-width: 560px) {
    .header-cta span, .header-cta svg { display: none; }
    .header-cta { width: 30px; height: 30px; padding: 0; border-radius: 50%; flex: none; }
    .header-cta::after { content: "询"; font-size: 13px; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
