/* ============================================================
   HourDiff — classic world-clock layout
   ============================================================ */

:root {
  --blue:       #1a6fb5;
  --blue-dark:  #12507f;
  --blue-soft:  #eaf3fb;
  --text:       #2f3438;
  --muted:      #6b7378;
  --border:     #dde2e6;
  --border-2:   #cfd6db;
  --bg:         #ffffff;
  --bg-soft:    #f5f7f9;
  --bg-soft-2:  #eef2f5;
  --green:      #2e8b57;
  --radius:     4px;
  --wrap:       1000px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); }
p { margin: 0 0 12px; }

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

/* ---------- header ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark { display: block; }
.logo-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.3px;
}
.logo-dot { color: #f0a30a; }

.hsearch {
  flex: 1 1 auto;
  display: flex;
  max-width: 420px;
  margin-left: auto;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.hsearch:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(26, 111, 181, .12);
}
.hsearch input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.hsearch button {
  border: 0;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
}
.hsearch button:hover { background: var(--blue-soft); color: var(--blue); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: var(--radius);
  padding: 7px 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
}

/* ---------- nav ---------- */

.main-nav {
  background: linear-gradient(#1a6fb5, #17619f);
  border-bottom: 1px solid #12507f;
}
.nav-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  color: #eaf3fb;
  font-size: 13px;
  padding: 10px 13px;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 2px 2px 0 0;
}
.nav-inner a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-inner a.active {
  background: #fff;
  color: var(--blue-dark);
  font-weight: 600;
}

/* ---------- generic blocks ---------- */

.site-main { padding: 0 0 40px; }

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 5px; color: #b9c0c5; }

.page-head { padding: 14px 0 10px; }
.page-head h1 {
  font-size: 25px;
  line-height: 1.25;
  color: var(--blue-dark);
  font-weight: 600;
}
.page-head .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.sec-title {
  font-size: 17px;
  color: var(--blue-dark);
  font-weight: 600;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--bg-soft-2);
  margin: 30px 0 14px;
}
.sec-title:first-child { margin-top: 8px; }

.prose { font-size: 14px; line-height: 1.7; color: #3d4347; }
.prose h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 4px; }

/* ---------- hero / world clock ---------- */

.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 26px;
}

.hero h1 {
  font-size: 24px;
  color: var(--blue-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.hero .lede {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 16px;
}
.hero-tabs button {
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: var(--muted);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
}
.hero-tabs button.active {
  background: #fff;
  border-color: var(--border-2);
  color: var(--blue-dark);
  font-weight: 600;
  margin-bottom: -1px;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.clock-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px 10px;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: border-color .12s, box-shadow .12s;
}
.clock-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 6px rgba(26, 111, 181, .13);
  text-decoration: none;
}
.cc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-country {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-time {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 400;
  color: #1f2429;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.cc-time .sec { font-size: 16px; color: #8b9297; }
.cc-ampm {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
  margin-left: 3px;
  vertical-align: 4px;
}
.cc-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.cc-diff {
  font-size: 11px;
  color: var(--blue);
  margin-top: 2px;
}
.cc-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: rgba(47, 52, 56, .06);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s;
}
.clock-card:hover .cc-remove { opacity: 1; }
.cc-remove:hover { background: #2f3438; color: #fff; }

.clock-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.city-picker {
  position: relative;
  display: inline-block;
}
.city-picker input {
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  width: 210px;
}
.city-picker input:focus { outline: 0; border-color: var(--blue); }
.picker-results {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  max-height: 260px;
  overflow: auto;
  display: none;
}
.picker-results.open { display: block; }
.picker-results a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0f2f4;
}
.picker-results a:last-child { border-bottom: 0; }
.picker-results a:hover { background: var(--blue-soft); }
.picker-results .pr-country { color: var(--muted); font-size: 11px; }

/* ---------- feature strip ---------- */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 4px;
}
.feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 13px;
  text-decoration: none;
  color: inherit;
}
.feature:hover { border-color: var(--blue); text-decoration: none; }
.feature .fnew {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #e0742a;
  border-radius: 2px;
  padding: 1px 4px;
  margin-bottom: 3px;
  letter-spacing: .3px;
}
.feature h3 { font-size: 13px; color: var(--blue-dark); margin-bottom: 3px; line-height: 1.35; }
.feature p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- big clock (city page) ---------- */

.city-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 18px 0 22px;
}

.big-clock {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 2px;
}
.bc-time {
  font-size: 62px;
  line-height: 1;
  font-weight: 300;
  color: #1f2429;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.bc-time .sec { font-size: 30px; color: #98a0a6; letter-spacing: -1px; }
.bc-ampm {
  font-size: 17px;
  color: var(--muted);
  padding-bottom: 12px;
  letter-spacing: 1px;
}
.bc-block { padding-bottom: 6px; }
.bc-date { font-size: 15px; color: #454b50; }
.bc-zone { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bc-zone strong { color: var(--blue-dark); }

.city-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.city-meta b { color: var(--text); font-weight: 600; }

/* ---------- panels & tables ---------- */

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow-x: auto;
}
.panel > h3 {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 9px 13px;
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: 600;
}
.panel-body { padding: 13px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid #eef1f3;
  vertical-align: top;
}
.data-table th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 12px;
  color: #4a5157;
  white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { font-variant-numeric: tabular-nums; }
.data-table .tz { color: var(--muted); font-size: 12px; }

.dl { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 13px; }
.dl dt {
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid #f0f3f5;
}
.dl dd {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #f0f3f5;
  font-variant-numeric: tabular-nums;
}
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

/* ---------- converter ---------- */

.converter {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 14px;
}
.conv-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 10px;
  align-items: end;
}
.conv-field label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.conv-field select,
.conv-field input {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 8px 9px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.conv-swap {
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: var(--radius);
  height: 36px;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
}
.conv-swap:hover { border-color: var(--blue); color: var(--blue); }

.conv-result {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.conv-big {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: #1f2429;
}
.conv-eq {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- ad ---------- */

.ad-slot {
  border: 1px dashed #ccd4da;
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 8px, #f4f6f8 8px, #f4f6f8 16px);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a7b0b6;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: 92px;
  margin: 18px 0;
}
.ad-slot.top { min-height: 90px; }
.ad-slot.side { min-height: 250px; }

/* ---------- layout with sidebar ---------- */

.with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  padding-top: 6px;
}
.side-col .panel:first-child { margin-top: 8px; }

/* ---------- link clouds ---------- */

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 13px;
}
.link-cloud a {
  padding: 2px 8px 2px 0;
  border-right: 1px solid var(--border);
  margin-right: 8px;
}
.link-cloud a:last-child { border-right: 0; }

.cols-3 {
  columns: 3;
  column-gap: 24px;
  font-size: 13px;
}
.cols-3 a { display: block; padding: 2px 0; }

/* ---------- widget page ---------- */

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.widget-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  background: var(--bg-soft);
  min-width: 0;
}
.widget-item h4 { font-size: 13px; margin-bottom: 10px; color: var(--blue-dark); }
.widget-preview {
  background: #2b3138;
  color: #fff;
  border-radius: 6px;
  padding: 14px 10px;
  margin-bottom: 10px;
}
.wp-time { font-size: 26px; font-variant-numeric: tabular-nums; }
.wp-city { font-size: 11px; color: #a9b3bb; margin-top: 2px; }
.wp-analog { width: 84px; height: 84px; margin: 0 auto; }
.wp-text { font-size: 13px; line-height: 1.5; }

.code-box {
  background: #2b3138;
  color: #d6dee5;
  font: 11px/1.55 Consolas, Monaco, monospace;
  padding: 11px;
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre;
  margin: 10px 0;
  max-width: 100%;
  text-align: left;
}

/* ---------- map ---------- */

.map-canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfd;
  overflow: hidden;
  position: relative;
}
.map-canvas svg { display: block; width: 100%; height: auto; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.map-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

/* ---------- interactive world map (home) ---------- */

.wm {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.wm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft-2);
}
.wm-bar-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.wm-bar h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--blue-dark);
  white-space: nowrap;
}
.wm-hint {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-utc {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.wm-utc strong {
  color: #3d4347;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wm-scroll {
  position: relative;
}
.wm-stage {
  position: relative;
  aspect-ratio: 1000 / 378;
  background: #c3dbec;
}
.wm-land {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

/* 夜间遮罩：SVG 晨昏线，由 site.js 按纬度采样生成真实阴影边界 */
.wm-night-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 城市标记 */
.wm-dots {
  position: absolute;
  inset: 0;
}
.wm-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wm-dot i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: transform .12s ease, background .12s ease;
}
.wm-dot.s2 i { width: 9px; height: 9px; }
.wm-dot.s3 i { width: 10px; height: 10px; }
.wm-dot:hover,
.wm-dot:focus-visible {
  z-index: 4;
  outline: none;
}
.wm-dot:hover i,
.wm-dot:focus-visible i {
  transform: scale(1.7);
  background: #0d4d85;
}
.wm-dot.is-active {
  z-index: 5;
}
.wm-dot.is-active i {
  transform: scale(1.9);
  background: #e2691f;
  border-color: #fff;
}

/* 悬停气泡 */
.wm-tip {
  position: absolute;
  z-index: 6;
  min-width: 158px;
  padding: 8px 10px 7px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(20, 40, 60, .22);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity .1s ease;
}
.wm-tip.show {
  opacity: 1;
  visibility: visible;
}
.wm-tip.below {
  transform: translate(-50%, 12px);
}
.wm-tip::after {
  content: "";
  position: absolute;
  left: var(--ax, 50%);
  bottom: -5px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: #fff;
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  transform: rotate(45deg);
}
.wm-tip.below::after {
  top: -5px;
  bottom: auto;
  border: 0;
  border-left: 1px solid var(--border-2);
  border-top: 1px solid var(--border-2);
}
.wt-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.25;
}
.wt-country {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.wt-time {
  font-size: 21px;
  line-height: 1.1;
  color: #1f2429;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.wt-time .wt-sec {
  font-size: 13px;
  color: #8b9297;
}
.wt-time .wt-abbr {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: .3px;
  vertical-align: 3px;
}
.wt-date {
  font-size: 11px;
  color: #4c5459;
  margin-top: 3px;
}
.wt-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.wt-meta .wt-dot {
  margin: 0 5px;
}
.wt-go {
  font-size: 10px;
  color: var(--blue);
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.wm-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  background: #fbfcfd;
  font-size: 11px;
  color: var(--muted);
}
.wm-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}
.wm-legend .lg-day   { background: #e9e5d8; border: 1px solid #cdc7b6; }
.wm-legend .lg-night { background: #253750; }
.wm-legend-more { margin-left: auto; }

/* ---------- cards row (countries) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 11px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.mini-card:hover { border-color: var(--blue); text-decoration: none; }
.mini-card .mc-name { font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.mini-card .mc-sub { font-size: 11px; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 26px 0 18px;
  margin-top: 20px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.fcol h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin-bottom: 8px;
}
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: 5px; font-size: 13px; }
.fcol a { color: #4a5157; }
.fcol a:hover { color: var(--blue); }
.fstat { color: #9aa2a8; font-size: 11px; margin-top: 6px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
  font-size: 11px;
  color: #9aa2a8;
}
.footer-bottom p { margin: 0; }

/* ---------- empty / 404 ---------- */

.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state h1 { font-size: 60px; color: var(--bg-soft-2); margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .with-side { grid-template-columns: 1fr; }
  .clock-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .hsearch { order: 3; max-width: none; width: 100%; margin-left: 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 4px 0 8px;
  }
  body.nav-open .nav-inner { display: flex; }
  .nav-inner a { border-radius: 2px; }
  .nav-inner a.active { background: rgba(255, 255, 255, .18); color: #fff; }

  .hero h1, .page-head h1 { font-size: 20px; }
  .clock-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cc-time { font-size: 23px; }
  .feature-strip { grid-template-columns: 1fr; }
  .bc-time { font-size: 46px; letter-spacing: -1.5px; }
  .bc-time .sec { font-size: 22px; }
  .conv-row { grid-template-columns: 1fr; }
  .conv-swap { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { columns: 2; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .widget-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 110px 1fr; }

  /* 窄屏表格改为容器内横向滚动，避免撑破页面 */
  .panel { overflow-x: auto; }
  .data-table { font-size: 12px; }
  .data-table th { white-space: normal; }
  .data-table td, .data-table th { padding: 6px 8px; }
  .link-cloud a { padding-right: 6px; margin-right: 6px; }

  /* 地图：窄屏保持可读宽度，横向滑动浏览 */
  .wm-hint { display: none; }
  .wm-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .wm-stage { min-width: 700px; }
  .wm-tip { min-width: 146px; }
  .wt-time { font-size: 19px; }
}

@media (max-width: 420px) {
  .clock-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   视觉刷新（设计覆盖层）
   只在这里做视觉升级，前面是原版基础样式，便于回退
   ============================================================ */

:root {
  --blue:       #1a6fb5;
  --blue-dark:  #0e4d80;
  --blue-ink:   #0a2942;
  --blue-soft:  #eef6fd;
  --text:       #253039;
  --muted:      #6b7885;
  --border:     #e2e8ee;
  --border-2:   #d3dce5;
  --bg:         #ffffff;
  --bg-soft:    #f6f9fc;
  --bg-soft-2:  #eef3f8;
  --radius:     8px;
  --shadow-sm:  0 1px 2px rgba(15, 40, 70, .06);
  --shadow-md:  0 6px 18px rgba(15, 40, 70, .10);
  --shadow-lg:  0 14px 34px rgba(15, 40, 70, .14);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4 { letter-spacing: -.2px; }

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

.site-header {
  border-bottom: 1px solid #e8eef4;
  box-shadow: 0 1px 0 rgba(15, 40, 70, .03);
  position: relative;
  z-index: 30;
}
.header-inner { height: 70px; }
.logo-text { font-size: 19px; font-weight: 700; color: #0d2b46; letter-spacing: -.4px; }
.logo-dot { color: var(--blue); }
.logo:hover { text-decoration: none; }

.hsearch {
  border-radius: 999px;
  background: #f5f8fb;
  border: 1px solid #e3eaf1;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.hsearch:focus-within {
  background: #fff;
  border-color: #9fc6e6;
  box-shadow: 0 0 0 3px rgba(26, 111, 181, .12);
}
.hsearch input { background: transparent; }

.main-nav {
  background: linear-gradient(180deg, #123a5f 0%, #0d2c4a 100%);
  border-bottom: 1px solid #0b2439;
  box-shadow: 0 2px 10px rgba(9, 32, 54, .12);
}
.nav-inner { gap: 3px; padding: 5px 0; }
.nav-inner a {
  padding: 8px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-inner a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-inner a.active {
  background: #fff;
  color: var(--blue-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

/* ---------- 英雄区 ---------- */

.hero {
  background:
    radial-gradient(900px 340px at 50% -80px, #e6f1fc 0%, rgba(230, 241, 252, 0) 72%),
    linear-gradient(180deg, #f9fbfe 0%, #f3f8fd 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 28px;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
}
.hero-copy { min-width: 0; flex: 1 1 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  padding: 4px 11px 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #1668b3;
  box-shadow: var(--shadow-sm);
  margin-bottom: 11px;
}
.hero-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, .16);
  animation: wt-pulse 2.4s ease-in-out infinite;
}
@keyframes wt-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 160, 107, .16); }
  50%      { box-shadow: 0 0 0 5px rgba(34, 160, 107, .07); }
}

.hero h1 {
  font-size: 34px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--blue-ink);
  margin-bottom: 8px;
}
.hero .lede {
  font-size: 15px;
  line-height: 1.62;
  color: #4b5a68;
  max-width: 620px;
  margin: 0;
}
.hero .lede strong { color: #2b3f50; }

.hero-facts {
  display: flex;
  gap: 26px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #e3ecf5;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.hero-facts .hf { text-align: center; }
.hero-facts b {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--blue-ink);
  letter-spacing: -.5px;
  line-height: 1.15;
}
.hero-facts b i { font-style: normal; font-size: 15px; letter-spacing: .3px; }
.hero-facts span {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 10px;
}
.hero-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-ink);
  letter-spacing: -.3px;
}
.city-picker input {
  width: 230px;
  border-radius: 8px;
  border-color: var(--border-2);
  padding: 8px 12px;
  background: #fff;
}
.city-picker input:focus {
  border-color: #7fb3dc;
  box-shadow: 0 0 0 3px rgba(26, 111, 181, .12);
}
.picker-results { border-radius: 8px; box-shadow: var(--shadow-md); }

/* ---------- 时钟卡片 ---------- */

.clock-grid { gap: 11px; }
.clock-card {
  border-radius: 11px;
  border-color: #e4eaf1;
  padding: 12px 13px 11px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.clock-card:hover {
  transform: translateY(-2px);
  border-color: #a9cdea;
  box-shadow: var(--shadow-md);
}
.cc-name { font-size: 13.5px; color: #0f5288; }
.cc-country { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: #8b98a5; }
.cc-time { font-size: 28px; font-weight: 500; color: #0e1b25; letter-spacing: -1px; }
.cc-time .sec { font-size: 15px; color: #9aa6b2; }

/* ---------- 按钮 ---------- */

.btn {
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #2a83c9 0%, #1668b3 100%);
  border-color: #135d9f;
  box-shadow: 0 2px 7px rgba(22, 104, 179, .28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2276b9 0%, #125a9d 100%);
  color: #fff;
}
.clock-tools { gap: 9px; margin-top: 16px; }
.tools-note { font-size: 11.5px; color: #93a2b1; }

/* ---------- 区块标题 / 面板 ---------- */

.sec-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-ink);
  letter-spacing: -.35px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  margin: 34px 0 14px;
  position: relative;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a83c9, #7fb6e2);
}

.panel {
  border-radius: 12px;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.panel > h3 {
  background: #f7fafc;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #46617a;
  border-bottom: 1px solid var(--border);
}
.panel-body { padding: 12px 13px; }
.cols-2 { columns: 2; column-gap: 18px; font-size: 13px; }
.cols-2 a { display: block; padding: 2px 0; white-space: nowrap; }
.panel-body a { font-size: 12.5px; }

/* 美国时区区块标题与页面其他区块保持一致 */
.block-head h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.block-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a83c9, #7fb6e2);
}
.block-head p { margin: 9px 0 0; }

/* ---------- 功能三栏 ---------- */

.feature {
  background: #fff;
  border-color: var(--border);
  border-radius: 12px;
  padding: 14px;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: #a9cdea;
  box-shadow: var(--shadow-md);
}
.f-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eaf4fd, #dcecfb);
  color: #1668b3;
  border: 1px solid #d3e6f7;
}
.feature .fnew {
  background: #eaf2fb;
  color: #1668b3;
  font-size: 9.5px;
  letter-spacing: .8px;
  padding: 2px 6px;
  border-radius: 4px;
}
.feature h3 { font-size: 13.5px; color: #0f5288; }

/* ---------- 美国时区区块 ---------- */

.us-zones { margin-top: 30px; }
.block-head h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-ink);
  letter-spacing: -.35px;
}
.block-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}
.uz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.uz-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.uz-card:hover {
  transform: translateY(-2px);
  border-color: #a9cdea;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.uz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.uz-abbr {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #1668b3;
  background: #eaf2fb;
  border-radius: 4px;
  padding: 2px 6px;
}
.uz-off { font-size: 10.5px; color: #93a2b1; font-variant-numeric: tabular-nums; }
.uz-time {
  font-size: 20px;
  font-weight: 600;
  color: #0e1b25;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.uz-name { font-size: 12px; font-weight: 600; color: #46617a; margin-top: 1px; }
.uz-cities {
  font-size: 10.5px;
  color: #93a2b1;
  line-height: 1.4;
  margin-top: 2px;
}

/* ---------- 链接云 / 国家卡片 ---------- */

.link-cloud a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 6px 7px 0;
  font-size: 12.5px;
  background: #fff;
  transition: background .14s, border-color .14s, color .14s;
}
.link-cloud a:hover {
  background: var(--blue-soft);
  border-color: #a9cdea;
  text-decoration: none;
}

.mini-card {
  border-radius: 10px;
  border-color: var(--border);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #a9cdea;
  text-decoration: none;
}
.mini-card .mc-name { font-size: 13px; color: #0f5288; }
.mini-card .mc-sub { font-size: 10.5px; color: #93a2b1; }
.mini-card.is-featured {
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%);
  border-color: #b6d6f0;
}
.mini-card.is-featured .mc-name { color: #0b4a7d; }

.more-link { margin-top: 12px; font-size: 13px; }

/* ---------- 结尾行动区 ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 30px;
  padding: 22px 26px;
  border-radius: 14px;
  background:
    radial-gradient(600px 200px at 85% -40%, rgba(90, 170, 230, .35), rgba(90, 170, 230, 0) 70%),
    linear-gradient(120deg, #0d3252 0%, #11486f 100%);
  color: #e8f2fb;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: 19px; color: #fff; letter-spacing: -.3px; }
.cta-band p { margin: 5px 0 0; font-size: 13px; color: #b7cde0; }
.cta-band .btn-primary {
  background: #fff;
  border-color: #fff;
  color: #0d3252;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  white-space: nowrap;
}
.cta-band .btn-primary:hover { background: #eaf4fd; color: #0b2a45; }

/* ---------- 其他页面通用 ---------- */

.page-head h1 { font-size: 27px; color: var(--blue-ink); letter-spacing: -.5px; font-weight: 700; }
.breadcrumb { font-size: 12px; }
.data-table th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #7b8b99;
  background: #f7fafc;
}
.ad-slot { border-radius: 10px; }

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

.site-footer {
  background: #0d2740;
  border-top: 0;
  color: #c4d3e1;
  padding: 32px 0 18px;
  margin-top: 34px;
}
.fcol h4 { color: #87a8c4; font-size: 11px; letter-spacing: 1px; }
.fcol a { color: #c4d3e1; }
.fcol a:hover { color: #fff; }
.fstat { color: #7d95ab; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7d95ab;
}
.footer-bottom p { margin: 0; }

/* ---------- 响应式补充 ---------- */

@media (max-width: 900px) {
  .hero h1 { font-size: 28px; }
  .hero-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-facts { justify-content: space-around; gap: 0; }
  .hero-facts .hf { flex: 1; }
}

.hero h1 em {
  font-style: normal;
  color: #1668b3;
}

@media (max-width: 720px) {
  .clock-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .clock-tools .btn { text-align: center; }
  .clock-tools .btn:nth-of-type(3) { grid-column: 1 / -1; }
  .tools-note { grid-column: 1 / -1; }

  .hero { padding: 18px 0 22px; }
  .hero h1 { font-size: 24px; letter-spacing: -.6px; }
  .hero .lede { font-size: 13.5px; }
  .hero-head { flex-direction: column; align-items: stretch; gap: 9px; }
  .city-picker { display: block; }
  .city-picker input { width: 100%; }
  .nav-inner { padding: 6px 0; }
  .nav-inner a { padding: 8px 12px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 18px; }
  .cta-band .btn-primary { width: 100%; text-align: center; }
  .feature-strip { gap: 10px; }
}

@media (max-width: 420px) {
  .hero-facts { padding: 10px 12px; }
  .hero-facts b { font-size: 18px; }
}

/* 地图嵌入独立页面时去掉自身外框 */
.wm-plain {
  border: 0;
  border-radius: 0;
  margin-top: 0;
}
.wm-page-map {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   搜索联想 / 地图城市名标签
   ============================================================ */

/* ---------- 头部搜索框 + 即时联想 ---------- */

.hsearch-wrap {
  position: relative;
  flex: 1 1 auto;
  max-width: 420px;
  margin-left: auto;
}
.hsearch-wrap .hsearch {
  max-width: none;
  width: 100%;
  margin-left: 0;
}

.hsearch-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 40, 70, .16), 0 2px 6px rgba(15, 40, 70, .06);
  max-height: min(62vh, 420px);
  overflow-y: auto;
  text-align: left;
}
.hsearch-drop.open { display: block; }

.hsearch-drop a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.hsearch-drop a:hover,
.hsearch-drop a.sel {
  background: #eef6fd;
  text-decoration: none;
}
.hd-name {
  font-weight: 600;
  color: #0f5288;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46%;
}
.hd-country {
  color: #8b98a5;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: #46617a;
  font-size: 12px;
  white-space: nowrap;
  padding-left: 6px;
}
.hd-more {
  border-top: 1px solid var(--border);
  margin-top: 3px;
  padding-top: 3px;
}
.hd-more a {
  color: #1668b3;
  font-weight: 600;
  font-size: 12.5px;
}
.hd-empty {
  padding: 10px 10px 11px;
  color: #93a2b1;
  font-size: 12.5px;
}
.hd-empty b { color: #46617a; font-weight: 600; }

/* ---------- 地图上的城市名 ---------- */

.wm-dot .wm-lb {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;              /* 高于所有圆点，避免被邻近城市点压住文字 */
  transform: translateY(-50%);
  padding: 1px 4px 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 1px 2px rgba(10, 30, 55, .16);
  color: #0e2436;
  font-size: 9.5px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .1px;
  white-space: nowrap;
  /* 标签是圆点的子元素，打开 pointer-events 后悬停文字同样出气泡；
     点击文字也等于点这颗圆点（跳城市页），比只能精确点小圆点好按 */
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}
.wm-dot.s3 .wm-lb { font-size: 10px; }
.wm-dot.lb-l .wm-lb { left: auto; right: 12px; }
/* 密集区域没有空间时的纵向微调 */
.wm-dot.lb-t .wm-lb { transform: translateY(-150%); }
.wm-dot.lb-d .wm-lb { transform: translateY(50%); }

/* 碰撞检测判定放不下的标签先隐藏，鼠标移上去仍然显示 */
.wm-dot.lb-hide .wm-lb { display: none; }
.wm-dot.lb-hide:hover .wm-lb,
.wm-dot.lb-hide:focus-visible .wm-lb,
.wm-dot.lb-hide.is-active .wm-lb { display: block; }

.wm-dot:hover .wm-lb,
.wm-dot:focus-visible .wm-lb,
.wm-dot.is-active .wm-lb {
  background: #fff;
  color: #0b3f6b;
  box-shadow: 0 2px 7px rgba(10, 30, 55, .28);
}

@media (max-width: 720px) {
  .hsearch-wrap {
    order: 3;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }
  .hsearch-wrap .hsearch { order: 0; }
  .hsearch-drop { max-height: 56vh; }
  .hd-name { max-width: 40%; }
}

@media (max-width: 420px) {
  .hd-time { display: none; }
}

/* 移动端：搜索框换行后顶栏必须跟着长高（覆盖设计层里的固定 70px） */
@media (max-width: 720px) {
  .header-inner {
    height: auto;
    padding: 10px 0 12px;
  }
  .hero { padding-top: 16px; }
}

/* 移动端地图横向滑动提示（默认隐藏，只在窄屏出现） */
.wm-swipe { display: none; }

@media (max-width: 760px) {
  .wm-swipe {
    display: block;
    padding: 8px 14px 2px;
    font-size: 11.5px;
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--muted);
  }
}

/* ---------- 首页地图：与下方内容宽度一致（不再通栏溢出） ---------- */
.hero-map,
.hero-map-bleed {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-map .wm,
.hero-map-bleed .wm {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wm-bar-inner,
.wm-legend-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.wm-bar-inner { justify-content: space-between; }
.wm-legend-inner { flex-wrap: wrap; gap: 14px; }

/* ============================================================
   手机 / 平板精修（覆盖层，紧凑优先）
   ============================================================ */

/* ---- 平板：7 个导航项在 768 放不下，收进汉堡 ---- */
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 4px 0 10px;
    gap: 2px;
  }
  body.nav-open .nav-inner { display: flex; }
  .nav-inner a { padding: 9px 12px; border-radius: 6px; }
  .nav-inner a.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

  .clock-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .with-side { grid-template-columns: 1fr; }
}

/* ---- 手机 ---- */
@media (max-width: 760px) {
  /* 顶栏压成一行：logo + 搜索 + 菜单 */
  .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    height: auto;
    padding: 9px 0;
  }
  .logo-mark { width: 26px; height: 26px; }
  .logo-text { font-size: 16px; letter-spacing: -.2px; }
  .hsearch-wrap { order: 0; flex: 1 1 auto; min-width: 0; max-width: none; margin-left: 4px; }
  .hsearch { order: 0; width: 100%; max-width: none; margin-left: 0; height: 34px; }
  .hsearch input { padding: 6px 10px; font-size: 13px; }
  .hsearch button { padding: 0 10px; }
  .nav-toggle { margin-left: 0; padding: 6px 8px; }

  /* 英雄区 */
  .hero { padding-top: 14px; }
  .hero-top { gap: 10px; }
  .hero-badge { font-size: 10px; padding: 4px 9px; }
  .hero h1 { font-size: 21px; line-height: 1.2; letter-spacing: -.5px; }
  .hero .lede { font-size: 13px; line-height: 1.55; }
  .hero-facts {
    gap: 0;
    padding: 7px 6px;
    border-radius: 9px;
  }
  .hero-facts .hf { flex: 1 1 0; padding: 0 4px; }
  .hero-facts .hf + .hf { border-left: 1px solid #e6edf4; }
  .hero-facts b { font-size: 16px; }
  .hero-facts b i { font-size: 12px; }
  .hero-facts span { font-size: 8.5px; letter-spacing: .4px; }

  /* 地图：整图适配，不再横向滑动 */
  .wm-scroll { overflow: visible; }
  .wm-stage { min-width: 0; }
  .wm { border-radius: 9px; }
  .wm-bar { padding: 6px 10px; }
  .wm-legend { padding: 6px 10px; gap: 10px; }
  .wm-swipe { display: block; }
  .wm-tip { min-width: 132px; }
  .wt-time { font-size: 18px; }

  /* 时钟卡：两列，缩紧 */
  .clock-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .clock-card { padding: 9px 10px; }
  .cc-name { font-size: 12.5px; }
  .cc-country { font-size: 9.5px; }
  .cc-time { font-size: 22px; letter-spacing: -.8px; }
  .cc-time .sec { font-size: 12px; }
  .cc-date { font-size: 10.5px; }
  .cc-diff { font-size: 10px; }
  .cc-remove { opacity: 1; transform: scale(.85); }

  .hero-head { flex-wrap: wrap; gap: 8px; }
  .hero-head h2 { font-size: 16px; }
  .city-picker { max-width: none; width: 100%; }
  .city-picker input { height: 34px; font-size: 13px; }

  /* 区块与按钮 */
  .sec-title { font-size: 16px; margin-top: 20px; }
  .feature-strip { grid-template-columns: 1fr; gap: 8px; }
  .feature { padding: 11px 12px; }
  .feature h3 { font-size: 13.5px; }
  .feature p { font-size: 12px; line-height: 1.5; }
  .clock-tools { gap: 6px; }
  .clock-tools .btn { padding: 8px 12px; font-size: 12.5px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
  .site-footer { padding-top: 22px; }
  .cta-band { padding: 16px; border-radius: 10px; }
  .cta-band h2 { font-size: 16px; }
  .cta-band p { font-size: 12.5px; }
  .data-table { font-size: 11.5px; }
}

/* 触屏把地图点放大一点，便于点中 */
@media (hover: none) {
  .wm-dot { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 19px; }
  .cc-time { font-size: 20px; }
}

/* 小屏地图：只显示必显城市，圆点缩小 */
.wm-stage.is-sm .wm-dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.wm-stage.is-sm .wm-dot i { width: 5.5px; height: 5.5px; border-width: 1px; }
.wm-stage.is-sm .wm-dot.s2 i,
.wm-stage.is-sm .wm-dot.s3 i { width: 6.5px; height: 6.5px; }
.wm-stage.is-sm .wm-dot.dm-hide { display: none; }

/* 平板尺寸的圆点略收一点，和地图比例更协调 */
.wm-stage.is-md .wm-dot i { width: 7px; height: 7px; }
.wm-stage.is-md .wm-dot.s2 i { width: 7.5px; height: 7.5px; }
.wm-stage.is-md .wm-dot.s3 i { width: 8px; height: 8px; }

/* ---------- 首页问答 ---------- */
.faq { margin-top: 30px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 26px;
  margin-top: 12px;
}
.faq-item { border-top: 1px solid var(--border); padding: 13px 0 14px; }
.faq-item h3 { font-size: 14.5px; font-weight: 600; color: var(--blue-ink); margin: 0 0 6px; }
.faq-item p { font-size: 13px; line-height: 1.65; color: #46545f; margin: 0; }
.faq-item a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-item { padding: 11px 0 12px; }
  .faq-item h3 { font-size: 13.5px; }
  .faq-item p { font-size: 12.5px; line-height: 1.6; }
}

/* 手机上的大表：藏掉次要列，剩下的加宽不换行 */
@media (max-width: 560px) {
  .map-table th:nth-child(2), .map-table td:nth-child(2),
  .map-table th:nth-child(4), .map-table td:nth-child(4) { display: none; }
  .map-table th, .map-table td { white-space: nowrap; }
  .map-table td:first-child { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
  .map-legend-hint { display: none; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-card { padding: 8px 10px; }
  .mc-name { font-size: 12.5px; }
}
/* ============================================================
   社交分享条（紧贴导航下方，layout.php 统一输出）
   ============================================================ */

.share-zone {
  background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 7px 0 8px;
  position: relative;
}

.share-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.share-label svg { color: var(--blue); }

.share-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.sh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: #fff;
  color: #5c666d;
  cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.sh:hover,
.sh:focus-visible {
  color: #fff;
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 40, 60, .18);
  outline: none;
}
.sh:active { transform: translateY(0); }
.sh[hidden] { display: none; }

.sh-fb:hover, .sh-fb:focus-visible { background: #1877f2; }
.sh-x:hover,  .sh-x:focus-visible  { background: #0f1419; }
.sh-rd:hover, .sh-rd:focus-visible { background: #ff4500; }
.sh-wa:hover, .sh-wa:focus-visible { background: #25d366; }
.sh-tg:hover, .sh-tg:focus-visible { background: #2aabee; }
.sh-li:hover, .sh-li:focus-visible { background: #0a66c2; }
.sh-em:hover, .sh-em:focus-visible { background: #4a5b6b; }
.sh-native, .sh-copy { color: var(--blue); border-color: #bcd8ef; }
.sh-native:hover, .sh-native:focus-visible,
.sh-copy:hover,   .sh-copy:focus-visible { background: var(--blue); }

/* Instagram 没有网页分享接口：按钮只复制链接，用品牌渐变呼应 */
.sh-ig:hover, .sh-ig:focus-visible {
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 52%, #6228d7 100%);
}

/* 复制成功提示 */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 999;
  max-width: 88vw;
  padding: 9px 17px;
  border-radius: 999px;
  background: #12232e;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.share-bar.is-toast .share-toast { opacity: 1; transform: translate(-50%, 0); }

/* 手机上省掉「SHARE」字样与系统分享之外的空白，压成一条可横滑的细条 */
@media (max-width: 760px) {
  .share-bar { padding: 6px 0 7px; gap: 6px; flex-wrap: nowrap; }
  .share-label { display: none; }
  .share-list {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .share-list::-webkit-scrollbar { display: none; }
  .sh { flex: 0 0 auto; width: 30px; height: 30px; }
  .sh svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .sh, .share-toast { transition: none; }
}

/* ============================================================
   HourDiff 品牌层
   深海军蓝 + 琥珀「时差夹角」；只覆盖品牌触点，不动既有版式
   ============================================================ */

:root {
  --brand-ink:        #0d2b46;
  --brand-navy:       #103e68;
  --brand-accent:     #ffbe64;
  --brand-accent-ink: #c66f16;
}

.logo-text {
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--brand-ink);
}
.logo-accent { color: var(--brand-accent-ink); }
.logo-mark { filter: drop-shadow(0 2px 4px rgba(7, 29, 52, .18)); }

/* 首屏小圆点跟随品牌强调色（原来是通用绿点） */
.hero-badge i {
  background: #e9a23a;
  box-shadow: 0 0 0 3px rgba(233, 162, 58, .18);
}
@keyframes wt-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(233, 162, 58, .18); }
  50%      { box-shadow: 0 0 0 5px rgba(233, 162, 58, .07); }
}

/* 深蓝导航条顶部一道 2px 琥珀细线，作为品牌识别（保留原有投影） */
.main-nav {
  box-shadow: inset 0 2px 0 0 rgba(255, 190, 100, .9),
              0 2px 10px rgba(9, 32, 54, .12);
}
