:root {
  --ink: #111111;
  --paper: #fffdf5;
  --paper-strong: #fff6df;
  --red: #e73b36;
  --blue: #2f6fdf;
  --teal: #00a383;
  --yellow: #ffd23f;
  --line: rgba(17, 17, 17, 0.16);
  --shadow: 0 22px 70px rgba(17, 17, 17, 0.16);
  --finish-progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(47, 111, 223, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(231, 59, 54, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf5 0%, #f7fbff 44%, #fff7e2 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: var(--finish-progress);
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--teal), var(--blue));
  transition: width 400ms ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

#confetti {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding: 24px 0 42px;
}

.hero-copy {
  width: min(100%, 980px);
  min-width: 0;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.65;
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9em;
  margin-bottom: 18px;
  font-size: 5.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: 1.25rem;
  line-height: 1.9;
}

.countdown-panel {
  max-width: 980px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.86);
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.08);
}

.status-label {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 800;
}

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

.time-box {
  min-width: 0;
  padding: 14px 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.time-box strong {
  display: block;
  overflow: hidden;
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.time-box span {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #4b5563;
}

.target-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3f4a54;
}

.freedom-meter {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.meter-top,
.meter-labels {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.meter-top span {
  font-size: 1.05rem;
  font-weight: 900;
}

.meter-top strong {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.meter-track {
  height: 24px;
  margin: 12px 0 10px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.08) 0,
      rgba(17, 17, 17, 0.08) 1px,
      transparent 1px,
      transparent 10%
    ),
    #ffffff;
}

.meter-track span {
  display: block;
  width: var(--finish-progress);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--teal), var(--red));
  transition: width 400ms ease;
}

.meter-labels {
  font-size: 0.88rem;
  font-weight: 800;
  color: #4b5563;
}

.exam-board,
.release-zone {
  margin-top: 34px;
  padding: 40px 0;
  border-top: 2px solid var(--line);
}

.section-head {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2,
.release-copy h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.clock {
  margin: 0;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--blue), var(--red), var(--teal));
}

.timeline-item {
  position: relative;
  --item-progress: 0%;
}

.timeline-pin {
  position: absolute;
  top: 20px;
  left: -30px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
}

.timeline-card {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
}

.timeline-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #44515b;
}

.timeline-card h3 {
  margin-bottom: 10px;
  font-size: 1.9rem;
  line-height: 1.2;
}

.timeline-card p {
  margin-bottom: 12px;
  line-height: 1.75;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #f0f3f6;
}

.progress-track span {
  display: block;
  width: var(--item-progress);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--teal));
  transition: width 350ms ease;
}

.item-state {
  margin: 10px 0 0;
  font-weight: 900;
}

.timeline-item.is-current .timeline-card {
  background: var(--paper-strong);
  box-shadow: 8px 8px 0 rgba(231, 59, 54, 0.15);
}

.timeline-item.is-current .timeline-pin {
  background: var(--yellow);
}

.timeline-item.is-done .timeline-card {
  background: #f1fff9;
}

.timeline-item.is-done .timeline-pin {
  background: var(--teal);
}

.release-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
}

.release-copy p:last-child {
  max-width: 700px;
  margin: 16px 0 0;
  font-size: 1.2rem;
  line-height: 1.9;
}

.release-stamp {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 5px solid var(--red);
  border-radius: 8px;
  background: #ffffff;
  color: var(--red);
  transform: rotate(-3deg);
}

.release-stamp span {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.release-stamp strong {
  display: block;
  margin-top: 8px;
  font-size: 4rem;
  line-height: 1;
}

.is-free .countdown-panel,
.is-free .release-stamp {
  animation: pulseStamp 1100ms ease-in-out infinite alternate;
}

.is-free .status-label {
  color: var(--red);
}

@keyframes pulseStamp {
  from {
    box-shadow: 0 0 0 rgba(231, 59, 54, 0);
  }

  to {
    box-shadow: 0 0 0 8px rgba(231, 59, 54, 0.12);
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 22px, 720px);
    padding-top: 14px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 3.8rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .section-head,
  .release-zone {
    display: block;
  }

  .clock {
    display: inline-block;
    margin-top: 16px;
    white-space: normal;
  }

  .release-stamp {
    max-width: 260px;
    margin-top: 26px;
  }
}

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

  .countdown-panel {
    padding: 18px;
  }

  .time-box strong {
    font-size: 2.35rem;
  }

  h1 {
    font-size: 3rem;
  }

  .section-head h2,
  .release-copy h2 {
    font-size: 1.9rem;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-pin {
    left: -27px;
  }

  .meter-top,
  .meter-labels {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
