/* ============================================================
   24小时 · 0024.net 全站样式
   设计基调：唯美温馨 · 暖色渐变 · 柔和卡片 · 响应式
   断点：320 / 390 / 768 / 1024 / 1440
   ============================================================ */

/* ---------- CSS 变量（主题令牌） ---------- */
:root {
  /* 暖色背景 */
  --bg: #FDF9F3;
  --bg-soft: #FAF3E9;
  --bg-card: #FFFFFF;
  --bg-sunken: #F6EDE0;

  /* 文字 */
  --text: #43342B;
  --text-strong: #2E2018;
  --text-mute: #8A7566;
  --text-faint: #B5A394;

  /* 品牌暖色 */
  --brand: #E86A33;          /* 暖橙 */
  --brand-deep: #C94F1D;
  --brand-soft: #FCE9DC;
  --accent: #E9A13B;         /* 琥珀 */
  --accent-soft: #FBEED7;
  --rose: #D95D6E;           /* 玫瑰 */
  --rose-soft: #FBE3E6;

  /* 日夜 */
  --day: #F7A94C;
  --night: #5B6BB8;
  --night-bg: #E8EAF7;

  /* 边框与阴影 */
  --border: #F0E2D3;
  --border-strong: #E5CFB9;
  --shadow-sm: 0 1px 2px rgba(120, 80, 40, .06);
  --shadow-md: 0 4px 14px rgba(120, 80, 40, .10);
  --shadow-lg: 0 10px 28px rgba(120, 80, 40, .14);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* 布局 */
  --container: 1180px;
  --gap: 18px;

  /* 动效 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --speed: .22s;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 420px at 12% -6%, #FFF3E2 0%, transparent 55%),
    radial-gradient(1000px 380px at 92% -10%, #FDE8E2 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { vertical-align: middle; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 .9em; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--text-strong); line-height: 1.3; }
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.05rem; }
time { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* 可访问性：焦点可见 */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--brand-soft); color: var(--text-strong); }

/* 跳过导航 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-deep);
  color: #fff;
  padding: .6em 1em;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- 布局容器 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.page-main {
  min-height: calc(100vh - 240px);
  padding: 26px 0 46px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 243, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
}
.brand:hover { color: var(--brand-deep); }
.brand-icon {
  display: inline-flex;
  filter: drop-shadow(0 3px 6px rgba(232, 106, 51, .35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.25rem; letter-spacing: .02em; }
.brand-text small { font-size: .72rem; color: var(--text-mute); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-mute);
  font-size: .95rem;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.main-nav a:hover { background: var(--bg-sunken); color: var(--text-strong); }
.main-nav a.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px 8px;
  color: var(--text);
  cursor: pointer;
  line-height: 0;
}
.nav-toggle:hover { background: var(--bg-sunken); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: var(--bg-sunken);
  color: var(--text-strong);
  box-shadow: none;
}
.btn-secondary:hover { color: var(--text-strong); background: var(--border); }

/* ---------- 首页 Hero：北京时间主卡 ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 34px 0 10px;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: .15em;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 45%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-deep);
}
.hero-sub { color: var(--text-mute); font-size: 1.02rem; margin-bottom: 26px; }

.clock-hero {
  position: relative;
  display: inline-block;
  min-width: min(560px, 92vw);
  padding: 34px 44px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.clock-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--rose), var(--brand));
  background-size: 300% 100%;
  animation: shimmer 10s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

.clock-hero .clock-loc {
  font-size: .95rem;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.clock-hero .clock-time {
  display: block;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-strong);
  letter-spacing: .01em;
}
.clock-hero .clock-time .sec { font-size: .45em; color: var(--brand); font-weight: 600; }
.clock-hero .clock-date { font-size: 1.05rem; color: var(--text-mute); margin-top: 4px; }
.clock-hero .clock-meta,
.clock-card .clock-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 16px;
  min-height: 28px;
}
.clock-hero .clock-meta .chip,
.clock-card .clock-meta .chip {
  margin-bottom: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
  color: var(--text);
  font-size: .82rem;
  line-height: 1.4;
}
.chip-dst { background: var(--rose-soft); color: #A63A49; }
.chip-utc { background: var(--accent-soft); color: #9A6A14; }
.chip-diff { background: var(--brand-soft); color: var(--brand-deep); }

/* ---------- 24 小时时间轴 ---------- */
.timeline-wrap { margin: 30px auto 8px; max-width: 900px; }
.timeline-title {
  font-size: .85rem;
  color: var(--text-mute);
  text-align: left;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  height: 34px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #F4ECDF, #EDE0CE);
}
.timeline-hour {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: .62rem;
  color: var(--text-mute);
  padding-bottom: 2px;
  border-left: 1px solid rgba(120, 80, 40, .10);
}
.timeline-hour.is-night { background: rgba(91, 107, 184, .28); color: #4A558F; }
.timeline-hour.is-dawn { background: rgba(247, 169, 76, .18); }
.timeline-hour.is-day { background: rgba(247, 169, 76, .38); }
.timeline-hour.is-dusk { background: rgba(217, 93, 110, .22); }
.timeline-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(232, 106, 51, .8);
  z-index: 2;
}
.timeline-now::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  font-size: .76rem;
  color: var(--text-mute);
}
.timeline-legend span { display: inline-flex; align-items: center; gap: 5px; }
.timeline-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

/* ---------- 区块标题 ---------- */
.section { margin-top: 44px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 { display: flex; align-items: center; gap: 8px; }
.section-head h2::before {
  content: "";
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.section-more { font-size: .88rem; white-space: nowrap; }

/* ---------- 城市卡片网格 ---------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.city-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.city-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  color: var(--text);
}
.city-card .cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.city-card strong { font-size: 1.02rem; color: var(--text-strong); }
.city-card .cc-en { color: var(--text-mute); font-size: .78rem; }
.city-card .cc-tz { color: var(--text-faint); font-size: .74rem; }
.city-card time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.city-card time .sec { font-size: .55em; color: var(--text-faint); }
.city-card .cc-date { font-size: .76rem; color: var(--text-mute); }
.city-card .cc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.city-card .cc-diff { font-size: .76rem; color: var(--brand-deep); background: var(--brand-soft); padding: 2px 8px; border-radius: var(--radius-pill); }

/* 日夜徽标 */
.badge-day, .badge-night {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: .82rem;
  flex: none;
}
.badge-day { background: var(--accent-soft); color: #9A6A14; }
.badge-night { background: var(--night-bg); color: var(--night); }
/* 无 JS 时默认展示白天徽标，JS 会按当地时间切换 */
.badge-night { display: none; }

/* ---------- 网址导航分类标题 ---------- */
.navi-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 12px;
  font-size: 1rem;
  color: var(--text-strong);
}
.navi-cat::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.navi-cat span {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
  color: var(--brand-deep);
  font-size: .88rem;
}

/* 特色（精选）城市卡 */
.city-card.featured {
  border-color: #F5C9A8;
  background: linear-gradient(180deg, #FFFBF5, var(--bg-card));
}

/* ---------- 时差速查控件 ---------- */
.diff-widget {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.diff-field label {
  display: block;
  font-size: .8rem;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.diff-field select {
  width: 100%;
  padding: 11px 34px 11px 14px;
  font-size: .98rem;
  font-family: inherit;
  color: var(--text-strong);
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A98E77' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.diff-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.diff-swap {
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--brand-deep);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform .3s var(--ease), background var(--speed) var(--ease);
}
.diff-swap:hover { background: var(--brand-soft); transform: rotate(180deg); }
.diff-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px 10px 2px;
  font-size: 1.05rem;
  color: var(--text);
  border-top: 1px dashed var(--border);
}
.diff-result strong { color: var(--brand-deep); font-size: 1.28rem; }
.diff-result .dr-sub { display: block; font-size: .85rem; color: var(--text-mute); margin-top: 2px; }

/* ---------- 网址导航 ---------- */
.navi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.navi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.navi-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); color: var(--text); }
.navi-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}
.navi-item span.navi-name { font-size: .92rem; color: var(--text-strong); }
.navi-item small.navi-desc { font-size: .72rem; color: var(--text-mute); }
.navi-item .navi-meta { display: flex; flex-direction: column; line-height: 1.3; }

/* ---------- 广告位 ---------- */
.ad-slot {
  position: relative;
  margin: 22px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ad-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: .68rem;
  color: var(--text-faint);
  letter-spacing: .05em;
}
.ad-placeholder {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background:
    repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, #FBF4EA 12px, #FBF4EA 24px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-mute);
  font-size: .88rem;
  text-align: center;
  padding: 14px;
}
.ad-placeholder p { margin: 0; }
.ad-placeholder .ad-tip { font-size: .74rem; color: var(--text-faint); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: .86rem;
  color: var(--text-mute);
  padding: 6px 0 16px;
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb span { color: var(--text-strong); }

/* ---------- 城市详情页 ---------- */
.city-hero {
  text-align: center;
  padding: 14px 0 6px;
}
.city-hero .city-en {
  color: var(--text-mute);
  font-size: .95rem;
  margin-bottom: 12px;
}
.city-hero .city-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
}
.clock-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: min(420px, 92vw);
  padding: 26px 36px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.clock-card .clock-loc { font-size: .9rem; color: var(--text-mute); }
.clock-card .clock-time {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-strong);
}
.clock-card .clock-time .sec { font-size: .45em; color: var(--brand); }
.clock-card .clock-date { color: var(--text-mute); }

.sub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 26px;
  text-align: left;
}
.sub-card {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.sub-card h3 { font-size: .9rem; color: var(--text-mute); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sub-card .sc-value { font-size: 1.2rem; font-weight: 600; color: var(--text-strong); }
.sub-card .sc-sub { font-size: .78rem; color: var(--text-mute); margin-top: 2px; }

.sun-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.sun-row .sun-item { text-align: center; }
.sun-row .sun-item b { display: block; font-size: 1.05rem; color: var(--text-strong); }
.sun-row .sun-item small { color: var(--text-mute); font-size: .74rem; }

/* ---------- 表格（城市信息） ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: .94rem;
  box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.info-table th { background: var(--bg-sunken); color: var(--text-strong); width: 150px; font-weight: 600; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* ---------- 列表页（cities / timezone） ---------- */
.page-title { text-align: center; margin-bottom: 8px; }
.page-desc { text-align: center; color: var(--text-mute); max-width: 720px; margin: 0 auto 22px; }

.search-box {
  max-width: 560px;
  margin: 0 auto 26px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 13px 20px 13px 46px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B5A394' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 16px center;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.search-empty { display: none; text-align: center; color: var(--text-mute); padding: 30px 0; }
.search-empty.show { display: block; }

.continent-block { margin-bottom: 34px; }
.continent-block > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.continent-block > h2 .cnt { font-size: .8rem; color: var(--text-faint); font-weight: 400; }
.country-block { margin: 14px 0 20px; }
.country-block > h3 {
  font-size: .95rem;
  color: var(--text-mute);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 14px;
  margin: 0 4px 6px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: .85rem;
  line-height: 1.4;
  transition: all var(--speed) var(--ease);
}
.city-chip:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.city-chip.is-hidden { display: none; }
.city-chip .chip-tz { font-size: .72rem; color: var(--text-faint); }

/* 时区一览 */
.tz-list { display: grid; gap: 12px; }
.tz-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.tz-item .tz-label {
  flex: none;
  min-width: 92px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
}
.tz-item .tz-cities { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.tz-item .tz-cities a { color: var(--text); font-size: .9rem; }
.tz-item .tz-cities a:hover { color: var(--brand-deep); }

/* ---------- 时差查询页 ---------- */
.diff-tool {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.diff-result-big {
  text-align: center;
  padding: 18px 0 8px;
  border-top: 1px dashed var(--border);
  margin-top: 16px;
}
.diff-result-big .dr-title { font-size: .9rem; color: var(--text-mute); }
.diff-result-big .dr-value {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--brand-deep);
  margin: 2px 0;
}
.diff-result-big .dr-sub { font-size: .85rem; color: var(--text-mute); }
.diff-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.diff-time-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.diff-time-box b { display: block; font-size: 1.15rem; color: var(--text-strong); }
.diff-time-box small { color: var(--text-mute); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 2px; color: var(--text); }

/* ---------- 结构化数据说明区（SEO 文本） ---------- */
.seo-text {
  max-width: 860px;
  margin: 30px auto 0;
  color: var(--text-mute);
  font-size: .9rem;
}
.seo-text h2 { color: var(--text-strong); font-size: 1.1rem; }
.seo-text a { color: var(--brand-deep); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 60px 0 40px; }
.notfound .nf-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}
.notfound p { color: var(--text-mute); margin-bottom: 20px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #F9EFE2, #F4E6D3);
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding: 40px 0 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-strong);
}
.footer-col h3 { font-size: .95rem; margin-bottom: 10px; }
.footer-col p { font-size: .86rem; color: var(--text-mute); }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { font-size: .88rem; color: var(--text); }
.footer-col ul a:hover { color: var(--brand-deep); }
.footer-legal {
  text-align: center;
  padding: 18px 0 20px;
  font-size: .82rem;
  color: var(--text-mute);
}
.footer-legal p { margin: 0 0 6px; }
.beian { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.beian a { color: var(--text-mute); }
.beian a:hover { color: var(--brand-deep); }
.beian svg { margin-right: 2px; }
.beian-sep { color: var(--border-strong); }

/* ---------- 响应式：平板/手机 ---------- */
@media (max-width: 1024px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .page-main { padding-top: 16px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 14px;
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .clock-hero { padding: 28px 26px 26px; }
  .diff-widget { grid-template-columns: 1fr; padding: 22px 18px; }
  .diff-swap { margin: 0 auto; transform: rotate(90deg); }
  .diff-swap:hover { transform: rotate(270deg); }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .timeline-hour { font-size: .55rem; }
  .diff-time-row { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  body { font-size: 15px; }
  .container { padding: 0 12px; }
  .hero { padding-top: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .clock-hero { min-width: 100%; padding: 20px 14px 18px; }
  .city-grid { grid-template-columns: 1fr; gap: 10px; }
  .city-card { padding: 13px 14px; }
  .city-card time { font-size: 1.15rem; }
  .timeline-legend { gap: 8px; font-size: .7rem; }
  .tz-item { flex-direction: column; gap: 10px; }
  .tz-item .tz-label { align-self: flex-start; }
}
@media (max-width: 320px) {
  .city-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 58px; }
  .brand-text small { display: none; }
}

/* ---------- 用户减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .ad-slot, .nav-toggle, .diff-swap, .main-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .clock-hero, .clock-card, .city-card, .sub-card, .tz-item, .info-table {
    box-shadow: none;
    border-color: #ddd;
  }
  .page-main { padding: 10px 0; }
  a { color: #000; text-decoration: none; }
}
/* ---------- 辅助类 ---------- */
.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;
}

/* 时区标签作为链接时去掉下划线 */
.tz-item .tz-label { text-decoration: none; }

/* diff.html 内嵌时差控件：去掉双重卡片框 */
.diff-tool .inline-tool {
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* ---------- 城市互链云（详情页） ---------- */
.link-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.link-cloud .city-chip { margin: 0; padding: 4px 12px; font-size: .85rem; }

/* 详情页 SEO 正文中的备注 */
.dst-note { color: var(--text-mute); font-size: .9em; }
