/* 91-os.forum · 午夜院线官方站 · 深靛蓝绯红风格 */
:root {
  --bg-void: #030308;
  --bg-panel: #0a0a14;
  --bg-card: #10101c;
  --bg-card-hover: #161628;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(56, 189, 248, 0.22);
  --text: #ececf4;
  --text-soft: #9898b0;
  --text-dim: #5c5c74;
  --crimson: #dc2626;
  --crimson-soft: rgba(220, 38, 38, 0.14);
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.12);
  --amber: #f97316;
  --gradient-brand: linear-gradient(135deg, #dc2626 0%, #b91c1c 55%, #7f1d1d 100%);
  --gradient-hero: linear-gradient(175deg, rgba(56, 189, 248, 0.06) 0%, transparent 40%, rgba(220, 38, 38, 0.05) 100%);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-phone: 0 32px 90px rgba(0, 0, 0, 0.65);
  --nav-h: 56px;
  --adsbar-h-active: 92px;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: Georgia, "Songti SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-void);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
body.ads-sticky-on { padding-top: calc(var(--nav-h) + var(--adsbar-h-active)); }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 92% 5%, var(--crimson-soft), transparent),
    radial-gradient(ellipse 45% 30% at 5% 95%, var(--cyan-soft), transparent);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #7dd3fc; }
ul { list-style: none; }

.container {
  width: min(100% - 28px, var(--max-w));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ===== 顶栏 ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  height: var(--nav-h);
  background: rgba(3, 3, 8, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.site-logo img { height: 34px; width: auto; border-radius: 9px; }
.site-logo em { color: var(--crimson); font-style: normal; }
.nav-links { display: none; gap: 2px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--cyan-soft);
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open i:nth-child(2) { opacity: 0; }
.hamburger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 16px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1290;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-soft);
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.mobile-nav a:hover { background: var(--cyan-soft); color: var(--text); }

/* ===== 广告区 ===== */
.download-banner {
  padding: 14px 0 10px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.download-banner-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
}
#ads > div,
#ads-sticky-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 4px);
  min-width: 72px;
  box-sizing: border-box;
}
#ads img,
#ads-sticky-inner img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid var(--border);
}
#ads a,
#ads-sticky-inner a { display: inline-block; border-radius: 14px; text-decoration: none; }
#ads img:hover,
#ads-sticky-inner img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.2);
}
#ads figcaption,
#ads .caption,
#ads-sticky-inner figcaption,
#ads-sticky-inner .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.ads-sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1250;
  background: rgba(10, 10, 20, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s, opacity 0.28s;
  pointer-events: none;
}
.ads-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#ads-sticky-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

@media (max-width: 767px) {
  #ads > div,
  #ads-sticky-inner > div { width: calc(25% - 4px); min-width: 68px; }
  #ads img,
  #ads-sticky-inner img { width: 58px; height: 58px; }
}

/* ===== Hero ===== */
.hero-film {
  position: relative;
  padding: 36px 0 48px;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero-film::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--crimson), var(--cyan), transparent);
}
.hero-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (max-width: 767px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-stack { order: -1; min-height: 380px; }
  .hero-text { order: 1; }
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-text h1 span { color: var(--crimson); }
.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hero-lead {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 20px;
  max-width: 540px;
}
.hero-lead strong { color: var(--text); font-weight: 600; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { color: #fff; opacity: 0.92; }
.btn-outline {
  display: inline-flex;
  padding: 11px 22px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 999px;
  font-size: 0.88rem;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--text); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hero-stack {
  position: relative;
  width: min(100%, 360px);
  min-height: 400px;
  margin-inline: auto;
}
.phone-frame {
  position: absolute;
  width: 50%;
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-phone);
  background: var(--bg-card);
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-frame:nth-child(1) { top: 0; left: 2%; z-index: 4; transform: rotate(-5deg); }
.phone-frame:nth-child(2) { top: 6%; right: 0; z-index: 3; transform: rotate(4deg); }
.phone-frame:nth-child(3) { bottom: 2%; left: 10%; z-index: 2; transform: rotate(-2deg); width: 44%; }
.phone-frame:nth-child(4) { bottom: 0; right: 6%; z-index: 1; transform: rotate(3deg); width: 42%; }

/* ===== 数据条 ===== */
.stat-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 22px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-grid strong {
  display: block;
  font-size: 1.35rem;
  color: var(--cyan);
  font-weight: 700;
}
.stat-grid span { font-size: 0.8rem; color: var(--text-dim); }

/* ===== 通用区块 ===== */
.block { padding: 52px 0; }
.block-alt { background: var(--bg-panel); }
.block-head { margin-bottom: 36px; max-width: 680px; }
.block-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}
.block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin-bottom: 12px;
  line-height: 1.35;
}
.block-head p { color: var(--text-soft); font-size: 0.94rem; }

/* 3:7 图文比例 - 文字占70%视觉权重 */
.content-flow { display: flex; flex-direction: column; gap: 40px; }
.article-row {
  display: grid;
  gap: 24px;
  align-items: start;
}
.article-row .article-body { flex: 7; }
.article-row .article-visual {
  flex: 3;
  max-width: 280px;
  margin-inline: auto;
}
.article-row .article-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-deep);
}
.article-body h3 {
  font-size: 1.12rem;
  margin-bottom: 12px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--crimson);
}
.article-body p {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 0.93rem;
}
.article-body ul { margin: 12px 0; }
.article-body li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.article-body li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* 功能卡片 */
.feature-deck {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.feature-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-tile:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}
.feature-tile h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-tile h4::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--crimson);
  border-radius: 50%;
}
.feature-tile p { font-size: 0.86rem; color: var(--text-dim); line-height: 1.7; }

/* 频道矩阵 */
.channel-matrix {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.channel-cell {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.channel-cell h5 { font-size: 0.88rem; margin-bottom: 6px; color: var(--cyan); }
.channel-cell p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.65; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: "+"; color: var(--cyan); font-size: 1.2rem; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}
.faq-a-inner {
  padding: 0 18px 16px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* 内链条 */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.internal-links a {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.internal-links a:hover { border-color: var(--cyan); color: var(--cyan); }

/* 纯文案 SEO 模块 */
.seo-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.seo-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--text);
}
.seo-panel p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.seo-panel p:last-child { margin-bottom: 0; }
.seo-columns {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.seo-col {
  padding: 18px;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.seo-col h4 {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 8px;
}
.seo-col p { font-size: 0.84rem; color: var(--text-dim); margin: 0; line-height: 1.75; }

/* ===== 子页面 ===== */
.page-banner {
  padding: 28px 0 32px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.4; }
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 8px;
}
.page-banner p { color: var(--text-soft); font-size: 0.92rem; }

.prose {
  padding: 36px 0 56px;
  max-width: 760px;
}
.prose h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-top: 10px;
  max-width: 320px;
}
.footer-nav h6 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.footer-nav a {
  display: block;
  color: var(--text-soft);
  font-size: 0.86rem;
  padding: 4px 0;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* ===== 错误页 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}
.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--crimson);
  line-height: 1;
  opacity: 0.85;
}
.error-page h1 { font-size: 1.3rem; margin: 16px 0 10px; }
.error-page p { color: var(--text-soft); margin-bottom: 20px; font-size: 0.92rem; }

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .hero-stack { min-height: 460px; max-width: 400px; margin-inline: 0 0 0 auto; }
  .seo-columns { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .article-row {
    grid-template-columns: 7fr 3fr;
    gap: 32px;
  }
  .article-row.reverse { direction: rtl; }
  .article-row.reverse > * { direction: ltr; }
  .feature-deck { grid-template-columns: repeat(2, 1fr); }
  .channel-matrix { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .feature-deck { grid-template-columns: repeat(3, 1fr); }
}
