:root {
  --ink: #14211c;
  --muted: #65776f;
  --cream: #fffaf0;
  --paper: #fffffb;
  --gold: #f8c45d;
  --orange: #d96b42;
  --mint: #cfeeda;
  --line: rgba(20, 33, 28, 0.12);
  --shadow: 0 24px 70px rgba(20, 33, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(248, 196, 93, 0.48), transparent 32rem),
    radial-gradient(circle at 95% 10%, rgba(207, 238, 218, 0.65), transparent 34rem),
    linear-gradient(135deg, #fff3c8 0%, #f9f3e4 42%, #d4f0dd 100%);
  color: var(--ink);
  font-family: "Trebuchet MS", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

code {
  border-radius: 0.45rem;
  background: rgba(20, 33, 28, 0.08);
  padding: 0.08rem 0.35rem;
}

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

.hero {
  margin: 24px auto 0;
  width: min(1720px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 42px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 251, 0.78)),
    repeating-linear-gradient(135deg, rgba(20, 33, 28, 0.04) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px clamp(22px, 4vw, 56px);
}

.brand,
.home-pill,
.member-pill,
.primary-action,
.secondary-action,
.filter {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 10px 18px 10px 10px;
}

.brand:hover,
.home-pill:hover,
.member-pill:hover,
.primary-action:hover,
.secondary-action:hover,
.filter:hover,
.academy-card:hover {
  transform: translateY(-2px);
}

.brand-mark {
  display: grid;
  height: 42px;
  width: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 25px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #32443d;
  font-weight: 900;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.75);
}

.member-pill {
  border-radius: 999px;
  background: #e97f00;
  color: white;
  padding: 13px 24px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(233, 127, 0, 0.25);
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(20, 33, 28, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.9));
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(20, 33, 28, 0.1);
}

.home-pill span {
  display: grid;
  height: 24px;
  width: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 950;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(26px, 4vw, 72px);
  padding: 20px clamp(22px, 5vw, 72px) 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 3.8vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 2.8vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-lead,
.section-heading p,
.feature-board p {
  max-width: 820px;
  color: #455951;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 950;
}

.primary-action {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 38px rgba(20, 33, 28, 0.2);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-card {
  align-self: stretch;
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 0%, rgba(248, 196, 93, 0.35), transparent 18rem),
    #14211c;
  color: white;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-card .signal {
  display: inline-flex;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 15px;
  font-weight: 950;
}

.hero-card h2 {
  max-width: 560px;
  margin-top: 30px;
  color: white;
  font-size: clamp(2.05rem, 3.2vw, 3.65rem);
}

.hero-card p,
.hero-card li {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  line-height: 1.7;
}

.hero-card ul {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
}

.section {
  width: min(1720px, calc(100% - 36px));
  margin: 34px auto;
  border-radius: 38px;
  background: rgba(255, 255, 251, 0.86);
  padding: clamp(28px, 4vw, 58px);
  box-shadow: 0 18px 55px rgba(20, 33, 28, 0.1);
}

.featured-academy a {
  color: var(--orange);
  font-weight: 950;
}

.intro-strip {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  align-items: start;
}

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

.route-grid article,
.record-cards article,
.academy-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 240, 0.86));
  padding: 24px;
}

.route-grid strong,
.route-grid span,
.record-cards strong,
.record-cards span {
  display: block;
}

.route-grid strong,
.record-cards strong {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 950;
}

.route-grid span,
.record-cards p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 12px 16px;
  font: inherit;
  font-weight: 950;
}

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

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

.academy-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.academy-card::before {
  content: "";
  position: absolute;
  inset: auto -32px -58px auto;
  height: 138px;
  width: 138px;
  border-radius: 50%;
  background: var(--accent, rgba(248, 196, 93, 0.36));
}

.academy-card:hover {
  border-color: rgba(217, 107, 66, 0.7);
  box-shadow: 0 20px 45px rgba(20, 33, 28, 0.13);
}

.academy-card .badge {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(20, 33, 28, 0.08);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.academy-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.academy-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.academy-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  font-weight: 950;
}

.academy-card .status {
  border-radius: 999px;
  background: #fff1cf;
  color: #8d5c00;
  padding: 8px 11px;
  font-size: 0.8rem;
}

.academy-card.available {
  background:
    radial-gradient(circle at 95% 0%, rgba(248, 196, 93, 0.4), transparent 12rem),
    #14211c;
  color: white;
}

.academy-card.available p,
.academy-card.available .badge {
  color: rgba(255, 255, 255, 0.72);
}

.academy-card.available .badge {
  background: rgba(255, 255, 255, 0.1);
}

.feature-board {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  background:
    linear-gradient(120deg, rgba(20, 33, 28, 0.96), rgba(35, 62, 52, 0.94)),
    repeating-linear-gradient(135deg, rgba(248, 196, 93, 0.08) 0 1px, transparent 1px 17px);
  color: white;
}

.feature-board h2,
.feature-board .eyebrow {
  color: white;
}

.feature-board .eyebrow {
  color: var(--gold);
}

.feature-board p {
  color: rgba(255, 255, 255, 0.72);
}

.record-cards article {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.record-cards span {
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1720px, calc(100% - 36px));
  margin: 34px auto 38px;
  border: 1px solid rgba(20, 33, 28, 0.1);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 251, 0.92), rgba(207, 238, 218, 0.78));
  padding: 26px clamp(22px, 4vw, 42px);
  box-shadow: 0 16px 44px rgba(20, 33, 28, 0.1);
}

.site-footer strong,
.footer-title-link,
.site-footer span {
  display: block;
}

.site-footer strong,
.footer-title-link {
  margin-bottom: 5px;
  font-size: 1.1rem;
  font-weight: 950;
}

.footer-title-link {
  width: fit-content;
  color: var(--ink);
}

.footer-title-link:hover {
  color: var(--orange);
}

.site-footer span {
  color: var(--muted);
  font-weight: 800;
}

.footer-home {
  background:
    radial-gradient(circle at 0% 0%, rgba(248, 196, 93, 0.35), transparent 8rem),
    var(--ink);
  color: white;
  min-width: 230px;
}

.footer-home span {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 1180px) {
  .hero-grid,
  .intro-strip,
  .feature-board {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .hero,
  .section {
    width: min(100% - 20px, 720px);
    border-radius: 28px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 38px;
  }

  h1 {
    font-size: clamp(2.35rem, 9.5vw, 3.55rem);
  }

  .route-grid,
  .record-cards,
  .academy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .academy-card {
    min-height: 190px;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
    width: min(100% - 20px, 720px);
  }
}

/* ==== 手机端横向溢出防护（2026-09-16）====
   网格列写 `1fr` 时最小值是 min-content；内部只要有不可收缩的元素
   （输入框、固定下限的卡片网格）整列就会被顶宽 → 手机上右侧被切掉。
   统一 minmax(0,1fr) + 网格项允许收缩。 */
.hero-copy,
.hero-card,
.section-heading > *,
.intro-strip > *,
.feature-board > *,
.route-grid > *,
.record-cards > *,
.academy-grid > *,
.site-footer > * {
  min-width: 0;
}

.hero-card,
.feature-board,
.academy-card,
.section-heading,
.site-footer {
  overflow-wrap: anywhere;
}

/* 安卓 / iOS 不要自动放大正文字号（会打乱排版并加重横向溢出） */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
