/* ============================================================
   每 IP 独立美术风格 CSS
   通过 layoutVariant / animStyle / decorStyle / titleStyle class 实现差异化
   ============================================================ */

/* ===== LAYOUT VARIANTS ===== */
/* 归一化约定:所有详情页的「模块结构」统一为默认(=黑客帝国/002 的 glitch 形态),
   各 layoutVariant 只做画风(配色/字体/边框/纹理/装饰),不改模块布局——
   即不设 max-width / margin:auto / display:grid / aspect-ratio / writing-mode / text-align。
   2026-06-18:从 cinematic/grand/wide-hero/split-screen/confined/centered/
   claustrophobic/asymmetric 中移除了会压窄或重排内容模块的声明。 */

/* 电影感宽幅布局(模块归一化:移除 21:9 flex hero 与 72ch 压窄,仅留 padding 画风) */
.detail-shell.layout-cinematic .detail-hero {
  padding: 48px 32px;
}

/* 故障/数字风格 */
.detail-shell.layout-glitch .detail-hero h1 {
  position: relative;
}
.detail-shell.layout-glitch .detail-hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  color: var(--t-accent);
  opacity: 0.3;
  clip-path: inset(0 0 50% 0);
}
.detail-shell.layout-glitch .section-panel {
  border-left: 3px solid var(--t-accent);
  padding-left: 20px;
}

/* 终端风格 */
.detail-shell.layout-terminal .section-panel {
  font-family: 'Share Tech Mono', monospace;
  border: 1px solid var(--t-line);
  padding: 20px;
}
.detail-shell.layout-terminal .section-panel h2::before {
  content: "> ";
  color: var(--t-accent);
}

/* 宏大史诗布局 */
.detail-shell.layout-grand .detail-hero {
  padding: 64px 24px;
}
.detail-shell.layout-grand .detail-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.02em;
}

/* 宽幅 hero(模块归一化:移除 image-panel 限高 500px) */
.detail-shell.layout-wide-hero .detail-hero {
  padding: 48px 0;
}

/* 视差感 */
.detail-shell.layout-parallax .section-panel {
  transform: translateZ(0);
  transition: transform 0.3s ease-out;
}

/* 蓝图/技术图纸风格 */
.detail-shell.layout-blueprint .section-panel {
  border: 1px dashed var(--t-line);
  background: linear-gradient(90deg, transparent 49.5%, var(--t-line) 49.5%, var(--t-line) 50.5%, transparent 50.5%),
              linear-gradient(0deg, transparent 49.5%, var(--t-line) 49.5%, var(--t-line) 50.5%, transparent 50.5%);
  background-size: 40px 40px;
  background-position: center;
  background-blend-mode: overlay;
}

/* HUD 覆盖层风格 */
.detail-shell.layout-hud-overlay .detail-hero {
  border: 1px solid var(--t-accent);
  position: relative;
}
.detail-shell.layout-hud-overlay .detail-hero::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid color-mix(in oklch, var(--t-accent) 30%, transparent);
  pointer-events: none;
}

/* 分屏布局(模块归一化:原 .section-panel 两列 grid + 竖排标题已移除,回落默认结构) */

/* 宣传海报风格 */
.detail-shell.layout-propaganda .detail-hero {
  text-transform: uppercase;
  border: 4px solid var(--t-primary);
}
.detail-shell.layout-propaganda .detail-hero h1 {
  letter-spacing: 0.1em;
}

/* 监控风格 */
.detail-shell.layout-surveillance .section-panel {
  position: relative;
}
.detail-shell.layout-surveillance .section-panel::before {
  content: "REC ●";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.7rem;
  color: #ff3333;
  opacity: 0.6;
  font-family: monospace;
}

/* 封闭/压迫感(模块归一化:移除 56ch 压窄居中,仅留左右边框画风) */
.detail-shell.layout-confined .section-panel {
  border-left: 4px solid var(--t-line);
  border-right: 4px solid var(--t-line);
}

/* 简报风格 */
.detail-shell.layout-briefing .section-panel {
  border-left: 4px solid var(--t-primary);
  padding-left: 20px;
}
.detail-shell.layout-briefing .section-panel h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* 拼贴风格 */
.detail-shell.layout-collage .evidence-card {
  transform: rotate(calc(var(--card-index, 0) * 0.5deg - 1deg));
  transition: transform 0.2s ease-out;
}
.detail-shell.layout-collage .evidence-card:hover {
  transform: rotate(0deg) scale(1.02);
}

/* 卡片堆叠 */
.detail-shell.layout-card-stack .section-panel {
  border-radius: var(--t-border-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 24px;
  margin-bottom: 20px;
}

/* 宽敞留白 */
.detail-shell.layout-spacious .section-panel {
  padding: 40px 32px;
  margin-bottom: 32px;
}
.detail-shell.layout-spacious .detail-hero {
  padding: 56px 32px;
}

/* 居中布局(模块归一化:原 hero 居中 + 内容 68ch 压窄已移除,回落默认结构) */

/* 游戏 UI 风格 */
.detail-shell.layout-game-ui .section-panel {
  border: 2px solid var(--t-line);
  border-radius: 0;
  position: relative;
}
.detail-shell.layout-game-ui .section-panel::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--t-accent);
  border-right: 2px solid var(--t-accent);
}

/* 层叠布局 */
.detail-shell.layout-layered .section-panel {
  box-shadow: 4px 4px 0 var(--t-line);
  border: 1px solid var(--t-line);
}

/* 温馨/舒适 */
.detail-shell.layout-cozy .section-panel {
  border-radius: 16px;
  padding: 28px;
  background: color-mix(in oklch, var(--t-surface) 80%, transparent);
}

/* 大胆分割 */
.detail-shell.layout-bold-split .detail-hero {
  border-bottom: 6px solid var(--t-primary);
}

/* 动态/漫画 */
.detail-shell.layout-dynamic .section-panel {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* 有机/自然 */
.detail-shell.layout-organic .section-panel {
  border-radius: 24px 4px 24px 4px;
}

/* 流动布局 */
.detail-shell.layout-flowing .section-panel {
  border-radius: 0 20px 0 20px;
}

/* 粗犷/原始 */
.detail-shell.layout-raw .section-panel {
  border: 2px solid var(--t-line);
  border-radius: 0;
}
.detail-shell.layout-raw .detail-hero {
  border-radius: 0;
}

/* 严格网格 */
.detail-shell.layout-grid-strict .section-panel {
  border: 1px solid var(--t-line);
  border-radius: 0;
}

/* 碎片化 */
.detail-shell.layout-fragmented .section-panel {
  border-left: none;
  border-right: none;
  border-top: 2px solid var(--t-line);
  border-bottom: none;
  border-radius: 0;
  padding-left: 0;
}

/* 幽暗揭示 */
.detail-shell.layout-dark-reveal .section-panel {
  background: linear-gradient(180deg, transparent, var(--t-surface) 20%);
}

/* 复古海报 */
.detail-shell.layout-poster .detail-hero {
  border: 3px double var(--t-primary);
  padding: 32px;
}

/* 杂志风格 */
.detail-shell.layout-magazine .section-panel h2 {
  font-size: 1.8rem;
  border-bottom: 3px solid var(--t-primary);
  padding-bottom: 8px;
  display: inline-block;
}

/* 战术风格 */
.detail-shell.layout-tactical .section-panel {
  border-left: 3px solid var(--t-accent);
  padding-left: 16px;
  font-family: 'Rajdhani', sans-serif;
}

/* 复古风格 */
.detail-shell.layout-vintage .section-panel {
  border: 1px solid var(--t-line);
  border-radius: 0;
  box-shadow: inset 0 0 30px color-mix(in oklch, var(--t-surface) 50%, transparent);
}

/* 漩涡/迷幻 */
.detail-shell.layout-spiral .section-panel {
  border-radius: 50% 0 50% 0 / 10% 0 10% 0;
  padding: 32px;
}

/* 幽闭恐惧(模块归一化:移除 50ch 压窄居中,仅留 padding) */
.detail-shell.layout-claustrophobic .section-panel {
  padding: 16px;
}

/* 流体 */
.detail-shell.layout-fluid .section-panel {
  border-radius: 32px;
  padding: 32px;
}

/* 漫画面板 */
.detail-shell.layout-comic-panel .section-panel {
  border: 3px solid var(--t-ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--t-ink);
}

/* 锈蚀/废土 */
.detail-shell.layout-rusted .section-panel {
  border: 2px solid var(--t-line);
  border-radius: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    color-mix(in oklch, var(--t-line) 20%, transparent) 20px,
    color-mix(in oklch, var(--t-line) 20%, transparent) 21px
  );
}

/* 不对称 */
.detail-shell.layout-asymmetric .section-panel:nth-child(odd) {
  padding-left: 32px;
  border-left: 3px solid var(--t-accent);
}
.detail-shell.layout-asymmetric .section-panel:nth-child(even) {
  padding-right: 32px;
  border-right: 3px solid var(--t-primary);
}

/* 故事流 */
.detail-shell.layout-story-flow .section-panel {
  position: relative;
  padding-left: 32px;
}
.detail-shell.layout-story-flow .section-panel::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--t-primary), var(--t-accent));
}


/* ===== ANIMATION STYLES ===== */

/* 缓慢淡入 */
.detail-shell.anim-fade-slow .section-panel {
  animation: fadeSlowIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes fadeSlowIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 左侧滑入 */
.detail-shell.anim-slide-left .section-panel {
  animation: slideLeftIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes slideLeftIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 右侧滑入 */
.detail-shell.anim-slide-right .section-panel {
  animation: slideRightIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes slideRightIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 上方滑入 */
.detail-shell.anim-slide-up .section-panel {
  animation: slideUpIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 下方滑入 */
.detail-shell.anim-slide-down .section-panel {
  animation: slideDownIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes slideDownIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 故障闪入 */
.detail-shell.anim-glitch-in .section-panel {
  animation: glitchIn 0.4s steps(4) both;
}
@keyframes glitchIn {
  0% { opacity: 0; transform: translate(-3px, 2px) skewX(-2deg); }
  25% { opacity: 0.5; transform: translate(2px, -1px) skewX(1deg); }
  50% { opacity: 0.8; transform: translate(-1px, 1px) skewX(-0.5deg); }
  75% { opacity: 0.9; transform: translate(1px, 0) skewX(0.2deg); }
  100% { opacity: 1; transform: none; }
}

/* 扫描线效果 */
.detail-shell.anim-scan-line .section-panel {
  animation: scanLineIn 0.6s ease-out both;
}
@keyframes scanLineIn {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* 打字机效果 */
.detail-shell.anim-type-in .detail-hero h1 {
  overflow: hidden;
  white-space: nowrap;
  animation: typeIn 1.2s steps(20) both;
}
@keyframes typeIn {
  from { width: 0; }
  to { width: 100%; }
}

/* 缩放进入 */
.detail-shell.anim-scale-up .section-panel {
  animation: scaleUpIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes scaleUpIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 微缩放 */
.detail-shell.anim-scale-subtle .section-panel {
  animation: scaleSubtleIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes scaleSubtleIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* 轻柔淡入 */
.detail-shell.anim-fade-gentle .section-panel {
  animation: fadeGentleIn 0.6s ease-out both;
}
@keyframes fadeGentleIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 上浮 */
.detail-shell.anim-float-up .section-panel {
  animation: floatUpIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes floatUpIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 机械感 */
.detail-shell.anim-mechanical .section-panel {
  animation: mechanicalIn 0.3s cubic-bezier(0.77, 0, 0.175, 1) both;
}
@keyframes mechanicalIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 盖章效果 */
.detail-shell.anim-stamp .section-panel {
  animation: stampIn 0.25s cubic-bezier(0.77, 0, 0.175, 1) both;
}
@keyframes stampIn {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

/* 揭示 */
.detail-shell.anim-reveal .section-panel {
  animation: revealIn 0.6s ease-out both;
}
@keyframes revealIn {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* 横扫 */
.detail-shell.anim-sweep .section-panel {
  animation: sweepIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes sweepIn {
  from { opacity: 0; transform: translateX(-30px) skewX(-2deg); }
  to { opacity: 1; transform: translateX(0) skewX(0); }
}

/* 闪烁 */
.detail-shell.anim-flicker .section-panel {
  animation: flickerIn 0.5s steps(3) both;
}
@keyframes flickerIn {
  0% { opacity: 0; }
  33% { opacity: 0.7; }
  66% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* 震动 */
.detail-shell.anim-shake .section-panel {
  animation: shakeIn 0.4s ease-out both;
}
@keyframes shakeIn {
  0% { opacity: 0; transform: translateX(-4px); }
  25% { transform: translateX(3px); }
  50% { transform: translateX(-2px); }
  75% { opacity: 1; transform: translateX(1px); }
  100% { transform: translateX(0); }
}

/* 冷淡淡入 */
.detail-shell.anim-fade-cold .section-panel {
  animation: fadeColdIn 0.7s ease-out both;
  filter: brightness(0.95);
}
@keyframes fadeColdIn {
  from { opacity: 0; filter: brightness(0.7) saturate(0.5); }
  to { opacity: 1; filter: brightness(0.95) saturate(1); }
}

/* 温暖淡入 */
.detail-shell.anim-fade-warm .section-panel {
  animation: fadeWarmIn 0.7s ease-out both;
}
@keyframes fadeWarmIn {
  from { opacity: 0; filter: brightness(1.1) saturate(0.8); }
  to { opacity: 1; filter: brightness(1) saturate(1); }
}

/* 弹跳 */
.detail-shell.anim-bounce .section-panel {
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes bounceIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 猛击 */
.detail-shell.anim-slam .section-panel {
  animation: slamIn 0.3s cubic-bezier(0.77, 0, 0.175, 1) both;
}
@keyframes slamIn {
  from { opacity: 0; transform: scale(1.15) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 对角线滑入 */
.detail-shell.anim-slide-diagonal .section-panel {
  animation: slideDiagIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes slideDiagIn {
  from { opacity: 0; transform: translate(-12px, 12px); }
  to { opacity: 1; transform: translate(0, 0); }
}

/* 爬行 */
.detail-shell.anim-crawl .section-panel {
  animation: crawlIn 1s ease-out both;
}
@keyframes crawlIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 粗糙滑入 */
.detail-shell.anim-slide-rough .section-panel {
  animation: slideRoughIn 0.4s steps(6) both;
}
@keyframes slideRoughIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 生长 */
.detail-shell.anim-grow .section-panel {
  animation: growIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes growIn {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 像素进入 */
.detail-shell.anim-pixel-in .section-panel {
  animation: pixelIn 0.4s steps(4) both;
}
@keyframes pixelIn {
  from { opacity: 0; image-rendering: pixelated; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* 脉冲 */
.detail-shell.anim-pulse .section-panel {
  animation: pulseIn 0.6s ease-out both;
}
@keyframes pulseIn {
  0% { opacity: 0; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* 变形 */
.detail-shell.anim-morph .section-panel {
  animation: morphIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes morphIn {
  from { opacity: 0; border-radius: 32px; transform: scale(0.95); }
  to { opacity: 1; border-radius: var(--t-border-radius); transform: scale(1); }
}

/* 尘土飞扬 */
.detail-shell.anim-dust-in .section-panel {
  animation: dustIn 0.6s ease-out both;
}
@keyframes dustIn {
  from { opacity: 0; filter: blur(2px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* 翻转 */
.detail-shell.anim-flip .section-panel {
  animation: flipIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
  perspective: 1000px;
}
@keyframes flipIn {
  from { opacity: 0; transform: rotateX(-5deg); }
  to { opacity: 1; transform: rotateX(0); }
}

/* 级联延迟 */
.detail-shell[class*="anim-"] .section-panel:nth-child(1) { animation-delay: 0ms; }
.detail-shell[class*="anim-"] .section-panel:nth-child(2) { animation-delay: 60ms; }
.detail-shell[class*="anim-"] .section-panel:nth-child(3) { animation-delay: 120ms; }
.detail-shell[class*="anim-"] .section-panel:nth-child(4) { animation-delay: 180ms; }
.detail-shell[class*="anim-"] .section-panel:nth-child(5) { animation-delay: 240ms; }
.detail-shell[class*="anim-"] .section-panel:nth-child(6) { animation-delay: 300ms; }
.detail-shell[class*="anim-"] .section-panel:nth-child(7) { animation-delay: 360ms; }


/* ===== DECORATION STYLES ===== */

/* 渐变线 */
.detail-shell.decor-gradient-line .section-panel {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--t-primary), var(--t-accent)) 1;
}

/* 细强调线 */
.detail-shell.decor-thin-accent .section-panel {
  border-top: 1px solid var(--t-accent);
}

/* 深阴影 */
.detail-shell.decor-shadow-deep .section-panel {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
}

/* 霓虹边框 */
.detail-shell.decor-neon-border .section-panel {
  border: 1px solid var(--t-accent);
  box-shadow: 0 0 8px color-mix(in oklch, var(--t-accent) 30%, transparent),
              inset 0 0 8px color-mix(in oklch, var(--t-accent) 10%, transparent);
}

/* 扫描线 */
.detail-shell.decor-scan-line .section-panel {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    color-mix(in oklch, var(--t-line) 10%, transparent) 2px,
    color-mix(in oklch, var(--t-line) 10%, transparent) 4px
  );
}

/* 像素边框 */
.detail-shell.decor-pixel-border .section-panel {
  border: 2px solid var(--t-line);
  box-shadow: 2px 2px 0 var(--t-line), -2px -2px 0 var(--t-line);
}

/* 像素边缘 */
.detail-shell.decor-pixel-edge .section-panel {
  border: 1px solid var(--t-accent);
  image-rendering: pixelated;
}

/* 华丽线条 */
.detail-shell.decor-ornate-line .section-panel {
  border-top: 1px solid var(--t-line);
  position: relative;
}
.detail-shell.decor-ornate-line .section-panel::before {
  content: "◆";
  position: absolute;
  top: -0.6em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--t-primary);
  background: var(--t-surface);
  padding: 0 8px;
  font-size: 0.8rem;
}

/* 双边框 */
.detail-shell.decor-double-border .section-panel {
  border: 3px double var(--t-line);
}

/* 金色渐变 */
.detail-shell.decor-gradient-gold .section-panel {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #b8860b, #ffd700, #b8860b) 1;
}

/* 发丝线 */
.detail-shell.decor-hairline .section-panel {
  border-top: 0.5px solid var(--t-line);
}

/* 点分隔 */
.detail-shell.decor-dot-separator .section-panel {
  border-top: none;
  position: relative;
}
.detail-shell.decor-dot-separator .section-panel::before {
  content: "· · ·";
  display: block;
  grid-column: 1 / -1; /* 模块归一化:横跨整行,否则会变成多出的 grid 子项把 copy/media 两列挤乱 */
  text-align: center;
  color: var(--t-muted);
  margin-bottom: 16px;
  letter-spacing: 0.5em;
}

/* 技术边框 */
.detail-shell.decor-tech-border .section-panel {
  border: 1px solid var(--t-line);
  position: relative;
}
.detail-shell.decor-tech-border .section-panel::before,
.detail-shell.decor-tech-border .section-panel::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--t-accent);
}
.detail-shell.decor-tech-border .section-panel::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.detail-shell.decor-tech-border .section-panel::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* 铆钉线 */
.detail-shell.decor-rivet-line .section-panel {
  border-top: 2px solid var(--t-line);
  position: relative;
}
.detail-shell.decor-rivet-line .section-panel::before {
  content: "⚙ ⚙ ⚙";
  position: absolute;
  top: -0.7em;
  left: 16px;
  font-size: 0.6rem;
  color: var(--t-muted);
  background: var(--t-surface, var(--surface));
  padding: 0 4px;
}

/* 警告条纹 */
.detail-shell.decor-warning-stripe .section-panel {
  border-top: 4px solid transparent;
  border-image: repeating-linear-gradient(
    -45deg,
    var(--t-accent),
    var(--t-accent) 8px,
    transparent 8px,
    transparent 16px
  ) 4;
}

/* 撕裂边缘 */
.detail-shell.decor-torn-edge .section-panel {
  border-top: none;
  clip-path: polygon(0 4px, 2% 0, 4% 3px, 6% 1px, 8% 4px, 10% 0, 12% 3px, 14% 1px, 16% 4px, 18% 0, 20% 2px, 100% 0, 100% 100%, 0 100%);
  padding-top: 20px;
}

/* 喷漆线 */
.detail-shell.decor-spray-line .section-panel {
  border-top: 3px solid var(--t-accent);
  border-top-style: dotted;
}

/* 原始边框 */
.detail-shell.decor-raw-border .section-panel {
  border: 2px solid var(--t-ink);
}

/* 铁丝网线 */
.detail-shell.decor-barbed-line .section-panel {
  border-top: 2px solid var(--t-line);
  border-top-style: dashed;
}

/* 印章边框 */
.detail-shell.decor-stamp-border .section-panel {
  border: 2px solid var(--t-primary);
  border-style: double;
}

/* 删除线/涂黑 */
.detail-shell.decor-redacted .section-panel h2 {
  position: relative;
}

/* 军衔条纹 */
.detail-shell.decor-rank-stripe .section-panel {
  border-left: 4px solid var(--t-primary);
  border-left-style: double;
}

/* 模板线 */
.detail-shell.decor-stencil-line .section-panel {
  border-top: 2px dashed var(--t-line);
}

/* 迷彩边框 */
.detail-shell.decor-camo-border .section-panel {
  border: 2px solid var(--t-line);
  border-radius: 0;
}

/* 半色调 */
.detail-shell.decor-halftone .section-panel {
  background-image: radial-gradient(circle, var(--t-line) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* 柔和阴影 */
.detail-shell.decor-soft-shadow .section-panel {
  box-shadow: 0 4px 20px color-mix(in oklch, var(--t-primary) 8%, transparent);
}

/* 微妙渐变 */
.detail-shell.decor-gradient-subtle .section-panel {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--t-line), transparent) 1;
}

/* 模糊边缘 */
.detail-shell.decor-blur-edge .section-panel {
  box-shadow: 0 0 20px color-mix(in oklch, var(--t-primary) 10%, transparent);
}

/* 温暖光晕 */
.detail-shell.decor-warm-glow .section-panel {
  box-shadow: 0 0 24px color-mix(in oklch, var(--t-accent) 12%, transparent);
}

/* 漫画边框 */
.detail-shell.decor-comic-border .section-panel {
  border: 3px solid var(--t-ink);
  border-radius: 4px;
}

/* 能量线 */
.detail-shell.decor-energy-line .section-panel {
  border-top: 2px solid var(--t-accent);
  box-shadow: 0 -2px 8px color-mix(in oklch, var(--t-accent) 30%, transparent);
}

/* 大胆条纹 */
.detail-shell.decor-bold-stripe .section-panel {
  border-left: 6px solid var(--t-primary);
}

/* 霓虹光晕 */
.detail-shell.decor-neon-glow .section-panel {
  box-shadow: 0 0 12px color-mix(in oklch, var(--t-accent) 20%, transparent),
              0 0 4px color-mix(in oklch, var(--t-accent) 40%, transparent);
}

/* 等级条 */
.detail-shell.decor-level-bar .section-panel {
  border-top: 3px solid var(--t-accent);
}

/* 彩虹渐变 */
.detail-shell.decor-gradient-rainbow .section-panel {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff) 1;
}

/* 波浪边框 */
.detail-shell.decor-wave-border .section-panel {
  border-top: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='8'%3E%3Cpath d='M0 4 Q25 0 50 4 T100 4' stroke='rgba(255,255,255,0.1)' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: top;
  background-size: 100px 8px;
  padding-top: 20px;
}

/* 柔和线 */
.detail-shell.decor-soft-line .section-panel {
  border-top: 1px solid color-mix(in oklch, var(--t-line) 50%, transparent);
}

/* 有机曲线 */
.detail-shell.decor-organic-curve .section-panel {
  border-top: 2px solid var(--t-line);
  border-radius: 0 0 20px 20px;
}

/* 裂缝边框 */
.detail-shell.decor-crack-border .section-panel {
  border: 1px solid var(--t-line);
  border-style: ridge;
}

/* 雾气边缘 */
.detail-shell.decor-fog-edge .section-panel {
  box-shadow: 0 0 30px color-mix(in oklch, var(--t-surface) 60%, transparent);
}

/* 锈蚀线 */
.detail-shell.decor-rust-line .section-panel {
  border-top: 2px solid;
  border-image: linear-gradient(90deg, #8b4513, #a0522d, #8b4513, #654321) 1;
}

/* 链条边框 */
.detail-shell.decor-chain-border .section-panel {
  border: 2px solid var(--t-line);
  border-style: groove;
}

/* 藤蔓线 */
.detail-shell.decor-vine-line .section-panel {
  border-top: 1px solid var(--t-accent);
  position: relative;
}
.detail-shell.decor-vine-line .section-panel::before {
  content: "❋";
  position: absolute;
  top: -0.5em;
  left: 24px;
  color: var(--t-accent);
  font-size: 0.8rem;
  background: var(--t-surface, var(--surface));
  padding: 0 4px;
}

/* 叶子边框 */
.detail-shell.decor-leaf-border .section-panel {
  border-radius: 0 16px 0 16px;
  border: 1px solid var(--t-accent);
}

/* 复古边框 */
.detail-shell.decor-retro-border .section-panel {
  border: 2px solid var(--t-line);
  box-shadow: 3px 3px 0 var(--t-line);
}

/* 虚线趣味 */
.detail-shell.decor-dashed-fun .section-panel {
  border: 2px dashed var(--t-accent);
}

/* 血线 */
.detail-shell.decor-blood-line .section-panel {
  border-top: 2px solid;
  border-image: linear-gradient(90deg, transparent, #8b0000, #ff0000, #8b0000, transparent) 1;
}


/* ===== TITLE STYLES ===== */

/* 大号斜体 */
.detail-shell.title-large-italic .detail-hero h1 {
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

/* 紧缩字体 */
.detail-shell.title-condensed .detail-hero h1 {
  letter-spacing: -0.02em;
  font-stretch: condensed;
}

/* 大写间距 */
.detail-shell.title-uppercase-spaced .detail-hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.5rem, 4vw, 3rem);
}

/* 等宽发光 */
.detail-shell.title-mono-glow .detail-hero h1 {
  font-family: 'Share Tech Mono', monospace;
  text-shadow: 0 0 20px var(--t-primary), 0 0 40px color-mix(in oklch, var(--t-primary) 30%, transparent);
}

/* 大号粗体 */
.detail-shell.title-large-bold .detail-hero h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

/* 故障文字 */
.detail-shell.title-glitch-text .detail-hero h1 {
  text-shadow: 2px 0 var(--t-accent), -2px 0 var(--t-primary);
}

/* 衬线宏大 */
.detail-shell.title-serif-grand .detail-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.03em;
}

/* 居中大号 */
.detail-shell.title-centered-large .detail-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); /* 模块归一化:hero 标题对齐随默认(左)=002,移除 text-align:center */
}

/* 首字下沉 */
.detail-shell.title-drop-cap .section-panel p:first-of-type::first-letter {
  font-size: 3em;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  color: var(--t-primary);
  font-weight: bold;
}

/* 细大号 */
.detail-shell.title-thin-large .detail-hero h1 {
  font-weight: 200;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

/* 居中轻量 */
.detail-shell.title-centered-light .detail-hero h1 {
  font-weight: 300; /* 模块归一化:hero 标题对齐随默认(左)=002,移除 text-align:center */
}

/* 极简无衬线 */
.detail-shell.title-minimal-sans .detail-hero h1 {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* 模板字体 */
.detail-shell.title-stencil .detail-hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

/* 大写粗体 */
.detail-shell.title-uppercase-bold .detail-hero h1 {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 紧缩重体 */
.detail-shell.title-condensed-heavy .detail-hero h1 {
  font-stretch: condensed;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.5rem);
}

/* 手绘感 */
.detail-shell.title-hand-drawn .detail-hero h1 {
  font-family: 'Permanent Marker', cursive;
  transform: rotate(-1deg);
}

/* 扭曲 */
.detail-shell.title-distorted .detail-hero h1 {
  transform: skewX(-3deg);
  text-shadow: 2px 2px 0 var(--t-line);
}

/* 超大号 */
.detail-shell.title-oversized .detail-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
}

/* 块状大写 */
.detail-shell.title-block-caps .detail-hero h1 {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

/* 衬线重体 */
.detail-shell.title-serif-heavy .detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
}

/* 盖章感 */
.detail-shell.title-stamped .detail-hero h1 {
  text-transform: uppercase;
  border: 3px solid var(--t-primary);
  display: inline-block;
  padding: 4px 16px;
  transform: rotate(-2deg);
}

/* 无衬线中等 */
.detail-shell.title-sans-medium .detail-hero h1 {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* 像素字体 */
.detail-shell.title-pixel-font .detail-hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 2rem);
  line-height: 1.4;
}

/* 游戏标题 */
.detail-shell.title-game-title .detail-hero h1 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  text-shadow: 0 2px 8px color-mix(in oklch, var(--t-primary) 40%, transparent);
}

/* 发光文字 */
.detail-shell.title-glow-text .detail-hero h1 {
  text-shadow: 0 0 10px var(--t-primary), 0 0 20px var(--t-primary), 0 0 40px color-mix(in oklch, var(--t-primary) 50%, transparent);
}

/* 波浪 */
.detail-shell.title-wavy .detail-hero h1 {
  font-style: italic;
  letter-spacing: 0.05em;
}

/* 手写体 */
.detail-shell.title-handwritten .detail-hero h1 {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
}

/* 衬线温暖 */
.detail-shell.title-serif-warm .detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
}

/* 漫画粗体 */
.detail-shell.title-comic-bold .detail-hero h1 {
  font-weight: 900;
  text-shadow: 3px 3px 0 var(--t-ink);
  letter-spacing: 0.02em;
}

/* 冲击力 */
.detail-shell.title-impact .detail-hero h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

/* 动态角度 */
.detail-shell.title-dynamic-angle .detail-hero h1 {
  transform: rotate(-2deg) skewX(-2deg);
  font-weight: 800;
}

/* 霓虹标志 */
.detail-shell.title-neon-sign .detail-hero h1 {
  text-shadow: 0 0 8px var(--t-primary), 0 0 16px var(--t-primary), 0 0 32px color-mix(in oklch, var(--t-primary) 40%, transparent);
  font-weight: 300;
}

/* 渐变文字 */
.detail-shell.title-gradient-text .detail-hero h1 {
  background: linear-gradient(135deg, var(--t-primary), var(--t-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 复古展示 */
.detail-shell.title-retro-display .detail-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

/* 恐怖衬线 */
.detail-shell.title-horror-serif .detail-hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 刮痕 */
.detail-shell.title-scratched .detail-hero h1 {
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklch, var(--t-accent) 40%, transparent);
  text-decoration-thickness: 2px;
}

/* 滴落文字 */
.detail-shell.title-drip-text .detail-hero h1 {
  text-shadow: 0 4px 2px color-mix(in oklch, var(--t-primary) 40%, transparent);
}

/* 居中优雅 */
.detail-shell.title-centered-elegant .detail-hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  letter-spacing: 0.05em; /* 模块归一化:hero 标题对齐随默认(左)=002,移除 text-align:center */
}

/* 自然衬线 */
.detail-shell.title-serif-natural .detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

/* 流动 */
.detail-shell.title-flowing .detail-hero h1 {
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* 磨损模板 */
.detail-shell.title-stencil-worn .detail-hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  text-shadow: 1px 1px 0 var(--t-line);
}

/* 磨损 */
.detail-shell.title-distressed .detail-hero h1 {
  text-shadow: 1px 0 0 var(--t-line), -1px 0 0 var(--t-line);
  opacity: 0.95;
}

/* 超大粗糙 */
.detail-shell.title-oversized-rough .detail-hero h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
}

/* 超大轻量 */
.detail-shell.title-oversized-light .detail-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 200;
  line-height: 0.9;
}

/* 粗斜体 */
.detail-shell.title-bold-italic .detail-hero h1 {
  font-weight: 800;
  font-style: italic;
}


/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .detail-shell[class*="anim-"] .section-panel {
    animation: none !important;
  }
}
