/* ============================================================
   chrome.css —— 全站公共骨架（首页 + 日报/周报详情页共用）
   内容：设计变量、reset、报头、导航、页脚、返回顶部
   依赖：无。必须最先引入，后续页面样式依赖此处的 CSS 变量。
   ============================================================ */

:root {
  /* 纸张与墨色 */
  --paper:#f5f6f7; --card:#ffffff; --ink:#1f2329; --ink2:#51565f; --gray:#8f959e; --line:#e5e6eb;
  /* 品牌与状态色 */
  --brand:#3370ff; --brand-bg:#eaf1ff; --ok:#3370ff; --wk:#b81d34; --bf:#a3620a;
  /* 详情页强调色 */
  --accent:#b81d34; --accent2:#1a4fd6; --highlight:#fdf3d0; --hot:#fff4e8;
  /* 字体 */
  --serif:'Noto Serif SC','Songti SC','STSong','SimSun',Georgia,serif;
  --sans:'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'PingFang SC','Microsoft YaHei',sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:#151719; --card:#1e2124; --ink:#f0f1f3; --ink2:#c3c7cd; --gray:#82878f; --line:#33373d;
    --brand:#5c8dff; --brand-bg:#1d2a45; --ok:#5c8dff; --wk:#ff6b84; --bf:#d99a3d;
    --accent:#ff4d6d; --accent2:#6ea8fe; --highlight:#2b2411; --hot:#2a1d10;
  }
}

* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans); line-height:1.7; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--accent); }

/* ── 顶部信息条 + 报头（同款双线报纸风，两页共用） ── */
.flag, .flag2 {
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:10.5px; letter-spacing:1.6px; color:var(--gray); text-transform:uppercase;
  border-bottom:1px solid var(--line); padding-bottom:9px; margin-bottom:16px;
}
/* 实时时钟（首页信息条右侧） */
.flag-clock, .flag-clock span { font-variant-numeric:tabular-nums; }
.flag-clock .clk-ic { margin-right:5px; }
.mast, .mast2 {
  display:flex; align-items:center; gap:28px;
  padding:22px 0 20px; border-bottom:3px double var(--ink); margin-bottom:22px;
}
.mast { display:block; text-align:center; padding-bottom:16px; }
/* ── 日报 HERO 报头：左标题 / 右日期组合 ── */
.mast.hero { display:flex; align-items:flex-end; justify-content:space-between;
  gap:26px; text-align:left; flex-wrap:wrap; }
.hero-l { min-width:0; }
.hero-l h1 { font-family:var(--serif); font-size:clamp(30px,5vw,46px); font-weight:900;
  letter-spacing:4px; margin:0 0 8px; line-height:1.1; }
.hero-r { display:inline-flex; align-items:flex-end; gap:14px; flex-shrink:0;
  padding-bottom:2px; }
/* 右侧日期组：年（横排小字）在上 · 月/日（斜杠连接，大号）在下 */
.hdate { display:inline-flex; flex-direction:column; align-items:flex-end; gap:2px;
  color:var(--accent); line-height:1; }
.hdate-y { font-family:var(--serif); font-size:16px; font-weight:600; letter-spacing:3px;
  color:var(--accent); opacity:.8; line-height:1; }
.hdate-md { font-family:var(--serif); font-size:56px; font-weight:900; letter-spacing:1px;
  color:var(--accent); line-height:1; font-variant-numeric:lining-nums; }
.hdate-md i { font-style:normal; font-weight:300; font-size:34px; opacity:.6;
  padding:0 3px; vertical-align:4px; }
.mast h1, .mast2 h1 { font-family:var(--serif); font-size:46px; font-weight:900;
  letter-spacing:4px; margin:0 0 8px; line-height:1.1; }
.mast2 h1 { font-size:clamp(30px,5.4vw,46px); letter-spacing:5px; }
.mast .sub, .mt-sub { font-size:15px; color:var(--accent); letter-spacing:1px; margin-bottom:10px; }
.mt-sub { font-size:13.5px; margin-bottom:0; }
.mast .date, .mt-slogan { font-size:12.5px; color:var(--gray); letter-spacing:.5px; }
/* HERO 日期分段：桌面用「·」连接三段，移动端分行（见 @media 720） */
.mast .date .dt-b::before, .mast .date .dt-c::before { content:"　·　"; }
.mast2 .mt { min-width:0; }
.mast2 .mm { margin-left:auto; text-align:right; flex-shrink:0; line-height:2.05; }
.mast2 .mm span { font-size:11px; color:var(--gray); margin-right:12px; letter-spacing:1px; }
.mast2 .mm b { font-size:13px; font-weight:700; }
/* 栏目：四块各带图标，间距统一（字号较原 + 约 20%） */
.mast2 .mm .cs { display:inline-block; font-size:14.5px; color:var(--accent);
  letter-spacing:.5px; margin-right:0; font-weight:600; white-space:nowrap; }
.mast2 .mm .cs + .cs { margin-left:16px; }
@media(max-width:720px){
  .mast2 { flex-wrap:wrap; gap:12px; }
  .mast2 .mm { margin-left:0; text-align:left; width:100%; }
  .mast2 .mm .cs { font-size:13.5px; }
  .mast2 .mm .cs + .cs { margin-left:12px; }
  .mast h1 { font-size:30px; letter-spacing:2px; }
  .mast.hero { flex-wrap:nowrap; gap:14px; align-items:flex-start; }
  .hero-l { flex:1; min-width:0; }
  .hero-r { width:auto; margin-left:auto; justify-content:flex-end; padding-top:4px; }
  .hdate { align-items:flex-end; }
  .hdate-md { font-size:40px; }
  .hdate-md i { font-size:24px; vertical-align:3px; }
  .hdate-y { font-size:13px; letter-spacing:1.5px; }
  /* HERO 日期：移动端按「日期·周几 / 期数·日报 / 共X条·约X分钟」分行 */
  .mast .date { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
  .mast .date .dt-a, .mast .date .dt-b, .mast .date .dt-c { display:block; }
  .mast .date .dt-b::before, .mast .date .dt-c::before { content:none; }
}
@media(prefers-color-scheme:dark){ .mt-sub, .mast .sub { color:#ff6b84; } }

/* ── 上一篇 / 下一篇 / 返回首页 ── */
.pnav { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:nowrap;
  font-size:12.5px; margin-bottom:18px; padding:9px 14px; border:1px solid var(--line);
  background:rgba(0,0,0,.02); }
.pnav a { font-weight:600; white-space:nowrap; }
.pnav a:hover { color:var(--accent); }
.pnav .pn-home { font-weight:800; letter-spacing:.5px; margin:0 auto; }
.pnav .pn-nav { flex:0 0 auto; }
.pnav .pn-prev { text-align:left; }
.pnav .pn-next { text-align:right; }
.pnav .dim { color:var(--gray); flex:0 0 auto; }
/* 上下篇标签：期数与日期分包，桌面以「·」连接 */
.pnav .pn-i::after { content:" · "; }
@media(max-width:560px){
  .pnav { font-size:11.5px; gap:8px; padding:8px 10px; }
  .pnav .pn-home { margin:0; }
  /* 移动端上下篇不显示期数，只留日期 */
  .pnav .pn-i { display:none; }
}

/* ── 详情页吸顶导航：日期（红）+ 小字期号（左）· 返回首页（右）· 底部细线进度 ── */
.pstick { position:fixed; top:0; left:0; right:0; z-index:60; background:var(--card);
  border-bottom:1px solid var(--line); box-shadow:0 2px 10px rgba(31,35,41,.08);
  transform:translateY(-100%); transition:transform .24s ease; }
.pstick.on { transform:none; }
.pstick-in { position:relative; z-index:1; max-width:820px; margin:0 auto; padding:0 26px;
  height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ps-meta { display:inline-flex; align-items:center; gap:9px; min-width:0; overflow:hidden; }
/* 编辑风日期：竖排年份 + 大号「月/日」 */
.ps-date { display:inline-flex; align-items:center; gap:6px; color:var(--accent); line-height:1;
  padding-right:2px; border-right:1px solid var(--line); }
.ps-year { display:inline-flex; align-items:center; justify-content:center;
  writing-mode:vertical-rl; text-orientation:sideways; transform:rotate(180deg);
  font-family:var(--serif); font-size:10.5px; font-weight:700; letter-spacing:0;
  height:25px; color:var(--accent); opacity:.85; }
.ps-md { font-family:var(--serif); font-size:28px; font-weight:900; letter-spacing:.5px;
  color:var(--accent); font-variant-numeric:lining-nums; }
.ps-md .ps-sl { font-style:normal; font-weight:400; font-size:18px; color:var(--accent);
  opacity:.7; padding:0 1px; vertical-align:1px; }
.ps-issue { font-size:11.5px; color:var(--gray); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }
.ps-home { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:800;
  color:var(--ink); white-space:nowrap; letter-spacing:.5px; flex-shrink:0; }
.ps-home:hover { color:var(--brand); }
.ps-home .ps-ic { font-size:13px; }
/* 底部细线进度（品牌蓝） */
.ps-line { position:absolute; left:0; right:0; bottom:0; height:2.5px; background:var(--line); z-index:2; }
.ps-line-bar { display:block; width:0; height:100%; background:var(--brand);
  transition:width .12s linear; }
@media(max-width:560px){
  .pstick-in { padding:0 16px; gap:10px; height:56px; }
  .ps-md { font-size:24px; }
  .ps-year { font-size:9.5px; height:21px; }
}
.pnav-b { display:flex; gap:14px; margin:30px 0 4px; align-items:stretch; }
.pnav-b a, .pnav-b .pnb { flex:1; border:1px solid var(--line); padding:13px 16px; line-height:1.5;
  display:block; min-width:0; }
.pnav-b a { transition:border-color .15s ease, color .15s ease; }
.pnav-b a:hover { border-color:var(--accent); color:var(--accent); }
.pnav-b .pnb-k { display:block; font-size:10.5px; letter-spacing:1.5px; color:var(--gray); }
.pnav-b .pnb-t { display:block; font-family:var(--serif); font-weight:800; font-size:14.5px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* 底部上下篇：桌面显示完整「第 X 期 · 日期」，移动端只显示日期 */
.pnav-b .pnb-t-date { display:none; }
.pnav-b .pnb-next { text-align:right; }
.pnav-b .pnb-home { flex:0 0 auto; display:flex; align-items:center; font-weight:800;
  padding:13px 18px; letter-spacing:0.3px; }
/* 下滑后：底部上下期导航固定吸底（悬浮式，与底边留距离） */
.pnav-b.on { position:fixed; left:0; right:0; bottom:16px; z-index:55; margin:0;
  max-width:820px; margin-left:auto; margin-right:auto; padding:0;
  width:calc(100% - 32px); box-sizing:border-box; gap:0; align-items:stretch;
  background:var(--card); border:1px solid var(--line); border-radius:12px;
  overflow:hidden; box-shadow:0 6px 24px rgba(31,35,41,.16);
  transform:translateY(0); animation:pnavUp .22s ease; }
@keyframes pnavUp { from { transform:translateY(120%); } to { transform:translateY(0); } }
.pnav-b.on a, .pnav-b.on .pnb { border:0; border-left:1px solid var(--line); border-radius:0;
  padding:8px 14px; background:transparent; min-height:44px; display:flex; flex-direction:column;
  justify-content:center; }
.pnav-b.on > :first-child { border-left:0; }
.pnav-b.on .pnb-home { padding:8px 16px; }
.pnav-b.on .pnb-k { font-size:9.5px; letter-spacing:1px; }
.pnav-b.on .pnb-t { font-size:12.5px; }
@media (max-width:640px){
  .pnav-b { flex-wrap:wrap; }
  .pnav-b .pnb-home { order:-1; flex:1 1 100%; justify-content:center; }
  .pnav-b.on { width:calc(100% - 20px); bottom:12px; }
  .pnav-b.on .pnb-home { order:0; flex:0 0 auto; justify-content:center; }
  .pnav-b.on .pnb-t { font-size:12px; }
  /* 移动端底部上下篇只显示日期，隐藏期数 */
  .pnav-b .pnb-t-full { display:none; }
  .pnav-b .pnb-t-date { display:block; }
}

/* ── 页脚 ── */
footer { margin-top:28px; padding-top:16px; border-top:1px solid var(--line);
  font-size:11.5px; color:var(--gray); line-height:1.9; }
.cols { display:flex; flex-wrap:wrap; gap:14px; margin-bottom:10px; }
.col-chip { border:1px solid var(--line); padding:2px 10px; border-radius:2px; font-size:11px; }
.col-chip b { color:var(--ink); }
/* 底部信息行：左「旺小谷AI日报」右「免责说明」首尾分列（首页/详情页共用） */
.f-line { display:flex; justify-content:space-between; align-items:baseline; gap:6px 34px;
  flex-wrap:wrap; border-top:1px solid var(--line); padding-top:11px; margin-top:10px; }
.f-line .fl-a { flex:0 1 auto; min-width:0; }
.f-line .fl-b { flex:0 1 auto; min-width:0; text-align:right; }
.f-line b { color:var(--ink2); font-weight:700; margin-right:2px; }
.f-line .fl-lk { color:inherit; text-decoration:none; border-bottom:1px solid transparent; transition:color .15s ease, border-color .15s ease; }
.f-line .fl-lk:hover { color:var(--brand); border-bottom-color:var(--brand); }
.f-line .fl-lk:hover b { color:var(--brand); }
@media(max-width:720px){
  .f-line { flex-direction:column; align-items:flex-start; }
  .f-line .fl-b { text-align:left; }
}

/* ── 返回顶部（右侧悬浮，首页用；详情页亦可复用） ── */
.toTop { position:fixed; right:26px; bottom:30px; width:46px; height:46px; border-radius:50%;
  background:var(--card); border:1.5px solid var(--brand); color:var(--brand);
  box-shadow:0 6px 20px rgba(51,112,255,.28), 0 2px 6px rgba(31,35,41,.14);
  font-size:22px; font-weight:700; cursor:pointer; z-index:70; opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease; transform:translateY(10px); }
.toTop.on { opacity:1; pointer-events:auto; transform:none; }
.toTop:hover { background:var(--brand); color:#fff; border-color:var(--brand);
  box-shadow:0 8px 26px rgba(51,112,255,.42), 0 2px 8px rgba(31,35,41,.18); }
/* 移动端：上移到吸底上下篇之上，避免重叠；同时稍作放大以更醒目 */
@media(max-width:640px){
  .toTop { right:16px; bottom:88px; width:48px; height:48px; font-size:23px; }
}
