/* ==========================================================================
   亚盈赛场 · 共享站点样式 /assets/site.css
   夜场赛刊：左右分屏骨架 + 珠宝色分区 + 12° 斜切语言
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ink-green);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 珠宝色分区 */
  --ink-green: #0B2B26;
  --ink-blue: #101C33;
  --ink-indigo: #1E1A3C;
  --wine: #5C2333;
  --lime: #C8FF3D;
  --orange: #FF8A3D;
  --sand: #F1E7D8;
  --mist: #8FB9AE;
  --paper: #F7FAF7;

  --line: rgba(143, 185, 174, 0.24);
  --line-strong: rgba(143, 185, 174, 0.45);

  /* 字体 */
  --font-head: "PingFang SC", "Alibaba PuHuiTi", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", ui-monospace, Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --max-w: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --cut-lg: 18px;
  --cut-sm: 8px;
  --slant: 12deg;
}

/* ---------- 3. 中文排版基线 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 32px); }
h4 { font-size: clamp(17px, 1.8vw, 24px); }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 800; }

/* ---------- 4. 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.surface-sand {
  background: var(--sand);
  color: var(--ink-green);
}

.surface-indigo {
  background: var(--ink-indigo);
  color: var(--paper);
}

.mono-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -88px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink-green);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--cut-sm) var(--cut-sm);
  transition: top 0.18s ease-out;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--ink-green);
  outline-offset: -4px;
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 80;
  background: var(--ink-blue);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 36px);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-head);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--paper);
  white-space: nowrap;
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 22px;
  margin-top: -11px;
  background: var(--lime);
  transform: skewX(calc(var(--slant) * -1));
}

.brand__tag {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

/* 移动导航按钮 */
.cmdbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.cmdbar__toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.cmdbar__toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--lime);
  transition: background-color 0.2s ease;
}

.cmdbar__toggle-bars::before,
.cmdbar__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.2s ease;
}

.cmdbar__toggle-bars::before { top: -5px; }
.cmdbar__toggle-bars::after  { top: 5px; }

.cmdbar__toggle[aria-expanded="true"] .cmdbar__toggle-bars {
  background: transparent;
}

.cmdbar__toggle[aria-expanded="true"] .cmdbar__toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.cmdbar__toggle[aria-expanded="true"] .cmdbar__toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* 命令栏（移动端为下拉索引单） */
.cmdbar {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  padding: 6px var(--gutter) 18px;
  background: var(--ink-blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cmdbar[data-open] {
  display: block;
}

.cmdbar__list {
  display: flex;
  flex-direction: column;
}

.cmdbar__item {
  flex: 0 0 auto;
  min-width: 0;
}

.cmdbar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.cmdbar__link:hover {
  color: var(--lime);
  padding-left: 8px;
}

.cmdbar__index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.cmdbar__link[aria-current="page"] {
  color: var(--lime);
}

.cmdbar__link[aria-current="page"] .cmdbar__index {
  color: var(--lime);
}

/* 状态条 */
.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px var(--gutter);
  background: var(--ink-indigo);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.status-strip__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
}

.status-strip__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 7. 头部桌面态 ---------- */
@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .masthead {
    min-height: 72px;
  }

  .cmdbar__toggle {
    display: none;
  }

  .cmdbar {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .cmdbar__list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }

  .cmdbar__link {
    padding: 9px 11px;
    border-bottom: 0;
    border-radius: 2px;
    font-size: 14px;
    color: rgba(247, 250, 247, 0.8);
    transition: color 0.18s ease, background-color 0.18s ease;
  }

  .cmdbar__link:hover {
    color: var(--paper);
    background: rgba(200, 255, 61, 0.12);
    padding-left: 11px;
  }

  .cmdbar__link[aria-current="page"] {
    background: var(--lime);
    color: var(--ink-green);
    padding-left: 11px;
  }

  .cmdbar__link[aria-current="page"]:hover {
    background: var(--lime);
    color: var(--ink-green);
  }

  .cmdbar__link[aria-current="page"] .cmdbar__index {
    color: rgba(11, 43, 38, 0.6);
  }
}

@media (max-width: 719px) {
  .brand__tag {
    display: none;
  }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 128px);
  background: var(--ink-green);
  color: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-edge {
  height: 10px;
  background: repeating-linear-gradient(
    -12deg,
    rgba(200, 255, 61, 0.9) 0 9px,
    transparent 9px 26px
  );
  opacity: 0.75;
}

.footer-slab {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 72px) var(--gutter) clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
}

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

.footer-brand__mark {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--paper);
}

.footer-brand__mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 0.82em;
  margin-top: -0.41em;
  background: var(--orange);
  transform: skewX(calc(var(--slant) * -1));
}

.footer-brand__line {
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(247, 250, 247, 0.74);
}

.footer-brand__cta {
  margin-top: 20px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  min-width: 0;
}

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

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

.footer-col__list {
  display: grid;
  gap: 11px;
}

.footer-col__link {
  display: inline-block;
  font-size: 15px;
  color: rgba(247, 250, 247, 0.86);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-col__link:hover {
  color: var(--lime);
  transform: translateX(4px);
}

.footer-meta {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 30px) var(--gutter) clamp(34px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-meta__row {
  margin: 0;
}

.footer-update {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(143, 185, 174, 0.72);
}

.footer-legal {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(143, 185, 174, 0.9);
}

@media (min-width: 520px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 820px) {
  .footer-slab {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink-green);
}

.btn--lime:hover {
  background: #d8ff6c;
}

.btn--orange {
  background: var(--orange);
  color: #2A1505;
}

.btn--orange:hover {
  background: #ffa165;
}

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

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

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb__link:hover {
  color: var(--lime);
  border-bottom-color: currentColor;
}

.breadcrumb__sep {
  color: rgba(143, 185, 174, 0.55);
}

.breadcrumb__current {
  color: var(--sand);
}

/* ---------- 11. 分屏骨架 ---------- */
.layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.rail {
  min-width: 0;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  min-width: 0;
}

@media (min-width: 900px) {
  .layout-split {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  }

  .layout-split--flip .rail {
    order: 2;
  }
}

@media (min-width: 1100px) {
  .rail {
    position: sticky;
    top: 104px;
  }
}

/* ---------- 12. 索引与注释 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: skewX(calc(var(--slant) * -1));
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.section-index::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lime);
  transform: rotate(calc(var(--slant) * -1));
}

.section-index--rot {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.4em;
  padding-block: 6px;
}

.section-index--rot::before {
  width: 1px;
  height: 26px;
  transform: none;
}

.lede {
  max-width: 62ch;
  margin: 0 0 1.2em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: rgba(247, 250, 247, 0.82);
}

.surface-sand .lede {
  color: rgba(11, 43, 38, 0.78);
}

/* ---------- 13. 卡片与标签 ---------- */
.card {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--ink-blue);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--lime);
  opacity: 0.9;
}

.card:hover {
  border-color: var(--line-strong);
}

.card--cut {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut-lg)),
    calc(100% - var(--cut-lg)) 100%,
    0 100%
  );
}

.card__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.card__meta {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(143, 185, 174, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.tag--lime {
  background: var(--lime);
  color: var(--ink-green);
}

.tag--wine {
  background: var(--wine);
  color: var(--paper);
}

.tag--orange {
  background: var(--orange);
  color: #2A1505;
}

/* ---------- 14. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background-color: var(--ink-indigo);
  background-image:
    repeating-linear-gradient(
      -12deg,
      rgba(200, 255, 61, 0.06) 0 2px,
      transparent 2px 18px
    ),
    linear-gradient(150deg, var(--ink-indigo), var(--ink-blue));
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut-lg)),
    calc(100% - var(--cut-lg)) 100%,
    0 100%
  );
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 12px;
  background: rgba(11, 43, 38, 0.86);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--sand);
}

/* ---------- 15. 分隔 ---------- */
.rule-line {
  border: 0;
  height: 1px;
  margin: clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(90deg, var(--lime) 0%, var(--line) 38%, transparent 100%);
}

/* ---------- 16. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 17. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.footer-col__link:focus-visible,
.cmdbar__link:focus-visible {
  outline-offset: 2px;
}

.surface-sand :focus-visible {
  outline-color: var(--ink-green);
}

/* ---------- 18. 状态呼吸（仅在允许动效时） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .status-strip__dot {
    animation: status-breathe 3.6s ease-in-out infinite;
  }

  @keyframes status-breathe {
    0%, 100% {
      opacity: 1;
      box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
    }
    50% {
      opacity: 0.62;
      box-shadow: 0 0 0 6px rgba(200, 255, 61, 0.05);
    }
  }
}

/* ---------- 19. 减少动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

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

/* ---------- 20. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}
