/* ============================================================
   漫画 App官网 · 样式表（赛博风）
   暗色底 · 霓虹青 / 品红 / 酸绿 · 切角面板 · HUD 角标 · 等宽标签
   仅负责视觉，不承载内容
   ============================================================ */
:root {
  --bg: #05070d;
  --panel: #0b0f1a;
  --panel2: #111827;
  --line: #1b2740;
  --cyan: #00e5ff;
  --mag: #ff2bd6;
  --acid: #c8ff00;
  --text: #e6f1ff;
  --mute: #8b97ad;
  --w: 1200px;
  --mono: Consolas, "Courier New", "Lucida Console", monospace;
  --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --cut-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: break-word;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.07), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255, 43, 214, 0.06), transparent 50%);
}
/* 静态扫描线：不做动画，避免闪烁 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: inherit;
}
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--cyan);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 999;
  font-family: var(--mono);
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}
.w {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.mono,
.idx,
.en,
.ni,
.eyebrow,
.status,
.date-tag,
.p-idx,
.p-cat,
.g-idx,
.w-no,
.w-meta,
.tag,
.n-cat,
.meta,
.article-meta,
.location,
.s-cat,
.cta-tag,
.shelf-count,
.rank .no,
.dir,
time {
  font-family: var(--mono);
}
.news-grid > *,
.about-grid > *,
.layout > *,
.p-grid > *,
.work-grid > *,
.genre-grid > *,
.faq3 > *,
.adv-grid > *,
.map-cols > *,
.dl-grid > *,
.c-grid > *,
.related-grid > *,
.zig > *,
.rank-grid > *,
.header-in > *,
.main-col,
.quick-grid > * {
  min-width: 0;
}

/* ---------- 状态栏 ---------- */
.topbar {
  background: #020308;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  gap: 14px;
}
.status {
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  flex: none;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.topbar-welcome {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar a {
  color: var(--mute);
  padding: 6px 0;
}
.topbar a:hover {
  color: var(--cyan);
}
.topbar-links a {
  margin-left: 16px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.topbar-search {
  display: flex;
  align-items: center;
}
.topbar-search input {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 5px 10px;
  font-size: 12px;
  width: 150px;
  font-family: var(--mono);
}
.topbar-search button {
  background: var(--cyan);
  border: 0;
  color: var(--bg);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- 页头 ---------- */
.site-header {
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 12px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.logo-mark {
  width: 44px;
  height: 44px;
  clip-path: var(--cut-sm);
  background: var(--bg);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 800;
  font-size: 22px;
  flex: none;
  position: relative;
  box-shadow: inset 0 0 0 2px var(--cyan);
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.9));
  }
}
.logo-text .name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text .slogan {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  display: block;
  font-family: var(--mono);
  opacity: 0.85;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  align-items: center;
  gap: 8px;
  clip-path: var(--cut-sm);
}
.nt-bar {
  width: 16px;
  height: 2px;
  background: var(--cyan);
  box-shadow:
    0 -5px 0 var(--cyan),
    0 5px 0 var(--cyan);
}

.main-nav > ul {
  display: flex;
}
.main-nav > ul > li {
  position: relative;
  display: flex;
  align-items: center;
}
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 80px;
  padding: 0 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  position: relative;
  white-space: nowrap;
  color: #c9d4e6;
}
.ni {
  font-size: 9px;
  color: var(--cyan);
  opacity: 0.7;
}
.main-nav > ul > li > a::before,
.main-nav > ul > li > a::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.2s;
}
.main-nav > ul > li > a::before {
  content: "[";
  left: 0;
}
.main-nav > ul > li > a::after {
  content: "]";
  right: 0;
}
.main-nav > ul > li > a:hover {
  color: #fff;
}
.main-nav > ul > li > a:hover::before,
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a[aria-current="page"]::before,
.main-nav > ul > li > a[aria-current="page"]::after {
  transform: translateY(-50%) scaleY(1);
}
.main-nav > ul > li > a[aria-current="page"] {
  color: var(--cyan);
}
.has-sub > a {
  padding-right: 8px;
}
.sub-toggle {
  width: 22px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  margin-right: 4px;
}
.sub-toggle:hover {
  color: var(--cyan);
}
.sub-toggle svg {
  transition: transform 0.25s;
}
.sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.sub-nav {
  display: none;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  min-width: 170px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
  z-index: 110;
  clip-path: var(--cut-sm);
}
.sub-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: #c9d4e6;
}
.sub-nav a:hover,
.sub-nav a[aria-current="page"] {
  background: var(--cyan);
  color: var(--bg);
}
.has-sub.open > .sub-nav {
  display: block;
}
html.no-js .has-sub:hover > .sub-nav,
html.no-js .has-sub:focus-within > .sub-nav {
  display: block;
}

/* ---------- 首页轮播 ---------- */
.banner {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      0 48px,
      48px 0;
  }
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 13, 0.92) 0%,
    rgba(5, 7, 13, 0.6) 50%,
    rgba(5, 7, 13, 0.15) 100%
  );
}
.slides {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide.on {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-text {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 80px 16px 100px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.eyebrow::after {
  content: "_";
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  to {
    opacity: 0;
  }
}
.banner-text h1 {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  max-width: 24em;
  letter-spacing: 0.02em;
}
.banner-text h1 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
}
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  animation: g1 1.4s steps(2) 1;
}
.glitch::after {
  color: var(--mag);
  animation: g2 1.4s steps(2) 1;
}
.banner:hover .glitch::before {
  animation: g1 0.9s steps(2) 1;
}
.banner:hover .glitch::after {
  animation: g2 0.9s steps(2) 1;
}
@keyframes g1 {
  0% {
    opacity: 0.9;
    clip-path: inset(10% 0 70% 0);
    transform: translate(-6px, 0);
  }
  30% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(5px, 0);
  }
  60% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-3px, 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
}
@keyframes g2 {
  0% {
    opacity: 0.8;
    clip-path: inset(60% 0 10% 0);
    transform: translate(6px, 0);
  }
  30% {
    clip-path: inset(5% 0 80% 0);
    transform: translate(-4px, 0);
  }
  60% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(3px, 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: none;
  }
}
.caps {
  position: relative;
  margin-top: 18px;
  min-height: 3.6em;
}
.cap {
  color: #b9c6dc;
  font-size: 17px;
  max-width: 36em;
  border-left: 2px solid var(--mag);
  padding-left: 14px;
}
.cap:not(.on) {
  display: none;
}
.cap strong {
  color: var(--acid);
  font-weight: 700;
}
.slide-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 5;
  gap: 2px;
}
.dots button {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.dots button::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  background: rgba(230, 241, 255, 0.3);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.dots button[aria-current="true"]::before {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.banner-pause {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 6;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--cyan);
  background: rgba(5, 7, 13, 0.7);
  color: var(--cyan);
  padding: 0 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  clip-path: var(--cut-sm);
}
.banner-pause:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* 滚动标签带 */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #020308;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mute);
  padding: 10px 28px;
  white-space: nowrap;
  position: relative;
}
.ticker-track span::after {
  content: "◆";
  position: absolute;
  right: -6px;
  color: var(--mag);
  font-size: 8px;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 28px;
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  clip-path: var(--cut-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after {
  left: 140%;
}
.btn-main {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}
.btn-main:hover {
  background: #4df0ff;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.6);
}
.btn-line {
  border-color: rgba(230, 241, 255, 0.6);
  color: #fff;
  background: rgba(5, 7, 13, 0.3);
}
.btn-line:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-hollow {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-hollow:hover {
  background: var(--cyan);
  color: var(--bg);
}
.btn-pink {
  background: var(--mag);
  color: #fff;
  font-weight: 700;
}
.btn-pink:hover {
  background: #ff5ee2;
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.5);
}
.btn-dark {
  background: var(--panel2);
  color: var(--text);
}
.btn-sm {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 13px;
}

/* ---------- 栏目标题 ---------- */
.sec {
  padding: 76px 0;
}
.sec-alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-dark {
  background: #020308 linear-gradient(180deg, #020308, #0b0f1a);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 76px 0;
}
.sec-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  position: relative;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform-origin: left;
}
.st-l {
  display: flex;
  flex-direction: column;
}
.sec-title .idx {
  color: var(--mag);
  font-size: 12px;
  letter-spacing: 0.3em;
}
.sec-title .en {
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.4em;
  margin-bottom: 6px;
}
.sec-title h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.sec-title .desc {
  color: var(--mute);
  margin-top: 8px;
  font-size: 14px;
}
.sec-title .more {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding-bottom: 6px;
}
.sec-title .more:hover {
  color: #fff;
}

/* 面板 + 角标（通用） */
.tile,
.genre,
.work,
.p-card,
.adv-item,
.news-card,
.faq,
.side-box,
.rank,
.quick,
.dl-card,
.c-item,
.scene,
.faq-item,
.s-item,
.empty {
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}
.tile::before,
.genre::before,
.work::before,
.p-card::before,
.news-card::before,
.faq::before,
.rank::before,
.quick::before,
.dl-card::before,
.c-item::before,
.scene::before,
.faq-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 14px;
  height: 14px;
  border-left: 2px solid var(--cyan);
  border-top: 2px solid var(--cyan);
  transition:
    width 0.25s,
    height 0.25s;
  pointer-events: none;
}
.tile::after,
.genre::after,
.work::after,
.p-card::after,
.news-card::after,
.faq::after,
.rank::after,
.quick::after,
.dl-card::after,
.c-item::after,
.scene::after,
.faq-item::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--mag);
  border-bottom: 2px solid var(--mag);
  transition:
    width 0.25s,
    height 0.25s;
  pointer-events: none;
}
.tile:hover::before,
.genre:hover::before,
.work:hover::before,
.p-card:hover::before,
.news-card:hover::before,
.faq:hover::before,
.rank:hover::before,
.quick:hover::before,
.dl-card:hover::before,
.c-item:hover::before,
.scene:hover::before,
.faq-item:hover::before,
.tile:hover::after,
.genre:hover::after,
.work:hover::after,
.p-card:hover::after,
.news-card:hover::after,
.faq:hover::after,
.rank:hover::after,
.quick:hover::after,
.dl-card:hover::after,
.c-item:hover::after,
.scene:hover::after,
.faq-item:hover::after {
  width: 28px;
  height: 28px;
}

/* ---------- 关于：bento ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.tile {
  padding: 30px;
}
.tile-lead {
  grid-row: 1 / 3;
}
.tile-lead h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}
.tile-lead p {
  color: #b9c6dc;
  margin-bottom: 14px;
  text-align: justify;
}
.tile-lead .btn {
  margin-top: 8px;
}
.tile-pic {
  padding: 0;
  overflow: hidden;
}
.tile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.tile-pic:hover img {
  transform: scale(1.04);
}
.tile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
}
.stat {
  border-left: 2px solid var(--acid);
  padding-left: 12px;
}
.stat b {
  display: block;
  font-size: 17px;
  color: #fff;
}
.stat span {
  color: var(--mute);
  font-size: 12px;
  font-family: var(--mono);
}

/* ---------- 题材方向 ---------- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.genre {
  --gc: var(--cyan);
  padding: 22px 18px 20px;
  display: block;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  clip-path: var(--cut);
}
.genre::before,
.genre::after {
  display: none;
}
.genre .g-idx {
  font-size: 11px;
  color: var(--gc);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 14px;
}
.genre h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #fff;
  position: relative;
  padding-left: 14px;
}
.genre h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 14px;
  background: var(--gc);
  box-shadow: 0 0 8px var(--gc);
}
.genre p {
  font-size: 12px;
  color: var(--mute);
}
.genre .g-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--gc);
  font-family: var(--mono);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s;
}
.genre:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px var(--gc),
    0 12px 30px rgba(0, 0, 0, 0.5);
}
.genre:hover .g-arrow {
  opacity: 1;
  transform: none;
}

/* ---------- 作品 ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.work-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work {
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.work:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--cyan),
    0 16px 36px rgba(0, 0, 0, 0.55);
}
.work .cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}
.work .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.work:hover .cover img {
  transform: scale(1.05);
}
.work .w-no {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  color: var(--cyan);
  background: rgba(5, 7, 13, 0.8);
  padding: 2px 6px;
  border: 1px solid var(--cyan);
}
.work .w-body {
  padding: 12px 12px 14px;
  flex: 1;
  border-top: 1px solid var(--line);
}
.work :is(h2, h3) {
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0;
  color: #fff;
}
.work .tag {
  display: inline-block;
  font-size: 10px;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.5);
  padding: 0 6px;
  margin-right: 4px;
  letter-spacing: 0.05em;
}
.work .tag-end {
  color: var(--acid);
  border-color: rgba(200, 255, 0, 0.5);
}
.work p {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.6;
}
.work .w-meta {
  font-size: 11px;
  color: var(--mute);
  margin-top: 8px;
}
.work-grid-3 .work :is(h2, h3) {
  font-size: 17px;
}
.work-grid-3 .work p {
  font-size: 13px;
  color: #b9c6dc;
}

/* ---------- 产品功能 ---------- */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  min-height: 44px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  clip-path: var(--cut-sm);
}
.tabs button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.tabs button[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
  font-weight: 700;
}
.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.p-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 30px;
}
.p-card {
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.p-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px var(--cyan),
    0 14px 34px rgba(0, 0, 0, 0.5);
}
.p-card > a:first-child {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.p-card img {
  transition: transform 0.6s;
}
.p-card:hover img {
  transform: scale(1.04);
}
.p-card .p-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.p-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.p-idx {
  color: var(--mag);
}
.p-cat {
  color: var(--mute);
}
.p-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.p-card:hover h3 {
  color: var(--cyan);
}
.p-card p {
  color: var(--mute);
  font-size: 14px;
  flex: 1;
}
.p-card .p-more {
  margin-top: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

/* ---------- 优势：HUD 条 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
}
.adv-item {
  padding: 32px 26px 30px;
  border: 0;
  border-right: 1px solid var(--line);
  transition: background 0.25s;
}
.adv-item:last-child {
  border-right: 0;
}
.adv-item:hover {
  background: rgba(0, 229, 255, 0.05);
}
.adv-item .num {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: rgba(0, 229, 255, 0.18);
  line-height: 1;
  display: block;
  margin-bottom: -18px;
}
.adv-item .ico {
  width: 54px;
  height: 54px;
  margin: 0 0 18px;
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  clip-path: var(--cut-sm);
}
.adv-item:hover .ico {
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}
.adv-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}
.adv-item p {
  color: var(--mute);
  font-size: 14px;
}

/* ---------- 资讯：日志流 ---------- */
.news-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.news-card {
  overflow: hidden;
}
.news-card > a:first-child {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.news-card img {
  transition: transform 0.6s;
}
.news-card:hover img {
  transform: scale(1.04);
}
.news-card .n-body {
  padding: 20px 22px;
}
.news-card h3 {
  font-size: 19px;
  margin: 8px 0;
  line-height: 1.5;
  color: #fff;
}
.news-card h3 a:hover {
  color: var(--cyan);
}
.news-card p {
  color: var(--mute);
  font-size: 14px;
}
.date-tag {
  color: var(--acid);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.news-list {
  border: 1px solid var(--line);
  background: var(--panel);
}
.news-list li {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  transition: background 0.2s;
}
.news-list li:last-child {
  border-bottom: 0;
}
.news-list li:hover {
  background: rgba(0, 229, 255, 0.05);
}
.news-list time {
  color: var(--acid);
  font-size: 12px;
  flex: none;
}
.news-list li a {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #d6e0f0;
}
.news-list li a:hover {
  color: var(--cyan);
}
.n-cat {
  color: var(--mute);
  font-size: 11px;
  flex: none;
}
.news-more {
  margin-top: 18px;
}

/* ---------- 引导通栏 / FAQ ---------- */
.cta {
  position: relative;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(0, 229, 255, 0.06) 22px 24px),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255, 43, 214, 0.05) 22px 24px);
  pointer-events: none;
}
.cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.cta-tag {
  color: var(--mag);
  font-size: 12px;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 6px;
}
.cta h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.cta p {
  margin-top: 8px;
  color: var(--mute);
  max-width: 40em;
}
.faq3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.faq {
  padding: 22px;
}
.faq h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}
.faq h3::before {
  content: "Q>";
  color: var(--cyan);
  font-family: var(--mono);
  margin-right: 8px;
}
.faq p {
  color: var(--mute);
  font-size: 14px;
}
.faq p::before {
  content: "A>";
  color: var(--mag);
  font-family: var(--mono);
  margin-right: 8px;
}

/* ---------- 内页公共 ---------- */
.page-banner {
  background: #020308;
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid var(--mag);
  border-radius: 50%;
  opacity: 0.5;
  box-shadow: inset 0 0 0 40px rgba(255, 43, 214, 0.06);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
.page-banner .w {
  position: relative;
  z-index: 1;
}
.page-banner h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  position: relative;
  padding-left: 18px;
}
.page-banner h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.page-banner .sub {
  color: var(--mute);
  margin-top: 10px;
  max-width: 44em;
  padding-left: 18px;
  font-family: var(--mono);
  font-size: 13px;
}
.location {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.location .w {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-wrap: wrap;
  gap: 4px;
}
.location ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.location li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--mag);
}
.location a:hover {
  color: var(--cyan);
}
.location [aria-current] {
  color: var(--cyan);
}
.location .loc-label {
  color: var(--acid);
  margin-right: 8px;
}
.location .loc-label::before {
  content: "~ ";
}

.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "nav main" "extra main";
  column-gap: 34px;
  padding-block: 50px;
}
.side-nav-col {
  grid-area: nav;
}
.side-extra-col {
  grid-area: extra;
  align-self: start;
}
.main-col {
  grid-area: main;
}
.side-box {
  margin-bottom: 20px;
  overflow: hidden;
}
.side-box .side-hd {
  padding: 14px 18px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
  background: #020308;
}
.side-box .side-hd::before {
  content: "// ";
}
.side-box ul li a {
  display: block;
  padding: 12px 18px 12px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  position: relative;
  color: #c9d4e6;
  transition:
    background 0.2s,
    padding 0.2s;
}
.side-box ul li:last-child a {
  border-bottom: 0;
}
.side-box ul li a::before {
  content: "›";
  position: absolute;
  left: 16px;
  color: var(--mute);
}
.side-box ul li a:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  padding-left: 34px;
}
.side-box ul li a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}
.side-box ul li a[aria-current="page"]::before {
  content: "›";
  color: var(--cyan);
}
.side-cta {
  padding: 24px 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(255, 43, 214, 0.12));
}
.side-cta h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}
.side-cta p {
  color: var(--mute);
  font-size: 13px;
  margin-bottom: 16px;
}
.main-col .m-hd {
  font-size: 22px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 22px;
  position: relative;
  color: #fff;
}
.main-col .m-hd::before {
  content: "// ";
  color: var(--mag);
  font-family: var(--mono);
  font-size: 16px;
}
.main-col .m-hd::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.m-hd-sub {
  margin-top: 8px;
}
.cat-intro {
  color: var(--mute);
  margin-bottom: 18px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #fff;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--acid);
}
.prose p {
  margin-bottom: 14px;
  color: #c9d4e6;
  text-align: justify;
}
.prose ul,
.prose ol {
  margin: 0 0 16px 1.4em;
}
.prose ul {
  list-style: square;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-bottom: 6px;
  color: #c9d4e6;
}
.prose li::marker {
  color: var(--mag);
}
.prose a {
  color: var(--cyan);
  border-bottom: 1px dotted rgba(0, 229, 255, 0.6);
}
.prose a:hover {
  color: #fff;
}
.prose .figure {
  margin: 18px 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.prose.intro {
  max-width: 820px;
  margin-bottom: 26px;
}
.prose.intro-sm {
  margin-bottom: 8px;
}
.article-meta {
  color: var(--mute);
  font-size: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  letter-spacing: 0.04em;
}
.article-meta a {
  color: var(--cyan);
}
.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}
.pn a {
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 14px;
  background: var(--panel);
  line-height: 1.5;
  color: #d6e0f0;
  clip-path: var(--cut-sm);
}
.pn a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.pn .dir {
  display: block;
  font-size: 11px;
  color: var(--mag);
  margin-bottom: 2px;
  letter-spacing: 0.1em;
}
.pn .pn-next {
  text-align: right;
}
.related {
  margin-top: 30px;
}
.related h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--mono);
  letter-spacing: 0.1em;
}
.related h2::before {
  content: "// ";
  color: var(--mag);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related-grid a {
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: block;
  background: var(--panel);
  transition: border-color 0.2s;
}
.related-grid a:hover {
  border-color: var(--cyan);
}
.related-grid b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
  color: #e6f1ff;
}
.related-grid span {
  font-size: 11px;
  color: var(--mute);
  font-family: var(--mono);
}
.next-steps {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.next-steps .btn-main {
  color: var(--bg);
}
.faq-item {
  padding: 18px 20px;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #fff;
}
.faq-item h3::before {
  content: "Q>";
  color: var(--cyan);
  font-family: var(--mono);
  margin-right: 8px;
}
.faq-item p {
  color: var(--mute);
  font-size: 14px;
}
.faq-item p::before {
  content: "A>";
  color: var(--mag);
  font-family: var(--mono);
  margin-right: 8px;
}
.faq-group-hd {
  font-size: 14px;
  margin: 26px 0 12px;
  color: var(--acid);
  font-family: var(--mono);
  letter-spacing: 0.14em;
}
.faq-group-hd::before {
  content: "## ";
}
.article-list .item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.article-list .item > a:first-child {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-list h3 {
  font-size: 17px;
  margin-bottom: 6px;
  line-height: 1.5;
  color: #fff;
}
.article-list h3 a:hover {
  color: var(--cyan);
}
.article-list p {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 8px;
}
.article-list .meta {
  font-size: 11px;
  color: var(--acid);
}
.empty {
  border-style: dashed;
  padding: 44px 24px;
  text-align: center;
  color: var(--mute);
}
.empty strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}
.empty .links {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 下载 / 联系 */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 6px 0 10px;
}
.dl-card {
  padding: 24px;
}
.dl-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--cyan) !important;
  font-family: var(--mono);
}
.dl-meta {
  list-style: none !important;
  margin: 0 0 14px !important;
}
.dl-meta li {
  color: #c9d4e6;
  font-size: 14px;
  margin: 0 0 4px !important;
}
.c-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 10px;
}
.c-item {
  padding: 18px 20px;
}
.c-item h3 {
  font-size: 12px;
  color: var(--mag) !important;
  font-weight: 400;
  margin: 0 0 6px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
}
.c-item .c-big {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
  word-break: break-all;
}
.c-item p {
  font-size: 13px;
  color: var(--mute);
  margin: 0;
}
.c-item .btn {
  margin-top: 12px;
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.scene {
  padding: 20px;
}
.scene h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #fff !important;
}
.scene p {
  font-size: 14px;
  color: var(--mute);
  margin: 0;
  text-align: left;
}
.mail-note {
  font-size: 12px;
  color: var(--mute);
  margin-top: 8px;
  font-family: var(--mono);
}

/* 搜索 */
.search-form {
  display: flex;
  max-width: 560px;
  margin: 6px 0 22px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--cyan);
  border-right: 0;
  background: var(--panel);
  color: var(--text);
  padding: 11px 16px;
  font-size: 15px;
  min-height: 48px;
  font-family: var(--mono);
}
.search-form button {
  border: 0;
  background: var(--cyan);
  color: var(--bg);
  padding: 0 26px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
}
.s-hint {
  color: var(--mute);
  font-size: 13px;
  margin-bottom: 14px;
  font-family: var(--mono);
}
.s-hint strong {
  color: var(--acid);
}
.s-item {
  padding: 14px 16px;
  margin-bottom: 10px;
}
.s-item h3 {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}
.s-item h3 a:hover {
  color: var(--cyan);
}
.s-item p {
  color: var(--mute);
  font-size: 13px;
  margin-top: 4px;
}
.s-cat {
  display: inline-block;
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.5);
  padding: 0 8px;
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.map-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.map-wrap {
  padding-top: 48px;
  padding-bottom: 48px;
}
.map-cols h2 {
  font-size: 14px;
  color: var(--cyan);
  font-family: var(--mono);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.map-cols h2::before {
  content: "// ";
  color: var(--mag);
}
.map-cols li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.map-cols a:hover {
  color: var(--cyan);
}
.w.narrow {
  max-width: 900px;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ---------- 书架 / 阅读功能 ---------- */
.sec-tight {
  padding-top: 44px;
}
.shelf-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
}
.shelf-tools .lbl {
  font-size: 12px;
  color: var(--mute);
  margin-right: 4px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  min-height: 40px;
  font-family: var(--mono);
  clip-path: var(--cut-sm);
}
.chip:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
  font-weight: 700;
}
.shelf-count {
  font-size: 12px;
  color: var(--acid);
  margin: -12px 0 22px;
  letter-spacing: 0.06em;
}
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rank {
  padding: 20px 22px;
}
.rank h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: var(--mono);
  letter-spacing: 0.14em;
}
.rank h3::before {
  content: "// ";
  color: var(--mag);
}
.rank li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.rank li:last-child {
  border-bottom: 0;
}
.rank .no {
  width: 24px;
  height: 22px;
  background: var(--panel2);
  color: var(--mute);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rank li:nth-child(-n + 3) .no {
  background: var(--mag);
  color: #fff;
}
.rank li a:hover {
  color: var(--cyan);
}
.rank li span.g {
  color: var(--mute);
  font-size: 11px;
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
}
.zig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.zig:last-child {
  border-bottom: 0;
}
.zig:nth-child(even) .zig-pic {
  order: 2;
}
.zig-pic {
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.zig-pic::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 20px;
  height: 20px;
  border-left: 2px solid var(--cyan);
  border-top: 2px solid var(--cyan);
  z-index: 1;
}
.zig-pic::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--mag);
  border-bottom: 2px solid var(--mag);
  z-index: 1;
}
.zig-pic img {
  transition: transform 0.6s;
}
.zig:hover .zig-pic img {
  transform: scale(1.03);
}
.zig h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.zig h2 small {
  display: block;
  color: var(--mag);
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
  font-weight: 400;
  font-family: var(--mono);
}
.zig .lead {
  color: var(--cyan);
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 13px;
}
.zig p {
  color: #c9d4e6;
  margin-bottom: 12px;
  text-align: justify;
}
.zig ul {
  margin-top: 10px;
}
.zig li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  color: #c9d4e6;
  font-size: 14px;
}
.zig li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--acid);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.quick {
  padding: 20px;
  text-align: center;
}
.quick b {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}
.quick span {
  font-size: 13px;
  color: var(--mute);
}
.nw {
  white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #020308;
  color: var(--mute);
  font-size: 14px;
  border-top: 1px solid var(--line);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mag), transparent);
}
.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 56px 0 40px;
}
.site-footer h2 {
  color: var(--cyan);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.14em;
}
.site-footer li {
  margin-bottom: 9px;
}
.site-footer a:hover {
  color: var(--cyan);
}
.f-brand .logo-text .name {
  color: #fff;
  font-size: 20px;
}
.f-brand p {
  margin-top: 14px;
  max-width: 24em;
  font-size: 13px;
  line-height: 1.9;
}
.f-contact p {
  margin-bottom: 14px;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
  color: var(--mute);
  font-family: var(--mono);
}
.footer-bottom .w {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--mute);
}
.footer-bottom a:hover {
  color: var(--cyan);
}
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  background: var(--bg);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  font-size: 18px;
  cursor: pointer;
  z-index: 120;
  clip-path: var(--cut-sm);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  /* 隐藏时同时退出 Tab 顺序与读屏树，动画结束后才切 visibility */
  visibility: hidden;
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0s linear 0.3s;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.to-top:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* ============================================================
   动效层（类名由 JS 添加；无 JS 或“减少动态效果”时内容直接可见）
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.rv-left,
.rv-right {
  transform: translateY(24px);
}
.genre.rv {
  clip-path: var(--cut);
}
.genre.rv.in {
  clip-path: var(--cut);
}
.sec-title::after {
  transform: scaleX(0);
  transition: transform 0.8s ease 0.2s;
}
.sec-title.in::after,
html.no-js .sec-title::after {
  transform: scaleX(1);
}
.slide img {
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.slide.on img {
  transform: scale(1);
}
.cap.on {
  animation: capIn 0.5s ease;
}
@keyframes capIn {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
.header-in,
.main-nav > ul > li > a,
.logo-mark,
.logo-text .name {
  transition: all 0.3s ease;
}
.site-header.shrink .header-in {
  min-height: 62px;
}
.site-header.shrink .main-nav > ul > li > a {
  height: 62px;
}
.site-header.shrink .sub-nav {
  top: 62px;
}
.site-header.shrink .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 17px;
}
.site-header.shrink .logo-text .name {
  font-size: 18px;
}
.p-card.fade,
.work.fade {
  animation: capIn 0.45s ease;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1300px) {
  .logo-text .slogan {
    display: none;
  }
  .main-nav > ul > li > a {
    padding: 0 11px;
    font-size: 14px;
  }
  .ni {
    display: none;
  }
}
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    justify-content: center;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--cyan);
    max-height: 75vh;
    overflow: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav > ul {
    flex-direction: column;
  }
  .main-nav > ul > li {
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .main-nav > ul > li > a {
    height: auto;
    min-height: 48px;
    padding: 12px 20px;
    flex: 1;
    font-size: 15px;
  }
  .main-nav > ul > li > a::before,
  .main-nav > ul > li > a::after {
    display: none;
  }
  .ni {
    display: inline;
  }
  .sub-toggle {
    width: 48px;
    height: 48px;
    margin: 0 8px 0 0;
  }
  .sub-nav {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--line);
    background: #020308;
    width: 100%;
    clip-path: none;
  }
  .sub-nav a {
    text-align: left;
    padding-left: 44px;
    white-space: normal;
  }
  .genre-grid,
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .adv-grid,
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adv-item:nth-child(2) {
    border-right: 0;
  }
  .adv-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .footer-in,
  .map-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .topbar-welcome {
    display: none;
  }
  .banner {
    min-height: 460px;
  }
  .banner::after {
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.55), rgba(5, 7, 13, 0.85));
  }
  .banner-text {
    padding: 52px 16px 84px;
  }
  .banner-text h1 {
    font-size: 30px;
  }
  .cap {
    font-size: 15px;
  }
  .sec,
  .sec-dark {
    padding: 50px 0;
  }
  .sec-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sec-title h2 {
    font-size: 26px;
  }
  .about-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .tile-lead {
    grid-row: auto;
  }
  .tile-stats {
    grid-template-columns: 1fr;
  }
  .p-grid,
  .p-grid-2,
  .faq3,
  .dl-grid,
  .rank-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }
  .adv-grid {
    grid-template-columns: 1fr;
  }
  .adv-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .adv-item:last-child {
    border-bottom: 0;
  }
  .pn {
    grid-template-columns: 1fr;
  }
  .pn .pn-next {
    text-align: left;
  }
  .page-banner {
    padding: 40px 0;
  }
  .page-banner h1 {
    font-size: 24px;
  }
  .article-list .item {
    grid-template-columns: 1fr;
  }
  .zig {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .zig:nth-child(even) .zig-pic {
    order: 0;
  }
  .work-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "nav" "main" "extra";
    padding-block: 24px 36px;
    row-gap: 20px;
  }
  .side-nav-col .side-box {
    border: 0;
    background: none;
    margin-bottom: 0;
  }
  .side-nav-col .side-box::before,
  .side-nav-col .side-box::after {
    display: none;
  }
  .side-nav-col .side-hd {
    background: none;
    border: 0;
    padding: 0 0 8px;
  }
  .side-nav-col ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .side-nav-col ul li a {
    border: 1px solid var(--line);
    padding: 9px 16px;
    background: var(--panel);
    font-size: 14px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    clip-path: var(--cut-sm);
  }
  .side-nav-col ul li a::before {
    display: none;
  }
  .side-nav-col ul li a:hover {
    padding-left: 16px;
  }
  .side-nav-col ul li a[aria-current="page"] {
    border-color: var(--cyan);
    background: var(--cyan);
    color: var(--bg);
  }
  .side-extra-col {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .topbar-search {
    display: none;
  }
  .c-grid,
  .related-grid,
  .map-cols {
    grid-template-columns: 1fr;
  }
  .work-grid-3 .work :is(h2, h3) {
    font-size: 15px;
  }
}
@media (max-width: 479px) {
  .footer-in,
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .genre-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .logo-text .slogan {
    display: none;
  }
  .banner-text h1 {
    font-size: 25px;
  }
  .sec-title h2 {
    font-size: 23px;
  }
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .banner-pause {
    padding: 0 10px;
    font-size: 11px;
  }
  .tile {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv,
  .cap.on {
    opacity: 1 !important;
    transform: none !important;
  }
  .cap.on {
    clip-path: none !important;
  }
  .genre.rv {
    clip-path: var(--cut) !important;
    transform: none !important;
  }
  .sec-title::after,
  .slide img {
    transform: none !important;
  }
  .glitch::before,
  .glitch::after {
    display: none;
  }
  .ticker-track {
    animation: none !important;
  }
  .to-top {
    opacity: 0;
  }
  .to-top.show {
    opacity: 1;
    transform: none;
  }
}
/* 题材图标颜色 start */
.genre.g-city {
  --gc: #00e5ff;
}
.genre.g-cyborg {
  --gc: #ff2bd6;
}
.genre.g-hacker {
  --gc: #c8ff00;
}
.genre.g-dystopia {
  --gc: #7c5cff;
}
.genre.g-frontier {
  --gc: #ff8a3d;
}
.genre.g-romance {
  --gc: #ff5c8a;
}
/* 题材图标颜色 end */


/* ── 锚点定位为固定导航让位：跳转到作品/分区后上沿不被压住 ── */
.work,
[id^="genre-"] {
  scroll-margin-top: 96px;
}

/* ── 无 JS 兜底（html.no-js，脚本首行即移除）：
   手机端主导航与子菜单静态展开，全部链接可达；JS 正常时不生效 ── */
@media (max-width: 1100px) {
  /* 展开导航独占一行，并随文档滚动，避免挤压 Logo 或遮挡正文。 */
  html.no-js .site-header {
    position: static;
  }
  html.no-js .header-in {
    flex-wrap: wrap;
  }
  html.no-js .main-nav {
    display: block;
    position: static;
    max-height: none;
    box-shadow: none;
    flex-basis: 100%;
    width: 100%;
    overflow: visible;
  }
  html.no-js .nav-toggle {
    display: none;
  }
  html.no-js .sub-nav {
    display: block;
    position: static;
    box-shadow: none;
  }
  html.no-js .sub-toggle {
    display: none;
  }
}


/* 动态文本与真实后台侧栏：只补收缩和可点击性，不改原稿布局。 */
.topbar-welcome,
.logo-text {
  min-width: 0;
}
.topbar-welcome {
  overflow-wrap: anywhere;
}
.logo-text .name {
  white-space: normal;
  overflow-wrap: anywhere;
}
.side-box table {
  max-width: 100%;
}
.side-box input,
.side-box select {
  max-width: 100%;
}
.prose > section {
  min-width: 0;
}
.figure:empty,
.zig-pic:empty,
.cover:empty {
  display: none;
}
@media (max-width: 1100px) {
  .sub-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin: 0 8px 0 0;
  }
  .btn-sm,
  .chip,
  .side-nav-col ul li a,
  .related-grid a,
  .rank li a {
    min-height: 44px;
  }
  .rank li a {
    display: inline-flex;
    align-items: center;
  }
}
