/* =============================================================
   /assets/site.css
   欧普体育开户 OPE CN · 共享站点样式
   深炭黑 #0E1116 / 米白纸色 #F2EDE4 / 欧普蓝 #0057B8
   荧光青 #00E5FF / 暖橙 #FF6B1A
   ============================================================= */

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

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

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre {
  margin: 0;
  padding: 0;
}

ol, ul { list-style: none; }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }

table { border-collapse: collapse; border-spacing: 0; width: 100%; }

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

input, select, textarea { font: inherit; color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0E1116;
  --ink-2: #1A2029;
  --paper: #F2EDE4;
  --blue: #0057B8;
  --cyan: #00E5FF;
  --orange: #FF6B1A;
  --rock: #6E7379;
  --moss: #6B7A4B;
  --clay: #C2603C;
  --cool: #9AA3AD;

  --line: rgba(242, 237, 228, .14);
  --line-soft: rgba(242, 237, 228, .07);
  --line-strong: rgba(242, 237, 228, .30);
  --line-ink: rgba(14, 17, 22, .85);

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --font-poster: "Arial Narrow", "Helvetica Neue Condensed", Impact, "Haettenschweiler", "Franklin Gothic Medium", sans-serif;

  --shell: 1440px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --dur: 160ms;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --shadow-hard: 7px 7px 0 rgba(0, 0, 0, .6);
  --shadow-cyan: 7px 7px 0 rgba(0, 229, 255, .22);
}

/* ---------- 3. Base ---------- */
html {
  background: var(--ink);
  scroll-padding-top: 112px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(242, 237, 228, .032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 237, 228, .032) 1px, transparent 1px);
  background-size: 72px 72px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -160px;
  left: var(--gutter);
  z-index: 300;
  display: inline-block;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 10px; }

/* ---------- 5. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 104px;
  align-self: start;
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .label { color: var(--rock); }
.section--paper .section-head { border-bottom-color: var(--line-ink); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(24px, 3vw, 44px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line-strong);
}

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 24px); }

/* ---------- 6. Typography ---------- */
.display {
  font-weight: 200;
  font-size: clamp(40px, 7vw, 112px);
  line-height: .98;
  letter-spacing: -.02em;
}

.headline {
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.015em;
}

.subhead {
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
}

.label {
  display: inline-block;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cool);
}

.label--ink { color: var(--rock); }
.label--accent { color: var(--orange); }

.stat {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(56px, 10vw, 120px);
  line-height: .86;
  letter-spacing: -.04em;
  color: var(--cyan);
}

.stat--paper { color: var(--paper); }
.stat--orange { color: var(--orange); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 2px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-align: center;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translate(2px, -2px);
  box-shadow: -4px 4px 0 rgba(0, 229, 255, .24);
}

.btn--accent {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: -4px 4px 0 rgba(0, 87, 184, .5);
}

.btn--solid {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--paper);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: -4px 4px 0 rgba(0, 87, 184, .5);
}

.btn--ink {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ink:hover,
.btn--ink:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: -4px 4px 0 rgba(14, 17, 22, .28);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  border-bottom: 2px solid var(--line-strong);
}

.header-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px var(--gutter);
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand__mark {
  width: 12px;
  height: 42px;
  flex: none;
  background: linear-gradient(
    to bottom,
    var(--blue) 0 32%,
    var(--cyan) 32% 64%,
    var(--orange) 64% 100%
  );
  transition: transform var(--dur) var(--ease);
}

.brand:hover .brand__mark { transform: translateY(-4px); }

.brand__type { display: flex; flex-direction: column; gap: 3px; }

.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  color: var(--paper);
}

.brand__tag {
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.2;
  color: var(--cool);
}

.brand--footer .brand__mark { width: 10px; height: 34px; }
.brand--footer .brand__name { font-size: 15px; letter-spacing: .06em; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--paper);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 44px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 30px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--paper);
  transition: color var(--dur) var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-list a:hover { color: var(--cyan); }
.nav-list a:hover::after { width: 100%; }

.nav-list a[aria-current="page"] { color: var(--cyan); }
.nav-list a[aria-current="page"]::after { width: 100%; background: var(--orange); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.nav-actions__label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rock);
}

/* 滚动进度轨 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: rgba(0, 229, 255, .1);
  overflow: hidden;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(to right, var(--blue) 0%, var(--cyan) 58%, var(--orange) 100%);
}

/* ---------- 9. Footer ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 104px);
  background: var(--ink-2);
  border-top: 2px solid var(--cyan);
  color: var(--cool);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 72px) var(--gutter) clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-lead__note {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--cool);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-group__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--paper);
}

.footer-list { display: flex; flex-direction: column; gap: 10px; }

.footer-list a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--cool);
  transition: color var(--dur) var(--ease);
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--dur) var(--ease);
}

.footer-list a:hover { color: var(--cyan); }
.footer-list a:hover::after { width: 100%; }

.footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--cool);
}

.footer-contact__line { margin: 0; }

.footer-base {
  padding: 18px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--rock);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 110;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cyan);
  background: var(--ink);
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: var(--cyan); color: var(--ink); }

/* ---------- 10. Panels / tags / rows ---------- */
.panel {
  border: 2px solid var(--line-strong);
  background: var(--ink-2);
  padding: clamp(20px, 2.6vw, 32px);
}

.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-ink);
}

.panel--blue {
  background: var(--blue);
  border-color: var(--cyan);
  color: var(--paper);
}

.panel--ghost { background: transparent; }
.panel--hard { box-shadow: var(--shadow-hard); }
.panel--hard-cyan { box-shadow: var(--shadow-cyan); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(242, 237, 228, .03);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.4;
  color: var(--cool);
}

.tag--orange { border-color: var(--orange); color: var(--orange); }
.tag--cyan { border-color: var(--cyan); color: var(--cyan); }
.tag--moss { border-color: var(--moss); color: var(--paper); }
.tag--clay { border-color: var(--clay); color: var(--paper); }

.data-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--line-strong);
}

.data-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.data-row:hover {
  background: rgba(0, 229, 255, .05);
  padding-left: 10px;
}

/* ---------- 11. Media ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ink-2), #10161d);
  border: 2px solid var(--line-strong);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--paper {
  background: var(--paper);
  border-color: var(--line-ink);
}

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--cool);
  font-size: 12px;
  letter-spacing: .1em;
}

/* ---------- 12. Prose & breadcrumb ---------- */
.prose {
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.75;
}

.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  margin: 1.8em 0 .6em;
  font-weight: 200;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.prose h3 {
  margin: 1.6em 0 .5em;
  font-size: 19px;
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li { margin-bottom: .4em; }

.prose a {
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 rgba(0, 229, 255, .35);
}

.prose a:hover { box-shadow: inset 0 -2px 0 var(--cyan); }

.section--paper .prose a {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 rgba(0, 87, 184, .35);
}

.section--paper .prose a:hover { box-shadow: inset 0 -2px 0 var(--blue); }

.breadcrumb { font-size: 12px; letter-spacing: .12em; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rock);
}

.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--rock);
}

.breadcrumb a { color: var(--cool); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 13. Quick bar (页面级可选) ---------- */
.quick-bar { display: none; }

/* ---------- 14. Bevels ---------- */
.bevel-top { clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); }
.bevel-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1023px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; top: auto; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }

  .header-inner {
    min-height: 64px;
    padding-block: 10px;
  }

  .brand__mark { height: 34px; width: 10px; }
  .brand__tag { display: none; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 10px var(--gutter) 24px;
    background: var(--ink-2);
    border-top: 2px solid var(--cyan);
    border-bottom: 2px solid var(--line-strong);
    box-shadow: 0 16px 0 rgba(0, 0, 0, .35);
  }

  .primary-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list__item { border-bottom: 1px solid var(--line); }

  .nav-list a {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
    letter-spacing: .04em;
  }

  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--cyan); }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
    padding-left: 0;
    border-left: 0;
  }

  .nav-actions .btn {
    width: 100%;
    padding: 15px 18px;
    font-size: 14px;
  }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .quick-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 115;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--ink-2);
    border-top: 2px solid var(--blue);
  }

  .quick-bar a {
    padding: 13px 6px;
    text-align: center;
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--cool);
    border-right: 1px solid var(--line);
  }

  .quick-bar a:last-child { border-right: 0; }
  .quick-bar a[aria-current="page"] { color: var(--cyan); }
}

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

  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }

  .data-row {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 6px;
  }

  .data-row > :last-child { grid-column: 2; }

  .to-top { width: 42px; height: 42px; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }
}
