/* ============================================================
   v2-shell.css —— 设计稿的「外壳」部分（全站生效）
   ============================================================
   由 v2.css 机器切分而来：**token + 侧栏 + 顶栏 + 内容容器 + 页脚 + 移动端菜单/tab
   + 命令面板 + Toast + 启动遮罩**。这些在 base.html 里，每一页都要用。

   页面级组件（新闻卡 / 卡片 / 标题 / 筛选 chip / 分页 / 热榜 …）**不在这里**，
   它们在 v2-home.css，全部圈在 `body.page-home` 底下。

   为什么要切：v2.css 原样全局加载时，`.section-title` 这类通用类名会把**每一页**
   的标题从 28px 衬线压成 17px，`.card`/`.news-card`/`.pagination` 同理——
   点进任何一个二级页都是「乱的」。设计稿那份是给首页写的，它没打算管别的页。
   ============================================================ */

/* ============================================================
   v2.css —— 设计稿 1_首页_定稿v2.html 的 <style> 原样搬运
   ============================================================
   沛伶 2026-08-11：「把封面 html 的行情页和侧边栏，本地部署做得和 html 一模一样，
   但是本地部署的接口留着」。

   **这个文件是抄来的，不要在这里改设计。** 它逐字对应设计稿第 20–1498 行；
   要对比差异就 diff 那份 html，别在这里加本地补丁——本地补丁一律进 v2-local.css，
   否则下次同步设计稿时分不清哪些是抄的、哪些是我们改的。

   加载顺序：main.css → v2.css → v2-local.css。
   v2.css 在 main.css 之后，所以同名选择器由设计稿说了算（这正是「一模一样」要的）；
   main.css 仍然管着设计稿里没有的那些页面（数据总览 / 算法说明 / 尺寸对比 …）。

   ⚠️ 它的 :root 会覆盖 main.css 的同名 token，已知三处会波及全站：
      --fs-xs 12px→11px · --fs-sm 14px→13px · --radius-sm 6px→10px
   这是设计稿本身的取值，不是失手；要改回来在 v2-local.css 里改，别动这里。
   ============================================================ */

        /* ============================================================
           Design Tokens（继承自测试实色版.html 玻璃框架）
           ============================================================ */
        :root {
            --paper: #FAF8F4;
            --card: #FFFFFF;
            --ink: #1E1C18;
            --ink2: #4A4640;
            --ink3: #6A6659;
            --ink4: #8A8578;
            --gold: #D9A514;
            --gold-text: #856A00;
            --gold-light: #FFF6DC;
            --gold-wash: rgba(217, 165, 20, .08);
            --green: #2E6B4F;
            --green-deep: #1E4D38;
            --red: #A94A32;
            --red-deep: #8C3A26;
            --line: #E9E4D8;
            --serif: Georgia, 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
            --sans: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
            /* 玻璃 */
            --glass-bg: transparent;
            --glass-border: rgba(255, 255, 255, 0.5);
            --glass-shadow: 0 8px 32px rgba(30, 28, 24, 0.04);
            --glass-blur: 20px;
            --radius-lg: 20px;
            --radius-md: 14px;
            --radius-sm: 10px;
            --sp-2: 8px;
            --sp-4: 16px;
            --sp-6: 24px;
            --fs-xs: 11px;
            --fs-sm: 13px;
            --fs-base: 15px;
            --invert-bg: #1E1C18;
            --on-invert: #FAF8F4;
            --red-light: rgba(169,74,50,0.08);
            --green-light: rgba(46,107,79,0.08);
            --on-red: #fff;
        }

        /* ===== 暗色主题 ===== */
        [data-theme="dark"] {
            --paper: #181512;
            --card: #24211C;
            --ink: #EDE8DC;
            --ink2: #C4BEB0;
            --ink3: #9A9488;
            --ink4: #7A7468;
            --gold: #E8C040;
            --gold-text: #D4B030;
            --gold-light: #3D3010;
            --gold-wash: rgba(224, 184, 48, .12);
            --green: #5AB88A;
            --green-deep: #4A9E70;
            --red: #E07860;
            --red-deep: #C86048;
            --line: #3A3530;
            --glass-bg: transparent;
            --glass-border: rgba(255, 255, 255, 0.14);
            --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
            --invert-bg: #EDE8DC;
            --on-invert: #181512;
            --red-light: rgba(224,120,96,0.15);
            --green-light: rgba(90,184,138,0.12);
        }
        /* 暗色模式下所有卡片统一定义更高不透明度 */
        
        [data-theme="dark"] .sidebar { background: rgba(24,20,16,0.82) !important; }
        [data-theme="dark"] .header { background: rgba(32,28,24,0.68) !important;border-color:rgba(255,255,255,0.14); }
        
        [data-theme="dark"] .glass-card { background: rgba(32,28,24,0.65) !important;border-color:rgba(255,255,255,0.12); }

        /* ===== 全局重置 ===== */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--sans);
            background: #F2EFE8;
            min-height: 100vh;
            padding: 20px;
            display: flex;
            gap: 20px;
            position: relative;
            color: var(--ink);
            transition: background 0.3s, color 0.3s;
        }
        [data-theme="dark"] body { background: #141210; }

        /* 背景光晕 */
        body::before {
            content: '';
            position: fixed; top: -20%; left: -10%;
            width: 500px; height: 500px;
            background: radial-gradient(circle, rgba(217,165,20,0.10), transparent 70%);
            border-radius: 50%; z-index: 0; pointer-events: none;
        }
        body::after {
            content: '';
            position: fixed; bottom: -10%; right: -5%;
            width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(30,28,24,0.03), transparent 70%);
            border-radius: 50%; z-index: 0; pointer-events: none;
        }
        [data-theme="dark"] body::before {
            background: radial-gradient(circle, rgba(224,184,48,0.12), transparent 70%);
        }
        [data-theme="dark"] body::after {
            background: radial-gradient(circle, rgba(232,228,218,0.04), transparent 70%);
        }

        /* ===== 跳过链接 ===== */
        .skip-link {
            position: absolute; top: -100px; left: 20px;
            background: var(--gold); color: #fff; padding: 8px 16px;
            border-radius: var(--radius-sm); z-index: 1000;
            font-weight: 600; text-decoration: none; transition: top 0.2s;
        }
        .skip-link:focus { top: 20px; }

        /* ===== 玻璃基类 ===== */
        .glass {
            background: var(--glass-bg) !important;
            backdrop-filter: blur(var(--glass-blur)) saturate(180%);
            -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            box-shadow: var(--glass-shadow);
        }
        .glass-card {
            background: rgba(255,255,255,0.50) !important;
            backdrop-filter: blur(16px) saturate(180%);
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            border: 1px solid rgba(255,255,255,0.6);
            border-radius: var(--radius-md);
            box-shadow: 0 4px 20px rgba(30,28,24,0.05);
        }

        /* ===== 侧边栏 ===== */
        .sidebar {
            width: 240px; padding: 20px 14px; flex-shrink: 0;
            height: calc(100vh - 40px); position: sticky; top: 20px;
            display: flex; flex-direction: column; z-index: 60;
            background: rgba(252,250,246,0.78);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            box-shadow: 0 4px 24px rgba(30,28,24,0.06);
            transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
        }
        [data-theme="dark"] .sidebar { background: rgba(26,23,20,0.78); }
        .logo-area {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 20px; padding: 4px 8px;
        }
        .logo-icon {
            width: 36px; height: 36px; background: var(--gold);
            border-radius: var(--radius-sm);
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-weight: 700; font-size: 16px;
            border: 1px solid rgba(255,255,255,0.3);
        }
        /* 站名统一：中文先行 + AutoNews 降为副标。
           改前站名是精神分裂的——侧栏/页脚叫「购车决策台」，
           点过去的方法页和数据室都叫「新闻检测站」，评委点一下就看见两个名字。
           调研里国奖作品清一色中文名先行（古韵新章 / 诗韵时光机 / 见闻），
           这里先统一到出现频率更高、也更贴差异化主线的「新闻检测站」。
           ⚠️ 最终品牌名仍待沛伶拍板，这版只是消除不一致，不是替她定名。 */
        .logo-text {
            font-weight: 700; font-size: 16px; color: var(--ink);
            letter-spacing: -0.2px; line-height: 1.15;
        }
        .logo-text small { display:block; font-weight:600; font-size:9px; letter-spacing:.18em;
            color: var(--ink4); }
        .logo-text .gradient-text { color: var(--gold); }

        .nav-menu { flex: 1; list-style: none; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }

        .nav-section-label {
            font-size: 10px; font-weight: 600; color: var(--ink4);
            text-transform: uppercase; letter-spacing: 1.5px;
            padding: 14px 12px 6px; margin-top: 4px;
        }
        .nav-section-label:first-child { padding-top: 0; margin-top: 0; }

        .nav-item {
            display: flex; align-items: center; gap: 12px;
            padding: 9px 12px; border-radius: var(--radius-sm);
            color: var(--ink2); font-size: 13px; font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer; text-decoration: none;
        }
        .nav-item i, .nav-item .nav-icon {
            width: 20px; font-size: 15px; text-align: center; color: var(--ink3); opacity: 0.65;
        }
        .nav-item.active { background: var(--gold-wash); color: var(--ink); font-weight: 600; }
        .nav-item.active i, .nav-item.active .nav-icon { color: var(--gold); opacity: 1; }
        .nav-item:not(.active):hover { background: rgba(30,28,24,0.05); color: var(--ink); }
        .nav-item:not(.active):hover i, .nav-item:not(.active):hover .nav-icon { opacity: 0.9; }

        /* 侧边栏下拉子菜单 — 内嵌展开 */
        .nav-dropdown { display: flex; flex-direction: column; }
        .nav-dropdown .dropdown-menu {
            display: none; flex-direction: column; gap: 1px;
            padding: 2px 0 4px 28px;
        }
        .nav-dropdown.open .dropdown-menu { display: flex; }
        .dropdown-menu a {
            display: block; padding: 7px 12px; font-size: 12px;
            color: var(--ink3); text-decoration: none; white-space: nowrap;
            border-radius: var(--radius-sm); transition: all 0.15s;
        }
        .dropdown-menu a:hover, .dropdown-menu a.active { background: var(--gold-wash); color: var(--ink); }

        .nav-divider { height: 1px; background: var(--line); margin: 8px 12px; }

        .designer-info {
            margin-top: auto; padding-top: 14px;
            border-top: 1px solid var(--line);
            display: flex; align-items: center; gap: 10px; padding-left: 8px;
        }
        .avatar {
            width: 32px; height: 32px; background: var(--gold-wash);
            border-radius: 50%; display: flex; align-items: center;
            justify-content: center; font-size: 13px; font-weight: 600;
            color: var(--gold);
        }
        .designer-name { font-size: 12px; font-weight: 500; color: var(--ink); }
        .designer-title { font-size: 10px; color: var(--ink4); }

        /* 侧边栏遮罩层（移动端抽屉用） */
        .sidebar-backdrop {
            display: none; position: fixed; inset: 0; z-index: 55;
            background: rgba(30,28,24,0.25);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }

        /* ===== 主区域 ===== */
        .main { flex: 1; display: flex; flex-direction: column; min-width: 0; z-index: 1; gap: 16px; }

        /* ===== 顶部栏 ===== */
        .header {
            padding: 14px 28px; display: flex; justify-content: space-between;
            align-items: center; flex-shrink: 0;
            background: rgba(255,255,255,0.58) !important;
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255,255,255,0.6);
            border-radius: var(--radius-md);
            box-shadow: 0 4px 24px rgba(30,28,24,0.06);
            transition: border-color 0.3s, box-shadow 0.3s;
            position: sticky; top: 20px; z-index: 20;
        }
        [data-theme="dark"] .header { background: rgba(36,33,28,0.60) !important;border-color:rgba(255,255,255,0.15); }
        .header.scrolled {
            border-bottom: 1px solid var(--gold);
            box-shadow: 0 4px 24px rgba(30,28,24,0.06);
        }
        .header-left { display: flex; align-items: center; gap: 16px; }
        .greeting { font-size: 14px; color: var(--ink3); }
        .greeting strong { color: var(--ink); font-weight: 600; }
        .header-right { display: flex; align-items: center; gap: 16px; }

        /* 顶部搜索输入框 */
        .header-search {
            display: flex; align-items: center; gap: 8px;
            padding: 6px 14px; border-radius: var(--radius-sm);
            background: rgba(30,28,24,0.04); border: 1px solid var(--line);
            transition: all 0.2s; min-width: 260px; max-width: 360px;
        }
        .header-search:focus-within {
            background: rgba(30,28,24,0.02); border-color: var(--gold);
            box-shadow: 0 0 0 3px var(--gold-wash);
        }
        .header-search i { color: var(--ink4); font-size: 14px; flex-shrink: 0; }
        .header-search input {
            border: none; outline: none; background: transparent;
            font-size: var(--fs-sm); font-family: var(--sans); color: var(--ink);
            width: 100%; min-width: 160px;
        }
        .header-search input::placeholder { color: var(--ink4); }
        .header-search kbd {
            background: rgba(30,28,24,0.06); border: 1px solid var(--line);
            border-radius: 4px; padding: 1px 6px; font-size: 10px;
            font-family: var(--sans); color: var(--ink4); flex-shrink: 0;
        }

        /* 问一句：紧贴搜索框，样式跟旁边那几颗顶栏按钮同族（#589 / 五词化收口）。
           它是搜索的另一半，所以位置在搜索框右边而不是导航里。 */
        .header-ask {
            display: flex; align-items: center; gap: 5px;
            padding: 6px 10px; border-radius: var(--radius-sm);
            border: 1px solid var(--line); background: transparent;
            font-family: var(--sans); font-size: var(--fs-xs);
            color: var(--ink3); text-decoration: none;
            transition: all 0.2s; white-space: nowrap;
        }
        .header-ask:hover { border-color: var(--gold); color: var(--gold-text); }
        .header-ask.is-on { border-color: var(--gold); color: var(--gold-text); background: var(--gold-wash); }

        /* 长辈模式切换（带文字说明） */
        .elder-toggle-btn {
            display: flex; align-items: center; gap: 5px;
            padding: 6px 10px; border-radius: var(--radius-sm);
            border: 1px solid var(--line); background: transparent;
            cursor: pointer; font-family: var(--sans); font-size: var(--fs-xs);
            color: var(--ink3); transition: all 0.2s; white-space: nowrap;
        }
        .elder-toggle-btn:hover { border-color: var(--gold); color: var(--ink); }
        .elder-toggle-btn.active { background: var(--gold-wash); border-color: var(--gold); color: var(--gold-text); font-weight: 600; }
        .elder-toggle-btn i { font-size: 14px; }

        .btn { padding: 6px 14px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-family: var(--sans); cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
        .btn-ghost { background: transparent; border: 1px solid transparent; color: var(--ink3); }
        .btn-ghost:hover { background: rgba(30,28,24,0.04); color: var(--ink); }
        .btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink2); }
        .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
        .btn-primary { background: var(--gold); border: 1px solid var(--gold); color: #fff; }
        .btn-primary:hover { background: var(--gold-text); border-color: var(--gold-text); }

        .theme-toggle {
            background: transparent; border: 1px solid transparent;
            border-radius: var(--radius-sm); padding: 6px 10px;
            cursor: pointer; font-size: 16px; transition: all 0.2s;
            color: var(--ink3);
        }
        .theme-toggle:hover { background: rgba(30,28,24,0.04); color: var(--ink); }

        .cmdk-kbd {
            background: rgba(30,28,24,0.06); border: 1px solid var(--line);
            border-radius: 5px; padding: 2px 8px; font-size: 11px;
            font-family: var(--sans); color: var(--ink3);
        }

        .user-profile { display: flex; align-items: center; gap: 10px; margin-left: 4px; cursor: pointer; transition: opacity 0.2s; }
        .user-profile:hover { opacity: 0.8; }
        .user-avatar {
            width: 34px; height: 34px; background: var(--gold);
            border-radius: 50%; display: flex; align-items: center;
            justify-content: center; color: #fff; font-weight: 600; font-size: 13px;
        }
        .user-name { font-size: 14px; font-weight: 500; color: var(--ink); }

        /* 汉堡按钮 */
        .hamburger {
            display: none; flex-direction: column; gap: 5px;
            background: transparent; border: none; cursor: pointer;
            padding: 6px; z-index: 30;
        }
        .hamburger span {
            display: block; width: 22px; height: 2px;
            background: var(--ink); border-radius: 2px; transition: all 0.25s;
        }
        .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger.open span:nth-child(2) { opacity: 0; }
        .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* ===== 内容区 ===== */
        .content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding-right: 4px; }
        .content::-webkit-scrollbar { width: 4px; }
        .content::-webkit-scrollbar-track { background: rgba(30,28,24,0.04); border-radius: 4px; }
        .content::-webkit-scrollbar-thumb { background: rgba(217,165,20,0.25); border-radius: 4px; }

        /* ===== 统计卡片 ===== */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* ===== 双栏卡片 ===== */
        
        
        
        
        
        
        
        
        

        /* ===== 新闻列表 ===== */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* ===== 热搜模块 ===== */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* ===== 通知铃铛徽标 ===== */
        .bell-dot {
            position: absolute; top: 2px; right: 2px;
            background: var(--red); color: var(--on-red); font-size: 10px;
            min-width: 16px; height: 16px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; line-height: 1;
        }

        /* ===== 登录/注册快捷入口 ===== */
        .auth-links { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
        .auth-links .btn { white-space: nowrap; }

        /* ============================================================
           home-demo 新增组件样式
           ============================================================ */
        /* --- 全局玻璃分割：所有内容板块统一玻璃边框 --- */
        

        /* --- 页面布局网格 --- */
        /* 末栏原本是 0.5fr（放单行文字的早报卡够用），换成热力图后要给够宽度，
           否则标题和图例全折行。从验稿台和头版各匀一点过来。 */
        
        

        /* 四栏中的今日头版：垂直紧凑版 */
        
        
        
        
        
        
        
        

        /* 四栏中的 Bento：垂直堆叠 */
        
        
        
        
        
        
        

        /* ============================================================
           定稿新增组件（对着两轮独立评审 + 国一调研补的五件）
           原则：首页只给结论，过程住在一击之外。加进来的每一块都要挤掉一块旧的，
           块数净增 0——v4 就是只加不减才把世界观堆到超自己纪律四倍。
           ============================================================ */

        /* ① 站宣言：占掉原来「Good evening. JY」的位置。
           评委第一眼要能答「这是什么、和普通汽车资讯站差在哪」，不该靠他自己发现。 */
        .creed { display:flex;align-items:center;gap:9px;font-size:13px;color:var(--ink2);min-width:0; }
        /* #627：右组占宽后宣言可能只剩几十像素，min-width:0 会让它一字一列竖排 30 行、
           把 sticky 顶栏撑到 492px 高（1264px 视口实测）。单行省略号截断兜底；
           窄到只剩几个字没意义，≤1280 直接让位（宣言在门头/关于页仍有完整出处）。 */
        .creed > span:not(.mark) { white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0; }
        .creed .mark { flex-shrink:0;width:3px;height:15px;border-radius:2px;background:var(--gold); }
        .creed b { color:var(--ink);font-weight:700; }
        .creed .sep { color:var(--line);margin:0 1px; }
        @media (max-width: 1280px) { .creed { display:none; } }   /* #627 */

        /* ② 首页热力图缩略版：挤掉「今日早报」卡（那张的三条标题在 feed 和热榜里都出现过，
           是首屏信息密度最低的一张）。首页只要看得出「有红有金、有格局」，
           完整口径在数据室——这就是详略。 */
        
        
        
        
        
        
        
        
        /* 头版右栏要和大图等高。只给容器 flex:1 不够——行高仍按内容算，
           底部照样留一大块白；**grid-auto-rows 才是让行跟着长高的那一句**。 */
        
        
        
        
        
        
        /* 品牌列名：不写死颜色就会掉进「未着色的 <a> 后代」那档默认蓝（实测 rgb(0,0,238)）
           ——整块 mini-heat 是个链接，里面任何没指定 color 的文本都会中招。 */
        
        
        
        
        

        /* ③ 被拦样例卡：从底部折叠区提一张上来，明面示范「我们会拦」。
           「会拦」比「有分数」直观十倍——它是判断力的可见证据。
           灰化 + 拦截原因写在脸上，不做成正常卡的样子（避免看起来像我们在推荐它）。 */
        /* 灰化只作用在配图上，不作用在整张卡——filter 会连子元素一起渲染，
           整卡灰化会把红封条和红色扣分项一起吃掉，那两样恰恰是要让人看见的信号。 */
        
        
        
        
        
        
        
        
        

        /* ④ 早报降级成右栏一行：它不回答首屏三问，但仍是个入口，留一行不留一卡 */
        
        
        
        
        

        /* 返修区一行（原来是可展开的折叠区，样例提到明面后这里只留事实） */
        
        
        
        

        /* ⑤ 落地证据：回答「这是不是赛前突击的 demo」。多数参赛作品拿不出运行记录 */
        .footer-uptime { font-size:11px;color:var(--ink4);text-align:center;margin-top:8px; }
        .footer-uptime b { color:var(--ink2);font-weight:700; }

        /* ============================================================
           v2 版式（沛伶指定）：布局照 v5 国一版，配色质感沿用定稿。
           一切圆角/毛玻璃/暖白都走既有 token，不新造色号。
           ============================================================ */

        /* 门头：站名 + 门头数字 + 期号 */
        
        
        
        
        
        
        /* 门头数字也可下钻——点不进去的数字宁可不摆 */
        
        
        
        
        
        
        
        
        
        

        /* 检测线：通栏，金边强调它是主入口 */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* 头版（大图）｜热力图 —— 沛伶指定：头版右边放热力图 */
        
        
        
        
        
        
        
        
         /* 原来是半透明白底 + 浅金字，压在浅色图区上几乎看不见（截图实测）。
           改成深底 + 亮金字：图片明暗不可控，只有自带深底才在任何图上都读得清。 */
        
        
        
        
        
        
        /* 年检章：压在大图右下，不挡标题 */
        /* 章放右上：右下是图注（授权署名不能被压），左下是标题 */
        
        
        
        
        
        
        
        

        /* 数据带：田字格改横排四个，保留 emoji 图标那套长相 */
        
        
        
        
        
        
        
        
        
        
        

        
        

        /* --- Ticker 品牌声量行情条 --- */
        
        
        /* 「抽检中 56.5%」挂在门脸上，可点进方法页。
           这个数没过 80% 上线阈值——挂出来是纪律，不是失误：达标前所有倾向结论都带这个牌子。 */
        
        
        
        
        
        
        
        
        
        
        @keyframes ticker-scroll{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

        /* --- Deck 验稿台 --- */
        
        
        
        
        
        
        
        
        
        
        
        /* 五个工位：回答「你们到底怎么检的」。评委必问，摆在入口比写在文档里管用 */
        
        
        

        /* 数字下钻：门头/数据带每个数字都能点进清单。点不进去的数字宁可不摆 */
        
        
        
        

        /* 页脚证据三连：评委必问的三件事常驻页脚，不用翻菜单 */
        .footer-evidence { display:flex;flex-wrap:wrap;gap:8px;justify-content:center;
            padding:12px 0 4px;border-bottom:1px solid var(--line);margin-bottom:10px; }
        .fe-key { display:inline-flex;align-items:center;gap:6px;padding:5px 13px;
            border-radius:14px;font-size:12px;font-weight:700;text-decoration:none;
            color:var(--gold-text);background:var(--gold-wash);border:1px solid rgba(217,165,20,.22);
            transition:background .2s; }
        .fe-key:hover { background:var(--gold-light); }

        /* --- Frontpage 今日头版（毛玻璃版 + 设计方案板） --- */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* --- 三档信息流卡片（排版即判决） --- */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* --- Hero 区 --- */
        
        
        
        
        
        
        
        
        
        
        
        

        /* --- Headlight streak --- */
        
        @keyframes hl-sweep{ 0%,100%{left:-60%} 50%{left:120%} }

        /* --- Bento 数据带 --- */
        
        
        
        
        
        
        
        

        /* --- 温度仪表 --- */
        
        
        
        
        
        
        
        
        
        
        
        

        /* --- 早报快讯 --- */
        
        
        
        

        /* --- Filter chip 栏 --- */
        
        
        
        
        
        
        
        
        
        
        

        /* --- 杂志网格 --- */
        
        
        
        
        
        
        

        /* --- Data chips --- */
        
        
        
        
        
        
        
        
        
        
        

        /* --- AI badge + quality badge --- */
        
        
        
        
        
        
        
        
        

        /* --- 低质折叠 --- */
        
        
        
        
        
        
        
        
        

        /* --- 分页 --- */
        
        
        
        
        

        /* --- 侧栏（个性化推荐 + 热门排行） --- */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* --- reveal/stagger 动画 --- */
        @keyframes revealUp{ from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
        
        

        /* --- card-glow --- */
        
        

        /* --- section watermark --- */
        
        

        /* ===== 启动遮罩（仪表自检） ===== */
        .startup-overlay {
            display: none; position: fixed; inset: 0; z-index: 9999;
            background: var(--paper); flex-direction: column;
            align-items: center; justify-content: center; gap: 20px;
        }
        
        .startup-tacho { width: 120px; height: 120px; }
        .startup-tacho .tacho-arc {
            transition: stroke-dashoffset 0.6s ease-out;
        }
        .startup-tacho .needle {
            transform-origin: 60px 60px;
            transition: transform 0.4s ease-out;
        }
        .startup-odometer { font-size: 42px; font-weight: 700; color: var(--ink); font-family: var(--serif); }
        .startup-label { font-size: 18px; color: var(--gold); font-weight: 600; letter-spacing: 4px; text-transform: uppercase; }

        /* ===== Toast ===== */
        .toast {
            position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
            background: var(--invert-bg); color: var(--on-invert);
            padding: 12px 24px; border-radius: var(--radius-sm);
            font-size: var(--fs-sm); z-index: 10000; opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
            pointer-events: none; white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
        }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        /* ===== 车灯光束 ===== */
        .headlight-beam {
            position: fixed; top: 0; left: -100%; width: 200%; height: 100%;
            background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.6) 48%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.6) 52%, transparent 100%);
            z-index: 9998; pointer-events: none;
            animation: headlight-sweep 0.6s ease-in-out forwards;
        }
        @keyframes headlight-sweep{
            from { left: -100%; }
            to   { left: 100%; }
        }

        /* ===== 移动端全屏菜单 ===== */
        .mobile-menu {
            display: none; position: fixed; inset: 0; z-index: 50;
            background: var(--paper); flex-direction: column;
            padding: 80px 24px 40px; overflow-y: auto; gap: 4px;
        }
        .mobile-menu.open { display: flex; }
        .mobile-menu a, .mobile-menu button {
            display: block; padding: 12px 16px; border-radius: var(--radius-sm);
            font-size: 16px; color: var(--ink2); text-decoration: none;
            font-family: var(--sans); font-weight: 500; transition: all 0.15s;
            background: transparent; border: none; cursor: pointer; text-align: left;
        }
        .mobile-menu a:hover, .mobile-menu a.active, .mobile-menu button:hover { background: var(--gold-wash); color: var(--ink); }
        .mobile-menu .mobile-menu-label {
            font-size: 12px; color: var(--ink4); padding: 8px 16px 4px;
            text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
        }
        .mobile-menu .divider-gold {
            border: none; height: 1px; background: var(--line); margin: var(--sp-2) 0;
        }

        /* ===== 移动端底部 Tab Bar ===== */
        .mobile-tab-bar {
            display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
            background: transparent;
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-top: 1px solid var(--glass-border);
            padding: 6px 0 env(safe-area-inset-bottom, 8px);
        }
        .mobile-tab-bar nav {
            display: flex; justify-content: space-around; align-items: center;
            max-width: 500px; margin: 0 auto;
        }
        .mobile-tab-bar a, .mobile-tab-bar button {
            display: flex; flex-direction: column; align-items: center; gap: 2px;
            padding: 6px 10px; font-size: 10px; color: var(--ink3);
            text-decoration: none; border: none; background: transparent;
            cursor: pointer; font-family: var(--sans); transition: color 0.15s;
        }
        .mobile-tab-bar a.active, .mobile-tab-bar a:hover, .mobile-tab-bar button:hover { color: var(--gold); }
        .mobile-tab-bar .tab-icon { font-size: 18px; }

        /* ===== CMDK 命令面板 ===== */
        .cmdk-overlay {
            display: none; position: fixed; inset: 0; z-index: 100;
            background: rgba(30,28,24,0.3);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            align-items: flex-start; justify-content: center;
            padding-top: 120px;
        }
        .cmdk-overlay.open { display: flex; }
        .cmdk-box {
            width: 560px; max-width: 90vw;
            background: var(--card); border: 1px solid var(--glass-border);
            border-radius: var(--radius-md); box-shadow: 0 16px 48px rgba(30,28,24,0.15);
            overflow: hidden;
        }
        .cmdk-header {
            display: flex; align-items: center; gap: 12px;
            padding: 14px 18px; border-bottom: 1px solid var(--line);
        }
        .cmdk-icon { font-size: 18px; color: var(--ink3); }
        .cmdk-input {
            flex: 1; border: none; outline: none; font-size: 16px;
            font-family: var(--sans); background: transparent; color: var(--ink);
        }
        .cmdk-input::placeholder { color: var(--ink4); }
        .cmdk-body { max-height: 360px; overflow-y: auto; }
        .cmdk-hint { padding: 24px 18px; text-align: center; color: var(--ink4); font-size: var(--fs-sm); }
        .cmdk-results { padding: 4px 0; }
        .cmdk-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 10px 18px; text-decoration: none; color: var(--ink);
            font-size: var(--fs-sm); transition: background 0.1s; gap: 12px;
        }
        .cmdk-item.active { background: var(--gold-wash); }
        .cmdk-item-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .cmdk-item-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
        .cmdk-item-section { font-size: var(--fs-xs); color: var(--ink4); background: rgba(30,28,24,0.04); padding: 2px 8px; border-radius: 4px; }
        .cmdk-score-bar { width: 48px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
        .cmdk-score-fill { height: 100%; background: var(--gold); border-radius: 2px; }
        .cmdk-score-pct { font-size: var(--fs-xs); color: var(--ink4); width: 28px; text-align: right; }
        .cmdk-footer {
            display: flex; justify-content: space-between; align-items: center;
            padding: 10px 18px; border-top: 1px solid var(--line);
            font-size: var(--fs-xs); color: var(--ink4);
        }
        .cmdk-all { background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 12px; font-size: var(--fs-xs); color: var(--ink2); cursor: pointer; font-family: var(--sans); }
        .cmdk-all:hover { border-color: var(--gold); color: var(--gold); }

        /* ===== 页脚 ===== */
        .site-footer {
            margin-top: auto; padding-top: 16px; flex-shrink: 0;
        }
        .footer-marquee {
            overflow: hidden; white-space: nowrap;
            padding: 8px 0; margin-bottom: 12px;
            mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        }
        .marquee-track {
            display: inline-flex; gap: 32px;
            animation: marquee-scroll 20s linear infinite;
        }
        .marquee-track span {
            font-size: var(--fs-xs); font-weight: 700; color: var(--ink4);
            letter-spacing: 3px;
        }
        @keyframes marquee-scroll{
            from { transform: translateX(0); }
            to   { transform: translateX(-50%); }
        }
        .footer-info {
            display: flex; flex-wrap: wrap; gap: 8px 24px;
            align-items: center; justify-content: center;
            font-size: var(--fs-xs); color: var(--ink4);
            padding: 8px var(--sp-4); text-align: center;
        }
        .footer-info a { color: var(--ink3); text-decoration: none; }
        .footer-info a:hover { color: var(--gold); }
        .footer-disclaimer {
            max-width: 900px; margin: 8px auto 0;
            text-align: center; font-size: var(--fs-xs); color: var(--ink4);
            line-height: 1.9; padding: 0 var(--sp-4);
        }
        .footer-disclaimer a { color: var(--ink3); }
        .footer-disclaimer b { color: var(--ink3); font-weight: 600; }

        /* ===== 长辈模式 ===== */
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* ===== 里程表翻牌动画 ===== */
        .odo { display: inline-flex; gap: 2px; vertical-align: middle; }
        .odo-col {
            display: block; width: 0.6em; height: 0.9em; overflow: hidden;
            position: relative; background: rgba(30,28,24,0.04); border-radius: 3px;
        }
        .odo-strip {
            display: flex; flex-direction: column;
            transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
        }
        .odo-strip span {
            display: flex; align-items: center; justify-content: center;
            width: 0.6em; height: 0.9em; font-weight: 700; font-size: inherit;
            color: var(--ink);
        }

        /* ===== SVG ring 动画 ===== */
        .ring-fg { transition: stroke-dashoffset 0.8s ease-out; }

        /* ===== 响应式 ===== */
        
@media (max-width: 1024px) {
.sidebar { width: 210px; padding: 16px 12px; }
            .nav-item { padding: 8px 10px; font-size: 12px; }
}

        
@media (max-width: 900px) {
body { padding: 12px; gap: 12px; flex-direction: row; }
            /* 侧边栏 → 左侧抽屉 */
            .sidebar {
                position: fixed; top: 0; left: 0; height: 100vh;
                width: 260px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
                transform: translateX(-100%);
                z-index: 60; padding-top: 24px;
            }
            .sidebar.open { transform: translateX(0); }
            .sidebar-backdrop.show { display: block; }
            .main { min-width: 0; }
            
            .header { padding: 10px 14px; border-radius: var(--radius-sm); top: 12px; }
            .content { padding-right: 0; }
            
            
            
            
            
            
            .hamburger { display: flex; }
            .mobile-tab-bar { display: block; }
            body { padding-bottom: 70px; }
            .user-name { display: none; }
            /* 顶栏右侧组在 390px 下实测撑到 393px，把整页顶出 466px 的横向滚动
               （实色版原本就有这个 bug，不是新加的）。收窄搜索框 + 让它允许压缩即可。 */
            .header-right { gap: 8px; min-width: 0; flex: 1; }
            .header-search { min-width: 0; flex: 1 1 auto; padding: 5px 10px; }
            .header-search input { min-width: 0; width: 100%; font-size: 12px; }
            .header-search kbd { display: none; }
            .elder-toggle-btn span { display: none; }
            .creed { display: none; }   /* 站宣言让位给搜索框；它在桌面首屏已经履行了职责 */
}

        
@media (max-width: 600px) {
.sidebar { width: 260px; }
            .nav-item { font-size: 13px; padding: 9px 12px; }
            .logo-text { display: block; }
            .greeting { font-size: 12px; }
            
            
            
            
            /* 登录、注册在移动端全屏菜单中已有完整入口。顶栏重复摆两颗按钮会把
               390px 视口撑宽，因此窄屏只保留菜单入口，不删除认证功能。 */
            .auth-links { display: none; }
            .header { min-width: 0; }
            .header-left { display: none; }
            .header-right { width: 100%; max-width: 100%; }
            .header-ask { padding: 6px 9px; }
            .header-ask span { display: none; }
            .header .lens-toggle-btn { padding: 6px 8px; }
            .header .lens-toggle-btn > span:last-child { display: none; }
}


        
@media (min-width: 901px) {
.sidebar { transform: translateX(0) !important; }
            .sidebar-backdrop { display: none !important; }
            .mobile-tab-bar { display: none; }
            .hamburger { display: none; }
}
