* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #243127;
  background:
    radial-gradient(circle at 20% 15%, rgba(229, 91, 73, .16), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(60, 132, 117, .18), transparent 30%),
    linear-gradient(135deg, #f7efe3, #eef5ed 55%, #f6f1e7);
}

.page {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 36px 0;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: 0;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 620px;
  line-height: 1.8;
  color: #687167;
}

.today {
  padding: 14px 18px;
  border: 1px solid rgba(36, 49, 39, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}

.panel {
  border: 1px solid rgba(36, 49, 39, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 20px 60px rgba(35, 47, 38, .10);
  backdrop-filter: blur(12px);
}

.clock-panel {
  padding: 22px;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.clock {
  --active-angle: 0deg;
  --hour-angle: 0deg;
  --minute-angle: 0deg;
  --second-angle: 0deg;
  position: relative;
  width: min(540px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from -90deg,
      rgba(36, 49, 39, .20) 0deg 1deg,
      transparent 1deg 30deg
    ),
    repeating-conic-gradient(
      from -90deg,
      rgba(36, 49, 39, .08) 0deg .5deg,
      transparent .5deg 6deg
    ),
    radial-gradient(circle, #fffaf0 0 34%, #eef6ec 35% 57%, #dfeadf 58% 100%);
  border: 2px solid rgba(36, 49, 39, .18);
  box-shadow:
    inset 0 0 0 10px rgba(255, 250, 242, .65),
    inset 0 0 0 18px rgba(49, 95, 84, .08),
    0 24px 55px rgba(31, 42, 34, .16);
}

.clock::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed rgba(36, 49, 39, .22);
}

.clock::after {
  content: "";
  position: absolute;
  inset: 3.5%;
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-conic-gradient(
      from -90deg,
      rgba(36, 49, 39, .35) 0deg 2deg,
      transparent 2deg 30deg
    );
  -webkit-mask: radial-gradient(circle, transparent 0 82%, #000 83% 100%);
  mask: radial-gradient(circle, transparent 0 82%, #000 83% 100%);
}

.clock-highlight {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  pointer-events: none;
  background:
    conic-gradient(
      from calc(var(--active-angle) - 15deg),
      rgba(198, 106, 78, .32) 0deg 30deg,
      transparent 30deg 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent 0 44%, #000 45% 77%, transparent 78% 100%);
  mask: radial-gradient(circle, transparent 0 44%, #000 45% 77%, transparent 78% 100%);
  transition: background .25s ease;
}

.clock-number {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2f4035;
  font-size: 18px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.clock-hands {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 999px;
  transform-origin: 50% 100%;
  box-shadow: 0 8px 18px rgba(49, 95, 84, .18);
}

.hour-hand {
  width: 8px;
  height: 22%;
  margin-left: -4px;
  background: #243127;
  transform: rotate(var(--hour-angle));
}

.minute-hand {
  width: 5px;
  height: 31%;
  margin-left: -2.5px;
  background: #315f54;
  transform: rotate(var(--minute-angle));
}

.second-hand {
  width: 2px;
  height: 36%;
  margin-left: -1px;
  background: #c94832;
  transform: rotate(var(--second-angle));
}

.second-hand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22%;
  width: 2px;
  height: 22%;
  background: #c94832;
  transform: translateX(-50%);
}

.clock-axis {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #315f54;
  border: 4px solid #fffaf2;
  box-shadow: 0 5px 16px rgba(36, 49, 39, .24);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hour-node {
  position: absolute;
  z-index: 7;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background: #fffdf7;
  color: #26352b;
  box-shadow: 0 10px 25px rgba(34, 45, 37, .16);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.hour-node:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.hour-node.active {
  color: white;
  background: #315f54;
  box-shadow: 0 14px 32px rgba(49, 95, 84, .34);
}

.branch {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.time {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  opacity: .82;
}

.center {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 20%;
  width: min(170px, 40%);
  min-height: 58px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 250, 242, .82);
  border: 1px solid rgba(36, 49, 39, .13);
  padding: 8px 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.center strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.center span {
  display: block;
  margin-top: 5px;
  color: #667064;
  font-size: 12px;
  line-height: 1.35;
}

.detail {
  padding: 28px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e7f0e6;
  color: #315f54;
  font-weight: 700;
  font-size: 14px;
}

button.locate {
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(49, 95, 84, .24);
  border-radius: 8px;
  background: #fffaf2;
  color: #315f54;
  cursor: pointer;
  font-weight: 700;
}

h2 {
  margin: 28px 0 8px;
  font-size: 42px;
  letter-spacing: 0;
}

.desc {
  margin: 0 0 22px;
  color: #687167;
  line-height: 1.8;
}

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

.info {
  padding: 16px;
  border-radius: 8px;
  background: #f8f6ef;
  border: 1px solid rgba(36, 49, 39, .10);
}

.info small {
  display: block;
  margin-bottom: 8px;
  color: #7b8278;
}

.info b {
  font-size: 20px;
}

.tip {
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid #c66a4e;
  background: #fff7ef;
  line-height: 1.8;
}

.timeline {
  margin-top: 22px;
  padding: 22px;
}

.timeline h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini {
  appearance: none;
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(36, 49, 39, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.mini.active {
  outline: 2px solid #315f54;
  background: #eef6ec;
}

.mini b {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.mini span {
  display: block;
  color: #687167;
  font-size: 13px;
  line-height: 1.5;
}

footer {
  margin-top: 16px;
  color: #777f75;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  header,
  .layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .today {
    white-space: normal;
  }

  .clock-panel {
    min-height: auto;
  }

  .hour-node {
    width: 64px;
    height: 64px;
  }

  .branch {
    font-size: 20px;
  }

  .time {
    font-size: 10px;
  }

  .clock-number {
    font-size: 15px;
  }

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

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(96vw, 420px);
    padding: 22px 0;
  }

  .clock-panel {
    padding: 14px;
  }

  .clock {
    width: min(100%, 380px);
  }

  .hour-node {
    width: 54px;
    height: 54px;
  }

  .clock-number {
    font-size: 13px;
    width: 28px;
    height: 28px;
  }

  .branch {
    font-size: 18px;
  }

  .time {
    display: none;
  }

  .center strong {
    font-size: 20px;
  }

  h2 {
    font-size: 34px;
  }
}
