/* ============================================================
   CourtKings · 全站组件库
   只使用 design-tokens.css 里的变量，不许发明颜色/字体。
   设计语言：高端性能运动（深藏蓝 + 篮球橙 + 米白，窄体大字，硬朗）
   ============================================================ */

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }

/* ---- Typography ---- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.hero-title { font-size: clamp(44px, 7.5vw, 84px); }
.sec-title  { font-size: clamp(28px, 4vw, 42px); }
.card-title { font-size: clamp(20px, 2.6vw, 26px); }
.hl   { color: var(--pri); }
.dim  { color: var(--mute); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.lead { font-size: 18px; color: var(--mute); }
.center { text-align: center; }

/* ---- Layout ---- */
.wrap    { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.s-head { margin-bottom: 40px; }
.s-head .kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; color: var(--pri); font-size: 13px; font-weight: 700; margin-bottom: 8px; display: block; }
.s-head p { max-width: 620px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--pri); color: var(--pri-text); }
.btn-pri:hover { background: var(--pri-soft); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--pri); color: var(--pri); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header / nav ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.logo svg { width: 30px; height: 30px; }
.logo .ck { color: var(--pri); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--mute);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--pri); }
.nav .nav-cta { color: var(--pri-text); background: var(--pri); }
.nav .nav-cta:hover { color: var(--pri-text); background: var(--pri-soft); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; font-size: 18px; line-height: 1; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.hero::before { /* 球场线纹理 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(249,115,22,0.10), transparent 60%),
    linear-gradient(180deg, transparent 0, transparent 99%, rgba(36,48,73,0.8) 99%) 0 0 / 100% 12%,
    linear-gradient(180deg, transparent 0, transparent 99%, rgba(36,48,73,0.8) 99%) 0 0 / 100% 18%;
}
.hero-grid { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; position: relative; }
.hero .kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em; color: var(--pri); font-size: 13px; font-weight: 700; margin-bottom: 14px; display: block; }
.hero p.lead { margin: 20px auto 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-grid .hero-actions { justify-content: center; }

/* ---- Stats bar ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--pri); line-height: 1; }
.stat .l { font-size: 13px; color: var(--mute); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Product cards ---- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.prod-card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,0.6); box-shadow: 0 14px 34px rgba(0,0,0,0.35); }
.prod-media { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-media .sw { position: absolute; inset: 0; opacity: 0.9; }
.prod-media svg { width: 42%; height: auto; position: relative; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35)); }
.prod-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.prod-media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- 带背景图的 hero / CTA ---- */
.hero.has-bg { background: url('../img/bg-court.jpg') center / cover no-repeat, var(--bg); }
.hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,17,32,0.50), rgba(11,17,32,0.85)); pointer-events: none; }
.hero.has-bg .hero-grid { z-index: 1; }
.cta-band.has-bg { background: url('../img/bg-cta.jpg') center / cover no-repeat, var(--surface); position: relative; }
.cta-band.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,17,32,0.92), rgba(11,17,32,0.55)); border-radius: inherit; pointer-events: none; }
.cta-band.has-bg > * { position: relative; z-index: 1; }

/* ---- 场景实拍图块 ---- */
.scene { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.scene img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene.wide { aspect-ratio: 16 / 9; }
.scene .scene-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 26px 18px; background: linear-gradient(180deg, transparent, rgba(11,17,32,0.9)); font-size: 13px; color: var(--mute); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 999px; }
.badge.pri { background: var(--pri); color: var(--pri-text); }
.badge.ok  { background: rgba(74,222,128,0.15); color: var(--ok); }
.badge.warn{ background: rgba(251,191,36,0.15); color: var(--warn); }
.badge.danger { background: rgba(248,113,113,0.15); color: var(--danger); }
.prod-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mute); }
.prod-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; }
.prod-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.prod-price { font-family: var(--font-mono); font-weight: 700; color: var(--pri); font-size: 16px; }
.prod-old { color: var(--mute); text-decoration: line-through; font-size: 13px; margin-right: 6px; }
.prod-cta { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pri); }

/* ---- Product detail ---- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pd-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 30% 25%, rgba(249,115,22,0.14), transparent 65%); }
.pd-media svg { width: 72%; height: auto; position: relative; }
.pd-media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 36px); }
.pd-meta { display: flex; align-items: baseline; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.pd-price { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--pri); }
.pd-old { color: var(--mute); text-decoration: line-through; font-size: 15px; }
.pd-rating { color: var(--warn); font-size: 14px; }
.pd-desc { color: var(--mute); font-size: 15px; margin: 18px 0 0; max-width: 480px; }
.pd-block { margin-top: 28px; }
.pd-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); margin-bottom: 8px; font-weight: 600; }
.size-row { display: flex; gap: 8px; }
.size-btn { padding: 10px 18px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: all .15s; }
.size-btn:hover { border-color: var(--mute); }
.size-btn.active { background: var(--pri); color: var(--pri-text); border-color: var(--pri); }
.pd-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pd-trust span { font-size: 13px; color: var(--mute); }
.pd-trust b { color: var(--text); }

/* ---- Feature trio ---- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feat .ico { font-size: 26px; margin-bottom: 12px; }
.feat h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--mute); margin: 0; }

/* ---- Panel (text blocks) ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.panel h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; }
.panel p { margin: 0 0 14px; color: var(--mute); }
.panel p:last-child { margin-bottom: 0; }
.panel + .panel { margin-top: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 46px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-size: 30px; }
.cta-band p { color: var(--mute); margin: 8px 0 0; max-width: 520px; }

/* ---- Tabs (shop filter) ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); cursor: pointer; transition: all .15s; background: transparent; font-family: var(--font-body); }
.tab:hover { color: var(--text); border-color: var(--mute); }
.tab.active { background: var(--pri); color: var(--pri-text); border-color: var(--pri); }

/* ---- Spec table ---- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { color: var(--mute); font-weight: 600; width: 34%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.spec-table td { font-family: var(--font-mono); }

/* ---- Accordion (FAQ) ---- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.acc + .acc { margin-top: 12px; }
.acc-hd { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-family: var(--font-body); }
.acc-hd .arw { color: var(--pri); transition: transform .2s; }
.acc.open .acc-hd .arw { transform: rotate(180deg); }
.acc-bd { display: none; padding: 0 20px 18px; color: var(--mute); font-size: 14px; }
.acc.open .acc-bd { display: block; }

/* ---- Forms ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pri); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* ---- Breadcrumb ---- */
.bread { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); padding: 20px 0; }
.bread a:hover { color: var(--pri); }
.bread .sep { color: var(--line); }

/* ---- Modal (inquiry) ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(4, 8, 16, 0.75); backdrop-filter: blur(4px); padding: 20px; }
.modal.open { display: flex; }
.modal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; max-width: 460px; padding: 28px; position: relative; max-height: 90vh; overflow: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--mute); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-card h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; }
.modal-card > p { color: var(--mute); font-size: 14px; margin: 0 0 20px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer h4 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--mute); font-size: 14px; }
.footer a:hover { color: var(--pri); }
.footer .logo { margin-bottom: 14px; }
.footer .blurb { color: var(--mute); font-size: 14px; margin: 0 0 16px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }

/* ---- Article / content list ---- */
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: block; transition: border-color .15s, transform .15s; }
.article:hover { border-color: rgba(249,115,22,0.6); transform: translateY(-2px); }
.article .tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pri); font-weight: 700; }
.article h3 { font-family: var(--font-display); font-size: 20px; margin: 8px 0; }
.article p { color: var(--mute); font-size: 14px; margin: 0; }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.quote { border-left: 3px solid var(--pri); padding-left: 18px; font-style: italic; color: var(--text); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--mute); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--pri); font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats, .trio, .split { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; align-items: stretch; }
  .burger { display: block; }
  .stats, .trio, .split { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
