:root {
  --ink: #06131a;
  --muted: #64717a;
  --paper: #f7fbfb;
  --foam: #e9f6f4;
  --teal: #047f85;
  --deep: #071923;
  --coral: #e66f52;
  --gold: #d9a441;
  --line: rgba(6, 19, 26, 0.12);
  --shadow: 0 26px 70px rgba(4, 43, 50, 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%;
}

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

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

.hero {
  position: relative;
  min-height: 92vh;
  padding: 20px clamp(18px, 5vw, 72px) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 14% 18%, rgba(230, 111, 82, 0.38), transparent 25%),
    radial-gradient(circle at 76% 28%, rgba(217, 164, 65, 0.26), transparent 24%),
    linear-gradient(135deg, #06222c 0%, #0a575d 45%, #0c8487 100%);
}

.hero--poster {
  min-height: 0;
  padding: 0;
  display: block;
  color: white;
  background: #06222c;
}

.hero-poster {
  width: 100%;
  height: auto;
  min-height: 100svh;
  object-fit: cover;
  object-position: center top;
}

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

.hero--poster::after {
  content: none;
}

.hero__water {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.55;
  pointer-events: none;
}

.hero__water span {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(1px);
  animation: drift 12s ease-in-out infinite;
}

.hero__water span:nth-child(1) {
  top: 18%;
}

.hero__water span:nth-child(2) {
  top: 46%;
  animation-delay: -4s;
  opacity: 0.5;
}

.hero__water span:nth-child(3) {
  top: 72%;
  animation-delay: -8s;
  opacity: 0.34;
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(-2%) scaleY(0.34);
  }
  50% {
    transform: translateX(4%) scaleY(0.42);
  }
}

.topbar {
  position: absolute;
  z-index: 3;
  inset: 18px clamp(18px, 5vw, 72px) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar--poster {
  justify-content: flex-end;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.music-button {
  position: fixed;
  z-index: 40;
  top: max(14px, env(safe-area-inset-top));
  right: max(calc((100vw - 1440px) / 2 + 18px), 14px);
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: white;
  background: rgba(7, 25, 35, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  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, 164, 65, 0.22);
}

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

.floating-team-home {
  position: fixed;
  z-index: 40;
  top: max(14px, env(safe-area-inset-top));
  left: max(calc((100vw - 1440px) / 2 + 18px), 14px);
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(7, 25, 35, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.floating-team-home.is-hidden {
  display: none;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.65;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__stats span {
  min-width: 116px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__stats strong {
  display: block;
  margin-bottom: 4px;
  color: #fff7d9;
  font-size: 23px;
}

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

.primary-link,
.secondary-link,
.footer a {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.primary-link {
  color: var(--deep);
  background: #fff7d9;
}

.secondary-link {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.hero__portrait-stack {
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.hero__portrait {
  position: absolute;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero__portrait--main {
  right: 7%;
  bottom: 20px;
  width: min(78%, 420px);
  aspect-ratio: 0.72;
  border-radius: 28px;
}

.hero__portrait--side {
  width: min(34%, 175px);
  aspect-ratio: 0.72;
  border-radius: 18px;
}

.hero__portrait--side.top {
  left: 2%;
  top: 70px;
  transform: rotate(-7deg);
}

.hero__portrait--side.bottom {
  left: 10%;
  bottom: 62px;
  transform: rotate(8deg);
}

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

.intro-band {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  backdrop-filter: blur(18px);
}

.intro-band h2,
.section-heading h2,
.coach-profile h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-band h2,
.section-heading h2 {
  font-size: clamp(28px, 5vw, 48px);
}

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

.section-heading {
  margin-bottom: 22px;
}

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

.section-note {
  max-width: 440px;
  margin: 0 0 6px;
  padding: 11px 14px;
  border: 1px solid rgba(4, 127, 133, 0.22);
  border-radius: 8px;
  color: #31505a;
  background: rgba(233, 246, 244, 0.72);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.coach-stage,
.cards-section,
.timeline-section,
.courses {
  padding: 76px 0 0;
}

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

.coach-card {
  min-height: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: 0 18px 44px rgba(4, 43, 50, 0.08);
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.coach-card:hover,
.coach-card:focus-visible,
.coach-card.is-active {
  border-color: rgba(4, 127, 133, 0.55);
  box-shadow: 0 24px 54px rgba(4, 43, 50, 0.16);
  transform: translateY(-3px);
  outline: none;
}

.coach-card img {
  width: 100%;
  aspect-ratio: 0.84;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
  background: var(--foam);
}

.coach-card span {
  display: block;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 900;
}

.coach-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.coach-prompt {
  margin-top: 18px;
  padding: 22px;
  border: 1px dashed rgba(4, 127, 133, 0.38);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(233, 246, 244, 0.72);
  font-weight: 800;
  text-align: center;
}

.coach-prompt p {
  margin: 0;
}

.coach-profile {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.coach-profile.is-hidden {
  display: none;
}

.coach-detail-block.is-hidden {
  display: none;
}

.coach-profile__photo {
  min-height: 520px;
  background: linear-gradient(145deg, #d8efed, #fff3dc);
}

.coach-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.coach-profile__copy {
  padding: clamp(24px, 5vw, 48px);
}

.coach-profile__role {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 900;
}

.coach-profile h3 {
  font-size: clamp(34px, 6vw, 62px);
}

.coach-profile__quote {
  margin: 18px 0;
  color: #42515a;
  font-size: 18px;
  line-height: 1.78;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #7a4616;
  background: #fff1d0;
  font-size: 13px;
  font-weight: 800;
}

.fact-list {
  margin: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-weight: 800;
}

.fact-list dd {
  margin: 0;
  line-height: 1.75;
}

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

.feature-grid article {
  min-height: 220px;
  padding: 22px;
  border-radius: 8px;
  color: white;
  background: var(--deep);
}

.feature-grid article:nth-child(2) {
  background: var(--teal);
}

.feature-grid article:nth-child(3) {
  color: var(--deep);
  background: #ffe2a5;
}

.feature-grid article:nth-child(4) {
  background: #7a3f34;
}

.feature-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
}

.feature-grid article:nth-child(3) span {
  color: rgba(6, 19, 26, 0.45);
}

.feature-grid h3 {
  margin: 56px 0 12px;
  font-size: 22px;
}

.feature-grid p,
.timeline p {
  margin: 0;
  line-height: 1.72;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  color: var(--teal);
  font-size: 19px;
}

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

.course-strip span {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
}

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

.share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

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

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

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

.share-url-row input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(4, 127, 133, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: var(--foam);
  font: inherit;
}

.share-url-row button,
.share-actions button,
.download-qr {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--teal);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

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

.share-actions button {
  background: var(--deep);
}

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

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

.share-status {
  min-height: 24px;
  margin-top: 12px !important;
  color: var(--teal) !important;
  font-weight: 800;
}

.qr-box {
  min-height: 280px;
  padding: 18px;
  border: 1px dashed rgba(4, 127, 133, 0.38);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(233, 246, 244, 0.72);
}

.qr-box > div {
  width: 220px;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.qr-box canvas,
.qr-box img,
.qr-box svg {
  width: 220px !important;
  height: 220px !important;
  border: 10px solid white;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(4, 43, 50, 0.16);
}

.qr-box canvas.qr-code-labeled,
.qr-box img.qr-code-labeled {
  width: 260px !important;
  height: auto !important;
  max-width: 100%;
}

.footer {
  padding: 58px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

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

.footer .icp-record {
  margin: 0;
}

.footer .icp-record a {
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .hero {
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }

  .hero__content {
    align-self: end;
    padding-top: 72px;
  }

  .hero h1 {
    max-width: 7em;
  }

  .hero__portrait-stack {
    min-height: 330px;
    order: -1;
    margin-top: 38px;
  }

  .hero__portrait--main {
    right: 2%;
    bottom: 4px;
    width: min(56%, 250px);
  }

  .hero__portrait--side {
    width: min(31%, 128px);
  }

  .hero__portrait--side.top {
    left: 4%;
    top: 40px;
  }

  .hero__portrait--side.bottom {
    left: 20%;
    bottom: 24px;
  }

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

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

  .section-heading--with-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-note {
    max-width: none;
    margin-bottom: 0;
  }

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

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

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

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

  .topbar {
    inset-inline: 18px;
  }

  .hero__stats span {
    flex: 1 1 100px;
  }

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

  .intro-band {
    padding: 20px;
  }

  .coach-profile__copy {
    padding: 22px;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .coach-card {
    min-height: 184px;
  }

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

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

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

  .share-url-row {
    flex-direction: column;
  }

  .share-url-row button,
  .share-actions button,
  .download-qr {
    width: 100%;
  }

  .qr-box {
    min-height: 250px;
  }

  .feature-grid h3 {
    margin-top: 36px;
  }

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

.hero.hero--poster {
  min-height: 0;
  padding: 0;
  display: block;
}

.hero.hero--poster .hero-poster {
  width: 100%;
  height: auto;
  min-height: 0;
}

@media (min-width: 900px) {
  .hero.hero--poster {
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .hero.hero--poster .hero-poster {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
}
