/* ==========================================================================
   黑料映画 / dark-manga-18jin.com.cn
   全站共享样式 /assets/site.css
   ========================================================================== */

/* 1. 设计变量 */
:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --text: #e8e8e8;
  --text-dim: #a0a0a0;
  --red: #ff2a4d;
  --red-dark: #7a1e1e;
  --green: #00ff9f;
  --purple: #3d1d5c;
  --gold: #d4af37;
  --font-head: 'Impact', 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Georgia', 'Noto Serif SC', serif;
  --font-mono: 'Courier New', 'Noto Sans Mono', monospace;
  --container: 1200px;
  --rail-w: 5px;
  --header-sticky-h: 0px;
}

/* 2. Reset 与基础 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(122, 30, 30, 0.12), transparent 60%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  border-inline: var(--rail-w) solid #0d0d0d;
  pointer-events: none;
  z-index: 900;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
}

strong {
  color: var(--text);
  font-weight: 700;
}

blockquote {
  border-left: 3px solid var(--red);
  background: rgba(255, 42, 77, 0.04);
  color: var(--text-dim);
  padding: 10px 16px;
  margin: 18px 0;
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 1px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-dark);
}

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

/* 3. 通用排版与容器 */
.site-main {
  min-height: 55vh;
  position: relative;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 62ch;
  line-height: 1.9;
}

.lead strong {
  color: var(--text);
}

.index-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-left: 20px;
  margin-bottom: 18px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  background: linear-gradient(to bottom, var(--red), var(--purple));
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
}

.divider__mark {
  color: var(--red);
}

/* 4. 章节与色带 */
.section {
  padding-block: clamp(56px, 8vw, 100px);
  position: relative;
}

.section--tight {
  padding-block: clamp(32px, 5vw, 56px);
}

.section--red-band {
  background: linear-gradient(to bottom, rgba(122, 30, 30, 0.38), rgba(10, 10, 10, 0.65) 55%, var(--bg) 100%);
  border-block: 1px solid rgba(255, 42, 77, 0.22);
}

.section--purple-band {
  background: linear-gradient(to bottom, rgba(61, 29, 92, 0.34), rgba(10, 10, 10, 0.7) 55%, var(--bg) 100%);
  border-block: 1px solid rgba(61, 29, 92, 0.45);
}

.chapter {
  padding-block: clamp(64px, 9vw, 110px);
  position: relative;
}

.chapter__kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.chapter__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.chapter__body {
  max-width: 65ch;
  color: var(--text-dim);
  line-height: 1.85;
}

/* 5. 内页页首、面包屑、网格 */
.page-head {
  position: relative;
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.page-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 14vw;
  max-width: 180px;
  height: 3px;
  background: linear-gradient(to right, var(--red), var(--purple));
}

.page-head__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.page-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-head__desc {
  max-width: 65ch;
  color: var(--text-dim);
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-block: 18px;
}

.breadcrumbs__link {
  color: var(--text-dim);
}

.breadcrumbs__link:hover {
  color: var(--green);
  text-decoration: none;
}

.breadcrumbs__sep {
  color: var(--red);
}

.breadcrumbs__current {
  color: var(--gold);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.content-grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 860px) {
  .content-grid__main--span8 {
    grid-column: 1 / span 8;
  }

  .content-grid__side--span4 {
    grid-column: 9 / span 4;
  }
}

/* 6. 面板、标签、按钮 */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 40px);
  position: relative;
}

.panel--red {
  background: linear-gradient(135deg, rgba(122, 30, 30, 0.35), rgba(10, 10, 10, 0.8) 70%);
  border-color: rgba(255, 42, 77, 0.3);
}

.panel--purple {
  background: linear-gradient(135deg, rgba(61, 29, 92, 0.4), rgba(10, 10, 10, 0.85) 70%);
  border-color: rgba(61, 29, 92, 0.5);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}

.tag--red {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red);
}

.tag--green {
  color: #03130b;
  background: var(--green);
  border-color: var(--green);
  font-weight: bold;
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  color: var(--red);
  border-color: var(--red);
  text-decoration: none;
}

.btn--solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn--solid:hover {
  background: #d61e3d;
  color: #fff;
}

.btn--ghost-green {
  color: var(--green);
  border-color: rgba(0, 255, 159, 0.4);
}

.btn--ghost-green:hover {
  color: var(--green);
  background: rgba(0, 255, 159, 0.08);
  border-color: var(--green);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 7. 图片取景框 */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 120px;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.img-frame[data-caption]::before {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: rgba(10, 10, 10, 0.85);
  border-right: 1px solid var(--line);
  z-index: 2;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--ratio16x9 {
  aspect-ratio: 16 / 9;
}

.img-frame--ratio4x3 {
  aspect-ratio: 4 / 3;
}

.img-frame--bw img {
  filter: grayscale(1) contrast(1.2);
}

.img-frame--tint-red::after {
  background: linear-gradient(180deg, transparent 42%, rgba(122, 30, 30, 0.5) 100%);
}

.img-frame--tilt {
  transform: rotate(-1.2deg);
}

/* 8. 可展开问答组 */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 8px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.accordion__btn:hover {
  background: rgba(255, 42, 77, 0.05);
}

.accordion__icon {
  margin-left: auto;
  width: 18px;
  height: 18px;
  position: relative;
  flex: none;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.accordion__icon::before {
  width: 14px;
  height: 2px;
}

.accordion__icon::after {
  width: 2px;
  height: 14px;
}

.accordion__item[data-open] .accordion__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.js .accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion__content {
  padding: 0 8px 20px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* 9. 胶片齿孔分隔条 */
.film-perforation {
  width: 100%;
  height: 10px;
  flex: none;
  background-color: #0d0d0d;
  background-image: linear-gradient(to right, var(--bg) 0 8px, transparent 8px 24px);
  background-size: 24px 100%;
  background-repeat: repeat-x;
}

/* 10. 全局覆盖层：扫描线、暗角、滚动进度 */
.site-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.5) 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 42, 77, 0.65);
  z-index: 10000;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10001;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--gold);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

/* 11. 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d0d0d;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
}

.site-header__ticker {
  display: flex;
  align-items: stretch;
  height: 28px;
  overflow: hidden;
  background: #14080b;
  border-bottom: 1px solid rgba(255, 42, 77, 0.35);
  position: relative;
}

.site-header__ticker-label {
  flex: none;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  line-height: 28px;
  padding-inline: 14px;
  border-right: 1px solid rgba(255, 42, 77, 0.35);
  background: #0a0a0a;
  animation: rec-blink 1.6s ease-in-out infinite;
}

.site-header__ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
  will-change: transform;
}

.site-header__ticker-text {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(232, 232, 232, 0.62);
  line-height: 28px;
  white-space: nowrap;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  padding-block: 10px;
}

.site-header__meta {
  margin-left: auto;
  text-align: right;
  line-height: 1.6;
}

.site-header__tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}

.site-header__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  margin-right: 6px;
  vertical-align: 1px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__mark {
  width: 46px;
  height: 46px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow:
    0 0 12px rgba(255, 42, 77, 0.25),
    inset 0 0 0 2px #1a0508;
  position: relative;
  flex: none;
}

.site-brand__mark::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 42, 77, 0.4);
  border-radius: 50%;
}

.site-brand__mark-h {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
}

.site-brand__name {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 4vw, 1.6rem);
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.site-nav {
  position: relative;
  border-top: 1px solid var(--line);
}

.site-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 42, 77, 0.55) 0 20px,
    transparent 20px 48px
  );
  pointer-events: none;
  z-index: 1;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.site-nav__item:last-child .site-nav__link {
  border-right: 1px solid var(--line);
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-left: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(255, 42, 77, 0.08);
  text-decoration: none;
}

.site-nav__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.site-nav__num {
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.08em;
}

.site-nav__link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 42, 77, 0.1);
}

.site-nav__link[aria-current="page"] .site-nav__dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: rec-blink 1.6s ease-in-out infinite;
}

.site-nav__link[aria-current="page"] .site-nav__num {
  color: var(--green);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--text);
}

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

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  height: 14px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

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

/* 12. 页脚 */
.site-footer {
  margin-top: 90px;
  position: relative;
  background: #0d0d0d;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 40px;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  padding-block: 44px 28px;
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 12px 14px;
}

.site-footer__brand .site-footer__trust {
  flex-basis: 100%;
}

.site-brand__mark--footer {
  width: 34px;
  height: 34px;
  border-width: 2px;
}

.site-brand__mark--footer .site-brand__mark-h {
  font-size: 1.1rem;
}

.site-footer__name {
  font-family: var(--font-head);
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.site-footer__trust {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 42ch;
  border-left: 2px solid var(--red);
  padding-left: 14px;
  margin: 0;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.site-footer__list li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 4px 0;
  line-height: 1.6;
}

.site-footer__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-right: 8px;
}

.site-footer__list--links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__list--links a::before {
  content: '▶';
  color: var(--red);
  font-size: 0.55rem;
  margin-right: 6px;
}

.site-footer__list--links a:hover {
  color: var(--green);
  padding-left: 8px;
  text-decoration: none;
}

.site-footer__service {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 14px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px dashed var(--line);
}

.site-footer__regional {
  height: 54px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(to top, rgba(61, 29, 92, 0.22), transparent 70%);
}

.site-footer__regional::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 42, 77, 0.35), transparent);
}

.site-footer__ridge {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 520px;
  height: 44px;
  transform: translateX(-50%);
  background: #181818;
  clip-path: polygon(
    0% 60%, 6% 45%, 11% 55%, 19% 30%, 27% 52%, 36% 18%,
    45% 55%, 55% 28%, 64% 58%, 72% 22%, 80% 48%, 88% 35%,
    94% 52%, 100% 42%, 100% 100%, 0% 100%
  );
  opacity: 0.85;
}

.site-footer__tower {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 64px;
  height: 66px;
  transform: translateX(-50%) scale(0.9);
  background: #222;
  clip-path: polygon(
    12% 100%, 12% 62%, 0% 54%, 8% 46%, 8% 34%, 0% 28%, 22% 18%, 22% 8%,
    30% 0%, 70% 0%, 78% 8%, 78% 18%, 100% 28%, 92% 34%, 92% 46%, 100% 54%,
    88% 62%, 88% 100%
  );
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(255, 42, 77, 0.15));
}

.site-footer__bottom {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 14px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.site-footer__copy::before {
  content: '● ';
  color: var(--red);
  font-size: 0.6rem;
}

.site-footer__icp {
  color: var(--text-dim);
}

/* 13. 显现动画 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* 14. 响应式 */
@media (min-width: 700px) {
  .site-footer__main {
    grid-template-columns: 1.3fr 1fr 0.9fr;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav__link {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .site-header__meta {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #0d0d0d;
    border-left: 1px solid var(--line);
    border-top: none;
    padding: 84px 24px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
    z-index: 60;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.55);
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s ease, visibility 0s;
  }

  .site-nav::before {
    top: 0;
    left: 0;
    right: auto;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255, 42, 77, 0.55) 0 20px,
      transparent 20px 48px
    );
  }

  .site-nav__list {
    width: 100%;
    flex-direction: column;
    margin: 0;
  }

  .site-nav__item:last-child .site-nav__link {
    border-right: none;
  }

  .site-nav__link {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 8px;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--green);
  }
}

@media (max-width: 560px) {
  .site-header__ticker {
    display: none;
  }

  .site-header__bar {
    gap: 12px;
  }

  .site-brand__mark {
    width: 40px;
    height: 40px;
  }

  .site-brand__mark-h {
    font-size: 1.25rem;
  }

  .site-footer__regional {
    height: 46px;
  }

  .site-footer__tower {
    transform: translateX(-50%) scale(0.75);
    bottom: 10px;
  }
}

/* 15. 动效与无障碍 */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes rec-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header__ticker-track,
  .site-header__ticker-label {
    animation: none;
  }

  .site-nav__link[aria-current="page"] .site-nav__dot {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

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

  .js .accordion__panel {
    transition: none;
  }
}
