/* ============================================================================
   湖南师范大学教务处 · V5.1「四景」
   ---------------------------------------------------------------------------
   素瓷的页面（照片 / 白纸 / 玻璃列表）
   浮白的详情（悬浮导航 / 阅读进度 / 纯文字正文 / 底部操作条）
   四座地标，四套光线：照片、主色、纸色、辅色。材质参数恒定不变。

   层次（按绘制顺序）：
     1 纸面      每套主题自己的纸色，深色是同一座地标的夜色
     2 照片      首页首屏通顶，状态栏与摄像头岛压在照片上
     3 玻璃      位移折射 / 极轻模糊 / 5–26% 白 / 镜面环 / 凝光 / 接触阴影
     4 内容      黑字为主，主色只用于链接、激活态、未读点（面积 ≤5%）
   ========================================================================== */

/* ============================================================================
   0 · 令牌
   ========================================================================== */
@property --brand { syntax: '<color>'; inherits: true; initial-value: #47654F }
@property --paper { syntax: '<color>'; inherits: true; initial-value: #F7F8F4 }
@property --mx { syntax: '<length-percentage>'; inherits: false; initial-value: 32% }
@property --my { syntax: '<length-percentage>'; inherits: false; initial-value: 0% }

:root {
  --sans: "OPPO Sans", "OPPO Sans 4.0", "OPPO Sans 3.0", "OPPOSans", "HarmonyOS Sans SC",
          "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --spring: linear(0, .0075, .028, .062, .109, .167, .235, .311, .393, .478, .564, .648, .727,
             .798, .86, .912, .953, .984, 1.005, 1.019, 1.026, 1.027, 1.024, 1.018, 1.011, 1.004,
             0.999, 0.996, 0.995, 0.995, 0.997, 1);
  --spring-soft: linear(0, .012, .046, .098, .166, .248, .34, .437, .535, .63, .717, .793, .857,
                  .908, .947, .975, .994, 1.006, 1.013, 1.015, 1.014, 1.011, 1.007, 1.003, 1,
                  0.999, 0.999, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --r: 20px;
  --r-l: 28px;
  --pad: 16px;
  --dock-h: 64px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  /* 顶部留白：浏览器预览要自己画一条 28px 的假状态栏；壳内状态栏由系统绘制，
     只让出 --sat 就够 —— 两者相加会多出 28px（真机实测就是这么来的）。 */
  --top-pad: calc(28px + var(--sat));
}

/* 字号三档：只改根字号，正文与标题用 rem 跟随；界面骨架（Dock、标签）保持固定 */
html { font-size: 16px }
html[data-fs="lg"] { font-size: 17.6px }
html[data-fs="xl"] { font-size: 19.2px }

/* ---------- 四套地标 · 浅色 ---------- */
html[data-theme="hunnu"] {
  --brand: #47654F; --accent: #93A98C; --paper: #F7F8F4;
  --hero-pos: center 48%;
}
html[data-theme="yuelu"] {
  --brand: #1C7DA6; --accent: #C79A63; --paper: #FAF9F4;
  --hero-pos: center 42%;
}
html[data-theme="paper"] {
  --brand: #3C6E93; --accent: #8FB3CC; --paper: #F8FAFC;
  --hero-pos: center 44%;
}
html[data-theme="ink"] {
  --brand: #55645F; --accent: #A05A44; --paper: #F7F7F6;
  --hero-pos: center 46%;
}

html[data-theme] {
  /* 兼容别名：老代码/外部脚本读的是 --primary，新体系里它等于 --brand */
  --primary: var(--brand);
  --primary-light: color-mix(in srgb, var(--brand) 10%, transparent);
  --ink1: rgba(17, 17, 17, .94);
  --ink2: rgba(17, 17, 17, .62);
  --ink3: rgba(17, 17, 17, .38);
  --hair: rgba(17, 17, 17, .07);
  --line: rgba(17, 17, 17, .09);

  --glass-1: rgba(255, 255, 255, .10);
  --glass-2: rgba(255, 255, 255, .07);
  --glass-3: rgba(255, 255, 255, .05);
  --glass-thick: rgba(255, 255, 255, .26);
  --solid: rgba(255, 255, 255, .62);

  --brand-06: color-mix(in srgb, var(--brand) 6%, transparent);
  --brand-12: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-20: color-mix(in srgb, var(--brand) 20%, transparent);

  --bg: var(--paper);
  color-scheme: light;
}

/* ---------- 四套地标 · 深色（同一座地标的夜色，不是统一深色） ---------- */
html.dark[data-theme="hunnu"] { --brand: #8FB08F; --accent: #A8C0A2; --paper: #0F1210 }
html.dark[data-theme="yuelu"] { --brand: #66B8D8; --accent: #D9B183; --paper: #0D1216 }
html.dark[data-theme="paper"] { --brand: #7FA9C8; --accent: #A6C4DA; --paper: #0D1116 }
html.dark[data-theme="ink"]   { --brand: #9AA9A3; --accent: #C08268; --paper: #111211 }

html.native { --top-pad: max(var(--sat), 24px) }

html.dark[data-theme] {
  --ink1: rgba(255, 255, 255, .92);
  --ink2: rgba(255, 255, 255, .60);
  --ink3: rgba(255, 255, 255, .38);
  --hair: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .10);

  --glass-1: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .042);
  --glass-3: rgba(255, 255, 255, .035);
  --glass-thick: rgba(255, 255, 255, .085);
  --solid: rgba(28, 32, 34, .62);

  --brand-06: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-12: color-mix(in srgb, var(--brand) 20%, transparent);
  --brand-20: color-mix(in srgb, var(--brand) 30%, transparent);
  color-scheme: dark;
}

/* ============================================================================
   1 · 基座
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box }
html, body { margin: 0; padding: 0; height: 100% }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }
ul, ol { margin: 0; padding: 0; list-style: none }
h1, h2, h3, h4, p, figure { margin: 0 }
input { font-family: inherit }

/* ============================================================================
   2 · 手机外框（桌面预览）
   ========================================================================== */
.phone-frame {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 50% at 50% 0%, #ECEFEE, transparent 70%),
    #E7EAE9;
  padding: 24px;
}
.phone-screen {
  position: relative;
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 54px;
  background: var(--paper);
  isolation: isolate;
  box-shadow:
    0 0 0 10px #14171A,
    0 0 0 11px #2A2E31,
    0 40px 90px -40px rgba(10, 14, 12, .55),
    0 8px 24px -12px rgba(10, 14, 12, .3);
  transition: --brand .55s var(--ease), --paper .55s var(--ease), background-color .4s var(--ease);
}
body.native .phone-frame { padding: 0; background: var(--paper) }
body.native .phone-screen {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 520px), (max-height: 720px) {
  .phone-frame { padding: 0; background: var(--paper) }
  .phone-screen { width: 100%; height: 100%; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none }
}

/* ============================================================================
   3 · 状态栏（覆盖层：首页照片压在它下面）
   ========================================================================== */
.statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(28px + var(--sat));
  padding: var(--sat) 22px 5px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink1);
  z-index: 80;
  pointer-events: none;
}
/* 壳内不画假状态栏（html.native 在首帧前就挂上，body.native 是旧路径，两个都认） */
html.native .statusbar, body.native .statusbar { display: none }
.sb-r { display: flex; align-items: center; gap: 5px }
.statusbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    color-mix(in srgb, var(--paper) 82%, transparent) 58%,
    transparent 100%);
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.phone-screen.scrolled .statusbar::before { opacity: 1 }
/* 摄像头岛 */
.sb-notch {
  position: absolute;
  left: 50%;
  top: calc(var(--sat) * .2 + 4px);
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 11px;
  background: #08090A;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
}
body.native .sb-notch { display: none }

/* ============================================================================
   4 · 视图栈
   ========================================================================== */
.views { position: absolute; inset: 0; z-index: 1 }
.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transform: translate3d(0, 0, 0);
  opacity: 1;
  will-change: transform, opacity;
  transition: transform .5s var(--ease), opacity .32s ease;
}
.view[data-kind="tab"].is-hidden {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(.994);
  pointer-events: none;
}
.view[data-kind="push"] {
  background: var(--paper);
  opacity: 0;
  transform: scale(.88);
  transform-origin: 50% 50%;
  transition: transform .52s var(--spring-soft), opacity .26s ease;
}
.view[data-kind="push"].is-top { opacity: 1; transform: scale(1) }
.view[data-kind="push"].is-behind { opacity: 0; transform: scale(.94); pointer-events: none }
.view.is-top { z-index: 3 }
.view.is-hidden, .view.is-behind { pointer-events: none }

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none }

/* 其余页面自己让出状态栏；首页照片通顶 */
.view[data-page="notice"],
.view[data-page="news"],
.view[data-page="about"],
.view[data-page="search"],
.view[data-page="detail"] { padding-top: var(--top-pad) }
.view[data-page="detail"] .progress { top: calc(3px + var(--top-pad)) }
.view[data-page="detail"] .dnav { top: calc(8px + var(--top-pad)) }

.pad { padding: 0 var(--pad) }
.tail-pad { height: calc(var(--dock-h) + var(--sab) + 40px) }

/* ============================================================================
   5 · 玻璃材质
   ========================================================================== */
.glass {
  --blur: 2.2px;
  --fill: var(--glass-2);
  position: relative;
  isolation: isolate;
  border-radius: var(--r);
  background-color: var(--fill);
  -webkit-backdrop-filter: var(--rf, blur(1px)) blur(var(--blur)) saturate(108%) brightness(.985) contrast(1);
  backdrop-filter: var(--rf, blur(1px)) blur(var(--blur)) saturate(108%) brightness(.985) contrast(1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(0, 0, 0, .06),
    inset 1px 0 0 rgba(255, 255, 255, .55),
    inset -1px 0 0 rgba(255, 255, 255, .40),
    inset 0 0 48px rgba(0, 0, 0, .030),
    inset 0 26px 44px -28px rgba(255, 255, 255, .95),
    0 1px 1.5px rgba(20, 26, 24, .035),
    0 10px 22px -14px rgba(20, 26, 24, .14),
    0 26px 48px -32px rgba(20, 26, 24, .16);
}
.g1 {
  --blur: 3.2px; --fill: var(--glass-1); border-radius: var(--r-l);
  background-image: linear-gradient(158deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 46%, rgba(238, 242, 241, .05));
}
.g2 {
  --blur: 2.2px; --fill: var(--glass-2);
  background-image: linear-gradient(158deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 52%);
}
.g3 { --blur: 1.2px; --fill: var(--glass-3); border-radius: 14px }
.g-thick {
  --blur: 3.6px;
  --fill: var(--glass-thick);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, .07),
    inset 1px 0 0 rgba(255, 255, 255, .66),
    inset -1px 0 0 rgba(255, 255, 255, .46),
    inset 0 0 0 .5px rgba(255, 255, 255, .34),
    inset 0 0 40px rgba(0, 0, 0, .026),
    0 2px 4px rgba(20, 26, 24, .05),
    0 14px 30px -16px rgba(20, 26, 24, .18),
    0 34px 60px -40px rgba(20, 26, 24, .22);
}
/* 镜面环：1px conic，含极淡青 / 品红色散 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from 202deg at 50% 46%,
    rgba(255, 255, 255, 1) 0deg,
    rgba(206, 240, 255, .62) 34deg,
    rgba(255, 255, 255, .34) 72deg,
    rgba(255, 226, 246, .46) 128deg,
    rgba(255, 255, 255, .22) 172deg,
    rgba(216, 255, 240, .40) 222deg,
    rgba(255, 255, 255, .92) 268deg,
    rgba(255, 255, 255, 1) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .88;
}
/* 凝光：跟随指针 */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(160px 130px at var(--mx, 32%) var(--my, 0%),
    rgba(255, 255, 255, .66) 0%,
    rgba(255, 255, 255, .22) 40%,
    rgba(255, 255, 255, 0) 74%);
  opacity: var(--glow, .85);
  transition: opacity .5s var(--ease);
}
html.dark .glass {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(0, 0, 0, .35),
    inset 0 0 48px rgba(0, 0, 0, .18),
    0 2px 6px rgba(0, 0, 0, .28),
    0 18px 40px -22px rgba(0, 0, 0, .6);
}
html.dark .glass::before { opacity: .5 }
html.dark .glass::after { opacity: .12 }
html.dark .g1, html.dark .g2 { background-image: linear-gradient(158deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 52%) }
html.dark .g3 { background-image: none }

/* 柔性反馈：按下才上合成层。常驻 will-change + translate3d 会让每一行各占一个层，
   100 行的列表在手机上就是 100 层，滚动直接掉到十几帧。 */
.tap {
  transition: transform .58s var(--spring), filter .3s ease;
  transform: scale(1);
}
.tap:active {
  transform: translate3d(var(--sx, 0), var(--sy, 0), 0) scale(var(--sc, .96));
  transition-duration: .11s;
  transition-timing-function: cubic-bezier(.3, .7, .45, 1);
}
.bloom {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  width: 190px; height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .28) 40%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
  animation: bloomOut .74s cubic-bezier(.22, 1, .36, 1) forwards;
}
html.dark .bloom { opacity: .35 }
@keyframes bloomOut {
  0% { opacity: .9; transform: scale(.32) }
  100% { opacity: 0; transform: scale(2) }
}

/* ============================================================================
   6 · 字级与通用件
   ========================================================================== */
.t1 { font-size: 24px; font-weight: 700; line-height: 1.26; letter-spacing: -.022em }
.t2 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.012em }
.t3 { font-size: 16px; font-weight: 400; line-height: 1.66; letter-spacing: -.003em }
.t4 { font-size: 14px; font-weight: 400; line-height: 1.55 }
.t5 { font-size: 12px; font-weight: 400; line-height: 1.5 }
.c1 { color: var(--ink1) }
.c2 { color: var(--ink2) }
.c3 { color: var(--ink3) }
.cb { color: var(--brand) }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }

.deco-en {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--ink3);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-06);
  white-space: nowrap;
}
.iconbtn {
  width: 44px; height: 44px;
  border-radius: 15px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ink2);
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
}
.sec-head a { font-size: 14px; font-weight: 600; color: var(--brand) }

/* 筛选胶囊 */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none }
.chip {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ink2);
  border: 1px solid var(--line);
  background: var(--solid);
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.chip.on, .chip.active {
  color: #fff;
  font-weight: 600;
  border-color: transparent;
  background: rgba(17, 17, 17, .86);
}
html.dark .chip.on, html.dark .chip.active { background: rgba(255, 255, 255, .9); color: #111 }
.chip.empty { opacity: .45 }

/* 列表面板：玻璃在白纸上几乎没有边缘，补一圈中性细线把"这是一张卡"说清楚 */
/* 列表面板是"内容面"，不是悬浮件：用纸面 + 细线，不挂 backdrop-filter。
   它高达几千像素，一旦带玻璃，滚动时每帧都要对整块背景重新采样（实测 58ms/帧 → 8ms/帧）。 */
.panel {
  overflow: hidden;
  border-radius: 24px;
  background: color-mix(in srgb, var(--paper) 84%, #fff);
  outline: 1px solid rgba(17, 17, 17, .05);
  outline-offset: -1px;
  box-shadow: 0 20px 44px -38px rgba(17, 17, 17, .28);
}
html.dark .panel {
  background: color-mix(in srgb, var(--paper) 88%, #fff);
  outline-color: rgba(255, 255, 255, .07);
  box-shadow: none;
}
.rows { display: block }

/* Tab 页底部渐隐：长列表滚到 Dock 后面时不至于文字压着图标 */
.view[data-kind="tab"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--sab) + 88px);
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--paper) 62%, transparent) 52%,
    color-mix(in srgb, var(--paper) 96%, transparent) 100%);
}

.row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 15px 16px;
  position: relative;
  transition: background-color .2s var(--ease);
}
.row + .row::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(17, 17, 17, .04) 55%, transparent);
}
.row:active { background: rgba(17, 17, 17, .025) }
html.dark .row:active { background: rgba(255, 255, 255, .03) }
.row time, .row .li-date-col {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  letter-spacing: .01em;
}
.row .meta, .row .li-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  min-width: 0;
  font-size: 12px;
  color: var(--ink3);
}
.row .meta em, .row .li-meta .li-date {
  font-size: 12px;
  font-style: normal;
  color: var(--ink3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .meta i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink3);
  flex: 0 0 auto;
}
.row .meta .cat, .row .li-meta .tag {
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  flex: 0 0 auto;
  background: none;
  padding: 0;
  height: auto;
}
.row .li-title {
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -.004em;
  color: var(--ink1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row.unread .li-title { font-weight: 600 }
.row.unread .meta .cat::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 5px;
  vertical-align: 1px;
}
.row.has-img, .row.has-thumb { grid-template-columns: 44px 1fr 76px; align-items: center }
.row .thumb, .row .li-thumb {
  display: none;
  width: 76px; height: 57px;
  border-radius: 12px;
  object-fit: cover;          /* <img> 版缩略图：等比裁切撑满，等价于原来的 background-size:cover */
  background-size: cover;
  background-position: center;
  background-color: rgba(17, 17, 17, .04);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .05);
}
.row.has-img .thumb, .row.has-thumb .li-thumb { display: block }
html.dark .row .thumb { background-color: rgba(255, 255, 255, .05) }

/* 骨架 */
.skel { padding: 18px 16px 4px }
.skel-row { padding: 14px 0 18px }
.sk {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, rgba(17, 17, 17, .055) 0%, rgba(17, 17, 17, .09) 42%, rgba(17, 17, 17, .055) 84%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.sk.w1 { width: 78%; height: 15px }
.sk.w2 { width: 94% }
.sk.w3 { width: 42%; height: 10px }
@keyframes shimmer { 0% { background-position: 120% 0 } 100% { background-position: -120% 0 } }
html.dark .sk { background: linear-gradient(90deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .10) 42%, rgba(255, 255, 255, .05) 84%); background-size: 220% 100% }

/* 空态 / 错误态 */
.state-block { display: none; padding: 40px 24px; text-align: center; color: var(--ink3); font-size: 14px; line-height: 1.8 }
.state-block.show { display: block }
.state-icon { font-size: 34px; margin-bottom: 10px }
.retry-btn {
  margin-top: 16px;
  height: 38px;
  padding: 0 18px;
  border-radius: 19px;
  font-size: 14px;
  color: var(--brand);
  border: 1px solid var(--line);
}
.no-more { padding: 22px 0 8px; text-align: center; font-size: 12px; color: var(--ink3) }
.foot { padding: 28px 0 12px; text-align: center }
.foot p { font-size: 12px; line-height: 1.9; color: var(--ink3) }

/* Toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sab) + var(--dock-h) + 26px);
  z-index: 90;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .86);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 84%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4);
  transition: opacity .3s var(--ease), transform .42s var(--spring);
}
.toast.on, .toast.show { opacity: 1; transform: translate(-50%, 0) }
html.dark .toast { background: rgba(240, 244, 242, .94); color: #111 }

/* 回到顶部 */
.to-top {
  position: absolute;
  right: 18px;
  bottom: calc(var(--sab) + var(--dock-h) + 22px);
  width: 42px; height: 42px;
  border-radius: 21px;
  z-index: 29;
  display: grid;
  place-items: center;
  color: var(--ink2);
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(.9);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .42s var(--spring);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto }

/* ============================================================================
   7 · 首页
   ========================================================================== */
.hero {
  position: relative;
  /* 照片区按视口高度走：小屏不至于把列表挤没，大屏（920 高）也不会显得上轻下重 */
  height: calc(clamp(280px, 42vh, 380px) + var(--top-pad));
  padding-top: var(--top-pad);
  margin-bottom: 0;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-position: var(--hero-pos, center 44%);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .62s var(--ease);
}
.hero-img.on { opacity: 1 }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .74) 0%,
    rgba(255, 255, 255, .46) 10%,
    rgba(255, 255, 255, .08) 24%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 74%,
    color-mix(in srgb, var(--paper) 72%, transparent) 94%,
    var(--paper) 100%);
}
html.dark .hero::after {
  background: linear-gradient(180deg,
    rgba(8, 10, 9, .80) 0%,
    rgba(8, 10, 9, .52) 14%,
    rgba(8, 10, 9, .12) 32%,
    rgba(8, 10, 9, 0) 46%,
    rgba(8, 10, 9, 0) 72%,
    color-mix(in srgb, var(--paper) 80%, transparent) 94%,
    var(--paper) 100%);
}
html.dark .brand p { color: rgba(255, 255, 255, .74) }
.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}
.brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px }
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand .logo img { width: 29px; height: 29px; object-fit: contain }
.brand h1 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .5);
}
.brand p {
  font-size: 11.5px;
  color: var(--ink2);
  letter-spacing: .04em;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .45);
}
html.dark .brand h1 { text-shadow: 0 1px 6px rgba(0, 0, 0, .5) }
html.dark .brand p { text-shadow: 0 1px 6px rgba(0, 0, 0, .5) }

/* 主题胶囊 */
.theme-chip {
  position: absolute;
  left: var(--pad);
  /* 锚在照片底部往上 118px：焦点卡是"照片底部 -104px"，这样两者恒定留 14px。
     锚顶部的话，照片高度一变（视口高度不同）就会和焦点卡叠在一起。 */
  bottom: 118px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  white-space: nowrap;
}
.theme-chip svg { width: 14px; height: 14px; opacity: .62 }
.theme-chip .chev { width: 12px; height: 12px; opacity: .42 }
.theme-chip .tdot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .62);
  transition: background-color .5s var(--ease);
}

/* 焦点卡：跨照片与纸面 */
.focus {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: -104px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  overflow: hidden;
  --fill: rgba(255, 255, 255, .24);
  background-image: linear-gradient(168deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .14) 55%, rgba(255, 255, 255, .06));
}
html.dark .focus {
  --fill: rgba(24, 28, 27, .30);
  background-image: linear-gradient(168deg, rgba(60, 70, 66, .42), rgba(30, 36, 34, .18) 55%, rgba(20, 24, 23, .08));
}
.focus-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px }
.focus h2 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.012em;
}
.focus-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.focus-foot .src {
  font-size: 12px;
  color: var(--ink3);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--brand); flex: 0 0 auto }
.focus-idx {
  position: absolute;
  right: 14px; bottom: -14px;
  z-index: -1;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.07em;
  color: rgba(17, 17, 17, .045);
  pointer-events: none;
}
html.dark .focus-idx { color: rgba(255, 255, 255, .05) }

/* 统计行 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 14px }
.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0 2px 14px;
  position: relative;
  text-align: left;
  align-items: flex-start;
}
.stat:first-child { padding-left: 0 }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.stat b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--ink1);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12px; line-height: 1.3; color: var(--ink2) }
.stat .qc-sub { font-size: 10.5px; font-style: normal; color: var(--ink3); min-height: 13px; line-height: 1.2 }
.stat.zero b { color: var(--ink3) }

/* 搜索入口 */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  padding: 0 16px;
  margin: 2px 0 22px;
  color: var(--ink3);
  text-align: left;
}
.searchbar svg { flex: 0 0 auto; width: 18px; height: 18px; opacity: .62 }
.searchbar span {
  flex: 1;
  font-size: 14px;
  color: var(--ink2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.searchbar .hint {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--brand-06);
}

/* ============================================================================
   8 · 页头 / 分段 / 新闻头条
   ========================================================================== */
.phead { padding: 12px var(--pad) 16px }
.phead-row { display: flex; align-items: flex-start; gap: 10px }
.phead-row > div { flex: 1; min-width: 0 }
.phead .deco-en { display: block; margin-bottom: 10px }
.phead h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin-bottom: 6px;
  color: var(--ink1);
}
.phead p { font-size: 12px; color: var(--ink2) }
.phead .iconbtn { margin-top: 4px }

.seg3 {
  display: flex;
  position: relative;
  margin: 0 var(--pad) 14px;
  padding: 4px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.seg3 button {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink2);
  position: relative;
  z-index: 1;
  transition: color .3s var(--ease);
}
.seg3 button.on, .seg3 button.active { color: var(--ink1); font-weight: 600 }
.seg-pill {
  position: absolute;
  top: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  height: 40px;
  border-radius: 999px;
  background-color: var(--solid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, .05),
    0 2px 6px -2px rgba(17, 17, 17, .10);
  transform: translate3d(calc(var(--i, 0) * 100%), 0, 0);
  transition: transform .56s var(--spring);
  z-index: 0;
}
.count { font-size: 12px; color: var(--ink3); margin: 0 2px 10px }
html.dark .seg-pill {
  background-color: rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .35),
    0 2px 8px -2px rgba(0, 0, 0, .5);
}

.lead-news {
  position: relative;
  display: block;
  height: 198px;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 0 14px;
  background: var(--solid);
  box-shadow: 0 18px 36px -26px rgba(17, 17, 17, .45);
}
.lead-news img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.lead-news::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 30%, rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, .68) 100%);
}
.ln-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff }
.ln-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.5px; color: rgba(255, 255, 255, .82) }
.ln-meta .ln-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.ln-body h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.015em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .28);
}
.lead-news.no-img {
  height: auto;
  min-height: 132px;
  background: var(--solid);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px -30px rgba(17, 17, 17, .4);
}
.lead-news.no-img::after { display: none }
.lead-news.no-img .ln-body { position: static; padding: 20px 18px; color: var(--ink1) }
.lead-news.no-img .ln-meta { color: var(--ink3) }
.lead-news.no-img .ln-tag { background: rgba(17, 17, 17, .06); border-color: var(--line); color: var(--ink2) }
.lead-news.no-img h2 { text-shadow: none }

/* ============================================================================
   9 · 搜索（push 视图）
   ========================================================================== */
.s-top { display: flex; align-items: center; gap: 10px; padding: 10px var(--pad) 8px; flex: 0 0 auto }
.s-field {
  flex: 1;
  min-width: 0;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 0 15px;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.s-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand-20), 0 10px 24px -18px rgba(17, 17, 17, .28) }
.s-field svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--ink3) }
.s-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 16px;
  color: var(--ink1);
  padding: 0;
  -webkit-appearance: none;
}
.s-field input::placeholder { color: var(--ink3); font-size: 15px }
.s-field input::-webkit-search-cancel-button,
.s-field input::-webkit-search-decoration { -webkit-appearance: none; display: none }
.s-clear, .search-clear {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  flex: 0 0 auto;
  display: none;
  place-items: center;
  color: var(--ink3);
  background: none;
}
/* 视觉上是一枚 20px 的浅色圆，热区由按钮本体撑到 44×44（真机点得中，圆也不会被拉成椭圆） */
.s-clear::before, .search-clear::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(17, 17, 17, .06);
}
html.dark .s-clear::before, html.dark .search-clear::before { background: rgba(255, 255, 255, .10) }
.s-clear.on, .s-clear.show, .search-clear.on, .search-clear.show { display: grid }
.s-clear svg, .search-clear svg { position: relative; z-index: 1; width: 11px; height: 11px }
.s-cancel {
  flex: 0 0 auto;
  height: 50px;
  min-width: 44px;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  text-align: right;
}
.s-scope { display: flex; gap: 8px; padding: 2px var(--pad) 12px; flex: 0 0 auto }
.s-scope button {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 12.5px;
  color: var(--ink2);
  border: 1px solid var(--line);
  background: var(--solid);
  transition: all .25s var(--ease);
}
.s-scope button.on { color: #fff; font-weight: 600; border-color: transparent; background: rgba(17, 17, 17, .86) }
html.dark .s-scope button.on { background: rgba(255, 255, 255, .9); color: #111 }
.s-body { padding: 0 var(--pad) calc(var(--sab) + 28px) }

.s-label { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px }
.s-label b { font-size: 12px; font-weight: 600; color: var(--ink2); letter-spacing: .02em }
.s-label button { font-size: 12px; color: var(--ink3) }
.recent { display: flex; flex-wrap: wrap; gap: 8px }
.recent .rc, .his-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px 0 13px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--solid);
  font-size: 13px;
  color: var(--ink1);
}
.recent .rc i {
  width: 18px; height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink3);
  font-style: normal;
}
.recent .rc i svg { width: 9px; height: 9px }
.his-empty { font-size: 12px; color: var(--ink3) }
.hot { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px }
.hot button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  font-size: 14px;
  color: var(--ink1);
  text-align: left;
}
.hot b {
  width: 18px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.hot button:nth-child(-n+3) b { color: var(--brand) }
.s-hint {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 17, 17, .028);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink3);
}
html.dark .s-hint { background: rgba(255, 255, 255, .04) }
.s-hint b { color: var(--ink2); font-weight: 600 }

.s-result-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 6px }
.s-result-head b { font-size: 12px; font-weight: 600; color: var(--ink2) }
.s-result-head span { font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums }
.s-group { display: flex; align-items: center; gap: 10px; margin: 20px 0 2px; font-size: 12px; color: var(--ink3) }
.s-group::after { content: ""; flex: 1; height: 1px; background: var(--hair) }
.s-group b { font-weight: 600; color: var(--ink2) }
.s-group span { font-variant-numeric: tabular-nums }
.s-row { display: block; padding: 15px 0 16px; position: relative }
.s-row + .s-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(17, 17, 17, .04) 55%, transparent);
}
.s-row .st { font-size: 16px; line-height: 1.62; letter-spacing: -.005em }
.s-row .sn {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-row .sm { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--ink3) }
.s-row .sm i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink3) }
.s-row .sm .cat { color: var(--brand); font-weight: 600 }
/* 站内补召条目的来源标签：中性灰，与本地栏目的主色标签区分开 */
.s-row .sm .tag-other {
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink2);
  background: rgba(17, 17, 17, .05);
}
html.dark .s-row .sm .tag-other { background: rgba(255, 255, 255, .08) }
.s-row:active { background: rgba(17, 17, 17, .02) }
mark, .detail-content b {
  background: var(--brand-12);
  color: inherit;
  border-radius: 3px;
  padding: 0 1.5px;
  box-shadow: inset 0 -1px 0 var(--brand-20);
  font-weight: 600;
}
.detail-content b { background: none; box-shadow: none; font-weight: 600 }

.s-empty { padding: 54px 20px 20px; text-align: center }
.s-empty .ico {
  width: 64px; height: 64px;
  border-radius: 22px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, .035);
  color: var(--ink3);
}
.s-empty h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px }
.s-empty p { font-size: 13px; line-height: 1.8; color: var(--ink3) }
.s-empty .acts { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap }
.s-empty .acts button {
  height: 38px;
  padding: 0 15px;
  border-radius: 19px;
  font-size: 13px;
  color: var(--ink2);
  border: 1px solid var(--line);
}
.sr-count { font-size: 12px; color: var(--ink3); padding: 16px 0 4px }
.sr-sub { font-size: 11.5px; color: var(--ink3); padding: 2px 0 6px }
.sr-more { padding: 18px 0; text-align: center; font-size: 12px; color: var(--ink3) }
.sr-same {
  font-size: 10.5px;
  color: var(--brand);
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--brand-06);
}
.sr-empty { padding: 48px 20px; text-align: center; color: var(--ink3); font-size: 14px; line-height: 1.8 }
.sr-src { color: var(--brand); text-decoration: underline; text-underline-offset: 3px }
.sr-item { display: block; padding: 15px 0 16px; position: relative }
.sr-item + .sr-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair) }
.sr-item .li-title { font-size: 16px; line-height: 1.62 }
.sr-item .li-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--ink3) }
.sr-snip { margin-top: 6px; font-size: 13px; line-height: 1.72; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }

/* ============================================================================
   10 · 详情（浮白）
   ========================================================================== */
.progress {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 3px;
  height: 2px;
  z-index: 26;
  border-radius: 1px;
  background: rgba(17, 17, 17, .05);
}
html.dark .progress { background: rgba(255, 255, 255, .07) }
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .1s linear;
}
.dnav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 8px;
  height: 56px;
  border-radius: 28px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}
/* 胶囊中间放"本文标题"：一行、居中、超长省略（完整的标题就在下面正文里） */
.dnav .ttl {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink1);
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dnav .iconbtn { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--ink2) }
.dbody { padding: 0 var(--pad) calc(var(--sab) + 104px) }
.dtop { height: 78px }
.dkind { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px }
.dkind .date { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums }
.dtitle {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -.028em;
  color: var(--ink1);
}
.dmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.dmeta span { font-size: 12px; color: var(--ink2) }
.dmeta i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink3) }
.article { font-size: 1rem; line-height: 1.92; color: var(--ink1); word-break: break-word }
.article p { margin-bottom: 16px }
.article .dfirst {
  margin: 2px 0 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px -22px rgba(17, 17, 17, .5);
}
.article .dfirst img { display: block; width: 100%; height: auto }
.article h3 { font-size: 1.06rem; font-weight: 600; line-height: 1.5; margin: 28px 0 8px; letter-spacing: -.01em }
.article ul { padding-left: 20px; list-style: disc; margin-bottom: 16px }
.article li { margin-bottom: 8px }
.article img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px auto;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.article img.dc-ready { opacity: 1 }
.article .dc-broken {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: rgba(17, 17, 17, .04);
  font-size: 13px;
  color: var(--ink3);
  text-align: center;
}
.article .table-wrap {
  margin: 4px -2px 20px;
  max-width: calc(100% + 4px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .055), transparent 18px) left center/18px 100% no-repeat,
    linear-gradient(270deg, rgba(17, 17, 17, .055), transparent 18px) right center/18px 100% no-repeat;
}
/* 表格按内容自然宽度展开：列名/学号不会被挤成一字一行；超出部分由 .table-wrap 横向滑动 */
/* 深色下边缘提示线换成浅色，否则"右边还有内容"看不出来 */
html.dark .article .table-wrap {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 18px) left center/18px 100% no-repeat,
    linear-gradient(270deg, rgba(255, 255, 255, .07), transparent 18px) right center/18px 100% no-repeat;
}
.article table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6 }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top }
.article th {
  font-weight: 600;
  color: var(--ink2);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
  background: rgba(17, 17, 17, .022);
}
html.dark .article th { background: rgba(255, 255, 255, .04) }
.article td:first-child, .article th:first-child { padding-left: 12px }
.article .sign, .article .dc-sign-org, .article .dc-sign-date { color: var(--ink2) }
/* 落款：单位与日期各一行、右对齐、不缩进、不折行（源站用 &nbsp; 顶位 + 写死 center，必须在渲染层纠正） */
.article p.dc-sign, .article div.dc-sign {
  margin: 0 0 6px;
  text-indent: 0;
  text-align: right;
  white-space: nowrap;
  color: var(--ink2);
}
.article p.dc-sign-date, .article div.dc-sign-date { margin-top: 2px; margin-bottom: 2px }
.article .excerpt { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 12px; line-height: 1.8; color: var(--ink3) }
.article a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-all }

/* 附件 */
.detail-attach { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--hair) }
.da-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 10px }
.da-count { font-size: 11px; color: var(--ink3); font-weight: 400 }
.attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(17, 17, 17, .028);
}
html.dark .attach-item { background: rgba(255, 255, 255, .045) }
.at-badge {
  flex: 0 0 auto;
  min-width: 38px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: #8A94A6;
}
.at-pdf { background: #C4534B }
.at-doc { background: #3C6E93 }
.at-xls { background: #47654F }
.at-ppt { background: #B4693C }
.at-zip { background: #6C6C72 }
.at-file { background: #8A94A6 }
.at-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.at-go { flex: 0 0 auto; color: var(--ink3) }
/* 附件卡片在 .article 里，会继承正文链接的「下划线 + 任意断词」：
   下划线不该出现在卡片上；break-all 会把 .pdf 拆成 "pd / f"。这里改回按词断行。 */
.article .attach-item {
  text-decoration: none;
  word-break: normal;
  overflow-wrap: anywhere;
}
.attach-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px }
.attach-pics .ap-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(17, 17, 17, .04);
}
.attach-pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0 }
.ap-broken::after { content: "图片"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--ink3) }

.dorigin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 12px;
  color: var(--ink3);
}
.dorigin a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; word-break: break-all }
.detail-src-btn {
  display: block;
  margin: 22px 0 0;
  padding: 13px;
  border-radius: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--brand);
  border: 1px solid var(--line);
}

/* 底部操作条 */
.dbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--sab) + 12px);
  height: 64px;
  border-radius: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}
.dbar .btn {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink2);
}
.dbar .btn.primary {
  flex: 1.5;
  color: #fff;
  font-weight: 600;
  background-color: rgba(17, 17, 17, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -8px rgba(17, 17, 17, .5);
}
html.dark .dbar .btn.primary { background-color: rgba(255, 255, 255, .92); color: #111 }
.dbar .btn svg { width: 18px; height: 18px }
.dbar .btn.on { color: var(--brand) }
.dbar .btn.on svg { fill: var(--brand-12) }

/* ============================================================================
   11 · 关于
   ========================================================================== */
.ahero { display: flex; flex-direction: column; align-items: center; padding: 16px 0 28px }
.ahero .logo {
  width: 78px; height: 78px;
  border-radius: 26px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ahero .logo img { width: 56px; height: 56px; object-fit: contain }
.ahero h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 5px }
.ahero p { font-size: 12px; color: var(--ink2) }
.acard { padding: 20px; border-radius: 24px; margin-bottom: 14px }
.acard h3 { font-size: 18px; font-weight: 600; letter-spacing: -.012em; margin-bottom: 12px }
.acard .desc { font-size: 16px; line-height: 1.88; color: var(--ink2) }
.crow { display: flex; gap: 16px; padding: 11px 0; font-size: 16px; line-height: 1.6 }
.crow .k { width: 44px; flex: 0 0 auto; color: var(--ink3); font-size: 14px }
.crow .v { flex: 1; color: var(--ink1); word-break: break-all }
.crow .v.brand { color: var(--brand) }
.crow + .crow { border-top: 1px solid var(--hair); margin-top: 2px; padding-top: 13px }
.opt-row { display: flex; gap: 8px; margin-top: 8px }
.opt {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink2);
}
.opt.on, .opt.active { color: var(--ink1); font-weight: 600; background-color: rgba(17, 17, 17, .06) }
html.dark .opt.on, html.dark .opt.active { background-color: rgba(255, 255, 255, .10) }
.sub { font-size: 12px; color: var(--ink3); margin: 16px 0 4px }
.ver { text-align: center; font-size: 12px; color: var(--ink3); padding: 8px 0 12px; line-height: 1.8 }

/* 主题卡：四张地标照片 */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px }
.tcard {
  position: relative;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  background: rgba(17, 17, 17, .06);
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.tcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .58) 100%);
}
.tcard .tl { position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 2; color: #fff }
.tcard .tl b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3 }
.tcard .tl span { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .78); margin-top: 1px }
.tcard .tcheck {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 20px; height: 20px;
  border-radius: 10px;
  display: none;
  place-items: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.tcard.on, .tcard.active { box-shadow: 0 0 0 2px var(--brand), 0 0 0 4px var(--paper) }
.tcard.on .tcheck, .tcard.active .tcheck { display: grid }
.tcard .swatches { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 3px }
.tcard .swatches i { width: 7px; height: 7px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) }

/* 收藏夹 */
.fav-list { display: block }
.fav-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 1px solid var(--hair) }
.fav-row .ft { flex: 1; min-width: 0; font-size: 15px; line-height: 1.6; color: var(--ink1) }
.fav-row .fd { flex: 0 0 auto; font-size: 12px; color: var(--ink3); padding-top: 3px }
.fav-empty { font-size: 13px; color: var(--ink3); padding: 4px 0 2px }

/* ============================================================================
   12 · 底部 Dock
   ========================================================================== */
/* 悬浮件（Dock / 详情导航 / 底部操作条）压在正文之上：
   它们下面永远是正在读的文字。位移折射会把字"折"进胶囊里，白度必须比普通玻璃更高一档，
   否则正文会从导航条里透出来、标题也跟着糊掉。 */
.dock, .dnav, .dbar {
  --blur: 9px;
  --fill: color-mix(in srgb, var(--paper) 74%, rgba(255, 255, 255, .10));
}
html.dark .dock, html.dark .dnav, html.dark .dbar {
  --fill: color-mix(in srgb, var(--paper) 82%, rgba(255, 255, 255, .04));
}

.dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--sab) + 12px);
  height: var(--dock-h);
  border-radius: 32px;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 8px;
  outline: 1px solid rgba(17, 17, 17, .05);
  outline-offset: -1px;
  transition: transform .58s var(--spring), opacity .3s var(--ease);
}
html.dark .dock { outline-color: rgba(255, 255, 255, .07) }
.dock.is-hidden { transform: translate3d(0, 150%, 0); opacity: 0; pointer-events: none }
.dock-ind {
  position: absolute;
  top: 8px; left: 8px;
  width: calc((100% - 16px) / 4);
  height: 48px;
  border-radius: 24px;
  background-color: rgba(17, 17, 17, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(17, 17, 17, .04);
  transform: translate3d(calc(var(--i, 0) * 100%), 0, 0);
  transition: transform .58s var(--spring);
}
html.dark .dock-ind { background-color: rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10) }
.dk {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(17, 17, 17, .46);
  transition: color .3s var(--ease);
}
html.dark .dk { color: rgba(255, 255, 255, .46) }
.dk.on, .dk.active { color: rgba(17, 17, 17, .92) }
html.dark .dk.on, html.dark .dk.active { color: rgba(255, 255, 255, .95) }
.dk svg { width: 22px; height: 22px; display: block }
.dk span { font-size: 12px; line-height: 1.15 }
.dk.on span { font-weight: 600 }
.tab-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  margin-left: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #C4534B;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 70%, transparent);
}
.tab-badge.show { display: block }

/* ============================================================================
   13 · 主题弹层
   ========================================================================== */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 74;
  background: rgba(17, 17, 17, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto }
.sheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 76;
  border-radius: 28px;
  padding: 8px 16px calc(18px + var(--sab));
  transform: translate3d(0, calc(100% + 24px), 0);
  visibility: hidden;
  transition: transform .54s var(--spring), visibility 0s .54s;
}
.sheet.on { transform: translate3d(0, 0, 0); visibility: visible; transition: transform .54s var(--spring) }
.sheet-handle { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 2px auto 14px }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px }
.sheet-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em }
.sheet-head button {
  width: 32px; height: 32px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ink3);
  background: rgba(17, 17, 17, .05);
}
html.dark .sheet-head button { background: rgba(255, 255, 255, .08) }
.sheet-note { font-size: 12px; line-height: 1.7; color: var(--ink3); margin-bottom: 12px }
.sheet .tgrid { gap: 8px }
.sheet .tcard { height: 92px }

/* ============================================================================
   14 · 图片全屏预览
   ========================================================================== */
.lightbox-overlay {
  position: absolute;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 10, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility 0s .28s;
}
.lightbox-overlay.show { opacity: 1; visibility: visible; transition: opacity .28s var(--ease) }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
  touch-action: none; overscroll-behavior: contain;
  will-change: transform; backface-visibility: hidden;
}
.lightbox-overlay img.dragging { transition: none; }
/* 换图：按方向平移（--lb-dir 由 JS 写），不是直接闪现 */
.lightbox-overlay img.lb-slide-out { animation: lb-out .15s var(--ease) forwards }
.lightbox-overlay img.lb-slide-in { animation: lb-in .24s var(--ease) both }
@keyframes lb-out {
  to { opacity: 0; transform: translateX(calc(var(--lb-dir, 1) * -14%)) }
}
@keyframes lb-in {
  from { opacity: 0; transform: translateX(calc(var(--lb-dir, 1) * 14%)) }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay img.lb-slide-out,
  .lightbox-overlay img.lb-slide-in { animation: none }
}
.lightbox-overlay img.lb-loading { opacity: .25 }
.lightbox-close {
  position: absolute;
  top: calc(16px + var(--sat));
  right: 16px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.lightbox-counter {
  position: absolute;
  bottom: calc(22px + var(--sab));
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   15 · OTA 更新弹窗
   ========================================================================== */
#ota-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 9, .46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ota-card {
  width: 100%;
  max-width: 340px;
  padding: 22px 20px 16px;
  border-radius: 26px;
  background: var(--paper, #fff);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5);
  animation: otaIn .42s var(--spring-soft);
}
@keyframes otaIn { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }
.ota-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px }
.ota-app { width: 46px; height: 46px; border-radius: 13px; object-fit: contain }
.ota-eyebrow { font-size: 11px; letter-spacing: .06em; color: var(--ink3); margin-bottom: 3px }
.ota-top h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em }
.ota-top h3 b { color: var(--brand); font-weight: 700 }
.ota-vers { display: flex; align-items: center; gap: 8px; margin-bottom: 16px }
.ota-chip {
  flex: 1;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  color: var(--ink2);
  background: rgba(17, 17, 17, .05);
}
.ota-chip.now { color: #fff; background: var(--brand); font-weight: 600 }
.ota-arrow { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink3) }
.ota-label { font-size: 11px; letter-spacing: .06em; color: var(--ink3); margin-bottom: 6px }
.ota-note { font-size: 13.5px; line-height: 1.75; color: var(--ink2); margin-bottom: 10px }
.ota-meta { font-size: 11.5px; color: var(--ink3); margin-bottom: 16px; min-height: 14px }
.ota-btn { width: 100%; height: 46px; border-radius: 23px; font-size: 15px; font-weight: 600 }
.ota-btn.primary { color: #fff; background: var(--brand); margin-bottom: 8px }
.ota-btn.primary:disabled { opacity: .6 }
.ota-btn.ghost { color: var(--ink3); font-weight: 400; height: 40px }

/* ============================================================================
   16 · 下拉刷新
   ========================================================================== */
.ptr {
  position: absolute;
  left: 50%;
  top: calc(var(--top-pad) + 6px);
  transform: translate(-50%, -14px);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--ink2);
  background: var(--solid);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 8px 20px -12px rgba(17, 17, 17, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .3s var(--spring);
}
.ptr.on { opacity: 1; transform: translate(-50%, 0) }
.ptr i {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.6px solid var(--ink3);
  border-top-color: transparent;
}
.ptr.busy i { animation: spin .8s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

/* ============================================================================
   17 · 无障碍 / 降级
   ========================================================================== */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
body.reduce-motion .tap:active { transform: none }
body.reduce-motion .bloom { display: none }
body.no-refract .glass,
body.no-refract .g1,
body.no-refract .g2,
body.no-refract .g3,
body.no-refract .g-thick {
  -webkit-backdrop-filter: blur(16px) saturate(170%) brightness(1.04) !important;
  backdrop-filter: blur(16px) saturate(170%) brightness(1.04) !important;
  background-color: rgba(255, 255, 255, .58);
}
html.dark body.no-refract .glass { background-color: rgba(30, 34, 33, .72) }

/* 触控目标下限 44px：图标按钮 / Dock 项 / 操作条按钮 / 搜索入口 */
.iconbtn, .tab-item, .dk, .dbar .btn, .searchbar { min-height: 44px }

/* 原生预测性返回：跟手期间必须关掉过渡，位移才严格跟着手指 */
.back-follow { transition: none !important }
/* 跟手时露出的"下一层"：它平时是 is-hidden（opacity:0），push 层默认也透明，
   这里强制按完整一屏显示；也不要过渡 —— 手指一按下它就该在那儿，不是慢慢淡进来。
   并且**把它糊掉**：系统"回桌面"的跟手动画里背景是虚的、上面那张卡是实的，
   应用内返回也照这个来，层次才出得来（真机 2026-10-23）。放大 1.18 是为了
   盖住 blur 在图层边缘的透明衰减，不然露出那一侧会先淡成白边。 */
.view.back-under {
  opacity: 1 !important;
  transform: scale(1.18) !important;
  filter: blur(24px);
  transition: none !important;
  pointer-events: none;
  z-index: 2;
}

/* ============================================================================
   18 · 运行时补充件
   ========================================================================== */
/* 列表行里的类别标签：这里只要一枚有色的字，不要胶囊底 */
.row .meta .tag,
.row .li-meta .tag {
  background: none;
  padding: 0;
  height: auto;
  border-radius: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  flex: 0 0 auto;
}
.row .meta .h-date { font-size: 12px; color: var(--ink3); white-space: nowrap }
.stream-empty { text-align: center }

/* 详情标题加载中：先给个占位语气，避免"正在载入…"像最终标题 */
.detail-title.pending { color: var(--ink3); font-weight: 600 }

/* 首次进入的同意弹窗（仅原生壳） */
.consent-gate {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 9, .48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.consent-card {
  width: 100%;
  max-width: 330px;
  padding: 22px 20px 16px;
  border-radius: 26px;
  background: var(--paper, #fff);
  color: var(--ink1, #111);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5);
}
.consent-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px }
.consent-note { font-size: 13.5px; line-height: 1.8; color: var(--ink2, #555) }
.consent-note b { color: var(--ink1, #111); font-weight: 600 }
.consent-link { margin-top: 10px; font-size: 12.5px }
.consent-link a { color: var(--brand, #47654F) }
.consent-btns { display: flex; gap: 10px; margin-top: 18px }
.consent-btns button {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
}
.consent-no { color: var(--ink2, #555); background: rgba(17, 17, 17, .05) }
.consent-yes { color: #fff; background: var(--brand, #47654F) }

/* ============================================================================
   线性横滑：Dock 切 tab、分段胶囊切分类
   手势只在两个控件上起手（控件自己吃掉横向手势），内容区照常纵向滚动、表格照常横滑。
   ========================================================================== */
#tab-bar, .seg3 { touch-action: none }
.swiping .view,
.swiping .panel,
.swiping .swipe-ghost,
.swiping .dock-ind,
.swiping .seg-pill { transition: none !important }
.swipe-anim .view,
.swipe-anim .panel,
.swipe-anim .swipe-ghost,
.swipe-anim .dock-ind,
.swipe-anim .seg-pill { transition: transform .26s var(--spring-soft) !important }
/* 跟手时贴在旁边的"下一张列表" */
.swipe-ghost { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none }

/* 宽度断点：390 是设计基准，420 以上放宽内边距，359 以下收紧，避免小屏两侧太挤 */
@media (min-width: 420px) { :root { --pad: 18px } }
@media (max-width: 359px) { :root { --pad: 14px } }

@media (prefers-reduced-motion: reduce) {
  .view, .tap, .dock, .sheet { transition-duration: .001ms !important }
}
