/*! ds-price-clock · 极简样式：一个大灯 + 倒计时 + 价格表 */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #0b0d10;
  --panel: #12151a;
  --fg: #eef1f5;
  --muted: #8a929e;
  --line: #23272f;
  --peak: #ff453a;
  --off: #2fd35c;
  --accent: var(--off);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --panel: #ffffff;
    --fg: #14171c;
    --muted: #6b7280;
    --line: #e6e8ec;
    --peak: #e5342a;
    --off: #12a150;
    color-scheme: light;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body.peak { --accent: var(--peak); }
body.off { --accent: var(--off); }

.clock {
  max-width: 30rem;
  margin: 0 auto;
  padding: 18px 18px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.actions { display: flex; gap: 6px; }

.chip {
  font: inherit;
  font-size: 12px;
  line-height: 1;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.chip:hover {
  color: var(--fg);
  border-color: var(--muted);
}

.chip.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  text-decoration: none;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 0 4px;
  text-align: center;
}

.led {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--accent) 15%, transparent),
    0 0 44px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

body.peak .led { animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse {
  50% {
    box-shadow:
      0 0 0 15px color-mix(in srgb, var(--accent) 8%, transparent),
      0 0 62px color-mix(in srgb, var(--accent) 80%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.peak .led { animation: none; }
}

.phase {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.countdown {
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}

.label {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.value {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(30px, 11vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.when {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.prices > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.prices > summary::-webkit-details-marker { display: none; }

.prices > summary:hover { color: var(--fg); }

caption {
  padding: 0 0 8px;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}

.prices > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.prices[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

th,
td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

th:first-child,
td:first-child { text-align: left; }

thead th {
  font-size: 12px;
  color: var(--muted);
}

tr.group th {
  padding-top: 14px;
  border-bottom: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}

tr.group th span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

td.on {
  font-weight: 700;
  color: var(--accent);
}

td.dim { color: var(--muted); }

th.on { color: var(--accent); }

.foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.foot p { margin: 0; }
.foot a { color: inherit; }

.warn { color: #d9a300; }
