/* ============================================================
   威廉希尔赛场 · 共享外壳样式 /assets/site.css
   ============================================================ */

*,
*::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, hr { 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; }

a { color: inherit; }

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

/* ---------- 变量 ---------- */
:root {
  --night: #062018;
  --stand: #0B3227;
  --turf: #1B5C41;
  --volt: #C6FF3D;
  --amber: #FFA630;
  --white: #F4F7F2;
  --ash: #8FA99C;
  --deep: #04120D;
  --coral: #FF6B4A;
  --cool: #E8EFE6;

  --line: rgba(198, 255, 61, 0.16);
  --line-soft: rgba(244, 247, 242, 0.10);

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

  --shell: 1280px;
  --rail: 216px;
  --notch: 14px;

  --fs-display: clamp(2.4rem, 4.4vw, 4.25rem);
  --fs-h2: clamp(1.6rem, 2.4vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.45rem);
  --fs-aux: 0.8125rem;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    repeating-linear-gradient(115deg, rgba(198, 255, 61, 0.022) 0 1px, transparent 1px 48px),
    radial-gradient(120% 70% at 86% -12%, rgba(27, 92, 65, 0.52), transparent 62%),
    radial-gradient(85% 60% at -8% 106%, rgba(11, 50, 39, 0.9), transparent 70%);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 68ch; }

strong, b { font-weight: 700; }

::selection {
  background: var(--volt);
  color: var(--deep);
}

/* ---------- 容器与栅格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flow > * + * { margin-top: var(--flow, 1.15rem); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 32, 24, 0.95);
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--volt);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--turf), var(--volt));
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.55);
}

/* 上层资讯条 */
.header-top {
  overflow: hidden;
  max-height: 168px;
  background: linear-gradient(90deg, var(--deep), #08281d 55%, var(--deep));
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.34s var(--ease), opacity 0.22s ease;
}
.site-header.is-condensed .header-top {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  min-height: 56px;
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--volt);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--white);
}

.brand__tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ash);
}

/* 服务芯片 */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 5px 10px;
  background: rgba(27, 92, 65, 0.45);
  border-left: 2px solid var(--volt);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--volt);
  background: rgba(198, 255, 61, 0.06);
  border: 1px solid rgba(198, 255, 61, 0.5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { background: rgba(198, 255, 61, 0.16); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.16s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { 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:last-child { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { line-height: 1; }

/* 下层栏目条 */
.header-main {
  background: rgba(6, 32, 24, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-main__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  min-height: 46px;
}

.primary-nav { display: flex; }

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.primary-nav__list a {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--ash);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.primary-nav__list a:hover { color: var(--white); }

.primary-nav__list a[aria-current="page"] {
  color: var(--volt);
  background: rgba(198, 255, 61, 0.07);
}
.primary-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--volt);
}

.header-note {
  margin-left: auto;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 9vw, 140px);
  padding-top: clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--stand) 0%, #07241a 55%, var(--deep) 100%);
  border-top: 1px solid var(--line);
  color: var(--white);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: repeating-linear-gradient(115deg, var(--volt) 0 16px, transparent 16px 34px);
  opacity: 0.45;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(24px, 3vw, 52px);
  padding-bottom: 40px;
}

.footer-brand { display: block; }

.footer-brand .brand__mark {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.footer-brand__line {
  margin-top: 20px;
  max-width: 24em;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--ash);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}
.footer-col__title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--volt);
}

.footer-col__list li + li { margin-top: 9px; }

.footer-col__list a {
  color: rgba(244, 247, 242, 0.82);
  font-size: 14px;
  text-decoration: none;
  background-image: linear-gradient(var(--volt), var(--volt));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 0.18s ease, background-size 0.24s var(--ease);
}
.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--volt);
  background-size: 100% 1px;
}

.footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.footer-contact__item {
  max-width: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer-contact__key {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--volt);
}

.footer-contact__note {
  flex: 1 1 100%;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ash);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ash);
}

.footer-legal__copy,
.footer-legal__icp { max-width: none; }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
  max-width: none;
}
.footer-legal__links a {
  color: var(--ash);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-legal__links a:hover,
.footer-legal__links a:focus-visible { color: var(--volt); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  cursor: pointer;
  background: var(--stand);
  color: var(--volt);
  border: 1px solid rgba(198, 255, 61, 0.42);
  font-family: var(--font-mono);
  font-size: 17px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s ease, background 0.18s ease;
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { background: var(--turf); }

/* ---------- 通用按钮 ---------- */
.btn {
  --btn-color: var(--volt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  cursor: pointer;
  color: var(--btn-color);
  background: transparent;
  border: 1px solid var(--btn-color);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--btn-color);
  color: var(--deep);
}

.btn--solid {
  background: var(--volt);
  color: var(--deep);
  border-color: var(--volt);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: transparent;
  color: var(--volt);
}

.btn--amber { --btn-color: var(--amber); }
.btn--amber:hover,
.btn--amber:focus-visible {
  background: var(--amber);
  color: var(--deep);
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--stand);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(198, 255, 61, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}

.panel--turf {
  background:
    repeating-linear-gradient(118deg, rgba(198, 255, 61, 0.03) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, #10432f, var(--stand) 72%);
}

.panel--cool {
  background: var(--cool);
  color: #07241a;
  border-color: rgba(7, 36, 26, 0.18);
  border-left-color: var(--turf);
}
.panel--cool h2,
.panel--cool h3,
.panel--cool h4 { color: #07241a; }
.panel--cool .eyebrow { color: var(--turf); }
.panel--cool .eyebrow::before { background: var(--turf); }
.panel--cool .index-num,
.panel--cool .stat__label { color: #3c6354; }

/* ---------- 小元素 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--volt);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--volt);
}

.index-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ash);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--volt);
  text-shadow: 0 0 18px rgba(198, 255, 61, 0.32);
}
.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ash);
}
.stat--amber .stat__value {
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 166, 48, 0.3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--volt);
  background: rgba(198, 255, 61, 0.08);
  border: 1px solid rgba(198, 255, 61, 0.3);
}
.tag--amber {
  color: var(--amber);
  background: rgba(255, 166, 48, 0.1);
  border-color: rgba(255, 166, 48, 0.35);
}

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 56px);
  background: linear-gradient(90deg, rgba(198, 255, 61, 0.5), rgba(198, 255, 61, 0));
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ash);
}
.breadcrumb > li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb > li + li::before {
  content: "/";
  color: rgba(143, 169, 156, 0.55);
}
.breadcrumb a {
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--volt);
  border-bottom-color: rgba(198, 255, 61, 0.5);
}

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(244, 247, 242, 0.88);
}
.prose p + p { margin-top: 1.05em; }
.prose h2 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  font-size: var(--fs-h2);
}
.prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.15em;
  list-style: none;
}
.prose li {
  position: relative;
  padding-left: 1em;
  margin-top: 0.5em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--volt);
}
.prose a {
  color: var(--volt);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { color: var(--white); }

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(198, 255, 61, 0.18);
  background:
    repeating-linear-gradient(120deg, rgba(198, 255, 61, 0.05) 0 2px, transparent 2px 26px),
    linear-gradient(150deg, var(--turf), #0d3d2c 72%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 14px;
  background: rgba(4, 18, 13, 0.84);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- 显现 ---------- */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease-out, transform 0.24s ease-out;
}
[data-js="on"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .header-note { display: none; }
}

@media (max-width: 900px) {
  .header-top { max-height: 220px; }
  .brand__tagline { display: none; }
  .service-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .header-main__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0;
  }

  .primary-nav { display: none; width: 100%; }
  .primary-nav[data-open] {
    display: block;
    padding-bottom: 14px;
    border-top: 1px solid var(--line-soft);
    animation: nav-in 0.22s var(--ease) both;
  }

  .primary-nav__list { flex-direction: column; }
  .primary-nav__list a {
    padding: 13px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .primary-nav__list a[aria-current="page"]::after { display: none; }

  .header-main__inner > .primary-nav { position: relative; }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { gap: 10px 24px; }
  .footer-legal__links { margin-left: 0; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .header-top__inner { gap: 10px; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-js="on"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-header.is-condensed .header-top { transition: none; }
}
