/* 91PO 绛夜映像 — 独立视觉体系 v2 */
:root {
  --ink: #0a0806;
  --ink-soft: #14100c;
  --ink-card: #1a1410;
  --ink-raised: #221a14;
  --flame: #f05a1a;
  --flame-bright: #ff7a3d;
  --ember: #c43d5a;
  --gold: #c9a55c;
  --gold-dim: #8a7348;
  --cream: #f5ebe0;
  --cream-muted: #b8a898;
  --cream-dim: #7a6e62;
  --border-warm: rgba(240, 90, 26, 0.22);
  --border-gold: rgba(201, 165, 92, 0.18);
  --glow-flame: 0 0 80px rgba(240, 90, 26, 0.12);
  --gradient-flame: linear-gradient(135deg, var(--flame) 0%, var(--ember) 55%, #8b2252 100%);
  --gradient-night: linear-gradient(180deg, #1a0e08 0%, var(--ink) 40%, #0d0608 100%);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --nav-h: 60px;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--ink);
  color: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 85% 5%, rgba(240, 90, 26, 0.09), transparent),
    radial-gradient(ellipse 50% 35% at 5% 90%, rgba(196, 61, 90, 0.07), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--flame-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container {
  width: min(1080px, 91vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== 顶栏 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(10, 8, 6, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-warm);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1080px, 91vw);
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
}

.brand-link img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(240, 90, 26, 0.25);
}

.brand-link span {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a {
  color: var(--cream-muted);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--cream); }
.main-nav a.active::before {
  content: "◆";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  font-size: 6px;
  color: var(--flame);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== 粘性广告条 ===== */
.sticky-ads-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(14, 10, 8, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-warm);
  z-index: 999;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.sticky-ads-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-ads-bar .ads-wrap { padding: 7px 0; }

/* ===== 广告位 ===== */
.ads-section {
  padding-top: calc(var(--nav-h) + 12px);
  position: relative;
  z-index: 1;
}
.ads-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px 3px;
  margin: 8px 0;
}
.ads-wrap > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 4px);
  box-sizing: border-box;
}
.ads-wrap img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: 1px solid var(--border-warm);
  background: var(--ink-card);
}
.ads-wrap a { display: inline-block; border-radius: 14px; }
.ads-wrap img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(240, 90, 26, 0.3);
}
.ads-wrap .caption {
  height: 15px;
  font-size: 10px;
  color: var(--cream-dim);
  text-align: center;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .ads-wrap > div { width: calc(25% - 3px); }
  .ads-wrap img { width: 56px; height: 56px; }
}

/* ===== Hero 三图叠层 ===== */
.hero-cinema {
  padding: 36px 0 64px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero-cinema::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  opacity: 0.4;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  line-height: 1.38;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero-copy h1 .accent {
  display: block;
  margin-top: 6px;
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1rem;
  color: var(--cream-muted);
  margin-bottom: 22px;
  max-width: 460px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-pills span {
  padding: 5px 13px;
  border-radius: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-gold);
  background: rgba(201, 165, 92, 0.06);
  color: var(--gold);
}

.hero-stack {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-frame {
  position: absolute;
  width: 185px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glow-flame), 0 24px 48px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(240, 90, 26, 0.2);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hero-frame:nth-child(1) {
  transform: rotate(-14deg) translate(-95px, 20px);
  z-index: 1;
}
.hero-frame:nth-child(2) {
  transform: rotate(0deg) translateY(-30px);
  z-index: 3;
  width: 205px;
}
.hero-frame:nth-child(3) {
  transform: rotate(12deg) translate(95px, 30px);
  z-index: 2;
}
.hero-stack:hover .hero-frame:nth-child(1) { transform: rotate(-16deg) translate(-105px, 12px); }
.hero-stack:hover .hero-frame:nth-child(2) { transform: rotate(0deg) translateY(-42px) scale(1.03); }
.hero-stack:hover .hero-frame:nth-child(3) { transform: rotate(14deg) translate(105px, 22px); }

/* ===== 数据条 ===== */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}
.metric-cell {
  background: var(--ink-card);
  padding: 22px 16px;
  text-align: center;
}
.metric-cell strong {
  display: block;
  font-family: "STSong", "Songti SC", serif;
  font-size: 1.5rem;
  color: var(--flame-bright);
  margin-bottom: 4px;
}
.metric-cell span {
  font-size: 0.78rem;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
}

/* ===== 区块通用 ===== */
.section { padding: 56px 0; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.section-h {
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 14px;
  line-height: 1.4;
}
.section-p {
  color: var(--cream-muted);
  max-width: 600px;
  margin-bottom: 36px;
  font-size: 0.93rem;
}

/* ===== 37 图文编排 ===== */
.editorial-row {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--ink-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
}
.editorial-row.flip { grid-template-columns: 3fr 7fr; }
.editorial-row.flip .editorial-text { order: 2; }
.editorial-row.flip .editorial-visual { order: 1; }
.editorial-text h3 {
  font-family: "STSong", "Songti SC", serif;
  font-size: 1.12rem;
  margin-bottom: 12px;
  color: var(--cream);
}
.editorial-text p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-align: justify;
}
.editorial-text ul {
  list-style: none;
  margin-top: 14px;
}
.editorial-text li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 0.86rem;
  color: var(--cream-muted);
}
.editorial-text li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--flame);
}
.editorial-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--glow-flame);
  aspect-ratio: 9/16;
  max-height: 340px;
}
.editorial-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===== 时间轴功能 ===== */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 36px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--flame), var(--ember), transparent);
}
.tl-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 12px rgba(240, 90, 26, 0.5);
}
.tl-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--cream);
}
.tl-item p {
  font-size: 0.88rem;
  color: var(--cream-muted);
  text-align: justify;
}

/* ===== 长文 SEO ===== */
.article-panel {
  background: var(--ink-soft);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  margin-bottom: 32px;
}
.article-panel h2 {
  font-family: "STSong", "Songti SC", serif;
  font-size: 1.28rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-warm);
  color: var(--cream);
}
.article-panel h3 {
  font-size: 1.02rem;
  margin: 22px 0 10px;
  color: var(--flame-bright);
}
.article-panel p {
  color: var(--cream-muted);
  font-size: 0.91rem;
  margin-bottom: 13px;
  text-align: justify;
}
.article-panel a { color: var(--gold); }

/* ===== SEO 双栏纯文案 ===== */
.seo-prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.seo-prose-block {
  background: var(--ink-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.seo-prose-block h3 {
  font-family: "STSong", "Songti SC", serif;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--cream);
}
.seo-prose-block p {
  color: var(--cream-muted);
  font-size: 0.88rem;
  margin-bottom: 11px;
  text-align: justify;
  line-height: 1.8;
}
.seo-prose-block a { color: var(--gold); }

/* ===== 功能展示条 ===== */
.showcase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.showcase-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  aspect-ratio: 9/14;
}
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}
.showcase-item:hover img { transform: scale(1.04); }

/* ===== 双栏图文 ===== */
.duo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.duo-block.mirror .duo-img { order: 2; }
.duo-block.mirror .duo-text { order: 1; }
.duo-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}
.duo-text h3 {
  font-family: "STSong", "Songti SC", serif;
  font-size: 1.18rem;
  margin-bottom: 12px;
}
.duo-text p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-align: justify;
}
.duo-text ul { list-style: none; }
.duo-text li {
  padding: 7px 0 7px 20px;
  position: relative;
  font-size: 0.87rem;
  color: var(--cream-muted);
}
.duo-text li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--flame);
}

/* ===== CTA ===== */
.cta-panel {
  text-align: center;
  padding: 52px 28px;
  background: var(--gradient-night);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  margin: 44px 0;
  position: relative;
  overflow: hidden;
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(240, 90, 26, 0.08), transparent 60%);
  pointer-events: none;
}
.cta-panel h2 {
  font-family: "STSong", "Songti SC", serif;
  font-size: 1.45rem;
  margin-bottom: 10px;
  position: relative;
}
.cta-panel p {
  color: var(--cream-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  position: relative;
}
.btn-flame {
  display: inline-block;
  padding: 13px 34px;
  background: var(--gradient-flame);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 6px;
  letter-spacing: 0.06em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(240, 90, 26, 0.35);
  position: relative;
}
.btn-flame:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(240, 90, 26, 0.45);
  color: #fff;
}

/* ===== FAQ ===== */
.faq-grid { max-width: 780px; }
.faq-entry {
  border-bottom: 1px solid var(--border-warm);
  padding: 18px 0;
}
.faq-entry h3 { font-size: 0.94rem; margin-bottom: 7px; color: var(--cream); }
.faq-entry p { font-size: 0.87rem; color: var(--cream-muted); }

/* ===== 子页面 ===== */
.breadcrumb {
  padding: 10px 0 0;
  font-size: 0.8rem;
  color: var(--cream-dim);
}
body.is-subpage .breadcrumb { padding-top: calc(var(--nav-h) + 14px); }
.breadcrumb a { color: var(--cream-muted); }
.breadcrumb span { color: var(--cream); }

.page-banner {
  padding: 28px 0 32px;
  text-align: center;
}
body.is-subpage .page-banner { padding-top: calc(var(--nav-h) + 36px); }
body.has-top-ads .page-banner { padding-top: 20px; }
.page-banner h1 {
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
  margin-bottom: 8px;
}
.page-banner p { color: var(--cream-muted); font-size: 0.9rem; }

.legal-body { padding: 20px 0 72px; }
.legal-body h2 {
  font-size: 1.1rem;
  margin: 28px 0 12px;
  color: var(--flame-bright);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 0.96rem; margin: 16px 0 8px; color: var(--gold); }
.legal-body p, .legal-body li {
  color: var(--cream-muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.85;
}
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 14px; }

/* ===== 错误页 ===== */
.error-wrap {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 20px 60px;
}
body.has-top-ads .error-wrap { padding-top: 32px; min-height: 50vh; }
.error-num {
  font-family: "STSong", "Songti SC", serif;
  font-size: 5.5rem;
  font-weight: 900;
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 14px;
}
.error-wrap h1 { font-size: 1.3rem; margin-bottom: 10px; }
.error-wrap p { color: var(--cream-muted); margin-bottom: 24px; max-width: 420px; font-size: 0.9rem; }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--border-warm);
  padding: 44px 0 28px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-about p {
  color: var(--cream-dim);
  font-size: 0.84rem;
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.7;
}
.footer-nav h4 {
  font-size: 0.82rem;
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.footer-nav a {
  display: block;
  color: var(--cream-dim);
  font-size: 0.82rem;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--flame-bright); }
.footer-end {
  padding-top: 20px;
  border-top: 1px solid var(--border-warm);
  text-align: center;
  font-size: 0.76rem;
  color: var(--cream-dim);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner, .duo-block, .footer-cols { grid-template-columns: 1fr; }
  .duo-block.mirror .duo-img, .duo-block.mirror .duo-text { order: unset; }
  .editorial-row, .editorial-row.flip { grid-template-columns: 1fr; }
  .editorial-row.flip .editorial-text, .editorial-row.flip .editorial-visual { order: unset; }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stack { height: 320px; margin-top: 16px; }
  .hero-frame { width: 145px; }
  .hero-frame:nth-child(2) { width: 165px; }
  .hero-frame:nth-child(1) { transform: rotate(-10deg) translate(-60px, 15px); }
  .hero-frame:nth-child(3) { transform: rotate(10deg) translate(60px, 20px); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 8, 6, 0.98);
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    border-bottom: 1px solid var(--border-warm);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .article-panel { padding: 26px 18px; }
  .seo-prose-grid { grid-template-columns: 1fr; }
  .showcase-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 40px 0; }
  .hero-cinema { padding: 28px 0 44px; }
}
