/* 跃然场上 官网。配色与标志一致：墨黑、米白、跃动橙；数字用 Barlow Condensed。 */

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/barlow-condensed-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/barlow-condensed-latin-600-normal.woff2') format('woff2');
}

:root {
  --ink: #16181d;
  --ink-2: #23262d;
  --ink-3: #31353d;
  --paper: #fbf8f3;
  --sand: #f4f1ec;
  --line: rgba(22, 24, 29, 0.09);
  --line-strong: rgba(22, 24, 29, 0.16);
  --text: #16181d;
  --text-2: #4a4e57;
  --text-3: #80848c;
  --orange: #e8552b;
  --orange-ink: #c2401b;
  --green: #1f7a4d;
  --blue: #2457c5;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-num: 'Barlow Condensed', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.num { font-family: var(--font-num); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-3); }
.btn-quiet { height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); font-size: 14px; }
.btn-quiet:hover { border-color: var(--ink); }
.btn-link { padding: 0 4px; color: var(--text-2); }
.btn-link:hover { color: var(--text); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.eyebrow { font-size: 14px; color: var(--orange-ink); font-weight: 500; margin-bottom: 16px; }
.hero h1 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.35; }
.lede { margin-top: 20px; font-size: 17px; color: var(--text-2); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }

/* 场地时刻板：首屏唯一的彩色元素 */
.board {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 12px 32px rgba(22, 24, 29, 0.06);
  overflow: hidden;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.board-title { font-weight: 600; font-size: 15px; }
.board-sub { font-size: 13px; color: var(--text-3); }
.board-stats { display: flex; gap: 24px; margin: 0; }
.board-stats div { text-align: right; }
.board-stats dt { font-size: 12px; color: var(--text-3); }
.board-stats dd { margin: 0; font-size: 22px; line-height: 1.2; }
.board-scroll { overflow-x: auto; }
.board-grid {
  position: relative;
  display: grid;
  grid-template-columns: 60px repeat(12, minmax(44px, 1fr));
  grid-template-rows: 32px repeat(4, 60px);
  min-width: 600px;
  padding: 0 12px 12px 0;
}
.corner { grid-row: 1; grid-column: 1; }
/* 每个小时一列，竖线贯穿整张板 */
.hour {
  grid-row: 1 / 6;
  border-left: 1px solid var(--line);
  padding: 8px 0 0 6px;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-3);
}
.g2 { grid-column: 2; } .g3 { grid-column: 3; } .g4 { grid-column: 4; } .g5 { grid-column: 5; } .g6 { grid-column: 6; } .g7 { grid-column: 7; } .g8 { grid-column: 8; } .g9 { grid-column: 9; } .g10 { grid-column: 10; } .g11 { grid-column: 11; } .g12 { grid-column: 12; } .g13 { grid-column: 13; }
.court {
  grid-column: 1;
  display: flex;
  align-items: center;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}
.r1 { grid-row: 2; } .r2 { grid-row: 3; } .r3 { grid-row: 4; } .r4 { grid-row: 5; }
.c1-2 { grid-column: 2 / 4; } .c1-3 { grid-column: 2 / 5; }
.c2-4 { grid-column: 3 / 6; } .c3-5 { grid-column: 4 / 7; }
.c4-5 { grid-column: 5 / 7; } .c5-6 { grid-column: 6 / 8; }
.c6-8 { grid-column: 7 / 10; } .c7-8 { grid-column: 8 / 10; }
.c7-9 { grid-column: 8 / 11; } .c8-9 { grid-column: 9 / 11; }
.c9-12 { grid-column: 10 / 14; } .c10-11 { grid-column: 11 / 13; }
.c10-12 { grid-column: 11 / 14; } .c11-12 { grid-column: 12 / 14; }
.slot {
  margin: 6px 3px;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
}
.slot b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot span { opacity: 0.72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.member { background: var(--ink); color: var(--paper); }
.slot.coach { background: var(--orange); color: var(--ink); }
.slot.class { background: var(--green); color: #fff; }
.slot.hold {
  background: repeating-linear-gradient(135deg, var(--sand) 0 6px, #ebe6de 6px 12px);
  color: var(--text-2);
}
.now {
  grid-column: 8;
  grid-row: 1 / 6;
  position: relative;
  left: 33.3%;
  width: 2px;
  background: var(--orange);
  pointer-events: none;
}
/* 当前时刻标签压在 15 点刻度上，刻度文字让位 */
.g8 { color: transparent; }
.now span {
  position: absolute;
  top: 7px;
  left: 1px;
  transform: translateX(-50%);
  padding: 0 6px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
}
.legend {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.dot.member { background: var(--ink); }
.dot.coach { background: var(--orange); }
.dot.class { background: var(--green); }
.dot.hold { background: #ddd6cc; }

/* ---------- 通用分区 ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head h2 { font-size: 32px; line-height: 1.35; }
.section-head p { margin-top: 12px; color: var(--text-2); max-width: 34em; }

/* 功能：一张宽卡加五张小卡，场线作为卡片顶边 */
.features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 32px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: var(--ink);
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--text-2); }
.feature-wide { grid-column: span 2; }
.feature-full { grid-column: 1 / -1; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: baseline; }
.feature-full h3 { margin-bottom: 0; }
.feature-wide::before { background: var(--orange); }

/* 账目口径：深色分区 */
.section-ink { background: var(--ink); color: var(--paper); border-top: 0; }
.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.section-ink h2 { font-size: 32px; line-height: 1.35; }
.rules { list-style: none; margin: 32px 0 0; padding: 0; }
.rules li {
  padding: 16px 0;
  border-top: 1px solid rgba(251, 248, 243, 0.12);
  color: rgba(251, 248, 243, 0.72);
}
.rules li:last-child { border-bottom: 1px solid rgba(251, 248, 243, 0.12); }
.rules b { color: var(--paper); font-weight: 500; margin-right: 4px; }

.receipt {
  margin: 0;
  padding: 24px 28px 28px;
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 14px;
  /* 小票下沿的锯齿 */
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
  mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
  padding-bottom: 36px;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}
.receipt-head .num { font-size: 20px; }
.receipt-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.receipt-row .num { font-size: 17px; }
.receipt-row.muted { color: var(--text-3); }
.receipt-row.muted .num { font-size: 15px; }
.receipt-row.total { font-weight: 600; }
.receipt-row.total .num { font-size: 22px; font-weight: 600; color: var(--orange-ink); }
.receipt-rule { border-top: 1px dashed var(--line-strong); margin: 8px 0; }
.receipt-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--sand);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
}

/* 适用场馆 */
.venues-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.venues { list-style: none; margin: 0; padding: 0; }
.venues li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
}
.venues li:last-child { border-bottom: 1px solid var(--line-strong); }
.venues b { font-weight: 600; }
.venues span { color: var(--text-2); }

/* 小程序 */
.section-soft { background: var(--sand); }
.mp-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps .num { font-size: 28px; line-height: 1; color: var(--orange-ink); font-weight: 600; min-width: 36px; }
.steps b { font-weight: 600; }
.steps p { font-size: 15px; color: var(--text-2); margin-top: 2px; }

/* 联系 */
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact h2 { font-size: 28px; line-height: 1.4; }
.contact p { margin-top: 8px; color: var(--text-2); }
.contact-box {
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-width: 260px;
}
.contact-label { font-size: 13px; color: var(--text-3); }
.contact-value { font-size: 18px; font-weight: 500; }
.contact-value a { border-bottom: 1px solid var(--orange); }

/* 页脚 */
.footer { background: var(--ink); color: rgba(251, 248, 243, 0.6); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { white-space: nowrap; }
.beian-mps { display: inline-flex; align-items: center; gap: 4px; }
.beian-mps img { width: auto; height: 16px; }
.footer-links a:hover { color: var(--paper); }

/* ---------- 窄屏 ---------- */
@media (max-width: 960px) {
  .hero-grid, .ledger-grid, .venues-grid, .mp-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: 1 / -1; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-row { gap: 12px; height: 56px; }
  .nav-links { display: none; }
  .btn-quiet { margin-left: auto; }
  .logo img { height: 28px; }
  .hero { padding: 40px 0 64px; }
  .hero h1 { font-size: 28px; }
  .lede { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head h2, .section-ink h2 { font-size: 24px; }
  .features { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .feature-wide { grid-column: auto; }
  .feature-full { display: block; }
  .feature-full h3 { margin-bottom: 8px; }
  .board-head { padding: 12px 16px; }
  .board-stats dd { font-size: 18px; }
  .venues li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .receipt { padding: 20px 20px 32px; }
  .contact h2 { font-size: 22px; }
  .contact-box { min-width: 0; width: 100%; }
}

/* 常见问题 */
.faq { margin: 0; }
.faq > div { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.faq > div:last-child { border-bottom: 1px solid var(--line-strong); }
.faq dt { font-weight: 600; }
.faq dd { margin: 8px 0 0; color: var(--text-2); }
.faq dd a { border-bottom: 1px solid var(--orange); }

@media (max-width: 640px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-brand { flex-wrap: wrap; gap: 8px 20px; }
}
