/* =========================================================
   易博主站 · 共享样式表 /assets/site.css
   基底：深墨蓝堆叠面板 / 电光青脉冲 / 琥珀金档案刻度
   ========================================================= */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, dt, hr { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1B33;
  --ink-deep: #071322;
  --panel: #16304F;
  --cyan: #2FE3D2;
  --mist: #7CF0E4;
  --amber: #F2A93B;
  --steel: #3A4E6B;
  --violet: #6B6A86;
  --white: #EAF1F8;

  --bg: var(--ink);
  --text: var(--white);
  --text-dim: #A9B8CE;
  --text-mute: var(--violet);
  --line: rgba(58, 78, 107, 0.75);
  --line-soft: rgba(58, 78, 107, 0.4);

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", "Noto Sans Mono CJK SC", monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 999px;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --shadow-panel: 0 26px 64px -34px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% -12%, rgba(47, 227, 210, 0.10), transparent 46%),
    radial-gradient(circle at 90% 2%, rgba(242, 169, 59, 0.07), transparent 42%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p { max-width: 74ch; }
strong { color: var(--mist); font-weight: 700; }

::selection { background: rgba(47, 227, 210, 0.28); color: var(--white); }

/* ---------- 4. 焦点与跳转链接 ---------- */
:focus-visible {
  outline: 2px solid var(--mist);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 5. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin-block: clamp(28px, 4vw, 52px);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--cyan); color: var(--ink-deep); }
.btn--primary:hover { background: var(--mist); }
.btn--ghost {
  background: rgba(22, 48, 79, 0.55);
  border-color: var(--steel);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { padding: 8px 16px; font-size: 12.5px; }

/* ---------- 7. 等宽标记 ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ---------- 8. 面包屑 ---------- */
.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(--text-mute);
}
.breadcrumb__link:hover { color: var(--mist); }
.breadcrumb__sep { color: var(--steel); }

/* ---------- 9. 章节 ---------- */
.section { padding-block: clamp(36px, 5.5vw, 76px); }
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section__lead {
  margin-top: 14px;
  color: var(--text-dim);
  max-width: 64ch;
}

/* ---------- 10. 堆叠面板 ---------- */
.panel {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(22, 48, 79, 0.92), rgba(11, 27, 51, 0.97));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), transparent 72%);
  opacity: 0.8;
}
.panel--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(58, 78, 107, 0.16) 0 1px, transparent 1px 9px);
  opacity: 0.4;
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.panel__num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.panel__title { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.panel__lead { margin-top: 14px; color: var(--text-dim); max-width: 62ch; }
.panel__body { margin-top: 20px; }
.panel.is-collapsed .panel__head { margin-bottom: 0; }

.panel-stack { display: grid; gap: clamp(18px, 3vw, 32px); }

@media (min-width: 1000px) {
  .panel-stack--overlap > .panel:nth-child(odd) { margin-right: clamp(0px, 6vw, 88px); }
  .panel-stack--overlap > .panel:nth-child(even) { margin-left: clamp(0px, 6vw, 88px); }
}

/* ---------- 11. 横向数据带 ---------- */
.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.data-cell { background: rgba(7, 19, 34, 0.78); padding: 18px 20px; }
.data-cell__value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.data-cell__label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

/* ---------- 12. 卡片网格 ---------- */
.card-grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.info-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(22, 48, 79, 0.42);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.info-card:hover { border-color: rgba(47, 227, 210, 0.45); background: rgba(22, 48, 79, 0.62); }
.info-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.info-card__title { margin-top: 10px; font-size: 1.15rem; }
.info-card__text { margin-top: 10px; color: var(--text-dim); font-size: 15.5px; }
.info-card__meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.info-card.is-filtered-out { display: none; }

/* ---------- 13. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}
.filter-chip {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-chip:hover { color: var(--white); border-color: var(--steel); }
.filter-chip[aria-pressed="true"] {
  background: rgba(47, 227, 210, 0.14);
  border-color: rgba(47, 227, 210, 0.5);
  color: var(--cyan);
}
.filter-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

/* ---------- 14. 时间轴 ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.16);
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--amber);
}
.timeline__text { color: var(--text-dim); }

/* ---------- 15. 脉冲节点 ---------- */
.pulse-node {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: middle;
}
.pulse-node::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  animation: ebet-pulse 2.4s var(--ease) infinite;
}
@keyframes ebet-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- 16. 侧边悬浮索引 ---------- */
.index-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: grid;
  gap: 10px;
}
.index-rail__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  transition: color 0.2s var(--ease);
}
.index-rail__link::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s var(--ease);
}
.index-rail__link:hover { color: var(--mist); }
.index-rail__link.is-active { color: var(--cyan); }
.index-rail__link.is-active::before { width: 26px; }
@media (max-width: 1180px) { .index-rail { display: none; } }

/* ---------- 17. 图形容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--panel), var(--ink-deep));
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 18. 刊头 ---------- */
.masthead {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}

.masthead__utility {
  background: rgba(7, 19, 34, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.masthead__utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 9px;
  font-size: 12px;
}
.masthead__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  max-width: none;
}
.masthead__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  max-width: none;
}

.masthead__plate {
  position: relative;
  text-align: center;
  padding-block: clamp(20px, 3vw, 34px) clamp(14px, 2vw, 22px);
}
.masthead__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  max-width: none;
}
.masthead__brand {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.masthead__brand:hover { color: var(--mist); }
.masthead__tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  max-width: none;
}
.masthead__plate::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.masthead__navrow { border-top: 1px solid var(--line-soft); }
.masthead__nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 10px;
}
.site-nav { width: 100%; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.site-nav__link {
  display: block;
  padding: 10px 16px;
  font-size: 14.5px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav__link:hover {
  color: var(--white);
  background: rgba(47, 227, 210, 0.07);
  border-bottom-color: var(--mist);
}
.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(47, 227, 210, 0.09);
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(22, 48, 79, 0.6);
  color: var(--white);
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: background 0.2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.masthead__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  z-index: 150;
  pointer-events: none;
}

@media (max-width: 900px) {
  .masthead__utility-inner { flex-wrap: wrap; justify-content: flex-start; }
  .masthead__note { display: none; }
  .nav-toggle { display: inline-flex; }
  .masthead__nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-block: 12px;
  }
  .site-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s var(--ease), opacity 0.24s var(--ease);
  }
  .site-nav[data-open] {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    opacity: 1;
  }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--cyan);
    background: rgba(47, 227, 210, 0.08);
  }
}

/* ---------- 19. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 62%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(240px, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 30px);
  padding-block: clamp(32px, 5vw, 56px);
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .site-footer__grid { grid-template-columns: 5fr 3fr 4fr; }
}

.footer-panel {
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(22, 48, 79, 0.38);
}
.footer-panel--brand { border-left: 3px solid rgba(47, 227, 210, 0.7); }
.footer-panel--contact { border-left: 3px solid rgba(242, 169, 59, 0.7); }
.footer-panel__kicker { margin-bottom: 12px; }
.footer-panel__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.footer-panel__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

.footer-links { display: grid; gap: 8px; }
.footer-links__item { display: block; }
.footer-links__link {
  display: inline-block;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-links__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-contact { display: grid; gap: 10px; margin-bottom: 18px; }
.footer-contact__row {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.footer-contact__label {
  display: inline-block;
  min-width: 72px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--text-mute);
}
.site-footer__record {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--text-dim);
  max-width: none;
}
.site-footer__note {
  flex: 1 1 320px;
  max-width: 62ch;
  line-height: 1.7;
  color: var(--text-mute);
}
.site-footer__copy {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  max-width: none;
}

/* ---------- 20. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 21. 减少动效偏好 ---------- */
@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-reveal] { opacity: 1; transform: none; }
  .pulse-node::after { animation: none; border-color: var(--cyan); opacity: 0.85; }
  .site-nav { transition: none; }
}
