/* =========================================================
   亚博看台 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================= */

/* ---------- 1. 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, figure, blockquote {
  margin: 0;
}

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

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

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

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

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }

/* ---------- 2. 变量 ---------- */
:root {
  --pitch: #08130F;
  --turf: #10241C;
  --edge: #1C3A2E;
  --lime: #C8FF4D;
  --amber: #FFB454;
  --cyan: #5AD1C0;
  --bone: #EAF3EC;
  --mist: #8FA79C;
  --amber-deep: #3A2A12;
  --alert: #E2603F;

  --glass: rgba(16, 36, 28, 0.62);
  --glass-line: rgba(234, 243, 236, 0.10);
  --line-soft: rgba(28, 58, 46, 0.72);

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --r: 6px;
  --shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.92);
  --t: 260ms cubic-bezier(0.2, 0.7, 0.3, 1);

  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 12px;
  --step-0: 16px;
  --step-1: clamp(17px, 1.4vw, 20px);
  --step-2: clamp(21px, 2.2vw, 28px);
  --step-3: clamp(28px, 3.6vw, 44px);
  --step-4: clamp(38px, 5.4vw, 72px);
  --step-5: clamp(48px, 7.6vw, 96px);
}

/* ---------- 3. 基础排版 ---------- */
html, body { min-height: 100%; }

body {
  background:
    radial-gradient(1100px 560px at 10% -12%, rgba(200, 255, 77, 0.07), transparent 62%),
    radial-gradient(880px 480px at 94% 4%, rgba(90, 209, 192, 0.06), transparent 58%),
    var(--pitch);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -72px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--pitch);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r);
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

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

/* ---------- 4. 布局容器与栅格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(44px, 7vw, 104px) 0; }
.section--tight { padding: clamp(28px, 4vw, 56px) 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

@media (max-width: 900px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: 1 / -1; }
}

/* ---------- 5. 标题组与正文 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 38px);
}
.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.section-head__title {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-head__note {
  max-width: 60ch;
  color: var(--mist);
  font-size: 15px;
}

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: var(--step-1); margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(90, 209, 192, 0.4); }
.prose a:hover { color: var(--lime); border-color: var(--lime); }
.prose strong { color: var(--amber); font-weight: 700; }

/* ---------- 6. 面包屑 ---------- */
.crumb {
  margin-bottom: clamp(18px, 3vw, 32px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__item:not(:last-child)::after { content: "/"; color: var(--edge); }
.crumbs__link { color: var(--mist); border-bottom: 1px solid transparent; transition: color var(--t), border-color var(--t); }
.crumbs__link:hover { color: var(--lime); border-color: var(--lime); }
.crumbs__current { color: var(--bone); }

/* ---------- 7. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-line: var(--edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 clamp(14px, 1.6vw, 22px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  border-radius: var(--r);
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  color: var(--lime);
}
.btn--primary {
  --btn-bg: var(--lime);
  --btn-fg: var(--pitch);
  --btn-line: var(--lime);
  font-weight: 700;
}
.btn--primary:hover {
  color: var(--pitch);
  background: #d8ff70;
}
.btn--ghost {
  --btn-bg: rgba(28, 58, 46, 0.5);
  --btn-line: var(--edge);
}
.btn--sm {
  min-height: 38px;
  font-size: 13px;
  padding: 0 14px;
}

/* ---------- 8. 展览标签 / 数据说明牌 / 玻璃层 ---------- */
.exhibit-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(200, 255, 77, 0.08);
  border: 1px solid rgba(200, 255, 77, 0.42);
  border-left-width: 3px;
  border-radius: 2px;
}
.exhibit-tag--amber {
  background: rgba(255, 180, 84, 0.08);
  border-color: rgba(255, 180, 84, 0.45);
  color: var(--amber);
}
.exhibit-tag--cyan {
  background: rgba(90, 209, 192, 0.08);
  border-color: rgba(90, 209, 192, 0.42);
  color: var(--cyan);
}

.data-plate {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  background: var(--turf);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.data-plate::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 38px;
  height: 3px;
  background: var(--lime);
}
.data-plate__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.data-plate__value {
  font-family: var(--font-mono);
  font-size: var(--step-2);
  line-height: 1.15;
  color: var(--amber);
}
.data-plate__note {
  font-size: 13px;
  color: var(--mist);
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--amber);
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 9. 标签组 ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bone);
  background: rgba(16, 36, 28, 0.7);
  border: 1px solid var(--edge);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.tag:hover { color: var(--lime); border-color: rgba(200, 255, 77, 0.5); }
.tag--active {
  color: var(--lime);
  background: rgba(200, 255, 77, 0.08);
  border-color: var(--lime);
}

/* ---------- 10. 图片容器（供页面阶段放占位图） ---------- */
.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--turf), #0B1A14 58%, var(--pitch));
  border: 1px solid var(--edge);
  border-radius: var(--r);
}
.figure-frame > img,
.figure-frame > svg,
.figure-frame > picture,
.figure-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(200, 255, 77, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 77, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bone);
  background: linear-gradient(to top, rgba(8, 19, 15, 0.92), transparent);
}

/* ---------- 11. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 19, 15, 0.87);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--edge);
  box-shadow: inset 0 -1px 0 rgba(200, 255, 77, 0.12);
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(234, 243, 236, 0.07);
  overflow: hidden;
}
.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--amber));
}

.header-top {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(28, 58, 46, 0.55), rgba(8, 19, 15, 0.18));
}
.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-block: 4px;
}

.brand-sig {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.brand-sig__name {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--lime);
}
.brand-sig__tag { color: var(--mist); }

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
  background: rgba(16, 36, 28, 0.6);
  border: 1px solid var(--edge);
  border-radius: 999px;
  white-space: nowrap;
}
.status-chip--data {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.32);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.16);
  animation: status-pulse 2600ms ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.header-login {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bone);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--lime);
  transition: color var(--t);
}
.header-login:hover { color: var(--lime); }

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  min-height: 68px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav { flex: 1 1 auto; }
.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2px, 1.2vw, 10px);
}
.nav__item { display: flex; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mist);
  transition: color var(--t);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--bone); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  color: var(--bone);
  font-size: 13px;
  letter-spacing: 0.1em;
  background: rgba(28, 58, 46, 0.55);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--lime);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--lime);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    padding: 6px var(--gutter) 22px;
    background: rgba(8, 19, 15, 0.97);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.95);
  }
  .nav[data-open] { display: block; }

  .nav__list { flex-direction: column; gap: 0; }
  .nav__item {
    display: block;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link {
    width: 100%;
    min-height: 54px;
    padding: 14px 0;
    font-size: 17px;
    color: var(--bone);
  }
  .nav__link::after {
    left: 0;
    right: auto;
    bottom: 14px;
    width: 28px;
  }
}

@media (max-width: 720px) {
  .brand-sig__tag { display: none; }
  .status-chip:not(.status-chip--data) { display: none; }
  .header-top__inner { min-height: 38px; }
  .header-main__inner { min-height: 60px; }
  .header-login { font-size: 11px; }
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: linear-gradient(180deg, rgba(16, 36, 28, 0.42), rgba(8, 19, 15, 1) 46%), var(--pitch);
  border-top: 1px solid var(--edge);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), rgba(200, 255, 77, 0) 46%, rgba(255, 180, 84, 0.65));
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(34px, 5vw, 72px) 0 clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand__name {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-brand__name::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--lime);
}
.footer-brand__line {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 14px;
  color: var(--mist);
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(26px, 4vw, 46px) 0 clamp(22px, 3vw, 36px);
  border-bottom: 1px solid var(--line-soft);
}
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col__link {
  font-size: 14px;
  color: var(--bone);
  opacity: 0.86;
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t), opacity var(--t);
}
.footer-col__link:hover {
  color: var(--lime);
  border-color: var(--lime);
  opacity: 1;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone);
}
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}
.footer-contact__val { word-break: break-word; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: clamp(18px, 2.4vw, 26px) 0 clamp(26px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.footer-legal__meta { color: var(--mist); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-actions { width: 100%; }
  .footer-actions .btn { flex: 1 1 auto; }
}

/* ---------- 13. 滚动显现 / 返回顶部 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 18px;
  color: var(--pitch);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--amber); }

/* ---------- 14. 无障碍与减弱动效 ---------- */
@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;
  }
  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
