:root {
  --page: #f5f8f0;
  --page-deep: #e8f0df;
  --ink: #0a2e36;
  --copy: #4d6564;
  --soft: #8a9a91;
  --emerald: #14cc60;
  --emerald-deep: #0b7f62;
  --sun: #efd941;
  --amber: #d4882a;
  --shadow: 0 18px 42px rgba(39, 77, 55, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 0%, rgba(20, 204, 96, 0.16), transparent 28rem),
    linear-gradient(180deg, #fbfff4 0%, var(--page) 36%, #edf5e9 100%);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.schedule-page {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px calc(34px + env(safe-area-inset-bottom));
  position: relative;
}

.safe-top {
  height: calc(54px + env(safe-area-inset-top));
}

.hero {
  padding-top: 10px;
}

.hero p,
.wall-entry small {
  margin: 0;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero span {
  display: block;
  margin-top: 8px;
  color: var(--copy);
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.stat {
  min-width: 0;
  padding: 15px 8px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  font-size: 22px;
}

.stat span {
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
}

.wall-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(20, 204, 96, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(46, 150, 173, 0.08), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow);
}

.wall-entry span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.wall-entry b {
  font-size: 17px;
}

.wall-entry em {
  color: var(--copy);
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.wall-entry strong {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(20, 204, 96, 0.22);
}

.stepper {
  display: flex;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.step {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.step__dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--page-deep);
  border-radius: 50%;
  color: var(--soft);
  background: var(--page-deep);
  font-size: 11px;
  font-weight: 800;
}

.step.is-completed .step__dot {
  color: #fff;
  border-color: var(--emerald);
  background: var(--emerald);
}

.step.is-active .step__dot {
  color: var(--emerald);
  border-color: var(--emerald);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(20, 204, 96, 0.15);
}

.step__label {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step.is-active .step__label {
  color: var(--emerald);
}

.step.is-completed .step__label {
  color: var(--copy);
}

.step__line {
  position: absolute;
  z-index: 0;
  top: 12px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--page-deep);
}

.step__line.is-done {
  background: var(--emerald);
}

.timeline {
  margin-top: 22px;
}

.timeline-item {
  display: flex;
  gap: 12px;
}

.timeline-axis {
  display: flex;
  flex: 0 0 22px;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--page-deep);
  font-size: 10px;
  font-weight: 800;
}

.timeline-item.is-completed .timeline-dot,
.timeline-item.is-active .timeline-dot {
  background: var(--emerald);
}

.timeline-item.is-active .timeline-dot {
  box-shadow: 0 0 0 5px rgba(20, 204, 96, 0.18);
}

.timeline-line {
  flex: 1;
  width: 2px;
  min-height: 18px;
  margin: 5px 0;
  background: var(--page-deep);
}

.timeline-item.is-completed .timeline-line {
  background: rgba(20, 204, 96, 0.42);
}

.timeline-card {
  flex: 1;
  min-width: 0;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.timeline-item.is-active .timeline-card {
  border: 1px solid rgba(20, 204, 96, 0.24);
  background: linear-gradient(160deg, rgba(20, 204, 96, 0.08) 0%, rgba(255, 255, 255, 0.9) 62%);
}

.timeline-item.is-upcoming .timeline-card {
  opacity: 0.68;
}

.timeline-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-card h3 {
  margin: 0;
  font-size: 17px;
}

.badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.badge--completed {
  color: #758079;
  background: rgba(177, 187, 177, 0.2);
}

.badge--active {
  color: var(--emerald);
  background: rgba(20, 204, 96, 0.14);
}

.badge--upcoming {
  color: #aa9821;
  background: rgba(239, 217, 65, 0.22);
}

.timeline-card > strong {
  display: block;
  margin-top: 9px;
  font-size: 14px;
}

.timeline-card p {
  margin: 6px 0 0;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.65;
}

.timeline-card aside {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(10, 46, 54, 0.04);
}

.timeline-card aside b,
.timeline-card aside span {
  display: block;
}

.timeline-card aside b {
  font-size: 13px;
}

.timeline-card aside span {
  margin-top: 5px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.section {
  margin-top: 30px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
}

.flow-start,
.flow-node,
.flow-end {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 14px;
}

.flow-start {
  padding: 16px;
  border: 1px solid rgba(20, 204, 96, 0.18);
  background: linear-gradient(135deg, rgba(20, 204, 96, 0.1), rgba(10, 46, 54, 0.05));
}

.flow-start strong {
  color: var(--emerald);
  font-size: 28px;
  line-height: 1;
}

.flow-start b,
.flow-start span,
.flow-node b,
.flow-node small,
.flow-end b,
.flow-end small {
  display: block;
}

.flow-start b {
  font-size: 15px;
}

.flow-start span,
.flow-node small,
.flow-end small {
  margin-top: 3px;
  color: var(--copy);
  font-size: 12px;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 0;
}

.flow-arrow span {
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, rgba(20, 204, 96, 0.45), rgba(20, 204, 96, 0.18));
}

.flow-arrow b {
  margin: 3px 0;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: var(--page-deep);
  font-size: 10px;
}

.flow-arrow i {
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  border-top: 8px solid rgba(20, 204, 96, 0.35);
}

.flow-node {
  position: relative;
  overflow: hidden;
  padding: 15px 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.flow-node::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
}

.flow-node--green::before {
  background: linear-gradient(180deg, var(--emerald), #8bd6ab);
}

.flow-node--teal::before {
  background: linear-gradient(180deg, var(--emerald-deep), #2a6975);
}

.flow-node--gold::before {
  background: linear-gradient(180deg, var(--sun), #f3e88f);
}

.flow-node span {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--page-deep);
  font-size: 13px;
  font-weight: 900;
}

.flow-node div {
  flex: 1;
  min-width: 0;
}

.flow-node b {
  font-size: 16px;
}

.flow-node em {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 46, 54, 0.06);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.flow-branch {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.flow-branch__card {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 15px 8px;
  border-radius: 14px;
  text-align: center;
}

.flow-branch__card--main {
  border: 1px solid rgba(20, 204, 96, 0.18);
  background: linear-gradient(160deg, rgba(20, 204, 96, 0.1), rgba(255, 255, 255, 0.86));
}

.flow-branch__card--revival {
  border: 1px solid rgba(255, 184, 107, 0.24);
  background: linear-gradient(160deg, rgba(255, 184, 107, 0.12), rgba(255, 255, 255, 0.86));
}

.flow-branch__card strong {
  font-size: 18px;
}

.flow-branch__card--main strong {
  color: var(--emerald);
}

.flow-branch__card--revival strong {
  color: var(--amber);
}

.flow-branch__card b {
  font-size: 14px;
}

.flow-branch__card span {
  color: var(--soft);
  font-size: 11px;
}

.flow-plus {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  color: var(--soft);
  font-size: 20px;
  font-weight: 900;
}

.flow-end {
  padding: 18px 16px;
  border: 1px solid rgba(239, 217, 65, 0.26);
  background: linear-gradient(135deg, rgba(239, 217, 65, 0.13), rgba(20, 204, 96, 0.08));
  box-shadow: 0 14px 30px rgba(239, 217, 65, 0.1);
}

.flow-end > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffd56a, #f0c030);
  font-size: 14px;
  font-weight: 900;
}

.flow-end b {
  font-size: 17px;
}

.districts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.district-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}

.district-chip b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  font-size: 11px;
}

.highlights {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.highlights p {
  display: flex;
  gap: 9px;
  margin: 0;
  color: var(--copy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.highlights span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(circle at 75% 8%, rgba(20, 204, 96, 0.16), transparent 24rem),
      linear-gradient(90deg, #eaf2e4 0%, #fbfff4 50%, #e8f2ea 100%);
  }

  .schedule-page {
    border-right: 1px solid rgba(10, 46, 54, 0.06);
    border-left: 1px solid rgba(10, 46, 54, 0.06);
    background: rgba(245, 248, 240, 0.62);
  }
}

@media (max-width: 360px) {
  .schedule-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .timeline-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-node em {
    padding-inline: 8px;
  }
}
