/* ============================================================
   全球 AI 日报 · 新闻站 —— 设计变量
   沿用日报纸版的版面语言：报头红 / 黑底导航 / 细分割线 / 衬线标题。
   涨红跌绿按中国股市惯例（--up 红 / --down 绿）。
   ============================================================ */

:root {
  /* 色彩 */
  --brand: #c8102e;
  --brand-dk: #9c0c23;
  --ink: #14161a;
  --ink-2: #3a3d42;
  --muted: #6b6f76;
  --muted-2: #8b8f96;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --paper-3: #eeece6;
  --rule: #e2e0da;
  --rule-dk: #cfccc4;
  --up: #c8102e;          /* 涨 —— 红 */
  --down: #0b7a45;        /* 跌 —— 绿 */
  --accent: #1c4e8a;

  /* 字体：中文走宋体栈，英文走 Iowan/Georgia，靠 html[data-lang] 切换 */
  --serif-zh: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --serif-en: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans GB", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 尺幅 */
  --gap: 28px;
  --gut: 22px;
  --wrap: 1180px;
  --r: 3px;

  /* 字号档位（data-fs 切换） */
  --fs-base: 16px;
  --fs-title: 30px;
  --fs-h1: 40px;
  --fs-wide: 1240px;
}

html[data-lang="zh"] { --serif: var(--serif-zh); }
html[data-lang="en"] { --serif: var(--serif-en); }

html[data-fs="s"] { --fs-base: 14.5px; --fs-title: 26px; --fs-h1: 34px; }
html[data-fs="m"] { --fs-base: 16px;   --fs-title: 30px; --fs-h1: 40px; }
html[data-fs="l"] { --fs-base: 18px;   --fs-title: 34px; --fs-h1: 46px; }

/* 语言切换：只显示当前语言的一侧。没有 .zh/.en 包裹的内容（中英同文）恒显示。 */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }

/* 中文模式下的西文装饰字（品牌名、栏目小字）始终显示 */
html[data-lang="zh"] .latn { display: inline !important; }
