/* 全局基础样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #020617;
  --bg-card: rgba(15, 23, 42, 0.95);
  --accent: #38bdf8;
  --accent-strong: #6366f1;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.9);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, #0f172a 0, transparent 55%),
    radial-gradient(circle at 100% 0%, #1f2937 0, transparent 55%),
    radial-gradient(circle at 50% 100%, #030712 0, #020617 60%);
}

/* 英文/中文标题平衡 */
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: 0.03em;
}

p {
  line-height: 1.7;
  color: var(--text-muted);
}

/* 顶部 Hero 区域 */
.hero {
  position: relative;
  padding: 4rem 1.5rem 2rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent);
  top: -80px;
  right: -120px;
}

.hero::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent);
  bottom: -120px;
  left: -60px;
}

.hero-inner {
  position: relative;
  max-width: 1040px;
  width: 100%;
}

.hero-text {
  max-width: 540px;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0 0 0.75rem;
}

.hero-sub {
  margin: 0;
  font-size: 0.98rem;
  max-width: 30rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0b1220;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.7);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background-color: rgba(15, 23, 42, 0.95);
}

.btn.full {
  width: 100%;
}

/* 通用区块布局 */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.08), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.section-alt > * {
  position: relative;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.section-heading p {
  margin: 0;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 卡片 */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(16px);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}

.big-clock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 时钟显示 */
.clock-display {
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent 55%);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.clock-time {
  font-size: 2.5rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.clock-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.control-row label {
  white-space: nowrap;
}

/* 世界时钟 */
.world-time .world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.mini-clock {
  border-radius: var(--radius-md);
  padding: 0.8rem 0.85rem;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.mini-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.mini-time {
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
}

/* 进度条 */
.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
  margin-top: 0.4rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.25s ease-out;
}

.progress-text {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 表单 */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

label {
  color: var(--text-main);
}

input,
select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(71, 85, 105, 0.9);
  background-color: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background-color 0.16s ease-out;
}

input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
  background-color: rgba(15, 23, 42, 1);
}

/* 倒计时展示 */
.countdown-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.countdown-label {
  font-size: 0.95rem;
}

.countdown-detail {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--accent);
}

/* 提示文字 */
.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.hint.small {
  font-size: 0.8rem;
}

/* 页脚 */
.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 900px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-inner {
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .world-time .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clock-time {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding-inline: 1.2rem;
  }

  .world-time .world-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
