/* =========================================================
   91漫画 - 全站公共样式表
   Author: 91漫画前端团队
   ========================================================= */

/* ---------- 1. 重置与设计变量 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0c10;
  --bg-soft: #101119;
  --surface: #15161f;
  --surface-2: #1c1e29;
  --surface-3: #232533;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ecedf2;
  --text-2: #c3c6d2;
  --muted: #8e93a6;
  --brand: #ff3d7f;
  --brand-2: #7a5cff;
  --brand-3: #22d3ee;
  --gold: #ffc24b;
  --grad: linear-gradient(135deg, #ff3d7f 0%, #7a5cff 100%);
  --grad-warm: linear-gradient(135deg, #ff8a3d 0%, #ff3d7f 100%);
  --grad-cool: linear-gradient(135deg, #22d3ee 0%, #7a5cff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.85);
  --shadow-brand: 0 18px 44px -18px rgba(255, 61, 127, 0.55);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 76px;
}

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

body {
  margin: 0;
  font-family: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(
      900px 500px at 12% -8%,
      rgba(255, 61, 127, 0.12),
      transparent 62%
    ),
    radial-gradient(
      800px 480px at 92% 4%,
      rgba(122, 92, 255, 0.14),
      transparent 60%
    );
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

::selection {
  background: rgba(255, 61, 127, 0.35);
  color: #fff;
}

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

/* ---------- 2. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section--tight {
  padding: 68px 0;
}

.section--soft {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flex {
  display: flex;
}

.center {
  align-items: center;
}

.between {
  justify-content: space-between;
}

.wrap {
  flex-wrap: wrap;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

/* ---------- 3. 通用文本样式 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 20px 0 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 16.5px;
}

.lead {
  color: var(--text-2);
  font-size: 16.5px;
}

.muted {
  color: var(--muted);
}

/* ---------- 4. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 26px 55px -18px rgba(255, 61, 127, 0.7);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 61, 127, 0.6);
  background: rgba(255, 61, 127, 0.1);
  transform: translateY(-3px);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--text);
  padding: 10px 20px;
  font-size: 14px;
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.tag--hot {
  color: #ffd6e3;
  background: rgba(255, 61, 127, 0.16);
  border-color: rgba(255, 61, 127, 0.35);
}

.tag--new {
  color: #d9f7ff;
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.32);
}

.tag--gold {
  color: #ffe9bf;
  background: rgba(255, 194, 75, 0.14);
  border-color: rgba(255, 194, 75, 0.32);
}

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 12, 16, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 26px -10px rgba(255, 61, 127, 0.75);
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.is-active {
  color: #fff;
  font-weight: 600;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端抽屉 */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  padding: 16px 24px 28px;
  background: rgba(11, 12, 16, 0.98);
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu ul {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.mobile-menu a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}

.mobile-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- 6. Hero 区域 ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -180px;
  left: -120px;
  background: rgba(255, 61, 127, 0.35);
  animation: float 14s ease-in-out infinite;
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  right: -140px;
  background: rgba(122, 92, 255, 0.36);
  animation: float 18s ease-in-out infinite reverse;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 24px 0 22px;
}

.hero-copy h1 .line {
  display: block;
}

.hero-desc {
  max-width: 560px;
  font-size: 17px;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-meta .num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-meta .label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Hero 右侧封面堆叠 */
.hero-art {
  position: relative;
  min-height: 480px;
}

.cover-fan {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-item {
  position: absolute;
  width: 214px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease);
}

.fan-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.fan-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(8, 8, 12, 0.9) 100%
  );
}

.fan-item figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.fan-1 {
  transform: translate(-150px, 18px) rotate(-12deg) scale(0.9);
  z-index: 1;
}

.fan-2 {
  transform: translate(0, -14px) rotate(0deg);
  z-index: 3;
}

.fan-3 {
  transform: translate(150px, 24px) rotate(12deg) scale(0.9);
  z-index: 1;
}

.hero-art:hover .fan-1 {
  transform: translate(-176px, 6px) rotate(-16deg) scale(0.94);
}

.hero-art:hover .fan-2 {
  transform: translate(0, -26px) scale(1.02);
}

.hero-art:hover .fan-3 {
  transform: translate(176px, 12px) rotate(16deg) scale(0.94);
}

.floating-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(20, 21, 28, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 13px;
  backdrop-filter: blur(10px);
  animation: floaty 6s ease-in-out infinite;
}

.floating-badge .ico-round {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}

.badge-top {
  top: 6px;
  right: 6px;
  animation-delay: 0.4s;
}

.badge-bottom {
  bottom: 20px;
  left: 0;
  animation-delay: 1.2s;
}

.badge-bottom .ico-round {
  background: var(--grad-cool);
}

/* 简化 Hero（内页） */
.page-hero {
  position: relative;
  padding: 76px 0 62px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 61, 127, 0.22),
    rgba(122, 92, 255, 0.1) 45%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.page-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 18px 0 16px;
}

.page-hero p {
  color: var(--text-2);
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* ---------- 7. 动画 ---------- */
@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(26px, -34px, 0) scale(1.06);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 61, 127, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 61, 127, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero::before,
  .hero::after,
  .floating-badge,
  .eyebrow .dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 8. 核心特性卡片 ---------- */
.feature-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.018)
  );
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    420px 160px at 20% 0%,
    rgba(255, 61, 127, 0.18),
    transparent 70%
  );
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 61, 127, 0.38);
  box-shadow: 0 30px 60px -30px rgba(255, 61, 127, 0.55);
}

.feature-card:hover::before {
  opacity: 1;
}

.ico-round {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.feature-card:hover .ico-round {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--grad);
}

.ico-round svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
}

.feature-card .index {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
}

/* ---------- 9. 服务介绍（Bento） ---------- */
.service-bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 92, 255, 0.4);
}

.service-card--feature {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    150deg,
    rgba(255, 61, 127, 0.16),
    rgba(122, 92, 255, 0.12) 55%,
    rgba(21, 22, 31, 0.9)
  );
  border-color: rgba(255, 61, 127, 0.3);
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-2);
  font-size: 15px;
}

.service-card .visual {
  margin-top: 26px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.service-card .visual img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .visual img {
  transform: scale(1.05);
}

.service-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-2);
}

.service-list li .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 61, 127, 0.16);
  border: 1px solid rgba(255, 61, 127, 0.35);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.service-card .big-num {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}

/* ---------- 10. 漫画卡片 ---------- */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.comic-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.comic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 61, 127, 0.45);
  box-shadow: 0 30px 55px -28px rgba(255, 61, 127, 0.6);
}

.comic-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-3);
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.comic-card:hover .comic-cover img {
  transform: scale(1.08);
}

.comic-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(8, 8, 12, 0.85) 100%
  );
  pointer-events: none;
}

.comic-cover .corner-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 16px -8px rgba(255, 61, 127, 0.9);
}

.comic-cover .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 3;
}

.comic-cover .play span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #14151c;
  font-size: 18px;
  transform: scale(0.85);
  transition: transform 0.35s var(--ease);
}

.comic-card:hover .play {
  opacity: 1;
}

.comic-card:hover .play span {
  transform: scale(1);
}

.comic-info {
  padding: 14px 14px 16px;
}

.comic-info h3 {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.comic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.comic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ---------- 11. 排行榜 ---------- */
.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.rank-item:hover {
  background: rgba(255, 61, 127, 0.08);
  border-color: rgba(255, 61, 127, 0.3);
  transform: translateX(4px);
}

.rank-no {
  flex-shrink: 0;
  width: 30px;
  font-size: 17px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
}

.rank-item:nth-child(1) .rank-no {
  color: #ff5c5c;
}

.rank-item:nth-child(2) .rank-no {
  color: #ff9f43;
}

.rank-item:nth-child(3) .rank-no {
  color: #ffd93d;
}

.rank-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
}

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

.rank-body {
  flex: 1;
  min-width: 0;
}

.rank-body h3 {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-body p {
  font-size: 12.5px;
  color: var(--muted);
}

.rank-score {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- 12. 分类 chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}

.chip:hover,
.chip.is-active {
  color: #fff;
  border-color: rgba(255, 61, 127, 0.55);
  background: rgba(255, 61, 127, 0.14);
  transform: translateY(-2px);
}

.chip .count {
  font-size: 12px;
  color: var(--muted);
}

/* 分类卡片 */
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 16, 0.2) 0%,
    rgba(11, 12, 16, 0.92) 100%
  );
}

.cat-card > div {
  position: relative;
  z-index: 2;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122, 92, 255, 0.45);
}

.cat-card:hover img {
  transform: scale(1.07);
  opacity: 0.7;
}

.cat-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.cat-card p {
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- 13. FAQ 手风琴 ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item.is-open {
  border-color: rgba(255, 61, 127, 0.4);
  background: rgba(255, 61, 127, 0.06);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.faq-q .mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--brand);
  font-size: 15px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item.is-open .faq-q .mark {
  transform: rotate(180deg);
  background: rgba(255, 61, 127, 0.16);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}

.faq-a p {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 14.5px;
}

/* ---------- 14. CTA ---------- */
.cta-panel {
  position: relative;
  padding: 62px 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    120deg,
    rgba(255, 61, 127, 0.9) 0%,
    rgba(160, 72, 214, 0.9) 46%,
    rgba(122, 92, 255, 0.92) 100%
  );
  box-shadow: 0 40px 80px -40px rgba(255, 61, 127, 0.65);
  text-align: center;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.22),
      transparent 40%
    ),
    radial-gradient(circle at 84% 78%, rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: #fff;
  margin-bottom: 14px;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta-panel .btn-primary {
  background: #fff;
  color: #c2185b;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.5);
}

.cta-panel .btn-primary:hover {
  background: #fff;
  color: #a2154e;
}

.cta-panel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cta-panel .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  margin-top: 0;
  padding: 68px 0 30px;
  border-top: 1px solid var(--line);
  background: #08090d;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 340px;
  font-size: 14px;
  color: var(--muted);
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  color: #fff;
  border-color: rgba(255, 61, 127, 0.5);
  background: rgba(255, 61, 127, 0.14);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a:hover {
  color: var(--brand);
}

/* ---------- 16. 关于我们 ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.story-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.story-media .float-stat {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 16px 22px;
  border-radius: 14px;
  background: rgba(14, 15, 22, 0.86);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}

.story-media .float-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-media .float-stat span {
  font-size: 12.5px;
  color: var(--muted);
}

.story-text h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 18px;
}

.story-text p {
  color: var(--text-2);
  margin-bottom: 16px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--brand),
    rgba(122, 92, 255, 0.6),
    transparent
  );
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(255, 61, 127, 0.16);
}

.timeline-item .year {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14.5px;
  color: var(--muted);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  padding: 30px 24px;
  background: var(--bg-soft);
  text-align: center;
  transition: background 0.3s var(--ease);
}

.stat-cell:hover {
  background: var(--surface);
}

.stat-cell strong {
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-cell span {
  font-size: 13.5px;
  color: var(--muted);
}

.value-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122, 92, 255, 0.42);
}

.value-card h3 {
  font-size: 18px;
  margin: 16px 0 8px;
}

.value-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 17. 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.info-card:hover {
  border-color: rgba(255, 61, 127, 0.4);
  transform: translateY(-3px);
}

.info-card .ico-round {
  margin-bottom: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 14px;
  color: var(--muted);
  word-break: break-all;
}

.form-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--brand);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(255, 61, 127, 0.65);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.12);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select option {
  background: #15161f;
  color: var(--text);
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
}

.form-alert {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: #c9f7d6;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.form-alert.is-show {
  display: block;
}

/* ---------- 18. 资讯列表 ---------- */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 92, 255, 0.45);
  box-shadow: 0 28px 55px -30px rgba(122, 92, 255, 0.6);
}

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 12, 16, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}

.news-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
}

.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.news-foot .more {
  color: var(--brand);
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--text-2);
}

.pagination a:hover {
  border-color: rgba(255, 61, 127, 0.5);
  color: #fff;
}

.pagination .is-current {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

/* 头条大卡 */
.featured-news {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 40px;
}

.featured-news .media {
  position: relative;
  min-height: 340px;
}

.featured-news .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-news .content {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-news h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 16px 0 14px;
}

.featured-news p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ---------- 19. 文章详情 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.article {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.article-header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.article-header .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.article-body p {
  color: var(--text-2);
  margin-bottom: 20px;
  font-size: 16px;
}

.article-body h2 {
  font-size: 24px;
  margin: 38px 0 16px;
}

.article-body h3 {
  font-size: 19px;
  margin: 28px 0 12px;
}

.article-body img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 26px 0 10px;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 26px;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  background: rgba(255, 61, 127, 0.07);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 15.5px;
}

.article-body ul.dot {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 0;
}

.article-body ul.dot li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  color: var(--text-2);
}

.article-body ul.dot li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.article-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 20px;
}

.aside-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.aside-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.aside-card ol {
  display: grid;
  gap: 14px;
  counter-reset: item;
}

.aside-card ol li {
  counter-increment: item;
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.aside-card ol li::before {
  content: counter(item);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
}

.aside-card .mini-list {
  display: grid;
  gap: 14px;
}

.aside-card .mini-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.aside-card .mini-item img {
  width: 52px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.aside-card .mini-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.aside-card .mini-item span {
  font-size: 12px;
  color: var(--muted);
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.prev-next a {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  transition: all 0.3s var(--ease);
}

.prev-next a:hover {
  border-color: rgba(255, 61, 127, 0.45);
  background: rgba(255, 61, 127, 0.08);
}

.prev-next .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.prev-next a:last-child {
  text-align: right;
}

/* ---------- 20. 漫画库页面 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  min-width: 240px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.catalog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.catalog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(122, 92, 255, 0.45);
  box-shadow: 0 30px 55px -30px rgba(122, 92, 255, 0.65);
}

.catalog-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-3);
}

.catalog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.catalog-card:hover .thumb img {
  transform: scale(1.07);
}

.catalog-card .thumb .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 12, 16, 0.75);
  border: 1px solid var(--line-strong);
}

.catalog-body {
  padding: 18px 18px 20px;
}

.catalog-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.catalog-body p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  min-height: 40px;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.catalog-meta .score {
  color: var(--gold);
  font-weight: 700;
}

/* 侧栏推荐 */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 34px;
  align-items: start;
}

/* ---------- 21. 回顶部 & 提示 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(21, 22, 31, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1120px) {
  .comic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-inner {
    gap: 32px;
  }
  .hero-art {
    min-height: 420px;
  }
  .fan-item {
    width: 180px;
  }
  .fan-item img {
    height: 258px;
  }
  .fan-1 {
    transform: translate(-118px, 16px) rotate(-11deg) scale(0.9);
  }
  .fan-3 {
    transform: translate(118px, 22px) rotate(11deg) scale(0.9);
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero {
    padding: 56px 0 66px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-art {
    min-height: 400px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-bento {
    grid-template-columns: 1fr;
  }
  .service-card--feature {
    grid-row: auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story-media img {
    height: 340px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-aside {
    position: static;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .featured-news {
    grid-template-columns: 1fr;
  }
  .featured-news .media {
    min-height: 240px;
  }
  .featured-news .content {
    padding: 30px;
  }
  .comic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 38px;
  }
  .hero-meta {
    gap: 18px 30px;
  }
  .hero-meta .num {
    font-size: 22px;
  }
  .hero-art {
    min-height: 360px;
  }
  .fan-item {
    width: 148px;
  }
  .fan-item img {
    height: 212px;
  }
  .fan-1 {
    transform: translate(-92px, 14px) rotate(-10deg) scale(0.9);
  }
  .fan-3 {
    transform: translate(92px, 18px) rotate(10deg) scale(0.9);
  }
  .floating-badge {
    font-size: 12px;
    padding: 7px 13px 7px 8px;
  }
  .floating-badge .ico-round {
    width: 28px;
    height: 28px;
  }
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .comic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .cta-panel {
    padding: 44px 24px;
  }
  .form-card {
    padding: 26px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article {
    padding: 26px 20px;
  }
  .article-body h2 {
    font-size: 21px;
  }
  .prev-next {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-band {
    grid-template-columns: 1fr 1fr;
  }
  .stat-cell {
    padding: 24px 12px;
  }
  .stat-cell strong {
    font-size: 26px;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
  }
  .page-hero {
    padding: 54px 0 44px;
  }
  .filter-bar {
    padding: 16px;
  }
  .search-box {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .fan-item {
    width: 124px;
  }
  .fan-item img {
    height: 180px;
  }
  .comic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
