/* ============================================================
   DowPulse · 美股行情与资讯终端
   经典红金门户风 · 白底红头 · 三栏密集布局 · 红涨绿跌
   ============================================================ */

/* ── 主题变量（默认亮色门户） ── */
:root{
  --red:#C8102E;           /* 门户主红 */
  --red-deep:#8F0B1E;      /* 深红 */
  --red-bright:#E03131;    /* 亮红 */
  --red-soft:#FDE9EC;      /* 浅红底 */
  --gold:#C9A227;          /* 金 */
  --gold-deep:#A8841C;     /* 深金 */
  --gold-soft:#F7EFD8;     /* 浅金底 */
  --bg:#FFFFFF;            /* 主背景 */
  --bg-soft:#F6F4EF;       /* 米白分区 */
  --bg-gray:#F7F7F7;       /* 浅灰分区 */
  --line:#E6E2D9;          /* 细线 */
  --line-2:#D9D4C8;        /* 深一线 */
  --ink:#222222;           /* 正文 */
  --ink-2:#333333;
  --muted:#6A6A6A;         /* 次要 */
  --muted-2:#999999;       /* 浅灰文字 */
  --up:#D0021B;            /* 涨=红 */
  --up-soft:#FBEBED;
  --down:#0F9D58;          /* 跌=绿 */
  --down-soft:#E7F6EE;
  --header-bg:var(--red);
  --ticker-bg:#FFFDF7;
  --shadow-card:0 1px 3px rgba(0,0,0,.06);
  --shadow-lift:0 4px 14px rgba(0,0,0,.10);
  --gut:clamp(16px,3vw,40px);
  --r-sm:3px;
  --r-md:6px;
  --font-d:"Microsoft YaHei","PingFang SC",system-ui,-apple-system,sans-serif;
  --font-b:"Microsoft YaHei","PingFang SC",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --font-m:"Consolas","JetBrains Mono","SF Mono",monospace;
}
[data-theme="dark"]{
  --red:#C8102E;
  --red-deep:#7E0A1A;
  --red-bright:#E03131;
  --red-soft:#3A1218;
  --gold:#D8B64A;
  --gold-deep:#B89A33;
  --gold-soft:#3A3318;
  --bg:#161412;
  --bg-soft:#1F1C18;
  --bg-gray:#201D19;
  --line:#33302B;
  --line-2:#45413A;
  --ink:#E8E5DF;
  --ink-2:#D6D2CA;
  --muted:#A9A49B;
  --muted-2:#78736B;
  --up:#FF6B6B;
  --up-soft:#3A1A1C;
  --down:#3FCC8E;
  --down-soft:#142E22;
  --header-bg:#8F0B1E;
  --ticker-bg:#1A1714;
  --shadow-card:0 1px 3px rgba(0,0,0,.4);
  --shadow-lift:0 4px 14px rgba(0,0,0,.5);
}

/* ── 基础重置 ── */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  background:var(--bg);color:var(--ink);
  font-family:var(--font-b);font-size:14px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;min-height:100vh;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
ul,ol{list-style:none}
.wrap{padding-inline:var(--gut)}
.num{font-family:var(--font-m);font-variant-numeric:tabular-nums}
.up{color:var(--up)}
.down{color:var(--down)}
/* 统一容器 */
.container,.nav,.hero,.sec-head,.indices,.stocks,.main,.page-head,.list-layout,
.article-layout,.portal-grid{max-width:1200px;margin-inline:auto;position:relative}
.container{margin: 0 auto;}
/* ── 顶部极细金线 ── */
.topline{height:3px;background:linear-gradient(90deg,var(--gold) 0%,var(--red) 40%,var(--gold) 100%)}

/* ── 顶部行情纸带（浅底黑字紧凑） ── */
.ticker{
  background:var(--ticker-bg);border-bottom:1px solid var(--line);
  overflow:hidden;height:34px;display:flex;align-items:center;
  font-family:var(--font-m);font-size:12px;color:var(--ink);
}
.ticker-track{display:flex;gap:34px;white-space:nowrap;animation:tick 60s linear infinite;
  padding-left:var(--gut);will-change:transform}
.ticker:hover .ticker-track{animation-play-state:paused}
.tk{display:inline-flex;align-items:center;gap:7px}
.tk .sym{color:var(--muted);letter-spacing:.02em;font-weight:600}
.tk .px{color:var(--ink);font-weight:600}
.tk .ch{font-weight:600}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ── 红色主导航 ── */
header{
  background:var(--header-bg);
  position:sticky;top:0;z-index:200;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.nav{display:flex;align-items:center;gap:28px;height:56px;padding-inline:var(--gut)}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0;
  color:#fff;font-family:var(--font-d);font-weight:700;font-size:20px;
  letter-spacing:.02em}
.brand-mark{width:30px;height:30px;border-radius:3px;background:var(--gold);
  color:#1A1400;display:grid;place-items:center;font-size:14px;
  font-family:var(--font-m);font-weight:700}
.brand img{height:30px;width:auto}
.brand b{color:var(--gold);font-weight:700}
.nav-links{display:flex;gap:2px;flex:1;align-items:center}
.nav-links a{
  display:block;padding:0 16px;height:56px;line-height:56px;width: 100%;
  color:#FBE9EB;font-size:15px;font-weight:500;transition:background .2s,color .2s;
  position:relative;white-space:nowrap;text-align: center;}
.nav-links a:hover{background:rgba(255,255,255,.14);color:#fff}
.nav-links a.on{background:var(--gold);color:#1A1400;font-weight:700}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.search{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;
  background:#fff;border:1px solid rgba(255,255,255,.3);border-radius:var(--r-sm);
  color:#888;font-size:13px;min-width:200px}
.search:focus-within{border-color:var(--gold)}
.search input{background:transparent;border:0;outline:0;color:#222;font:inherit;width:100%}
.search input::placeholder{color:#aaa}
.theme-toggle{width:32px;height:32px;border:1px solid rgba(255,255,255,.4);
  border-radius:var(--r-sm);display:grid;place-items:center;cursor:pointer;
  font-size:15px;color:#fff;transition:background .2s}
.theme-toggle:hover{background:rgba(255,255,255,.15)}
.menu-toggle{display:none;color:#fff;font-size:20px;padding:4px 8px}
.nav-close{display:none}

/* 会员用户区 */
.nav-user{position:relative;cursor:pointer}
.nav-user-avatar{width:30px;height:30px;border-radius:50%;
  border:1px solid rgba(255,255,255,.4);object-fit:cover}
.nav-user-menu{position:absolute;right:0;top:42px;background:var(--bg);
  border:1px solid var(--line-2);border-radius:var(--r-md);min-width:150px;
  padding:6px 0;display:none;box-shadow:var(--shadow-lift)}
.nav-user:hover .nav-user-menu{display:block}
.nav-user-menu a{display:block;padding:9px 16px;font-size:13px;color:var(--muted)}
.nav-user-menu a:hover{color:var(--red);background:var(--bg-gray)}

/* ── 按钮 ── */
.btn{display:inline-flex;align-items:center;height:34px;padding:0 18px;
  background:var(--red);color:#fff;border-radius:var(--r-sm);
  font-weight:600;font-size:13px;transition:background .2s;white-space:nowrap}
.btn:hover{background:var(--red-deep)}
.btn-ghost{display:inline-flex;align-items:center;height:34px;padding:0 18px;
  border:1px solid var(--line-2);color:var(--ink);border-radius:var(--r-sm);
  font-size:13px;transition:border-color .2s,color .2s}
.btn-ghost:hover{border-color:var(--red);color:var(--red)}

/* ── Hero 头条区 ── */
.hero{display:grid;grid-template-columns:1.25fr .75fr;gap:20px;
  padding:20px 0 4px;align-items:stretch}
.hero-lead{position:relative;overflow:hidden;border:1px solid var(--line);
  border-radius:var(--r-md);background:var(--bg)}
.hero-lead img{width:100%;height:340px;object-fit:cover;display:block}
.hero-lead .lead-mask{position:absolute;inset:auto 0 0 0;padding:20px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.82));
  color:#fff}
.hero-lead .lead-mask h1{font-size:24px;font-weight:700;line-height:1.4;
  margin-bottom:8px;text-shadow:0 1px 2px rgba(0,0,0,.3)}
.hero-lead .lead-mask p{font-size:13px;color:#E9E9E9;line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-list{display:flex;flex-direction:column;border:1px solid var(--line);
  border-radius:var(--r-md);overflow:hidden;background:var(--bg)}
.hero-list-item{display:flex;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line);
  align-items:flex-start;transition:background .15s}
.hero-list-item:last-child{border-bottom:0}
.hero-list-item:hover{background:var(--bg-gray)}
.hero-list-item .num-badge{flex-shrink:0;width:20px;height:20px;border-radius:2px;
  background:var(--gold-soft);color:var(--gold-deep);font-family:var(--font-m);
  font-size:11px;font-weight:700;display:grid;place-items:center;margin-top:2px}
.hero-list-item a{font-size:13.5px;line-height:1.5;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-list-item:hover a{color:var(--red)}

/* ── 红色标题条 ── */
.sec-head{display:flex;align-items:center;justify-content:space-between;
  padding:22px 0 12px;border-bottom:2px solid var(--red);margin-bottom:14px}
.sec-head h2{font-family:var(--font-d);font-size:19px;font-weight:700;color:var(--red);
  display:flex;align-items:center;gap:9px;letter-spacing:.01em}
.sec-head h2::before{content:"";width:5px;height:20px;background:var(--red);
  border-radius:1px}
.sec-head .more{font-size:12.5px;color:var(--muted);transition:color .2s}
.sec-head .more:hover{color:var(--red)}

/* 区块内容统一加白底边框（门户卡片） */
.sec-box{border:1px solid var(--line);border-radius:var(--r-md);
  background:var(--bg);overflow:hidden}

/* ── 三大指数（紧凑横条） ── */
.indices{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:var(--r-md);
  overflow:hidden}
.idx{background:var(--bg);padding:16px 20px;display:flex;align-items:center;
  justify-content:space-between;gap:14px;transition:background .15s}
.idx:hover{background:var(--bg-gray)}
.idx-top{display:flex;flex-direction:column;gap:2px}
.idx-name{font-size:14px;font-weight:600;color:var(--ink)}
.idx-code{font-family:var(--font-m);font-size:11px;color:var(--muted-2)}
.idx-px{font-family:var(--font-m);font-size:24px;font-weight:700;color:var(--ink)}
.idx-ch{font-family:var(--font-m);font-size:12.5px;display:flex;gap:8px;font-weight:600}
.idx-spark{width:96px;height:34px;flex-shrink:0}
.idx-spark svg{width:100%;height:100%}

/* ── 热门个股（紧凑表格） ── */
.stocks{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:var(--r-md);
  overflow:hidden}
.stk{background:var(--bg);padding:14px 16px;display:flex;flex-direction:column;
  gap:4px;transition:background .15s;cursor:pointer}
.stk:hover{background:var(--bg-gray)}
.stk-top{display:flex;justify-content:space-between;align-items:center}
.stk-sym{font-family:var(--font-m);font-weight:700;font-size:14.5px;color:var(--ink)}
.stk-name{font-size:11px;color:var(--muted-2);margin-top:1px}
.stk-badge{font-family:var(--font-m);font-size:11px;font-weight:700;
  padding:1px 7px;border-radius:2px}
.stk-badge.up{background:var(--up-soft);color:var(--up)}
.stk-badge.down{background:var(--down-soft);color:var(--down)}
.stk-px{font-family:var(--font-m);font-size:18px;font-weight:700;color:var(--ink)}
.stk-spark{height:26px;margin-top:3px}
.stk-spark svg{width:100%;height:100%}

/* ── 三栏布局 ── */
.portal-grid{display:grid;grid-template-columns:210px minmax(0,1fr) 300px;
  gap:18px;padding:24px 0 48px;align-items:start}
.col-l{display:flex;flex-direction:column;gap:18px}
.col-r{display:flex;flex-direction:column;gap:18px;position:sticky;top:64px}

/* 侧栏标题条 */
.side-bar{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;
  background:var(--red);color:#fff;font-size:14px;font-weight:700;
  border-radius:var(--r-sm) var(--r-sm) 0 0;flex-shrink:0}
.side-bar::before{content:"";width:4px;height:14px;background:var(--gold);
  border-radius:1px}
.side-box{border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;
  background:var(--bg)}
.side-box-body{padding:6px 0}

/* 左栏频道导航 */
.cat-nav a{display:flex;align-items:center;gap:10px;padding:10px 14px;
  font-size:13.5px;color:var(--ink);border-bottom:1px solid var(--line);
  transition:background .15s,color .15s;position:relative}
.cat-nav a:last-child{border-bottom:0}
.cat-nav a:hover,.cat-nav a.on{color:var(--red);background:var(--red-soft);font-weight:600}
.cat-nav .tag-dot{width:6px;height:6px;border-radius:2px;background:var(--gold);
  flex-shrink:0}

/* ── 中栏：新闻列表 ── */
.main{display:block;padding:0}
.news-list{display:flex;flex-direction:column}
.news-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;
  align-items:center;padding:15px 14px;border-bottom:1px solid var(--line);cursor:pointer}
.news-item:last-child{border-bottom:0}
.news-item .news-body{min-width:0}
.news-item h3{font-size:15.5px;font-weight:600;line-height:1.45;margin-bottom:5px}
.news-item:hover h3{color:var(--red)}
.news-item .summary{color:var(--muted);font-size:13px;line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.news-item .meta{font-family:var(--font-m);font-size:11.5px;color:var(--muted-2);
  display:flex;gap:10px;align-items:center;margin-top:7px;flex-wrap:nowrap;white-space:nowrap}
.news-item .meta span{white-space:nowrap}
.news-item .views{color:var(--muted-2)}
.news-item .news-aside{display:flex;flex-direction:column;gap:8px;
  align-items:flex-end;flex-shrink:0}
.news-aside .news-thumb-sm{width:150px;height:92px;border-radius:var(--r-sm);
  overflow:hidden;background:var(--bg-gray)}
.news-thumb-sm img{width:100%;height:100%;object-fit:cover}
.news-item .cats{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.news-item .cat{font-size:11px;color:var(--red);border:1px solid var(--red);
  padding:1px 7px;border-radius:2px;white-space:nowrap;font-weight:600}

/* ── 右栏：排行 / 行情 ── */
.rank-item{display:grid;grid-template-columns:26px 1fr;gap:10px;padding:9px 14px;
  border-bottom:1px solid var(--line);cursor:pointer;font-size:13px;line-height:1.5;
  transition:background .15s;align-items:center}
.rank-item:last-child{border-bottom:0}
.rank-num{font-family:var(--font-m);font-weight:700;font-size:14px;text-align:center;
  color:var(--muted-2)}
.rank-item:nth-child(1) .rank-num{color:var(--red)}
.rank-item:nth-child(2) .rank-num{color:var(--red)}
.rank-item:nth-child(3) .rank-num{color:var(--gold-deep)}
.rank-item a{color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden}
.rank-item:hover{background:var(--bg-gray)}
.rank-item:hover a{color:var(--red)}

/* 实时行情卡 */
.quote-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;
  padding:9px 14px;border-bottom:1px solid var(--line);align-items:center}
.quote-row:last-child{border-bottom:0}
.quote-name{font-weight:600;font-size:13px;color:var(--ink)}
.quote-sub{font-size:11px;color:var(--muted-2)}
.quote-price{font-family:var(--font-m);font-size:13.5px;font-weight:600;
  text-align:right;color:var(--ink)}
.quote-pct{font-family:var(--font-m);font-size:11.5px;font-weight:700;text-align:right}
.quote-spark{width:54px;height:22px}
.quote-spark svg{width:100%;height:100%}

/* ── 列表页头部 ── */
.page-head{padding:26px 0 16px;border-bottom:2px solid var(--red);margin-bottom:4px}
.crumb{font-size:12.5px;color:var(--muted-2);margin-bottom:12px;
  display:flex;align-items:center;flex-wrap:wrap}
.crumb a:hover{color:var(--red)}
.crumb .sep{margin:0 8px;opacity:.5}
.page-head h1{font-family:var(--font-d);font-size:24px;font-weight:700;color:var(--red)}
.page-head p{color:var(--muted);margin-top:6px;font-size:14px}

.filters{display:flex;gap:8px;flex-wrap:wrap;padding:16px 0;
  border-bottom:1px solid var(--line)}
.filter{padding:6px 16px;border:1px solid var(--line-2);border-radius:var(--r-sm);
  font-size:13px;color:var(--muted);cursor:pointer;transition:all .2s;
  background:var(--bg)}
.filter:hover{color:var(--red);border-color:var(--red)}
.filter.on{background:var(--red);color:#fff;border-color:var(--red);font-weight:600}

.list-layout{display:block;padding:20px 0 48px}
.list-layout .main{display:block}
.news-card{display:grid;grid-template-columns:210px 1fr;gap:20px;
  padding:18px 0;border-bottom:1px solid var(--line);cursor:pointer;align-items:center}
.news-card:last-child{border-bottom:0}
.news-thumb{width:210px;height:132px;border-radius:var(--r-sm);overflow:hidden;
  background:var(--bg-gray);position:relative;flex-shrink:0}
.news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.news-card:hover .news-thumb img{transform:scale(1.04)}
.news-thumb svg{width:100%;height:100%}
.news-thumb .cat-badge{position:absolute;top:8px;left:8px;background:var(--red);
  color:#fff;font-size:10.5px;padding:2px 9px;border-radius:2px;font-weight:600;z-index:1}
.news-body h3{font-size:18px;font-weight:700;line-height:1.4;margin-bottom:8px}
.news-card:hover .news-body h3{color:var(--red)}
.news-body .summary{color:var(--muted);font-size:14px;line-height:1.6;
  margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden}
.news-meta{display:flex;gap:14px;font-family:var(--font-m);font-size:12px;
  color:var(--muted-2);align-items:center;flex-wrap:wrap}
.news-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--muted-2)}

/* 分页 */
.pagination{display:flex;gap:6px;justify-content:center;padding:30px 0;flex-wrap:wrap}
.pagination ul{display:flex;gap:6px;flex-wrap:wrap;list-style:none}
.pagination li{display:inline-flex}
.pg,.pagination a,.pagination span{min-width:34px;height:34px;padding:0 10px;
  border:1px solid var(--line-2);border-radius:var(--r-sm);display:inline-flex;
  align-items:center;justify-content:center;font-family:var(--font-m);
  font-size:13px;color:var(--muted);text-decoration:none;transition:all .2s;
  background:var(--bg)}
.pg.on,.pg.current,.pagination .current,.pagination span.current{
  background:var(--red);color:#fff;border-color:var(--red);font-weight:700}
.pg:hover:not(.on):not(.current),.pagination a:hover{color:var(--red);border-color:var(--red)}
.pg.disabled,.pagination .disabled,.pagination span.disabled{opacity:.4;pointer-events:none}

/* ── 文章详情页 ── */
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;
  padding:26px 0 56px;align-items:start}
.article{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-md);
  padding:30px 34px;overflow:hidden}
.article h1{font-family:var(--font-d);font-size:26px;font-weight:700;line-height:1.4;
  color:var(--ink);margin-bottom:16px;padding-left:12px;border-left:4px solid var(--red)}
.article-meta{display:flex;align-items:center;gap:14px;padding-bottom:16px;
  border-bottom:1px solid var(--line);margin-bottom:24px;font-size:13px;
  color:var(--muted-2);flex-wrap:wrap}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--red);color:#fff;
  display:grid;place-items:center;font-weight:700;font-size:14px;flex-shrink:0}
.article-meta .author{color:var(--ink);font-weight:600}
.article-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--muted-2)}

/* 正文 */
.article-body{font-size:15.5px;line-height:2}
.article-body p{margin-bottom:20px;color:var(--ink);text-indent:2em}
.article-body strong{font-weight:700;color:var(--ink)}
.article-body blockquote{border-left:4px solid var(--gold);padding:14px 20px;
  margin:22px 0;background:var(--gold-soft);color:var(--muted);
  border-radius:0 var(--r-sm) var(--r-sm) 0;font-size:14.5px}
.article-body h2{font-size:20px;font-weight:700;margin:30px 0 14px;color:var(--red);
  display:flex;align-items:center;gap:9px}
.article-body h2::before{content:"";width:5px;height:18px;background:var(--gold);
  border-radius:1px}
.article-body h3{font-size:17px;font-weight:700;margin:24px 0 10px;color:var(--ink)}
.article-body img{border-radius:var(--r-sm);margin:22px auto;max-width:100%}
.article-body ul,.article-body ol{margin:0 0 20px 24px;line-height:1.9}
.article-body a{color:var(--red);text-decoration:underline;text-underline-offset:3px}
.article-tags{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0;padding-top:20px;
  border-top:1px solid var(--line)}
.article-tags .tag{font-size:12.5px;padding:4px 12px;color:var(--red);
  border:1px solid var(--red);border-radius:2px}
.article-tags .tag:hover{background:var(--red);color:#fff}

/* 分享栏 */
.share-bar{display:flex;gap:8px;align-items:center;padding:18px 0;
  border-top:1px solid var(--line);margin-top:8px;flex-wrap:wrap}
.share-btn{width:34px;height:34px;border:1px solid var(--line-2);border-radius:var(--r-sm);
  display:grid;place-items:center;font-size:14px;cursor:pointer;transition:all .2s;
  color:var(--muted);text-decoration:none;background:var(--bg)}
.share-btn:hover{border-color:var(--red);color:var(--red)}

/* 上一篇/下一篇 */
.pager{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}
.pager a{padding:15px 18px;border:1px solid var(--line);border-radius:var(--r-sm);
  font-size:13px;color:var(--muted);transition:all .2s;display:block;background:var(--bg)}
.pager a:hover{border-color:var(--red);color:var(--ink)}
.pager .dir{font-family:var(--font-m);font-size:11px;color:var(--red);
  display:block;margin-bottom:6px;font-weight:600}
.pager .pt{color:var(--ink);font-weight:500;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pager .next{text-align:right}

/* 作者卡 */
.author-card{padding:20px;text-align:center}
.author-card .avatar{width:48px;height:48px;margin:0 auto 10px;font-size:20px}
.author-card h4{font-size:15px;margin-bottom:4px;font-weight:700;color:var(--ink)}
.author-card p{font-size:12px;color:var(--muted);line-height:1.6}

/* 相关内容 */
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.related-card{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-sm);
  overflow:hidden;transition:all .2s}
.related-card:hover{border-color:var(--red);box-shadow:var(--shadow-card)}
.related-cover{display:block;aspect-ratio:16/10;background:var(--bg-gray);overflow:hidden}
.related-cover img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.related-card:hover .related-cover img{transform:scale(1.04)}
.related-body{padding:12px 14px}
.related-title{font-size:13.5px;font-weight:500;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;margin-bottom:6px}
.related-date{font-family:var(--font-m);font-size:11px;color:var(--muted-2)}

/* ── Footer ── */
footer{border-top:1px solid var(--line);background:var(--bg-gray);
  padding:30px 0;margin-top:8px;color:var(--muted);font-size:12.5px}
footer .container{display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:10px;max-width:1200px;margin-inline:auto;padding-inline:var(--gut)}
footer a{color:var(--muted)}
footer a:hover{color:var(--red)}
.footer-links{display:flex;gap:14px}

/* ── 入场动效（保留钩子） ── */
.rv{opacity:0;transform:translateY(16px);
  transition:opacity .6s var(--ease,linear),transform .6s var(--ease,linear)}
.rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition-duration:.01ms!important}
  .rv{opacity:1;transform:none}
}

/* ── 返回顶部 ── */
.scroll-top{position:fixed;right:24px;bottom:24px;width:40px;height:40px;
  background:var(--red);color:#fff;border:0;border-radius:var(--r-sm);
  display:grid;place-items:center;cursor:pointer;z-index:40;
  opacity:0;visibility:hidden;transition:all .3s;font-size:16px;
  box-shadow:var(--shadow-lift)}
.scroll-top.show{opacity:1;visibility:visible}
.scroll-top:hover{background:var(--red-deep)}

/* ── 移动端菜单 ── */
@media(max-width:1100px){
  .menu-toggle{display:block}
  .nav-links{position:fixed;top:0;right:-300px;width:300px;height:100vh;
    background:var(--bg);border-left:1px solid var(--line-2);z-index:100;
    flex-direction:column;padding:64px 20px 20px;gap:2px;
    transition:right .25s ease;box-shadow:var(--shadow-lift);display:flex;flex:none}
  .nav-links.open{right:0}
  .nav-links a{height:auto;line-height:1.4;padding:12px 6px;color:var(--ink);
    border-bottom:1px solid var(--line);display:block}
  .nav-links a:hover{background:var(--bg-gray);color:var(--red)}
  .nav-links a.on{background:var(--red-soft);color:var(--red)}
  .nav-close{display:block;position:absolute;top:14px;right:18px;font-size:22px;
    line-height:1;color:var(--ink);cursor:pointer;z-index:2}
  .search{display:none}
}

/* ── 响应式 ── */
@media(max-width:1100px){
  .hero{grid-template-columns:1fr}
  .hero-lead img{height:260px}
  .portal-grid{grid-template-columns:1fr;gap:20px}
  .col-r{position:static}
  .col-l{display:none}   /* 左栏频道收起到移动端导航 */
  .article-layout{grid-template-columns:1fr;gap:20px}
  .indices{grid-template-columns:1fr}
  .stocks{grid-template-columns:repeat(2,1fr)}
  .related-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .stocks{grid-template-columns:1fr}
  .news-card{grid-template-columns:1fr}
  .news-thumb{width:100%;height:190px}
  .news-item{grid-template-columns:1fr;gap:10px}
  .news-aside .news-thumb-sm{width:100%;height:180px}
  .news-item .news-aside{align-items:flex-start}
  .news-item .cats{display:none}
  .pager{grid-template-columns:1fr}
  .related-grid{grid-template-columns:1fr}
  .nav{gap:10px;height:50px}
  .brand{font-size:17px}
  .brand-mark{width:27px;height:27px;font-size:13px}
  .article{padding:18px 16px}
  .article h1{font-size:21px}
  .hero-lead .lead-mask h1{font-size:19px}
  .hero-lead img{height:210px}
  footer .container{justify-content:center;text-align:center}
}
