/* 赛点数据台官网 — Athletic Data Precision */
:root {
  --ink: #0c1210;
  --ink-soft: #151c19;
  --court: #1a2420;
  --line: rgba(229, 169, 59, 0.28);
  --gold: #e5a93b;
  --gold-bright: #f0c25a;
  --gold-deep: #b8841f;
  --mist: #c9d2cb;
  --fog: #8a968e;
  --paper: #f3f1ea;
  --white: #f7f6f2;
  --danger-ok: #6fbf8a;

  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-brand: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;

  --radius: 4px;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--mist);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(12, 18, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(229, 169, 59, 0.18);
  background: rgba(12, 18, 16, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--gold-bright), var(--gold) 45%, var(--gold-deep) 80%),
    conic-gradient(from 210deg, transparent 0 70%, rgba(255, 255, 255, 0.25) 70% 100%);
  box-shadow: 0 0 0 1px rgba(229, 169, 59, 0.35), 0 8px 24px rgba(229, 169, 59, 0.2);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-cn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.brand-en {
  font-family: var(--font-brand);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 0.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
  color: var(--mist);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(229, 169, 59, 0.55);
  border-radius: var(--radius);
  color: var(--gold) !important;
}

.nav-cta:hover {
  background: rgba(229, 169, 59, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(229, 169, 59, 0.35);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(40deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-40deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #1a1408;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(229, 169, 59, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: rgba(201, 210, 203, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(229, 169, 59, 0.55);
  color: var(--gold-bright);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-court {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(229, 169, 59, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(111, 191, 138, 0.08), transparent 50%),
    linear-gradient(160deg, #0a100e 0%, #121a17 45%, #0c1210 100%);
}

.hero-glow {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  right: -12%;
  top: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 169, 59, 0.22), transparent 65%);
  filter: blur(8px);
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 169, 59, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 169, 59, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
  transform: perspective(600px) rotateX(58deg) translateY(-18%) scale(1.4);
  transform-origin: center top;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--fog);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: absolute;
  z-index: 2;
  right: max(1.25rem, calc((100% - var(--max)) / 2));
  bottom: 12%;
  width: min(360px, 38vw);
}

.dash-panel {
  background: linear-gradient(160deg, rgba(26, 36, 32, 0.92), rgba(12, 18, 16, 0.88));
  border: 1px solid rgba(229, 169, 59, 0.28);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(201, 210, 203, 0.35);
}

.dash-dot:first-child {
  background: #e07a5f;
}

.dash-label {
  margin-left: auto;
  font-family: var(--font-brand);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}

.dash-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fog);
}

.metric-value {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
}

.chart {
  grid-column: 1 / -1;
  height: 84px;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding-top: 0.5rem;
}

.chart span {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(229, 169, 59, 0.25), var(--gold));
  transform-origin: bottom;
  animation: bar-rise 1.1s var(--ease) both;
}

.chart span:nth-child(1) { animation-delay: 0.35s; }
.chart span:nth-child(2) { animation-delay: 0.42s; }
.chart span:nth-child(3) { animation-delay: 0.49s; }
.chart span:nth-child(4) { animation-delay: 0.56s; }
.chart span:nth-child(5) { animation-delay: 0.63s; }
.chart span:nth-child(6) { animation-delay: 0.7s; }
.chart span:nth-child(7) { animation-delay: 0.77s; }

/* Sections */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head h2,
.contact-copy h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.section-desc {
  margin: 0;
  color: var(--fog);
  font-size: 1.02rem;
}

/* Intro */
.intro {
  background:
    linear-gradient(180deg, rgba(21, 28, 25, 0.65), rgba(12, 18, 16, 0.2)),
    var(--ink);
  border-top: 1px solid rgba(229, 169, 59, 0.12);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.intro-block {
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(229, 169, 59, 0.35);
}

.intro-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
}

.intro-block p {
  margin: 0;
  color: var(--fog);
}

/* Products */
.products {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(229, 169, 59, 0.08), transparent 55%),
    var(--ink-soft);
}

.product-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.product-tab {
  border: 1px solid rgba(201, 210, 203, 0.18);
  background: transparent;
  color: var(--mist);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.product-tab:hover {
  border-color: rgba(229, 169, 59, 0.45);
  color: var(--gold-bright);
}

.product-tab.is-active {
  background: rgba(229, 169, 59, 0.14);
  border-color: rgba(229, 169, 59, 0.65);
  color: var(--gold-bright);
}

.product-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
  min-height: 320px;
  padding: 2rem 0 0;
  animation: panel-in 0.45s var(--ease);
}

.product-panel[hidden] {
  display: none;
}

.product-tag {
  margin: 0 0 0.6rem;
  font-family: var(--font-brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.product-copy h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
}

.product-copy > p {
  margin: 0 0 1.25rem;
  color: var(--fog);
}

.product-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-copy li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.25rem;
  border-top: 1px solid rgba(201, 210, 203, 0.12);
  color: var(--mist);
}

.product-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 1.5px;
  background: var(--gold);
}

.product-stage {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(229, 169, 59, 0.12), transparent 40%),
    linear-gradient(180deg, #1c2823, #121916);
  border: 1px solid rgba(229, 169, 59, 0.22);
  overflow: hidden;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border: 1px solid rgba(229, 169, 59, 0.18);
  border-radius: 50%;
}

.product-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(229, 169, 59, 0.18);
}

.stage-card {
  position: absolute;
  background: rgba(12, 18, 16, 0.82);
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
}

.stage-main {
  left: 10%;
  top: 22%;
  min-width: 180px;
  animation: float-y 5.5s ease-in-out infinite;
}

.stage-kicker,
.stage-side span {
  display: block;
  font-size: 0.75rem;
  color: var(--fog);
}

.stage-main strong {
  display: block;
  margin: 0.35rem 0;
  font-family: var(--font-brand);
  font-size: 2.2rem;
  color: var(--gold-bright);
  line-height: 1;
}

.stage-sub {
  font-size: 0.8rem;
  color: var(--mist);
}

.stage-side {
  right: 10%;
  bottom: 28%;
}

.stage-side strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-brand);
  font-size: 1.4rem;
  color: var(--white);
}

.stage-delay {
  right: auto;
  left: 18%;
  bottom: 14%;
  top: auto;
  animation: float-y 6.5s ease-in-out infinite reverse;
}

/* Value */
.value {
  border-top: 1px solid rgba(229, 169, 59, 0.12);
}

.value-list {
  display: grid;
  gap: 0;
}

.value-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(201, 210, 203, 0.12);
}

.value-item:last-child {
  border-bottom: 1px solid rgba(201, 210, 203, 0.12);
}

.value-num {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.value-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}

.value-item p {
  margin: 0;
  max-width: 40rem;
  color: var(--fog);
}

/* Contact */
.contact {
  background:
    radial-gradient(ellipse 70% 80% at 20% 100%, rgba(229, 169, 59, 0.14), transparent 55%),
    linear-gradient(180deg, #121916, #0c1210);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--fog);
  max-width: 28rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(229, 169, 59, 0.25);
  background: rgba(12, 18, 16, 0.55);
  border-radius: 10px;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form label span {
  font-size: 0.85rem;
  color: var(--mist);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(201, 210, 203, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(229, 169, 59, 0.65);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.form-note {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--danger-ok);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(229, 169, 59, 0.14);
  padding: 2rem 0 2.5rem;
  background: #090e0c;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--fog);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--fog);
}

.footer-icp {
  font-size: 0.82rem;
  color: var(--fog);
  transition: color 0.25s var(--ease);
}

.footer-icp:hover {
  color: var(--gold-bright);
}

@media (max-width: 760px) {
  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.08); }
}

@keyframes bar-rise {
  from { transform: scaleY(0); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    padding-bottom: 2rem;
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 380px);
    margin: 2.5rem auto 0;
  }

  .hero-content {
    max-width: none;
  }

  .intro-grid,
  .product-panel,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .product-stage {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(12, 18, 16, 0.96);
    border-bottom: 1px solid rgba(229, 169, 59, 0.2);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(201, 210, 203, 0.08);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .hero-brand {
    letter-spacing: 0.04em;
  }

  .value-item {
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .chart span,
  .hero-glow,
  .stage-main,
  .stage-delay,
  .product-panel {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
