/* =========================================================
   博万赛场 · 共享样式表 /assets/site.css
   ========================================================= */

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

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

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

/* ---------- tokens ---------- */
:root {
  --ink: #0B1F1A;
  --panel: #141A1C;
  --line: #2C3538;
  --paper: #EDEAE3;
  --moss: #7C9585;
  --cyan: #3FE0C8;
  --amber: #E58B3A;
  --clay: #A65A3A;
  --red: #B4413C;
  --yellow: #C9A227;

  --rail-w: 84px;
  --rail-open: 232px;
  --bar-h: 38px;

  --r-sm: 2px;
  --r-md: 4px;

  --font-display: 'Oswald', 'Barlow Condensed', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(44, 53, 56, .40) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 53, 56, .40) 1px, transparent 1px);
  background-size: 104px 104px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--paper);
}
h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; font-weight: 600; }

p { line-height: 1.75; }

::selection { background: rgba(63, 224, 200, .28); color: var(--paper); }

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

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-main {
  display: block;
  min-height: 62vh;
}

.cols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.content {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ---------- panel ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.panel--pad { padding: 24px 26px; }
.panel:hover { border-color: rgba(63, 224, 200, .55); transform: translateY(-2px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--action {
  background: var(--amber);
  border-color: var(--amber);
  color: #1B1206;
}
.btn--action:hover { background: #F09A47; border-color: #F09A47; color: #1B1206; }

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

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--moss);
}
.crumbs > li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.crumbs > li::after {
  content: "›";
  color: var(--line);
  font-size: 14px;
}
.crumbs > li:last-child::after { display: none; }
.crumbs a { color: var(--moss); transition: color .16s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- numeric & tags ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.num--cyan { color: var(--cyan); }
.num--amber { color: var(--amber); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--moss);
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(63, 224, 200, .45); background: rgba(63, 224, 200, .08); }
.tag--clay { color: #D38C68; border-color: rgba(166, 90, 58, .55); background: rgba(166, 90, 58, .16); }
.tag--red { color: #DE7A74; border-color: rgba(180, 65, 60, .55); background: rgba(180, 65, 60, .18); }
.tag--yellow { color: #E0C05B; border-color: rgba(201, 162, 39, .5); background: rgba(201, 162, 39, .15); }

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background-color: var(--panel);
  background-image:
    linear-gradient(135deg, rgba(63, 224, 200, .07), rgba(20, 26, 28, 0) 58%),
    repeating-linear-gradient(0deg, rgba(44, 53, 56, .60) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(44, 53, 56, .60) 0 1px, transparent 1px 44px);
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity .24s var(--ease);
}
[data-reveal][data-revealed] { opacity: 1; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: relative; z-index: 70; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--cyan);
  color: #05221D;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-220%);
  transition: transform .16s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 收藏提示条 */
.collect-bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--bar-h);
  z-index: 68;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(20, 26, 28, .95);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1;
  color: var(--moss);
  transition: border-color .16s var(--ease);
}
.collect-bar__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 224, 200, .14);
}
.collect-bar__text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.collect-bar__toggle {
  flex: none;
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--paper);
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.collect-bar__toggle:hover { border-color: var(--amber); color: var(--amber); }
.collect-bar__toggle[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #1B1206;
}

html.is-scrolled .collect-bar { border-bottom-color: rgba(63, 224, 200, .38); }

/* 汉堡按钮 */
.nav-toggle {
  position: fixed;
  top: 5px;
  left: 8px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--paper);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

/* 侧边轨道 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 78;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 14px 0 18px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: width .2s var(--ease);
}
.rail:hover,
.rail:focus-within { width: var(--rail-open); }

.rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 0 14px 28px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.rail__mark {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--cyan);
}
.rail__mark svg { width: 100%; height: 100%; }
.rail__brandtext {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .14s var(--ease);
}
.rail:hover .rail__brandtext,
.rail:focus-within .rail__brandtext { opacity: 1; }
.rail__brandtext strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--paper);
}
.rail__brandtext em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--moss);
}

.rail__close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--moss);
}
.rail__close svg { width: 16px; height: 16px; }
.rail__close:hover { color: var(--cyan); border-color: var(--cyan); }

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 44px;
  padding-left: 28px;
  text-align: left;
  color: var(--moss);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: transparent;
  transition: background-color .16s var(--ease);
}
.rail__link:hover,
.rail__link:focus-visible {
  color: var(--paper);
  background: rgba(63, 224, 200, .06);
}
.rail__link:hover::before,
.rail__link:focus-visible::before { background: var(--cyan); }

.rail__link[aria-current="page"] { color: var(--cyan); }
.rail__link[aria-current="page"]::before { background: var(--cyan); }

.rail__ico {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: currentColor;
}
.rail__ico svg { width: 18px; height: 18px; }

.rail__label {
  flex: 0 0 auto;
  font-size: 14px;
}

.rail__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rail__foot .rail__link:hover { color: var(--amber); }
.rail__foot .rail__link:hover::before { background: var(--amber); }
.rail__link--btn[aria-pressed="true"] { color: var(--amber); }
.rail__link--btn[aria-pressed="true"]::before { background: var(--amber); }

/* 遮罩 */
.nav-scrim { display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .35;
}
.footer__inner {
  padding-top: 54px;
  padding-bottom: 26px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr);
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__mark {
  width: 34px;
  height: 34px;
  color: var(--cyan);
}
.footer__mark svg { width: 100%; height: 100%; }
.footer__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
}
.footer__tag {
  font-size: 13px;
  line-height: 1.7;
  color: var(--moss);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--moss);
}
.footer__links li + li { margin-top: 9px; }
.footer__links a {
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer__links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(63, 224, 200, .5);
}

.footer__contact {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.footer__contactline {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--paper);
  word-break: break-word;
}
.footer__service {
  max-width: 78ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--moss);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--moss);
}
.footer__copy { font-family: var(--font-mono); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer__legal a { transition: color .16s var(--ease); }
.footer__legal a:hover { color: var(--cyan); }
.footer__icp {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .content { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  :root { --rail-w: 0px; }

  body { background-size: 72px 72px; }

  .nav-toggle { display: flex; }

  .collect-bar {
    left: 0;
    padding-left: 46px;
    padding-right: 12px;
  }

  .rail {
    top: var(--bar-h);
    width: min(86vw, 300px);
    transform: translateX(-104%);
    box-shadow: none;
    transition: transform .22s var(--ease);
  }
  .rail:hover,
  .rail:focus-within { width: min(86vw, 300px); }
  .rail[data-open] { transform: translateX(0); }

  .rail__brandtext { opacity: 1; }
  .rail__close { display: flex; }
  .rail__brand { padding-right: 52px; }

  .nav-scrim[data-visible] {
    display: block;
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 76;
    background: rgba(4, 12, 10, .64);
  }

  html.is-nav-open,
  html.is-nav-open body { overflow: hidden; }

  .site-footer { margin-top: 68px; }
  .footer__inner { padding-top: 42px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .panel--pad { padding: 20px 18px; }
  .footer__cols { grid-template-columns: 1fr; gap: 22px; }
  .footer__icp { margin-left: 0; }
  .footer__bottom { gap: 8px 18px; }
}

@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 !important; }
  .panel:hover { transform: none; }
}
