/* ==========================================================================
   完美体育主站 · 共享样式 /assets/site.css
   1 reset  2 变量  3 中文排版  4 工具类  5 按钮  6 头部  7 页脚
   8 通用组件  9 动效与响应式
   ========================================================================== */

/* ---------- 1. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #F4EFE6;
  --ink: #0B1B2B;
  --space: #12314F;
  --orange: #F26B2A;
  --neon: #B9FF39;
  --red: #D9483B;
  --graphite: #3A4654;
  --mist: #B8B0A4;
  --ice: #DDEBFA;
  --white: #FFFFFF;

  --line: rgba(11, 27, 43, .14);
  --line-strong: rgba(11, 27, 43, .32);
  --line-dark: rgba(255, 255, 255, .14);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4.2vw, 52px);
  --header-h: 78px;
  --cut: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 中文排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--graphite);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 46% at 50% -12%, rgba(18, 49, 79, .09), transparent 72%),
    repeating-linear-gradient(90deg, rgba(11, 27, 43, .022) 0 1px, transparent 1px 68px);
  background-repeat: no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.42rem); letter-spacing: -.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { max-width: 68ch; }

strong { color: var(--ink); font-weight: 700; }

a { text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--orange); color: var(--ink); }

/* ---------- 4. 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 84px); }
.section--tight { padding-block: clamp(22px, 3.6vw, 46px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 300;
  display: inline-block;
  padding: 12px 22px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 14px; outline-offset: -6px; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(22px, 4vw, 46px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--space);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--orange);
}

.annotation {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-style: italic;
  letter-spacing: .01em;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 1px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
    border-color .22s var(--ease), transform .22s var(--ease),
    box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--cta {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}
.btn--cta:hover { background: #FF8147; border-color: #FF8147; }
.btn--cta:focus-visible,
.btn--cta:hover:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(11, 27, 43, .06); border-color: var(--ink); }

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn--dark:hover { background: var(--space); border-color: var(--space); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--space);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.link-arrow::after {
  content: "\2192";
  font-family: var(--font-mono);
  transition: transform .24s var(--ease);
}
.link-arrow:hover { gap: 13px; color: var(--ink); }
.link-arrow:hover::after { transform: translateX(2px); }

/* ---------- 6. 头部：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--white);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 18px 34px -26px rgba(11, 27, 43, .95);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .1);
  z-index: 3;
}
.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), #FF9C63 62%, var(--neon));
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--ink);
}
.brand-text { display: block; }
.brand-name {
  display: block;
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--white);
}
.brand-tag {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .13em;
  color: var(--mist);
  white-space: nowrap;
}

.nav-frame {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 11px 12px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255, 255, 255, .76);
  transition: color .22s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 4;
  margin-left: auto;
  width: 48px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white);
  cursor: pointer;
  transition: border-color .22s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(120deg,
    var(--orange) 0 22px,
    rgba(242, 107, 42, 0) 22px 44px);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 49, 79, .95), rgba(18, 49, 79, 0) 70%);
  pointer-events: none;
}

.footer-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(46px, 6vw, 78px) var(--gutter) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 60px);
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-summary {
  max-width: 36ch;
  font-size: .94rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .66);
}
.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--neon);
  border: 1px solid rgba(185, 255, 57, .35);
}
.footer-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.footer-group-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer-links {
  display: grid;
  gap: 11px;
  list-style: none;
}
.footer-links a {
  position: relative;
  display: inline-block;
  font-size: .94rem;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width .2s var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  padding-left: 14px;
}
.footer-links a:hover::before,
.footer-links a:focus-visible::before { width: 10px; }

.footer-contact-list {
  display: grid;
  gap: 14px;
  list-style: none;
}
.footer-contact-item { display: grid; gap: 3px; }
.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}
.contact-value {
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  word-break: break-word;
}
.contact-value--mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.footer-service {
  max-width: 32ch;
  margin-top: 16px;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .82rem;
}
.footer-legal a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--white);
  border-color: var(--orange);
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .45);
}
.footer-copyright {
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- 8. 通用组件 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 32px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
}
.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.panel--paper { background: rgba(255, 255, 255, .62); }
.panel--ink {
  background: var(--space);
  border-color: transparent;
  color: rgba(255, 255, 255, .8);
}
.panel--ink h2,
.panel--ink h3,
.panel--ink h4 { color: var(--white); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .55);
  color: var(--space);
}
.tag--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.tag--neon { background: var(--ink); border-color: var(--ink); color: var(--neon); }
.tag--red { background: var(--red); border-color: var(--red); color: var(--white); }

.figure { position: relative; margin: 0; }

.figure-frame {
  position: relative;
  overflow: hidden;
  background: var(--space);
  isolation: isolate;
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, rgba(242, 107, 42, .16), transparent 46%, rgba(11, 27, 43, .52));
  pointer-events: none;
}
.figure-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame[data-ratio="21x9"] { aspect-ratio: 21 / 9; }
.figure-frame[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.figure-frame[data-ratio="3x2"]  { aspect-ratio: 3 / 2; }
.figure-frame[data-ratio="4x3"]  { aspect-ratio: 4 / 3; }
.figure-frame[data-ratio="1x1"]  { aspect-ratio: 1 / 1; }

.figure--cut .figure-frame {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.figure--diagonal .figure-frame {
  clip-path: polygon(0 3.4%, 100% 0, 100% 96.6%, 0 100%);
}

.figure-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}
.figure-caption::before {
  content: "";
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--orange);
  transform: translateY(-3px);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-list li + li::before {
  content: "/";
  color: var(--mist);
}
.breadcrumb a {
  color: var(--space);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current="page"] { color: var(--graphite); }

/* ---------- 9. 动效 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-link { padding-inline: 9px; font-size: .88rem; }
  .brand-tag { letter-spacing: .08em; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }

  .header-rail { flex-wrap: wrap; }

  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-name { font-size: 1.04rem; }
  .brand-tag { display: none; }

  .nav-frame {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--space);
    border-top: 1px solid rgba(255, 255, 255, .16);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 34px 44px -32px rgba(0, 0, 0, .95);
  }
  .nav-frame[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    display: block;
    padding: 16px 6px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--white);
    box-shadow: inset 3px 0 0 var(--orange);
    padding-left: 16px;
  }

  .nav-cta { width: 100%; margin-top: 18px; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8, .span-9 { grid-column: span 12; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal { gap: 8px 16px; }
}

@media (max-width: 560px) {
  .footer-groups { grid-template-columns: minmax(0, 1fr); }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
  .figure--diagonal .figure-frame { clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn:hover { transform: none; }
}
