/* ==========================================================================
   /assets/site.css — 共享外壳与通用组件
   88优德 / ANCHOR W88
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #071019;
  --hull: #12171D;
  --slate: #1B2530;
  --paper: #F3EEE3;
  --warm: #A9A392;
  --cyan: #22D3C5;
  --orange: #FF6A2A;
  --gold: #C8A45A;
  --teal: #0E4D4A;

  --line: rgba(243, 238, 227, 0.12);
  --line-strong: rgba(243, 238, 227, 0.26);

  --rail: 72px;
  --gutter: clamp(16px, 3vw, 40px);
  --bento-gap: clamp(12px, 1.6vw, 20px);

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

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

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

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

ul[class],
ol[class] { list-style: none; padding: 0; }

img,
svg { display: block; max-width: 100%; }

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

a { color: inherit; }

/* ---------- 3. 中文排版基础 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 84% -10%, rgba(34, 211, 197, 0.10), transparent 46%),
    radial-gradient(circle at 6% 2%, rgba(255, 106, 42, 0.07), transparent 42%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

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

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

/* ---------- 4. 左侧锚链轨道（纯装饰，桌面端） ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }

  body::before {
    content: "";
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    z-index: 1;
    pointer-events: none;
    border-right: 1px solid var(--line);
    background-color: rgba(7, 16, 25, 0.92);
    background-image:
      repeating-linear-gradient(to bottom,
        rgba(200, 164, 90, 0.42) 0 1px,
        transparent 1px 10px,
        rgba(34, 211, 197, 0.30) 10px 11px,
        transparent 11px 40px),
      linear-gradient(to right, rgba(18, 23, 29, 0.95), rgba(7, 16, 25, 0.30));
  }
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- 6. 页头 / 外框横梁 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hull);
  border-bottom: 1px solid var(--line-strong);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: rgba(34, 211, 197, 0.42);
  box-shadow: 0 18px 42px -28px rgba(0, 0, 0, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: 74px;
  padding: 0 var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--teal);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translate(-1px, -1px);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 5px 5px 0 rgba(255, 106, 42, 0.28);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--warm);
}

/* 副标 */
.header-utility {
  flex: 0 0 auto;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  white-space: nowrap;
}

/* 导航 */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0px, 0.4vw, 6px);
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: block;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--warm);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--paper); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--paper); }

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange);
}

/* 页头行动按钮 */
.btn-cta {
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.header-cta {
  flex: 0 0 auto;
  margin-left: 6px;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 2px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* 滚动进度轨 */
.frame-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 2;
  background: rgba(243, 238, 227, 0.10);
  pointer-events: none;
}

.frame-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 62%, var(--orange));
  transition: width 0.12s linear;
}

/* ---------- 7. 页脚 / 压舱石 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--hull);
  border-top: 1px solid var(--line-strong);
  color: var(--warm);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(90deg,
    var(--gold) 0 1px,
    transparent 1px 28px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-summary {
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--warm);
}

.footer-contact {
  display: grid;
  gap: 6px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  line-height: 1.7;
}

.footer-contact-key {
  flex: 0 0 46px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-note {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(169, 163, 146, 0.82);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-content: start;
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--warm);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--cyan); }

.footer-link:hover::before,
.footer-link:focus-visible::before { transform: scaleX(1); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  max-width: 1240px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 16px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(169, 163, 146, 0.9);
}

.footer-copy { margin: 0; }
.footer-icp { margin: 0; color: var(--gold); }
.footer-hours { margin: 0 0 0 auto; }

/* ---------- 8. 版心与节奏 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- 9. 标题系统 ---------- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--paper);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: var(--warm);
}

.text-ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 238, 227, 0.26);
}

/* ---------- 10. 标签 / 展签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(34, 211, 197, 0.45);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--orange {
  border-color: rgba(255, 106, 42, 0.5);
  color: var(--orange);
}

.tag--gold {
  border-color: rgba(200, 164, 90, 0.5);
  color: var(--gold);
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(34, 211, 197, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--cyan);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--cyan);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(14, 77, 74, 0.9);
  transform: translate(-2px, -2px);
}

.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(255, 106, 42, 0.28);
}

.btn--cyan:hover { box-shadow: 7px 7px 0 var(--orange); }

/* ---------- 12. 面包屑 ---------- */
.breadcrumb { padding-block: 16px 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

.breadcrumb-link {
  color: var(--warm);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumb-sep {
  color: var(--gold);
  opacity: 0.7;
}

.breadcrumb-current { color: var(--paper); }

/* ---------- 13. 网格与模块 ---------- */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--bento-gap);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--bento-gap);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--hull);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(7, 16, 25, 0.75);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.panel--accent { border-color: rgba(34, 211, 197, 0.45); }
.panel--orange { border-color: rgba(255, 106, 42, 0.45); }

.panel--accent:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.panel--orange:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ---------- 14. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line-strong);
  background-color: var(--slate);
  background-image: repeating-linear-gradient(135deg,
    rgba(34, 211, 197, 0.07) 0 1px,
    transparent 1px 14px);
  box-shadow: 8px 8px 0 rgba(7, 16, 25, 0.7);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

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

.media-frame--fill {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-utility { display: none; }
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    display: none;
    padding: 6px var(--gutter) 18px;
    background: var(--hull);
    border-top: 2px solid var(--slate);
    border-bottom: 2px solid var(--orange);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.95);
  }

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

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

  .nav-link {
    padding: 14px 4px;
    font-size: 14px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after {
    left: 4px;
    right: 4px;
    bottom: -1px;
  }
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(240px, 1.05fr) minmax(0, 2fr);
  }
}

@media (max-width: 600px) {
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-hours { margin-left: 0; }

  .footer-contact-key { flex-basis: 40px; }
}

/* ---------- 16. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .btn:hover,
  .panel--accent:hover,
  .panel--orange:hover,
  .brand:hover .brand-mark {
    transform: none;
  }
}
