/* ============================================
   Story Panels — 漫画分镜式
   不规则矩形面板 × 强视觉引导 × 图片标题融合
   阅读路径自然 × 富有创意但保持整洁
   Editorial storyboard × Panel-based layout
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg-base: #faf9f6;
  --bg-surface: #f2f0eb;
  --bg-card: #ffffff;
  --bg-panel: #1a1a2e;
  --text-primary: #0f0f1a;
  --text-secondary: #4a4a6a;
  --text-muted: #8e8ea8;
  --text-on-dark: #f0eff4;
  --text-on-dark-muted: rgba(240,239,244,0.6);
  --accent-crimson: #e63946;
  --accent-gold: #f4a261;
  --accent-teal: #2a9d8f;
  --accent-indigo: #5b5ef0;
  --accent-rose: #e76f8b;
  --accent-crimson-glow: rgba(230,57,70,0.12);
  --accent-gold-glow: rgba(244,162,97,0.12);
  --accent-teal-glow: rgba(42,157,143,0.12);
  --accent-indigo-glow: rgba(91,94,240,0.10);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-panel: 0 4px 20px rgba(15,15,26,0.08), 0 1px 4px rgba(15,15,26,0.04);
  --shadow-panel-hover: 0 12px 40px rgba(15,15,26,0.14), 0 4px 12px rgba(15,15,26,0.06);
  --shadow-dark: 0 8px 32px rgba(26,26,46,0.25);
  --gutter: 20px;
  --panel-gap: 6px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== 导航栏 — 漫画标题条 ===== */
.sp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg-panel);
  border-bottom: 3px solid var(--accent-crimson);
}
.sp-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.sp-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}
.sp-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--accent-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 rgba(230,57,70,0.4);
}

.sp-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.sp-nav-links a {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}
.sp-nav-links a:hover { color: var(--accent-gold); }
.sp-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-crimson);
  transition: width 0.3s var(--ease-out);
}
.sp-nav-links a:hover::after { width: 100%; }

.sp-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sp-search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s;
  color: var(--text-on-dark-muted);
}
.sp-search-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent-gold);
}
.sp-search-btn svg { width: 18px; height: 18px; }
.sp-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
}
.sp-mobile-menu-btn svg { width: 22px; height: 22px; }

/* ===== 搜索覆盖层 ===== */
.sp-search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,26,46,0.92);
  backdrop-filter: blur(20px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.sp-search-overlay.active { opacity: 1; pointer-events: all; }
.sp-search-overlay-inner {
  width: 100%; max-width: 620px;
  background: var(--bg-card);
  border: 3px solid var(--accent-crimson);
  border-radius: var(--radius-md);
  padding: 28px; position: relative;
  max-height: 70vh; overflow-y: auto;
  box-shadow: 6px 6px 0 rgba(230,57,70,0.2);
}
.sp-search-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 24px; background: none; border: none;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.sp-search-close:hover { color: var(--text-primary); }
.sp-search-box {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 3px solid var(--accent-crimson);
  padding-bottom: 16px; margin-bottom: 16px;
}
.sp-search-box svg { width: 20px; height: 20px; color: var(--accent-crimson); flex-shrink: 0; }
.sp-search-input {
  width: 100%; border: none; outline: none;
  font-size: 16px; font-family: var(--font-body);
  background: transparent; color: var(--text-primary);
}
.sp-search-input::placeholder { color: var(--text-muted); }
.sp-search-results { display: flex; flex-direction: column; gap: 4px; }
.sp-search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 8px; border-radius: var(--radius-sm);
  text-decoration: none; color: inherit; transition: background 0.2s;
}
.sp-search-result-item:hover { background: var(--accent-crimson-glow); }
.sp-search-result-thumb {
  width: 56px; height: 40px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0; background: var(--bg-surface);
  border: 2px solid var(--bg-surface);
}
.sp-search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-search-result-info { flex: 1; min-width: 0; }
.sp-search-result-cat {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent-crimson); margin-bottom: 2px;
}
.sp-search-result-title {
  font-size: 13px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-search-empty { text-align: center; padding: 24px; color: var(--text-muted); font-size: 14px; }

/* ===== 分镜面板系统 ===== */
.sp-storyboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 40px 0;
}

/* --- 面板行 --- */
.sp-panel-row {
  display: grid;
  gap: var(--panel-gap);
  margin-bottom: var(--panel-gap);
}

/* 全宽面板行 */
.sp-panel-row--full {
  grid-template-columns: 1fr;
}

/* 双面板行 */
.sp-panel-row--duo {
  grid-template-columns: 1fr 1fr;
}

/* 三面板行 */
.sp-panel-row--trio {
  grid-template-columns: 1fr 1fr 1fr;
}

/* 不对称双面板 */
.sp-panel-row--split {
  grid-template-columns: 2fr 1fr;
}

/* 不对称双面板（反向） */
.sp-panel-row--split-rev {
  grid-template-columns: 1fr 2fr;
}

/* 四面板行 */
.sp-panel-row--quad {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== 面板卡片 ===== */
.sp-panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
}
.sp-panel:hover {
  box-shadow: var(--shadow-panel-hover);
  transform: translateY(-4px);
  z-index: 2;
}

/* --- 大型面板（封面式） --- */
.sp-panel--hero {
  border-radius: var(--radius-lg);
}
.sp-panel--hero .sp-panel-img {
  width: 100%;
  height: 520px;
}
.sp-panel--hero .sp-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,0.92) 0%, rgba(15,15,26,0.3) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.sp-panel--hero .sp-panel-tag {
  margin-bottom: 14px;
}
.sp-panel--hero .sp-panel-title {
  font-size: clamp(26px, 3.2vw, 44px);
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.sp-panel--hero .sp-panel-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  max-width: 640px;
}
.sp-panel--hero .sp-panel-meta {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-panel--hero .sp-panel-meta svg {
  width: 14px; height: 14px;
  color: var(--accent-gold);
}

/* --- 中型面板 --- */
.sp-panel--mid .sp-panel-img {
  width: 100%;
  height: 280px;
}
.sp-panel--mid .sp-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,0.88) 0%, rgba(15,15,26,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.sp-panel--mid .sp-panel-tag {
  margin-bottom: 10px;
}
.sp-panel--mid .sp-panel-title {
  font-size: 19px;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}
.sp-panel--mid .sp-panel-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* --- 小型面板 --- */
.sp-panel--sm .sp-panel-img {
  width: 100%;
  height: 200px;
}
.sp-panel--sm .sp-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.sp-panel--sm .sp-panel-tag {
  margin-bottom: 6px;
}
.sp-panel--sm .sp-panel-title {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

/* --- 文字面板（无图） --- */
.sp-panel--text {
  background: var(--bg-panel);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sp-panel--text .sp-panel-tag {
  margin-bottom: 12px;
}
.sp-panel--text .sp-panel-title {
  font-size: 22px;
  color: var(--text-on-dark);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.sp-panel--text .sp-panel-excerpt {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 列表面板 --- */
.sp-panel--list {
  background: var(--bg-card);
  padding: 0;
}
.sp-panel--list .sp-panel-list-header {
  padding: 24px 28px 16px;
  border-bottom: 3px solid var(--accent-crimson);
}
.sp-panel--list .sp-panel-list-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-crimson);
}

.sp-list-item {
  display: grid;
  grid-template-columns: 72px 1fr 90px;
  gap: 16px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(15,15,26,0.06);
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.sp-list-item:last-child { border-bottom: none; }
.sp-list-item:hover { background: var(--accent-crimson-glow); }
.sp-list-item-thumb {
  width: 72px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--bg-surface);
}
.sp-list-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-list-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-list-item-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  text-align: center;
}
.sp-list-item-cat--action { background: var(--accent-crimson-glow); color: var(--accent-crimson); }
.sp-list-item-cat--drama { background: var(--accent-indigo-glow); color: var(--accent-indigo); }
.sp-list-item-cat--comedy { background: var(--accent-gold-glow); color: var(--accent-gold); }
.sp-list-item-cat--romance { background: rgba(231,111,139,0.12); color: var(--accent-rose); }
.sp-list-item-cat--scifi { background: var(--accent-teal-glow); color: var(--accent-teal); }
.sp-list-item-cat--horror { background: rgba(15,15,26,0.08); color: var(--text-primary); }

/* ===== 面板图片通用 ===== */
.sp-panel-img {
  overflow: hidden;
}
.sp-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.sp-panel:hover .sp-panel-img img {
  transform: scale(1.05);
}

/* ===== 标签 ===== */
.sp-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}
.sp-tag--crimson { background: var(--accent-crimson); color: #fff; }
.sp-tag--gold { background: var(--accent-gold); color: #fff; }
.sp-tag--teal { background: var(--accent-teal); color: #fff; }
.sp-tag--indigo { background: var(--accent-indigo); color: #fff; }
.sp-tag--rose { background: var(--accent-rose); color: #fff; }
.sp-tag--dark { background: var(--bg-panel); color: var(--text-on-dark); }
.sp-tag--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }

/* ===== 章节标题 ===== */
.sp-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 0;
}
.sp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent-crimson);
}
.sp-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-crimson);
  margin-bottom: 6px;
}
.sp-section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.sp-section-more {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-crimson);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease-out);
  flex-shrink: 0;
}
.sp-section-more:hover { gap: 12px; }
.sp-section-more svg { width: 14px; height: 14px; }

/* ===== 引言面板 ===== */
.sp-quote-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px;
}
.sp-quote {
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  border-left: 6px solid var(--accent-crimson);
  box-shadow: var(--shadow-dark);
}
.sp-quote::before {
  content: '\201C';
  font-size: 140px;
  color: var(--accent-crimson);
  opacity: 0.15;
  position: absolute;
  top: -20px;
  left: 32px;
  line-height: 1;
  pointer-events: none;
}
.sp-quote-text {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--text-on-dark);
  letter-spacing: 0.3px;
}
.sp-quote-author {
  font-size: 12px;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* ===== 统计面板 ===== */
.sp-stats-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 40px;
}
.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--panel-gap);
}
.sp-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-panel);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent-crimson);
}
.sp-stat-card:nth-child(2) { border-top-color: var(--accent-gold); }
.sp-stat-card:nth-child(3) { border-top-color: var(--accent-teal); }
.sp-stat-card:nth-child(4) { border-top-color: var(--accent-indigo); }
.sp-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-panel-hover);
}
.sp-stat-number {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--accent-crimson);
}
.sp-stat-card:nth-child(2) .sp-stat-number { color: var(--accent-gold); }
.sp-stat-card:nth-child(3) .sp-stat-number { color: var(--accent-teal); }
.sp-stat-card:nth-child(4) .sp-stat-number { color: var(--accent-indigo); }
.sp-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.sp-stat-sub {
  font-size: 11px;
  margin-top: 6px;
  color: var(--text-muted);
}

/* ===== 页脚 ===== */
.sp-footer {
  background: var(--bg-panel);
  margin-top: 64px;
  border-top: 3px solid var(--accent-crimson);
}
.sp-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 24px;
}
.sp-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.sp-footer-brand {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sp-footer-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--accent-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  transform: rotate(-3deg);
}
.sp-footer-desc {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  max-width: 360px;
}
.sp-footer-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}
.sp-footer-links {
  list-style: none;
}
.sp-footer-links li { margin-bottom: 10px; }
.sp-footer-links a {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  transition: color 0.3s;
}
.sp-footer-links a:hover { color: var(--accent-gold); }
.sp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-on-dark-muted);
}

/* ===== 滚动揭示动画 ===== */
.sp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.sp-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 详情页样式 ===== */

/* 文章英雄区 */
.sp-article-hero {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 0;
}
.sp-article-hero-inner {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}
.sp-article-cover {
  width: 100%;
  height: 480px;
  overflow: hidden;
  position: relative;
}
.sp-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-article-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.95) 0%, rgba(26,26,46,0.2) 50%, transparent 100%);
}
.sp-article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px;
}
.sp-article-hero-tag {
  margin-bottom: 14px;
}
.sp-article-hero-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.sp-article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  font-weight: 600;
}
.sp-article-hero-meta svg {
  width: 16px; height: 16px;
  color: var(--accent-gold);
}

/* 文章正文 */
.sp-article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px;
}
.sp-article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.sp-article-body p:first-child::first-letter {
  font-size: 56px;
  font-weight: 900;
  float: left;
  line-height: 0.85;
  margin-right: 10px;
  margin-top: 4px;
  color: var(--accent-crimson);
}

/* 相关推荐面板 */
.sp-article-related {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 48px;
}
.sp-article-related-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-crimson);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent-crimson);
}
.sp-article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--panel-gap);
}
.sp-related-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}
.sp-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-panel-hover);
}
.sp-related-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.sp-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.sp-related-card:hover .sp-related-card-img img {
  transform: scale(1.06);
}
.sp-related-card-body {
  padding: 18px 20px;
}
.sp-related-card-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-crimson);
  margin-bottom: 6px;
}
.sp-related-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .sp-panel-row--duo,
  .sp-panel-row--split,
  .sp-panel-row--split-rev {
    grid-template-columns: 1fr 1fr;
  }
  .sp-panel-row--trio {
    grid-template-columns: 1fr 1fr;
  }
  .sp-panel-row--quad {
    grid-template-columns: 1fr 1fr;
  }
  .sp-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sp-footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sp-nav-inner { padding: 0 20px; }
  .sp-nav-links { display: none; }
  .sp-mobile-menu-btn { display: flex; }
  .sp-storyboard { padding: 20px 16px 0; }
  .sp-panel-row--duo,
  .sp-panel-row--split,
  .sp-panel-row--split-rev,
  .sp-panel-row--trio,
  .sp-panel-row--quad {
    grid-template-columns: 1fr;
  }
  .sp-panel--hero .sp-panel-img { height: 340px; }
  .sp-panel--mid .sp-panel-img { height: 220px; }
  .sp-panel--sm .sp-panel-img { height: 180px; }
  .sp-panel--hero .sp-panel-overlay { padding: 28px; }
  .sp-panel--mid .sp-panel-overlay { padding: 20px; }
  .sp-section { padding: 36px 16px 0; }
  .sp-quote-panel { padding: 36px 16px; }
  .sp-stats-panel { padding: 24px 16px; }
  .sp-stats-grid { grid-template-columns: 1fr 1fr; }
  .sp-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .sp-article-hero { padding: 28px 16px 0; }
  .sp-article-cover { height: 300px; }
  .sp-article-hero-content { padding: 24px; }
  .sp-article-body { padding: 32px 16px; }
  .sp-article-related { padding: 0 16px 32px; }
  .sp-article-related-grid { grid-template-columns: 1fr; }
  .sp-list-item { grid-template-columns: 56px 1fr; }
  .sp-list-item-cat { display: none; }
}
