/* ============================================================
   欧亿体育安装 · 共享站点样式 /assets/site.css
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, fieldset {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }
dl, dd { padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* 2. Design tokens ---------------------------------------- */
:root {
  --ink: #08231C;
  --panel: #0E3A2E;
  --panel-2: #123F32;
  --lime: #C8FF3D;
  --lime-dim: #8FBF2E;
  --sand: #E6C079;
  --brick: #B5563F;
  --cream: #F2EADB;
  --mist: #9FB8AE;
  --char: #101613;
  --line: #2C5A4A;

  --cut: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-pill: 999px;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --shadow-float: 0 24px 48px -32px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* 3. Base ------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(44, 90, 74, .20) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 90, 74, .14) 1px, transparent 1px),
    radial-gradient(120% 90% at 88% -12%, rgba(200, 255, 61, .10), transparent 62%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

#main-content { scroll-margin-top: 110px; }

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

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* 5. Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

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

.btn--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--lime:hover { background: #d8ff72; border-color: #d8ff72; }

.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { color: var(--lime); border-color: var(--lime); }

.btn--cream { background: var(--cream); color: var(--char); border-color: var(--cream); }
.btn--cream:hover { background: #fff9ee; border-color: #fff9ee; }

/* 6. Panels / tags / notes -------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 28px);
}

.cut-panel {
  --cut: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(155deg, var(--panel-2), var(--panel));
  clip-path: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.6;
}

.tag--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tag--sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.tag--brick { background: var(--brick); border-color: var(--brick); color: #fff; }

.pill-note {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 35, 28, .7);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.6;
  transform: rotate(-4deg);
}

/* 7. Data table ------------------------------------------- */
.data-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.data-table td { color: var(--cream); }
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table tbody tr:hover { background: rgba(200, 255, 61, .07); }

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* 8. Image frames (页面阶段放图) --------------------------- */
.img-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--panel);
  background-image:
    linear-gradient(90deg, rgba(44, 90, 74, .5) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 90, 74, .4) 1px, transparent 1px),
    radial-gradient(120% 90% at 20% 0%, rgba(200, 255, 61, .18), transparent 66%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}

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

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-frame-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* 9. Breadcrumb ------------------------------------------- */
.breadcrumb { font-size: 13px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-link {
  color: var(--mist);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.breadcrumb-link:hover { color: var(--lime); }

.breadcrumb-sep {
  font-family: var(--font-mono);
  color: var(--line);
}

.breadcrumb-current {
  color: var(--sand);
  font-weight: 700;
}

/* 10. Header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: clamp(10px, 1.4vw, 16px) var(--gutter);
  background: linear-gradient(180deg, rgba(8, 35, 28, .94) 0%, rgba(8, 35, 28, .70) 58%, rgba(8, 35, 28, 0) 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime-dim), var(--lime));
  box-shadow: 0 0 12px rgba(200, 255, 61, .55);
  pointer-events: none;
  z-index: 200;
  will-change: transform;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 20px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 8px 8px 8px 14px;
  background: rgba(14, 58, 46, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  transition: padding .28s var(--ease), background .28s var(--ease);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  clip-path: polygon(24% 0, 100% 0, 100% 76%, 76% 100%, 0 100%, 0 24%);
}

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

.brand-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .03em;
  color: var(--cream);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.header-context {
  display: none;
  flex: 0 0 auto;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
}

.site-nav { display: flex; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  color: var(--mist);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-link:hover {
  color: var(--lime);
  background: rgba(200, 255, 61, .09);
}

.nav-link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(200, 255, 61, .55);
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.util-link {
  display: none;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

.util-link:hover { color: var(--lime); border-bottom-color: var(--lime); }

.version-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.version-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.version-btn--mobile {
  color: var(--lime);
  border-color: rgba(200, 255, 61, .55);
  background: transparent;
}

.version-btn--mobile:hover {
  background: rgba(200, 255, 61, .14);
  border-color: var(--lime);
}

.version-btn--desktop {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.version-btn--desktop:hover { background: #d8ff72; border-color: #d8ff72; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(200, 255, 61, .07);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(200, 255, 61, .14);
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav-toggle-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* 11. Footer ---------------------------------------------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 58, 46, .62) 0%, rgba(8, 35, 28, .98) 58%);
  color: var(--cream);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 40px);
}

.footer-col { min-width: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.4;
}

.footer-note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-closing {
  margin-top: 16px;
  padding-left: 10px;
  border-left: 2px solid var(--lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--lime);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.contact-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: baseline;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.contact-val {
  color: var(--cream);
  line-height: 1.6;
  word-break: break-word;
}

.contact-note {
  margin-top: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 52px);
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--mist);
}

.footer-legal-line { line-height: 1.7; }

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--mist);
}

.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.legal-link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.legal-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* 12. Motion / reveal ------------------------------------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

html.js-ready [data-reveal][data-reveal-delay="1"] { transition-delay: .06s; }
html.js-ready [data-reveal][data-reveal-delay="2"] { transition-delay: .12s; }
html.js-ready [data-reveal][data-reveal-delay="3"] { transition-delay: .18s; }

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 13. Breakpoints ----------------------------------------- */
@media (min-width: 680px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .header-context { display: block; }
  .footer-top { grid-template-columns: 1.5fr .8fr 1fr 1fr; }
}

@media (min-width: 1240px) {
  .util-link { display: inline-flex; }
}

/* 折叠态：滚动后胶囊收缩，导航折叠进展开按钮 */
@media (min-width: 1024px) {
  .site-header[data-condensed="true"] .header-shell {
    padding: 5px 6px 5px 12px;
    background: rgba(14, 58, 46, .99);
  }

  .site-header[data-condensed="true"] .brand-sub { display: none; }

  .site-header[data-condensed="true"] .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(320px, 100%);
    padding: 10px;
    background: rgba(14, 58, 46, .99);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-float);
    z-index: 6;
  }

  .site-header[data-condensed="true"] .site-nav[data-open="true"] { display: block; }

  .site-header[data-condensed="true"] .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-header[data-condensed="true"] .nav-link {
    padding: 11px 14px;
    font-size: 15px;
    text-align: left;
  }

  .site-header[data-condensed="true"] .nav-toggle { display: inline-flex; }
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    background: rgba(14, 58, 46, .99);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-float);
    z-index: 6;
  }

  .site-nav[data-open="true"] { display: block; }

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

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header-shell {
    gap: 6px;
    padding: 6px 6px 6px 10px;
  }

  .brand-mark { width: 28px; height: 28px; font-size: 12px; }
  .brand-name { font-size: 13px; }
  .brand-sub { display: none; }

  .version-btn { padding: 7px 10px; font-size: 11.5px; }
  .nav-toggle { padding: 7px 9px; }
  .nav-toggle-label { display: none; }

  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 12px; letter-spacing: 0; }
  .version-btn { padding: 6px 8px; font-size: 11px; }
}

/* 14. Reduced motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  html.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
