@charset "utf-8";

/* ==========================================================================
   漫画企业官网：章节档案与阅读轨迹视觉
   骨架：左侧 248px 固定竖导航 + 右侧内容流
        内页不设第二层侧栏，改用顶部面包屑条
        <1024px 左栏收起为顶部条 + 抽屉
   ========================================================================== */

:root {
  --ink: #382628;
  --ink-2: #4a3133;
  --ink-3: #604144;
  --accent: #cf6048;
  --accent-soft: #e8a277;
  --accent-wash: #f9e5d8;
  --paper: #f6f0e6;
  --white: #fffdf9;
  --text: #2c2525;
  --text-soft: #665956;
  --text-faint: #776965;
  --line: #dfd2c5;
  --line-soft: #ece2d7;
  --line-dark: rgba(250, 247, 242, 0.16);

  --rail-w: 248px;
  --shell-max: 1080px;
  --shell-pad: 1.5rem;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 30px rgba(20, 22, 31, 0.09);
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --num: "SF Mono", "DIN Alternate", Menlo, monospace;
  --gap: 4.5rem;
}

@media (min-width: 1024px) {
  :root {
    --shell-pad: 2.5rem;
    --gap: 6rem;
  }
}

*,
*::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.75;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.08rem;
}
p {
  margin: 0 0 1.05em;
}
p:last-child {
  margin-bottom: 0;
}
a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--accent);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 300;
  padding: 0.8rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 0;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.68rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: #dc765e;
  border-color: #dc765e;
  color: #fff;
}
.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: var(--ink-3);
  border-color: var(--ink-3);
  color: var(--paper);
}
.btn--line {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}
.btn--line:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
}
.arrow-link::after {
  content: "→";
  transition: transform 0.18s ease;
}
.arrow-link:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   左侧固定竖导航
   -------------------------------------------------------------------------- */

.railbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: rgba(250, 247, 242, 0.74);
  border-right: 1px solid rgba(250, 247, 242, 0.08);
}

.railbar__head {
  padding: 1.5rem 1.25rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--paper);
}
.brand__mark {
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__tag {
  color: rgba(250, 247, 242, 0.5);
  font-size: 0.72rem;
}

.rail-toggle {
  display: none;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.5rem 0.75rem 1.25rem;
  overflow-y: auto;
}

.rail-nav__list {
  flex: 1;
}

.rail-item + .rail-item {
  margin-top: 2px;
}

.rail-item > a,
.rail-item__row > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0 0.7rem;
  border-radius: 10px;
  color: rgba(250, 247, 242, 0.78);
  font-size: 0.96rem;
  font-weight: 600;
}
.rail-item > a:hover,
.rail-item__row > a:hover {
  background: rgba(250, 247, 242, 0.07);
  color: var(--paper);
}

.rail-icon {
  width: 19px;
  height: 19px;
  opacity: 0.8;
}

.rail-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}
.rail-item--current > .rail-item__row > a {
  background: rgba(250, 247, 242, 0.07);
  color: var(--paper);
}
.rail-nav a[aria-current="page"] .rail-icon {
  opacity: 1;
}

.rail-item__row {
  display: flex;
  align-items: center;
}
.rail-item__row > a {
  flex: 1;
}

.rail-sub-toggle {
  width: 44px;
  min-width: 44px;
  height: 46px;
  flex-shrink: 0;
  background: none;
  border: 0;
  color: rgba(250, 247, 242, 0.5);
  font-size: 0.8rem;
}
.rail-sub-toggle span {
  display: block;
  transition: transform 0.2s ease;
}
.rail-item--open .rail-sub-toggle span {
  transform: rotate(180deg);
}

.rail-sub {
  display: none;
  padding: 2px 0 6px 0.9rem;
  margin-left: 0.7rem;
  border-left: 2px solid rgba(207, 96, 72, 0.35);
}
.rail-item--group:hover .rail-sub,
.rail-item--group:focus-within .rail-sub,
.rail-item--open .rail-sub {
  display: block;
}

.rail-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  border-radius: 8px;
  color: rgba(250, 247, 242, 0.62);
  font-size: 0.9rem;
}
.rail-sub a:hover {
  color: var(--paper);
  background: rgba(250, 247, 242, 0.06);
}

.rail-nav__foot {
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  margin-top: 1rem;
}
.rail-cta {
  width: 100%;
  margin-bottom: 0.55rem;
}
.rail-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 10px;
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.92rem;
}
.rail-search:hover {
  background: rgba(250, 247, 242, 0.07);
  color: var(--paper);
}
.rail-search .icon {
  width: 18px;
  height: 18px;
}

/* 右侧内容区 */
.canvas {
  margin-left: var(--rail-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.canvas > main {
  flex: 1;
}

/* 移动端：左栏变顶部条 */
@media (max-width: 1023px) {
  .railbar {
    position: sticky;
    inset: auto;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(250, 247, 242, 0.1);
  }
  .railbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--shell-pad);
  }
  .rail-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    background: none;
    border: 1px solid rgba(250, 247, 242, 0.22);
    border-radius: 10px;
  }
  .rail-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--paper);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  [data-drawer-open="true"] .rail-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  [data-drawer-open="true"] .rail-toggle span:nth-child(2) {
    opacity: 0;
  }
  [data-drawer-open="true"] .rail-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .rail-nav {
    display: none;
    padding: 0.25rem var(--shell-pad) 1.25rem;
    max-height: calc(100vh - 70px);
  }
  [data-drawer-open="true"] .rail-nav {
    display: flex;
  }
  .canvas {
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   面包屑 / 页头
   -------------------------------------------------------------------------- */

.crumb {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0;
}
.crumb li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.crumb li + li::before {
  content: "/";
  color: var(--text-faint);
}
.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
}
.crumb a:hover {
  color: var(--accent);
}
.crumb [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
}

.pagehead {
  padding: 2.6rem 0 2.2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.pagehead h1 {
  margin-bottom: 0.65rem;
}
.pagehead__lede {
  max-width: 44rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.03rem;
}
.pagehead__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.4rem;
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
}
.pagehead__stats dt {
  color: var(--text-faint);
  font-size: 0.8rem;
}
.pagehead__stats dd {
  margin: 0.1rem 0 0;
  color: var(--accent);
  font-family: var(--num);
  font-size: 1.22rem;
  font-weight: 700;
}

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

.band {
  padding-block: var(--gap);
}
.band--white {
  background: var(--white);
}
.band--ink {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.8);
}
.band--ink h2,
.band--ink h3 {
  color: var(--paper);
}
.band--ink .eyebrow {
  color: var(--accent-soft);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.2rem;
}
.section-head h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}
.section-head p {
  margin: 0;
  color: var(--text-soft);
}
.band--ink .section-head p {
  color: rgba(250, 247, 242, 0.72);
}

.hero {
  padding: 3.2rem 0 2.6rem;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.24;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero__lede {
  margin-bottom: 1.7rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 340px;
  object-fit: cover;
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1180px) {
  .cap-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cap-card {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.band--ink .cap-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
}
.cap-card .icon {
  color: var(--accent);
}
.cap-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.cap-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}
.band--ink .cap-card p {
  color: rgba(250, 247, 242, 0.72);
}

/* 分类入口 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
@media (min-width: 720px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1180px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.cat-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 110px;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-soft);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.cat-cell:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cat-cell strong {
  color: var(--ink);
  font-size: 1.05rem;
}
.cat-cell span {
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* 使用场景 */
.scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 700px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1180px) {
  .scene-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.scene-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.scene-card__fig {
  background: var(--ink);
}
.scene-card__fig img {
  width: 100%;
}
.scene-card__body {
  padding: 1.1rem 1.25rem 1.3rem;
}
.scene-card__kind {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.6rem;
  background: var(--accent-wash);
  border-radius: 999px;
  color: #a94b3a;
  font-size: 0.74rem;
  font-weight: 700;
}
.scene-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.03rem;
}
.scene-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
}

/* 产品卡 */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 700px) {
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1180px) {
  .prod-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.prod-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.prod-card__fig {
  background: var(--ink);
}
.prod-card__fig img {
  width: 100%;
}
.prod-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.3rem 1.35rem;
}
.prod-card__kind {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.prod-card h3 {
  margin: 0.3rem 0 0.45rem;
  font-size: 1.08rem;
}
.prod-card h3 a {
  color: var(--ink);
}
.prod-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.prod-card p {
  flex: 1;
  margin-bottom: 0.6rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* 资讯卡 */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}
@media (min-width: 700px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-card:hover {
  border-color: var(--accent);
}
.post-card__fig {
  background: var(--ink);
}
.post-card__fig img {
  width: 100%;
}
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.05rem 1.2rem 1.25rem;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.45rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}
.post-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
}
.post-card h3 a {
  color: var(--ink);
}
.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-card p {
  flex: 1;
  margin-bottom: 0.55rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   内页正文
   -------------------------------------------------------------------------- */

/* 只作用于内容容器 <div class="shell inner">，不能命中 <body class="inner"> */
.shell.inner {
  padding-block: 2.6rem var(--gap);
}
.shell.inner > * + * {
  margin-top: 2.4rem;
}

.panel {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
@media (min-width: 640px) {
  .panel {
    padding: 2rem 2.2rem;
  }
}

.prose h2 {
  margin: 2rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent);
  font-size: 1.3rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  color: var(--text-soft);
}
.prose ul,
.prose ol {
  margin: 0 0 1.05em;
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.45rem;
  color: var(--text-soft);
  list-style: disc;
}
.prose ol > li {
  list-style: decimal;
}
.prose strong {
  color: var(--ink);
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  font-size: 1.3rem;
}
.sec-title .icon {
  color: var(--accent);
}

.lede {
  font-size: 1.04rem;
  color: var(--text-soft);
}

/* 要点网格 */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 640px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feat-item {
  display: flex;
  min-width: 0;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.feat-item > div {
  min-width: 0;
}
.feat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent-wash);
  border-radius: 12px;
  color: #a94b3a;
}
.feat-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.feat-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

/* 详情头 */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: start;
}
@media (min-width: 820px) {
  .detail-hero {
    grid-template-columns: 5fr 4fr;
    gap: 2.4rem;
  }
}
.detail-fig {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}
.detail-fig img {
  width: 100%;
}
.detail-fig figcaption {
  padding: 0.65rem 1rem;
  color: rgba(250, 247, 242, 0.62);
  font-size: 0.84rem;
}
.detail-sum h2 {
  margin-bottom: 0.7rem;
}
.detail-sum p {
  color: var(--text-soft);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.tag-row li {
  padding: 0.25rem 0.7rem;
  background: var(--accent-wash);
  border-radius: 999px;
  color: #a94b3a;
  font-size: 0.82rem;
  font-weight: 600;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.92rem;
}
.spec-table caption {
  padding-bottom: 0.6rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: left;
}
.spec-table th,
.spec-table td {
  padding: 0.8rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.spec-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  white-space: nowrap;
}
.spec-table tbody th {
  width: 30%;
  color: var(--ink);
  font-weight: 600;
}
.spec-table td {
  color: var(--text-soft);
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 步骤 */
.steps {
  counter-reset: st;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
.steps li {
  counter-increment: st;
  position: relative;
  padding: 1.2rem 1.3rem 1.2rem 3.3rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  color: var(--accent);
  font-family: var(--num);
  font-size: 0.88rem;
  font-weight: 700;
}
.steps h3 {
  margin-bottom: 0.3rem;
  font-size: 0.99rem;
}
.steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 1.62;
}

/* 适用人群 */
.aud-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.aud-list div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.aud-list dt {
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.aud-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* 相关 / 上下篇 */
.rel-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .rel-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}
.rel-rail a {
  display: block;
  padding: 1.05rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.rel-rail a:hover {
  border-color: var(--accent);
}
.rel-rail span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}
.rel-rail strong {
  color: var(--ink);
  font-size: 0.97rem;
}

/* 对照双栏 */
.cmp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 760px) {
  .cmp {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cmp-col {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
}
.cmp-col--do {
  background: var(--accent-wash);
  border: 1px solid rgba(207, 96, 72, 0.3);
}
.cmp-col--dont {
  background: #f2efe8;
  border: 1px solid var(--line);
}
.cmp-col h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  font-size: 1.02rem;
}
.cmp-col li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.cmp-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.cmp-col--do li::before {
  content: "✓";
  color: var(--accent);
}
.cmp-col--dont li::before {
  content: "×";
  color: var(--text-faint);
}

/* 图文交错 */
.zig {
  display: grid;
  gap: 2.6rem;
}
.zig__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .zig__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .zig__row:nth-child(even) .zig__fig {
    order: 2;
  }
}
.zig__fig {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.zig__fig img {
  width: 100%;
}
.zig__body h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
}
.zig__body p {
  color: var(--text-soft);
}
.zig__pts {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.zig__pts li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.zig__pts .icon {
  width: 19px;
  height: 19px;
  margin-top: 0.3rem;
  color: var(--accent);
}

/* 列表与分页 */
.empty {
  padding: 2.4rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty h3 {
  margin-bottom: 0.4rem;
}
.empty p {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--text-soft);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.pager [aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.pager .off {
  color: var(--text-faint);
  background: #f2efe8;
}

/* 文章 */
.art-head {
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.art-head h1 {
  margin-bottom: 0.7rem;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  color: var(--text-faint);
  font-size: 0.87rem;
}
.art-fig {
  margin: 1.7rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}
.art-fig img {
  width: 100%;
}
.art-fig figcaption {
  padding: 0.55rem 1rem;
  color: rgba(250, 247, 242, 0.6);
  font-size: 0.83rem;
}

/* FAQ */
.faq-group + .faq-group {
  margin-top: 2.4rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.faq-item + .faq-item {
  margin-top: 0.6rem;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.15rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.99rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.5;
}
.faq-q:hover {
  color: var(--accent);
}
.faq-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}
.faq-a {
  padding: 0 1.15rem 1.05rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}
.faq-a[hidden] {
  display: none;
}

/* 提示框 / 下一步 */
.notice {
  padding: 1.05rem 1.25rem;
  background: var(--accent-wash);
  border-radius: var(--radius);
  color: #8f3a22;
  font-size: 0.93rem;
}
.notice p:last-child {
  margin-bottom: 0;
}

.next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.5rem 1.7rem;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: rgba(250, 247, 242, 0.78);
}
.next-step h2 {
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-size: 1.3rem;
}
.next-step p {
  margin: 0;
  font-size: 0.92rem;
}
.next-step__t {
  flex: 1 1 18rem;
}

/* 目录 */
.toc {
  padding: 1.25rem 1.45rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.toc h2 {
  margin-bottom: 0.6rem;
}
.toc ol {
  display: grid;
  gap: 0;
  counter-reset: tc;
}
@media (min-width: 640px) {
  .toc ol {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.4rem;
  }
}
.toc li {
  counter-increment: tc;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--text);
  font-size: 0.92rem;
}
.toc a::before {
  content: counter(tc, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--num);
  font-size: 0.78rem;
}

/* 事实列表 */
.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  min-width: 7rem;
  color: var(--text-faint);
  font-size: 0.87rem;
}
.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.93rem;
}

/* 更新日志 */
.log {
  display: grid;
  border-top: 1px solid var(--line);
}
.log li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.log__hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 1rem;
  margin-bottom: 0.35rem;
}
.log__ver {
  padding: 0.12rem 0.6rem;
  background: var(--ink);
  border-radius: 6px;
  color: var(--paper);
  font-family: var(--num);
  font-size: 0.85rem;
  font-weight: 700;
}
.log__hd time {
  color: var(--text-faint);
  font-size: 0.85rem;
}
.log li p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* 搜索 */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.search-form__f {
  flex: 1 1 14rem;
}
.search-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 600;
}
.search-form input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.search-form input[type="search"]:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(207, 96, 72, 0.25);
}
.search-form__s {
  display: flex;
  align-items: flex-end;
}
.search-sum {
  margin-bottom: 1.1rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}
.search-hint ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.search-hint a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.89rem;
}
.search-hint a:hover {
  border-color: var(--accent);
}
.search-res {
  display: grid;
  gap: 0.9rem;
}
.search-res li {
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.search-res h2,
.search-res h3 {
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
}
.search-res p {
  margin: 0 0 0.35rem;
  color: var(--text-soft);
  font-size: 0.91rem;
}
.search-res .path {
  color: var(--text-faint);
  font-size: 0.81rem;
}

/* 网站地图 */
.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 640px) {
  .map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .map-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.map-block {
  padding: 1.3rem 1.45rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.map-block h2 {
  margin-bottom: 0.7rem;
}
.map-block li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 0.93rem;
  border-bottom: 1px solid var(--line-soft);
}
.map-block li:last-child a {
  border-bottom: 0;
}
.map-block li a:hover {
  color: var(--accent);
}

/* 404 */
.err {
  padding-block: calc(var(--gap) * 0.9);
  text-align: center;
}
.err__code {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: var(--num);
  font-size: clamp(3.4rem, 13vw, 5.6rem);
  font-weight: 700;
  line-height: 1;
}
.err h1 {
  margin-bottom: 0.7rem;
}
.err p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--text-soft);
}
.err .btn-row {
  justify-content: center;
  margin-top: 1.5rem;
}
.err-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  max-width: 44rem;
  margin: 2.3rem auto 0;
  text-align: left;
}
.err-routes a {
  display: block;
  padding: 0.95rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-weight: 600;
}
.err-routes a:hover {
  border-color: var(--accent);
}
.err-routes span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-faint);
  font-size: 0.83rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.91rem;
}
.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem 1.2rem;
  padding-block: 2.6rem 2rem;
}
@media (min-width: 640px) {
  .site-footer__main {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .site-footer__main {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.4rem;
  }
  .footer-brand {
    grid-column: auto;
  }
}
.footer-brand__mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 700;
}
.footer-brand__mark svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.footer-brand__intro {
  max-width: 34rem;
  margin: 0 0 0.45rem;
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.78;
}
.footer-brand dl {
  margin: 0;
  display: grid;
}
.footer-brand dl div {
  display: flex;
  gap: 0.5rem;
  padding: 0.2rem 0;
}
.footer-brand dt {
  flex-shrink: 0;
  color: rgba(250, 247, 242, 0.48);
}
.footer-brand dd {
  margin: 0;
  color: rgba(250, 247, 242, 0.85);
  word-break: break-all;
}
.footer-brand__more {
  margin: 0.35rem 0 0;
}
.footer-brand__more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-soft);
  font-size: 0.9rem;
}
.footer-nav h2 {
  margin-bottom: 0.45rem;
  color: var(--paper);
  font-size: 0.96rem;
}
.footer-nav h2 a {
  color: inherit;
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: rgba(250, 247, 242, 0.7);
}
.footer-nav a:hover {
  color: var(--accent-soft);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}
.site-footer__legal p {
  margin: 0;
}
.site-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
}
.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: rgba(250, 247, 242, 0.7);
}
.site-footer__legal a:hover {
  color: var(--accent-soft);
}

@media (min-width: 1024px) {
  .footer-nav a,
  .site-footer__legal a,
  .footer-brand__more a {
    min-height: 34px;
  }
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--paper);
  font-size: 1.05rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}
.back-to-top:hover {
  background: var(--ink-3);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .back-to-top {
    right: 1.6rem;
    bottom: 1.6rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  .cat-cell:hover {
    transform: none;
  }
}

/* 面包屑里的短链接（如「首页」）横向也要够 44 */
.crumb a,
.crumb [aria-current="page"] {
  min-width: 44px;
  justify-content: center;
  padding-inline: 4px;
}

/* 栏目卡整体作为点击区：标题链接用伪元素铺满卡片，卡内无其他链接不会覆盖 */
.scene-card {
  position: relative;
}
.scene-card__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   首页节奏件：紧凑要点条 / 资讯列表
   与卡片网格交替出现，避免整页都是等高卡片墙
   -------------------------------------------------------------------------- */

.mini-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .mini-list {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}
.mini-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.mini-list__kind {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.12rem 0.55rem;
  background: var(--accent-wash);
  color: #a94b3a;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
}
.mini-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 1rem;
}
.mini-list p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 1.62;
}

.post-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.post-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 700px) {
  .post-row {
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 1.6rem;
    align-items: center;
  }
}
.post-row__fig {
  margin: 0;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-row__fig img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.post-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-faint);
  font-size: 0.81rem;
}
.post-row h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}
.post-row h3 a {
  color: var(--ink);
}
.post-row h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-row p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* ---------- 作品库：圆润卡片 + 竖排更新列表 ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 1.25rem;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work-card__cover {
  position: relative;
  isolation: isolate;
  margin: 0;
  height: 116px;
  display: grid;
  place-items: center;
  background: var(--cover, linear-gradient(135deg, var(--accent), var(--accent-soft)));
  overflow: hidden;
}
.work-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card__cover::before,
.work-card__cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.56);
  transform: rotate(-8deg);
}
.work-card__cover::before {
  width: 52%;
  height: 138%;
  left: -9%;
  top: -28%;
}
.work-card__cover::after {
  width: 56%;
  height: 80%;
  right: -14%;
  bottom: -24%;
}
.work-card__cover span {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0.96;
  text-shadow: 2px 2px 0 rgba(20, 22, 31, 0.22);
}
.work-card__body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.work-card__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0;
}
.work-card__genre {
  background: var(--accent-wash);
  color: #a94b3a;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-weight: 600;
}
.work-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
}
.work-card__brief {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.65;
  flex: 1;
}
.work-card__foot {
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--num);
}
.upd {
  margin-top: 2.5rem;
}
.upd__title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}
.upd__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.upd__list li {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.72rem 0.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.upd__genre {
  color: var(--g, var(--accent));
  font-size: 0.8rem;
  font-weight: 600;
}
.upd__list strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upd__ch,
.upd__list time {
  font-family: var(--num);
  font-size: 0.82rem;
  color: var(--text-faint);
}
@media (max-width: 720px) {
  .upd__list li {
    grid-template-columns: 1fr auto;
    grid-template-areas: "t c" "g d";
    row-gap: 0.25rem;
  }
  .upd__list strong {
    grid-area: t;
  }
  .upd__ch {
    grid-area: c;
  }
  .upd__genre {
    grid-area: g;
  }
  .upd__list time {
    grid-area: d;
  }
}

/* 首页在窄屏呈现为可滑动书架，保留内容但缩短纵向阅读距离。 */
@media (max-width: 699px) {
  body:not(.inner) .band {
    padding-block: 3.1rem;
  }

  body:not(.inner) .section-head {
    margin-bottom: 1.45rem;
  }

  body:not(.inner) .work-grid,
  body:not(.inner) .prod-grid,
  body:not(.inner) .post-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 19rem);
    grid-template-columns: none;
    gap: 1rem;
    margin-inline: calc(var(--shell-pad) * -1);
    padding: 0 var(--shell-pad) 0.8rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  body:not(.inner) .work-card,
  body:not(.inner) .prod-card,
  body:not(.inner) .post-row {
    scroll-snap-align: start;
  }

  body:not(.inner) .work-card__cover {
    height: 138px;
  }

  body:not(.inner) .post-list {
    border-top: 0;
  }

  body:not(.inner) .post-row {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
  }

  body:not(.inner) .post-row__body {
    padding: 0 1rem 1.1rem;
  }

  body:not(.inner) .post-row__fig img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  body:not(.inner) .zig {
    gap: 2rem;
  }
}

/* ---------- 栏目页作品卡片 ---------- */
.ex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.ex-list li {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.ex-list strong {
  font-size: 0.95rem;
}
.ex-list span {
  font-size: 0.87rem;
  color: var(--text-soft);
  line-height: 1.65;
}
@media (max-width: 640px) {
  .ex-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ---------- 内页统一开场导语 ---------- */
.page-intro {
  margin: 0 0 1.9rem;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

/* ========================================================================
   漫画章节语言：书脊目录、页码轨迹与阅读设置
   ======================================================================== */

.section-head--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head--split > div {
  max-width: 44rem;
}

.shelf-preview {
  position: relative;
  overflow: hidden;
}

.shelf-preview::before {
  content: "";
  position: absolute;
  inset: 1.5rem auto 1.5rem 1.35rem;
  width: 1px;
  background: var(--line);
}

.shelf-preview .work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shelf-preview .work-card {
  border-radius: 3px 14px 14px 3px;
  box-shadow: 5px 6px 0 rgba(56, 38, 40, 0.07);
}

.shelf-preview .work-card__cover {
  height: 168px;
}

.shelf-preview .work-card__body {
  border-left: 5px solid var(--accent-wash);
}

.pagehead--shelf,
.pagehead--reader {
  background:
    linear-gradient(90deg, rgba(207, 96, 72, 0.08) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--white);
}

.bookshelf-catalog {
  display: grid;
  gap: 3.6rem;
}

.ledger-group {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.ledger-group__head {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ledger-group__head > span {
  color: var(--accent);
  font-family: var(--num);
  font-size: 1.7rem;
  line-height: 1;
}

.ledger-group__head p {
  margin: 0 0 0.2rem;
  color: var(--text-faint);
  font-family: var(--num);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.ledger-group__head h2 {
  font-size: 1.15rem;
}

.ledger-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ledger-entry {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1rem;
  background: var(--white);
}

.ledger-entry figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px 10px 10px 2px;
}

.ledger-entry img {
  width: 100%;
  height: 7.4rem;
  object-fit: cover;
}

.ledger-entry > div {
  align-self: center;
}

.ledger-entry__meta {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ledger-entry h3 {
  margin-bottom: 0.25rem;
}

.ledger-entry p:last-child {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.next-step--chapter {
  border-radius: 2px 18px 18px 2px;
  border-left: 8px solid var(--accent);
}

.reader-manual {
  display: grid;
  gap: 3.2rem;
}

.reader-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.reader-opening figure {
  margin: 0;
  padding: 0 0.8rem 0.8rem 0;
  background: linear-gradient(135deg, transparent 66%, var(--accent-wash) 66%);
}

.reader-opening img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px 14px 14px 2px;
}

.reader-opening h2,
.reader-settings h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.reading-track {
  position: relative;
  display: grid;
  gap: 0;
}

.reading-track::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  bottom: 2.2rem;
  left: 2rem;
  width: 2px;
  background: var(--line);
}

.reading-track li {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.reading-track li > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--num);
  font-weight: 700;
}

.reading-track h2 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.reading-track p {
  color: var(--text-soft);
}

.reader-settings {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--ink);
  color: rgba(255, 253, 249, 0.76);
  border-radius: 2px 18px 18px 2px;
}

.reader-settings h2 {
  color: var(--white);
}

.reader-settings dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.14);
}

.reader-settings dl > div {
  padding: 1rem;
  background: var(--ink-2);
}

.reader-settings dt {
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.reader-settings dd {
  margin: 0.25rem 0 0;
  color: var(--white);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .shelf-preview .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ledger-group__head {
    position: static;
  }

  .reader-opening,
  .reader-settings {
    grid-template-columns: 1fr;
  }
}

.shelf-filter fieldset {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.shelf-filter legend {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.shelf-filter fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.shelf-filter input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--ink);
}

.shelf-filter fieldset label:has(input:checked) {
  background: var(--accent-wash);
  border-color: var(--ink);
}

.hero h1 em {
  display: block;
  margin-top: 0.2em;
}

/* Reading support: existing HTML remains usable without JavaScript. */
[hidden] {
  display: none !important;
}

.brand-note {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: start;
}

.brand-note h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.4;
}

.brand-note p:not(.eyebrow) {
  color: var(--text-soft);
  line-height: 1.85;
}

.brand-note--spine {
  border-left: 5px solid var(--accent);
  padding-left: 1.5rem;
}

.brand-note--editor {
  padding: 1.5rem;
  border: 2px solid var(--ink);
  border-top-width: 6px;
  background: var(--accent-wash);
}

.brand-note .btn-row {
  gap: 0.7rem 1.5rem;
  margin-top: 0.8rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.shelf-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.shelf-filter > div:first-child {
  flex: 1 1 14rem;
}

.shelf-filter label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.shelf-filter input,
.shelf-filter select {
  min-height: 44px;
  max-width: 100%;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font: inherit;
}

.filter-status,
.filter-empty {
  flex-basis: 100%;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.article-toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--white);
}

.article-toc h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.article-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc a,
.work-card h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.article-toc a {
  font-size: 0.94rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

[id^="reading-"],
[data-shelf-item] {
  scroll-margin-top: 7.5rem;
}

[data-shelf-item]:target {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.search-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.search-pages span {
  color: var(--text-soft);
}

@media (max-width: 699px) {
  .brand-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .brand-note--editor {
    padding: 1rem;
  }

  .article-toc {
    padding: 0.8rem 1rem;
  }

  .article-toc ol {
    display: block;
  }

  .shelf-filter {
    padding: 0.9rem;
  }

  .shelf-filter > div:first-child {
    flex-basis: 100%;
  }

  body.home .work-card__brief {
    display: block;
  }
}

@media (max-width: 640px) {
  .section-head--split {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .ledger-entry {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.8rem;
  }

  .ledger-entry img {
    height: 6.4rem;
  }

  .reader-settings {
    padding: 1.25rem;
  }
}

.err--chapter {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding-block: 3rem;
  background: var(--paper);
}

.missing-chapter {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.missing-chapter__number {
  margin: 0;
  color: var(--accent);
  font-family: var(--num);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  writing-mode: vertical-rl;
}

.missing-chapter__copy {
  max-width: 42rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}

.missing-chapter__copy h1 {
  margin-bottom: 0.8rem;
}

.missing-chapter__copy > p:not(.eyebrow) {
  color: var(--text-soft);
}

.missing-chapter__copy .btn-row {
  margin-top: 1.4rem;
}

.missing-chapter__index {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.missing-chapter__index a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  padding: 1rem;
  background: var(--white);
}

.missing-chapter__index span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-family: var(--num);
  font-weight: 700;
}

.missing-chapter__index small {
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .missing-chapter {
    grid-template-columns: 1fr;
  }

  .missing-chapter__number {
    writing-mode: horizontal-tb;
  }

  .missing-chapter__index {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
}

/* 动态数据缺图时由文字占满原网格，不保留空图列。 */
.hero__grid > div:only-child,
.zig__body:only-child,
.detail-sum:only-child,
.detail-fig:only-child {
  grid-column: 1 / -1;
}

.spec-table td strong {
  display: block;
  font-weight: 600;
}

.table-wrap:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
