/* ============================================================
   亚盈体育 · 共享站点样式 /assets/site.css
   轨道式布局 · 深夜球场绿 · 玻璃层与实色层并置
   ============================================================ */

/* ---------- 0. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #071C16;
}

body {
  margin: 0;
  background: #071C16;
  color: #E8F5F0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #FFFFFF;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
a { color: #2BF0C8; text-decoration: none; }
a:hover { color: #E8FF6A; }

::selection { background: #2BF0C8; color: #071C16; }

:focus-visible {
  outline: 2px solid #2BF0C8;
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---------- 1. 变量 ---------- */
:root {
  --night: #071C16;
  --turf: #0E3327;
  --panel: #0A241C;
  --cyan: #2BF0C8;
  --orange: #FF8A3D;
  --lemon: #E8FF6A;
  --indigo: #241B4F;
  --wine: #5C1F35;
  --glass: #E8F5F0;
  --mist: #9DB8AE;
  --line: #1F3B33;
  --rail-w: 248px;
  --radius: 2px;
  --gap: clamp(16px, 2.2vw, 30px);
  --gutter: clamp(16px, 4vw, 46px);

  --font-display: "Barlow Condensed", "Oswald", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --shadow-layer: none;
}

/* ---------- 2. 排版与通用文字 ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: .78em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.sec-title {
  font-size: clamp(26px, 3.4vw, 44px);
  margin-bottom: 14px;
}

.display {
  font-size: clamp(38px, 6.4vw, 86px);
  line-height: .98;
}

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--mist);
  max-width: 38em;
}

.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;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--orange);
  color: #1A0F04;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 200ms ease;
}
.skip-link:focus {
  transform: translateY(0);
  color: #1A0F04;
}

#main-content { scroll-margin-top: 90px; }
main { display: block; }

/* ---------- 4. 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.single-col { max-width: 860px; }

.prose { font-size: 17px; }
.prose p { max-width: 38em; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.6em 0 .6em; }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); margin: 1.4em 0 .5em; }
.prose strong { color: #FFFFFF; }

.grid {
  display: grid;
  gap: var(--gap);
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.span-2 { grid-column: span 2; }
.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-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

/* ---------- 5. 分区背景（珠宝色分区） ---------- */
.section {
  position: relative;
  padding-block: clamp(44px, 6vw, 96px);
  background: var(--night);
}
.section--turf { background: linear-gradient(180deg, #071C16 0%, #0E3327 45%, #071C16 100%); }
.section--indigo { background: linear-gradient(180deg, #071C16 0%, #241B4F 40%, #10142E 100%); }
.section--wine { background: linear-gradient(180deg, #071C16 0%, #5C1F35 42%, #1B0C13 100%); }
.section--deep { background: #04120E; }

.section__rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 6. 层：实色板与玻璃层 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
}

.glass {
  background: rgba(232, 245, 240, .06);
  border: 1px solid rgba(232, 245, 240, .14);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  padding: 14px 18px;
}

.glass--offset {
  margin-bottom: -8px;
  position: relative;
  z-index: 2;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0F04;
  font-weight: 700;
}
.btn--solid:hover { background: #FFA45F; color: #1A0F04; }

.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04140F;
  font-weight: 700;
}
.btn--cyan:hover { background: #6FF7DC; color: #04140F; }

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 8. 标签 ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px 3px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--mist);
  background: rgba(232, 245, 240, .03);
}
.tag--cyan { color: var(--cyan); border-color: rgba(43, 240, 200, .4); background: rgba(43, 240, 200, .1); }
.tag--orange { color: var(--orange); border-color: rgba(255, 138, 61, .45); background: rgba(255, 138, 61, .1); }
.tag--lemon { color: var(--lemon); border-color: rgba(232, 255, 106, .4); background: rgba(232, 255, 106, .1); }

.tag--cut {
  border: 0;
  background: var(--orange);
  color: #1A0F04;
  font-weight: 700;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

/* ---------- 9. 筛选按钮组（纯前端显隐） ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 245, 240, .03);
  color: var(--mist);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.chip:hover { color: var(--cyan); border-color: rgba(43, 240, 200, .5); }
.chip[aria-pressed="true"] {
  background: var(--lemon);
  border-color: var(--lemon);
  color: #12180C;
  font-weight: 700;
}

/* ---------- 10. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 22px;
}
.crumb a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.crumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.crumb__sep { color: #3A6156; }
.crumb [aria-current="page"] { color: var(--cyan); }

/* ---------- 11. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(43, 240, 200, .06) 0 1px, transparent 1px 34px),
    linear-gradient(145deg, #0B2A21 0%, #071C16 52%, #10222F 100%);
  isolation: isolate;
}
.media > img,
.media > svg,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) brightness(.82);
}
.media__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 28, 22, .1) 0%, rgba(7, 28, 22, .35) 55%, rgba(7, 28, 22, .84) 100%);
  pointer-events: none;
}
.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--glass);
  z-index: 2;
}
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }

/* ---------- 12. 显现与计数 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.22, .72, .24, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 轨道（header） ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 28, 22, .95);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(43, 240, 200, .05) 0 1px, transparent 1px 44px);
}
.rail::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(3, 12, 9, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.rail[data-open="true"]::after {
  opacity: 1;
  pointer-events: auto;
}

.rail__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 8px 16px;
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--glass);
}
.rail__brand:hover { color: var(--glass); }

.rail__mark {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 3px;
  align-items: end;
  height: 24px;
}
.rail__mark span { display: block; width: 3px; background: var(--cyan); }
.rail__mark span:nth-child(1) { height: 10px; }
.rail__mark span:nth-child(2) { height: 17px; background: var(--orange); }
.rail__mark span:nth-child(3) { height: 24px; }

.rail__brand-text { display: block; }
.rail__name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
  color: #FFFFFF;
}
.rail__tag {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--mist);
  text-transform: uppercase;
}

.rail__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--glass);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.rail__toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.rail__toggle-bar {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 5px 0 var(--cyan), 0 -5px 0 var(--cyan);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.rail[data-open="true"] .rail__toggle { border-color: var(--orange); color: var(--orange); }
.rail[data-open="true"] .rail__toggle-bar {
  background: transparent;
  box-shadow: 0 5px 0 var(--orange), 0 -5px 0 var(--orange);
}

.rail__drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: min(86vw, 330px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 74px 18px 26px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0A2A21 0%, #071C16 55%, #051410 100%);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 340ms cubic-bezier(.22, .72, .24, 1), visibility 340ms linear;
}
.rail[data-open="true"] .rail__drawer {
  transform: translateX(0);
  visibility: visible;
}

.rail__nav { display: flex; flex-direction: column; gap: 10px; }
.rail__nav-title {
  margin: 0 0 2px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist);
}
.rail__list { display: flex; flex-direction: column; gap: 1px; }

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: var(--glass);
  border-left: 2px solid transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.rail__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 59, 51, .95), rgba(31, 59, 51, 0));
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  transition: color 200ms ease;
}
.rail__label { font-size: 15px; letter-spacing: .01em; }

.rail__link:hover {
  background: rgba(43, 240, 200, .07);
  color: var(--cyan);
  border-left-color: var(--cyan);
}
.rail__link:hover .rail__idx { color: var(--cyan); }

.rail__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(43, 240, 200, .16), rgba(43, 240, 200, 0));
  border-left-color: var(--cyan);
  color: #FFFFFF;
}
.rail__link[aria-current="page"] .rail__idx { color: var(--lemon); }

.rail__entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 15px 16px;
  background: var(--orange);
  color: #1A0F04;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  transition: background 200ms ease, transform 200ms ease;
}
.rail__entry:hover { background: #FFA45F; color: #1A0F04; transform: translateX(2px); }
.rail__entry-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  opacity: .72;
}
.rail__entry-text {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
}
.rail__entry-arrow { font-family: var(--font-mono); font-size: 14px; }

.rail__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 0;
  border-top: 1px solid var(--line);
}
.rail__meta-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}
.rail__meta-line--dim { color: #6C8C81; }
.rail__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--lemon);
  vertical-align: middle;
  animation: rail-pulse 2400ms ease-in-out infinite;
}
@keyframes rail-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.rail__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  transition: transform 120ms linear;
  z-index: 5;
}

/* ---------- 14. 页脚 ---------- */
.foot {
  position: relative;
  margin-top: clamp(48px, 7vw, 110px);
  background: linear-gradient(180deg, #071C16 0%, #0E3327 130%);
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
}
.foot__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(18px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 40px);
}
.foot__brand { display: flex; flex-direction: column; gap: 7px; }
.foot__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #FFFFFF;
}
.foot__icp { color: #7C9C91; }
.foot__note { color: #6C8C81; line-height: 1.7; }

.foot__index-title {
  display: block;
  margin-bottom: 11px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #4E7568;
}
.foot__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}
.foot__list a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.foot__list a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.foot__contact p { margin: 0 0 7px; }
.foot__contact-line { color: var(--mist); }
.foot__contact-line .mono { color: #4E7568; margin-right: 6px; }

.foot__base {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 14px var(--gutter) 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #6C8C81;
}
.foot__copy { margin: 0; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__legal a { color: #7C9C91; border-bottom: 1px solid transparent; }
.foot__legal a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- 15. 平板 ---------- */
@media (max-width: 1023px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  [class*="span-"] { grid-column: span 6; }
  .span-12 { grid-column: 1 / -1; }
}

/* ---------- 16. 手机 ---------- */
@media (max-width: 639px) {
  body { font-size: 16px; }
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [class*="span-"] { grid-column: 1 / -1; }
  .rail__name { font-size: 17px; }
  .rail__tag { display: none; }
  .rail__entry-text { font-size: 16px; }
  .foot__base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 17. 桌面：固定左轨 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .rail {
    position: fixed;
    inset-block: 0;
    left: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    padding: 26px 16px 18px;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #08211A 0%, #071C16 58%, #051410 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .rail::after { display: none; }

  .rail__bar {
    display: block;
    padding: 0 4px 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    min-height: 0;
  }
  .rail__toggle { display: none; }

  .rail__drawer {
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    padding: 0;
    border-right: 0;
    background: none;
    overflow: visible;
    flex: 1 1 auto;
    gap: 20px;
    transition: none;
  }

  .rail__link { padding: 10px 12px; }
  .rail__meta { padding: 14px 12px 0; }

  .rail__progress {
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    width: 2px;
    height: 100%;
    transform: scaleY(var(--progress, 0));
    transform-origin: 50% 0;
    transition: transform 120ms linear;
  }

  .foot__inner { grid-template-columns: 1.15fr 1.35fr 1.2fr; }
}

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