/* =========================================================
   子午线 · 世界时间 — 设计系统
   墨绿仪表盘 / 青绿数字 / 暖橙点缀 / 发丝分割线
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper: #f5f7f7;
  --surface: #ffffff;
  --surface-2: #edf3f1;
  --ink: #172b2a;
  --muted: #60726f;
  --faint: #7a8b88;
  --line: #dbe5e2;
  --line-strong: #c3d3cf;
  --accent: #007d70;
  --accent-soft: #e4f4ef;
  --night: #1c6b7a;
  --night-soft: #e3f0f2;
  --gold: #b8794a;
  --ok: #2f8f6f;

  /* 昼夜地图与昼夜卡片 */
  --sky-sea: #eef4f2;
  --sky-line: #dbe5e2;
  --sky-line-strong: #c3d3cf;
  --sky-land: #c9d8d2;
  --sky-night: rgba(10, 58, 56, 0.28);
  --sky-ember: #df9a68;
  --day-1: #f2f8f5;
  --night-1: #e6eef6;

  /* 深色仪表盘（hero） */
  --hero-bg: #123a3a;
  --hero-line: #27615b;
  --hero-ink: #eaf9f5;
  --hero-muted: #b5d8d1;
  --hero-accent: #70e2c8;
  --hero-warm: #eac29b;
  --hero-card: #214b49;
  --hero-card-hover: #285955;
  --hero-part: #1e5350;
  --hero-part-line: #477f74;

  --radius: 4px;
  --radius-lg: 6px;
  --wrap: 1200px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --shadow-pop: 0 18px 40px rgba(13, 47, 45, 0.18);
}

html[data-theme="dark"] {
  --paper: #101b1d;
  --surface: #1b2b2c;
  --surface-2: #243738;
  --ink: #edf6f3;
  --muted: #adbfbb;
  --faint: #93a7a3;
  --line: #36504e;
  --line-strong: #44605d;
  --accent: #65dbc3;
  --accent-soft: #234d46;
  --night: #79c9d6;
  --night-soft: #16302f;
  --gold: #e0b48a;
  --ok: #65dbc3;
  --sky-sea: #0e1a1c;
  --sky-line: #1d2f31;
  --sky-line-strong: #2a4244;
  --sky-land: #2f4a48;
  --sky-night: rgba(0, 0, 0, 0.55);
  --sky-ember: #e2a06f;
  /* 暗色下昼夜底色需要更大的明度/色相差，否则卡片几乎同色 */
  --day-1: #1b2b26;
  --night-1: #16262c;
  --hero-bg: #0d2b2b;
  --hero-line: #2a5f59;
  --hero-card: #1b403e;
  --hero-card-hover: #23514d;
  --hero-part: #184744;
  --hero-part-line: #3f7a70;
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --paper: #101b1d;
    --surface: #1b2b2c;
    --surface-2: #243738;
    --ink: #edf6f3;
    --muted: #adbfbb;
    --faint: #93a7a3;
    --line: #36504e;
    --line-strong: #44605d;
    --accent: #65dbc3;
    --accent-soft: #234d46;
    --night: #79c9d6;
    --night-soft: #16302f;
    --gold: #e0b48a;
    --ok: #65dbc3;
    --sky-sea: #0e1a1c;
    --sky-line: #1d2f31;
    --sky-line-strong: #2a4244;
    --sky-land: #2f4a48;
    --sky-night: rgba(0, 0, 0, 0.55);
    --sky-ember: #e2a06f;
    --day-1: #1b2b26;
    --night-1: #16262c;
    --hero-bg: #0d2b2b;
    --hero-line: #2a5f59;
    --hero-card: #1b403e;
    --hero-card-hover: #23514d;
    --hero-part: #184744;
    --hero-part-line: #3f7a70;
    --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.3; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[data-part="s"] { color: var(--accent); }
time, .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.15) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 74px; }

.brand { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.brand-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); align-self: center; flex: 0 0 auto;
}
.brand-cn { font-size: 21px; font-weight: 800; letter-spacing: 0; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

.nav { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); }
.nav a { padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.site-search {
  display: flex; align-items: center;
  height: 38px; padding-left: 11px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.site-search input {
  width: 186px; height: 100%; padding: 0 4px;
  border: 0; background: none; color: var(--ink);
  font: inherit; font-size: 13px; outline: none;
}
.site-search input::placeholder { color: var(--faint); }
.site-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-search button {
  width: 36px; height: 100%; display: grid; place-items: center;
  border: 0; background: none; color: var(--accent); cursor: pointer;
}
.site-search button:hover { color: var(--ink); }
kbd {
  font-family: var(--font-mono); font-size: 10px; line-height: 1;
  padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 3px;
  color: var(--faint); background: var(--paper);
}

.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); color: var(--ink); }

/* ---------------- 首屏 ---------------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 48px; align-items: center;
  padding-block: 54px 46px; border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.16em; color: var(--faint);
  text-transform: uppercase; margin-bottom: 16px;
}
.hero-time {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(54px, 8.2vw, 116px); line-height: 0.94; letter-spacing: -0.045em;
}
.hero-time .sec { font-size: 0.34em; color: var(--faint); letter-spacing: 0; margin-left: 0.1em; vertical-align: 0.62em; }
.hero-date { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero-date strong { color: var(--ink); font-weight: 400; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-size: 12px; color: var(--muted); background: transparent;
}
.badge b { font-weight: 500; color: var(--ink); font-family: var(--font-mono); }
.badge.is-dst { border-color: var(--accent); color: var(--accent); }
.badge.is-dst b { color: var(--accent); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

.hero-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-size: 13px; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 日晷环 */
.dial-box { display: flex; justify-content: center; }
.dial { width: min(300px, 100%); aspect-ratio: 1; position: relative; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial-label {
  position: absolute; inset: auto 0 -6px; text-align: center;
  font-size: 11px; letter-spacing: 0.1em; color: var(--faint);
}

/* ---------------- 区块 ---------------- */

.section { padding-block: 46px; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 19px; }
.section-head .meta { font-size: 12px; color: var(--muted); }
.section-head .meta a:hover { color: var(--ink); }
.section-lead { font-size: 13px; color: var(--muted); margin: -10px 0 22px; max-width: 640px; }

/* ---------------- 城市卡片 ---------------- */

.clock-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.clock-card {
  display: block; background: var(--surface); padding: 18px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.clock-card:hover { background: var(--surface-2); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13, 47, 45, 0.10); }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); flex: 0 0 auto; }
.cc-top .flag-txt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--faint); }
.flag-inline { display: inline-block; vertical-align: -2px; margin-right: 7px; }
.flag-title { display: inline-block; vertical-align: -3px; margin-right: 10px; border-radius: 3px; }
h1.with-flag { display: flex; align-items: center; }
.cc-name { margin-top: 8px; font-size: 15px; }
.cc-name span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.cc-time { margin-top: 10px; font-family: var(--font-mono); font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.cc-time .sec { font-size: 0.55em; color: var(--faint); }
.cc-meta { margin-top: 7px; font-size: 11px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.cc-meta .day { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cc-meta .night { background: var(--night); }

/* ---------------- 时区带 ---------------- */

.zone-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.zone-cell {
  padding: 9px 2px 8px; text-align: center; font-size: 10px; color: var(--faint);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}
.zone-cell:hover { background: var(--surface-2); }
.zone-cell b { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--ink); margin-bottom: 2px; }
.zone-cell span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 9px; opacity: 0.6; }
.zone-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 10px; }

/* ---------------- 大洲 / 国家 ---------------- */

.continent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.continent-card {
  border: 1px solid var(--line); border-radius: 6px; padding: 18px;
  background: var(--surface); display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.15s, transform 0.15s;
}
.continent-card:hover { border-color: var(--line-strong); }
.continent-card .glyph { font-size: 26px; line-height: 1; color: var(--accent); font-weight: 400; }
.continent-card .cn { font-size: 15px; margin-top: 8px; }
.continent-card .en { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.continent-card .count { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 13px; background: var(--surface);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.chip:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13, 47, 45, 0.07); }
.chip small { color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.chip.is-on { border-color: var(--accent); color: var(--accent); }
.chip.is-on small { color: var(--accent); }

/* 首字母快速导航 */
.alpha-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.alpha-nav a {
  min-width: 27px; height: 27px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 5px; background: var(--surface);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.alpha-nav a:hover { border-color: var(--accent); color: var(--accent); }
.alpha-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-row { margin: 2px 0 16px; }

/* ---------------- 面包屑 / 页头 ---------------- */

.crumbs { padding: 22px 0 0; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }

.page-head { padding: 28px 0 0; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.page-head .sub { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 720px; }

/* ---------------- 城市页 ---------------- */

.city-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 40px; align-items: stretch;
  margin-top: 16px; padding: 26px 30px 24px;
  border: 1px solid var(--hero-line);
  border-radius: 6px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  box-shadow: 0 20px 42px rgba(15, 58, 55, 0.14);
}
.city-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: var(--hero-accent);
  opacity: 0.075;
  -webkit-mask: url("../img/world-dots.svg") center 40% / 118% auto no-repeat;
  mask: url("../img/world-dots.svg") center 40% / 118% auto no-repeat;
  pointer-events: none;
}
.city-hero h1 { color: #f3fffc; }
.city-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.city-main { position: relative; min-width: 0; display: flex; flex-direction: column; }
/* 左栏与右栏等高时按钮自然落在底部；徽章与按钮之间留出舒适但不空旷的间距 */
.city-main .hero-actions { margin-top: auto; padding-top: 16px; }
.city-title h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 760; line-height: 1.2; }
.city-title .en { font-size: 13.5px; color: var(--hero-muted); }
.city-time {
  display: block;
  font-family: var(--font-mono); font-weight: 650;
  font-size: clamp(58px, 8.6vw, 112px); line-height: 1.06; letter-spacing: -0.03em;
  margin-top: 14px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(117, 242, 213, 0.16);
}
.city-time .sec { font-size: 0.36em; color: var(--hero-accent); vertical-align: 0.62em; margin-left: 0.1em; letter-spacing: -0.02em; }
.city-sub { margin-top: 6px; font-size: 14px; color: var(--hero-muted); }
.city-sub a { color: var(--hero-accent); }
.city-date { margin-top: 12px; font-size: 14px; color: var(--hero-muted); }
.city-date strong { font-weight: 600; color: var(--hero-ink); }
.city-date a { color: var(--hero-accent); }

/* 深色卡内的通用件反白 */
.city-hero .badge {
  border-color: var(--hero-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hero-muted);
}
.city-hero .badge b { color: var(--hero-ink); }
.city-hero .badge.is-dst { border-color: var(--hero-warm); color: var(--hero-warm); }
.city-hero .badge .dot { background: var(--hero-accent); }
.city-hero .btn {
  border-color: var(--hero-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hero-ink);
}
.city-hero .btn:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
.city-hero .btn-primary {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  color: #062b28;
}
.city-hero .btn-primary:hover { background: #8ff0da; color: #062b28; }

/* 卡内面板：玻璃深色 */
.city-hero .panel {
  background: rgba(9, 41, 40, 0.36);
  border-color: var(--hero-line);
  padding: 16px;
}
.city-hero .panel-head { margin-bottom: 10px; }
.city-hero .panel-head h2, .city-hero .panel-head h3 { color: var(--hero-ink); }
.city-hero .panel-head .meta { color: var(--hero-muted); }
.city-hero .arc-wrap svg line { stroke: var(--hero-line); }
.city-hero .arc-wrap svg path { stroke: #639e93; }
.city-hero .arc-wrap svg g[data-arc-sun] circle { fill: var(--hero-warm); }
.city-hero .arc-times { color: var(--hero-muted); }
.city-hero .arc-times b { color: var(--hero-ink); }
.city-hero .arc-now { color: var(--hero-muted); }
.city-hero .diff-big { color: var(--hero-ink); }

/* 首屏时钟上方的一行当日天气条 */
.city-weather {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}
.hero-wx-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hero-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
}
.hero-wx-line .wx-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.hero-wx-temp { font-family: var(--font-mono); font-size: 18px; font-weight: 650; color: var(--hero-ink); line-height: 1; }
.hero-wx-label { font-size: 13px; color: var(--hero-ink); }
.hero-wx-meta { font-size: 12px; color: var(--hero-muted); }
.hero-wx-meta + .hero-wx-meta { padding-left: 8px; border-left: 1px solid var(--hero-line); }
.city-weather .wx-skeleton { display: inline-flex; align-items: center; gap: 8px; }
.city-weather .wx-sk-icon { width: 22px; height: 22px; background: rgba(255, 255, 255, 0.1); }
.city-weather .wx-sk-lines { display: inline-flex; flex-direction: column; gap: 4px; }
.city-weather .wx-sk-lines i { display: block; width: 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.city-weather .wx-sk-lines i:last-child { width: 72px; }
.city-weather .wx-hint { font-size: 12px; color: var(--hero-muted); }
/* 窄屏：允许换行，避免长天气词 + 体感 + 今日区间把胶囊撑出屏幕 */
@media (max-width: 640px) {
  .city-weather { display: flex; }
  .hero-wx-line { flex-wrap: wrap; white-space: normal; row-gap: 2px; border-radius: 14px; }
  .hero-wx-meta + .hero-wx-meta { padding-left: 0; border-left: 0; }
  .hero-wx-meta + .hero-wx-meta::before { content: "·"; margin-right: 8px; color: var(--hero-line); }
}

/* 首屏左栏不再放天气卡，天气由时钟上方的一行天气条承接 */

.city-hero .diff-sub { color: var(--hero-muted); }
.city-hero .overlap-bar { background: rgba(255, 255, 255, 0.08); }
.city-hero .overlap-bar i.on { background: rgba(112, 226, 200, 0.32); }
.city-hero .overlap-bar i.hot { background: var(--hero-accent); }

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { font-size: 14px; }
.panel-head .meta { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }

.arc-wrap { margin: 4px 0 2px; }
.arc-times { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.arc-times b { display: block; font-family: var(--font-mono); font-size: 15px; font-weight: 400; color: var(--ink); margin-top: 2px; }
.arc-now { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; }

/* 首屏右栏压缩：日出日落卡与时差卡收紧，使右栏总高与左栏自然内容等高、消除左栏空隙 */
.city-hero .arc-wrap { margin: 0; }
.city-hero .arc-times { margin-top: 4px; }
.city-hero .arc-times b { margin-top: 0; }
.city-hero .arc-now { margin-top: 6px; }
.city-hero .diff-panel { margin-top: 14px; }
.city-hero .diff-big { font-size: 21px; line-height: 1.05; }
.city-hero .diff-sub { margin-top: 4px; }
.city-hero .overlap { margin-top: 10px; }
.city-hero .overlap-bar { height: 13px; }
.city-hero .overlap-labels { margin-top: 3px; }

.diff-panel { margin-top: 16px; }
.diff-big { font-family: var(--font-mono); font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.diff-big small { font-size: 12px; color: var(--muted); font-family: var(--font-sans); letter-spacing: 0; margin-left: 6px; }
.diff-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }

.overlap { margin-top: 16px; }
.overlap-bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1px; height: 16px; border-radius: 3px; overflow: hidden; background: var(--line); }
.overlap-bar i { display: block; background: var(--surface-2); }
.overlap-bar i.on { background: var(--accent-soft); }
.overlap-bar i.hot { background: var(--accent); }
.overlap-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: 5px; font-family: var(--font-mono); }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
/* 状态页「数据不可直连实测」：窄屏只留路径与结论，四列在手机上挤成一条缝 */
@media (max-width: 640px) {
  .probe th:nth-child(2),
  .probe th:nth-child(3),
  .probe td:nth-child(2),
  .probe td:nth-child(3) { display: none; }
  .probe th:first-child,
  .probe td:first-child { white-space: normal; word-break: break-all; }
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }

/* 城市列表 */
.city-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.city-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; font-size: 14px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.city-row:hover { background: var(--surface-2); }
.city-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-row .n small { color: var(--faint); font-size: 11px; margin-left: 6px; }
.city-row time { flex: 0 0 auto; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.city-row .cnt { flex: 0 0 auto; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.city-row .pop { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

/* 与热门城市的时差：卡片网格 */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.diff-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name time"
    "meta meta";
  align-items: center;
  gap: 2px 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.diff-item:hover { border-color: var(--line-strong); background: var(--surface-2); }

.di-name { grid-area: name; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.di-name small { display: block; margin-top: 1px; font-size: 11px; font-weight: 400; color: var(--faint); }

.di-time {
  grid-area: time;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.di-meta { grid-area: meta; display: flex; align-items: center; gap: 10px; }

.di-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: var(--accent-soft);
}

.di-chip.is-same {
  border-color: var(--line-strong);
  color: var(--muted);
  background: var(--surface-2);
}

.di-off { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

@media (max-width: 760px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* 时区带（国家 / 省州页） */
.zone-band {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.zb-cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px 14px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.zb-cell:hover { border-color: var(--line-strong); background: var(--surface-2); }
.zb-cell b { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.zb-cell time { font-family: var(--font-mono); font-size: 20px; letter-spacing: -0.02em; margin-top: 2px; }
.zb-city { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zb-count { font-size: 11px; color: var(--faint); margin-top: 3px; }

/* 时区明细（双栏表格） */
.tz-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.tz-detail .table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* 东西两端 */
.edge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edge-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.edge-card:hover { border-color: var(--line-strong); }
.edge-tag { font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.edge-card b { font-size: 17px; font-weight: 500; }
.edge-card time { font-family: var(--font-mono); font-size: 34px; letter-spacing: -0.03em; margin: 4px 0 2px; }
.edge-meta { font-size: 12px; color: var(--faint); font-family: var(--font-mono); }

/* 国家与地区总览 */
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 4px; }
.jump-nav a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
}
.jump-nav a:hover { border-color: var(--accent); color: var(--accent); }
.jump-nav a small { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-countries .section { scroll-margin-top: 96px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; color: var(--muted); font-size: 14px; max-width: 760px; }

.prose { max-width: 760px; font-size: 14px; color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--ink); font-weight: 500; }

/* ---------------- 城市介绍 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.about-text { font-size: 14.5px; line-height: 1.85; color: var(--muted); max-width: 680px; }
.about-text p + p { margin-top: 14px; }
.about-lead { color: var(--ink); font-size: 15px; line-height: 1.8; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fact { background: var(--surface); padding: 11px 14px 12px; }
.fact-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 奇数项时最后一项跨两列，避免留下空白格 */
.fact-grid:not(.is-4) > .fact:last-child:nth-child(odd) { grid-column: span 2; }
.fact dt { font-size: 11px; color: var(--faint); letter-spacing: 0.03em; }
.fact dd {
  margin: 3px 0 0; font-size: 13.5px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.fact dd a { border-bottom: 1px solid transparent; }
.fact dd a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------- 时区页 / 总览 ---------------- */

.zone-hero { padding: 28px 0 34px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.zone-offset { font-family: var(--font-mono); font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.zone-offset small { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 10px; }

.offset-group { border-top: 1px solid var(--line); padding: 18px 0; display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.offset-group > div { min-width: 0; }
.offset-group .off { font-family: var(--font-mono); font-size: 18px; }
.offset-group .off small { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }
.zone-list { display: flex; flex-wrap: wrap; gap: 6px; }
.zchip {
  display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; min-width: 0; overflow: hidden;
  padding: 4px 9px 5px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.zchip code { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zchip .zn { font-size: 11.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zchip .cnt { font-family: var(--font-mono); font-size: 10px; color: var(--faint); flex: 0 0 auto; }
.zchip:hover { border-color: var(--line-strong); background: var(--paper); }
.zchip:hover code { color: var(--accent); }
.zone-sample { margin-top: 9px; font-size: 12px; color: var(--faint); }
.zone-sample a { color: var(--muted); margin-right: 8px; }
.zone-sample a:hover { color: var(--accent); }

/* ---------------- 对比 ---------------- */

.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.picker { position: relative; }
.picker input {
  width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink);
}
.picker input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.picker-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: 48px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
  box-shadow: var(--shadow-pop); overflow: hidden; display: none;
}
.picker-results.open { display: block; }
.picker-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 13px; cursor: pointer; }
.picker-item:hover, .picker-item[aria-selected="true"] { background: var(--surface-2); }
.picker-item small { color: var(--faint); }

/* ---------------- 搜索页 ---------------- */

.search-page-form { display: flex; gap: 10px; margin-top: 20px; }
.search-page-form input {
  flex: 1; height: 46px; padding: 0 16px; font: inherit; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink);
}
.result-list { margin-top: 26px; border-top: 1px solid var(--line); }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.result-row .name { font-size: 16px; }
.result-row .name small { color: var(--muted); font-size: 12px; margin-left: 8px; }
.result-row .where { font-size: 12px; color: var(--faint); margin-top: 3px; }
.result-row .t { font-family: var(--font-mono); font-size: 18px; }

/* ---------------- 搜索弹窗 ---------------- */

.search-dialog {
  width: min(720px, 92vw); max-height: 78vh; padding: 0; margin: 8vh auto auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.search-dialog::backdrop { background: rgba(10, 12, 16, 0.5); }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-head input {
  flex: 1; height: 34px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; outline: none;
}
.search-head input::placeholder { color: var(--faint); }
.search-close { background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; font-family: var(--font-mono); font-size: 10px; color: var(--faint); cursor: pointer; }
.search-results { overflow-y: auto; padding: 6px; min-height: 120px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--surface-2); }
.sr-main {
  flex: 1 0 auto; min-width: 0; flex: 1; }
.sr-name { font-size: 14px; }
.sr-name small { color: var(--muted); font-size: 11px; margin-left: 6px; }
.sr-where { font-size: 11px; color: var(--faint); margin-top: 2px; }
.sr-time { font-family: var(--font-mono); font-size: 15px; color: var(--muted); }
.sr-off { font-family: var(--font-mono); font-size: 10px; color: var(--faint); min-width: 56px; text-align: right; }
.sr-empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.search-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }

/* ---------------- 页脚 ---------------- */

.site-foot {
  flex-shrink: 0; border-top: 1px solid var(--line); margin-top: 20px; padding: 40px 0 28px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.foot-brand { margin-bottom: 10px; }
.foot-note { font-size: 12px; color: var(--muted); margin-top: 5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted); align-content: start; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .clock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .continent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zone-band { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero { gap: 32px; }
  .city-hero { grid-template-columns: 1fr; gap: 28px; }
  .zone-hero { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

@media (max-width: 980px) {
  /* 导航 6 项实际需要约 306px，980px 以下同一行放不下会把每个链接压成竖排单字，
     改为「品牌 + 操作」一行、导航独占一行 */
  .topbar-inner { flex-wrap: wrap; row-gap: 0; height: auto; min-height: 58px; padding-block: 8px; }
  .nav {
    order: 5; width: 100%; gap: 20px;
    padding: 10px 0 2px; overflow-x: auto; scrollbar-width: none; font-size: 13px;
  }
  .nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .search-trigger-text, .search-trigger kbd { display: none; }
  .search-trigger { width: 34px; padding: 0; justify-content: center; }
  .hero { grid-template-columns: 1fr; padding-block: 34px 30px; }
  .dial-box { order: -1; }
  .dial { width: 190px; }
  .clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .continent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-list { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .compare-grid { grid-template-columns: 1fr; }
  .offset-group { grid-template-columns: 84px 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
  .cc-time { font-size: 26px; }
  .section { padding-block: 34px; }
  .search-dialog { margin-top: 4vh; max-height: 88vh; }
  .search-foot span:last-child { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-text { font-size: 14px; }
  .edge-grid { grid-template-columns: 1fr; }
  .tz-detail { grid-template-columns: 1fr; gap: 14px; }
  .city-row .pop { display: none; }
  .fact-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .zone-band { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .zb-cell { padding: 10px 10px 11px; }
  .zb-cell time { font-size: 17px; }
  .zb-city { font-size: 11px; }
  /* 窄屏下国家名 + 英文名 + 数量放不进两列，优先保证中文名完整 */
  .country-grid .city-row .n small { display: none; }
  .country-grid .city-row { padding: 11px 10px; font-size: 13.5px; gap: 6px; }
  .country-grid .flag-inline { width: 18px; height: 13px; margin-right: 5px; }
  /* 超长国名（圣文森特和格林纳丁斯等）允许折行，不省略 */
  .country-grid .city-row .n { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 时差句与工作时段重叠 */
.diff-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 4px 0 8px; }
.diff-line b { font-weight: 500; font-size: 26px; letter-spacing: 0.01em; }
.diff-rel { font-size: 14px; color: var(--muted); }
.diff-val {
  font-family: var(--font-mono); font-size: 26px; color: var(--accent);
  margin-left: 4px; letter-spacing: -0.01em;
}
.diff-sub { font-size: 13px; color: var(--muted); }
.ov { margin-top: 6px; }
.ov-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 7px; }
.ov-name { font-size: 12px; color: var(--muted); text-align: right; }
.ov-bar { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 1px; height: 16px; }
.ov-bar i { background: var(--surface-2); border-radius: 1px; }
.ov-bar i.on { background: var(--muted); opacity: 0.55; }
.ov-row.is-both .ov-bar i.on { background: var(--accent); opacity: 1; }
.ov-legend { display: flex; gap: 14px; margin: 8px 0 0 100px; font-size: 11px; color: var(--muted); }
.ov-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ov-legend i { width: 12px; height: 6px; border-radius: 1px; display: inline-block; }
.ov-legend .lg-on { background: var(--muted); opacity: 0.55; }
.ov-legend .lg-both { background: var(--accent); }
.ov-axis {
  display: flex; justify-content: space-between;
  margin: 2px 0 0 100px; font-family: var(--font-mono); font-size: 10px; color: var(--faint);
}
.ov-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.ov-note b { font-weight: 500; color: var(--ink); font-family: var(--font-mono); }

/* 搜索弹层：热门城市 */
.sr-suggest { padding: 10px 8px 14px; }
.sr-suggest-label { margin: 2px 4px 10px; font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }
.sr-suggest-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 12.5px; transition: border-color 0.15s, color 0.15s;
}
.sr-chip b { font-weight: 400; }
.sr-chip span { font-size: 10.5px; color: var(--faint); }
.sr-chip:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   2026 改版：昼夜地图 · 换算器 · 折叠模块 · 问答
   ========================================================= */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 首屏：仪表盘 ---------------- */

.hero-mast { padding-block: 22px 0; }
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 30px 20px;
  border: 1px solid var(--hero-line);
  border-radius: 6px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  box-shadow: 0 20px 42px rgba(15, 58, 55, 0.14);
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: var(--hero-accent);
  opacity: 0.085;
  -webkit-mask: url("../img/world-dots.svg") center 44% / 112% auto no-repeat;
  mask: url("../img/world-dots.svg") center 44% / 112% auto no-repeat;
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute; z-index: -1;
  top: -190px; right: -110px;
  width: 440px; height: 440px;
  background: radial-gradient(closest-side, rgba(112, 226, 200, 0.16), transparent 72%);
  pointer-events: none;
}

.hero-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hero-id { min-width: 0; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 9px 3px 7px;
  border: 1px solid var(--hero-line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--hero-muted);
  font-size: 12px;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 8px var(--hero-accent);
}
.hero-card h1 {
  margin-top: 12px;
  max-width: 20em;
  color: #f3fffc;
  font-size: clamp(24px, 2.9vw, 38px);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero-dial { flex: 0 0 auto; width: 112px; height: 112px; }
.hero-dial svg { width: 100%; height: 100%; display: block; }
.hd-ring { fill: none; stroke: var(--hero-part-line); stroke-width: 1; opacity: 0.5; }
.hd-tick { stroke: #8fc7bb; stroke-width: 1; opacity: 0.4; }
.hd-tick.is-hour { stroke: #cdece4; stroke-width: 1.4; opacity: 0.85; }
.hd-num { fill: #cdece4; font-family: var(--font-mono); font-size: 8.6px; opacity: 0.72; }
.hd-hand { stroke: #eaf9f5; stroke-linecap: round; }
.hd-hand-h { stroke-width: 3.4; }
.hd-hand-m { stroke-width: 2.2; }
.hd-hand-s { stroke: var(--hero-warm); stroke-width: 1.1; }
.hd-pin { fill: var(--hero-warm); }

.hero-clock {
  display: block;
  position: relative;
  margin: 0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(54px, 9.4vw, 118px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(117, 242, 213, 0.16);
}

/* 24 小时轴 */
.hero-track {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 14px;
  color: var(--hero-muted);
  font: 11px var(--font-mono);
}
.ht-label { flex: 0 0 auto; opacity: 0.75; }
.ht-line {
  position: relative; flex: 1; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #163e50 0%, #498c8a 25%, #edbd78 52%, #498c8a 75%, #163e50 100%);
}
.ht-cursor {
  position: absolute; left: 0; top: 50%;
  display: block; width: 11px; height: 11px;
  border: 2px solid #fff; border-radius: 50%;
  background: #e8ad70;
  box-shadow: 0 0 0 5px rgba(238, 190, 121, 0.2), 0 0 18px #efbf81;
  transform: translate(-50%, -50%);
}
.ht-now {
  position: absolute; left: 0; bottom: 16px;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(9, 41, 40, 0.85);
  color: var(--hero-warm);
  font: 500 11px var(--font-mono);
  white-space: nowrap;
}

/* 元信息 */
.hero-meta { position: relative; display: grid; gap: 4px; margin-bottom: 16px; color: var(--hero-muted); font-size: 13px; line-height: 1.6; }
.hm-row strong { color: var(--hero-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-zone { color: #cfe8e1; }
.hm-note { color: #9dc4bc; font-size: 12px; }

/* 城市小卡 */
.hero-cities {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 16px 0 0;
  border-top: 1px solid var(--hero-line);
  list-style: none;
}
.hero-cities li { min-width: 108px; }
.hero-cities a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 11px 8px;
  border: 1px solid var(--hero-line);
  border-radius: 4px;
  background: var(--hero-card);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.hero-cities a:hover {
  transform: translateY(-3px);
  border-color: var(--hero-accent);
  background: var(--hero-card-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}
.hc-name { display: flex; align-items: center; gap: 6px; color: #eefaf6; font-size: 12.5px; }
.hc-name::before {
  content: ""; flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hero-warm);
}
.hero-cities li[data-phase="day"] .hc-name::before { background: var(--hero-accent); box-shadow: 0 0 8px var(--hero-accent); }
.hero-cities li[data-phase="night"] .hc-name::before { background: var(--hero-warm); box-shadow: 0 0 8px var(--hero-warm); }
.hc-time {
  color: var(--hero-accent);
  font-family: var(--font-mono); font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.hero-cities li[data-phase="night"] .hc-time { color: #e4b9a2; }

.hero-card [data-part="s"] { color: #eafff9; }
.hero-card .hero-clock .ck-text { color: #fff; }
.hero-lead { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }

/* hero 内的钟面适配 */
.hero-card .ck-flip .fd {
  background: var(--hero-part);
  border-color: transparent;
  color: #ebfff9;
  box-shadow: inset 0 0 0 1px var(--hero-part-line), inset 0 -5px rgba(0, 0, 0, 0.16);
}
.hero-card .ck-flip .fd-flap {
  background: var(--hero-part);
  color: #ebfff9;
  box-shadow: inset 0 0 0 1px var(--hero-part-line);
}
.hero-card .ck-flip .fd::after { background: var(--hero-part-line); opacity: 0.8; }
.city-hero .ck-flip .fd {
  background: var(--hero-part);
  color: #ebfff9;
  box-shadow: inset 0 0 0 1px var(--hero-part-line), inset 0 -5px rgba(0, 0, 0, 0.16);
}
.city-hero .ck-flip .fd-flap {
  background: var(--hero-part);
  color: #ebfff9;
  box-shadow: inset 0 0 0 1px var(--hero-part-line);
}
.city-hero .ck-flip .fd::after { background: var(--hero-part-line); opacity: 0.8; }
.hero-card .ck-flip .fd-mid { background: rgba(9, 41, 40, 0.6); opacity: 0.7; }
.hero-card .ck-face .cf-tick { stroke: #8fc7bb; opacity: 0.45; }
.hero-card .ck-face .cf-hour { stroke: #eaf9f5; }
.hero-card .ck-face .cf-min { stroke: #eaf9f5; }
.hero-card .ck-face .cf-sec { stroke: var(--hero-warm); }
.hero-card .ck-face .cf-hub { fill: var(--hero-warm); }
.hero-card .ck-ring .cr-track { stroke: #3f7a70; opacity: 0.5; }
.hero-card .ck-ring .cr-bar { stroke: var(--hero-accent); }
.hero-card .ck-arc .ca-disc, .city-hero .ck-arc .ca-disc { fill: rgba(9, 41, 40, 0.5); stroke: var(--hero-part-line); }
.hero-card .ck-flip .ck-flip-sep, .city-hero .ck-flip .ck-flip-sep { color: #a9d8cd; }
.hero-card .ck-face .cf-rim, .city-hero .ck-face .cf-rim { fill: rgba(9, 41, 40, 0.55); stroke: var(--hero-part-line); }
.hero-card .ck-face .cf-tick, .city-hero .ck-face .cf-tick { stroke: #8fc7bb; opacity: 0.5; }
.hero-card .ck-face .cf-tick.is-major, .city-hero .ck-face .cf-tick.is-major { stroke: #cdece4; opacity: 0.85; }
.hero-card .ck-face .cf-hour, .city-hero .ck-face .cf-hour, .hero-card .ck-face .cf-min, .city-hero .ck-face .cf-min { stroke: #eaf9f5; }
.hero-card .ck-face .cf-sec, .city-hero .ck-face .cf-sec { stroke: var(--hero-warm); }
.hero-card .ck-face .cf-hub, .city-hero .ck-face .cf-hub { fill: var(--hero-warm); }
.hero-card .ck-arc .ca-track, .city-hero .ck-arc .ca-track { stroke: #4a7f76; }
.hero-card .ck-arc .ca-bar, .city-hero .ck-arc .ca-bar { stroke: var(--hero-accent); }
.hero-card .ck-arc .ca-label, .city-hero .ck-arc .ca-label { fill: var(--hero-ink); }
.hero-card .ck-arc .ca-sub, .city-hero .ck-arc .ca-sub { fill: var(--hero-muted); }
.hero-card .ck-dot rect, .city-hero .ck-dot rect { fill: var(--hero-accent); }

/* hero 内的图形钟放大，并在指针/弧线样式下收起右上装饰表盘 */
.hero-card .js-clock[data-ck-size="lg"] .ck-face,
.hero-card .js-clock[data-ck-size="lg"] .ck-arc { width: 152px; height: 152px; }
.city-hero .js-clock[data-ck-size="lg"] .ck-face,
.city-hero .js-clock[data-ck-size="lg"] .ck-arc { width: 132px; height: 132px; }
html[data-clock="analog"] .hero-card .hero-dial,
html[data-clock="ring"] .hero-card .hero-dial { display: none; }

.hero-card .ck-dot rect { fill: var(--hero-accent); }
.hero-card .ck-dot rect.off { fill: #4a7f76; opacity: 0.22; }

.sky-sea { fill: var(--sky-sea); }
.sky-grid line { stroke: var(--sky-line); stroke-width: 0.8; }
.sky-grid-strong line { stroke: var(--sky-line-strong); stroke-width: 1; }
.sky-night { fill: var(--sky-night); }
.sky-terminator { fill: none; stroke: var(--sky-ember); stroke-width: 1.2; opacity: 0.9; }
.sky-noon { stroke: var(--accent); stroke-width: 0.7; stroke-dasharray: 2 6; opacity: 0.3; }
.sky-sun { fill: var(--accent); }
.sky-city { fill: var(--accent); opacity: 0.55; }
.sky-glow-a { stop-color: var(--accent); stop-opacity: 0.22; }
.sky-glow-b { stop-color: var(--accent); stop-opacity: 0; }

/* ---------------- 时差换算器 ---------------- */

.converter {
  display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden;
}
.conv-side { padding: 20px 22px 18px; }
.conv-label { margin-bottom: 9px; font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint); }
.conv-picker { position: relative; }
.conv-picker input[type="search"] {
  width: 100%; height: 42px; padding: 0 12px;
  font: inherit; font-size: 15px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; color: var(--ink);
}
.conv-picker input[type="search"]:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.conv-read { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.conv-read time { font-family: var(--font-mono); font-size: 34px; line-height: 1; letter-spacing: -0.03em; }
.conv-off { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.conv-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 16px; text-align: center;
  background: var(--surface-2); border-inline: 1px dashed var(--line-strong);
}
.conv-diff { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.conv-go { font-size: 11.5px; color: var(--accent); }
.conv-go:hover { text-decoration: underline; }
.conv-note { margin-top: 14px; font-size: 12px; color: var(--faint); }

/* ---------------- 折叠模块 ---------------- */

.fold { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.fold > summary {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-family: var(--font-mono); font-size: 16px; line-height: 1; color: var(--faint); }
.fold[open] > summary::after { content: "−"; }
.fold-title { flex: 1; font-size: 16px; color: var(--ink); }
.fold-meta { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fold-body { padding: 20px 22px 22px; border-top: 1px solid var(--line); }

/* ---------------- 前置答案 ---------------- */

.answer-first { max-width: 760px; margin: 20px 0 6px; padding-left: 16px; border-left: 2px solid var(--accent); }
.af-label { display: block; margin-bottom: 6px; font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }
.answer-first p { font-size: 15.5px; line-height: 1.8; color: var(--ink); }

/* ---------------- 地理导航 ---------------- */

.geo-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.geo-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 9px 14px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.geo-pill b { font-weight: 400; font-size: 14px; }
.geo-pill span { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.geo-pill small { font-size: 9.5px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.geo-pill:hover { border-color: var(--line-strong); background: var(--paper); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 47, 45, 0.08); }
.geo-countries { margin-top: 16px; }
.chip-more { border-style: dashed; color: var(--muted); }

.faq-more { margin-top: 18px; font-size: 12.5px; color: var(--faint); }
.faq-more a { color: var(--muted); }
.faq-more a:hover { color: var(--accent); }

/* ---------------- 区块编号 ---------------- */

.page-home main, .page-city main { counter-reset: sec; }
.page-home .section, .page-city .section { counter-increment: sec; }
.page-home .section-head h2::before,
.page-city .section-head h2::before {
  content: counter(sec, decimal-leading-zero);
  margin-right: 12px; vertical-align: 2px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--faint);
}

/* ---------------- 昼夜城市卡片 ---------------- */

.clock-card.is-day { background: linear-gradient(180deg, var(--day-1) 0%, var(--surface) 58%); }
.clock-card.is-night { background: linear-gradient(180deg, var(--night-1) 0%, var(--surface) 58%); }

/* ---------------- 时差对比页 ---------------- */

.diff-pair { display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.diff-card {
  display: block; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  transition: border-color 0.15s;
}
.diff-card:hover { border-color: var(--line-strong); }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.dc-name { margin-top: 12px; font-size: 19px; }
.dc-name span { margin-left: 6px; font-size: 12px; color: var(--muted); }
.dc-time { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: clamp(38px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.dc-date { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.dst-flag { font-style: normal; font-size: 10.5px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 7px; }
.diff-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; text-align: center;
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 6px;
}
.dm-value { font-family: var(--font-mono); font-size: 22px; color: var(--accent); }
.dm-note { font-size: 12px; color: var(--muted); }

/* ---------------- UTC 偏移页 ---------------- */

.zone-sec { font-size: 0.42em; color: var(--accent); vertical-align: 0.6em; }
.utc-table td, .utc-table th { padding: 10px 12px; }
.utc-label { font-family: var(--font-mono); font-size: 13px; border-bottom: 1px solid transparent; }
.utc-label:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sub-head { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.quiet-link { border-bottom: 1px dotted var(--line-strong); }
.quiet-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------- 新版响应式 ---------------- */

@media (max-width: 1024px) {
  .mast-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .mast-inner { padding-block: 42px 36px; }
  .mast-clock { padding-bottom: 0; }
  .converter { grid-template-columns: 1fr; }
  .conv-mid { flex-direction: row; justify-content: space-between; border-inline: 0; border-block: 1px dashed var(--line-strong); padding: 14px 22px; }
  .diff-pair { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* 390px 下 13 个汉字按 6.6vw 恰好一行；更窄时交给 balance 均匀断行，避免尾字落单 */
  .mast h1 { font-size: clamp(25px, 6.6vw, 32px); text-wrap: balance; }
  .mast-lead { font-size: 14px; line-height: 1.72; }
  .section-head { flex-wrap: wrap; row-gap: 5px; }
  .quick { height: 50px; margin-top: 22px; padding-left: 13px; }
  .quick input { font-size: 15px; }
  .quick button { height: 40px; padding: 0 15px; }
  .fold > summary { padding: 15px 16px; flex-wrap: wrap; row-gap: 4px; }
  .fold-meta { flex-basis: 100%; order: 3; }
  .fold-body { padding: 16px; }
  .conv-side { padding: 16px 16px 14px; }
  .conv-read time { font-size: 28px; }
  .answer-first p { font-size: 14.5px; }
  .diff-card { padding: 18px; }
}

@media (max-width: 560px) {
  /* 4 列表格在 390px 下会超出约 20px：压缩内边距与字号，并隐藏次要英文名 */
  .table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .table-wrap table { font-size: 13px; }
  .table-wrap th, .table-wrap td { padding: 9px 9px; }
  .table-wrap th { font-size: 11.5px; letter-spacing: 0.02em; }
  .table-wrap .n-en { display: none; }
  .mast-inner { padding-block: 30px 28px; }
  .mc-time { font-size: 28px; }
  .geo-pill small { display: none; }
  .geo-pill { padding: 8px 12px; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 17px; }
  .section-head .meta { font-size: 11.5px; }
  /* 两列卡片宽度约 160px，英文名会把中文名挤断行，窄屏只留中文 */
  .clock-card .cc-name span { display: none; }
  .cc-time { font-size: 24px; }
  .conv-read time { font-size: 25px; }
  .converter { border-radius: 6px; }
}

.dm-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.dc-time .sec { font-size: 0.52em; color: var(--faint); letter-spacing: -0.02em; }

/* =========================================================
   钟面样式 · 五套可切换
   digital / flip / analog / ring / dot
   ========================================================= */

.js-clock { --ck-accent: var(--accent); }

/* 文本层与图形层互斥：有图形时隐藏服务端渲染的文本 */
.js-clock > .ck-text { display: inline; }
.js-clock.ck-has-viz > .ck-text { display: none; }

.ck-viz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

/* 尺寸档位：大钟（hero / 城市页主时钟）与小钟（卡片内） */
.js-clock[data-ck-size="lg"] .ck-viz { font-size: 1em; }
.js-clock[data-ck-size="sm"] .ck-viz { font-size: 0.92em; }

/* ---------- 1. flip 翻页 ---------- */

.ck-flip {
  gap: 0.09em;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
}

.ck-flip .fd {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.72em;
  height: 1.2em;
  font-size: 0.78em;
  background: var(--surface);
  border-radius: 0.09em;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 0 var(--line-strong);
  perspective: 12em;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* 中缝 */
.ck-flip .fd::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: color-mix(in srgb, var(--line-strong) 80%, transparent);
  z-index: 3;
  pointer-events: none;
}

.ck-flip .fd-flap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border-radius: 0.09em;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
  z-index: 2;
  will-change: transform;
}
.ck-flip .fd-flap.is-up { clip-path: inset(0 0 50% 0); animation: fdUp 0.24s cubic-bezier(0.55, 0.05, 0.7, 0.4) forwards; }
.ck-flip .fd-flap.is-down { clip-path: inset(50% 0 0 0); animation: fdDown 0.26s cubic-bezier(0.25, 0.6, 0.4, 1) forwards; }

@keyframes fdUp { from { transform: rotateX(0deg); } to { transform: rotateX(-92deg); } }
@keyframes fdDown { from { transform: rotateX(92deg); } to { transform: rotateX(0deg); } }

.ck-flip .ck-flip-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.3em;
  color: var(--muted);
  font-style: normal;
  font-size: 0.58em;
  transform: translateY(-0.04em);
}

/* ---------- 2. analog 指针 ---------- */

.js-clock[data-ck-size="lg"] .ck-face { width: 116px; height: 116px; }
.js-clock[data-ck-size="sm"] .ck-face { width: 44px; height: 44px; }

.ck-face { display: block; overflow: visible; }
.ck-face .cf-rim { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.ck-face .cf-tick { stroke: var(--line-strong); stroke-width: 1.4; stroke-linecap: round; opacity: 0.55; }
.ck-face .cf-tick.is-major { stroke: var(--muted); stroke-width: 2.2; opacity: 0.85; }
.ck-face .cf-hand { stroke-linecap: round; }
.ck-face .cf-hour { stroke: var(--ink); stroke-width: 4.2; }
.ck-face .cf-min { stroke: var(--ink); stroke-width: 2.6; }
.ck-face .cf-sec { stroke: var(--accent); stroke-width: 1.5; }
.ck-face .cf-pin { fill: var(--accent); }
.ck-face .cf-pin-in { fill: var(--surface); }
.ck-face .cf-quad { fill: var(--faint); font-size: 7px; font-family: var(--font-sans); text-anchor: middle; }

.js-clock[data-ck-size="sm"] .ck-face .cf-tick { display: none; }
.js-clock[data-ck-size="sm"] .ck-face .cf-quad { display: none; }
.js-clock[data-ck-size="sm"] .ck-face .cf-hour { stroke-width: 5.5; }
.js-clock[data-ck-size="sm"] .ck-face .cf-min { stroke-width: 3.4; }
.js-clock[data-ck-size="sm"] .ck-face .cf-sec { stroke-width: 2; }

/* ---------- 3. pixel 像素（动漫复古风） ---------- */

.js-clock[data-ck-size="lg"] .ck-pixel-svg { height: 1.04em; }
.js-clock[data-ck-size="sm"] .ck-pixel-svg { height: 0.9em; }

.ck-pixel-svg { display: block; width: auto; }
.ck-pixel-svg rect { fill: currentColor; }
.ck-pixel-svg rect.pix-on { opacity: 1; }
.ck-pixel-svg rect.pix-off { opacity: 0.07; }

/* ---------- 4. particle 粒子（蚂蚁汇聚） ---------- */

.js-clock[data-ck-size="lg"] .ck-particle-svg { height: 1.04em; }
.js-clock[data-ck-size="sm"] .ck-particle-svg { height: 0.9em; }

.ck-particle-svg { display: block; width: auto; }
.ck-particle-svg circle { fill: currentColor; transition: opacity 0.28s ease; }
.ck-particle-svg circle.pt-on { opacity: 1; }
.ck-particle-svg circle.pt-off { opacity: 0.06; }

/* ---------- 5. bounce 弹跳（运动组成） ---------- */

.ck-bounce {
  gap: 0.05em;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
}
.ck-bounce .bk {
  display: inline-block;
  min-width: 0.68em;
  text-align: center;
  transform-origin: 50% 100%;
}
.ck-bounce .ck-bounce-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.28em;
  color: var(--muted);
  font-style: normal;
  font-size: 0.58em;
  transform: translateY(-0.04em);
}
.ck-bounce .bk.bk-pop { animation: bkPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bkPop {
  0% { transform: translateY(-0.22em) scale(0.72); opacity: 0.2; }
  60% { transform: translateY(0.04em) scale(1.06); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.ck-dot-svg { color: var(--ink); }
.ck-dot-svg rect.is-accent { fill: var(--accent); }

/* =========================================================
   钟面切换器
   ========================================================= */

.clock-switch { position: relative; }

.clock-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font: inherit; font-size: 12px;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.clock-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.clock-btn svg { flex: 0 0 auto; }
.clock-btn .cb-label { white-space: nowrap; }

.clock-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 288px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-pop);
  animation: popIn 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.clock-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

.clock-pop-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.clock-pop-head b { font-weight: 600; color: var(--ink); font-size: 12px; letter-spacing: 0.02em; text-transform: none; }

.clock-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.clock-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font: inherit; font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s, transform 0.16s;
}
.clock-opt:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.clock-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.clock-opt .co-preview { display: flex; align-items: center; justify-content: center; height: 26px; color: currentColor; }
.clock-opt .co-preview svg { display: block; }
.clock-opt[aria-pressed="true"] .co-preview { color: var(--accent); }

.clock-pop-foot {
  margin-top: 11px; padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--faint); line-height: 1.5;
}

/* =========================================================
   动效层
   ========================================================= */

/* 滚动进度线 */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 70;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--gold)));
  pointer-events: none;
  transition: opacity 0.3s;
}

/* 入场：卡片与区块 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* 主视觉光晕呼吸 */
.mast-sun-halo { transform-origin: center; animation: haloBreath 14s ease-in-out infinite; }
@keyframes haloBreath {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* 当前时刻的脉动点 */
.pulse-dot { position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: dotPulse 2.6s ease-out infinite;
}
@keyframes dotPulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

/* 搜索框聚焦光晕 */
.quick { position: relative; }
.quick::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  pointer-events: none;
  transition: box-shadow 0.3s;
}
.quick:focus-within::after { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 26px 2px color-mix(in srgb, var(--accent) 12%, transparent); }

/* 数字秒的轻微跳动 */

/* 晨昏线平滑 */
.sky-night, .sky-terminator { transition: d 1.2s ease; }

/* 内容层级进入（章节标题下划线生长） */
.section-head h2 { position: relative; }

/* 首屏时钟样式的切换过渡 */
.js-clock { transition: opacity 0.2s ease; }
.js-clock.is-swapping { opacity: 0; }

/* ---------- 钟面细节校正 ---------- */

/* 翻页：收紧卡片，避免六位数字撑破换算器 */
.ck-flip { gap: 0.07em; }
.ck-flip .ck-flip-sep { width: 0.34em; font-size: 0.9em; }
.ck-flip .fd::after { opacity: 0.5; }

/* 指针：表盘与下方日期贴近一点 */
.js-clock[data-ck-size="lg"].ck-has-viz { display: block; margin-top: 2px; }

/* 时间弧：加一块圆盘承载，否则环线在点阵地图上看不清 */
.ck-arc .ca-disc { fill: var(--surface); stroke: color-mix(in srgb, var(--line-strong) 70%, transparent); stroke-width: 0.8; }
.ck-arc .ca-track { stroke: var(--line-strong); stroke-width: 2.2; opacity: 0.55; }
.ck-arc .ca-bar { stroke-width: 3.2; }

/* 点阵：点更饱满、熄灭点仍可辨形状 */
.ck-dot-svg rect.off { opacity: 0.17; }
.js-clock[data-ck-size="lg"] .ck-dot-svg { height: 1.16em; }
.js-clock[data-ck-size="sm"] .ck-dot-svg { height: 0.92em; }

/* 时间弧：轨道退后，进度弧前置 */
.ck-arc .ca-track { stroke-width: 2; opacity: 0.4; }
.ck-arc .ca-bar { stroke-width: 4.2; }
.ck-arc .ca-min { opacity: 1; }
.ck-arc .ca-sec { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--accent) 45%, transparent)); }
.ck-arc .ca-head { fill: var(--accent); }
.js-clock[data-ck-size="sm"] .ck-arc .ca-track { stroke-width: 3.4; }
.js-clock[data-ck-size="sm"] .ck-arc .ca-bar { stroke-width: 4.4; }

/* 小尺寸表盘：44px 读不出时间，放大到 54px 并保留中心数字 */
.js-clock[data-ck-size="sm"] .ck-face { width: 54px; height: 54px; }
.js-clock[data-ck-size="sm"] .ck-arc { width: 54px; height: 54px; }
.js-clock[data-ck-size="sm"] .ck-arc .ca-label { display: block; font-size: 20px; fill: var(--ink); }
.js-clock[data-ck-size="sm"] .ck-arc .ca-sub { display: none; }

/* 翻页块：在浅色卡片上必须能看出"卡片"本身 */
.ck-flip .fd {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(20, 22, 26, 0.07);
}
.ck-flip .fd::after {
  opacity: 1;
  height: 1px;
  background: var(--line-strong);
}
.ck-flip .fd-flap { background: var(--surface-2); }
.mc-label { font-size: 11px; }

.ck-flip .fd::after { background: var(--faint); opacity: 0.55; }


/* 终校：翻页数字略放大、点阵收紧 */
.js-clock[data-ck-size="lg"] .ck-dot-svg { height: 1.05em; }

/* =========================================================
   时间工具集
   ========================================================= */

.tools-hero {
  border-bottom: 1px solid var(--line);
  padding-block: 44px 34px;
  background:
    radial-gradient(120% 90% at 88% 0%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 62%),
    var(--paper);
}
.tools-kicker { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.tools-hero h1 { margin-top: 12px; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
.tools-lead { margin-top: 12px; max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.tools-lead { text-wrap: pretty; }

.tools-body {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 36px;
  padding-block: 34px 8px;
  align-items: start;
}

.tools-nav {
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 76px;
  border-left: 1px solid var(--line);
}
.tool-link {
  display: grid;
  grid-template-columns: 26px 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-left: -1px;
  padding: 11px 10px 11px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.tool-link:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tool-link.is-active { color: var(--ink); border-left-color: var(--accent); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.tl-num { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.tool-link.is-active .tl-num { color: var(--accent); }
.tl-icon { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.tool-link.is-active .tl-icon { color: var(--accent); }
.tl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-text b { font-size: 13.5px; font-weight: 550; letter-spacing: 0; }
.tl-text small { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tools-stage { min-width: 0; }

.tool-panel { animation: panelIn 0.32s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tool-head { margin-bottom: 22px; }
.tool-head h2 { font-size: 22px; letter-spacing: -0.01em; }
.tool-head p { margin-top: 9px; max-width: 640px; color: var(--muted); font-size: 14px; line-height: 1.75; text-wrap: pretty; }

/* 集线页：六个工具卡片 */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 12px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.hub-card:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(20, 22, 26, 0.32);
}
.hub-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.hub-icon {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.16s, color 0.16s;
}
.hub-card:hover .hub-icon { background: var(--accent); color: #fff; }
.hub-num { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--faint); }
.hub-name { font-size: 14.5px; font-weight: 560; letter-spacing: -0.005em; }
.hub-sub { font-size: 11.5px; color: var(--faint); }
.hub-lead { margin-top: 5px; font-size: 12.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.hub-go { margin-top: 11px; font-size: 11.5px; color: var(--accent); }
.hub-go::after { content: "→"; display: inline-block; margin-left: 4px; transition: transform 0.18s; }
.hub-card:hover .hub-go::after { transform: translateX(3px); }
.hub-note { margin-top: 16px; }
.hub-note h3 { margin-bottom: 10px; }
.hub-note ul { display: flex; flex-direction: column; gap: 7px; list-style: none; font-size: 13px; line-height: 1.7; color: var(--muted); }
.hub-note li { position: relative; padding-left: 12px; }
.hub-note li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0.55;
}
.hub-note b { font-weight: 560; color: var(--ink); }

/* 通用控件 */
.tf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tf > label { font-size: 11px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.tf input, .tf select {
  width: 100%; height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit; font-size: 14px;
  font-family: var(--font-mono);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.tf input:focus, .tf select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}
.tf-num input { max-width: 140px; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: inherit; font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background 0.16s, transform 0.16s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--faint); background: var(--surface-2); }
.btn-ghost:active { transform: translateY(1px); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-size: 13.5px;
  cursor: pointer;
  transition: background 0.16s, transform 0.16s;
}
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-solid:active { transform: translateY(1px); }

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.seg button {
  padding: 6px 12px;
  border: 0; border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit; font-size: 12.5px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 22, 26, 0.08); }

.tool-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.tool-card h3 { font-size: 14px; font-weight: 560; margin-bottom: 14px; }
.tool-note { margin: 6px 0 14px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.empty { padding: 22px; text-align: center; color: var(--faint); font-size: 13px; border: 1px dashed var(--line-strong); border-radius: 6px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th {
  text-align: left; padding: 7px 10px 7px 0;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mini-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table td:first-child { color: var(--muted); white-space: nowrap; }

/* 1 时间戳 */
.ts-now {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--surface) 96%, var(--accent)), var(--surface) 62%);
  margin-bottom: 18px;
}
.ts-now-main { display: flex; flex-direction: column; gap: 4px; }
.ts-now-label { font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }
.ts-now-val { font-family: var(--font-mono); font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ts-now-side { display: flex; flex-direction: column; gap: 2px; margin-left: auto; text-align: right; }
.ts-now-side span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ts-now-side small { font-size: 10px; color: var(--faint); letter-spacing: 0.08em; }

.ts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ts-grid .tool-card { display: flex; flex-direction: column; }
.ts-grid .seg { align-self: flex-start; margin-top: 12px; }
.ts-out { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ts-out-main { font-family: var(--font-mono); font-size: clamp(17px, 1.9vw, 22px); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ts-out-sub { margin-top: 5px; font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); }

/* 2 时区换算 */
.cv-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.cv-list { display: grid; gap: 12px; }
.cv-row {
  position: relative;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.16s;
}
.cv-row:hover { border-color: var(--line-strong); }
.cv-row-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cv-row-head b { font-weight: 560; }
.cv-row-off { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.cv-row-del {
  margin-left: auto; width: 22px; height: 22px;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--faint); font-size: 15px; line-height: 1; cursor: pointer;
}
.cv-row-del:hover { background: var(--surface-2); color: var(--accent); }
.cv-row-time { margin-top: 6px; font-family: var(--font-mono); font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.cv-row-date { margin-top: 2px; font-size: 12px; color: var(--muted); }
.cv-row-diff { margin-top: 6px; font-size: 12px; color: var(--accent); font-family: var(--font-mono); }
.cv-row.is-next-day .cv-row-date::after { content: " · 次日"; color: var(--gold); }
.cv-foot { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cv-foot + .picker { margin-top: 10px; }

/* 3 日期差 */
.dd-bar { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 12px; align-items: end; }
.dd-swap {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color 0.16s, border-color 0.16s, transform 0.2s;
}
.dd-swap:hover { color: var(--accent); border-color: var(--accent); transform: rotate(180deg); }

.dd-hero { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 4px; flex-wrap: wrap; }
.dd-hero-val { font-family: var(--font-mono); font-size: clamp(48px, 7vw, 76px); line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.dd-hero-unit { font-size: 18px; color: var(--muted); }
.dd-hero-sub { margin-left: 6px; font-size: 12.5px; color: var(--faint); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.metric { padding: 14px 16px; background: var(--surface); }
.metric b { display: block; font-family: var(--font-mono); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.metric span { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }

.quick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; }
.quick-row > span { color: var(--faint); }
.quick-row button {
  padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: 12px; cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.quick-row button:hover { border-color: var(--accent); color: var(--accent); }

/* 4 倒数日 */
.cd-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.cd-list { display: grid; gap: 10px; margin-top: 18px; }
.cd-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface);
}
.cd-item.is-past { opacity: 0.62; }
.cd-item-name { font-size: 14px; font-weight: 550; }
.cd-item-target { margin-top: 3px; font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); }
.cd-item-count { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); }
.cd-item-count b { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.cd-item-count span { font-size: 12px; color: var(--muted); }
.cd-item-count em { margin-left: 8px; font-size: 12px; color: var(--accent); font-style: normal; }
.cd-item-del {
  width: 26px; height: 26px;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--faint); font-size: 16px; cursor: pointer;
}
.cd-item-del:hover { background: var(--surface-2); color: var(--accent); }
.cd-samples { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.cd-samples button {
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 4px;
  background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer;
}
.cd-samples button:hover { border-color: var(--accent); color: var(--accent); }

/* 5 会议 */
.mt-cities { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.mt-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); font-size: 12.5px;
}
.mt-chip b { font-weight: 550; }
.mt-chip i { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); font-style: normal; }
.mt-chip button {
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--faint); font-size: 12px; line-height: 1; cursor: pointer;
}
.mt-chip button:hover { color: var(--accent); }
.mt-picker { min-width: 200px; }

.mt-work { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.mt-work input {
  width: 56px; height: 30px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-family: var(--font-mono); font-size: 13px;
}
.mt-work-hint { color: var(--faint); font-size: 11.5px; }

.mt-board { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.mt-head, .mt-row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr);
  align-items: stretch;
  min-width: 620px;
}
.mt-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.mt-row + .mt-row { border-top: 1px solid var(--line); }
.mt-city { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 12px; border-right: 1px solid var(--line); }
.mt-city b { font-size: 12.5px; font-weight: 550; }
.mt-city span { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.mt-city-head { font-size: 11px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.mt-cells { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); }
.mt-cells-head i { padding: 7px 0; text-align: center; font-family: var(--font-mono); font-size: 10px; font-style: normal; color: var(--faint); }
.mt-cell {
  position: relative;
  padding: 9px 0; text-align: center;
  font-family: var(--font-mono); font-size: 11px; font-style: normal;
  color: var(--faint);
  border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transition: background 0.16s, color 0.16s;
}
.mt-cell.is-wild { color: color-mix(in srgb, var(--faint) 60%, transparent); }
.mt-cell.is-work { background: color-mix(in srgb, var(--night) 13%, transparent); color: var(--ink); }
.mt-cell.is-best { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-weight: 600; }
.mt-cell u {
  position: absolute; right: 3px; bottom: 4px;
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; text-decoration: none;
}
.mt-summary { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.mt-summary b { color: var(--accent); font-family: var(--font-mono); }
.mt-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--faint); }
.mt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mt-legend i { width: 12px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-work { background: color-mix(in srgb, var(--night) 22%, transparent); }
.lg-off { background: var(--surface-2); border: 1px solid var(--line); }
.lg-best { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* 6 工作日 */
.wd-pane { margin-top: 18px; }
.wd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; max-width: 560px; }
.wd-result { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.wd-result-label { font-size: 12.5px; color: var(--faint); }
.wd-result b { font-family: var(--font-mono); font-size: clamp(26px, 4vw, 38px); font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.wd-result-week { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1024px) {
  .tools-body { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
  .ts-grid, .cv-bar { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-form { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .tools-body { grid-template-columns: 1fr; gap: 18px; padding-block: 22px 8px; }
  .tools-nav {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 6px;
    overflow-x: visible; border-left: 0; padding-bottom: 6px;
  }
  .tool-link {
    flex: 0 0 auto; margin-left: 0;
    grid-template-columns: auto; gap: 5px;
    padding: 8px 12px;
    border: 1px solid var(--line); border-left-width: 1px;
    border-radius: 4px;
    background: var(--surface);
  }
  .tool-link.is-active { border-color: var(--accent); }
  .tl-num, .tl-icon, .tl-text small { display: none; }
  .tl-text b { font-size: 12.5px; white-space: nowrap; }
  .tools-hero { padding-block: 30px 24px; }
  .tools-lead { font-size: 14px; }
  .dd-bar { grid-template-columns: 1fr auto 1fr; }
  .wd-row { grid-template-columns: 1fr; }
  .ts-now-side { margin-left: 0; text-align: left; }
  .cd-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cd-item-del { grid-column: 2; grid-row: 1; }
  .mt-head, .mt-row { grid-template-columns: 96px minmax(0, 1fr); }
  .mt-chips { gap: 6px; }
}

@media (max-width: 560px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { }
  .ts-grid { gap: 12px; }
  .tool-card { padding: 16px; }
  .ts-now { padding: 14px 16px; gap: 10px; }
  .cv-row-time { font-size: 27px; }
  .dd-hero-val { font-size: 52px; }
}

/* 时间戳顶部：毫秒并入主块，复制按钮独立靠右 */
.ts-now { align-items: flex-end; }
.ts-now-ms { margin-top: 2px; font-size: 11px; color: var(--faint); letter-spacing: 0.02em; }
.ts-now-ms b { font-family: var(--font-mono); font-weight: 400; color: var(--muted); }
.ts-now-copy { margin-left: auto; flex: 0 0 auto; }

/* 换算结果：城市卡片并排，不再整行铺开 */
.cv-list { grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); }
.cv-row-time { font-size: 28px; }
.cv-row-del { position: absolute; top: 10px; right: 10px; }

/* 会议图例需要能看清 */
.mt-legend i { border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent); }
.lg-work { background: color-mix(in srgb, var(--night) 34%, transparent); }
.lg-best { background: color-mix(in srgb, var(--accent) 42%, transparent); }

/* 动效：顶栏滚动收紧 */
.topbar { transition: box-shadow 0.24s ease; }
body.is-scrolled .topbar { box-shadow: 0 1px 0 var(--line), 0 8px 22px rgba(20, 22, 26, 0.045); }
html[data-theme="dark"] body.is-scrolled .topbar { box-shadow: 0 1px 0 var(--line), 0 8px 22px rgba(0, 0, 0, 0.4); }

/* 动效：主视觉地图可被视差推动 */
.mast-map { will-change: transform; }

/* reduced-motion：入场元素必须保持可见 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* 入场过渡不要吃掉卡片自身的 hover 过渡 */
.reveal { transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1), background 0.18s ease, border-color 0.18s ease; }

/* 工具导航：副标题必须被裁在容器内 */
.tl-text { overflow: hidden; }
.tl-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 暗色下陆地需要浮起来，否则地图只剩点阵 */
html[data-theme="dark"] { --sky-land: #3d4757; }
html[data-theme="dark"] .mast-map { opacity: 0.92; }

/* 暗色下的工具卡与输入框分层 */
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .cv-row,
html[data-theme="dark"] .cd-item { border-color: var(--line); }
html[data-theme="dark"] .tf input { background: #0c0e12; }

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] { --sky-land: #3d4757; }
}

/* 首页工具入口 */
.home-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.home-tool {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 17px;
  background: var(--surface);
  transition: background 0.16s, transform 0.16s, box-shadow 0.16s;
}
.home-tool:hover { background: var(--surface-2); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13, 47, 45, 0.08); }
.ht-icon {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.16s, color 0.16s;
}
.home-tool:hover .ht-icon { background: var(--accent); color: #fff; }
.ht-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ht-text b { font-size: 13.5px; font-weight: 550; }
.ht-text small { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-arrow { margin-left: auto; color: var(--faint); font-size: 13px; transition: transform 0.18s, color 0.18s; }
.home-tool:hover .ht-arrow { transform: translateX(3px); color: var(--accent); }

@media (max-width: 900px) {
  .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-tools { grid-template-columns: 1fr; }
  .ht-icon { width: 28px; height: 28px; }
}

/* ---------- 暗色顶栏：半透明 + 模糊会把底色提亮，改为实色 ---------- */
html[data-theme="dark"] .topbar {
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .topbar {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
}

/* ---------- 首屏在窄屏的重排 ---------- */
@media (max-width: 760px) {
  .hero-mast { padding-block: 14px 0; }
  .hero-card { padding: 18px 16px 16px; }
  .hero-head { gap: 12px; }
  .hero-card h1 { font-size: 22px; line-height: 1.3; max-width: none; }
  .hero-dial { width: 70px; height: 70px; }
  .hero-clock { font-size: clamp(44px, 13.5vw, 62px); line-height: 1.12; }
  .hero-track { margin: 2px 0 12px; }
  .hero-meta { gap: 3px; margin-bottom: 12px; font-size: 12.5px; }
  .hm-note { display: none; }
  .hero-cities { gap: 6px; padding-top: 12px; }
  .hero-cities li { flex: 1 1 calc(50% - 3px); min-width: 0; }
  .hero-cities a { padding: 6px 10px 7px; }
  .hc-time { font-size: 15px; }
  .hero-lead { font-size: 12.5px; margin-top: 10px; }
}

/* 首屏标题的可控断行：窄屏拆成“世界时间查询 / 与城市时差换算” */
.hero-card h1 span { display: inline; }
@media (max-width: 760px) {
  .hero-card h1 span { display: block; }
  .hero-card h1 { font-size: 21px; }
}

/* 9 张城市卡在双列下最后一张不要拉通整行 */
@media (max-width: 760px) {
  .hero-cities li:last-child { flex-grow: 0; }
}

/* 深色卡内的数据格：与 .panel 一起转深，避免白格子贴在墨绿底上 */
.city-hero .fact-grid {
  background: var(--hero-line);
  border-color: var(--hero-line);
  border-radius: 4px;
}
.city-hero .fact { background: rgba(9, 41, 40, 0.5); }
.city-hero .fact dt { color: var(--hero-muted); }
.city-hero .fact dd { color: var(--hero-ink); }
.city-hero .fact dd a { color: var(--hero-accent); }
.city-hero .fact dd a:hover { color: #ffffff; border-bottom-color: var(--hero-accent); }

/* ---------- 时差对比页：两张表盘卡并入首屏深色体系 ---------- */
.diff-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hero-bg);
  border-color: var(--hero-line);
  box-shadow: 0 16px 34px rgba(15, 58, 55, 0.16);
}
.diff-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 88% 0%, rgba(112, 226, 200, 0.16), transparent 62%);
  pointer-events: none;
}
.diff-card:hover { border-color: var(--hero-accent); }
.diff-card .dc-top { color: var(--hero-muted); }
.diff-card .dc-name { color: var(--hero-ink); }
.diff-card .dc-name span { color: var(--hero-muted); }
.diff-card .dc-time { color: #ffffff; }
.diff-card .dc-time .sec { color: var(--hero-accent); }
.diff-card .dc-date { color: var(--hero-muted); }
.diff-card .dst-flag { color: var(--hero-warm); border-color: var(--hero-warm); }

.diff-pair .diff-mid {
  background: var(--hero-bg);
  border: 1px dashed var(--hero-line);
  box-shadow: 0 16px 34px rgba(15, 58, 55, 0.12);
}
.diff-pair .dm-value { color: var(--hero-accent); }
.diff-pair .dm-note { color: var(--hero-ink); }
.diff-pair .dm-sub { color: var(--hero-muted); }

/* 深色卡内的五套钟面 */
.diff-card .ck-flip .fd { background: var(--hero-part); border-color: var(--hero-part-line); color: var(--hero-ink); }
.diff-card .ck-flip .fd-flap { background: var(--hero-part); }
.diff-card .ck-flip .ck-flip-sep { color: #a9d8cd; }
.diff-card .ck-face .cf-rim { fill: rgba(9, 41, 40, 0.55); stroke: var(--hero-part-line); }
.diff-card .ck-face .cf-tick { stroke: #8fc7bb; opacity: 0.5; }
.diff-card .ck-face .cf-tick.is-major { stroke: #cdece4; opacity: 0.85; }
.diff-card .ck-face .cf-hour, .diff-card .ck-face .cf-min { stroke: #eaf9f5; }
.diff-card .ck-face .cf-sec { stroke: var(--hero-warm); }
.diff-card .ck-face .cf-hub { fill: var(--hero-warm); }
.diff-card .ck-arc .ca-disc { fill: rgba(9, 41, 40, 0.5); stroke: var(--hero-part-line); }
.diff-card .ck-arc .ca-track { stroke: #4a7f76; }
.diff-card .ck-arc .ca-bar { stroke: var(--hero-accent); }
.diff-card .ck-arc .ca-label { fill: var(--hero-ink); }
.diff-card .ck-arc .ca-sub { fill: var(--hero-muted); }
.diff-card .ck-dot rect { fill: var(--hero-accent); }

/* ---------- 时区详情页：首屏改为深色卡 ---------- */
.zone-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 16px;
  padding: 24px 28px 26px;
  border: 1px solid var(--hero-line);
  border-radius: 6px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  box-shadow: 0 18px 38px rgba(15, 58, 55, 0.14);
  align-items: start;
}
.zone-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 100% at 86% 0%, rgba(112, 226, 200, 0.14), transparent 60%);
  pointer-events: none;
}
.zone-hero h1 { color: #f3fffc; }
.zone-hero h2 { color: var(--hero-ink); }
.zone-hero .sub { color: var(--hero-muted); }
.zone-hero .zone-offset { color: #ffffff; text-shadow: 0 0 26px rgba(117, 242, 213, 0.16); }
.zone-hero .zsec { color: var(--hero-accent); }
.zone-hero .zone-offset small { color: var(--hero-muted); }
.zone-hero .badge {
  border-color: var(--hero-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hero-muted);
}
.zone-hero .badge b { color: var(--hero-ink); }
.zone-hero .chip {
  border-color: var(--hero-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hero-ink);
}
.zone-hero .chip:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
.zone-hero .chip small { color: var(--hero-muted); }

/* 深色区里的钟面 */
.zone-hero .ck-flip .fd { background: var(--hero-part); border-color: var(--hero-part-line); color: var(--hero-ink); }
.zone-hero .ck-flip .fd-flap { background: var(--hero-part); }
.zone-hero .ck-flip .ck-flip-sep { color: #a9d8cd; }
.zone-hero .ck-face .cf-rim { fill: rgba(9, 41, 40, 0.55); stroke: var(--hero-part-line); }
.zone-hero .ck-face .cf-tick { stroke: #8fc7bb; opacity: 0.5; }
.zone-hero .ck-face .cf-tick.is-major { stroke: #cdece4; opacity: 0.85; }
.zone-hero .ck-face .cf-hour, .zone-hero .ck-face .cf-min { stroke: #eaf9f5; }
.zone-hero .ck-face .cf-sec { stroke: var(--hero-warm); }
.zone-hero .ck-face .cf-hub { fill: var(--hero-warm); }
.zone-hero .ck-arc .ca-disc { fill: rgba(9, 41, 40, 0.5); stroke: var(--hero-part-line); }
.zone-hero .ck-arc .ca-track { stroke: #4a7f76; }
.zone-hero .ck-arc .ca-bar { stroke: var(--hero-accent); }
.zone-hero .ck-arc .ca-label { fill: var(--hero-ink); }
.zone-hero .ck-arc .ca-sub { fill: var(--hero-muted); }
.zone-hero .ck-dot rect { fill: var(--hero-accent); }

/* 首屏光晕缓慢呼吸 */
@keyframes heroBreath {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.hero-card::after { animation: heroBreath 18s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-card::after { animation: none; }
}

/* ================= 城市页模块外壳 ================= */
/* 每个模块一张卡：统一的边框、内边距、标题行与序号。
   序号由渲染顺序决定，后台拖动排序后会跟着重排。 */

.city-mods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 26px 56px;
}

.mod {
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.mod:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(13, 47, 45, 0.06); }

.mod-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mod-head h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.005em;
}

.mod-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-weight: 400;
}

.mod-meta { font-size: 12px; color: var(--muted); text-align: right; }
.mod-meta a { color: var(--muted); }
.mod-meta a:hover { color: var(--accent); }

.mod-body > :first-child { margin-top: 0; }
.mod-body > :last-child { margin-bottom: 0; }
.mod-foot { margin-top: 14px; }

/* 卡内的表格不再套第二层边框，避免"卡中卡" */
.mod .table-wrap { border-color: var(--line); }
.mod .fact-grid { border-radius: 4px; }
.mod .about-grid { gap: 34px; }

/* FAQ 进卡后去掉顶部重复分隔线 */
.mod .faq { border-top: 0; }
.mod .faq details:last-child { border-bottom: 0; }
.mod .faq details:first-child summary { padding-top: 0; }

/* 折叠区：只保留一条标题行，不再套一层卡片 */
.mod-fold > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  margin: -6px -12px 0;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}

.mod-fold > summary::-webkit-details-marker { display: none; }
.mod-fold > summary:hover { background: var(--accent-soft); color: var(--ink); }
.mod-fold[open] > summary { margin-bottom: 16px; }

.mod-fold-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

.mod-fold .fold-body {
  padding: 0;
  border-top: 0;
}

/* ================= 天气模块 ================= */

:root {
  --wx-clear: #c07f2a;
  --wx-partly: #bf8a45;
  --wx-overcast: #6b827e;
  --wx-fog: #7f918d;
  --wx-rain: #2c7d76;
  --wx-snow: #3d8f86;
  --wx-storm: #b06433;
}

html[data-theme="dark"] {
  --wx-clear: #f0c07a;
  --wx-partly: #e6bd8c;
  --wx-overcast: #9db4b0;
  --wx-fog: #a8bab6;
  --wx-rain: #6fd6c4;
  --wx-snow: #8ce0d4;
  --wx-storm: #f0a878;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --wx-clear: #f0c07a;
    --wx-partly: #e6bd8c;
    --wx-overcast: #9db4b0;
    --wx-fog: #a8bab6;
    --wx-rain: #6fd6c4;
    --wx-snow: #8ce0d4;
    --wx-storm: #f0a878;
  }
}

.wx { min-height: 96px; }

.wx-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.wx-icon {
  flex: none;
  width: 62px;
  height: 62px;
}

.wx-icon svg,
.wx-h-icon svg,
.wx-d-icon svg { display: block; width: 100%; height: 100%; }

.wx-t-clear { color: var(--wx-clear); }
.wx-t-partly { color: var(--wx-partly); }
.wx-t-overcast { color: var(--wx-overcast); }
.wx-t-fog { color: var(--wx-fog); }
.wx-t-rain { color: var(--wx-rain); }
.wx-t-snow { color: var(--wx-snow); }
.wx-t-storm { color: var(--wx-storm); }

.wx-degree {
  display: flex;
  align-items: flex-start;
  flex: none;
  font-family: var(--font-mono);
  color: var(--ink);
}

.wx-degree b {
  font-size: 50px;
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.wx-degree sup {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.wx-words {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wx-words strong { font-size: 16px; font-weight: 600; }
.wx-words span { font-size: 13px; color: var(--muted); }
.wx-words small { font-size: 11.5px; color: var(--faint); }

.wx-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.wx-metrics li { display: flex; flex-direction: column; gap: 1px; }
.wx-metrics span { font-size: 11.5px; color: var(--faint); }
.wx-metrics b { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.wx-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.wx-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.wx-block-head h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.wx-block-head span { font-size: 11.5px; color: var(--faint); }

/* 逐时：横向滚动 */
.wx-hours {
  display: flex;
  gap: 2px;
  margin: 0 -6px;
  padding: 0 6px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.wx-hour {
  flex: 0 0 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0 8px;
  border-radius: 4px;
  scroll-snap-align: start;
}

.wx-hour:hover { background: var(--accent-soft); }
.wx-h-clock { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.wx-h-icon { width: 26px; height: 26px; }
.wx-hour b { font-size: 13px; font-variant-numeric: tabular-nums; }
.wx-hour small { font-size: 11px; color: var(--faint); }

/* 「今天天气」模块：当前天气 + 今日高低温区间条 + 指标 */
.td-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  gap: 34px;
  align-items: center;
}

.td-cur { display: flex; align-items: center; gap: 16px; min-width: 0; }

.td-range { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.td-range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.td-range-head > span:first-child { font-size: 11.5px; color: var(--faint); }
.td-range-now { font-size: 12.5px; color: var(--muted); }
.td-range-now b { font-size: 14px; font-weight: 600; color: var(--ink); }

.td-range-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--accent) 100%);
}
.td-range-bar i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.td-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* 未来 7 天：一周温度区间条（独立模块） */
.fc-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.fc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 2px 10px;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.fc-day:last-child { border-right: 0; }
.fc-day.is-today { background: var(--accent-soft); border-radius: 6px; }

.fc-head { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fc-name { font-size: 12.5px; font-weight: 600; }
.fc-date { font-size: 10.5px; color: var(--faint); }
.fc-icon { width: 30px; height: 30px; }
.fc-max { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-min { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-pop { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 区间条：以一周最高/最低为标尺，填充当天 [最低, 最高] 的胶囊 */
.fc-bar {
  position: relative;
  width: 7px;
  flex: 1 1 54px;
  min-height: 44px;
  border-radius: 5px;
  background: var(--line);
}

.fc-bar i {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}

@media (max-width: 640px) {
  .fc-strip { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .fc-day { flex: 0 0 74px; scroll-snap-align: start; }
}

/* 骨架与提示 */
.wx-skeleton { display: flex; align-items: center; gap: 16px; }

.wx-sk-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--line);
  animation: wxPulse 1.5s ease-in-out infinite;
}

.wx-sk-lines { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.wx-sk-lines i {
  height: 12px;
  border-radius: 3px;
  background: var(--line);
  animation: wxPulse 1.5s ease-in-out infinite;
}

.wx-sk-lines i:first-child { width: 38%; }
.wx-sk-lines i:last-child { width: 62%; }

@keyframes wxPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.wx-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .wx-sk-icon, .wx-sk-lines i { animation: none; }
}

@media (max-width: 760px) {
  .city-mods { padding-block: 18px 40px; gap: 12px; }
  .mod { padding: 16px 14px 18px; }
  .mod-head { flex-wrap: wrap; gap: 3px 12px; margin-bottom: 14px; padding-bottom: 11px; }
  .mod-head h2 { font-size: 16px; }
  /* meta 短（更新于 14:15）时留在标题右侧，长（同一时区：与北京同时区）时换行后仍右对齐 */
  .mod-meta { margin-left: auto; text-align: right; font-size: 11.5px; }
  .mod .about-grid { gap: 22px; }
  .wx-icon { width: 50px; height: 50px; }
  .wx-degree b { font-size: 40px; }
  .wx-degree sup { font-size: 12px; margin-top: 4px; }
  .wx-words strong { font-size: 15px; }
  .wx-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  /* 今天天气：窄屏下当前天气与区间条上下堆叠 */
  .td-now { grid-template-columns: 1fr; gap: 18px; }
  .td-range { max-width: 360px; }
}

/* 折叠开关的 +/− 指示 */
.mod-fold-hint::before { content: "+"; font-size: 15px; line-height: 1; color: var(--faint); }
.mod-fold[open] .mod-fold-hint::before { content: "−"; }
.mod-fold:hover .mod-fold-hint::before { color: var(--accent); }

/* ---------- 窄屏顶栏：品牌 + 搜索一行，导航单独一行 ---------- */
@media (max-width: 760px) {
  .topbar-inner { gap: 8px 12px; }
  .brand-sub { display: none; }
  .brand-cn { font-size: 19px; }
  .topbar-actions { gap: 6px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
  .site-search { flex: 1 1 96px; min-width: 0; }
  .site-search input { width: 100%; min-width: 0; }
  .nav { order: 5; width: 100%; gap: 16px; padding: 8px 0 2px; }

  /* 城市页标题：避免「查询」被拆成单字一行 */
  .city-title h1 { font-size: 21px; line-height: 1.35; text-wrap: balance; }
  .city-title .en { font-size: 12px; }
}

@media (max-width: 420px) {
  .site-search { flex: 1 1 84px; }
  .brand-cn { font-size: 18px; }
}

/* =========================================================
   视觉模板 · 春日樱风（sakura）
   浅色清新 / 樱花粉 · 薄荷绿 · 奶白 / 毛玻璃 / 大圆角
   ========================================================= */
html[data-template="sakura"] {
  /* —— 基础令牌 —— */
  --paper: #fffdf9;
  --surface: #ffffff;
  --surface-2: #fff1f4;
  --ink: #3a3335;
  --muted: #6f626a;
  --faint: #8a7c84;
  --line: #f2dbe2;
  --line-strong: #e8c4cf;
  --accent: #e67a98;
  --accent-soft: #ffe8ed;
  --night: #7fb7a8;
  --night-soft: #e7f5ef;
  --gold: #f0a26f;
  --ok: #5fb598;

  --sky-sea: #fdf7f4;
  --sky-line: #f2e0e6;
  --sky-line-strong: #e6cad3;
  --sky-land: #f0d8de;
  --sky-night: rgba(240, 142, 168, 0.18);
  --sky-ember: #f5a97f;
  --day-1: #fff6f3;
  --night-1: #f1f6f4;

  /* —— hero 卡：浅底深字（与默认深底浅字相反）—— */
  --hero-bg: linear-gradient(135deg, #ffe9ef 0%, #fffdf9 52%, #eef8f2 100%);
  --hero-line: #f4d5df;
  --hero-ink: #3a3335;
  --hero-muted: #6f626a;
  --hero-accent: #e67a98;
  --hero-warm: #e8945f;
  --hero-card: rgba(255, 255, 255, 0.62);
  --hero-card-hover: rgba(255, 255, 255, 0.86);
  --hero-part: rgba(255, 255, 255, 0.52);
  --hero-part-line: #eecbd6;

  /* —— 大圆角 / 柔和阴影 —— */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-pop: 0 20px 48px rgba(240, 142, 168, 0.22);
}

/* 毛玻璃卡片：给主要卡片半透明底 + 背景模糊 */
html[data-template="sakura"] .clock-card,
html[data-template="sakura"] .home-tool,
html[data-template="sakura"] .zone-cell,
html[data-template="sakura"] .geo-pill,
html[data-template="sakura"] .chip,
html[data-template="sakura"] .conv-side {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(232, 196, 207, 0.7);
}
html[data-template="sakura"] .clock-card:hover,
html[data-template="sakura"] .home-tool:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(240, 142, 168, 0.24);
  transform: translateY(-3px);
}

/* 卡片 hover 上浮 + 阴影渐变（动效克制） */
html[data-template="sakura"] .clock-card,
html[data-template="sakura"] .home-tool,
html[data-template="sakura"] .geo-pill,
html[data-template="sakura"] .chip {
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}
html[data-template="sakura"] .geo-pill:hover,
html[data-template="sakura"] .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(240, 142, 168, 0.18);
}

/* —— 首页 hero 卡反转 —— */
html[data-template="sakura"] .hero-card {
  color: var(--hero-ink);
  box-shadow: 0 22px 52px rgba(240, 142, 168, 0.20);
}
html[data-template="sakura"] .hero-card::before { opacity: 0.16; }
html[data-template="sakura"] .hero-card::after {
  background: radial-gradient(closest-side, rgba(240, 142, 168, 0.18), transparent 72%);
}
html[data-template="sakura"] .hero-card h1 { color: #4a3640; }
html[data-template="sakura"] .hero-tag { background: rgba(255, 255, 255, 0.55); color: #7c6f76; }
html[data-template="sakura"] .hero-clock { color: #3a3335; text-shadow: 0 0 30px rgba(240, 142, 168, 0.20); }
html[data-template="sakura"] .hero-card [data-part="s"] { color: #e67a98; }
html[data-template="sakura"] .hero-card .hero-clock .ck-text { color: #3a3335; }
html[data-template="sakura"] .hm-zone { color: #695b63; }
html[data-template="sakura"] .hm-note { color: #75656e; }
html[data-template="sakura"] .hero-track { color: #8a7881; }
html[data-template="sakura"] .hero-cities a { background: var(--hero-card); }
html[data-template="sakura"] .hero-cities a:hover { background: var(--hero-card-hover); }
html[data-template="sakura"] .hero-cities a:hover { border-color: #e67a98; box-shadow: 0 12px 24px rgba(230, 122, 152, 0.22); }
html[data-template="sakura"] .hc-name { color: #4a3a42; }
html[data-template="sakura"] .hc-time { color: #d15f7e; }
html[data-template="sakura"] .hero-cities li[data-phase="night"] .hc-time { color: #c9703d; }
html[data-template="sakura"] .ht-label { opacity: 0.9; color: #7d6b74; }
html[data-template="sakura"] .ht-now { background: rgba(230, 122, 152, 0.18); color: #c14f6e; font-weight: 600; }
html[data-template="sakura"] .ht-line {
  background: linear-gradient(90deg, #eecbd6 0%, #f5b6c4 25%, #f5c08a 52%, #b8dcc8 75%, #eecbd6 100%);
}
html[data-template="sakura"] .ht-cursor { border-color: #fff; background: #f0a26f; box-shadow: 0 0 0 5px rgba(240, 162, 111, 0.2), 0 0 16px #f5b98a; }
html[data-template="sakura"] .ht-now { background: rgba(240, 142, 168, 0.16); color: #d16f8c; }
html[data-template="sakura"] .hero-dial .hd-tick { stroke: #f0b7c5; }
html[data-template="sakura"] .hero-dial .hd-tick.is-hour { stroke: #e58aa4; }
html[data-template="sakura"] .hero-dial .hd-num { fill: #e58aa4; }
html[data-template="sakura"] .hero-dial .hd-hand { stroke: #6a4a56; }
html[data-template="sakura"] .hero-dial .hd-hand-s { stroke: #f0a26f; }

/* —— 城市页 hero 反转 —— */
html[data-template="sakura"] .city-hero {
  color: var(--hero-ink);
  box-shadow: 0 22px 52px rgba(240, 142, 168, 0.20);
}
html[data-template="sakura"] .city-hero h1 { color: #4a3640; }
html[data-template="sakura"] .city-hero .panel {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(232, 196, 207, 0.7);
}
html[data-template="sakura"] .city-time { color: #3a3335; text-shadow: 0 0 30px rgba(240, 142, 168, 0.20); }
html[data-template="sakura"] .city-time .sec { color: #e67a98; }
html[data-template="sakura"] .city-hero .badge { background: rgba(255, 255, 255, 0.5); color: #a58b96; }
html[data-template="sakura"] .city-hero .btn { background: rgba(255, 255, 255, 0.55); color: #3a3335; }
html[data-template="sakura"] .city-hero .btn:hover { border-color: #e67a98; color: #e67a98; }
html[data-template="sakura"] .city-hero .btn-primary { background: #e67a98; border-color: #e67a98; color: #fff; }
html[data-template="sakura"] .city-hero .btn-primary:hover { background: #e67a98; color: #fff; }
html[data-template="sakura"] .city-hero .arc-wrap svg path { stroke: #e8a7bb; }
html[data-template="sakura"] .hero-wx-line { background: rgba(255, 255, 255, 0.55); }
html[data-template="sakura"] .city-hero .overlap-bar { background: rgba(240, 142, 168, 0.10); }
html[data-template="sakura"] .city-hero .overlap-bar i.on { background: rgba(240, 142, 168, 0.28); }
html[data-template="sakura"] .city-hero .overlap-bar i.hot { background: #e67a98; }
html[data-template="sakura"] .city-hero .fact { background: rgba(255, 255, 255, 0.55); }

/* —— 时区页 / diff 卡反转 —— */
html[data-template="sakura"] .zone-hero h1 { color: #4a3640; }
html[data-template="sakura"] .zone-hero .zone-offset { color: #3a3335; text-shadow: 0 0 30px rgba(240, 142, 168, 0.18); }

/* —— 钟面引擎（樱花下浅底深针）—— */
html[data-template="sakura"] .hero-card .ck-flip .fd,
html[data-template="sakura"] .city-hero .ck-flip .fd {
  background: rgba(255, 255, 255, 0.66);
}
html[data-template="sakura"] .hero-card .ck-flip .fd-mid { background: rgba(240, 142, 168, 0.16); }
html[data-template="sakura"] .hero-card .ck-face .cf-rim,
html[data-template="sakura"] .city-hero .ck-face .cf-rim,
html[data-template="sakura"] .zone-hero .ck-face .cf-rim,
html[data-template="sakura"] .diff-card .ck-face .cf-rim { fill: rgba(255, 255, 255, 0.6); }
html[data-template="sakura"] .hero-card .ck-face .cf-tick,
html[data-template="sakura"] .city-hero .ck-face .cf-tick,
html[data-template="sakura"] .zone-hero .ck-face .cf-tick { stroke: #eeb3c1; opacity: 0.5; }
html[data-template="sakura"] .hero-card .ck-face .cf-tick.is-major,
html[data-template="sakura"] .city-hero .ck-face .cf-tick.is-major,
html[data-template="sakura"] .zone-hero .ck-face .cf-tick.is-major { stroke: #e58aa4; opacity: 0.8; }
html[data-template="sakura"] .hero-card .ck-face .cf-hour,
html[data-template="sakura"] .hero-card .ck-face .cf-min,
html[data-template="sakura"] .city-hero .ck-face .cf-hour,
html[data-template="sakura"] .city-hero .ck-face .cf-min,
html[data-template="sakura"] .zone-hero .ck-face .cf-hour,
html[data-template="sakura"] .zone-hero .ck-face .cf-min { stroke: #5a4650; }
html[data-template="sakura"] .hero-card .ck-arc .ca-disc,
html[data-template="sakura"] .city-hero .ck-arc .ca-disc,
html[data-template="sakura"] .diff-card .ck-arc .ca-disc,
html[data-template="sakura"] .zone-hero .ck-arc .ca-disc { fill: rgba(255, 255, 255, 0.6); }
html[data-template="sakura"] .hero-card .ck-arc .ca-track,
html[data-template="sakura"] .city-hero .ck-arc .ca-track,
html[data-template="sakura"] .zone-hero .ck-arc .ca-track { stroke: #f0c4cf; }
html[data-template="sakura"] .hero-card .ck-flip .ck-flip-sep,
html[data-template="sakura"] .city-hero .ck-flip .ck-flip-sep,
html[data-template="sakura"] .zone-hero .ck-flip .ck-flip-sep { color: #e58aa4; }
html[data-template="sakura"] .hero-card .ck-ring .cr-track { stroke: #f0c4cf; opacity: 0.6; }
html[data-template="sakura"] .hero-card .ck-dot rect.off,
html[data-template="sakura"] .city-hero .ck-dot rect.off { fill: #f0c4cf; opacity: 0.35; }
html[data-template="sakura"] .hero-card .ck-flip .fd::after { background: #eecbd6; opacity: 0.7; }

/* 顶栏与按钮在樱粉下统一暖调 */
html[data-template="sakura"] .topbar { border-bottom-color: var(--line); }
html[data-template="sakura"] .btn-primary { background: #e67a98; border-color: #e67a98; color: #fff; }
html[data-template="sakura"] .btn-primary:hover { background: #e67a98; border-color: #e67a98; color: #fff; }
html[data-template="sakura"] .brand-mark { background: #e67a98; }
html[data-template="sakura"] ::selection { background: #e67a98; color: #fff; }

/* —— 樱花粒子：缓慢飘落 + 微风左右轻晃 —— */
.sakura-petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sakura-petal {
  position: absolute; top: -6%; left: 0;
  width: 10px; height: 12px;
  background: radial-gradient(circle at 30% 30%, #fbc4d4, #f08ea8 70%);
  border-radius: 80% 20% 75% 25% / 60% 40% 70% 30%;
  opacity: 0.7;
  scale: var(--s, 1);
  will-change: transform;
  animation: sakura-fall linear infinite, sakura-sway ease-in-out infinite alternate;
}
.sakura-petal:nth-child(3n) { background: radial-gradient(circle at 30% 30%, #ffdce4, #f5b6c4 70%); }
.sakura-petal:nth-child(3n+1) { background: radial-gradient(circle at 30% 30%, #fde0d0, #f5c08a 70%); }
@keyframes sakura-fall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  100% { transform: translate3d(0, 108vh, 0) rotate(360deg); }
}
@keyframes sakura-sway {
  0% { margin-left: -14px; }
  100% { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sakura-petal { animation: none; opacity: 0.5; }
  html[data-template="sakura"] .clock-card,
  html[data-template="sakura"] .home-tool { transition: none; }
}

/* =========================================================
   视觉模板 · 森屿青雾（mist）
   自然森系 / 雾松绿 · 浅灰绿 · 雾白 / 哑光毛玻璃 / 安静松弛
   ========================================================= */
html[data-template="mist"] {
  /* —— 基础令牌 —— */
  --paper: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #edf2ef;
  --ink: #26322e;
  --muted: #52605a;
  --faint: #6f7d76;
  --line: #dfe8e3;
  --line-strong: #c8d6cf;
  --accent: #749c8b;
  --accent-soft: #e2eee8;
  --night: #7fb7a8;
  --night-soft: #e7f5ef;
  --gold: #c9a96a;
  --ok: #6cae92;

  --sky-sea: #f2f6f4;
  --sky-line: #dbe5e0;
  --sky-line-strong: #c4d4cc;
  --sky-land: #cbd9d1;
  --sky-night: rgba(116, 156, 139, 0.18);
  --sky-ember: #a8bdb2;
  --day-1: #f2f7f4;
  --night-1: #eaf0ec;

  /* —— hero 卡：浅底深字（与默认深底浅字相反）—— */
  --hero-bg: linear-gradient(135deg, #e7efe9 0%, #f4f7f5 50%, #eef3ef 100%);
  --hero-line: #d5e1da;
  --hero-ink: #26322e;
  --hero-muted: #52605a;
  --hero-accent: #749c8b;
  --hero-warm: #a8864f;
  --hero-card: rgba(255, 255, 255, 0.58);
  --hero-card-hover: rgba(255, 255, 255, 0.85);
  --hero-part: rgba(255, 255, 255, 0.50);
  --hero-part-line: #cddcd4;

  /* —— 大圆角 / 柔和阴影 —— */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-pop: 0 20px 48px rgba(116, 156, 139, 0.22);
}

/* 毛玻璃卡片：哑光半透明 + 背景模糊 */
html[data-template="mist"] .clock-card,
html[data-template="mist"] .home-tool,
html[data-template="mist"] .zone-cell,
html[data-template="mist"] .geo-pill,
html[data-template="mist"] .chip,
html[data-template="mist"] .conv-side {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(200, 214, 207, 0.7);
}
html[data-template="mist"] .clock-card:hover,
html[data-template="mist"] .home-tool:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(116, 156, 139, 0.22);
  transform: translateY(-3px);
}

/* 卡片 hover 上浮 + 阴影渐变（动效极慢、克制） */
html[data-template="mist"] .clock-card,
html[data-template="mist"] .home-tool,
html[data-template="mist"] .geo-pill,
html[data-template="mist"] .chip {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
html[data-template="mist"] .geo-pill:hover,
html[data-template="mist"] .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(116, 156, 139, 0.16);
}

/* —— 首页 hero 卡反转 —— */
html[data-template="mist"] .hero-card {
  color: var(--hero-ink);
  box-shadow: 0 22px 52px rgba(116, 156, 139, 0.18);
}
html[data-template="mist"] .hero-card::before { opacity: 0.14; }
html[data-template="mist"] .hero-card::after {
  background: radial-gradient(closest-side, rgba(116, 156, 139, 0.16), transparent 72%);
}
html[data-template="mist"] .hero-card h1 { color: #26322e; }
html[data-template="mist"] .hero-tag { background: rgba(255, 255, 255, 0.55); color: #5c6a64; }
html[data-template="mist"] .hero-clock { color: #26322e; text-shadow: 0 0 30px rgba(116, 156, 139, 0.20); }
html[data-template="mist"] .hero-card [data-part="s"] { color: #749c8b; }
html[data-template="mist"] .hero-card .hero-clock .ck-text { color: #26322e; }
html[data-template="mist"] .hm-zone { color: #46534d; }
html[data-template="mist"] .hm-note { color: #52605a; }
html[data-template="mist"] .hero-track { color: #65736c; }
html[data-template="mist"] .hero-cities a { background: var(--hero-card); }
html[data-template="mist"] .hero-cities a:hover { background: var(--hero-card-hover); }
html[data-template="mist"] .hero-cities a:hover { border-color: #749c8b; box-shadow: 0 12px 24px rgba(116, 156, 139, 0.20); }
html[data-template="mist"] .hc-name { color: #26322e; }
html[data-template="mist"] .hc-time { color: #567a6c; }
html[data-template="mist"] .hero-cities li[data-phase="night"] .hc-time { color: #8a734a; }
html[data-template="mist"] .ht-label { opacity: 0.95; color: #52605a; }
html[data-template="mist"] .ht-now { background: rgba(116, 156, 139, 0.16); color: #4c7a68; font-weight: 600; }
html[data-template="mist"] .ht-line {
  background: linear-gradient(90deg, #cddcd4 0%, #a8c4b6 25%, #d8c79a 52%, #9fc0b0 75%, #cddcd4 100%);
}
html[data-template="mist"] .ht-cursor { border-color: #fff; background: #749c8b; box-shadow: 0 0 0 5px rgba(116, 156, 139, 0.2), 0 0 16px #9fc0b0; }
html[data-template="mist"] .ht-now { background: rgba(116, 156, 139, 0.14); color: #5a8676; }
html[data-template="mist"] .hero-dial .hd-tick { stroke: #b8cdc2; }
html[data-template="mist"] .hero-dial .hd-tick.is-hour { stroke: #8fb0a0; }
html[data-template="mist"] .hero-dial .hd-num { fill: #8fb0a0; }
html[data-template="mist"] .hero-dial .hd-hand { stroke: #3c4a44; }
html[data-template="mist"] .hero-dial .hd-hand-s { stroke: #749c8b; }

/* —— 城市页 hero 反转 —— */
html[data-template="mist"] .city-hero {
  color: var(--hero-ink);
  box-shadow: 0 22px 52px rgba(116, 156, 139, 0.18);
}
html[data-template="mist"] .city-hero h1 { color: #26322e; }
html[data-template="mist"] .city-hero .panel {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(200, 214, 207, 0.7);
}
html[data-template="mist"] .city-time { color: #26322e; text-shadow: 0 0 30px rgba(116, 156, 139, 0.20); }
html[data-template="mist"] .city-time .sec { color: #749c8b; }
html[data-template="mist"] .city-hero .badge { background: rgba(255, 255, 255, 0.5); color: #7d8a84; }
html[data-template="mist"] .city-hero .btn { background: rgba(255, 255, 255, 0.55); color: #26322e; }
html[data-template="mist"] .city-hero .btn:hover { border-color: #749c8b; color: #567a6c; }
html[data-template="mist"] .city-hero .btn-primary { background: #749c8b; border-color: #749c8b; color: #fff; }
html[data-template="mist"] .city-hero .btn-primary:hover { background: #749c8b; color: #fff; }
html[data-template="mist"] .city-hero .arc-wrap svg path { stroke: #a9c0b4; }
html[data-template="mist"] .hero-wx-line { background: rgba(255, 255, 255, 0.55); }
html[data-template="mist"] .city-hero .overlap-bar { background: rgba(116, 156, 139, 0.10); }
html[data-template="mist"] .city-hero .overlap-bar i.on { background: rgba(116, 156, 139, 0.28); }
html[data-template="mist"] .city-hero .overlap-bar i.hot { background: #749c8b; }
html[data-template="mist"] .city-hero .fact { background: rgba(255, 255, 255, 0.55); }

/* —— 时区页 / diff 卡反转 —— */
html[data-template="mist"] .zone-hero h1 { color: #26322e; }
html[data-template="mist"] .zone-hero .zone-offset { color: #26322e; text-shadow: 0 0 30px rgba(116, 156, 139, 0.18); }

/* —— 钟面引擎（青雾下浅底深针）—— */
html[data-template="mist"] .hero-card .ck-flip .fd,
html[data-template="mist"] .city-hero .ck-flip .fd {
  background: rgba(255, 255, 255, 0.66);
}
html[data-template="mist"] .hero-card .ck-flip .fd-mid { background: rgba(116, 156, 139, 0.16); }
html[data-template="mist"] .hero-card .ck-face .cf-rim,
html[data-template="mist"] .city-hero .ck-face .cf-rim,
html[data-template="mist"] .zone-hero .ck-face .cf-rim,
html[data-template="mist"] .diff-card .ck-face .cf-rim { fill: rgba(255, 255, 255, 0.6); }
html[data-template="mist"] .hero-card .ck-face .cf-tick,
html[data-template="mist"] .city-hero .ck-face .cf-tick,
html[data-template="mist"] .zone-hero .ck-face .cf-tick { stroke: #b8cdc2; opacity: 0.5; }
html[data-template="mist"] .hero-card .ck-face .cf-tick.is-major,
html[data-template="mist"] .city-hero .ck-face .cf-tick.is-major,
html[data-template="mist"] .zone-hero .ck-face .cf-tick.is-major { stroke: #8fb0a0; opacity: 0.8; }
html[data-template="mist"] .hero-card .ck-face .cf-hour,
html[data-template="mist"] .hero-card .ck-face .cf-min,
html[data-template="mist"] .city-hero .ck-face .cf-hour,
html[data-template="mist"] .city-hero .ck-face .cf-min,
html[data-template="mist"] .zone-hero .ck-face .cf-hour,
html[data-template="mist"] .zone-hero .ck-face .cf-min { stroke: #3c4a44; }
html[data-template="mist"] .hero-card .ck-arc .ca-disc,
html[data-template="mist"] .city-hero .ck-arc .ca-disc,
html[data-template="mist"] .diff-card .ck-arc .ca-disc,
html[data-template="mist"] .zone-hero .ck-arc .ca-disc { fill: rgba(255, 255, 255, 0.6); }
html[data-template="mist"] .hero-card .ck-arc .ca-track,
html[data-template="mist"] .city-hero .ck-arc .ca-track,
html[data-template="mist"] .zone-hero .ck-arc .ca-track { stroke: #c4d4cc; }
html[data-template="mist"] .hero-card .ck-flip .ck-flip-sep,
html[data-template="mist"] .city-hero .ck-flip .ck-flip-sep,
html[data-template="mist"] .zone-hero .ck-flip .ck-flip-sep { color: #8fb0a0; }
html[data-template="mist"] .hero-card .ck-ring .cr-track { stroke: #c4d4cc; opacity: 0.6; }
html[data-template="mist"] .hero-card .ck-dot rect.off,
html[data-template="mist"] .city-hero .ck-dot rect.off { fill: #c4d4cc; opacity: 0.35; }
html[data-template="mist"] .hero-card .ck-flip .fd::after { background: #cddcd4; opacity: 0.7; }

/* 顶栏与按钮在青雾下统一冷调 */
html[data-template="mist"] .topbar { border-bottom-color: var(--line); }
html[data-template="mist"] .btn-primary { background: #749c8b; border-color: #749c8b; color: #fff; }
html[data-template="mist"] .btn-primary:hover { background: #749c8b; border-color: #749c8b; color: #fff; }
html[data-template="mist"] .brand-mark { background: #749c8b; }
html[data-template="mist"] ::selection { background: #749c8b; color: #fff; }

/* —— 森屿青雾动效：薄雾流动弥散 + 零星光斑漂浮 —— */
.mist-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mist-drift {
  position: absolute; top: -20%; left: -10%;
  width: 120%; height: 60%;
  background: radial-gradient(ellipse at 30% 40%, rgba(116, 156, 139, 0.14), transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(160, 190, 176, 0.12), transparent 55%);
  filter: blur(30px);
  animation: mist-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.mist-drift:nth-child(2) {
  top: 30%; left: -30%;
  background: radial-gradient(ellipse at 60% 50%, rgba(116, 156, 139, 0.12), transparent 58%);
  animation-duration: 34s;
  animation-delay: -8s;
}
.mist-glimmer {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #eaf4ef, rgba(116, 156, 139, 0.5) 80%);
  opacity: 0;
  animation: mist-glimmer ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes mist-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
@keyframes mist-glimmer {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
  50% { opacity: 0.75; transform: translateY(-18px) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .mist-drift { animation: none; opacity: 0.5; }
  .mist-glimmer { animation: none; opacity: 0.4; }
  html[data-template="mist"] .clock-card,
  html[data-template="mist"] .home-tool { transition: none; }
}

/* =========================================================
   视觉模板 · 秋风金梧（autumn）
   秋日氛围 / 暖焦糖 · 麦黄 · 暖米 / 毛玻璃暖棕 / 沉静松弛
   ========================================================= */
html[data-template="autumn"] {
  /* —— 基础令牌 —— */
  --paper: #f7f2e9;
  --surface: #fffdf8;
  --surface-2: #f3ecdd;
  --ink: #2c2620;
  --muted: #5a4e40;
  --faint: #7a6d58;
  --line: #e7dcc8;
  --line-strong: #d3c3a4;
  --accent: #a8784f;
  --accent-soft: #f0e3cc;
  --night: #8a7a5f;
  --night-soft: #ede5d4;
  --gold: #c9964f;
  --ok: #7c9a5c;

  --sky-sea: #f6f0e4;
  --sky-line: #e3d7c0;
  --sky-line-strong: #cebb9c;
  --sky-land: #d5c5a6;
  --sky-night: rgba(168, 120, 79, 0.18);
  --sky-ember: #c98a5a;
  --day-1: #f6f1e5;
  --night-1: #ece5d6;

  /* —— hero 卡：浅底深字（与默认深底浅字相反）—— */
  --hero-bg: linear-gradient(135deg, #f0e3cd 0%, #f7f2e9 50%, #efe6d3 100%);
  --hero-line: #e0d2b6;
  --hero-ink: #2c2620;
  --hero-muted: #5a4e40;
  --hero-accent: #a8784f;
  --hero-warm: #c4532f;
  --hero-card: rgba(255, 253, 248, 0.60);
  --hero-card-hover: rgba(255, 253, 248, 0.88);
  --hero-part: rgba(255, 253, 248, 0.52);
  --hero-part-line: #d8c9aa;

  /* —— 大圆角 / 柔和阴影 —— */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-pop: 0 20px 48px rgba(168, 120, 79, 0.24);
}

/* 毛玻璃卡片：暖棕调半透明 + 背景模糊 */
html[data-template="autumn"] .clock-card,
html[data-template="autumn"] .home-tool,
html[data-template="autumn"] .zone-cell,
html[data-template="autumn"] .geo-pill,
html[data-template="autumn"] .chip,
html[data-template="autumn"] .conv-side {
  background: rgba(255, 253, 248, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(211, 195, 164, 0.7);
}
html[data-template="autumn"] .clock-card:hover,
html[data-template="autumn"] .home-tool:hover {
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 34px rgba(168, 120, 79, 0.22);
  transform: translateY(-3px);
}

/* 卡片 hover 上浮 + 阴影渐变（慢节奏、克制） */
html[data-template="autumn"] .clock-card,
html[data-template="autumn"] .home-tool,
html[data-template="autumn"] .geo-pill,
html[data-template="autumn"] .chip {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
html[data-template="autumn"] .geo-pill:hover,
html[data-template="autumn"] .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(168, 120, 79, 0.16);
}

/* —— 首页 hero 卡反转 —— */
html[data-template="autumn"] .hero-card {
  color: var(--hero-ink);
  box-shadow: 0 22px 52px rgba(168, 120, 79, 0.20);
}
html[data-template="autumn"] .hero-card::before { opacity: 0.14; }
html[data-template="autumn"] .hero-card::after {
  background: radial-gradient(closest-side, rgba(201, 150, 79, 0.16), transparent 72%);
}
html[data-template="autumn"] .hero-card h1 { color: #2c2620; }
html[data-template="autumn"] .hero-tag { background: rgba(255, 253, 248, 0.55); color: #665b4e; }
html[data-template="autumn"] .hero-clock { color: #2c2620; text-shadow: 0 0 30px rgba(201, 150, 79, 0.24); }
html[data-template="autumn"] .hero-card [data-part="s"] { color: #c4532f; }
html[data-template="autumn"] .hero-card .hero-clock .ck-text { color: #2c2620; }
html[data-template="autumn"] .hm-zone { color: #4d4233; }
html[data-template="autumn"] .hm-note { color: #5a4e40; }
html[data-template="autumn"] .hero-track { color: #6a5d48; }
html[data-template="autumn"] .hero-cities a { background: var(--hero-card); }
html[data-template="autumn"] .hero-cities a:hover { background: var(--hero-card-hover); }
html[data-template="autumn"] .hero-cities a:hover { border-color: #a8784f; box-shadow: 0 12px 24px rgba(168, 120, 79, 0.20); }
html[data-template="autumn"] .hc-name { color: #2c2620; }
html[data-template="autumn"] .hc-time { color: #9a5f38; }
html[data-template="autumn"] .hero-cities li[data-phase="night"] .hc-time { color: #8a6a3a; }
html[data-template="autumn"] .ht-label { opacity: 0.95; color: #5a4e40; }
html[data-template="autumn"] .ht-now { background: rgba(168, 120, 79, 0.16); color: #8a542c; font-weight: 600; }
html[data-template="autumn"] .ht-line {
  background: linear-gradient(90deg, #d8c9aa 0%, #d8a96a 25%, #e0b878 52%, #b8a06c 75%, #d8c9aa 100%);
}
html[data-template="autumn"] .ht-cursor { border-color: #fff; background: #c4532f; box-shadow: 0 0 0 5px rgba(196, 83, 47, 0.2), 0 0 16px #d8935a; }
html[data-template="autumn"] .ht-now { background: rgba(168, 120, 79, 0.14); color: #945c34; }
html[data-template="autumn"] .hero-dial .hd-tick { stroke: #d5bf9a; }
html[data-template="autumn"] .hero-dial .hd-tick.is-hour { stroke: #b8915f; }
html[data-template="autumn"] .hero-dial .hd-num { fill: #b8915f; }
html[data-template="autumn"] .hero-dial .hd-hand { stroke: #4a3f32; }
html[data-template="autumn"] .hero-dial .hd-hand-s { stroke: #c4532f; }

/* —— 城市页 hero 反转 —— */
html[data-template="autumn"] .city-hero {
  color: var(--hero-ink);
  box-shadow: 0 22px 52px rgba(168, 120, 79, 0.20);
}
html[data-template="autumn"] .city-hero h1 { color: #2c2620; }
html[data-template="autumn"] .city-hero .panel {
  background: rgba(255, 253, 248, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(211, 195, 164, 0.7);
}
html[data-template="autumn"] .city-time { color: #2c2620; text-shadow: 0 0 30px rgba(201, 150, 79, 0.24); }
html[data-template="autumn"] .city-time .sec { color: #c4532f; }
html[data-template="autumn"] .city-hero .badge { background: rgba(255, 253, 248, 0.5); color: #857964; }
html[data-template="autumn"] .city-hero .btn { background: rgba(255, 253, 248, 0.55); color: #2c2620; }
html[data-template="autumn"] .city-hero .btn:hover { border-color: #a8784f; color: #9a5f38; }
html[data-template="autumn"] .city-hero .btn-primary { background: #a8784f; border-color: #a8784f; color: #fff; }
html[data-template="autumn"] .city-hero .btn-primary:hover { background: #a8784f; color: #fff; }
html[data-template="autumn"] .city-hero .arc-wrap svg path { stroke: #c8ae82; }
html[data-template="autumn"] .hero-wx-line { background: rgba(255, 253, 248, 0.55); }
html[data-template="autumn"] .city-hero .overlap-bar { background: rgba(168, 120, 79, 0.10); }
html[data-template="autumn"] .city-hero .overlap-bar i.on { background: rgba(168, 120, 79, 0.28); }
html[data-template="autumn"] .city-hero .overlap-bar i.hot { background: #a8784f; }
html[data-template="autumn"] .city-hero .fact { background: rgba(255, 253, 248, 0.55); }

/* —— 时区页 / diff 卡反转 —— */
html[data-template="autumn"] .zone-hero h1 { color: #2c2620; }
html[data-template="autumn"] .zone-hero .zone-offset { color: #2c2620; text-shadow: 0 0 30px rgba(201, 150, 79, 0.18); }

/* —— 钟面引擎（秋风下浅底深针）—— */
html[data-template="autumn"] .hero-card .ck-flip .fd,
html[data-template="autumn"] .city-hero .ck-flip .fd {
  background: rgba(255, 253, 248, 0.68);
}
html[data-template="autumn"] .hero-card .ck-flip .fd-mid { background: rgba(168, 120, 79, 0.16); }
html[data-template="autumn"] .hero-card .ck-face .cf-rim,
html[data-template="autumn"] .city-hero .ck-face .cf-rim,
html[data-template="autumn"] .zone-hero .ck-face .cf-rim,
html[data-template="autumn"] .diff-card .ck-face .cf-rim { fill: rgba(255, 253, 248, 0.6); }
html[data-template="autumn"] .hero-card .ck-face .cf-tick,
html[data-template="autumn"] .city-hero .ck-face .cf-tick,
html[data-template="autumn"] .zone-hero .ck-face .cf-tick { stroke: #d5bf9a; opacity: 0.5; }
html[data-template="autumn"] .hero-card .ck-face .cf-tick.is-major,
html[data-template="autumn"] .city-hero .ck-face .cf-tick.is-major,
html[data-template="autumn"] .zone-hero .ck-face .cf-tick.is-major { stroke: #b8915f; opacity: 0.8; }
html[data-template="autumn"] .hero-card .ck-face .cf-hour,
html[data-template="autumn"] .hero-card .ck-face .cf-min,
html[data-template="autumn"] .city-hero .ck-face .cf-hour,
html[data-template="autumn"] .city-hero .ck-face .cf-min,
html[data-template="autumn"] .zone-hero .ck-face .cf-hour,
html[data-template="autumn"] .zone-hero .ck-face .cf-min { stroke: #4a3f32; }
html[data-template="autumn"] .hero-card .ck-arc .ca-disc,
html[data-template="autumn"] .city-hero .ck-arc .ca-disc,
html[data-template="autumn"] .diff-card .ck-arc .ca-disc,
html[data-template="autumn"] .zone-hero .ck-arc .ca-disc { fill: rgba(255, 253, 248, 0.6); }
html[data-template="autumn"] .hero-card .ck-arc .ca-track,
html[data-template="autumn"] .city-hero .ck-arc .ca-track,
html[data-template="autumn"] .zone-hero .ck-arc .ca-track { stroke: #d3c3a4; }
html[data-template="autumn"] .hero-card .ck-flip .ck-flip-sep,
html[data-template="autumn"] .city-hero .ck-flip .ck-flip-sep,
html[data-template="autumn"] .zone-hero .ck-flip .ck-flip-sep { color: #b8915f; }
html[data-template="autumn"] .hero-card .ck-ring .cr-track { stroke: #d3c3a4; opacity: 0.6; }
html[data-template="autumn"] .hero-card .ck-dot rect.off,
html[data-template="autumn"] .city-hero .ck-dot rect.off { fill: #d3c3a4; opacity: 0.35; }
html[data-template="autumn"] .hero-card .ck-flip .fd::after { background: #d8c9aa; opacity: 0.7; }

/* 顶栏与按钮在秋风下统一暖调 */
html[data-template="autumn"] .topbar { border-bottom-color: var(--line); }
html[data-template="autumn"] .btn-primary { background: #a8784f; border-color: #a8784f; color: #fff; }
html[data-template="autumn"] .btn-primary:hover { background: #a8784f; border-color: #a8784f; color: #fff; }
html[data-template="autumn"] .brand-mark { background: #a8784f; }
html[data-template="autumn"] ::selection { background: #a8784f; color: #fff; }

/* —— 秋风金梧动效：金黄梧桐叶旋转飘落 + 暖光晕呼吸 —— */
.autumn-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.autumn-glow {
  position: absolute; top: -12%; left: 50%;
  width: 70%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 45%, rgba(201, 150, 79, 0.20), transparent 65%);
  filter: blur(24px);
  animation: autumn-breathe 8s ease-in-out infinite;
  will-change: opacity, transform;
}
.autumn-leaf {
  position: absolute; top: -8%; left: 0;
  width: 13px; height: 13px;
  background: radial-gradient(circle at 32% 30%, #e8c98a, #c9964f 72%);
  border-radius: 0 60% 0 60%;
  opacity: 0.82;
  scale: var(--s, 1);
  will-change: transform;
  animation: autumn-fall linear infinite, autumn-sway ease-in-out infinite alternate;
}
.autumn-leaf:nth-child(3n) { background: radial-gradient(circle at 32% 30%, #f0d9a8, #d8a96a 72%); }
.autumn-leaf:nth-child(3n+1) { background: radial-gradient(circle at 32% 30%, #e0b06a, #b57f43 72%); }
@keyframes autumn-breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
@keyframes autumn-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  100% { transform: translate3d(0, 108vh, 0) rotate(360deg); }
}
@keyframes autumn-sway {
  0% { margin-left: -16px; }
  100% { margin-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .autumn-leaf { animation: none; opacity: 0.55; }
  .autumn-glow { animation: none; opacity: 0.6; }
  html[data-template="autumn"] .clock-card,
  html[data-template="autumn"] .home-tool { transition: none; }
}

/* =========================================================
   视觉模板 · 专注工作极简商务（focus）
   B端商务 / 深空蓝 · 浅灰 · 纯白 / 低干扰 / 高可读
   ========================================================= */
html[data-template="focus"] {
  /* —— 基础令牌 —— */
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --ink: #1f2937;
  --muted: #475362;
  --faint: #64707f;
  --line: #e4e8ef;
  --line-strong: #c9d2de;
  --accent: #254785;
  --accent-soft: #e7edf7;
  --night: #5b7bb0;
  --night-soft: #e8eef7;
  --gold: #3b82c4;
  --ok: #2f8f6b;

  --sky-sea: #f5f8fc;
  --sky-line: #dde4ee;
  --sky-line-strong: #c3cfde;
  --sky-land: #cdd8e6;
  --sky-night: rgba(37, 71, 133, 0.16);
  --sky-ember: #6aa0d8;
  --day-1: #f5f8fc;
  --night-1: #eaf0f7;

  /* —— hero 卡：浅底深字（与默认深底浅字相反）—— */
  --hero-bg: linear-gradient(150deg, #eef2f8 0%, #ffffff 45%, #f2f6fb 100%);
  --hero-line: #dde4ee;
  --hero-ink: #1f2937;
  --hero-muted: #475362;
  --hero-accent: #254785;
  --hero-warm: #3b82c4;
  --hero-card: rgba(255, 255, 255, 0.82);
  --hero-card-hover: rgba(255, 255, 255, 0.96);
  --hero-part: rgba(255, 255, 255, 0.70);
  --hero-part-line: #d4dde9;

  /* —— 几何干净：小圆角 / 极淡阴影 —— */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-pop: 0 16px 40px rgba(37, 71, 133, 0.12);
}

/* 卡片：简约细边框 + 低毛玻璃（无漂浮装饰） */
html[data-template="focus"] .clock-card,
html[data-template="focus"] .home-tool,
html[data-template="focus"] .zone-cell,
html[data-template="focus"] .geo-pill,
html[data-template="focus"] .chip,
html[data-template="focus"] .conv-side {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(201, 210, 222, 0.9);
}
html[data-template="focus"] .clock-card:hover,
html[data-template="focus"] .home-tool:hover {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 26px rgba(37, 71, 133, 0.10);
  transform: translateY(-2px);
}

/* 卡片 hover 微上浮 + 极淡阴影（低打扰） */
html[data-template="focus"] .clock-card,
html[data-template="focus"] .home-tool,
html[data-template="focus"] .geo-pill,
html[data-template="focus"] .chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
html[data-template="focus"] .geo-pill:hover,
html[data-template="focus"] .chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 71, 133, 0.08);
}

/* —— 首页 hero 卡反转 —— */
html[data-template="focus"] .hero-card {
  color: var(--hero-ink);
  box-shadow: 0 18px 44px rgba(37, 71, 133, 0.12);
}
html[data-template="focus"] .hero-card::before { opacity: 0.10; }
html[data-template="focus"] .hero-card::after {
  background: radial-gradient(closest-side, rgba(37, 71, 133, 0.10), transparent 72%);
}
html[data-template="focus"] .hero-card h1 { color: #1f2937; }
html[data-template="focus"] .hero-tag { background: rgba(255, 255, 255, 0.72); color: #4b5563; }
html[data-template="focus"] .hero-clock { color: #1f2937; text-shadow: none; }
html[data-template="focus"] .hero-card [data-part="s"] { color: #254785; }
html[data-template="focus"] .hero-card .hero-clock .ck-text { color: #1f2937; }
html[data-template="focus"] .hm-zone { color: #3a4454; }
html[data-template="focus"] .hm-note { color: #475362; }
html[data-template="focus"] .hero-track { color: #586374; }
html[data-template="focus"] .hero-cities a { background: var(--hero-card); }
html[data-template="focus"] .hero-cities a:hover { background: var(--hero-card-hover); }
html[data-template="focus"] .hero-cities a:hover { border-color: #254785; box-shadow: 0 8px 18px rgba(37, 71, 133, 0.12); }
html[data-template="focus"] .hc-name { color: #1f2937; }
html[data-template="focus"] .hc-time { color: #254785; }
html[data-template="focus"] .hero-cities li[data-phase="night"] .hc-time { color: #3b82c4; }
html[data-template="focus"] .ht-label { opacity: 0.95; color: #475362; }
html[data-template="focus"] .ht-now { background: rgba(37, 71, 133, 0.12); color: #1d3a6b; font-weight: 600; }
html[data-template="focus"] .ht-line {
  background: linear-gradient(90deg, #d4dde9 0%, #b6c6dd 25%, #8fb2dc 52%, #a9c4e4 75%, #d4dde9 100%);
}
html[data-template="focus"] .ht-cursor { border-color: #fff; background: #3b82c4; box-shadow: 0 0 0 4px rgba(59, 130, 196, 0.18); }
html[data-template="focus"] .ht-now { background: rgba(37, 71, 133, 0.10); color: #264d8a; }
html[data-template="focus"] .hero-dial .hd-tick { stroke: #c3cfde; }
html[data-template="focus"] .hero-dial .hd-tick.is-hour { stroke: #8fa3bd; }
html[data-template="focus"] .hero-dial .hd-num { fill: #8fa3bd; }
html[data-template="focus"] .hero-dial .hd-hand { stroke: #2c3a52; }
html[data-template="focus"] .hero-dial .hd-hand-s { stroke: #3b82c4; }

/* —— 城市页 hero 反转 —— */
html[data-template="focus"] .city-hero {
  color: var(--hero-ink);
  box-shadow: 0 18px 44px rgba(37, 71, 133, 0.12);
}
html[data-template="focus"] .city-hero h1 { color: #1f2937; }
html[data-template="focus"] .city-hero .panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(201, 210, 222, 0.9);
}
html[data-template="focus"] .city-time { color: #1f2937; text-shadow: none; }
html[data-template="focus"] .city-time .sec { color: #254785; }
html[data-template="focus"] .city-hero .badge { background: rgba(255, 255, 255, 0.72); color: #6b7280; }
html[data-template="focus"] .city-hero .btn { background: rgba(255, 255, 255, 0.72); color: #1f2937; }
html[data-template="focus"] .city-hero .btn:hover { border-color: #254785; color: #254785; }
html[data-template="focus"] .city-hero .btn-primary { background: #254785; border-color: #254785; color: #fff; }
html[data-template="focus"] .city-hero .btn-primary:hover { background: #254785; color: #fff; }
html[data-template="focus"] .city-hero .arc-wrap svg path { stroke: #a9bcd4; }
html[data-template="focus"] .hero-wx-line { background: rgba(255, 255, 255, 0.72); }
html[data-template="focus"] .city-hero .overlap-bar { background: rgba(37, 71, 133, 0.08); }
html[data-template="focus"] .city-hero .overlap-bar i.on { background: rgba(37, 71, 133, 0.24); }
html[data-template="focus"] .city-hero .overlap-bar i.hot { background: #254785; }
html[data-template="focus"] .city-hero .fact { background: rgba(255, 255, 255, 0.72); }

/* —— 时区页 / diff 卡反转 —— */
html[data-template="focus"] .zone-hero h1 { color: #1f2937; }
html[data-template="focus"] .zone-hero .zone-offset { color: #1f2937; text-shadow: none; }

/* —— 钟面引擎（极简商务下浅底深针）—— */
html[data-template="focus"] .hero-card .ck-flip .fd,
html[data-template="focus"] .city-hero .ck-flip .fd {
  background: rgba(255, 255, 255, 0.88);
}
html[data-template="focus"] .hero-card .ck-flip .fd-mid { background: rgba(37, 71, 133, 0.10); }
html[data-template="focus"] .hero-card .ck-face .cf-rim,
html[data-template="focus"] .city-hero .ck-face .cf-rim,
html[data-template="focus"] .zone-hero .ck-face .cf-rim,
html[data-template="focus"] .diff-card .ck-face .cf-rim { fill: rgba(255, 255, 255, 0.85); }
html[data-template="focus"] .hero-card .ck-face .cf-tick,
html[data-template="focus"] .city-hero .ck-face .cf-tick,
html[data-template="focus"] .zone-hero .ck-face .cf-tick { stroke: #c3cfde; opacity: 0.5; }
html[data-template="focus"] .hero-card .ck-face .cf-tick.is-major,
html[data-template="focus"] .city-hero .ck-face .cf-tick.is-major,
html[data-template="focus"] .zone-hero .ck-face .cf-tick.is-major { stroke: #8fa3bd; opacity: 0.8; }
html[data-template="focus"] .hero-card .ck-face .cf-hour,
html[data-template="focus"] .hero-card .ck-face .cf-min,
html[data-template="focus"] .city-hero .ck-face .cf-hour,
html[data-template="focus"] .city-hero .ck-face .cf-min,
html[data-template="focus"] .zone-hero .ck-face .cf-hour,
html[data-template="focus"] .zone-hero .ck-face .cf-min { stroke: #2c3a52; }
html[data-template="focus"] .hero-card .ck-arc .ca-disc,
html[data-template="focus"] .city-hero .ck-arc .ca-disc,
html[data-template="focus"] .diff-card .ck-arc .ca-disc,
html[data-template="focus"] .zone-hero .ck-arc .ca-disc { fill: rgba(255, 255, 255, 0.85); }
html[data-template="focus"] .hero-card .ck-arc .ca-track,
html[data-template="focus"] .city-hero .ck-arc .ca-track,
html[data-template="focus"] .zone-hero .ck-arc .ca-track { stroke: #c9d2de; }
html[data-template="focus"] .hero-card .ck-flip .ck-flip-sep,
html[data-template="focus"] .city-hero .ck-flip .ck-flip-sep,
html[data-template="focus"] .zone-hero .ck-flip .ck-flip-sep { color: #8fa3bd; }
html[data-template="focus"] .hero-card .ck-ring .cr-track { stroke: #c9d2de; opacity: 0.6; }
html[data-template="focus"] .hero-card .ck-dot rect.off,
html[data-template="focus"] .city-hero .ck-dot rect.off { fill: #c9d2de; opacity: 0.35; }
html[data-template="focus"] .hero-card .ck-flip .fd::after { background: #d4dde9; opacity: 0.7; }

/* 顶栏与按钮在极简商务下统一冷调 */
html[data-template="focus"] .topbar { border-bottom-color: var(--line); }
html[data-template="focus"] .btn-primary { background: #254785; border-color: #254785; color: #fff; }
html[data-template="focus"] .btn-primary:hover { background: #254785; border-color: #254785; color: #fff; }
html[data-template="focus"] .brand-mark { background: #254785; }
html[data-template="focus"] ::selection { background: #254785; color: #fff; }

/* —— 极简商务动效：背景极微弱流光缓慢游走（无漂浮粒子） —— */
.focus-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.focus-sheen {
  position: absolute; top: -30%; left: -30%;
  width: 60%; height: 160%;
  background: linear-gradient(105deg, transparent 42%, rgba(37, 71, 133, 0.05) 50%, transparent 58%);
  animation: focus-sheen 14s ease-in-out infinite;
  will-change: transform;
}
@keyframes focus-sheen {
  0% { transform: translateX(-45%); }
  60%, 100% { transform: translateX(160%); }
}
@media (prefers-reduced-motion: reduce) {
  .focus-sheen { animation: none; opacity: 0; }
  html[data-template="focus"] .clock-card,
  html[data-template="focus"] .home-tool { transition: none; }
}

/* =========================================================
   视觉模板 · 星海夜色（starry）
   深色夜空 / 星蓝 · 浅紫 · 深空 / 星光闪烁 · 流星划过
   ========================================================= */
html[data-template="starry"] {
  /* —— 基础令牌：整页压暗为深空 —— */
  --paper: #0f1424;
  --surface: #161d31;
  --surface-2: #1d2540;
  --ink: #e5e7eb;
  --muted: #b0b8cc;
  --faint: #8b94ab;
  --line: #2a3452;
  --line-strong: #384464;
  --accent: #4388ff;
  --accent-soft: #1c2a4e;
  --night: #7fb0ff;
  --night-soft: #1a2745;
  --gold: #c9a15e;
  --ok: #5bbd9a;

  --sky-sea: #0c1222;
  --sky-line: #1b2340;
  --sky-line-strong: #273257;
  --sky-land: #2a3557;
  --sky-night: rgba(0, 0, 0, 0.55);
  --sky-ember: #7fb0ff;
  --day-1: #141c32;
  --night-1: #101729;

  /* —— hero 卡：深空蓝底 · 星白浅字（与默认方向一致，换星空色）—— */
  --hero-bg: linear-gradient(150deg, #0d1428 0%, #131c38 48%, #1a1440 100%);
  --hero-line: #2b3a66;
  --hero-ink: #eaf0ff;
  --hero-muted: #a7b6dc;
  --hero-accent: #6fa6ff;
  --hero-warm: #a28bff;
  --hero-card: #1b2547;
  --hero-card-hover: #232f57;
  --hero-part: #18223f;
  --hero-part-line: #3a4a78;

  /* —— 大圆角 / 柔和阴影 —— */
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-pop: 0 20px 48px rgba(6, 10, 24, 0.55);
}

/* 深色毛玻璃卡片 */
html[data-template="starry"] .clock-card,
html[data-template="starry"] .home-tool,
html[data-template="starry"] .zone-cell,
html[data-template="starry"] .geo-pill,
html[data-template="starry"] .chip,
html[data-template="starry"] .conv-side {
  background: rgba(22, 29, 49, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(56, 68, 100, 0.8);
}
html[data-template="starry"] .clock-card:hover,
html[data-template="starry"] .home-tool:hover {
  background: rgba(29, 37, 64, 0.86);
  box-shadow: 0 14px 34px rgba(6, 10, 24, 0.5), 0 0 22px rgba(67, 136, 255, 0.12);
  transform: translateY(-3px);
}

/* 卡片 hover 上浮 + 星光汇聚（阴影带星蓝微光） */
html[data-template="starry"] .clock-card,
html[data-template="starry"] .home-tool,
html[data-template="starry"] .geo-pill,
html[data-template="starry"] .chip {
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}
html[data-template="starry"] .geo-pill:hover,
html[data-template="starry"] .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(6, 10, 24, 0.4), 0 0 16px rgba(67, 136, 255, 0.10);
}

/* —— 首页 hero 卡：深空蓝底，保持浅字，换星空强调 —— */
html[data-template="starry"] .hero-card {
  color: var(--hero-ink);
  box-shadow: 0 22px 56px rgba(4, 8, 20, 0.55);
}
html[data-template="starry"] .hero-card::before { opacity: 0.22; }
html[data-template="starry"] .hero-card::after {
  background: radial-gradient(closest-side, rgba(67, 136, 255, 0.14), transparent 70%),
              radial-gradient(closest-side at 80% 20%, rgba(162, 139, 255, 0.12), transparent 60%);
}
html[data-template="starry"] .hero-card h1 { color: #f2f6ff; }
html[data-template="starry"] .hero-tag { background: rgba(27, 37, 71, 0.6); color: #aab6d8; }
html[data-template="starry"] .hero-clock { color: #eaf0ff; text-shadow: 0 0 40px rgba(111, 166, 255, 0.35); }
html[data-template="starry"] .hero-card [data-part="s"] { color: #6fa6ff; }
html[data-template="starry"] .hero-card .hero-clock .ck-text { color: #eaf0ff; }
html[data-template="starry"] .hm-zone { color: #c9d4ec; }
html[data-template="starry"] .hm-note { color: #a7b6dc; }
html[data-template="starry"] .hero-track { color: #98a6c8; }
html[data-template="starry"] .hero-cities a { background: var(--hero-card); }
html[data-template="starry"] .hero-cities a:hover { background: var(--hero-card-hover); }
html[data-template="starry"] .hero-cities a:hover { border-color: #6fa6ff; box-shadow: 0 12px 24px rgba(6, 10, 24, 0.5), 0 0 18px rgba(67, 136, 255, 0.18); }
html[data-template="starry"] .hc-name { color: #eaf0ff; }
html[data-template="starry"] .hc-time { color: #8ab4ff; }
html[data-template="starry"] .hero-cities li[data-phase="night"] .hc-time { color: #b39dff; }
html[data-template="starry"] .ht-label { opacity: 0.9; color: #a7b6dc; }
html[data-template="starry"] .ht-now { background: rgba(67, 136, 255, 0.16); color: #a8c8ff; font-weight: 600; }
html[data-template="starry"] .ht-line {
  background: linear-gradient(90deg, #3a4a78 0%, #4a6fd0 25%, #7a6ff0 52%, #4a7fd8 75%, #3a4a78 100%);
}
html[data-template="starry"] .ht-cursor { border-color: #fff; background: #a28bff; box-shadow: 0 0 0 5px rgba(162, 139, 255, 0.2), 0 0 16px #8ab4ff; }
html[data-template="starry"] .ht-now { background: rgba(67, 136, 255, 0.14); color: #a8c8ff; }
html[data-template="starry"] .hero-dial .hd-tick { stroke: #3d4f7e; }
html[data-template="starry"] .hero-dial .hd-tick.is-hour { stroke: #6a8fd8; }
html[data-template="starry"] .hero-dial .hd-num { fill: #6a8fd8; }
html[data-template="starry"] .hero-dial .hd-hand { stroke: #dfe8ff; }
html[data-template="starry"] .hero-dial .hd-hand-s { stroke: #a28bff; }

/* —— 城市页 hero：深空蓝底浅字，换星空强调 —— */
html[data-template="starry"] .city-hero {
  color: var(--hero-ink);
  box-shadow: 0 22px 56px rgba(4, 8, 20, 0.55);
}
html[data-template="starry"] .city-hero h1 { color: #f2f6ff; }
html[data-template="starry"] .city-hero .panel {
  background: rgba(27, 37, 71, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(56, 68, 100, 0.8);
}
html[data-template="starry"] .city-time { color: #eaf0ff; text-shadow: 0 0 40px rgba(111, 166, 255, 0.35); }
html[data-template="starry"] .city-time .sec { color: #6fa6ff; }
html[data-template="starry"] .city-hero .badge { background: rgba(27, 37, 71, 0.6); color: #aab6d8; }
html[data-template="starry"] .city-hero .btn { background: rgba(27, 37, 71, 0.6); color: #eaf0ff; }
html[data-template="starry"] .city-hero .btn:hover { border-color: #6fa6ff; color: #8ab4ff; }
html[data-template="starry"] .city-hero .btn-primary { background: #4388ff; border-color: #4388ff; color: #fff; }
html[data-template="starry"] .city-hero .btn-primary:hover { background: #4388ff; color: #fff; }
html[data-template="starry"] .city-hero .arc-wrap svg path { stroke: #4a6fd0; }
html[data-template="starry"] .hero-wx-line { background: rgba(27, 37, 71, 0.6); }
html[data-template="starry"] .city-hero .overlap-bar { background: rgba(111, 166, 255, 0.12); }
html[data-template="starry"] .city-hero .overlap-bar i.on { background: rgba(111, 166, 255, 0.32); }
html[data-template="starry"] .city-hero .overlap-bar i.hot { background: #6fa6ff; }
html[data-template="starry"] .city-hero .fact { background: rgba(27, 37, 71, 0.6); }

/* —— 时区页 / diff 卡：深空蓝底浅字 —— */
html[data-template="starry"] .zone-hero h1 { color: #f2f6ff; }
html[data-template="starry"] .zone-hero .zone-offset { color: #eaf0ff; text-shadow: 0 0 40px rgba(111, 166, 255, 0.3); }

/* —— 钟面引擎（星海下深底亮针）—— */
html[data-template="starry"] .hero-card .ck-flip .fd,
html[data-template="starry"] .city-hero .ck-flip .fd {
  background: rgba(27, 37, 71, 0.78);
}
html[data-template="starry"] .hero-card .ck-flip .fd-mid { background: rgba(67, 136, 255, 0.18); }
html[data-template="starry"] .hero-card .ck-face .cf-rim,
html[data-template="starry"] .city-hero .ck-face .cf-rim,
html[data-template="starry"] .zone-hero .ck-face .cf-rim,
html[data-template="starry"] .diff-card .ck-face .cf-rim { fill: rgba(27, 37, 71, 0.7); }
html[data-template="starry"] .hero-card .ck-face .cf-tick,
html[data-template="starry"] .city-hero .ck-face .cf-tick,
html[data-template="starry"] .zone-hero .ck-face .cf-tick { stroke: #3d4f7e; opacity: 0.55; }
html[data-template="starry"] .hero-card .ck-face .cf-tick.is-major,
html[data-template="starry"] .city-hero .ck-face .cf-tick.is-major,
html[data-template="starry"] .zone-hero .ck-face .cf-tick.is-major { stroke: #6a8fd8; opacity: 0.85; }
html[data-template="starry"] .hero-card .ck-face .cf-hour,
html[data-template="starry"] .hero-card .ck-face .cf-min,
html[data-template="starry"] .city-hero .ck-face .cf-hour,
html[data-template="starry"] .city-hero .ck-face .cf-min,
html[data-template="starry"] .zone-hero .ck-face .cf-hour,
html[data-template="starry"] .zone-hero .ck-face .cf-min { stroke: #dfe8ff; }
html[data-template="starry"] .hero-card .ck-arc .ca-disc,
html[data-template="starry"] .city-hero .ck-arc .ca-disc,
html[data-template="starry"] .diff-card .ck-arc .ca-disc,
html[data-template="starry"] .zone-hero .ck-arc .ca-disc { fill: rgba(27, 37, 71, 0.7); }
html[data-template="starry"] .hero-card .ck-arc .ca-track,
html[data-template="starry"] .city-hero .ck-arc .ca-track,
html[data-template="starry"] .zone-hero .ck-arc .ca-track { stroke: #384464; }
html[data-template="starry"] .hero-card .ck-flip .ck-flip-sep,
html[data-template="starry"] .city-hero .ck-flip .ck-flip-sep,
html[data-template="starry"] .zone-hero .ck-flip .ck-flip-sep { color: #6a8fd8; }
html[data-template="starry"] .hero-card .ck-ring .cr-track { stroke: #384464; opacity: 0.6; }
html[data-template="starry"] .hero-card .ck-dot rect.off,
html[data-template="starry"] .city-hero .ck-dot rect.off { fill: #384464; opacity: 0.35; }
html[data-template="starry"] .hero-card .ck-flip .fd::after { background: #3a4a78; opacity: 0.7; }

/* 顶栏与按钮在星海下统一星空冷调 */
html[data-template="starry"] .topbar { border-bottom-color: var(--line); }
html[data-template="starry"] .btn-primary { background: #4388ff; border-color: #4388ff; color: #fff; }
html[data-template="starry"] .btn-primary:hover { background: #4388ff; border-color: #4388ff; color: #fff; }
html[data-template="starry"] .brand-mark { background: #4388ff; }
html[data-template="starry"] ::selection { background: #4388ff; color: #fff; }

/* —— 星海夜色动效：星光闪烁 + 流星划过 + 银河流动 —— */
.starry-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.starry-nebula {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(67, 136, 255, 0.10), transparent 55%),
              radial-gradient(ellipse at 80% 70%, rgba(162, 139, 255, 0.09), transparent 55%),
              radial-gradient(ellipse at 50% 45%, rgba(38, 58, 110, 0.16), transparent 65%);
  filter: blur(4px);
  animation: starry-nebula 22s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.starry-star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #dfe8ff;
  box-shadow: 0 0 4px #8ab4ff;
  opacity: 0.5;
  animation: starry-twinkle ease-in-out infinite;
  will-change: opacity;
}
.starry-star:nth-child(3n) { background: #b9c9ff; box-shadow: 0 0 5px #a28bff; }
.starry-meteor {
  position: absolute; top: -8%; left: -10%;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 232, 255, 0.85));
  filter: blur(0.4px);
  transform: rotate(28deg);
  opacity: 0;
  animation: starry-meteor 11s ease-in infinite;
  will-change: transform, opacity;
}
@keyframes starry-nebula {
  0% { opacity: 0.8; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1; transform: translate3d(-2%, 2%, 0) scale(1.06); }
}
@keyframes starry-twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}
@keyframes starry-meteor {
  0%, 72% { opacity: 0; transform: translate3d(0, 0, 0) rotate(28deg); }
  78% { opacity: 0.9; }
  88%, 100% { opacity: 0; transform: translate3d(72vw, 40vh, 0) rotate(28deg); }
}
@media (prefers-reduced-motion: reduce) {
  .starry-star { animation: none; opacity: 0.6; }
  .starry-meteor { animation: none; opacity: 0; }
  .starry-nebula { animation: none; }
  html[data-template="starry"] .clock-card,
  html[data-template="starry"] .home-tool { transition: none; }
}

/* ============================================================
   赛博流光模板（cyber，深色霓虹科技风）
   ============================================================ */
html[data-template="cyber"] {
  /* —— 基础令牌：深色基底 —— */
  --paper: #111118;
  --surface: #171720;
  --surface-2: #1e1e2a;
  --ink: #eef0f6;
  --muted: #b4bacb;
  --faint: #9298ac;
  --line: #2a2b38;
  --line-strong: #3d3f52;
  --accent: #22f0d0;
  --accent-soft: #14262a;
  --night: #7fe8e0;
  --night-soft: #152c2e;
  --gold: #ffd36b;
  --ok: #4fe0b0;

  --sky-sea: #0b0d13;
  --sky-line: #191b26;
  --sky-line-strong: #262938;
  --sky-land: #282a3a;
  --sky-night: rgba(0, 0, 0, 0.62);
  --sky-ember: #7fe8e0;
  --day-1: #13151f;
  --night-1: #0e1018;

  /* —— hero 卡：深黑底 · 霓虹青/洋粉强调 —— */
  --hero-bg: linear-gradient(150deg, #0e0f16 0%, #131522 50%, #1a1120 100%);
  --hero-line: #2d2e3e;
  --hero-ink: #eef2fb;
  --hero-muted: #b4bacb;
  --hero-accent: #22f0d0;
  --hero-warm: #ff3d8a;
  --hero-card: #1b1c27;
  --hero-card-hover: #232435;
  --hero-part: #181923;
  --hero-part-line: #333547;

  /* —— 小圆角 + 霓虹阴影 —— */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-pop: 0 18px 46px rgba(0, 0, 0, 0.6), 0 0 28px rgba(34, 240, 208, 0.08);
}

/* 半透明霓虹毛玻璃卡片 + 细发光描边 */
html[data-template="cyber"] .clock-card,
html[data-template="cyber"] .home-tool,
html[data-template="cyber"] .zone-cell,
html[data-template="cyber"] .geo-pill,
html[data-template="cyber"] .chip,
html[data-template="cyber"] .conv-side {
  background: rgba(23, 23, 32, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(61, 63, 82, 0.9);
}
html[data-template="cyber"] .clock-card:hover,
html[data-template="cyber"] .home-tool:hover {
  background: rgba(30, 30, 42, 0.88);
  border-color: rgba(34, 240, 208, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 22px rgba(34, 240, 208, 0.18);
  transform: translateY(-3px);
}
html[data-template="cyber"] .clock-card,
html[data-template="cyber"] .home-tool,
html[data-template="cyber"] .geo-pill,
html[data-template="cyber"] .chip {
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}
html[data-template="cyber"] .geo-pill:hover,
html[data-template="cyber"] .chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 61, 138, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 61, 138, 0.16);
}

/* —— 首页 hero 卡：深黑底 + 霓虹双色 —— */
html[data-template="cyber"] .hero-card {
  color: var(--hero-ink);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.6), 0 0 32px rgba(34, 240, 208, 0.06);
}
html[data-template="cyber"] .hero-card::before { opacity: 0.16; }
html[data-template="cyber"] .hero-card::after {
  background: radial-gradient(closest-side, rgba(34, 240, 208, 0.12), transparent 70%),
              radial-gradient(closest-side at 82% 18%, rgba(255, 61, 138, 0.12), transparent 60%);
}
html[data-template="cyber"] .hero-card h1 { color: #f2f5ff; }
html[data-template="cyber"] .hero-tag { background: rgba(27, 28, 39, 0.7); color: #a8b0c8; border-color: rgba(34, 240, 208, 0.28); }
html[data-template="cyber"] .hero-clock { color: #eef2fb; text-shadow: 0 0 34px rgba(34, 240, 208, 0.4), 0 0 12px rgba(34, 240, 208, 0.25); }
html[data-template="cyber"] .hero-card [data-part="s"] { color: #22f0d0; }
html[data-template="cyber"] .hero-card .hero-clock .ck-text { color: #eef2fb; }
html[data-template="cyber"] .hm-zone { color: #cdd4e8; }
html[data-template="cyber"] .hm-note { color: #b4bacb; }
html[data-template="cyber"] .hero-track { color: #9ba3ba; }
html[data-template="cyber"] .hero-cities a { background: var(--hero-card); }
html[data-template="cyber"] .hero-cities a:hover { background: var(--hero-card-hover); border-color: #22f0d0; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 240, 208, 0.2); }
html[data-template="cyber"] .hc-name { color: #eef2fb; }
html[data-template="cyber"] .hc-time { color: #4df3d8; }
html[data-template="cyber"] .hero-cities li[data-phase="night"] .hc-time { color: #ff6fa6; }
html[data-template="cyber"] .ht-label { opacity: 0.95; color: #b4bacb; }
html[data-template="cyber"] .ht-now { background: rgba(34, 240, 208, 0.14); color: #6cf5de; font-weight: 600; }
html[data-template="cyber"] .ht-line {
  background: linear-gradient(90deg, #333547 0%, #22f0d0 25%, #ff3d8a 52%, #22f0d0 75%, #333547 100%);
}
html[data-template="cyber"] .ht-cursor { border-color: #fff; background: #22f0d0; box-shadow: 0 0 0 5px rgba(34, 240, 208, 0.2), 0 0 18px #22f0d0; }
html[data-template="cyber"] .hero-dial .hd-tick { stroke: #3d3f52; }
html[data-template="cyber"] .hero-dial .hd-tick.is-hour { stroke: #3ee8c9; }
html[data-template="cyber"] .hero-dial .hd-num { fill: #3ee8c9; }
html[data-template="cyber"] .hero-dial .hd-hand { stroke: #e8ecf8; }
html[data-template="cyber"] .hero-dial .hd-hand-s { stroke: #ff3d8a; }

/* —— 城市页 hero：深黑底 + 霓虹双色 —— */
html[data-template="cyber"] .city-hero {
  color: var(--hero-ink);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.6), 0 0 32px rgba(34, 240, 208, 0.06);
}
html[data-template="cyber"] .city-hero h1 { color: #f2f5ff; }
html[data-template="cyber"] .city-hero .panel {
  background: rgba(27, 28, 39, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(61, 63, 82, 0.9);
}
html[data-template="cyber"] .city-time { color: #eef2fb; text-shadow: 0 0 34px rgba(34, 240, 208, 0.4), 0 0 12px rgba(34, 240, 208, 0.25); }
html[data-template="cyber"] .city-time .sec { color: #22f0d0; }
html[data-template="cyber"] .city-hero .badge { background: rgba(27, 28, 39, 0.7); color: #a8b0c8; }
html[data-template="cyber"] .city-hero .btn { background: rgba(27, 28, 39, 0.7); color: #eef2fb; }
html[data-template="cyber"] .city-hero .btn:hover { border-color: #22f0d0; color: #4df3d8; }
html[data-template="cyber"] .city-hero .btn-primary { background: #22f0d0; border-color: #22f0d0; color: #06201c; font-weight: 600; }
html[data-template="cyber"] .city-hero .btn-primary:hover { background: #22f0d0; border-color: #22f0d0; color: #06201c; box-shadow: 0 0 20px rgba(34, 240, 208, 0.4); }
html[data-template="cyber"] .city-hero .arc-wrap svg path { stroke: #22f0d0; }
html[data-template="cyber"] .hero-wx-line { background: rgba(27, 28, 39, 0.7); }
html[data-template="cyber"] .city-hero .overlap-bar { background: rgba(34, 240, 208, 0.1); }
html[data-template="cyber"] .city-hero .overlap-bar i.on { background: rgba(34, 240, 208, 0.3); }
html[data-template="cyber"] .city-hero .overlap-bar i.hot { background: #22f0d0; }
html[data-template="cyber"] .city-hero .fact { background: rgba(27, 28, 39, 0.7); }

/* —— 时区页 / diff 卡 —— */
html[data-template="cyber"] .zone-hero h1 { color: #f2f5ff; }
html[data-template="cyber"] .zone-hero .zone-offset { color: #eef2fb; text-shadow: 0 0 34px rgba(34, 240, 208, 0.35); }

/* —— 钟面引擎 —— */
html[data-template="cyber"] .hero-card .ck-flip .fd,
html[data-template="cyber"] .city-hero .ck-flip .fd {
  background: rgba(27, 28, 39, 0.82);
}
html[data-template="cyber"] .hero-card .ck-flip .fd-mid { background: rgba(34, 240, 208, 0.16); }
html[data-template="cyber"] .hero-card .ck-face .cf-rim,
html[data-template="cyber"] .city-hero .ck-face .cf-rim,
html[data-template="cyber"] .zone-hero .ck-face .cf-rim,
html[data-template="cyber"] .diff-card .ck-face .cf-rim { fill: rgba(27, 28, 39, 0.75); }
html[data-template="cyber"] .hero-card .ck-face .cf-tick,
html[data-template="cyber"] .city-hero .ck-face .cf-tick,
html[data-template="cyber"] .zone-hero .ck-face .cf-tick { stroke: #3d3f52; opacity: 0.55; }
html[data-template="cyber"] .hero-card .ck-face .cf-tick.is-major,
html[data-template="cyber"] .city-hero .ck-face .cf-tick.is-major,
html[data-template="cyber"] .zone-hero .ck-face .cf-tick.is-major { stroke: #3ee8c9; opacity: 0.85; }
html[data-template="cyber"] .hero-card .ck-face .cf-hour,
html[data-template="cyber"] .hero-card .ck-face .cf-min,
html[data-template="cyber"] .city-hero .ck-face .cf-hour,
html[data-template="cyber"] .city-hero .ck-face .cf-min,
html[data-template="cyber"] .zone-hero .ck-face .cf-hour,
html[data-template="cyber"] .zone-hero .ck-face .cf-min { stroke: #e8ecf8; }
html[data-template="cyber"] .hero-card .ck-arc .ca-disc,
html[data-template="cyber"] .city-hero .ck-arc .ca-disc,
html[data-template="cyber"] .diff-card .ck-arc .ca-disc,
html[data-template="cyber"] .zone-hero .ck-arc .ca-disc { fill: rgba(27, 28, 39, 0.75); }
html[data-template="cyber"] .hero-card .ck-arc .ca-track,
html[data-template="cyber"] .city-hero .ck-arc .ca-track,
html[data-template="cyber"] .zone-hero .ck-arc .ca-track { stroke: #2d2e3e; }
html[data-template="cyber"] .hero-card .ck-flip .ck-flip-sep,
html[data-template="cyber"] .city-hero .ck-flip .ck-flip-sep,
html[data-template="cyber"] .zone-hero .ck-flip .ck-flip-sep { color: #3ee8c9; }
html[data-template="cyber"] .hero-card .ck-ring .cr-track { stroke: #2d2e3e; opacity: 0.6; }
html[data-template="cyber"] .hero-card .ck-dot rect.off,
html[data-template="cyber"] .city-hero .ck-dot rect.off { fill: #2d2e3e; opacity: 0.35; }
html[data-template="cyber"] .hero-card .ck-flip .fd::after { background: #333547; opacity: 0.7; }

/* 顶栏与按钮 */
html[data-template="cyber"] .topbar { border-bottom-color: var(--line); }
html[data-template="cyber"] .btn-primary { background: #22f0d0; border-color: #22f0d0; color: #06201c; font-weight: 600; }
html[data-template="cyber"] .btn-primary:hover { background: #22f0d0; border-color: #22f0d0; color: #06201c; box-shadow: 0 0 18px rgba(34, 240, 208, 0.4); }
html[data-template="cyber"] .brand-mark { background: linear-gradient(135deg, #22f0d0, #ff3d8a); }
html[data-template="cyber"] ::selection { background: #22f0d0; color: #06201c; }

/* —— 赛博流光动效：网格底纹 + 液态流光边框 + 霓虹脉冲 —— */
.cyber-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cyber-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(34, 240, 208, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(34, 240, 208, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  opacity: 0.7;
}
.cyber-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 18% 22%, rgba(34, 240, 208, 0.10), transparent 52%),
              radial-gradient(ellipse at 82% 72%, rgba(255, 61, 138, 0.09), transparent 52%);
  filter: blur(3px);
  animation: cyber-breathe 9s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.cyber-streak {
  position: absolute; top: -14%; left: -25%;
  width: 46%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 240, 208, 0.65), transparent);
  filter: blur(0.4px);
  transform: rotate(-24deg);
  opacity: 0;
  animation: cyber-streak 12s ease-in infinite;
  will-change: transform, opacity;
}
@keyframes cyber-breathe {
  0% { opacity: 0.6; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1; transform: translate3d(1.5%, -1%, 0) scale(1.04); }
}
@keyframes cyber-streak {
  0%, 68% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  76% { opacity: 0.7; }
  90%, 100% { opacity: 0; transform: translate3d(150%, 90%, 0) rotate(-24deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cyber-grid { animation: none; }
  .cyber-glow { animation: none; opacity: 0.6; }
  .cyber-streak { animation: none; opacity: 0; }
  html[data-template="cyber"] .clock-card,
  html[data-template="cyber"] .home-tool { transition: none; }
}

/* =========================================================
   视觉模板 · 极简杂志（magazine）
   纸面书刊 / 思源宋体标题 / 超大字号对比 / 粗细分层 / 零阴影
   底色 #fcfcfb · 卡白 #ffffff · 墨 #222222 · 次级 #999999 · 暗红 #b84040
   ========================================================= */
html[data-template="magazine"] {
  /* —— 纸与墨 —— */
  --paper: #fcfcfb;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --ink: #222222;
  --muted: #6b6b66;
  --faint: #999999;
  --line: #e6e4dd;
  --line-strong: #c9c6bd;
  --accent: #b84040;
  --accent-soft: #f7eaea;
  --night: #5c5c58;
  --night-soft: #f0efea;
  --gold: #8c7a58;
  --ok: #4d6b58;

  /* —— 地图与昼夜 —— */
  --sky-sea: #f8f7f3;
  --sky-line: #e6e4dd;
  --sky-line-strong: #222222;
  --sky-land: #ded9cd;
  --sky-night: rgba(34, 34, 34, 0.12);
  --sky-ember: #b84040;
  --day-1: #ffffff;
  --night-1: #f2f1ec;

  /* —— hero 改成纸面：浅底深字 —— */
  --hero-bg: #fcfcfb;
  --hero-line: #222222;
  --hero-ink: #222222;
  --hero-muted: #999999;
  --hero-accent: #b84040;
  --hero-warm: #b84040;
  --hero-card: #ffffff;
  --hero-card-hover: #fcfcfb;
  --hero-part: #f7f6f2;
  --hero-part-line: #d8d5cb;

  /* —— 方角、无阴影：层次全靠线条与留白 —— */
  --radius: 0px;
  --radius-lg: 0px;
  --shadow-pop: none;

  --wrap: 1120px;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

/* 暗色：墨底纸字，保持同一套版式语言（不是换风格，只是反转纸墨） */
html[data-template="magazine"][data-theme="dark"] {
  --paper: #161615;
  --surface: #1e1e1c;
  --surface-2: #26251f;
  --ink: #f0efe9;
  --muted: #a8a69d;
  --faint: #85837a;
  --line: #35342f;
  --line-strong: #4d4b44;
  --accent: #d4695f;
  --accent-soft: #33211f;
  --night: #b9b6ab;
  --night-soft: #23221d;
  --gold: #c0aa80;
  --ok: #7fa88c;
  --sky-sea: #191917;
  --sky-line: #35342f;
  --sky-line-strong: #f0efe9;
  --sky-land: #3d3b34;
  --sky-night: rgba(0, 0, 0, 0.5);
  --sky-ember: #d4695f;
  --day-1: #1e1e1c;
  --night-1: #1a1a20;
  --hero-bg: #161615;
  --hero-line: #f0efe9;
  --hero-ink: #f0efe9;
  --hero-muted: #a8a69d;
  --hero-accent: #d4695f;
  --hero-warm: #d4695f;
  --hero-card: #1e1e1c;
  --hero-card-hover: #26251f;
  --hero-part: #26251f;
  --hero-part-line: #3d3b34;
}
@media (prefers-color-scheme: dark) {
  html[data-template="magazine"][data-theme="auto"] {
    --paper: #161615;
    --surface: #1e1e1c;
    --surface-2: #26251f;
    --ink: #f0efe9;
    --muted: #a8a69d;
    --faint: #85837a;
    --line: #35342f;
    --line-strong: #4d4b44;
    --accent: #d4695f;
    --accent-soft: #33211f;
    --night: #b9b6ab;
    --night-soft: #23221d;
    --gold: #c0aa80;
    --ok: #7fa88c;
    --sky-sea: #191917;
    --sky-line: #35342f;
    --sky-line-strong: #f0efe9;
    --sky-land: #3d3b34;
    --sky-night: rgba(0, 0, 0, 0.5);
    --sky-ember: #d4695f;
    --day-1: #1e1e1c;
    --night-1: #1a1a20;
    --hero-bg: #161615;
    --hero-line: #f0efe9;
    --hero-ink: #f0efe9;
    --hero-muted: #a8a69d;
    --hero-accent: #d4695f;
    --hero-warm: #d4695f;
    --hero-card: #1e1e1c;
    --hero-card-hover: #26251f;
    --hero-part: #26251f;
    --hero-part-line: #3d3b34;
  }
}

/* ---------------- 排版：宋体标题，Inter + 思源黑体正文 ---------------- */

html[data-template="magazine"] body { letter-spacing: 0.006em; }

html[data-template="magazine"] h1,
html[data-template="magazine"] h2,
html[data-template="magazine"] h3,
html[data-template="magazine"] .brand-cn,
html[data-template="magazine"] .cc-name,
html[data-template="magazine"] .geo-pill b {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.012em;
}

/* 数字统一用 Inter 表格数字，避免宋体的数字在仪表区显得松散 */
html[data-template="magazine"] .cc-time,
html[data-template="magazine"] .hero-clock,
html[data-template="magazine"] .city-time,
html[data-template="magazine"] .diff-big,
html[data-template="magazine"] .hc-time {
  font-family: "Inter", var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ---------------- 顶栏：极简文字导航 ---------------- */

html[data-template="magazine"] .topbar {
  background: var(--paper);
  backdrop-filter: none;
  border-bottom: 2px solid var(--ink);
  box-shadow: none;
}
html[data-template="magazine"] .topbar-inner { height: 68px; gap: 30px; }
html[data-template="magazine"] .brand-mark {
  width: 9px; height: 9px;
  border-radius: 0;
  box-shadow: none;
  background: var(--accent);
}
html[data-template="magazine"] .brand-cn { font-size: 22px; letter-spacing: 0.01em; }
html[data-template="magazine"] .brand-sub {
  font-family: var(--font-serif);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
}
html[data-template="magazine"] .nav { gap: 24px; font-size: 13px; }
html[data-template="magazine"] .nav a { border-bottom-width: 2px; }
html[data-template="magazine"] .nav a:hover { color: var(--accent); }
html[data-template="magazine"] .site-search {
  border-radius: 0;
  border-color: var(--line-strong);
  background: var(--surface);
}
html[data-template="magazine"] .site-search:focus-within {
  border-color: var(--ink);
  box-shadow: none;
}

/* ---------------- 首页 hero：纸面 + 两行超大标题 ---------------- */

html[data-template="magazine"] .hero-card::before,
html[data-template="magazine"] .hero-card::after,
html[data-template="magazine"] .city-hero::before {
  content: none;
}
html[data-template="magazine"] .hero-mast { padding-block: 0; }
html[data-template="magazine"] .hero-card {
  padding: 40px 0 34px;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}
html[data-template="magazine"] .hero-card h1 {
  margin-top: 20px;
  max-width: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
html[data-template="magazine"] .hero-card h1 span { display: block; }
html[data-template="magazine"] .hero-card h1 span + span { color: var(--muted); }

html[data-template="magazine"] .hero-tag {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html[data-template="magazine"] .hero-dot {
  width: 5px; height: 5px;
  border-radius: 0;
  box-shadow: none;
  background: var(--accent);
}

/* 大号数字：墨色，去掉荧光 */
html[data-template="magazine"] .hero-clock { color: var(--ink); font-weight: 500; }
html[data-template="magazine"] .hero-card [data-part="s"] { color: var(--faint); }
html[data-template="magazine"] .hero-card .hero-clock .ck-text { color: var(--ink); }

/* 表盘 */
html[data-template="magazine"] .hd-ring { stroke: var(--line-strong); opacity: 1; }
html[data-template="magazine"] .hd-tick { stroke: var(--faint); stroke-width: 0.9; opacity: 0.8; }
html[data-template="magazine"] .hd-tick.is-hour { stroke: var(--ink); stroke-width: 1.1; opacity: 0.9; }
html[data-template="magazine"] .hd-num { fill: var(--faint); font-family: "Inter", var(--font-mono); opacity: 0.9; }
html[data-template="magazine"] .hd-hand { stroke: var(--ink); }
html[data-template="magazine"] .hd-hand-h { stroke-width: 2.6; }
html[data-template="magazine"] .hd-hand-m { stroke-width: 1.6; }
html[data-template="magazine"] .hd-hand-s { stroke: var(--accent); stroke-width: 0.9; }
html[data-template="magazine"] .hd-pin { fill: var(--accent); }

/* 24 小时进度条 */
html[data-template="magazine"] .hero-track .ht-label { color: var(--faint); font-size: 10px; letter-spacing: 0.14em; }
html[data-template="magazine"] .ht-line { background: var(--line); }
html[data-template="magazine"] .ht-cursor {
  border-color: var(--paper);
  background: var(--ink);
  box-shadow: none;
}
html[data-template="magazine"] .ht-now { background: var(--ink); color: var(--paper); }

html[data-template="magazine"] .hero-meta .hm-row { color: var(--muted); font-size: 12.5px; }
html[data-template="magazine"] .hm-note strong { color: var(--ink); font-weight: 600; }

/* 城市小卡：方角、细线、hover 只变文字 */
html[data-template="magazine"] .hero-cities {
  gap: 0;
  padding-top: 0;
  border-top: 1px solid var(--line);
}
html[data-template="magazine"] .hero-cities li { min-width: 104px; }
html[data-template="magazine"] .hero-cities a {
  padding: 12px 14px 11px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
html[data-template="magazine"] .hero-cities a:hover {
  transform: none;
  border-color: var(--line);
  background: var(--surface-2);
  box-shadow: none;
}
html[data-template="magazine"] .hc-name {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}
html[data-template="magazine"] .hc-name::before {
  width: 4px; height: 4px;
  border-radius: 0;
  box-shadow: none;
  background: var(--accent);
}
html[data-template="magazine"] .hero-cities li[data-phase="day"] .hc-name::before,
html[data-template="magazine"] .hero-cities li[data-phase="night"] .hc-name::before {
  box-shadow: none;
  background: var(--faint);
}
html[data-template="magazine"] .hero-cities li[data-phase="day"] .hc-name::before { background: var(--accent); }
html[data-template="magazine"] .hc-time { color: var(--ink); font-size: 15px; }
html[data-template="magazine"] .hero-cities li[data-phase="night"] .hc-time { color: var(--muted); }
html[data-template="magazine"] .hero-cities a:hover .hc-name { color: var(--accent); }

html[data-template="magazine"] .hero-lead {
  margin-top: 18px;
  padding-top: 0;
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* ---------------- 城市页：超大主标题 + 竖排英文 + 粗分割线 ---------------- */

html[data-template="magazine"] .crumbs {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 16px 0 0;
}

html[data-template="magazine"] .city-hero {
  margin-top: 0;
  padding: 28px 0 30px;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  gap: 52px;
}

/* 主标题两栏：超大宋体在左，英文竖排在右（杂志刊头） */
html[data-template="magazine"] .city-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
}
html[data-template="magazine"] .city-title h1 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
html[data-template="magazine"] .city-title .en {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 4px 0 0 12px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

html[data-template="magazine"] .city-sub {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
html[data-template="magazine"] .city-sub .quiet-link { border-bottom-color: var(--line-strong); }

html[data-template="magazine"] .city-time { color: var(--ink); font-weight: 500; }
html[data-template="magazine"] .city-time .sec { color: var(--faint); }
html[data-template="magazine"] .city-date { color: var(--muted); font-size: 12.5px; }
html[data-template="magazine"] .city-date strong { color: var(--ink); font-weight: 600; }

/* 四枚信息卡：错落对齐，不做严格均分 */
html[data-template="magazine"] .badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 28px;
  margin-top: 22px;
  padding-top: 0;
}
html[data-template="magazine"] .city-hero .badge {
  padding: 12px 0 10px;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  min-width: 104px;
}
html[data-template="magazine"] .city-hero .badge b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
html[data-template="magazine"] .city-hero .badge.is-dst {
  border-top-color: var(--accent);
  color: var(--accent);
}
html[data-template="magazine"] .city-hero .badge .dot {
  width: 4px; height: 4px;
  border-radius: 0;
  background: var(--accent);
}
/* 第二、第四枚下移，形成刊物的错落栏位 */
html[data-template="magazine"] .city-hero .badge:nth-child(even) { margin-top: 12px; }
html[data-template="magazine"] .city-hero .badge:nth-child(3) { margin-top: 4px; }

html[data-template="magazine"] .city-hero .btn {
  border-radius: 0;
  border-color: var(--line-strong);
  color: var(--muted);
}
html[data-template="magazine"] .city-hero .btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
html[data-template="magazine"] .city-hero .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
html[data-template="magazine"] .city-hero .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* hero 右栏面板：只留一条竖线分隔，不要卡片感 */
html[data-template="magazine"] .city-hero .panel {
  padding: 0 0 0 28px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
}
html[data-template="magazine"] .city-hero .panel-head {
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
html[data-template="magazine"] .city-hero .panel-head h2,
html[data-template="magazine"] .city-hero .panel-head h3 {
  color: var(--ink);
  font-size: 15px;
}
html[data-template="magazine"] .city-hero .panel-head .meta { color: var(--faint); }
html[data-template="magazine"] .city-hero .diff-big { color: var(--ink); }
html[data-template="magazine"] .city-hero .diff-sub { color: var(--muted); }
html[data-template="magazine"] .city-hero .overlap-bar { background: var(--surface-2); }
html[data-template="magazine"] .city-hero .overlap-bar i.on { background: rgba(34, 34, 34, 0.16); }
html[data-template="magazine"] .city-hero .overlap-bar i.hot { background: var(--accent); }
html[data-template="magazine"] .city-hero .arc-wrap svg line { stroke: var(--line); }
html[data-template="magazine"] .city-hero .arc-wrap svg path { stroke: var(--line-strong); }
/* 第二段是「已走过」的实线弧，用暗红标出太阳轨迹，透明度压低不抢标题 */
html[data-template="magazine"] .city-hero .arc-wrap svg path:nth-of-type(2) {
  stroke: var(--accent);
  opacity: 0.5;
}
html[data-template="magazine"] .city-hero .arc-wrap svg g[data-arc-sun] circle { fill: var(--accent); }
html[data-template="magazine"] .city-hero .arc-times,
html[data-template="magazine"] .city-hero .arc-now { color: var(--faint); }
html[data-template="magazine"] .city-hero .arc-times b { color: var(--ink); }
html[data-template="magazine"] .city-hero .fact { background: var(--surface-2); }
html[data-template="magazine"] .city-hero .fact dt { color: var(--faint); }
html[data-template="magazine"] .city-hero .fact dd { color: var(--ink); }
html[data-template="magazine"] .city-hero .fact dd a { color: var(--accent); }
html[data-template="magazine"] .city-hero .fact dd a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------------- 板块标题：大号粗体 + 粗横线 ---------------- */

html[data-template="magazine"] .section-head {
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  align-items: baseline;
}
html[data-template="magazine"] .section-head h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
html[data-template="magazine"] .section-head .meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

html[data-template="magazine"] .panel-head {
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  margin-bottom: 16px;
  align-items: baseline;
}
html[data-template="magazine"] .panel-head h2,
html[data-template="magazine"] .panel-head h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
html[data-template="magazine"] .panel-head .meta {
  font-family: "Inter", var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------------- 卡片体系：方角、细线、零阴影 ---------------- */

html[data-template="magazine"] .panel {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 22px 22px 20px;
  box-shadow: none;
}

html[data-template="magazine"] .clock-card {
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}
html[data-template="magazine"] .clock-card:hover {
  transform: none;
  background: var(--surface);
  border-color: var(--line);
  border-top-color: var(--accent);
  box-shadow: none;
}
html[data-template="magazine"] .clock-card:hover .cc-name,
html[data-template="magazine"] .clock-card:hover .cc-name span { color: var(--accent); }
html[data-template="magazine"] .cc-name { font-size: 16px; font-weight: 700; color: var(--ink); }
html[data-template="magazine"] .cc-name span { font-family: var(--font-sans); font-size: 11.5px; color: var(--faint); }
html[data-template="magazine"] .cc-time { color: var(--ink); font-size: 31px; font-weight: 500; }
html[data-template="magazine"] .cc-time .sec { color: var(--faint); }
html[data-template="magazine"] .cc-top { color: var(--muted); font-size: 11.5px; }
html[data-template="magazine"] .cc-top .flag-txt { color: var(--faint); }
html[data-template="magazine"] .cc-meta { color: var(--faint); font-size: 11px; }
html[data-template="magazine"] .cc-meta .day { border-radius: 0; background: var(--accent); }
html[data-template="magazine"] .cc-meta .night { border-radius: 0; background: var(--night); }

html[data-template="magazine"] .home-tool {
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: none;
}
html[data-template="magazine"] .home-tool:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
  border-top-color: var(--accent);
}
html[data-template="magazine"] .home-tool:hover .ht-title { color: var(--accent); }
html[data-template="magazine"] .home-tool:hover .ht-icon {
  background: none;
  color: var(--accent);
}

html[data-template="magazine"] .geo-pill {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
html[data-template="magazine"] .geo-pill:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--ink);
  background: var(--surface);
}
html[data-template="magazine"] .geo-pill:hover b { color: var(--accent); }
html[data-template="magazine"] .geo-pill b { color: var(--ink); }

html[data-template="magazine"] .chip {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
html[data-template="magazine"] .chip:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--ink);
}
html[data-template="magazine"] .chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* 时区带：细密网格，像报纸的表格栏 */
html[data-template="magazine"] .zone-strip {
  border-radius: 0;
  border-color: var(--line-strong);
  background: var(--surface);
}
html[data-template="magazine"] .zone-cell {
  border-right-color: var(--line);
  border-bottom-color: var(--line);
  color: var(--faint);
}
html[data-template="magazine"] .zone-cell:hover { background: var(--surface-2); }
html[data-template="magazine"] .zone-cell b { color: var(--ink); font-family: "Inter", var(--font-mono); }

/* 按钮：方角细线，主按钮纯墨 */
html[data-template="magazine"] .btn {
  border-radius: 0;
  border-color: var(--line-strong);
  color: var(--muted);
}
html[data-template="magazine"] .btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
html[data-template="magazine"] .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
html[data-template="magazine"] .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* 页脚：一条粗线收口 */
html[data-template="magazine"] .footer,
html[data-template="magazine"] footer {
  border-top: 2px solid var(--ink);
  background: var(--paper);
}

/* ---------------- 时区详情页 hero：同样纸面化 ---------------- */

html[data-template="magazine"] .zone-hero::before { content: none; }
html[data-template="magazine"] .zone-hero {
  margin-top: 0;
  padding: 28px 0 30px;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}
html[data-template="magazine"] .zone-hero h1 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.025em;
}
html[data-template="magazine"] .zone-hero h2 { color: var(--ink); font-family: var(--font-serif); }
html[data-template="magazine"] .zone-hero .sub { color: var(--faint); font-size: 12.5px; letter-spacing: 0.03em; }
html[data-template="magazine"] .zone-hero .zone-offset {
  color: var(--ink);
  text-shadow: none;
  font-weight: 500;
}
html[data-template="magazine"] .zone-hero .zsec { color: var(--faint); }
html[data-template="magazine"] .zone-hero .zone-offset small { color: var(--faint); }
html[data-template="magazine"] .zone-hero .badge {
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  color: var(--muted);
  padding: 10px 0 8px;
}
html[data-template="magazine"] .zone-hero .badge b { color: var(--ink); font-family: var(--font-serif); }
html[data-template="magazine"] .zone-hero .chip {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}
html[data-template="magazine"] .zone-hero .chip:hover { border-color: var(--ink); color: var(--accent); }
html[data-template="magazine"] .zone-hero .chip small { color: var(--faint); }

/* 深色区里的钟面（现在已是纸面，重设颜色） */
html[data-template="magazine"] .zone-hero .ck-flip .fd {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
html[data-template="magazine"] .zone-hero .ck-flip .fd-flap { background: var(--surface-2); }
html[data-template="magazine"] .zone-hero .ck-flip .ck-flip-sep { color: var(--faint); }
html[data-template="magazine"] .zone-hero .ck-face .cf-rim { fill: var(--surface-2); stroke: var(--line-strong); }
html[data-template="magazine"] .zone-hero .ck-face .cf-tick { stroke: var(--faint); opacity: 0.6; }
html[data-template="magazine"] .zone-hero .ck-face .cf-tick.is-major { stroke: var(--ink); opacity: 0.85; }
html[data-template="magazine"] .zone-hero .ck-face .cf-hour,
html[data-template="magazine"] .zone-hero .ck-face .cf-min { stroke: var(--ink); }

/* hero 内的翻页钟 / 数字钟同步纸面 */
html[data-template="magazine"] .hero-card .ck-flip .fd {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
html[data-template="magazine"] .hero-card .ck-flip .fd-flap { background: var(--surface-2); }
html[data-template="magazine"] .city-hero .ck-flip .fd {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
html[data-template="magazine"] .city-hero .ck-flip .fd-flap { background: var(--surface-2); }

/* ---------------- 表格与列表 ---------------- */

html[data-template="magazine"] .table-wrap {
  border-radius: 0;
  border-color: var(--line-strong);
}
html[data-template="magazine"] .table-wrap thead th {
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
}
html[data-template="magazine"] .table-wrap tbody tr:hover { background: var(--surface-2); }

html[data-template="magazine"] .hub-card {
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  box-shadow: none;
}
html[data-template="magazine"] .hub-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
  border-top-color: var(--accent);
}
html[data-template="magazine"] .hub-card:hover .hub-icon {
  background: none;
  color: var(--accent);
}
html[data-template="magazine"] .hub-icon { border-radius: 0; background: var(--surface-2); }

html[data-template="magazine"] .tool-card {
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}
html[data-template="magazine"] .tool-card h3 { font-family: var(--font-serif); font-weight: 700; }

html[data-template="magazine"] .empty {
  border-radius: 0;
  border-style: solid;
  border-color: var(--line-strong);
}
html[data-template="magazine"] .dst-flag { border-radius: 0; }

/* 搜素/表单控件统一方角 */
html[data-template="magazine"] .site-search input,
html[data-template="magazine"] .input,
html[data-template="magazine"] .select {
  border-radius: 0;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  html[data-template="magazine"] {
    --wrap: 100%;
  }
  html[data-template="magazine"] .city-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 24px 0 26px;
  }
  html[data-template="magazine"] .city-hero .panel {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  html[data-template="magazine"] .city-title h1 { font-size: clamp(28px, 6vw, 40px); }
  html[data-template="magazine"] .city-title .en {
    writing-mode: horizontal-tb;
    padding: 0;
    border-left: 0;
    letter-spacing: 0.16em;
    font-size: 11px;
  }
  html[data-template="magazine"] .hero-card { padding: 30px 0 26px; }
  html[data-template="magazine"] .hero-card h1 { font-size: clamp(26px, 5.6vw, 38px); }
  html[data-template="magazine"] .section-head h2 { font-size: 21px; }
  html[data-template="magazine"] .zone-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 640px) {
  html[data-template="magazine"] .topbar-inner { height: 60px; }
  html[data-template="magazine"] .city-hero .badge-row { gap: 0 18px; }
  html[data-template="magazine"] .city-hero .badge { min-width: 88px; font-size: 11.5px; }
  html[data-template="magazine"] .city-hero .badge b { font-size: 15px; }
  /* 小屏不做错落，避免阅读节奏被打断 */
  html[data-template="magazine"] .city-hero .badge:nth-child(even),
  html[data-template="magazine"] .city-hero .badge:nth-child(3) { margin-top: 0; }
  html[data-template="magazine"] .city-title { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html[data-template="magazine"] .city-title h1 { font-size: clamp(24px, 7vw, 30px); line-height: 1.15; }
  html[data-template="magazine"] .hero-card h1 { font-size: clamp(23px, 7vw, 30px); }
  html[data-template="magazine"] .hero-card { padding: 24px 0 22px; }
  html[data-template="magazine"] .city-time { font-size: clamp(38px, 13vw, 56px); }
  html[data-template="magazine"] .dc-time,
  html[data-template="magazine"] .cc-time { font-size: 27px; }
  html[data-template="magazine"] .panel { padding: 18px 16px 16px; }
  html[data-template="magazine"] .section-head { padding-top: 16px; margin-bottom: 20px; }
  html[data-template="magazine"] .section-head h2 { font-size: 19px; }
}

/* ---------------- 补丁：去掉 accent 光晕装饰，修深色残留组件 ---------------- */

/* 工具页 hero 原本有一层 accent 径向光晕；换成暗红后整片发红，杂志风也不需要它 */
html[data-template="magazine"] .tools-hero {
  padding-block: 40px 30px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
html[data-template="magazine"] .tools-kicker {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
}
html[data-template="magazine"] .tools-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.028em;
}
html[data-template="magazine"] .tools-lead { color: var(--muted); font-size: 14px; line-height: 1.8; }
html[data-template="magazine"] .tools-nav { border-left: 2px solid var(--ink); }
html[data-template="magazine"] .tool-link { border-radius: 0; }
html[data-template="magazine"] .tool-link:hover { background: var(--surface-2); color: var(--ink); }
html[data-template="magazine"] .tool-link.is-active {
  border-left-color: var(--accent);
  background: none;
  color: var(--ink);
}
html[data-template="magazine"] .tool-link.is-active .tl-num { color: var(--accent); }
html[data-template="magazine"] .tool-link .tl-num {
  font-family: "Inter", var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
html[data-template="magazine"] .tool-link b { font-family: var(--font-serif); font-weight: 700; }

/* 时差对比卡片：原本是深色卡，纸面化后必须把白字改回墨色 */
html[data-template="magazine"] .diff-card::before { content: none; }
html[data-template="magazine"] .diff-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
}
html[data-template="magazine"] .diff-card:hover {
  border-color: var(--line);
  border-top-color: var(--accent);
}
html[data-template="magazine"] .diff-card .dc-top { color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em; }
html[data-template="magazine"] .diff-card .dc-name { color: var(--ink); font-family: var(--font-serif); }
html[data-template="magazine"] .diff-card .dc-name span { color: var(--faint); font-family: var(--font-sans); }
html[data-template="magazine"] .diff-card .dc-time { color: var(--ink); font-weight: 500; }
html[data-template="magazine"] .diff-card .dc-time .sec { color: var(--accent); }
html[data-template="magazine"] .diff-card .dc-date { color: var(--muted); }
html[data-template="magazine"] .diff-card .dst-flag { color: var(--accent); border-color: var(--accent); }
html[data-template="magazine"] .diff-card .ck-face .cf-rim { fill: var(--surface-2); stroke: var(--line-strong); }
html[data-template="magazine"] .diff-card .ck-face .cf-tick { stroke: var(--faint); opacity: 0.6; }
html[data-template="magazine"] .diff-card .ck-face .cf-tick.is-major { stroke: var(--ink); opacity: 0.85; }
html[data-template="magazine"] .diff-card .ck-face .cf-hour,
html[data-template="magazine"] .diff-card .ck-face .cf-min { stroke: var(--ink); }
html[data-template="magazine"] .diff-card .ck-face .cf-sec { stroke: var(--accent); }
html[data-template="magazine"] .diff-card .ck-face .cf-hub { fill: var(--accent); }
html[data-template="magazine"] .diff-card .ck-flip .fd { background: var(--surface-2); border-color: transparent; color: var(--ink); }
html[data-template="magazine"] .diff-card .ck-flip .fd-flap { background: var(--surface-2); }
html[data-template="magazine"] .diff-card .ck-flip .ck-flip-sep { color: var(--faint); }

html[data-template="magazine"] .diff-pair .diff-mid {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}
html[data-template="magazine"] .diff-pair .dm-value { color: var(--accent); font-family: var(--font-serif); }
html[data-template="magazine"] .diff-pair .dm-note { color: var(--muted); }

/* 时区偏移 badge 对齐：横线等长，视觉更利落 */
html[data-template="magazine"] .zone-hero .badge {
  min-width: 128px;
  margin-right: 20px;
}

/* ---------------- 移动端修正：模板规则优先级高于媒体查询，需重新声明布局值 ---------------- */

/* 980 以下顶栏改成「品牌+操作」一行、导航独占一行；模板里的固定高度会把它压死 */
@media (max-width: 980px) {
  html[data-template="magazine"] .topbar-inner {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    row-gap: 0;
    gap: 8px 16px;
    padding-block: 8px;
  }
  html[data-template="magazine"] .nav {
    order: 5;
    width: 100%;
    gap: 20px;
    padding: 10px 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 13px;
  }
  html[data-template="magazine"] .nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 760px) {
  html[data-template="magazine"] .topbar-inner { gap: 8px 12px; }
  html[data-template="magazine"] .nav { gap: 16px; padding: 8px 0 2px; }
  html[data-template="magazine"] .brand-sub { display: none; }
  html[data-template="magazine"] .brand-cn { font-size: 19px; }
  /* 城市页标题在窄屏回到可读字号，避免「查询」被拆成单字 */
  html[data-template="magazine"] .city-title h1 {
    font-size: clamp(22px, 5.6vw, 30px);
    line-height: 1.3;
    text-wrap: balance;
  }
  html[data-template="magazine"] .city-title .en { font-size: 11px; }
  html[data-template="magazine"] .tools-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  html[data-template="magazine"] .tools-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-left: 0;
    border-top: 2px solid var(--ink);
    padding-top: 10px;
    scrollbar-width: none;
  }
  html[data-template="magazine"] .tools-nav::-webkit-scrollbar { display: none; }
  html[data-template="magazine"] .tool-link { flex: 0 0 auto; white-space: nowrap; }
}

/* 640 断点里原来的 height: 60px 会把换行后的两行压扁，改成随内容高 */
@media (max-width: 640px) {
  html[data-template="magazine"] .topbar-inner { height: auto; min-height: 54px; }
  html[data-template="magazine"] .hero-cities { gap: 0; padding-top: 0; }
  html[data-template="magazine"] .hero-cities li { min-width: 0; flex: 1 1 calc(50% - 1px); }
}

/* 模块卡与胶囊标签：跟整体一样走方角，胶囊不再做成药丸 */
html[data-template="magazine"] .mod {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
html[data-template="magazine"] .mod:hover {
  border-color: var(--line);
  box-shadow: none;
}
html[data-template="magazine"] .mod-head {
  border-bottom: 2px solid var(--ink);
}
html[data-template="magazine"] .mod-head h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
}
html[data-template="magazine"] .di-chip {
  border-radius: 0;
  padding: 1px 7px;
  letter-spacing: 0.02em;
}
html[data-template="magazine"] .di-chip.is-diff {
  background: var(--accent-soft);
}
