:root {
  --bg-top: #f7f2e8;
  --bg-bottom: #e7ecf3;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #fff7ef;
  --ink: #1d2433;
  --muted: #677286;
  --line: rgba(31, 41, 55, 0.1);
  --brand: #8f000b;
  --brand-soft: #f5d9cd;
  --ok: #1d7a46;
  --warn: #b05600;
  --shadow: 0 20px 60px rgba(56, 42, 28, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(143, 0, 11, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body {
  padding: 18px 14px 36px;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.hero-card,
.panel {
  backdrop-filter: blur(10px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px 20px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -60px auto;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(143, 0, 11, 0.2), rgba(244, 187, 120, 0.2));
  border-radius: 50%;
  filter: blur(2px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.hero-text {
  margin: 14px 0 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

.action-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f000b, #c24b2d);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  box-shadow: 0 14px 28px rgba(143, 0, 11, 0.22);
}

.mini-button {
  appearance: none;
  border: 1px solid rgba(143, 0, 11, 0.18);
  border-radius: 999px;
  background: rgba(143, 0, 11, 0.06);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.grid {
  display: grid;
  gap: 14px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}

.panel-spotlight {
  background: linear-gradient(135deg, var(--panel-strong), rgba(255, 255, 255, 0.9));
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-meta {
  color: var(--muted);
  font-size: 13px;
}

.status-badge,
.hint-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge {
  background: #eef2f7;
  color: #4a5568;
}

.status-open {
  background: rgba(29, 122, 70, 0.12);
  color: var(--ok);
}

.status-empty {
  background: rgba(176, 86, 0, 0.12);
  color: var(--warn);
}

.status-error {
  background: rgba(143, 0, 11, 0.12);
  color: var(--brand);
}

.hint-badge {
  background: rgba(194, 75, 45, 0.12);
  color: #9a4725;
}

.hidden {
  display: none;
}

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

.metric-label,
.small-hint {
  margin: 0;
  color: var(--muted);
}

.metric-label {
  font-size: 13px;
}

.metric-value {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.metric-value-small {
  font-size: 17px;
  line-height: 1.35;
}

.countdown-block + .countdown-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.countdown-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-value {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.countdown-secondary {
  font-size: 24px;
}

.countdown-muted .small-hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.compact-hint {
  margin-top: 12px;
  line-height: 1.6;
}

.notice-box {
  white-space: pre-wrap;
  line-height: 1.65;
}

.slots-list {
  display: grid;
  gap: 10px;
}

.slot-card {
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.slot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slot-date {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

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

.slot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 14px;
  background: #f2f5f9;
  font-weight: 800;
}

.slot-pill-open {
  background: rgba(29, 122, 70, 0.12);
  color: var(--ok);
}

.slot-pill-full {
  background: rgba(143, 0, 11, 0.1);
  color: var(--brand);
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(31, 41, 55, 0.14);
  color: var(--muted);
  line-height: 1.6;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  background: rgba(143, 0, 11, 0.06);
  border-radius: 16px;
  padding: 13px 14px;
}

@media (min-width: 760px) {
  body {
    padding-top: 28px;
  }

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

  .hero-card {
    padding: 28px 24px;
  }
}
