* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0e0d13;
  --bg-soft: #171620;
  --card: #1d1b27;
  --line: #2c2938;
  --text: #eceaf3;
  --muted: #9b96ae;
  --accent: #ff5f8f;
  --accent-2: #8b6cff;
  --radius: 16px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 19, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 32px; width: auto; border-radius: 7px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.main-nav {
  display: flex; gap: 4px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-size: 14px; color: var(--muted); padding: 7px 12px;
  border-radius: 20px; white-space: nowrap; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: var(--card); }
.header-mobile-tip { display: none; }

/* ===== Hero ===== */
.hero { padding: 26px 0 10px; position: relative; }
.hero-carousel { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.slides { position: relative; height: 460px; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .7s ease;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  background: linear-gradient(120deg, #1a1726 0%, #12111a 100%);
}
.slide.active { opacity: 1; z-index: 2; }
.slide-copy { padding: 38px 42px; }
.slide-tag {
  display: inline-block; font-size: 12px; letter-spacing: 1px;
  color: var(--accent); border: 1px solid rgba(255,95,143,.5);
  padding: 3px 12px; border-radius: 20px; margin-bottom: 16px;
}
.slide-copy h3 { font-size: 30px; line-height: 1.3; margin-bottom: 12px; font-weight: 800; }
.slide-copy p { color: var(--muted); font-size: 15px; max-width: 400px; }
.slide-media { height: 100%; position: relative; overflow: hidden; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #12111a 0%, rgba(18,17,26,.15) 45%, rgba(18,17,26,0) 100%);
}
.carousel-dots {
  position: absolute; bottom: 16px; left: 42px; z-index: 5;
  display: flex; gap: 8px;
}
.carousel-dots button {
  width: 26px; height: 4px; border-radius: 4px; border: none; cursor: pointer;
  background: rgba(255,255,255,.22); transition: background .25s, width .25s;
}
.carousel-dots button.on { background: var(--accent); width: 40px; }

.hero-title { margin: 30px 0 6px; }
.hero-title h1 { font-size: 30px; line-height: 1.35; font-weight: 800; }
.hero-title h1 span { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 30px; font-size: 15px; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent) 0%, #ff8a63 100%);
  color: #1a0a12; box-shadow: 0 8px 24px rgba(255,95,143,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,95,143,.38); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--bg-soft); }
.btn-ghost:hover { background: var(--card); }
.btn-note { font-size: 13px; color: var(--muted); }

/* ===== Section 通用 ===== */
section { padding: 44px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { font-size: 24px; font-weight: 800; letter-spacing: .3px; }
.sec-head h2 em { font-style: normal; color: var(--accent); }
.sec-head p { color: var(--muted); font-size: 14px; }

/* ===== 最新上线 ===== */
.latest-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.poster {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s;
}
.poster:hover { transform: translateY(-5px); border-color: rgba(255,95,143,.45); }
.poster .thumb { aspect-ratio: 3 / 4; overflow: hidden; }
.poster .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.poster:hover .thumb img { transform: scale(1.05); }
.poster .meta { padding: 10px 12px 13px; }
.poster .meta h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.poster .meta span { font-size: 12px; color: var(--muted); }
.badge-new {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; padding: 2px 9px; border-radius: 12px;
  background: var(--accent); color: #1a0a12; font-weight: 700;
}

/* ===== 今日热门 ===== */
.hot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hot-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; align-items: center;
  transition: border-color .25s, background .25s;
}
.hot-item:hover { border-color: rgba(139,108,255,.5); background: var(--card); }
.hot-item .hot-thumb { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; }
.hot-item .hot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hot-item .hot-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.hot-item .hot-info p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.hot-rank {
  display: inline-block; font-size: 12px; color: var(--accent-2);
  border: 1px solid rgba(139,108,255,.45); border-radius: 10px;
  padding: 1px 8px; margin-bottom: 6px;
}

/* ===== AI 短剧精选 ===== */
.ai-section { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.ai-feature {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 340px;
  border: 1px solid var(--line);
}
.ai-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ai-feature .ai-copy {
  position: absolute; inset: auto 0 0 0; padding: 26px;
  background: linear-gradient(0deg, rgba(10,9,15,.94) 12%, rgba(10,9,15,0) 100%);
  z-index: 2;
}
.ai-feature .ai-copy h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.ai-feature .ai-copy p { font-size: 14px; color: #c9c4d8; max-width: 420px; }
.ai-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.ai-side-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px;
}
.ai-side-card .ai-thumb { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; }
.ai-side-card .ai-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-side-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ai-side-card p { font-size: 13px; color: var(--muted); }

/* ===== 分类检索 ===== */
.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.genre-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; transition: transform .2s, border-color .2s;
}
.genre-card:hover { transform: translateY(-3px); border-color: rgba(255,95,143,.4); }
.genre-card h3 { font-size: 16px; margin-bottom: 6px; }
.genre-card p { font-size: 13px; color: var(--muted); }

/* ===== 追剧方式 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px; font-weight: 800;
  background: rgba(255,95,143,.14); color: var(--accent); margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ===== 剧照墙 ===== */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wall figure { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.wall figure img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; transition: transform .4s; }
.wall figure:hover img { transform: scale(1.04); }

/* ===== 下载收尾 ===== */
.download-band {
  margin: 20px auto 0; border-radius: 22px; padding: 40px 30px; text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(139,108,255,.22), transparent 60%),
              radial-gradient(circle at 75% 80%, rgba(255,95,143,.2), transparent 58%),
              var(--bg-soft);
  border: 1px solid var(--line);
}
.download-band h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.download-band p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto 22px; }
.download-band .hero-cta { justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line); padding: 30px 0 40px;
  background: var(--bg); margin-top: 30px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 24px; width: auto; border-radius: 6px; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-meta .update-time { font-size: 12px; color: #6f6a80; }

/* ===== 响应式 1024 ===== */
@media (max-width: 1024px) {
  .slides { height: 400px; }
  .latest-grid { grid-template-columns: repeat(4, 1fr); }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-layout { grid-template-columns: 1fr; }
  .ai-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .hero-title h1 { font-size: 26px; }
}

/* ===== 响应式 768 ===== */
@media (max-width: 768px) {
  .header-inner { height: 56px; gap: 10px; }
  .brand-name { font-size: 15px; }
  .main-nav { margin-left: 0; }
  .main-nav a { font-size: 13px; padding: 6px 10px; }
  .hero { padding-top: 16px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .slide-copy { padding: 22px 20px; order: 2; }
  .slide-copy h3 { font-size: 21px; }
  .slide-copy p { font-size: 13px; }
  .slide-media { order: 1; max-height: 200px; }
  .slide-media::after { background: linear-gradient(0deg, #12111a 0%, rgba(18,17,26,0) 70%); }
  .slides { height: 420px; }
  .carousel-dots { left: 20px; top: 186px; bottom: auto; }
  .hero-title { margin-top: 24px; }
  .hero-title h1 { font-size: 22px; }
  .hero-sub { font-size: 14px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  section { padding: 32px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sec-head h2 { font-size: 20px; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hot-list { grid-template-columns: 1fr; gap: 12px; }
  .ai-side { grid-template-columns: 1fr; }
  .ai-feature { min-height: 260px; }
  .ai-feature .ai-copy { padding: 18px; }
  .ai-feature .ai-copy h3 { font-size: 18px; }
  .genre-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .download-band { padding: 28px 18px; }
  .download-band h2 { font-size: 21px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}