/* ============================================================
   乐动体育官网 · 共享样式 /assets/site.css
   碳黑蓝图底 · 侧轨轮次导航 · 切角面板 · 档案纸换气
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
input, select { font: inherit; }

/* ---------- 变量 ---------- */
:root {
  color-scheme: dark;

  --carbon: #0B0F0E;
  --panel: #141A19;
  --green-deep: #0F3B2E;
  --green-line: #1C6B4F;
  --cyan: #2FE0C8;
  --cyan-soft: #A8F5EA;
  --amber: #F5B23C;
  --red: #E2453C;
  --paper: #E8E2D4;
  --index: #8C9A96;

  --text: #D9E3E0;
  --text-dim: #9FB0AB;

  --line-soft: rgba(28, 107, 79, .55);
  --line-faint: rgba(28, 107, 79, .28);
  --cyan-wash: rgba(47, 224, 200, .08);

  --rail-w: 104px;
  --header-h: 58px;
  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1240px;
  --cut: 12px;

  --font-display: "Arial Narrow", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 页面基底 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-h);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  background-color: var(--carbon);
  background-image:
    radial-gradient(920px 540px at 76% -12%, rgba(47, 224, 200, .10), transparent 68%),
    radial-gradient(700px 500px at -8% 108%, rgba(245, 178, 60, .06), transparent 70%),
    linear-gradient(rgba(28, 107, 79, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 107, 79, .13) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p { word-break: break-word; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 96px); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--green-line), rgba(28, 107, 79, 0));
}

/* ---------- 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--carbon);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(28, 107, 79, .45);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green-line), var(--cyan) 58%, var(--amber));
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--carbon);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--cyan-soft); border-color: var(--cyan-soft); }
.btn:active { transform: translateY(1px); }
.btn--cta { letter-spacing: .1em; }
.btn--ghost {
  color: var(--cyan);
  background: transparent;
  border-color: var(--green-line);
}
.btn--ghost:hover {
  color: var(--cyan-soft);
  background: var(--cyan-wash);
  border-color: var(--cyan);
}

/* ============================================================
   页头 / 侧轨导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: rgba(11, 15, 14, .94);
  border-bottom: 1px solid var(--green-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-rail {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--carbon);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cyan-soft);
  white-space: nowrap;
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--index);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  color: var(--cyan-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  border: 1px solid var(--green-line);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-wash); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航（移动端抽屉） */
.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px 36px;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel), #0A1211 92%);
  border-left: 1px solid var(--green-line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .3s;
}
.site-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
}

.site-nav__head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--index);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-list__item { display: block; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  font-size: 15px;
  letter-spacing: .03em;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.nav-link::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  transition: width .18s ease, opacity .18s ease;
}
.nav-link:hover {
  color: var(--cyan-soft);
  background: var(--cyan-wash);
  border-left-color: var(--green-line);
}
.nav-link:hover::before { width: 20px; opacity: 1; }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(47, 224, 200, .1);
  border-left-color: var(--cyan);
}
.nav-link[aria-current="page"]::before { width: 24px; opacity: 1; background: var(--cyan); }

.rail-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--index);
  padding-left: 10px;
  border-left: 2px solid var(--green-line);
}

.site-nav > .btn { width: 100%; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  padding: clamp(38px, 5vw, 68px) 0 26px;
  background: linear-gradient(180deg, var(--carbon) 0%, #0D1413 46%, var(--green-deep) 100%);
  border-top: 1px solid var(--green-line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(260px, 42%);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 224, 200, 0));
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand .brand__mark {
  width: 54px;
  height: 54px;
  font-size: 22px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 74% 100%, 0 100%);
}
.footer-brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cyan-soft);
}
.footer-brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--index);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-dim);
  transition: color .18s ease, padding-left .18s ease;
}
.footer-list a:hover { color: var(--cyan); padding-left: 6px; }

.footer-contact {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--index);
}
.footer-contact p { max-width: 78ch; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--index);
}

/* ============================================================
   通用内容组件
   ============================================================ */
.panel {
  position: relative;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--green-line);
  clip-path: polygon(0 var(--cut), var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: border-color .25s ease, background-color .25s ease;
}
.panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: -42%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, rgba(47, 224, 200, 0), rgba(47, 224, 200, .22), rgba(47, 224, 200, 0));
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.panel:hover { border-color: var(--cyan); }
.panel:hover::after { animation: panelTrace .4s ease forwards; }

@keyframes panelTrace {
  0%   { left: -42%; opacity: 1; }
  100% { left: 112%; opacity: 0; }
}

.panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--index);
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--cyan);
}
.stat__label {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--index);
}
.stat--amber .stat__num { color: var(--amber); }
.stat--red .stat__num { color: var(--red); }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--green-line);
  background-color: #0D1716;
  background-image:
    linear-gradient(140deg, rgba(28, 107, 79, .45), rgba(11, 15, 14, .92)),
    repeating-linear-gradient(45deg, rgba(47, 224, 200, .07) 0 2px, transparent 2px 11px);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 16 / 7; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* 折叠组（问答 / 索引） */
[data-accordion] { border-bottom: 1px solid var(--line-soft); }
[data-accordion-item] {
  position: relative;
  border-top: 1px solid var(--line-soft);
}
[data-accordion-trigger] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 16px 4px 16px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color .18s ease;
}
[data-accordion-trigger]::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
[data-accordion-trigger]:hover { color: var(--cyan); }
[data-accordion-item][data-open] > [data-accordion-trigger] { color: var(--cyan); }
[data-accordion-item][data-open] > [data-accordion-trigger]::after { transform: rotate(-135deg); }
[data-accordion-item][data-open] > [data-accordion-trigger]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--cyan);
}
[data-accordion-panel] { display: none; }
[data-accordion-item][data-open] > [data-accordion-panel] {
  display: block;
  padding: 0 0 20px 16px;
  margin-left: 2px;
  border-left: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 15px;
  animation: panelIn .2s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* 入场显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
  animation: revealFallback 0s linear 2.5s forwards;
}
[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes revealFallback {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   响应式：平板
   ============================================================ */
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   响应式：桌面 · 侧轨轮次导航
   ============================================================ */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .scroll-progress { left: var(--rail-w); }

  .site-header {
    top: 0;
    bottom: 0;
    right: auto;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--green-line);
    background: linear-gradient(180deg, rgba(11, 15, 14, .99) 0%, rgba(15, 59, 46, .9) 52%, rgba(11, 15, 14, .99) 100%);
    overflow: hidden;
  }

  .header-rail {
    flex: 0 0 auto;
    height: auto;
    max-width: none;
    margin: 0;
    padding: 22px 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .brand__mark {
    width: 64px;
    height: 64px;
    font-size: 24px;
    clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  }
  .brand__name {
    font-size: 12px;
    letter-spacing: .04em;
    white-space: normal;
    line-height: 1.4;
  }
  .brand__tagline {
    font-size: 9.5px;
    letter-spacing: .02em;
    white-space: normal;
    line-height: 1.5;
    color: var(--index);
  }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    width: auto;
    transform: none;
    visibility: visible;
    gap: 12px;
    padding: 6px 12px 22px;
    background: transparent;
    border-left: 0;
    box-shadow: none;
    overflow-y: auto;
    transition: none;
  }

  .site-nav__head {
    font-size: 9.5px;
    letter-spacing: .1em;
    line-height: 1.6;
    padding-bottom: 8px;
  }

  .nav-list { gap: 1px; }

  .nav-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 10px 0 10px 9px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .05em;
  }
  .nav-link::before { width: 14px; }
  .nav-link:hover::before { width: 24px; }
  .nav-link[aria-current="page"]::before { width: 28px; }

  .rail-note {
    margin-top: auto;
    font-size: 9.5px;
    line-height: 1.7;
    padding-left: 8px;
  }

  .site-nav > .btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 11px;
    letter-spacing: .06em;
    margin-top: 6px;
  }

  .footer-grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 28px; }
}

@media (min-width: 1440px) {
  :root { --rail-w: 112px; }
}

/* ---------- 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .panel:hover::after { animation: none; }
}
