

/* ================================================
   DESIGN SYSTEM TOKENS — v4.3 (DM Sans + 叙事混合)
   ================================================ */
:root {
    --color-success: #059669; --color-success-light: #10B981; --color-success-dark: #047857;
    --color-success-50: #ECFDF5; --color-success-100: #D1FAE5;
    --color-danger: #E11D48; --color-danger-light: #F43F5E; --color-danger-50: #FFF1F2;
    --color-warning: #D97706; --color-warning-light: #F59E0B; --color-warning-50: #FFFBEB;
    --color-info: #2563EB; --color-info-light: #3B82F6;
    --color-info-50: #EFF6FF; --color-info-100: #DBEAFE;
    --color-purple: #7C3AED; --color-purple-light: #8B5CF6;
    --color-purple-50: #F5F3FF; --color-purple-100: #EDE9FE;

    --color-text-primary: #1C1917;
    --color-text-secondary: #57534E;
    --color-text-muted: #78716C;
    --color-border: #E7E5E4;
    --color-border-light: #F5F5F4;
    --color-bg: #F8FAFB;
    --color-bg-card: #FFFFFF;
    --color-bg-table-header: #FAFAF9;
    --color-bg-hover: rgba(0,0,0,0.025);

    --gradient-hero: linear-gradient(135deg, #059669 0%, #2563EB 50%, #7C3AED 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --gradient-mesh:
        radial-gradient(at 20% 20%, rgba(5,150,105,0.08) 0%, transparent 50%),
        radial-gradient(at 80% 80%, rgba(37,99,235,0.06) 0%, transparent 50%),
        radial-gradient(at 50% 50%, rgba(124,58,237,0.04) 0%, transparent 50%);

    --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-rich: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(5,150,105,0.18), 0 2px 8px rgba(5,150,105,0.10);
    --shadow-glow-success: 0 4px 14px rgba(5,150,105,0.15);
    --shadow-glow-purple: 0 4px 14px rgba(124,58,237,0.15);

    --glass-bg: rgba(255,255,255,0.88);
    --glass-blur: blur(24px) saturate(2);
    --glass-border: 1px solid rgba(255,255,255,0.75);
    --glass-shadow: 0 4px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);

    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
    --radius-xl: 20px; --radius-2xl: 24px; --radius-full: 9999px;

    --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 16px;
    --spacing-lg: 24px; --spacing-xl: 32px; --spacing-2xl: 40px;

    --font-family: "DM Sans", -apple-system, "SF Pro Text", "Noto Sans SC", "PingFang SC", sans-serif;
    --font-family-cn: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-family-heading: "DM Sans", -apple-system, "SF Pro Display", "Noto Sans SC", sans-serif;
    --font-family-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
    --font-editorial-body: "Libre Baskerville", Georgia, "Noto Serif SC", serif;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    --content-max-width: 980px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
    font-family: var(--font-family);
    background: var(--color-bg);
    background-image: var(--gradient-mesh);
    /* background-attachment:fixed 禁止 GPU 光栅化，改用伪元素固定背景 */
    background-attachment: scroll;
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--color-info); text-decoration: none; }
a:hover { color: var(--color-success); }
p { margin-bottom: 10px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
code {
    font-family: var(--font-family-mono);
    font-size: .85em;
    background: var(--color-bg-table-header);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1px 5px;
}

/* ================================================
   叙事型 HERO（dark-editorial 扩展层）
   ================================================ */
.editorial-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    color: white;
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.editorial-hero-inner {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.editorial-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff08'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
}
.editorial-hero::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(83,52,131,.28), transparent 70%);
    top: -80px; right: -60px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.editorial-hero-badge {
    display: inline-block;
    background: #e94560;
    color: white;
    font-size: 11px;
    font-family: var(--font-family-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 2px;
    margin-bottom: 22px;
    position: relative;
}
.editorial-hero h1 {
    font-family: var(--font-family-heading);
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    max-width: 820px;
    margin: 0 auto 14px;
    position: relative;
}
.editorial-hero h1 .hl-amber { color: #f59e0b; }
.editorial-hero h1 .hl-red   { color: #f87171; }
.editorial-hero .subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.68);
    max-width: 600px;
    margin: 0 auto 28px;
    font-family: var(--font-editorial-body);
    line-height: 1.7;
    position: relative;
}
.editorial-hero-thesis {
    display: inline-block;
    background: rgba(83,52,131,.32);
    border: 1px solid rgba(139,92,246,.4);
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    color: #c4b5fd;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
}
.editorial-hero-thesis span { color: #a78bfa; }
.editorial-hero-meta {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
    font-size: 12.5px; color: rgba(255,255,255,0.42);
    position: relative;
}

/* ================================================
   STICKY NAV（毛玻璃）
   ================================================ */
.nav-wrap {
    background: var(--glass-bg);
    /* 降低 blur 半径：24px→8px，减少 GPU 合成层开销 */
    backdrop-filter: blur(8px) saturate(1.6);
    -webkit-backdrop-filter: blur(8px) saturate(1.6);
    border-bottom: var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: sticky; top: 0; z-index: 100;
    /* 提升为合成层，避免滚动时重绘背景 */
    will-change: transform;
    transform: translateZ(0);
}
.nav-inner {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto; padding: 0 20px;
    display: flex; gap: 0;
    overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 18px;
    color: var(--color-text-muted);
    font-family: var(--font-family);
    font-size: 13px; font-weight: 500;
    white-space: nowrap;
    border: none; border-bottom: 2px solid transparent;
    background: none; cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    letter-spacing: -0.01em;
}
.nav-btn:hover { color: var(--color-success); }
.nav-btn.active { color: var(--color-success); border-bottom-color: var(--color-success); font-weight: 700; }
.nav-step {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-bg-table-header);
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-btn.active .nav-step { background: var(--color-success); color: #fff; }

/* ================================================
   CHAPTER IMAGE — 随 .pg 的 padding 自然缩进，不设 width:100%
   ================================================ */
.chapter-img {
    margin: 0 0 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}
.chapter-img img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.chapter-img-cap {
    background: var(--color-bg-table-header);
    border-top: 1px solid var(--color-border-light);
    padding: 8px 14px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ================================================
   PAGE LAYOUT
   ================================================ */
/* ---- .pg 宽度正确写法：不设 width，让 max-width + margin:auto 控制居中 ---- */
.pg { max-width: var(--content-max-width); margin: 0 auto; padding: 36px 20px 24px; box-sizing: border-box; }
/* 趋势洞察：分段式全部展开（各章节垂直堆叠，不做 Tab 隐藏切换） */
.trend-chapter { display: block; scroll-margin-top: 78px; }
.trend-chapter + .trend-chapter { margin-top: 6px; padding-top: 34px; border-top: 1px solid var(--color-border-light); }
.trend-chapter.first { padding-top: 6px; }
/* 导航项作为锚点链接时的基线对齐 */
.nav-btn { text-decoration: none; }

/* ── 章节导读卡 ── */
.ch-lead {
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-table-header));
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-success);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}
.ch-label {
    font-size: 11px; font-weight: 800; color: var(--color-success);
    letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px;
}
.ch-title { font-size: 20px; font-weight: 800; color: var(--color-text-primary); margin-bottom: 6px; letter-spacing: -0.02em; }
.ch-desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.65; }

/* ── Section 标题 ── */
.sec { margin-top: 34px; margin-bottom: 18px; }
.sec-h { font-size: 17px; font-weight: 800; color: var(--color-text-primary); margin-bottom: 4px; letter-spacing: -0.02em; }
.sec-sub { font-size: 13px; color: var(--color-text-muted); }

/* ── 分割线 ── */
.div { border: none; border-top: 1px solid var(--color-border-light); margin: 28px 0; }

/* ── 卡片 ── */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    transition: all var(--transition-normal);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); will-change: transform; }
.card-h {
    font-size: 15px; font-weight: 700;
    color: var(--color-text-primary);
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.card-ico {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}

/* ── 网格 ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media(max-width:768px){ .g2,.g3,.g4{ grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .g2,.g3,.g4{ grid-template-columns:1fr; } }

/* ── 统计卡片 ── */
.sc {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    position: relative; overflow: hidden;
}
.sc::before {
    content: ''; position: absolute; top:0; left:0; right:0; height:3px;
    background: var(--gradient-success);
}
.sc.info::before   { background: var(--color-info); }
.sc.danger::before { background: var(--color-danger); }
.sc.purple::before { background: var(--color-purple); }
.sc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); will-change: transform; }
.sc-num {
    font-size: 32px; font-weight: 800; line-height: 1.1;
    background: var(--gradient-success);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-variant-numeric: tabular-nums;
    display: block; margin-bottom: 4px;
}
.sc-num.red { background: linear-gradient(135deg,#E11D48,#F43F5E); -webkit-background-clip:text; background-clip:text; }
.sc-num.blue { background: linear-gradient(135deg,#2563EB,#3B82F6); -webkit-background-clip:text; background-clip:text; }
.sc-label { font-size: 12px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing:.05em; }
.sc-note  { font-size: 11px; color: var(--color-text-muted); margin-top:4px; }

/* ── Insight 洞察框 ── */
.ib {
    background: linear-gradient(135deg, #eeecff 0%, #f5f3ff 100%);
    border: 1px solid #c4b5fd;
    border-left: 4px solid var(--color-purple);
    border-radius: var(--radius-sm);
    padding: 16px 20px; margin: 16px 0;
}
.ib-label { font-size: 11px; font-weight: 800; color: var(--color-purple); letter-spacing:.7px; text-transform:uppercase; margin-bottom:5px; }
.ib-text  { font-size: 14px; font-weight: 600; color: #312e81; line-height: 1.6; }
.ib-green { background: #ecfdf5; border-color: #6ee7b7; border-left-color: var(--color-success); }
.ib-green .ib-label { color: var(--color-success); }
.ib-green .ib-text  { color: #064e3b; }
.ib-amber { background: #fffbeb; border-color: #fcd34d; border-left-color: var(--color-warning); }
.ib-amber .ib-label { color: var(--color-warning); }
.ib-amber .ib-text  { color: #78350f; }
.ib-red   { background: #fff5f5; border-color: #fca5a5; border-left-color: var(--color-danger); }
.ib-red .ib-label   { color: var(--color-danger); }
.ib-red .ib-text    { color: #7f1d1d; }
.ib-info  { background: #eff6ff; border-color: #93c5fd; border-left-color: var(--color-info); }
.ib-info .ib-label  { color: var(--color-info); }
.ib-info .ib-text   { color: #1e3a8a; }

/* ── 引用框 ── */
.qt {
    background: var(--color-bg-table-header);
    border-left: 3px solid var(--color-info);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 18px; margin: 14px 0;
    font-style: italic; color: var(--color-text-secondary);
    font-family: var(--font-editorial-body);
    font-size: 14px; line-height: 1.7; position: relative;
}
.qt cite { display:block; font-style:normal; font-size:12px; color:var(--color-text-muted); margin-top:6px; }

/* ── Badge 状态标签 ── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; flex-shrink:0; }
.b-success { background:rgba(5,150,105,.1); color:var(--color-success); }
.b-danger  { background:rgba(225,29,72,.1); color:var(--color-danger); }
.b-info    { background:rgba(37,99,235,.1); color:var(--color-info); }
.b-purple  { background:rgba(124,58,237,.1); color:var(--color-purple); }
.b-warning { background:rgba(217,119,6,.1); color:var(--color-warning); }
.b-neutral { background:rgba(120,113,108,.1); color:var(--color-text-muted); }
.b-success-solid { background:var(--color-success); color:#fff; }
.b-danger-solid  { background:var(--color-danger);  color:#fff; }
.b-info-solid    { background:var(--color-info);    color:#fff; }

/* ── 表格 ── */
.tbl-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.tbl { width:100%; border-collapse:collapse; font-size:13.5px; }
.tbl th {
    background: var(--color-bg-table-header); color:var(--color-text-muted);
    font-size:11.5px; font-weight:700; letter-spacing:.4px; text-transform:uppercase;
    padding:10px 14px; text-align:left; border-bottom:1px solid var(--color-border);
}
.tbl td { padding:11px 14px; border-bottom:1px solid var(--color-border-light); color:var(--color-text-secondary); vertical-align:middle; }
.tbl tr:last-child td { border-bottom:none; }
.tbl tbody tr:hover td { background:var(--color-bg-hover); }
.tbl-hl { background: rgba(5,150,105,.04); }

/* ── 时间线 ── */
.tl { position:relative; padding-left:30px; }
.tl::before {
    content:''; position:absolute; left:10px; top:8px; bottom:8px;
    width:2px; background:linear-gradient(to bottom, var(--color-success), var(--color-info));
    border-radius:1px;
}
.tl-item { position:relative; margin-bottom:22px; }
.tl-item:last-child { margin-bottom:0; }
.tl-item::before {
    content:''; position:absolute; left:-23px; top:5px;
    width:12px; height:12px; border-radius:50%;
    background: var(--color-bg-card); border:2px solid var(--color-success);
    transition: all var(--transition-fast);
}
.tl-item:hover::before { background:var(--color-success); transform:scale(1.3); box-shadow:var(--shadow-glow-success); }
.tl-item.danger::before { border-color:var(--color-danger); }
.tl-item.danger:hover::before { background:var(--color-danger); }
.tl-title { font-weight:700; font-size:14px; color:var(--color-text-primary); margin-bottom:3px; }
.tl-title.red { color:var(--color-danger); }
.tl-text  { font-size:13.5px; color:var(--color-text-secondary); line-height:1.65; }

/* ── 进度条 ── */
.progress-group { display:flex; flex-direction:column; gap:14px; }
.progress-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.progress-label { font-size:13px; font-weight:500; color:var(--color-text-secondary); }
.progress-value { font-size:13px; font-weight:700; color:var(--color-text-primary); font-variant-numeric:tabular-nums; }
.progress-track { height:8px; background:var(--color-bg-table-header); border-radius:var(--radius-full); overflow:hidden; border:1px solid var(--color-border-light); }
.progress-bar { height:100%; border-radius:var(--radius-full); background:var(--gradient-success); width:0; transition:width 800ms cubic-bezier(0.34,1.2,0.64,1); }
.progress-bar.info    { background:linear-gradient(90deg,#2563EB,#3B82F6); }
.progress-bar.warning { background:linear-gradient(90deg,#D97706,#F59E0B); }
.progress-bar.danger  { background:linear-gradient(90deg,#E11D48,#F43F5E); }
.progress-bar.purple  { background:linear-gradient(90deg,#7C3AED,#8B5CF6); }

/* ── 人格层卡片 ── */
.persona-list { display:flex; flex-direction:column; gap:10px; margin:16px 0; }
.persona-item {
    display:flex; align-items:center; gap:14px;
    background:var(--color-bg-card); border:1px solid var(--color-border);
    border-radius:var(--radius-md); padding:13px 16px;
    transition:all var(--transition-normal);
}
.persona-item:hover { border-color:rgba(124,58,237,.3); box-shadow:var(--shadow-glow-purple); }
.persona-num {
    width:30px; height:30px; border-radius:50%;
    background:linear-gradient(135deg,var(--color-purple),var(--color-info));
    color:#fff; font-size:12px; font-weight:800;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    box-shadow:var(--shadow-glow-purple);
}
.persona-name { font-weight:700; font-size:13.5px; color:var(--color-text-primary); margin-bottom:2px; }
.persona-desc { font-size:12.5px; color:var(--color-text-muted); line-height:1.5; }

/* ── VS Card（叙事扩展层）── */
.vs-grid {
    display:grid; grid-template-columns:1fr auto 1fr;
    gap:0; margin:20px 0; border-radius:var(--radius-lg);
    overflow:hidden; border:1px solid var(--color-border);
    box-shadow:var(--shadow-card);
}
.vs-side { padding:22px; background:#fff; }
.vs-side.vs-left  { background:#eff6ff; }
.vs-side.vs-right { background:#fff1f2; }
.vs-label { font-size:11px; font-weight:800; letter-spacing:1px; text-transform:uppercase; margin-bottom:8px; }
.vs-side.vs-left  .vs-label { color:#1d4ed8; }
.vs-side.vs-right .vs-label { color:#e11d48; }
.vs-title { font-size:15px; font-weight:800; margin-bottom:12px; color:var(--color-text-primary); letter-spacing:-0.01em; }
.vs-points { list-style:none; }
.vs-points li { font-size:13px; color:var(--color-text-secondary); padding:4px 0; display:flex; gap:6px; }
.vs-points li::before { content:'›'; color:currentColor; flex-shrink:0; }
.vs-divider {
    display:flex; align-items:center; justify-content:center;
    padding:0 14px; background:#1a1a2e; color:#fff;
    font-size:11px; font-weight:800; letter-spacing:1px; min-width:38px;
}
@media(max-width:600px){ .vs-grid{ grid-template-columns:1fr; } .vs-divider{ padding:10px; } }

/* ── Humor Box（叙事扩展层）── */
.humor-box {
    background:linear-gradient(135deg,#1a1a2e,#16213e);
    color:#fff; border-radius:var(--radius-lg);
    padding:28px; margin:24px 0; text-align:center;
    position:relative; overflow:hidden;
}
.humor-box::before {
    content:''; position:absolute; inset:0;
    background:url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='0.8' fill='%23ffffff06'/%3E%3C/svg%3E") repeat;
    pointer-events:none;
}
.humor-box .qm { font-size:3rem; line-height:1; color:#e94560; font-family:Georgia,serif; display:block; margin-bottom:4px; position:relative; }
.humor-box .qt-text { font-size:1rem; line-height:1.7; color:rgba(255,255,255,.9); margin:8px 0; position:relative; font-family:var(--font-editorial-body); }
.humor-box .qt-author { font-size:0.78rem; color:rgba(255,255,255,.42); position:relative; }
.humor-box-purple { background:linear-gradient(135deg,#533483,#e94560); }

/* ── 对话气泡（叙事扩展层）── */
.dialogue {
    background:#fff; border:1px solid var(--color-border);
    border-radius:var(--radius-lg); padding:22px; margin:18px 0;
    box-shadow:var(--shadow-card);
}
.dialogue-title {
    font-size:11px; font-weight:700; color:var(--color-text-muted);
    text-transform:uppercase; letter-spacing:1px;
    margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid var(--color-border);
}
.msg { display:flex; gap:10px; margin-bottom:12px; align-items:flex-start; }
.msg-avatar {
    width:32px; height:32px; border-radius:7px;
    background:#0f3460; color:#fff; font-size:10px; font-weight:700;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.msg-avatar.ai { background:#533483; }
.msg-bubble {
    background:#f3f4f6; border-radius:0 10px 10px 10px;
    padding:10px 14px; font-size:13.5px; line-height:1.6; max-width:85%;
}
.msg.msg-right { flex-direction:row-reverse; }
.msg.msg-right .msg-bubble { background:var(--color-info-100); border-radius:10px 0 10px 10px; }
.msg-name { font-size:10.5px; color:var(--color-text-muted); margin-bottom:4px; }

/* ── Easter Egg（叙事扩展层）── */
.easter-egg {
    background:linear-gradient(135deg,#533483,#e94560);
    color:#fff; border-radius:var(--radius-lg);
    padding:24px; margin-top:28px;
    font-size:14px; line-height:1.7;
}
.easter-egg h3 { color:#fff; margin-bottom:12px; font-size:16px; }
.easter-egg p  { color:rgba(255,255,255,.88); margin-bottom:8px; }
.easter-egg p:last-child { margin-bottom:0; }

/* ── Callout（标准清爽层）── */
.callout { padding:16px 20px; border-radius:var(--radius-md); margin:16px 0; border-left:4px solid; }
.callout-warn    { background:var(--color-warning-50); border-color:var(--color-warning); }
.callout-success { background:var(--color-success-50); border-color:var(--color-success); }
.callout-danger  { background:var(--color-danger-50);  border-color:var(--color-danger);  }
.callout-info    { background:var(--color-info-50);    border-color:var(--color-info);    }
.callout-title { font-weight:800; font-size:12px; text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.callout-warn .callout-title    { color:var(--color-warning); }
.callout-success .callout-title { color:var(--color-success); }
.callout-danger .callout-title  { color:var(--color-danger); }
.callout-info .callout-title    { color:var(--color-info); }
.callout p { font-size:13.5px; margin-bottom:0; }

/* ── 代码块 ── */
.cb { background:#1a1b26; border-radius:var(--radius-sm); padding:14px 18px; margin:12px 0; overflow-x:auto; }
.cb pre { color:#c0caf5; font-family:var(--font-family-mono); font-size:13px; line-height:1.65; }
.kw { color:#7aa2f7; } .str { color:#9ece6a; } .cm { color:#565f89; font-style:italic; }

/* ── 洞察卡片格 ── */
.insight-g { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:16px 0; }
@media(max-width:600px){ .insight-g{ grid-template-columns:1fr; } }
.insight-card {
    background:var(--color-bg-card); border:1px solid var(--color-border);
    border-radius:var(--radius-lg); padding:20px;
    transition:all var(--transition-normal);
}
.insight-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.insight-card .ic-num {
    font-size:11px; font-weight:800; color:var(--color-success);
    text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px;
}
.insight-card h4 { font-size:14px; font-weight:800; margin-bottom:8px; color:var(--color-text-primary); letter-spacing:-0.01em; }
.insight-card p  { font-size:13px; color:var(--color-text-muted); margin-bottom:0; line-height:1.6; }

/* ── 来源矩阵 ── */
.source-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:16px 0; }
@media(max-width:600px){ .source-grid{ grid-template-columns:1fr 1fr; } }
.source-card {
    background:var(--color-bg-card); border:1px solid var(--color-border);
    border-radius:var(--radius-md); padding:14px;
    transition:all var(--transition-normal);
}
.source-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:rgba(37,99,235,.3); }
.source-name { font-size:13px; font-weight:700; color:var(--color-text-primary); margin-bottom:4px; }
.source-type { font-size:11px; color:var(--color-text-muted); margin-bottom:6px; }
.source-rel  { font-size:12px; color:var(--color-text-secondary); line-height:1.5; }

/* ── 页脚 ── */
.report-footer { border-top:1px solid var(--color-border); padding-top:28px; margin-top:40px; }
.footer-refs { font-size:12.5px; color:var(--color-text-muted); line-height:1.8; }
.footer-refs a { color:var(--color-info); }
.footer-refs a:hover { color:var(--color-success); }

/* ── 动画入场 ── */
.animate-on-scroll {
    opacity:0; transform:translateY(16px);
    /* 仅动画 opacity 和 transform，避免触发 layout/paint */
    transition: opacity 350ms cubic-bezier(0.4,0,0.2,1), transform 350ms cubic-bezier(0.34,1.4,0.64,1);
    will-change: opacity, transform;
}
.animate-on-scroll.visible { opacity:1; transform:translateY(0); will-change: auto; }
@media(prefers-reduced-motion:reduce){ .animate-on-scroll{ transition:none; opacity:1; transform:none; will-change:auto; } }

/* 模型彩色强调标记(red/amber/blue/green)渲染为彩色文字 */
.hl-red { color: #ef4444; font-weight: 600; }
.hl-amber { color: #f59e0b; font-weight: 600; }
.hl-blue { color: #2563eb; font-weight: 600; }
.hl-green { color: #059669; font-weight: 600; }
.hl-em { font-style: italic; }
.hl-strong { font-weight: 700; }

/* Hero 高亮胶囊（替代原先挤在一起的内联 span） */
.hero-highlights{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.hl-chip{display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;font-size:14px;font-weight:700;line-height:1.4;color:#fff;letter-spacing:.01em;box-shadow:0 2px 8px rgba(15,23,42,.18)}
.hl-chip.hl-amber{background:linear-gradient(135deg,#fbbf24,#f59e0b)}
.hl-chip.hl-red  {background:linear-gradient(135deg,#f87171,#ef4444)}
.hl-chip.hl-blue {background:linear-gradient(135deg,#60a5fa,#2563eb)}
.hl-chip.hl-green{background:linear-gradient(135deg,#34d399,#059669)}
.hl-chip.hl-violet{background:linear-gradient(135deg,#a78bfa,#7c3aed)}

/* 入场动画揭示：滚动进入视口时由 JS 加 .visible 显示（无 JS/观察器失效时兜底 1.2s 内强制显示） */
.animate-on-scroll.visible { opacity:1; transform:none; }
