/* ==========================================================================
   万博娱乐 · 全站共享样式 /assets/site.css
   夜间数字娱乐大厅 × 编辑部刊头
   深空蓝黑基底 / 电光紫与霓虹青对角光晕 / 暖金仅作权益与公告强调
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --ink: #060A16;
  --ink-2: #0D1730;
  --violet: #7A4DFF;
  --cyan: #20E3E8;
  --gold: #F4B64E;
  --ice: #F5F7FF;
  --mist: #8B99B8;
  --stone: #2A303A;
  --moss: #6E8F7B;
  --clay: #B86B4A;
  --paper: #F0E9DD;
  --deep: #2A154F;

  /* 语义色 */
  --bg: var(--ink);
  --surface: var(--ink-2);
  --text: var(--ice);
  --text-dim: var(--mist);
  --body-text: #D6DDEE;

  /* 边界 */
  --line: rgba(139, 153, 184, 0.22);
  --line-soft: rgba(139, 153, 184, 0.12);
  --line-strong: rgba(122, 77, 255, 0.5);

  /* 版式尺度 */
  --shell-max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 2px;
  --measure: 40ch;

  /* 字体 */
  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;

  /* 运动 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;

  /* 层级 */
  --z-header: 60;
  --z-totop: 55;
}

/* ---------- 2. Reset 与基础排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 夜间大厅的环境光晕：对角双光束 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(72% 52% at 10% -8%, rgba(122, 77, 255, 0.26), transparent 62%),
    radial-gradient(58% 46% at 94% 2%, rgba(32, 227, 232, 0.13), transparent 60%),
    radial-gradient(70% 60% at 50% 108%, rgba(42, 21, 79, 0.55), transparent 68%);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.035em;
  color: var(--ice);
}

h1 { font-size: clamp(1.95rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.08rem, 1.9vw, 1.32rem); letter-spacing: 0.05em; }
h4 { font-size: 1rem; letter-spacing: 0.06em; }

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

a {
  color: var(--cyan);
  text-decoration: none;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

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

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

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

::selection {
  background: rgba(122, 77, 255, 0.55);
  color: #fff;
}

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

.page-main {
  position: relative;
  z-index: 1;
  display: block;
}

.section { padding-block: clamp(38px, 6vw, 80px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.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; }

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

/* ---------- 4. 刊头与导航 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 200;
  padding: 0.7rem 1.15rem;
  background: var(--gold);
  color: #11151f;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.22s var(--ease);
}

.skip-link:focus {
  top: 0.85rem;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.97) 0%, rgba(6, 10, 22, 0.9) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line-soft);
}

/* 发行栏：等宽小字，滚动后收合 */
.masthead-rail {
  overflow: hidden;
  max-height: 44px;
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}

.site-header[data-condensed] .masthead-rail {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.masthead-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-block: 6px;
}

.masthead-rail__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead-rail__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(32, 227, 232, 0.16);
  animation: dot-breathe 2.8s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(32, 227, 232, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(32, 227, 232, 0.05); }
}

/* 刊头主体：三列对称，品牌居中如报头 */
.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-block: 18px 16px;
  transition: padding 0.35s var(--ease);
}

.site-header[data-condensed] .masthead__inner {
  padding-block: 10px 9px;
}

.masthead__kicker {
  margin: 0;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(139, 153, 184, 0.72);
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead__brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  text-decoration: none;
  color: var(--ice);
}

.masthead__brand:hover { text-decoration: none; }

.masthead__word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  background: linear-gradient(100deg, #FFFFFF 0%, var(--cyan) 44%, var(--violet) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: font-size 0.35s var(--ease);
}

.masthead__name {
  font-size: 0.68rem;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--mist);
  white-space: nowrap;
}

.masthead__aside {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead__cta {
  font-size: 0.8rem;
  padding: 0.62em 1.15em;
  letter-spacing: 0.1em;
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0;
  appearance: none;
  background: rgba(13, 23, 48, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ice);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.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(-6.5px) rotate(-45deg); }

/* 栏目导航：居中，带等宽序号 */
.site-nav {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(13, 23, 48, 0.66) 0%, rgba(6, 10, 22, 0.42) 100%);
}

.site-nav__inner {
  display: flex;
  justify-content: center;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1.6vw, 22px);
}

.site-nav__item { margin: 0; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 0.92rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s var(--ease);
}

.site-nav__link:hover {
  color: var(--ice);
  text-decoration: none;
}

.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(139, 153, 184, 0.55);
  transition: color 0.25s var(--ease);
}

.site-nav__link[aria-current="page"] { color: var(--ice); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--gold); }

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(139, 153, 184, 0.1);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 58%, var(--gold) 100%);
  transition: transform 0.12s linear;
}

/* ---------- 5. 页脚：封底 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: clamp(60px, 9vw, 120px);
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(42, 21, 79, 0.6), transparent 66%),
    var(--ink);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-wordmark {
  position: absolute;
  left: 50%;
  bottom: -0.16em;
  z-index: 0;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.8;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(139, 153, 184, 0.13);
  pointer-events: none;
  user-select: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.4fr;
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 78px) clamp(34px, 4vw, 52px);
}

.footer-brand__word {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.1;
  background: linear-gradient(100deg, #FFFFFF 0%, var(--cyan) 48%, var(--violet) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand__name {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.4em;
  color: var(--mist);
}

.footer-brand__summary {
  margin: 0;
  max-width: 32ch;
  font-size: 0.84rem;
  line-height: 1.8;
  color: rgba(139, 153, 184, 0.9);
}

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

.footer-col__title {
  margin: 0 0 1.05em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col__link {
  position: relative;
  display: inline-block;
  padding: 0.3em 0;
  font-size: 0.88rem;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.25s var(--ease), padding-left 0.28s var(--ease);
}

.footer-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.28s var(--ease);
}

.footer-col__link:hover {
  color: var(--ice);
  padding-left: 16px;
  text-decoration: none;
}

.footer-col__link:hover::before { width: 10px; }

.footer-contact__row {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 0.2em 0.9em;
  align-items: baseline;
  margin: 0 0 0.72em;
  font-size: 0.84rem;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(139, 153, 184, 0.68);
}

.footer-contact__value {
  color: var(--ice);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin: 0.9em 0 0;
  padding-top: 0.9em;
  border-top: 1px solid var(--line-soft);
  font-size: 0.76rem;
  line-height: 1.75;
  color: rgba(139, 153, 184, 0.78);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(139, 153, 184, 0.72);
}

.footer-base__copy { margin: 0; }
.footer-base__icp { margin: 0; color: rgba(244, 182, 78, 0.72); }

/* ---------- 6. 通用组件 ---------- */

/* 6.1 按钮 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ice);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.74em 1.35em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease),
              color 0.28s var(--ease), box-shadow 0.32s var(--ease), transform 0.28s var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(118deg, var(--violet) 0%, #4B2FB8 100%);
  --btn-fg: #FFFFFF;
  --btn-bd: rgba(122, 77, 255, 0.62);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(122, 77, 255, 0.45), 0 14px 36px -16px rgba(122, 77, 255, 0.95);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #10141E;
  --btn-bd: var(--gold);
}

.btn--gold:hover {
  --btn-bg: #FFC96F;
  box-shadow: 0 12px 32px -14px rgba(244, 182, 78, 0.9);
}

.btn--ghost {
  --btn-fg: var(--ice);
  --btn-bd: rgba(139, 153, 184, 0.42);
}

.btn--ghost:hover {
  --btn-fg: var(--cyan);
  --btn-bd: rgba(32, 227, 232, 0.75);
  box-shadow: 0 10px 28px -18px rgba(32, 227, 232, 0.9);
}

/* 6.2 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.26em 0.72em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(139, 153, 184, 0.06);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--mist);
  white-space: nowrap;
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(244, 182, 78, 0.42);
  background: rgba(244, 182, 78, 0.09);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(32, 227, 232, 0.42);
  background: rgba(32, 227, 232, 0.08);
}

.tag--moss {
  color: #A6C3AE;
  border-color: rgba(110, 143, 123, 0.55);
  background: rgba(110, 143, 123, 0.14);
}

.tag--clay {
  color: #DC9E7F;
  border-color: rgba(184, 107, 74, 0.52);
  background: rgba(184, 107, 74, 0.13);
}

/* 6.3 卡片：专题研究板 */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 23, 48, 0.92) 0%, rgba(9, 15, 30, 0.78) 100%);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.36s var(--ease), background 0.3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%, rgba(122, 77, 255, 0.18), transparent 56%);
  opacity: 0;
  transition: opacity 0.36s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 26px 62px -38px rgba(122, 77, 255, 0.95);
}

.card:hover::before,
.card:focus-within::before { opacity: 1; }

.card--glow {
  border-color: rgba(122, 77, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(122, 77, 255, 0.14), 0 28px 70px -44px rgba(32, 227, 232, 0.85);
  animation: card-halo 6.5s ease-in-out infinite;
}

@keyframes card-halo {
  0%, 100% { box-shadow: 0 0 0 1px rgba(122, 77, 255, 0.12), 0 26px 66px -46px rgba(32, 227, 232, 0.75); }
  50% { box-shadow: 0 0 0 1px rgba(122, 77, 255, 0.3), 0 30px 76px -40px rgba(122, 77, 255, 0.95); }
}

.card--flat:hover,
.card--flat:focus-within {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

/* 6.4 文本装饰 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 0.9em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.mono-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(139, 153, 184, 0.55);
}

.mono-num--gold {
  color: var(--gold);
  -webkit-text-stroke: 0;
  background: linear-gradient(100deg, var(--gold), #D98F2C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(22px, 3vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head__title { margin: 0; }

.section-head__note {
  margin: 0;
  max-width: 38ch;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--mist);
}

.rule {
  border: 0;
  height: 1px;
  margin: clamp(28px, 4vw, 52px) 0;
  background: linear-gradient(90deg, var(--line) 0%, rgba(139, 153, 184, 0.04) 100%);
}

/* 6.5 正文 */
.prose {
  max-width: var(--measure);
  font-size: 1.01rem;
  line-height: 1.86;
  color: var(--body-text);
}

.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.prose li { margin: 0 0 0.4em; }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(32, 227, 232, 0.45); }

/* 6.6 面包屑 */
.breadcrumb {
  margin: 0 0 clamp(18px, 3vw, 30px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 0.55em; }

.breadcrumb li + li::before {
  content: "/";
  color: rgba(139, 153, 184, 0.4);
}

.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* 6.7 图片容器基础 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 92% at 12% 0%, rgba(122, 77, 255, 0.3), transparent 60%),
    radial-gradient(92% 82% at 96% 100%, rgba(32, 227, 232, 0.2), transparent 62%),
    var(--ink-2);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(139, 153, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 153, 184, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* 6.8 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: var(--z-totop);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 23, 48, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: rgba(32, 227, 232, 0.7);
  color: var(--cyan);
}

/* 6.9 滚动渐显与目录高亮协议 */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

[data-spy-link][data-active] {
  color: var(--cyan);
  border-color: rgba(32, 227, 232, 0.6);
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact__note { max-width: 60ch; }
}

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

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 14px 12px;
  }

  .site-header[data-condensed] .masthead__inner { padding-block: 9px 8px; }

  .masthead__kicker { display: none; }

  .masthead__brand {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }

  .masthead__word { font-size: 1.35rem; letter-spacing: 0.28em; text-indent: 0.28em; }
  .masthead__name { letter-spacing: 0.36em; text-indent: 0.36em; }
  .masthead__cta { display: none; }

  /* 折叠导航 */
  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top-color: transparent;
    background: linear-gradient(180deg, rgba(13, 23, 48, 0.96) 0%, rgba(6, 10, 22, 0.96) 100%);
    transition: max-height 0.42s var(--ease), border-top-color 0.3s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: 520px;
    border-top-color: var(--line-soft);
  }

  .site-nav__inner { display: block; padding-block: 6px 14px; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .site-nav__link {
    width: 100%;
    padding: 0.95rem 0.2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav__link::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
  }

  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: auto; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .masthead-rail__status { display: none; }
  .masthead-rail__meta { letter-spacing: 0.12em; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__summary { max-width: 46ch; }
}

@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--auto { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-wordmark { font-size: 4.6rem; }
  .section-head { align-items: flex-start; }
  .section-head__note { max-width: none; }
}

/* ---------- 8. 动效降级 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .card--glow { animation: none; }
  .status-dot { animation: none; }
}
