/*
  抖荫短视频 设计哲学：数码新海派电影刊物风。
  当前文件职责：定义深色电影刊物式版面、绛红金点缀、不对称信息流、强视频导向与高可读性排版。
  任何样式调整都应强化“专业影视品牌 + 活跃视频社区”的整体气质，而不是稀释它。
*/
:root {
  --bg: #0a0c10;
  --panel: rgba(18, 22, 29, 0.9);
  --panel-strong: #12161d;
  --panel-soft: #171c24;
  --text: #f5efe6;
  --muted: #b8b2a8;
  --line: rgba(230, 196, 140, 0.16);
  --gold: #d7b37a;
  --gold-soft: #a38255;
  --red: #b53d3d;
  --red-soft: #6d2424;
  --cyan: #86a7c9;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(181, 61, 61, 0.20), transparent 26%),
    radial-gradient(circle at left center, rgba(134, 167, 201, 0.10), transparent 28%),
    linear-gradient(180deg, #090b0f 0%, #0d1015 40%, #090b0f 100%);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
video { width: 100%; border-radius: 18px; background: #000; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(215, 179, 122, 0.26);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(215, 179, 122, 0.06);
}
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  color: var(--muted);
  font-size: 13px;
}
.topbar strong { color: var(--text); }
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0 14px;
}
.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.branding .mini-icon {
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}
.branding .wordmark {
  width: 170px;
}
.brand-copy h1,
.brand-copy h2,
.brand-copy h3,
.brand-copy h4,
.brand-copy h5,
.brand-copy h6 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
}
.brand-copy small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.main-nav a {
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.24s ease;
}
.main-nav a:hover,
.main-nav a.current {
  color: var(--text);
  border-color: rgba(215, 179, 122, 0.26);
  background: rgba(215, 179, 122, 0.08);
}
.search-ribbon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 18px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.92), rgba(11, 14, 20, 0.92));
  box-shadow: var(--shadow);
}
.search-ribbon label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.search-ribbon input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  background: transparent;
}
.btn,
button.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #d06b58);
  color: #fff6eb;
  box-shadow: 0 18px 36px rgba(181, 61, 61, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero {
  padding: 48px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(181, 61, 61, 0.16), rgba(13, 18, 26, 0.72)),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: var(--shadow);
}
.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -15% -15% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(215, 179, 122, 0.16);
  opacity: 0.4;
}
.hero-copy h1 {
  margin: 14px 0 16px;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.02em;
}
.hero-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 740px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.kpi {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.kpi strong { display: block; font-size: 24px; color: var(--gold); }
.hero-stage {
  display: grid;
  gap: 18px;
}
.hero-media,
.side-panel,
.section-panel,
.card,
.contact-photo,
.cta-banner,
.footer-grid > div {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 21, 28, 0.96), rgba(11, 14, 20, 0.96));
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-media {
  overflow: hidden;
}
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-video-wrap { padding: 18px; }
.meta-row,
.tag-row,
.stats-row,
.footer-links,
.logo-wall,
.keyword-cloud,
.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag,
.stat,
.logo-chip,
.keyword,
.share-chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 13px;
}
.section {
  padding: 24px 0 12px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.section-head h2,
.section-head h3,
.section-head h4,
.section-head h5,
.section-head h6 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}
.video-grid,
.feature-grid,
.expert-grid,
.review-grid,
.link-grid,
.page-grid,
.two-col {
  display: grid;
  gap: 18px;
}
.video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.expert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-grid { grid-template-columns: 280px 1fr; align-items: start; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-card,
.feature-card,
.expert-card,
.review-card,
.guide-card,
.link-card,
.sidebar-card,
.json-card,
.topic-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 21, 28, 0.96), rgba(11, 14, 20, 0.96));
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.video-card:hover,
.feature-card:hover,
.expert-card:hover,
.review-card:hover,
.guide-card:hover,
.link-card:hover { transform: translateY(-4px); border-color: rgba(215,179,122,0.26); }
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}
.video-card h3,
.video-card h4,
.video-card h5,
.video-card h6,
.feature-card h3,
.expert-card h3,
.review-card h3,
.guide-card h3,
.link-card h3,
.topic-card h3 {
  margin: 0 0 10px;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 22px;
  line-height: 1.35;
}
.video-card p,
.feature-card p,
.expert-card p,
.review-card p,
.guide-card p,
.link-card p,
.topic-card p,
.sidebar-card p,
.section-panel p,
.cta-banner p,
.footer-grid p,
.contact-list li,
.breadcrumb,
.caption {
  color: var(--muted);
}
.video-card .actions,
.expert-card .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.button-link.primary {
  background: linear-gradient(135deg, var(--red), #d06b58);
  color: #fff8ef;
  border-color: transparent;
}
.feature-card ul,
.contact-list,
.footer-list,
.topic-list {
  margin: 0;
  padding-left: 18px;
}
.hero-copy .button-row,
.cta-banner .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.topic-card ul { margin: 12px 0 0; padding-left: 18px; }
.topic-card li { margin: 6px 0; color: var(--muted); }
.media-slab {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
.media-slab img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 18px;
}
.quote {
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: rgba(215,179,122,0.05);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  padding: 14px 0 10px;
}
.breadcrumb span { color: var(--gold); }
.sidebar-card { position: sticky; top: 140px; }
.sidebar-card h2,
.sidebar-card h3,
.sidebar-card h4,
.sidebar-card h5,
.sidebar-card h6 { margin-top: 0; }
.json-card details,
.faq-list details {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  margin: 12px 0;
  background: rgba(255,255,255,0.02);
}
.json-card summary,
.faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
}
.json-card pre {
  margin: 0;
  padding: 0 16px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d7d0c4;
  font-size: 13px;
}
.faq-list .answer { padding: 0 16px 16px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: 24px; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.qr-card {
  padding: 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
}
.qr-card img {
  width: 100%;
  max-width: 160px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.95);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
  padding: 30px 0;
}
.footer-grid > div { padding: 20px; }
.footer-note {
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff8ef;
  background: rgba(181, 61, 61, 0.95);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.24s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 1080px) {
  .header-inner,
  .hero-grid,
  .media-slab,
  .contact-grid,
  .footer-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }
  .main-nav { justify-content: flex-start; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid,
  .expert-grid,
  .review-grid,
  .link-grid,
  .two-col,
  .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-card { position: relative; top: auto; }
}
@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .search-ribbon { grid-template-columns: 1fr; }
  .hero-copy { padding: 24px; }
  .kpis,
  .video-grid,
  .feature-grid,
  .expert-grid,
  .review-grid,
  .link-grid,
  .two-col,
  .qr-grid { grid-template-columns: 1fr; }
  .topbar-inner,
  .section-head,
  .footer-note { flex-direction: column; align-items: flex-start; }
}
