:root {
  --ink: #06131a;
  --muted: #66737b;
  --paper: #f7fbfb;
  --foam: #e9f7f4;
  --line: rgba(6, 19, 26, 0.12);
  --deep: #061926;
  --blue: #1369ac;
  --teal: #07858a;
  --gold: #d9b84a;
  --coral: #e57355;
  --shadow: 0 24px 70px rgba(7, 36, 49, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: 118px clamp(18px, 5vw, 76px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  color: white;
  background:
    linear-gradient(130deg, rgba(6, 25, 38, 0.92) 0%, rgba(5, 84, 96, 0.85) 55%, rgba(19, 105, 172, 0.78) 100%),
    url("./assets/beidou-logo-transparent.png?v=20260609-beidou-a") right 9% top 12% / min(42vw, 520px) auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 110px;
  background: linear-gradient(to bottom, rgba(247, 251, 251, 0), var(--paper) 82%);
  pointer-events: none;
}

.topbar {
  position: absolute;
  z-index: 4;
  top: max(16px, env(safe-area-inset-top));
  left: clamp(16px, 5vw, 76px);
  right: clamp(16px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.music-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: white;
  background: rgba(6, 25, 38, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.music-button__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 184, 74, 0.24);
}

.music-button.is-playing .music-button__icon {
  animation: pulse 1.25s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(0.72);
  }
}

.hero__copy,
.hero__team {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
}

.hero__lead {
  margin: 22px 0 0;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  color: #fff5bf;
}

.hero__text {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.85;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions a {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--coral);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(229, 115, 85, 0.28);
}

.hero__actions a + a {
  color: var(--deep);
  background: white;
}

.hero__team {
  min-height: 540px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0;
}

.hero__team img {
  width: 132%;
  max-width: none;
  margin-left: -16%;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.28));
}

.hero__team img:nth-child(2) {
  width: 145%;
  margin-left: -22%;
  z-index: 2;
}

.intro-band,
.coach-stage,
.cards-section,
.timeline-section,
.courses,
.share-panel,
.footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  margin-top: 36px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.intro-band h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.15;
}

.intro-band p:last-child,
.section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.section-heading {
  margin: 70px 0 22px;
}

.section-heading--with-note {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-note {
  max-width: 360px;
  text-align: right;
}

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

.coach-card {
  min-width: 0;
  padding: 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(6, 19, 26, 0.08);
}

.coach-card.is-active {
  border-color: rgba(19, 105, 172, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, #eaf6ff 100%);
}

.coach-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 6px;
  background: linear-gradient(180deg, #f4fbff 0%, #dff2f0 100%);
}

.coach-card span {
  font-size: 15px;
  font-weight: 900;
}

.coach-card small {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.coach-profile {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #06202d 0%, #0b6f7e 56%, #1675b2 100%);
  color: white;
  box-shadow: var(--shadow);
}

.coach-profile__photo {
  min-height: 420px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.42), transparent 32%),
    rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.coach-profile__photo img {
  width: min(360px, 100%);
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.26));
}

.coach-profile__role {
  margin: 0 0 8px;
  color: #fff0ad;
  font-weight: 900;
}

.coach-profile h3 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.coach-profile__quote {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.75;
}

.tag-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-row span,
.course-strip span {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.16);
}

.fact-list {
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.fact-list div {
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.fact-list dt {
  font-weight: 900;
}

.fact-list dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

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

.feature-grid article,
.timeline div,
.share-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 38px rgba(6, 19, 26, 0.08);
}

.feature-grid article {
  min-height: 180px;
  padding: 22px;
}

.feature-grid strong,
.timeline strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.35;
}

.feature-grid p,
.timeline p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.course-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-strip span {
  color: var(--deep);
  background: #e5f4f4;
}

.poster-panel {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.coach-poster-card {
  margin: 0;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 247, 244, 0.92)),
    var(--foam);
  box-shadow: var(--shadow);
}

.coach-poster-card img {
  width: min(520px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(6, 19, 26, 0.16);
}

.share-card {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: center;
}

.share-card__copy p {
  color: var(--muted);
  line-height: 1.75;
}

.share-url-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.share-url-row,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-url-row input {
  min-width: 0;
  flex: 1 1 260px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.share-url-row button,
.share-actions button,
.download-qr {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-actions {
  margin-top: 12px;
}

.download-qr {
  background: var(--teal);
}

.download-qr.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.share-status {
  min-height: 24px;
  margin: 10px 0 0;
}

.qr-box {
  min-height: 250px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--foam);
}

#coachQrCode img,
#coachQrCode canvas {
  width: 196px;
  height: 196px;
}

.footer {
  margin-top: 70px;
  padding: 32px 0 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.record-placeholder {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: #8b969c;
}

@media (max-width: 940px) {
  .hero {
    min-height: 0;
    padding-top: 104px;
    grid-template-columns: 1fr;
  }

  .hero__team {
    min-height: 360px;
    order: -1;
  }

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

  .coach-profile,
  .intro-band,
  .share-card {
    grid-template-columns: 1fr;
  }

  .section-heading--with-note {
    display: block;
  }

  .section-note {
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }

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

  .timeline div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 94px 18px 54px;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero__team {
    min-height: 280px;
  }

  .hero__actions a {
    flex: 1 1 100%;
  }

  .intro-band,
  .coach-stage,
  .cards-section,
  .timeline-section,
  .courses,
  .poster-panel,
  .share-panel,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .intro-band {
    margin-top: 24px;
    padding: 20px;
  }

  .section-heading {
    margin-top: 52px;
  }

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

  .coach-card small {
    min-height: auto;
  }

  .coach-profile {
    padding: 18px;
  }

  .coach-profile__photo {
    min-height: 330px;
  }

  .share-card {
    padding: 18px;
  }
}
