:root {
  --sky: #8fdcff;
  --surface: rgba(255, 255, 255, 0.38);
  --surface-border: rgba(255, 255, 255, 0.48);
  --card-shadow: 0 20px 60px rgba(11, 63, 114, 0.12);
  --text-main: #10304f;
  --text-muted: rgba(16, 48, 79, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: linear-gradient(180deg, #baf1ff 0%, var(--sky) 100%);
  color: var(--text-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.22), transparent 30%);
}

.app-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 32px 18px 40px;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(16, 48, 79, 0.68);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.intro {
  width: min(100%, 620px);
  margin: 12px auto 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-panel {
  margin-top: 24px;
  padding: 22px 20px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.content-panel p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-muted);
}

.content-panel p + p {
  margin-top: 12px;
}

.faq-section {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding-top: 16px;
  border-top: 1px solid rgba(16, 48, 79, 0.12);
}

.faq-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 12px 4px;
  text-align: center;
}

.footer-link {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(16, 48, 79, 0.7);
}

.policy-page {
  padding-bottom: 32px;
}

.policy-content {
  display: grid;
  gap: 18px;
}

.policy-content h2,
.policy-content h3 {
  margin: 0;
}

.policy-section {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 48, 79, 0.12);
}

.policy-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.policy-list,
.toc ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.75;
}

.policy-list li + li,
.toc li + li {
  margin-top: 6px;
}

.toc {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.toc a {
  color: var(--text-main);
}

.clock-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px 14px 16px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}

.city-picker {
  width: 100%;
  display: grid;
  gap: 6px;
}

.picker-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 48, 79, 0.74);
}

.city-select {
  width: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--text-main);
  background: #fff7a8;
  box-shadow: inset 0 0 0 1px rgba(180, 150, 0, 0.22);
}

.clock-face {
  --face-bg: #ffffff;
  --face-fg: #111111;
  --seconds-color: #ff6740;
  position: relative;
  width: min(100%, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--face-bg);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(16, 48, 79, 0.08),
    0 10px 24px rgba(13, 44, 77, 0.18);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.clock-card.is-night .clock-face {
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(13, 44, 77, 0.24);
}

.tick {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 2px;
  height: 12%;
  margin-left: -1px;
  border-radius: 999px;
  background: var(--face-fg);
  opacity: 0.82;
  transform-origin: center 350%;
}

.tick-1 {
  transform: rotate(30deg);
}

.tick-2 {
  transform: rotate(60deg);
}

.tick-3 {
  transform: rotate(90deg);
}

.tick-4 {
  transform: rotate(120deg);
}

.tick-5 {
  transform: rotate(150deg);
}

.tick-6 {
  transform: rotate(180deg);
}

.tick-7 {
  transform: rotate(210deg);
}

.tick-8 {
  transform: rotate(240deg);
}

.tick-9 {
  transform: rotate(270deg);
}

.tick-10 {
  transform: rotate(300deg);
}

.tick-11 {
  transform: rotate(330deg);
}

.tick-12 {
  transform: rotate(0deg);
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  border-radius: 999px;
  background: var(--face-fg);
  transition: background-color 0.25s ease;
}

.hour-hand {
  width: 5px;
  height: 26%;
  margin-left: -2.5px;
}

.minute-hand {
  width: 3px;
  height: 36%;
  margin-left: -1.5px;
}

.second-hand {
  width: 2px;
  height: 40%;
  margin-left: -1px;
  background: var(--seconds-color);
}

.clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--face-fg);
}

.time-label,
.date-label-zh,
.date-label {
  margin: 0;
  text-align: center;
}

.time-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.date-label-zh {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(16, 48, 79, 0.84);
}

.date-label {
  font-size: 0.96rem;
  color: rgba(16, 48, 79, 0.78);
}

.clock-card.is-night .time-label,
.clock-card.is-night .date-label-zh,
.clock-card.is-night .date-label {
  color: #0e2742;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 22px 12px 28px;
  }

  .hero {
    margin-bottom: 20px;
  }

  .intro {
    font-size: 0.95rem;
  }

  .clock-grid {
    gap: 12px;
  }

  .content-panel {
    margin-top: 18px;
    padding: 18px 14px;
    border-radius: 24px;
  }

  .faq-section {
    gap: 14px;
  }

  .faq-item h3 {
    font-size: 0.98rem;
  }

  .site-footer {
    padding-top: 22px;
  }

  .footer-copy {
    font-size: 0.86rem;
  }

  .policy-content {
    gap: 16px;
  }

  .toc {
    padding: 16px;
  }

  .clock-card {
    padding: 14px 10px 14px;
    gap: 10px;
    border-radius: 24px;
  }

  .city-select {
    padding: 10px 12px;
    font-size: 0.94rem;
  }

  .time-label {
    font-size: 0.92rem;
  }

  .date-label {
    font-size: 0.84rem;
  }

  .date-label-zh {
    font-size: 0.78rem;
  }
}
