/* =========================================
   黄果短剧免费 - 全局样式
   ========================================= */
:root {
  --bg-dark: #0e0d13;
  --bg-card: #17151f;
  --bg-card-hover: #1f1c2b;
  --gold: #f5b301;
  --gold-light: #ffd34d;
  --gold-deep: #d98e00;
  --text-main: #f4f1ea;
  --text-muted: #a9a4b8;
  --line: rgba(245, 179, 1, 0.18);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --maxw: 1200px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(14, 13, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}

.navbar {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  color: #1a1405;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(245, 179, 1, 0.35);
}
.brand span em { color: var(--gold); font-style: normal; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color .25s, background .25s;
}
.nav-menu a:hover { color: var(--gold-light); background: rgba(245,179,1,.08); }
.nav-menu a.active { color: #1a1405; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--gold); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(245,179,1,.16), transparent 60%),
    radial-gradient(700px 480px at 10% 90%, rgba(217,142,0,.12), transparent 60%),
    var(--bg-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(245,179,1,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: .85rem;
  margin-bottom: 22px;
  background: rgba(245,179,1,.06);
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1405;
  box-shadow: 0 10px 30px rgba(245,179,1,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(245,179,1,.45); }
.btn-ghost { border-color: var(--line); color: var(--gold-light); background: rgba(245,179,1,.05); }
.btn-ghost:hover { background: rgba(245,179,1,.14); transform: translateY(-3px); }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.8rem; color: var(--gold); font-weight: 800; }
.hero-stats .stat span { color: var(--text-muted); font-size: .9rem; }

.hero-poster { position: relative; }
.hero-poster .poster-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(2deg);
  animation: floaty 6s ease-in-out infinite;
}
.hero-poster .badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1405;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(245,179,1,.35);
  transform: rotate(-3deg);
}
@keyframes floaty { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-14px); } }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(245,179,1,.035), transparent 60%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); }

/* ---------- 特性卡片 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(245,179,1,.4); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,179,1,.1);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .92rem; }

/* ---------- 短剧卡片 ---------- */
.drama-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.drama-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.drama-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(245,179,1,.35); }
.drama-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.drama-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.drama-card:hover .drama-cover img { transform: scale(1.08); }
.drama-cover .play-mask {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(10,9,14,.85));
  opacity: 0; transition: opacity .3s;
}
.drama-card:hover .play-mask { opacity: 1; }
.play-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(245,179,1,.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(245,179,1,.25);
}
.play-btn::after {
  content: "";
  border-left: 16px solid #1a1405;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.drama-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(14,13,19,.75);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.drama-info { padding: 18px; }
.drama-info h3 { font-size: 1.02rem; margin-bottom: 6px; }
.drama-info p { color: var(--text-muted); font-size: .85rem; }
.drama-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: .8rem; color: var(--text-muted); }
.drama-meta b { color: var(--gold); font-weight: 600; }

/* ---------- 服务介绍 ---------- */
.services-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.services-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.service-list { display: flex; flex-direction: column; gap: 22px; }
.service-item { display: flex; gap: 18px; }
.service-num {
  flex: 0 0 46px; height: 46px;
  border-radius: 12px;
  background: rgba(245,179,1,.1);
  color: var(--gold);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.service-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.service-item p { color: var(--text-muted); font-size: .92rem; }

/* ---------- 分类筛选 ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .92rem;
  transition: all .25s;
}
.filter-btn:hover { color: var(--gold-light); }
.filter-btn.active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1405; border-color: transparent; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 26px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-main);
  font-size: 1rem; font-weight: 600;
  text-align: left;
  font-family: inherit;
}
.faq-q .arrow { color: var(--gold); transition: transform .3s; flex: 0 0 auto; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p { padding: 0 26px 22px; color: var(--text-muted); font-size: .93rem; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative;
  border-radius: 26px;
  padding: 72px 40px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(245,179,1,.22), transparent 65%),
    var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-box p { color: var(--text-muted); max-width: 560px; margin: 0 auto 34px; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-date { color: var(--gold); font-size: .8rem; margin-bottom: 8px; }
.news-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.5; }
.news-body p { color: var(--text-muted); font-size: .9rem; flex: 1; }
.news-more { margin-top: 16px; color: var(--gold-light); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.news-more:hover { gap: 10px; }
.news-more { transition: gap .25s; }

/* 新闻详情 */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-head { margin-bottom: 36px; }
.article-head .crumb { color: var(--text-muted); font-size: .85rem; margin-bottom: 14px; }
.article-head .crumb a:hover { color: var(--gold-light); }
.article-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.4; margin-bottom: 14px; }
.article-meta { color: var(--text-muted); font-size: .85rem; display: flex; gap: 22px; flex-wrap: wrap; }
.article-cover { border-radius: 18px; overflow: hidden; margin-bottom: 36px; border: 1px solid var(--line); }
.article-body h2 { font-size: 1.35rem; margin: 38px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }
.article-body h3 { font-size: 1.1rem; margin: 28px 0 12px; color: var(--gold-light); }
.article-body p { color: #d7d3e2; margin-bottom: 16px; }
.article-body ul { margin: 0 0 16px 22px; color: #d7d3e2; list-style: disc; }
.article-body ul li { margin-bottom: 8px; }

/* ---------- 页面横幅（内页） ---------- */
.page-banner {
  padding: calc(var(--header-h) + 80px) 0 70px;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(245,179,1,.18), transparent 65%),
    var(--bg-dark);
}
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-banner p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.page-banner .crumb { margin-top: 20px; color: var(--text-muted); font-size: .85rem; }
.page-banner .crumb a:hover { color: var(--gold-light); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 22px;
}
.value-card b { display: block; font-size: 2rem; color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.value-card span { color: var(--text-muted); font-size: .9rem; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), transparent); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-dark); border: 3px solid var(--gold);
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item h3 b { color: var(--gold); margin-right: 10px; }
.timeline-item p { color: var(--text-muted); font-size: .92rem; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--gold-light); }
.contact-info-card p { color: var(--text-muted); font-size: .93rem; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; margin-bottom: 8px; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14,13,19,.6);
  color: var(--text-main);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,179,1,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-tip { color: var(--text-muted); font-size: .8rem; margin-top: 14px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0a090f;
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 18px; color: var(--gold-light); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); font-size: .9rem; transition: color .25s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(23,21,31,.9);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 900;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); background: rgba(245,179,1,.15); }

/* ---------- 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .drama-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-poster { max-width: 420px; margin: 0 auto; }
  .services-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14,13,19,.97);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 13px 16px; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .cta-box { padding: 52px 24px; }
}
@media (max-width: 420px) {
  .drama-grid { grid-template-columns: 1fr; }
}

/* ---------- 无障碍与性能 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
::selection { background: rgba(245,179,1,.35); color: #fff; }
