:root {
  --ink: #13211b;
  --muted: #5d6b64;
  --line: #dbe7df;
  --court: #2f8a64;
  --court-deep: #1e674b;
  --lime: #c8f46a;
  --yellow: #ffd166;
  --sky: #e8f5ff;
  --peach: #ffe9d0;
  --paper: #fbfdf9;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 65, 49, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 231, 223, 0.9);
  background: rgba(251, 253, 249, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(170px, 18vw, 230px);
  height: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
  background: #edf5ea;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(42px, 6vw, 82px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(232, 245, 255, 0.96), rgba(251, 253, 249, 0.62)),
    radial-gradient(circle at 90% 18%, rgba(255, 209, 102, 0.45), transparent 28%);
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--court-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
span {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10.8em;
  margin: 0;
  font-size: clamp(36px, 4.35vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.16;
}

h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-visual,
.tactic-panel,
.card,
.plan-card,
.video-card,
.video-placeholder,
.feature-card,
.recommend-card {
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 12px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 16px 14px;
  border: 1px solid rgba(31, 104, 75, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 35px rgba(31, 65, 49, 0.08);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 32px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #173f32;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(19, 33, 27, 0.84);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge strong {
  font-size: 18px;
}

.hero-badge span {
  margin-top: 2px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.court-map {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.9) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.75) 24% 25%, transparent 25% 74%, rgba(255, 255, 255, 0.75) 74% 75%, transparent 75%),
    var(--court);
}

.court-map::before {
  position: absolute;
  inset: 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  content: "";
}

.zone {
  position: absolute;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--court-deep);
  font-size: 13px;
  font-weight: 800;
}

.z1 { left: 34px; bottom: 36px; }
.z2 { right: 38px; top: 46%; }
.z3 { left: 42%; top: 44%; }
.z4 { right: 34px; top: 34px; }

.hero-player,
.hero-shuttle {
  position: absolute;
  z-index: 2;
  display: block;
}

.hero-player {
  width: 34px;
  height: 34px;
  border: 7px solid var(--yellow);
  border-radius: 50%;
  background: var(--ink);
}

.hero-player.one {
  animation: heroMoveOne 4.6s infinite ease-in-out;
}

.hero-player.two {
  border-color: #9bdcff;
  animation: heroMoveTwo 4.6s infinite ease-in-out;
}

.hero-shuttle {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(200, 244, 106, 0.55);
  animation: heroShuttle 4.6s infinite ease-in-out;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: block;
  max-width: 980px;
  margin-bottom: 30px;
}

.section-heading .eyebrow,
.planner-copy .eyebrow,
.motion-copy .eyebrow,
.video-copy .eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef7e2;
  color: var(--court-deep);
}

.section-heading h2,
.planner-copy h2,
.motion-copy h2,
.video-copy h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.2vw, 52px);
}

.section-heading p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.featured-section {
  background: var(--white);
}

.featured-heading {
  max-width: 980px;
}

.featured-heading .eyebrow {
  margin-bottom: 14px;
}

.featured-heading h2 {
  max-width: 760px;
}

.featured-heading p:last-child {
  max-width: 760px;
  margin-top: 14px;
  font-size: 18px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 16px;
}

.feature-card {
  display: grid;
  min-height: 260px;
  align-content: end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.96)),
    radial-gradient(circle at 18% 12%, rgba(200,244,106,0.8), transparent 24%),
    var(--sky);
}

.feature-card.wide {
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(19,33,27,0.1), rgba(19,33,27,0.94)),
    url("assets/hero-action.png") center / cover;
  color: var(--white);
}

.feature-card.accent {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.96)),
    radial-gradient(circle at 80% 18%, rgba(255,209,102,0.85), transparent 25%),
    var(--peach);
}

.feature-card p {
  margin: 8px 0 18px;
  color: inherit;
}

.feature-card.wide .tag {
  background: rgba(200, 244, 106, 0.92);
  color: var(--ink);
}

.feature-card.wide p {
  color: rgba(255, 255, 255, 0.88);
}

.feature-card:not(.wide) p {
  color: var(--muted);
}

.feature-card a {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.planner-section {
  background:
    linear-gradient(135deg, rgba(255,248,229,0.95), rgba(238,247,244,0.95));
}

.planner-copy,
.motion-copy,
.video-copy {
  max-width: 980px;
  margin-bottom: 30px;
}

.planner-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.planner-app {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 16px;
  max-width: 1180px;
}

.goal-buttons {
  display: grid;
  gap: 10px;
}

.goal {
  min-height: 66px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.goal.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.recommend-card {
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

#recommendLevel {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.recommend-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

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

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

.card {
  min-height: 245px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef7e2;
  color: var(--court-deep);
  font-size: 12px;
  font-weight: 800;
}

.card p,
.section p,
.plan-card li {
  color: var(--muted);
}

.motion-section {
  background: #eef7f4;
}

.motion-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.motion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  background: var(--ink);
  color: var(--white);
}

.tactic-panel {
  overflow: hidden;
  max-width: 1180px;
  border: 1px solid rgba(31, 104, 75, 0.18);
  border-radius: 8px;
  background: var(--white);
}

.canvas-wrap {
  width: 100%;
  background: #173f32;
}

#tacticCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 920 / 620;
}

.tactic-info {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 16px;
  padding: 18px;
}

.tactic-info p {
  margin: 4px 0 0;
}

.info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#drillTitle {
  font-size: 24px;
}

.phase-track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.phase {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.phase.active {
  border-color: var(--court-deep);
  background: var(--lime);
  color: var(--ink);
}

.plan-section {
  background: var(--paper);
}

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

.plan-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.plan-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.mistakes-section {
  background: var(--sky);
}

.mistake-table {
  overflow: hidden;
  border: 1px solid rgba(31, 104, 75, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row.head {
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.row span:first-child {
  font-weight: 800;
}

.video-band {
  background: #fff8e5;
}

.video-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
}

.video-placeholder {
  display: grid;
  min-height: 170px;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 2px dashed rgba(31, 104, 75, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--court-deep);
}

.video-placeholder span {
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
}

.video-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 104, 75, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #0b0f0d;
  object-fit: cover;
}

.video-card strong {
  color: var(--court-deep);
  font-size: 16px;
  line-height: 1.35;
}

.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.stats-section {
  padding-top: 18px;
  padding-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(238, 247, 244, 0.96), rgba(255, 248, 229, 0.88));
}

.stats-section .section-heading {
  max-width: 720px;
  margin-bottom: 10px;
}

.stats-section .section-heading .eyebrow {
  margin-bottom: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.stats-section .section-heading h2 {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.25;
}

.stats-section .section-heading p:last-child {
  max-width: 560px;
  margin-top: 5px;
  font-size: 12px;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}

.visit-card {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.visit-card span,
.visit-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.visit-card strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.visit-card small {
  font-size: 10px;
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes heroMoveOne {
  0%, 100% { left: 43%; bottom: 18%; }
  28% { left: 24%; bottom: 30%; }
  54% { left: 33%; bottom: 70%; }
  78% { left: 48%; bottom: 52%; }
}

@keyframes heroMoveTwo {
  0%, 100% { right: 23%; top: 18%; }
  32% { right: 31%; top: 34%; }
  60% { right: 18%; top: 52%; }
  84% { right: 34%; top: 28%; }
}

@keyframes heroShuttle {
  0%, 100% { left: 38%; bottom: 25%; transform: rotate(0deg); }
  28% { left: 24%; bottom: 63%; transform: rotate(120deg); }
  54% { left: 71%; bottom: 74%; transform: rotate(250deg); }
  78% { left: 57%; bottom: 38%; transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  .skill-grid.dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .motion-section,
  .planner-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero,
  .video-band,
  .section-heading,
  .featured-grid,
  .planner-app {
    grid-template-columns: 1fr;
  }

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

  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 38px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .skill-grid,
  .skill-grid.dense,
  .plan-grid,
  .video-grid,
  .visit-grid,
  .tactic-info,
  .phase-track {
    grid-template-columns: 1fr;
  }

  .court-map {
    min-height: 320px;
  }

  .hero-visual img {
    aspect-ratio: 3 / 2;
  }
}
