/* ============================================================
   只狼：影逝二度 — 暗黑战国风格
   墨黑 + 暗红（血） + 枯骨白 + 金（佛雕/机关）
   写实、刀锋质感、磨砂玻璃、孤寂
   PBootCMS 第三方模板模式
   ============================================================ */

/* ===== Fonts — 系统字体优先，零外部依赖 ===== */
/* PingFang SC (macOS/iOS), Microsoft YaHei (Windows), Hiragino Sans GB (macOS旧版) */

/* ================================================================
   CSS 变量 — 暗黑设计令牌
   ================================================================ */
:root {
  /* 墨黑系 */
  --color-black: #0a0a0a;
  --color-black-light: #111111;
  --color-black-alt: #1a1a1a;
  --color-ink: #0d0d0d;

  /* 暗红（血） */
  --color-blood: #8B0000;
  --color-blood-light: #B22222;
  --color-blood-dark: #4a0000;
  --color-blood-glow: rgba(178, 34, 34, 0.3);

  /* 枯骨白 */
  --color-bone: #c8c0b8;
  --color-bone-light: #e0d8d0;
  --color-bone-dark: #8a8078;

  /* 金（佛雕/机关） */
  --color-gold: #b8963c;
  --color-gold-light: #d4b45a;
  --color-gold-dark: #7a6228;
  --color-gold-glow: rgba(184, 150, 60, 0.2);

  /* 背景层级 */
  --color-bg: #0a0a0a;
  --color-bg-alt: #0f0f0f;
  --color-bg-elevated: #161616;
  --color-bg-card: rgba(20, 20, 20, 0.85);

  /* 文字 */
  --color-text: #d0c8c0;
  --color-text-secondary: #8a8278;
  --color-text-muted: #5a5248;
  --color-text-on-dark: #e8e0d8;

  /* 边框 */
  --color-border: #2a2020;
  --color-border-light: #1a1515;
  --color-border-blood: rgba(139, 0, 0, 0.3);

  /* 阴影 — 重阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-blood: 0 0 20px rgba(139, 0, 0, 0.15);
  --shadow-gold: 0 0 12px rgba(184, 150, 60, 0.08);

  /* 圆角 — 极小（锐利）*/
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;

  /* 间距 */
  --section-gap: 80px;
  --section-gap-sm: 48px;

  /* 字体 — 正文可用系统字体保持锐利感 */
  --font-display: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'SimHei', '黑体', sans-serif;
  --font-body: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* 容器 */
  --container-max: 1400px;
  --container-padding: 28px;

  /* 磨砂玻璃 */
  --glass-bg: rgba(10, 10, 10, 0.75);
  --glass-border: rgba(139, 0, 0, 0.2);
  --glass-blur: 16px;
}

/* ================================================================
   重置 & 基础
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(139, 0, 0, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 0, 0, 0.04) 0%, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; color: var(--color-bone); margin-bottom: 0.4em; }
h1 { font-size: 2.6rem; letter-spacing: 0.04em; }
h2 { font-size: 2rem; letter-spacing: 0.03em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

a { color: var(--color-bone-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-blood-light); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== 容器 ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }

/* ===== 区块 ===== */
.section { padding: var(--section-gap) 0; }
.section--alt { background-color: var(--color-bg-alt); }
.section--elevated { background-color: var(--color-bg-elevated); }
.section--blood { background: linear-gradient(180deg, rgba(139,0,0,0.08) 0%, transparent 50%, rgba(139,0,0,0.05) 100%); }

/* ===== 区块标题 ===== */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .kana { display: block; font-size: 0.7rem; color: var(--color-blood-light); letter-spacing: 0.3em; margin-bottom: 8px; text-transform: uppercase; opacity: 0.7; }
.section-title h2 { font-size: 2rem; color: var(--color-bone); position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 1px; background: var(--color-blood); margin: 12px auto 0; opacity: 0.5; }
.section-title p { color: var(--color-text-secondary); font-size: 0.95rem; max-width: 560px; margin: 12px auto 0; }

/* ================================================================
   Header & 导航（透明→滚动纯黑+暗红下划线）
   ================================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.2) 70%, transparent 100%);
  backdrop-filter: none;
  border-bottom: none;
  transition: all var(--transition);
  height: 68px;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-blood);
  box-shadow: var(--shadow-lg);
}
.header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--color-blood); transform: scaleX(0); transition: transform var(--transition); }
.header.scrolled::after { transform: scaleX(1); }

/* Logo */
.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.header__logo-mark {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900;
  color: var(--color-bone); letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}
.header__logo:hover .header__logo-mark { color: var(--color-blood-light); }
.header__logo-text { font-size: 0.7rem; color: var(--color-text-muted); letter-spacing: 0.15em; }

/* PC 导航 */
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { padding: 8px 16px; font-size: 0.9rem; color: var(--color-text-secondary); letter-spacing: 0.05em; border-radius: var(--radius-sm); transition: all var(--transition-fast); white-space: nowrap; position: relative; }
.nav__link:hover, .nav__link.active { color: var(--color-bone); background: rgba(139, 0, 0, 0.15); }
.nav__link .fa-chevron-down { font-size: 0.55rem; margin-left: 4px; transition: transform var(--transition-fast); opacity: 0.5; }

/* 下拉菜单 */
.nav__item { position: relative; }
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-border-blood); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px;
  z-index: 110; opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.nav__dropdown a { display: block; padding: 8px 14px; font-size: 0.85rem; color: var(--color-text-secondary); border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.nav__dropdown a:hover { background: rgba(139, 0, 0, 0.2); color: var(--color-bone); }

/* 搜索图标 */
.nav__actions { display: flex; align-items: center; }
.nav__search { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--color-text-muted); transition: all var(--transition-fast); }
.nav__search:hover { color: var(--color-bone); background: rgba(139, 0, 0, 0.15); }

/* 汉堡 */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 32px; height: 32px; background: none; border: none; padding: 5px; cursor: pointer; z-index: 120; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--color-bone); transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 移动端侧滑 */
.mobile-nav { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: rgba(10,10,10,0.98); backdrop-filter: blur(20px); border-left: 1px solid var(--color-border-blood); z-index: 150; padding: 80px 24px 40px; overflow-y: auto; transition: right var(--transition); }
.mobile-nav.open { right: 0; }
.mobile-nav__link { display: block; padding: 12px 0; font-size: 0.95rem; color: var(--color-text-secondary); border-bottom: 1px solid var(--color-border); letter-spacing: 0.05em; }
.mobile-nav__link:hover { color: var(--color-bone); }
.mobile-nav__sub { display: none; padding: 4px 0 4px 16px; }
.mobile-nav__sub a { display: block; padding: 6px 12px; font-size: 0.85rem; color: var(--color-text-muted); }
.mobile-nav__sub a:hover { color: var(--color-blood-light); }
.mobile-nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 140; opacity: 0; visibility: hidden; transition: all var(--transition); }
.mobile-nav__overlay.show { opacity: 1; visibility: visible; }

/* ================================================================
   Hero — 全屏轮播 Banner
   ================================================================ */
.hero {
  position: relative; width: 100%;
  height: 100vh; min-height: 532px;
  margin-top: 0;
  overflow: hidden; background: var(--color-black);
}
.hero .swiper { width: 100%; height: 100%; }
.hero .swiper-slide { position: relative; overflow: hidden; height: 100%; }

/* 背景图层 + Ken Burns 慢速缩放 */
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1); transition: transform 6s ease-out;
}
.swiper-slide-active .hero__bg { transform: scale(1.08); }

/* 暗色渐变遮罩 — 底部更深以衬托文字 */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10,10,10,0.65) 0%,
      rgba(10,10,10,0.25) 15%,
      rgba(10,10,10,0.1) 35%,
      rgba(10,10,10,0.25) 55%,
      rgba(10,10,10,0.7) 80%,
      rgba(10,10,10,0.9) 100%
    );
}

/* 居中文字内容 */
.hero__content {
  position: absolute; z-index: 2; text-align: center;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; max-width: 860px; padding: 0 32px;
}
.hero__kana {
  display: block; font-size: 0.75rem; color: var(--color-blood-light);
  letter-spacing: 0.5em; margin-bottom: 20px; opacity: 0.85;
}
.hero__title {
  font-family: var(--font-display); font-size: 4rem; font-weight: 900;
  color: var(--color-bone); margin-bottom: 20px; line-height: 1.15;
  letter-spacing: 0.06em; text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero__subtitle {
  font-size: 1.1rem; color: rgba(200,192,184,0.75);
  margin-bottom: 40px; letter-spacing: 0.12em;
}

/* 分页器 — 居中偏下，在滑动指示器上方 */
.hero-pagination {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 24px; height: 2px; border-radius: 0;
  background: rgba(255,255,255,0.35); opacity: 1;
  transition: all 0.3s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--color-blood-light); width: 48px;
}

/* 向下滚动提示 — 底边 */
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; color: rgba(255,255,255,0.4); font-size: 0.7rem;
  letter-spacing: 0.25em; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--color-blood) 0%, transparent 100%);
  opacity: 0.6;
}
@keyframes scrollPulse { 0%,100%{opacity:0.25} 50%{opacity:0.7} }

/* ================================================================
   按钮
   ================================================================ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; letter-spacing: 0.05em; }
.btn--blood { background: var(--color-blood); color: var(--color-bone); border-color: var(--color-blood); }
.btn--blood:hover { background: var(--color-blood-light); color: #fff; box-shadow: var(--shadow-blood); }
.btn--outline { background: transparent; color: var(--color-bone); border-color: var(--color-border-blood); }
.btn--outline:hover { background: rgba(139,0,0,0.15); border-color: var(--color-blood-light); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-text-secondary); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-blood-light); color: var(--color-bone); }
.btn--gold { background: var(--color-gold-dark); color: var(--color-bone); border-color: var(--color-gold); }
.btn--gold:hover { background: var(--color-gold); color: #111; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn i { transition: transform var(--transition-fast); }
.btn:hover i { transform: translateX(3px); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ================================================================
   卡片系统 — 半透黑底+暗红细边+磨砂玻璃
   ================================================================ */
.card {
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 24px; transition: all var(--transition); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--color-blood-light); box-shadow: var(--shadow-blood); transform: translateY(-2px); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-blood-light), transparent); opacity: 0; transition: opacity var(--transition); }
.card:hover::before { opacity: 1; }
/* 刀光划过效果 */
.card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%); transform: translateX(-100%); transition: none; }
.card:hover::after { animation: bladeFlash 0.6s ease forwards; }
@keyframes bladeFlash { to { transform: translateX(100%); } }

/* 角色卡片 */
.char-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px 16px 20px; transition: all var(--transition); cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
}
.char-card:hover { border-color: var(--color-blood-light); box-shadow: var(--shadow-blood); transform: translateY(-4px); }
.char-card__image { width: 120px; height: 160px; object-fit: cover; border: 1px solid var(--color-border); margin-bottom: 16px; background: var(--color-bg-elevated); }
.char-card__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-bone); margin-bottom: 4px; }
.char-card__role { font-size: 0.8rem; color: var(--color-blood-light); margin-bottom: 8px; letter-spacing: 0.05em; }
.char-card__quote { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.6; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-card:hover::after { animation: bladeFlash 0.6s ease forwards; content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 40%, rgba(255,100,100,0.04) 50%, transparent 60%); transform: translateX(-100%); }

/* 武器卡片 */
.weapon-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 20px 14px; transition: all var(--transition); cursor: pointer; text-decoration: none;
  position: relative;
}
.weapon-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.weapon-card__icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.weapon-card__name { font-size: 0.95rem; color: var(--color-bone); margin-bottom: 4px; }
.weapon-card__attr { font-size: 0.75rem; color: var(--color-gold-light); }
/* 忍杀文字闪烁 */
.weapon-card:hover .weapon-card__name::after { content: '忍殺'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-display); font-size: 2rem; color: var(--color-blood); opacity: 0; animation: deathBlink 0.3s ease; pointer-events: none; }
@keyframes deathBlink { 0%{opacity:0.8} 100%{opacity:0;transform:translate(-50%,-50%) scale(2)} }

/* ================================================================
   统计数字 — 忍杀计数
   ================================================================ */
.stats-section {
  padding: 56px 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-item { text-align: center; padding: 20px; }
.stat-item__number { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; color: var(--color-blood-light); margin-bottom: 4px; line-height: 1; }
.stat-item__label { font-size: 0.8rem; color: var(--color-text-muted); letter-spacing: 0.1em; }

/* ================================================================
   引用块 — 佛雕师语录
   ================================================================ */
.quote-block {
  max-width: 700px; margin: 0 auto; padding: 48px 32px;
  background: linear-gradient(135deg, rgba(139,0,0,0.1), rgba(0,0,0,0.3));
  border-left: 2px solid var(--color-blood);
  position: relative;
}
.quote-block__text { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-bone); font-style: italic; line-height: 1.8; margin-bottom: 16px; }
.quote-block__author { font-size: 0.85rem; color: var(--color-text-muted); letter-spacing: 0.1em; }
.quote-block::before { content: '“'; position: absolute; top: 16px; left: 16px; font-size: 4rem; color: var(--color-blood); opacity: 0.3; line-height: 1; }

/* ================================================================
   网格
   ================================================================ */
.grid { display: grid; gap: 20px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ================================================================
   视频区
   ================================================================ */
.video-wrapper { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.video-placeholder { aspect-ratio: 16/9; background: var(--color-black-alt); display: flex; align-items: center; justify-content: center; position: relative; }
.video-placeholder__play { width: 64px; height: 64px; border: 2px solid var(--color-blood); background: rgba(139,0,0,0.2); display: flex; align-items: center; justify-content: center; color: var(--color-blood-light); font-size: 1.2rem; transition: all var(--transition); }
.video-placeholder__play:hover { background: var(--color-blood); color: #fff; }

/* ================================================================
   场景图鉴
   ================================================================ */
.scene-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16/10; background: var(--color-bg-elevated); border: 1px solid var(--color-border); transition: all var(--transition); }
.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); filter: brightness(0.8); }
.scene-card:hover img { transform: scale(1.05); filter: brightness(1); }
.scene-card__name { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--color-bone); font-size: 0.9rem; letter-spacing: 0.05em; }

/* ================================================================
   CTA
   ================================================================ */
.cta-section {
  padding: 80px 0; text-align: center;
  background: linear-gradient(180deg, rgba(139,0,0,0.12), transparent 50%, rgba(139,0,0,0.08));
  border-top: 1px solid var(--color-border-blood);
}
.cta-section .kana { font-size: 0.7rem; color: var(--color-blood-light); letter-spacing: 0.3em; margin-bottom: 8px; }
.cta-section h2 { font-size: 2.2rem; color: var(--color-bone); margin-bottom: 12px; }
.cta-section p { color: var(--color-text-secondary); margin-bottom: 32px; }

/* ================================================================
   内页 Banner
   ================================================================ */
.inner-banner { position: relative; height: 280px; margin-top: 68px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #0a0808, #111); }
.inner-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.4; }
.inner-banner__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.3), rgba(10,10,10,0.8)); }
.inner-banner__content { position: relative; z-index: 2; text-align: center; }
.inner-banner__kana { display: block; font-size: 0.7rem; color: var(--color-blood-light); letter-spacing: 0.3em; margin-bottom: 8px; }
.inner-banner__title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--color-bone); }

/* 面包屑 */
.breadcrumb { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); padding: 10px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--color-text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-blood-light); }

/* ================================================================
   详情页
   ================================================================ */
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.detail-cover img { width: 100%; }
.detail-header h1 { font-family: var(--font-display); font-size: 2rem; color: var(--color-bone); margin-bottom: 8px; }
.detail-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 16px; }
.detail-meta i { color: var(--color-blood-light); margin-right: 4px; }
.detail-body { line-height: 2; font-size: 1rem; color: var(--color-text); }
.detail-body p { margin-bottom: 1em; }
.detail-body strong { color: var(--color-blood-light); }

/* 参数网格 */
.param-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 24px; }
.param-item { padding: 12px 16px; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; }
.param-item__label { font-size: 0.8rem; color: var(--color-text-muted); letter-spacing: 0.05em; }
.param-item__value { font-family: var(--font-display); font-size: 0.95rem; color: var(--color-bone); }

/* 上下篇 */
.prev-next { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; margin-top: 32px; border-top: 1px solid var(--color-border); flex-wrap: wrap; font-size: 0.85rem; color: var(--color-text-muted); }
.prev-next a { color: var(--color-blood-light); }

/* ================================================================
   故事列表卡片
   ================================================================ */
.story-card {
  display: flex; gap: 20px; padding: 16px;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: all var(--transition); cursor: pointer;
}
.story-card:hover { border-color: var(--color-blood-light); box-shadow: var(--shadow-blood); }
.story-card__image { width: 160px; height: 110px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--color-bg-elevated); }
.story-card__image img { width: 100%; height: 100%; object-fit: cover; }
.story-card__body { flex: 1; min-width: 0; }
.story-card__title { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-bone); margin-bottom: 6px; }
.story-card__desc { font-size: 0.85rem; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================================================================
   搜索
   ================================================================ */
.search-section { margin-top: 68px; padding: 48px 0; background: var(--color-bg-alt); text-align: center; border-bottom: 1px solid var(--color-border); }
.search-form { max-width: 500px; margin: 0 auto; display: flex; gap: 8px; }
.search-form__input { flex: 1; padding: 12px 16px; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); outline: none; font-size: 0.95rem; }
.search-form__input:focus { border-color: var(--color-blood); }
.search-result-item {
  display: flex; gap: 16px; padding: 14px;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: all var(--transition);
}
.search-result-item:hover { border-color: var(--color-blood-light); }
.search-result-item__image { width: 90px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--color-bg-elevated); }
.search-result-item__image img { width: 100%; height: 100%; object-fit: cover; }
.search-result-item__title { font-size: 1rem; color: var(--color-bone); margin-bottom: 4px; }

/* ================================================================
   表单
   ================================================================ */
.form-group { margin-bottom: 14px; }
.form-input, .form-textarea {
  width: 100%; padding: 11px 14px; background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); color: var(--color-text); outline: none; font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}
.form-input:focus, .form-textarea:focus { border-color: var(--color-blood); }
.form-textarea { min-height: 120px; resize: vertical; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--color-blood-light); }
.contact-card__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(139,0,0,0.15); display: flex; align-items: center; justify-content: center; color: var(--color-blood-light); flex-shrink: 0; }
.checkcode-box { display: flex; gap: 10px; }
.checkcode-box img { height: 40px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--color-border); }

/* ================================================================
   分页
   ================================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--color-text-secondary); text-decoration: none; transition: all var(--transition-fast); }
.pagination a:hover { background: rgba(139,0,0,0.15); border-color: var(--color-blood-light); color: var(--color-bone); }
.pagination .active { background: var(--color-blood); border-color: var(--color-blood); color: var(--color-bone); }
.no-data { text-align: center; padding: 60px 24px; color: var(--color-text-muted); }

/* ================================================================
   灯箱
   ================================================================ */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 1px solid var(--color-border); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: var(--color-bone); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.lightbox__close:hover { background: var(--color-blood); }

/* ================================================================
   Footer
   ================================================================ */
.footer { background: var(--color-black); border-top: 1px solid var(--color-border-blood); padding: 40px 0 20px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer__col-title { font-family: var(--font-display); font-size: 1rem; color: var(--color-bone); margin-bottom: 12px; letter-spacing: 0.05em; }
.footer__links li { margin-bottom: 6px; }
.footer__links a { color: var(--color-text-muted); font-size: 0.85rem; }
.footer__links a:hover { color: var(--color-blood-light); }
.footer__bottom { padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 0.75rem; color: var(--color-text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ================================================================
   返回顶部
   ================================================================ */
.back-top { position: fixed; bottom: 28px; right: 28px; width: 40px; height: 40px; background: rgba(139,0,0,0.6); color: var(--color-bone); border: 1px solid var(--color-blood); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; z-index: 50; opacity: 0; visibility: hidden; transition: all var(--transition); cursor: pointer; }
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--color-blood); }

/* ================================================================
   工具类
   ================================================================ */
.text-center { text-align: center; }
.mt-3 { margin-top: 24px; }
.mt-5 { margin-top: 48px; }

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
