/* ============================================================
   我的女友景甜AI短剧 - 全站共享样式
   设计风格: 科幻浪漫 / 暗夜影院 / 紫粉渐变
   ============================================================ */

:root {
  --bg-deep: #0d0a1a;
  --bg-card: #171231;
  --bg-card-2: #1e1840;
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --accent: #ec4899;
  --accent-light: #f472b6;
  --gold: #fbbf24;
  --text-main: #f1eefc;
  --text-sub: #b3a9d9;
  --text-dim: #7d74a8;
  --border: rgba(139, 92, 246, 0.22);
  --gradient: linear-gradient(120deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-soft: linear-gradient(120deg, rgba(139,92,246,.16), rgba(236,72,153,.16));
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.35);
  --radius: 16px;
  --font-main: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 10, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(0,0,0,.45); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand .logo-badge {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
  flex: none;
}
.brand span.brand-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .95rem;
  color: var(--text-sub);
  transition: color .25s, background .25s;
}
.nav-menu a:hover { color: #fff; background: rgba(139,92,246,.18); }
.nav-menu a.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 16px rgba(236,72,153,.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(139,92,246,.28), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 75%, rgba(236,72,153,.22), transparent 60%),
    var(--bg-deep);
}
.hero-stars::before, .hero-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 65% 20%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 30% 90%, rgba(255,255,255,.4), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--accent-light);
  background: rgba(236,72,153,.08);
  margin-bottom: 20px;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .4; } }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-sub);
  font-size: 1.06rem;
  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 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 26px rgba(236,72,153,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(236,72,153,.55); }
.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(139,92,246,.15); transform: translateY(-3px); }

.hero-poster {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), var(--shadow-glow);
  animation: floaty 6s ease-in-out infinite;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,10,26,.85));
}
.hero-poster .poster-caption {
  position: absolute;
  left: 24px; bottom: 20px; right: 24px;
  z-index: 2;
}
.hero-poster .poster-caption strong { display: block; font-size: 1.15rem; }
.hero-poster .poster-caption small { color: var(--text-sub); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-size: 1.7rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .stat span { color: var(--text-dim); font-size: .9rem; }

/* ---------- 通用区块 ---------- */
section { padding: 88px 0; position: relative; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: 3px;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-sub); }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(236,72,153,.45); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.card:hover::before { opacity: 1; }

.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--text-sub); font-size: .95rem; }

/* ---------- 图片卡片 ---------- */
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.media-card:hover { transform: translateY(-8px); box-shadow: 0 22px 55px rgba(0,0,0,.5); }
.media-card .thumb { position: relative; overflow: hidden; }
.media-card .thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.media-card:hover .thumb img { transform: scale(1.07); }
.media-card .badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  background: var(--gradient);
  color: #fff;
}
.media-card .body { padding: 22px 24px 26px; }
.media-card .body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.media-card .body p { color: var(--text-sub); font-size: .92rem; margin-bottom: 14px; }
.media-card .meta { display: flex; justify-content: space-between; color: var(--text-dim); font-size: .82rem; }
.text-link { color: var(--accent-light); font-weight: 600; font-size: .92rem; }
.text-link:hover { color: #fff; }

/* ---------- 剧集列表 ---------- */
.episode-list { display: grid; gap: 18px; }
.episode-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .3s, transform .3s;
}
.episode-item:hover { border-color: rgba(236,72,153,.45); transform: translateX(6px); }
.episode-item img { width: 200px; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.episode-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.episode-item p { color: var(--text-sub); font-size: .9rem; }
.episode-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 10px;
}

/* ---------- 剧情详解 / 图文混排 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .img-wrap {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.split .img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.split p { color: var(--text-sub); margin-bottom: 14px; }
.check-list { margin-top: 18px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-sub); }
.check-list li::before {
  content: "✦";
  color: var(--accent);
  flex: none;
}

/* ---------- 时间线（幕后花絮） ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--accent);
  box-shadow: 0 0 14px rgba(236,72,153,.7);
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-item time { color: var(--gold); font-size: .85rem; display: block; margin-bottom: 6px; }
.timeline-item p { color: var(--text-sub); font-size: .93rem; }

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

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 55% 90% at 50% 0%, rgba(236,72,153,.28), transparent 65%),
    linear-gradient(160deg, #221a4d, #160f33);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-sub); max-width: 640px; margin: 0 auto 32px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0a0716;
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h4 { font-size: 1rem; margin-bottom: 18px; color: #fff; }
.footer-grid p, .footer-grid a { color: var(--text-dim); font-size: .9rem; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(139,92,246,.12);
  padding-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: .85rem;
}

/* ---------- 面包屑 & 内页头 ---------- */
.page-hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(ellipse 50% 70% at 30% 20%, rgba(139,92,246,.3), transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(236,72,153,.2), transparent 60%),
    var(--bg-deep);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-sub); max-width: 680px; margin: 0 auto; }
.breadcrumb { margin-top: 18px; color: var(--text-dim); font-size: .86rem; }
.breadcrumb a { color: var(--accent-light); }

/* ---------- 表单 ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: .92rem; color: var(--text-sub); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(13,10,26,.6);
  color: var(--text-main);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236,72,153,.18);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-tip { margin-top: 14px; font-size: .85rem; color: var(--text-dim); }

/* ---------- 联系信息卡 ---------- */
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px dashed rgba(139,92,246,.18); }
.info-item:last-child { border-bottom: none; }
.info-item .icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.info-item strong { display: block; margin-bottom: 4px; }
.info-item p { color: var(--text-sub); font-size: .9rem; }

/* ---------- 文章详情 ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-wrap .cover { border-radius: 20px; overflow: hidden; margin-bottom: 34px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.article-wrap .cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-meta { display: flex; gap: 18px; color: var(--text-dim); font-size: .86rem; margin-bottom: 22px; flex-wrap: wrap; }
.article-body h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.article-body h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.article-body p { color: var(--text-sub); margin-bottom: 14px; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--gradient-soft);
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: var(--text-main);
}
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.tag-row .tag {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-sub);
}

/* ---------- 价格/产品 ---------- */
.price-card { text-align: center; }
.price-card .price {
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 10px 0 4px;
}
.price-card .price small { font-size: 1rem; }
.price-card ul { text-align: left; margin: 22px 0 26px; display: grid; gap: 12px; }
.price-card ul li { color: var(--text-sub); font-size: .92rem; display: flex; gap: 10px; }
.price-card ul li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card.featured {
  border-color: rgba(236,72,153,.6);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.price-card .plan-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: .8rem;
}

/* ---------- 排行榜 ---------- */
.rank-list { display: grid; gap: 14px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  transition: border-color .3s;
}
.rank-item:hover { border-color: rgba(236,72,153,.45); }
.rank-no {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800;
  background: var(--bg-card-2);
  color: var(--text-sub);
}
.rank-item:nth-child(1) .rank-no, .rank-item:nth-child(2) .rank-no, .rank-item:nth-child(3) .rank-no {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236,72,153,.4);
}
.rank-item img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.rank-item .rank-info { flex: 1; min-width: 0; }
.rank-item .rank-info strong { display: block; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item .rank-info span { color: var(--text-dim); font-size: .82rem; }
.rank-hot { color: var(--gold); font-size: .85rem; white-space: nowrap; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-poster { max-width: 420px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .episode-item { grid-template-columns: 150px 1fr; }
  .episode-item img { width: 150px; }
  .episode-num { display: none; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13,10,26,.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 5%;
    gap: 6px;
    transform: translateY(-130%);
    transition: transform .35s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 13px 16px; border-radius: 12px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .episode-item { grid-template-columns: 1fr; }
  .episode-item img { width: 100%; }
  .hero-stats { gap: 24px; }
  .form-card { padding: 26px 20px; }
  .rank-item img { display: none; }
}
