@charset "utf-8";

/* ==========================================================================
   漫画企业官网 · 视觉系统
   概念：章节编号 + 纵向阅读轨迹
   每个主要区块左侧有一条竖向轨迹线，节点上标章节序号（01 / 02 / 03…），
   模拟条漫从上往下连续阅读的推进感。
   配色走冷调（深宝蓝 + 紫罗兰 + 冷白），与暖色系的其他模版区分。
   ========================================================================== */

:root {
  /* 冷调主色 */
  --ink: #16265c;
  --ink-2: #22346f;
  --ink-3: #33478a;
  --accent: #6d5ae6;
  --accent-2: #9d90f0;
  --accent-wash: #eeebfd;
  --paper: #f6f7fc;
  --white: #ffffff;

  --text: #1c2544;
  --text-soft: #55608a;
  --text-faint: #667090;   /* 对纸底 4.58:1，达 WCAG AA */
  --line: #e2e5f2;
  --line-soft: #edeff8;
  --line-dark: rgba(246, 247, 252, 0.16);

  /* 轨迹 */
  --track-w: 2px;
  --node: 34px;

  --shell: 1120px;
  --pad: 1.5rem;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(22, 38, 92, 0.06);
  --shadow: 0 14px 34px rgba(22, 38, 92, 0.09);
  --gap: 4.5rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --num: "SF Mono", "DIN Alternate", Menlo, monospace;
}


/* --------------------------------------------------------------------------
   基础
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  /* 邮箱、URL 这类长串在 320px 下必须能断行，否则会把容器撑破 */
  overflow-wrap: break-word;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.34; }
h1 { font-size: 2rem; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

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

.shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: .8rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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


/* --------------------------------------------------------------------------
   顶部：双层页头（品牌行 + 导航行）
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 120;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.topbar__brandrow {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; flex: 1 1 auto; min-width: 0; }
.brand > span { min-width: 0; overflow: hidden; }
.brand:hover { text-decoration: none; }

.brand__mark {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--ink) 100%);
  display: grid; place-items: center;
  color: var(--white); font-family: var(--num);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}

.brand__name {
  display: block; color: var(--ink); font-size: 1.06rem; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__slogan { display: block; color: var(--text-faint); font-size: .78rem; line-height: 1.4; }

.topbar__tools { display: flex; align-items: center; gap: .55rem; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  min-width: 44px; min-height: 44px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-soft);
  font: inherit; font-size: .88rem;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.topbar__cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--white);
  font-size: .9rem; font-weight: 600;
}
.topbar__cta:hover { background: var(--ink); text-decoration: none; }

.nav-toggle { display: none; }

/* 导航行 */
.topbar__navrow { border-top: 1px solid var(--line-soft); }

.mainnav__list {
  display: flex; flex-wrap: wrap; gap: .55rem;
  list-style: none;
}
.mainnav__list > li { position: relative; }

.mainnav__link {
  display: flex; align-items: center; gap: .3rem;
  min-height: 46px; padding: 0 .55rem 0 .85rem;
  color: var(--text-soft); font-size: .93rem;
  border-bottom: 2px solid transparent;
}
.mainnav__link:hover { color: var(--accent); text-decoration: none; }
.mainnav__link[aria-current="page"],
.mainnav__link.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* 展开箭头是独立按钮，和栏目链接分开：点名字跳转，点箭头展开 */
.mainnav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; min-height: 46px;
  /* 不再用负边距压到链接上：那会吃掉栏目名最后几像素的点击区，
     导致稍微点偏就变成展开而不是跳转 */
  margin-left: 0;
  padding: 0;
  border: 0; background: none;
  color: var(--text-soft);
  cursor: pointer;
}
.mainnav__toggle:hover { color: var(--accent); }
.mainnav__caret {
  width: 8px; height: 8px; flex: none;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.mainnav__toggle[aria-expanded="true"] .mainnav__caret { transform: rotate(-135deg) translate(-3px, -3px); }
.mainnav__list > li[data-submenu] { display: flex; align-items: center; }

/* 二级菜单 */
.submenu {
  position: absolute; top: 100%; left: 0; z-index: 130;
  min-width: 150px; padding: .45rem;   /* 220px 对两字栏目太空，纯 max-content 只有 71px */
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.submenu[hidden] { display: none; }
.submenu a {
  display: block;
  min-height: 44px; padding: .6rem .8rem;
  border-radius: 9px;
  color: var(--text-soft); font-size: .9rem;
}
.submenu a:hover { background: var(--accent-wash); color: var(--ink); text-decoration: none; }


/* --------------------------------------------------------------------------
   面包屑
   -------------------------------------------------------------------------- */

.crumb { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.crumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .1rem;
  list-style: none;
  padding: .7rem 0;
  font-size: .84rem; color: var(--text-faint);
}
.crumb li { display: flex; align-items: center; }
.crumb li + li::before {
  content: "/";
  margin: 0 .5rem;
  color: var(--line);
}
.crumb a { color: var(--text-soft); }
.crumb [aria-current="page"] { color: var(--ink); font-weight: 600; }


/* --------------------------------------------------------------------------
   页头带
   -------------------------------------------------------------------------- */

.pagehead {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 2.6rem 2.2rem;
}
.pagehead__eyebrow {
  margin: 0 0 .55rem;
  display: flex; align-items: center; gap: .55rem;
  color: var(--accent);
  font-family: var(--num); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.pagehead__eyebrow::before {
  content: ""; width: 26px; height: var(--track-w);
  background: var(--accent); border-radius: 2px;
}
.pagehead h1 { max-width: 22ch; }
.pagehead__lede {
  margin: .8rem 0 0;
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}
.pagehead__stats {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
}
.pagehead__stats div { min-width: 0; }
.pagehead__stats dt { margin: 0 0 .2rem; color: var(--text-faint); font-size: .8rem; }
.pagehead__stats dd { margin: 0; color: var(--ink); font-family: var(--num); font-size: 1.04rem; font-weight: 700; }


/* --------------------------------------------------------------------------
   纵向阅读轨迹 —— 本站的主视觉概念
   -------------------------------------------------------------------------- */

.track { position: relative; padding-block: 3.2rem var(--gap); }
.track > .shell { position: relative; }

/* 轨迹线：从第一个节点贯穿到最后 */
.track__line {
  position: absolute;
  left: calc(var(--node) / 2 - var(--track-w) / 2);
  top: var(--node); bottom: 0;
  width: var(--track-w);
  /* 末端不能褪到与背景同色，否则长页面下半段轨迹会消失 */
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 45%, #b6bce0 100%);
  border-radius: 2px;
}

.chapter { position: relative; padding-left: calc(var(--node) + 1.6rem); }
.chapter + .chapter { margin-top: 3.4rem; }

.chapter__num {
  position: absolute; left: 0; top: 0;
  width: var(--node); height: var(--node);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: var(--track-w) solid var(--accent);
  color: var(--accent);
  font-family: var(--num); font-size: .82rem; font-weight: 700;
}

.chapter__head { margin-bottom: 1.4rem; }
.chapter__head h2 { margin-bottom: .4rem; }
.chapter__head p { margin: 0; max-width: 58ch; color: var(--text-soft); font-size: .98rem; }

/* 内页正文区（不带编号轨迹时使用） */
.plain { padding-block: 2.6rem var(--gap); }
.plain > * + * { margin-top: 2.4rem; }

.page-intro {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.sec-title {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1.1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.32rem;
}
.sec-title::before {
  content: ""; flex: none;
  width: 6px; height: 20px;
  border-radius: 3px;
  background: var(--accent);
}


/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(22, 38, 92, .96) 0%,
    rgba(22, 38, 92, .9) min(56%, 620px),
    rgba(22, 38, 92, .34) 100%);
}
.hero__inner { position: relative; padding-block: 4.6rem 4.2rem; }
.hero__inner > * { max-width: 40rem; }

.hero__eyebrow {
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .32rem .85rem;
  border-radius: var(--radius-pill);
  background: rgba(157, 144, 240, .22);
  color: #d8d2fb;
  font-family: var(--num); font-size: .78rem; letter-spacing: .1em;
}
.hero h1 { color: var(--white); font-size: clamp(1.85rem, 4vw, 2.5rem); }
.hero__lede { margin: 1.1rem 0 0; color: rgba(246, 247, 252, .84); font-size: 1.06rem; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem;
  margin: 1.9rem 0 0; padding: 0; list-style: none;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { color: var(--white); font-family: var(--num); font-size: 1.12rem; }
.hero__facts span { color: rgba(246, 247, 252, .66); font-size: .84rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .94rem; font-weight: 600;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(246, 247, 252, .4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.btn--line { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }


/* --------------------------------------------------------------------------
   通用卡片网格
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--accent-wash); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.05rem 1.15rem 1.2rem; flex: 1; }
.card__kind {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent); font-family: var(--num); font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.card h3 { font-size: 1.02rem; }
.card h3 a { color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { text-decoration: none; }
.card:hover { box-shadow: var(--shadow); }
.card__desc { margin: 0; color: var(--text-soft); font-size: .89rem; line-height: 1.72; flex: 1; }
.card__foot {
  margin: 0; padding-top: .7rem;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: .6rem;
  color: var(--text-faint); font-size: .8rem;
}


/* --------------------------------------------------------------------------
   漫画书架卡片
   配图是本站阅读场景插图，不是作品封面，所以用横幅条而非竖版封面位
   -------------------------------------------------------------------------- */

.manga { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }

.manga__item {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* 容器定比例，图绝对定位铺满。
   若让 <img> 参与高度计算，其 width/height 属性带来的固有比例会与 aspect-ratio
   形成循环依赖，Chromium 与 WebKit/Firefox 解法不同，会产生跨引擎高度差。 */
.manga__strip { position: relative; aspect-ratio: 3 / 1; background: var(--accent-wash); }
.manga__strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.manga__region {
  position: absolute; left: .8rem; bottom: .8rem;
  padding: .2rem .7rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 38, 92, .82);
  color: var(--white);
  font-size: .76rem; font-weight: 600;
  backdrop-filter: blur(2px);
}
.manga__body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.manga__genre { color: var(--text-faint); font-size: .78rem; }
.manga__item h3 { font-size: 1.04rem; }
.manga__brief { margin: 0; color: var(--text-soft); font-size: .88rem; line-height: 1.72; }

.notice {
  padding: .95rem 1.15rem;
  border-radius: var(--radius);
  background: var(--accent-wash);
  color: var(--ink-3);
  font-size: .89rem;
}
.notice p { margin: 0; }


/* --------------------------------------------------------------------------
   图文交错块
   -------------------------------------------------------------------------- */

.split { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.6rem; }
  .split--flip .split__media { order: 2; }
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__body h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.split__body p { color: var(--text-soft); }
.split + .split { margin-top: 2.6rem; }


/* --------------------------------------------------------------------------
   规格表 / 事实表
   -------------------------------------------------------------------------- */

.facts { display: grid; gap: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.facts > div {
  display: flex; align-items: baseline; gap: .9rem;
  padding: .82rem .2rem;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt { flex: none; width: 6.5rem; color: var(--text-faint); font-size: .86rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec caption { text-align: left; padding-bottom: .7rem; color: var(--text-faint); font-size: .85rem; }
.spec th, .spec td { padding: .78rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.spec th { width: 34%; color: var(--text-soft); font-weight: 600; background: var(--white); }
.spec td { color: var(--ink); }

.steps { list-style: none; counter-reset: s; display: grid; gap: .9rem; }
.steps li {
  position: relative;
  counter-increment: s;
  padding: 1rem 1.15rem 1.05rem 3.4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: "0" counter(s);
  position: absolute; left: 1.15rem; top: 1.05rem;
  color: var(--accent); font-family: var(--num); font-size: .88rem; font-weight: 700;
}
.steps h3 { margin-bottom: .25rem; font-size: 1rem; }
.steps p { margin: 0; color: var(--text-soft); font-size: .89rem; }

.checks { list-style: none; display: grid; gap: .75rem; }
.checks li {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem;
  align-items: baseline;
  font-size: .93rem; color: var(--text-soft);
}
.checks li::before {
  content: ""; width: 7px; height: 7px; margin-top: .55rem;
  border-radius: 50%; background: var(--accent);
}
.checks strong { color: var(--ink); }


/* --------------------------------------------------------------------------
   正文（条款、文章）
   -------------------------------------------------------------------------- */

/* 面板本身收到可读宽度，避免 1120px 的白卡里只有 686px 文字、右侧空一大条 */
.panel.prose { max-width: 74ch; }
.prose > p, .prose > h2 { max-width: 68ch; }
.prose h2 {
  margin: 2.2rem 0 .7rem;
  padding-left: .85rem;
  border-left: 4px solid var(--accent);
  font-size: 1.32rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); }

.panel {
  padding: 1.6rem 1.7rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toc { padding: 1.2rem 1.4rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.toc h2 { margin: 0 0 .7rem; font-size: 1.32rem; }
.toc ol { padding-left: 1.2rem; color: var(--text-soft); font-size: .92rem; }
.toc li { margin-bottom: .3rem; }


/* --------------------------------------------------------------------------
   文章页
   -------------------------------------------------------------------------- */

.article__fig { margin: 0 0 1.8rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article__fig picture, .article__fig .fig-box { position: relative; display: block; aspect-ratio: 16 / 9; }
.article__fig img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.article__fig figcaption {
  padding: .6rem 1rem;
  background: var(--ink);
  color: rgba(246, 247, 252, .68);
  font-size: .83rem;
}

/* 上一篇 / 下一篇 —— 放在相关推荐之前 */
.pager { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.pager a {
  display: flex; flex-direction: column; gap: .25rem;
  min-height: 44px; padding: .95rem 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.pager a:hover { box-shadow: var(--shadow); text-decoration: none; }
.pager span { color: var(--text-faint); font-size: .79rem; }
.pager strong { font-size: .95rem; font-weight: 600; }

/* 相关推荐：桌面紧凑 2×2，移动端单列 */
.related { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .related { grid-template-columns: 1fr 1fr; } }
.related a {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  gap: .1rem .85rem;
  align-items: center;
  min-height: 44px; padding: .7rem .85rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.related a:hover { box-shadow: var(--shadow); text-decoration: none; }
.related img, .related .rel-tile { grid-column: 1; grid-row: 1 / 3; }
.related img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; }
.related > a > span:not(.rel-tile) { grid-column: 2; grid-row: 1; }
.related b { grid-column: 2; grid-row: 2; }
.related b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.45; }
.related span { display: block; color: var(--text-faint); font-size: .78rem; }


/* --------------------------------------------------------------------------
   FAQ —— 只旋转图标，文字不动、不被遮挡
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: .7rem; }
.faq__item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__q {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.2rem;
  border: 0; background: none;
  font: inherit; font-size: 1rem; font-weight: 600;
  color: var(--ink); text-align: left;
  cursor: pointer;
}
.faq__icon {
  flex: none;
  position: relative;
  width: 20px; height: 20px;
  transition: transform .2s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
}
.faq__icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq__icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 1.2rem 1.2rem; color: var(--text-soft); font-size: .93rem; }
.faq__a p { margin: 0; }
.faq__group + .faq__group { margin-top: 2.4rem; }


/* --------------------------------------------------------------------------
   搜索
   -------------------------------------------------------------------------- */

.searchbox { display: flex; flex-wrap: wrap; gap: .7rem; }
.searchbox label { flex: 1 1 16rem; display: flex; flex-direction: column; gap: .35rem; }
.searchbox span { color: var(--text-faint); font-size: .84rem; }
.searchbox input {
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font: inherit; color: var(--text);
}
.searchbox input:focus-visible { border-color: var(--accent); }
.searchbox .btn { align-self: flex-end; }

.results-h { margin-top: 1.5rem; font-size: 1.08rem; }
.results { list-style: none; display: grid; gap: .7rem; margin-top: .9rem; }
.results li { padding: 1rem 1.15rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.results h3 { font-size: 1rem; margin-bottom: .25rem; }
.results p { margin: 0; color: var(--text-soft); font-size: .89rem; }
.results__kind { color: var(--accent); font-family: var(--num); font-size: .76rem; letter-spacing: .06em; }

.tagline-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-top: .8rem; }
.tagline-list a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 .95rem;
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--ink-3); font-size: .87rem;
}
.tagline-list a:hover { background: var(--accent); color: var(--white); text-decoration: none; }

/* 列表空状态：搜索无结果、栏目暂无文章共用 */
.empty {
  padding: 2.6rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.empty__title { margin-bottom: .4rem; font-size: 1.12rem; font-weight: 600; }
.empty p { margin: .35rem 0; color: var(--text-soft); font-size: .92rem; }
.empty .btn { margin-top: .7rem; }


/* --------------------------------------------------------------------------
   下一步 / 404 / 网站地图
   -------------------------------------------------------------------------- */

.nextstep {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.1rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: rgba(246, 247, 252, .78);
}
.nextstep h2 { margin-bottom: .25rem; color: var(--white); font-size: 1.32rem; }
.nextstep p { margin: 0; font-size: .92rem; }
.nextstep__t { flex: 1 1 20rem; }

.err { padding-block: 5rem; text-align: center; }
.err .err__code { color: var(--accent); font-family: var(--num); font-size: 3.6rem; font-weight: 700; line-height: 1; }
.err h1 { margin: 1rem 0 .8rem; }
.err p { max-width: 46ch; margin-inline: auto; color: var(--text-soft); }
.err .btn-row { justify-content: center; }

.map-grid { display: grid; gap: 1.4rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.map-block { padding: 1.3rem 1.4rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-block h2 { margin-bottom: .7rem; font-size: 1.32rem; }
.map-block ul { list-style: none; }
.map-block li + li { margin-top: .15rem; }
.map-block a { display: flex; align-items: center; min-height: 44px; color: var(--text-soft); font-size: .91rem; }


/* --------------------------------------------------------------------------
   页脚 —— 品牌简介只出现一次，四列长度接近
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(246, 247, 252, .68); font-size: .9rem; }
.site-footer a { color: rgba(246, 247, 252, .68); }
.site-footer a:hover { color: var(--white); }

.footer-main {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  padding-block: 3rem 2.2rem;
  align-items: start;
}
/* 窄屏时品牌简介占整行，三组链接两列并排，避免堆成一条长单列 */
@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { margin: .8rem 0 0; max-width: 34ch; font-size: .87rem; line-height: 1.75; }

.footer-col h2 { margin: 0 0 .85rem; color: var(--white); font-size: .95rem; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: .1rem; }
.footer-col a { display: flex; align-items: center; font-size: .88rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem;
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: .84rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; }

.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 140;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  /* 用强调色而不是 --ink：页脚也是 --ink，同色会让按钮在页脚上隐形 */
  border: 2px solid var(--white); border-radius: 50%;
  background: var(--accent); color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.back-to-top.is-on { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--ink); }
.back-to-top svg { width: 20px; height: 20px; }


/* --------------------------------------------------------------------------
   移动端
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .45rem;
    min-width: 44px; min-height: 44px;
    padding: 0 .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--text-soft);
    font: inherit; font-size: .88rem;
    cursor: pointer;
  }
  .nav-toggle__bars { position: relative; width: 16px; height: 12px; }
  .nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
    content: ""; position: absolute; left: 0;
    width: 16px; height: 2px; border-radius: 2px; background: currentColor;
  }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars span { top: 5px; }
  .nav-toggle__bars::after { top: 10px; }

  .topbar__navrow {
    display: none;
    border-top: 1px solid var(--line-soft);
    padding-bottom: .8rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .topbar__navrow.is-open { display: block; }

  .mainnav__list { flex-direction: column; gap: 0; }
  .mainnav__list > li { border-bottom: 1px solid var(--line-soft); }
  .mainnav__list > li[data-submenu] { flex-wrap: wrap; justify-content: space-between; }
  .mainnav__link { flex: 1; min-height: 50px; padding-inline: .2rem; }
  .mainnav__toggle { width: 48px; min-height: 50px; margin-left: 0; }
  .mainnav__list > li[data-submenu] .submenu { flex: 0 0 100%; }

  .submenu {
    position: static;
    border: 0; box-shadow: none;
    padding: 0 0 .5rem .9rem;
    min-width: 0;
  }
  .submenu a { min-height: 46px; }

  .topbar__cta { padding: 0 .95rem; font-size: .86rem; }
  .brand__slogan { display: none; }
}

@media (max-width: 640px) {
  :root { --gap: 3.2rem; --pad: 1.15rem; }
  h1 { font-size: 1.62rem; }
  .hero__inner { padding-block: 3.2rem 2.8rem; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(22, 38, 92, .86) 0%, rgba(22, 38, 92, .74) 100%);
  }
  /* 3:2 横图在窄屏被裁成竖构图，把焦点移到人物一侧 */
  .hero__media img { object-position: 72% center; opacity: .62; }
  .hero__inner { padding-block: 2.6rem 2.4rem; }
  /* 窄屏把编号放到标题上方，正文左右边距对称；轨迹线在此宽度下隐藏 */
  .track__line { display: none; }
  .chapter { padding-left: 0; }
  .chapter__num { position: static; margin-bottom: .7rem; }
  .chapter + .chapter { margin-top: 2.6rem; }
  .pagehead { padding-block: 2rem 1.7rem; }
  .pagehead__stats { gap: 1.1rem 1.6rem; }
  .related a { grid-template-columns: 60px 1fr; }
  .related img { width: 60px; height: 40px; }
  .nextstep { padding: 1.3rem 1.3rem 1.5rem; }
  .brand__mark { width: 34px; height: 34px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 编号磁贴：呼应章节编号概念，用于无配图的卡片与推荐位 ---------- */
.card--tile .card__body { padding-top: 1.35rem; }
.tile-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: .35rem;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--num); font-size: .92rem; font-weight: 700;
}

/* 产品详情的相关功能：文字清单，与文章页的图文推荐区分开 */
/* 单列排布：必须把父规则里给缩略图布局用的 grid-column / grid-row 一并复位，
   否则眉标和标题会被挤到并不存在的第二列，阅读顺序变成「简介在左、标题在右」。 */
.related--text a {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  align-items: start;
  gap: .18rem;
  padding: .95rem 1.1rem;
}
/* 权重必须压过父规则 .related > a > span:not(.rel-tile)（0-2-2），
   否则眉标仍会被放到第二列。 */
.related--text > a > span:not(.rel-tile),
.related--text b,
.related--text em { grid-column: 1; grid-row: auto; }
.related--text span { color: var(--text-faint); font-size: .78rem; }
.related--text b { font-size: .96rem; }
.related--text em { color: var(--text-soft); font-size: .85rem; font-style: normal; }

/* 文章推荐位里的功能页条目：用编号磁贴占图位，保持 2×2 对齐 */
.rel-tile {
  display: grid; place-items: center;
  width: 72px; height: 48px;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent);
  font-family: var(--num); font-size: .86rem; font-weight: 700;
}
@media (max-width: 640px) { .rel-tile { width: 60px; height: 40px; } }

/* ---------- 首页资讯：紧凑列表（与资讯中心的图卡区分） ---------- */
.newslist { list-style: none; counter-reset: n; display: grid; gap: .7rem; }
.newslist li { counter-increment: n; }
.newslist a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "cat title date" "cat desc date";
  gap: .1rem .9rem;
  align-items: start;
  padding: 1.05rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.newslist a:hover { box-shadow: var(--shadow); text-decoration: none; }
.newslist__cat {
  grid-area: cat; align-self: center;
  display: inline-grid; place-items: center;
  min-width: 68px; padding: .3rem .6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--accent); font-size: .78rem; font-weight: 600;
}
.newslist b { grid-area: title; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.newslist p { grid-area: desc; margin: .2rem 0 0; color: var(--text-soft); font-size: .88rem; }
.newslist time { grid-area: date; align-self: center; color: var(--text-faint); font-family: var(--num); font-size: .8rem; }
@media (max-width: 640px) {
  .newslist a { grid-template-columns: 1fr auto; grid-template-areas: "cat date" "title title" "desc desc"; row-gap: .35rem; }
}


/* ---------- 触控宽度下把面包屑与页脚链接补到 44×44 ---------- */
/* 只在 1024px 以下生效：桌面端保持紧凑，移动端满足最小点击区 */
@media (max-width: 1023px) {
  .crumb ol { padding: .35rem 0; }
  .crumb a,
  .crumb [aria-current="page"] { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col a { min-height: 44px; }
  .footer-bottom ul a { display: inline-flex; align-items: center; min-height: 44px; }
  /* 清单与卡片脚部里的链接同样要够大 */
  .checks a,
  .card__foot a,
  .toc a,
  .results h3 a,
  .namelist a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- 四项一组时用 2×2，避免 4 个塞进 3 列留下孤行 ---------- */
.grid--half { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* 书架卡：桌面固定三列（正好一个分区三部），平板两列，手机单列铺满 */
.manga { grid-template-columns: 1fr; }
@media (min-width: 600px) { .manga { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .manga { grid-template-columns: repeat(3, 1fr); } }

/* 首页章节间距与摘要留白收紧一档，压缩整页长度 */
.page-home .chapter + .chapter { margin-top: 2.8rem; }
@media (max-width: 1023px) {
  .page-home .chapter + .chapter { margin-top: 2rem; }
  .page-home .chapter__head { margin-bottom: 1rem; }
}

/* 四块四轨，首列放宽容纳品牌简介与联系资料；不跨列，避免换行留孤块 */
@media (min-width: 900px) {
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* ---------- 在架作品紧凑行（无图，用于地区页「全部在架作品」） ---------- */
.manga-rows { list-style: none; display: grid; gap: .55rem; }
.manga-row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 6rem 1fr;
  gap: .3rem 1rem;
  align-items: baseline;
  padding: .85rem 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.manga-row b { font-size: .98rem; color: var(--ink); }
.manga-row span { color: var(--accent); font-size: .8rem; }
.manga-row p { margin: 0; color: var(--text-soft); font-size: .88rem; line-height: 1.7; }
.manga-row--name p { color: var(--text-faint); }
@media (max-width: 720px) {
  .manga-row { grid-template-columns: 1fr auto; }
  .manga-row p { grid-column: 1 / -1; }
}

/* ---------- 题材导航 ---------- */
.genre-nav { list-style: none; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.genre-nav li {
  padding: .95rem 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.genre-nav b { display: block; margin-bottom: .25rem; color: var(--ink); font-size: 1rem; }
.genre-nav span { color: var(--text-soft); font-size: .85rem; line-height: 1.7; }

/* ==========================================================================
   动效层
   全部由 JS 给 <html> 加上 .has-motion 之后才生效。
   无 JavaScript 时所有内容默认可见、位置正常，不依赖脚本渲染。
   prefers-reduced-motion 下整层关闭。
   ========================================================================== */

/* ---------- 轨迹随滚动生长：本站视觉概念的核心 ---------- */
.track { --track-fill: 0%; }
/* 注意：不要在这里重设 position，基础规则里它是 absolute + top/bottom 撑高，
   改成 relative 会让高度塌成 0，轨迹就永远不生长。 */
.track__line { overflow: hidden; }
.track__line::after {
  content: "";
  position: absolute; left: 0; top: 0; right: 0;
  height: var(--track-fill);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 2px;
}
.has-motion .track__line {
  /* 未读部分压淡，已读部分由 ::after 覆盖成实色 */
  /* 未读段必须还能看见。原来的 #dfe3f2 对页面底色只有 1.20:1，2px 线等于消失。 */
  background: #aab3d6;
  transition: none;
}
.has-motion .track__line::after { transition: height .12s linear; }

/* 章节节点：到达视口时点亮 */
.has-motion .chapter__num {
  transition: background-color .35s ease, color .35s ease,
              border-color .35s ease, transform .35s ease;
}
.has-motion .chapter.is-reached .chapter__num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: scale(1.06);
}

/* ---------- 区块入场 ---------- */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-motion .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 文章阅读进度条 ---------- */
.readbar {
  position: fixed; left: 0; top: 0; z-index: 200;
  height: 3px; width: 100%;
  transform: scaleX(var(--read, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  pointer-events: none;
}
.readbar[hidden] { display: none; }

/* ---------- Hero 缓慢推近 ---------- */
@keyframes hero-drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.11); }
}
.has-motion .hero__media img {
  animation: hero-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* ---------- 书架卡悬停 ---------- */
.manga__strip img { transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.manga__item:hover .manga__strip img { transform: scale(1.06); }
.manga__region { transition: transform .3s ease; }
.manga__item:hover .manga__region { transform: translateY(-3px); }

/* ---------- 卡片与按钮的轻微反馈 ---------- */
.card, .steps li, .pager a, .related a { transition: box-shadow .25s ease, transform .25s ease; }
.card:hover, .pager a:hover, .related a:hover { transform: translateY(-2px); }
.btn { transition: background-color .2s ease, border-color .2s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }

/* ---------- 数字滚动位不跳动 ---------- */
.pagehead__stats dd, .hero__facts b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .has-motion .reveal { opacity: 1 !important; transform: none !important; }
  .has-motion .hero__media img { animation: none !important; }
  .readbar { display: none !important; }
  .manga__item:hover .manga__strip img,
  .card:hover, .pager a:hover, .related a:hover { transform: none !important; }
}

/* ---------- 页头变体：内容型页面用深色 + 主视觉，工具页保持轻量 ---------- */
.pagehead__text { min-width: 0; }

.pagehead--media > .shell {
  display: grid; gap: 1.8rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pagehead--media > .shell { grid-template-columns: 1.25fr .9fr; gap: 2.6rem; }
}
.pagehead__fig {
  margin: 0; position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pagehead__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pagehead--ink {
  background: var(--ink);
  border-bottom: 0;
}
.pagehead--ink h1 { color: var(--white); }
.pagehead--ink .pagehead__lede { color: rgba(246, 247, 252, .82); }
.pagehead--ink .pagehead__eyebrow { color: var(--accent-2); }
.pagehead--ink .pagehead__eyebrow::before { background: var(--accent-2); }
.pagehead--ink .pagehead__stats { border-top-color: rgba(246, 247, 252, .18); }
.pagehead--ink .pagehead__stats dt { color: rgba(246, 247, 252, .62); }
.pagehead--ink .pagehead__stats dd { color: var(--white); }

/* ---------- 页尾去向的另外两种形态 ---------- */
.nextstep--quiet {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.2rem;
  padding: 1.05rem 1.3rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
}
.nextstep--quiet p { margin: 0; font-size: .93rem; }
.nextstep--quiet strong { color: var(--ink); }
.arrow-link { color: var(--accent); font-size: .92rem; font-weight: 600; white-space: nowrap; }

.nextstep--links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem 1.6rem;
  padding: 1.4rem 1.7rem;
  background: var(--accent-wash);
  border-radius: var(--radius-lg);
  color: var(--text-soft);
}
.nextstep--links h2 { color: var(--ink); margin-bottom: .3rem; }
.nextstep--links p { margin: 0; font-size: .93rem; }
.nextstep--links .btn-row { margin-top: 1.1rem; }

.err__search { max-width: 34rem; margin: 1.6rem auto 0; justify-content: center; }
@media (max-width: 1023px) {
  .nextstep--quiet a { min-height: 44px; display: inline-flex; align-items: center; }
}


/* ---------- 窄屏收尾 ---------- */
@media (max-width: 479px) {
  /* 工具位挤压品牌名时，搜索入口收进导航与页脚即可 */
  .topbar__tools .icon-btn { display: none; }
}

/* 320px 一档：菜单按钮收成纯图标（aria-label 兜住可访问名），
   下载中心收紧内距，为品牌名称保留空间 */
@media (max-width: 399px) {
  .nav-toggle__txt { display: none; }
  .nav-toggle { gap: 0; padding: 0 .7rem; }
  .topbar__cta { padding: 0 .75rem; }
  .topbar__tools { gap: .45rem; }
  .brand__name { font-size: .98rem; }
}

/* 返回顶部按钮不压住内容 */
main { padding-bottom: 4.5rem; }
@media (min-width: 1024px) { main { padding-bottom: 0; } }

/* 仅登记名称的作品：比有简介的条目更轻，不与真内容等重 */
.manga-row--name {
  grid-template-columns: 1fr auto;
  padding: .6rem 1.1rem;
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--line);
}
.manga-row--name b { font-weight: 600; font-size: .93rem; }
.manga-row--name p { display: none; }
.manga-row--name span { color: var(--text-faint); }

/* 深色页头下的正文区不与页脚撞色 */
.nextstep + .site-footer,
.track + .site-footer { margin-top: 0; }

/* ---------- 只登记名称的作品：单独一组名称清单 ---------- */
.namelist {
  margin-top: 1.1rem;
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.namelist h3 { margin: 0 0 .3rem; font-size: .98rem; }
.namelist > p { margin: 0 0 .8rem; color: var(--text-soft); font-size: .87rem; }
.namelist ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.namelist li {
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: .9rem;
}


/* 条款目录锚点：桌面保持紧凑，触控宽度下留足点击区 */
.toc a { color: var(--text-soft); }
.toc a:hover { color: var(--accent); }
.toc li { margin-bottom: .35rem; }


/* ---------- 收尾修正 ---------- */

/* 页脚底部一行给返回顶部按钮让出位置，避免压住末位链接。
   全宽度生效：320px 下按钮同样悬浮在右下角 */
.footer-bottom { padding-right: 4.6rem; }

/* 二级菜单缩进太浅时看不出层级：加一条左侧引导线 */
@media (max-width: 1023px) {
  .submenu {
    padding: .2rem 0 .5rem 1.4rem;
    margin-left: .2rem;
    border-left: 2px solid var(--line);
  }
  /* 移动端当前项的下划线通栏太重，改成左侧短标记 */
  .mainnav__link[aria-current="page"],
  .mainnav__link.is-active {
    border-bottom-color: transparent;
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

/* 页脚品牌列在平板下不再独占一整行留大片空白 */
@media (min-width: 620px) and (max-width: 899px) {
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: none; }
}

/* 锚点跳转时不被吸顶页头盖住 */
html { scroll-padding-top: 7.5rem; }
[id] { scroll-margin-top: 7.5rem; }

/* ---------- 顶部辅助入口与手机菜单内的搜索 ---------- */
.icon-btn--aux { display: none; }
@media (min-width: 1024px) { .icon-btn--aux { display: inline-flex; } }

.navsearch { display: none; gap: .55rem; padding: .8rem 0 .2rem; }
.navsearch input {
  flex: 1; min-width: 0; min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font: inherit; color: var(--text);
}
.navaux { display: none; gap: 1.2rem; margin: .9rem 0 0; flex-wrap: wrap; }
.navaux a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); font-size: .9rem; }
@media (max-width: 1023px) {
  .navsearch { display: flex; }
  .navaux { display: flex; }
}

/* ---------- 书架分区锚点跳转 ---------- */
.anchor-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: 1.1rem;
}
.anchor-nav span { color: var(--text-faint); font-size: .85rem; }
.anchor-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: .9rem; font-weight: 600;
}
.anchor-nav a:hover { background: var(--accent); color: var(--white); text-decoration: none; }

.region-note {
  margin: 1rem 0 0;
  padding: .85rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft); font-size: .9rem;
}
