/* ==========================================================================
   v2.css — 新风格覆盖层
   参考现代 App 官网语言：胶囊标签 / 大立绘首屏 / 大圆角卡片 / 深浅区块交替
   主色沿用 --brand（蛙绿），不改动原有结构与 SEO
   ========================================================================== */

/* ---------- 胶囊 eyebrow ---------- */
.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-ghost);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.pill-eyebrow--light {
  background: rgba(122, 211, 175, .16);
  color: #7ad3af;
}

/* 分节标题的编号 + 英文，合成一枚胶囊 */
.sec-head__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 14px;
  margin-bottom: 8px;
  border-radius: var(--r-pill);
  background: var(--brand-ghost);
}
.sec-head__idx,
.sec-head__row .eyebrow--caps {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand);
  text-transform: uppercase;
  padding-top: 0;
}

/* ---------- 首屏：右侧大立绘 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(30px, 4.5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero::before { display: none; }
.hero .container { position: relative; z-index: 2; }
.hero__inner { grid-template-columns: 1fr; }
.hero__copy { max-width: 620px; }

.hero__art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 16%, #000 44%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 16%, #000 44%);
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}
/* 暗色模式下压暗立绘，避免浅色插画与深底脱节 */
[data-theme="dark"] .hero__art img {
  filter: brightness(.68) saturate(.85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__art img {
    filter: brightness(.68) saturate(.85);
  }
}
.hero .pill-eyebrow { margin-bottom: 22px; }
.hero__title { font-weight: 900; }
.hero__fine {
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .04em;
}

@media (max-width: 940px) {
  /* 文案在前、立绘在后 */
  .hero { display: flex; flex-direction: column; }
  .hero .container { order: 1; }
  .hero__art {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: 320px;
    margin-top: var(--s-8);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
  }
  .hero__art img { object-position: center 32%; }
}

/* ---------- 深色沉浸区块 ---------- */
.night-sec {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #0d1512;
  color: #eef3f0;
}
.night-sec__bg { position: absolute; inset: 0; z-index: 0; }
.night-sec__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: .82;
}
.night-sec__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(13,21,18,.97) 0%,
    rgba(13,21,18,.82) 44%,
    rgba(13,21,18,.15) 100%);
}
.night-sec .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 9vw, 112px);
}
.night-sec__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
.night-sec h2 {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-top: 20px;
}
.night-sec__lede {
  color: #b9c9c1;
  font-size: var(--fs-lead);
  line-height: 1.82;
  max-width: 44ch;
}
.night-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}
.night-card {
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.night-card b {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.night-card span {
  color: #a9bdb3;
  font-size: var(--fs-sm);
  line-height: 1.7;
}
@media (max-width: 880px) {
  .night-sec__inner { grid-template-columns: 1fr; align-items: start; }
  .night-cards { grid-template-columns: 1fr; }
  .night-sec__bg img { object-position: 62% center; opacity: .5; }
  .night-sec__bg::after {
    background: linear-gradient(90deg, rgba(13,21,18,.96) 0%, rgba(13,21,18,.78) 100%);
  }
}

/* ---------- 卡片更圆润、更软 ---------- */
.card {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card--hover:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 26%, transparent);
}

/* ---------- 内页头：浅色渐变横幅 ---------- */
.page-hero {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}
.page-hero .pill-eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-weight: 900; letter-spacing: -.03em; }

/* ---------- 真实书封卡（漫画库） ---------- */
.cover--book {
  aspect-ratio: 5 / 7;
  border-radius: 10px;
  background: var(--paper-deep);
  box-shadow: 0 2px 10px rgba(12, 30, 24, .07), 0 10px 26px -18px rgba(12, 30, 24, .35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cover--book::after { display: none; }
.cover--book img {
  filter: none;
  transition: transform .55s var(--ease);
}
.work:hover .cover--book {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(12, 30, 24, .1), 0 18px 34px -20px rgba(12, 30, 24, .42);
}
.work:hover .cover--book img { transform: scale(1.035); }
.work .work__title { margin-top: 2px; }

/* 书架缩略图与书封同比例，避免裁掉书名 */
.shelf__thumb { aspect-ratio: 5 / 7; }

/* 漫画库固定 6 列，避免末行留空轨道 */
.work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1120px) { .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
