:root {
  --bg: #fff8f6;
  --red: #ff3b42;
  --green: #3fa62e;
  --pink-bg: #ffe8e0;
  --panel: #ffffff;
  --panel2: #fff4ef;
  --text: #2a1214;
  --sub: #8a6b6b;
  --faint: #b39a9a;
  --line: rgba(255,59,66,.22);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: contain; background: var(--pink-bg); }
.mono { font-family: "Courier New", Consolas, monospace; }

/* 顶栏 */
.nav-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,248,246,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand img { height: 34px; width: auto; border-radius: 6px; background: transparent; }
.brand .lz { color: var(--red); }
.nav-links { display: flex; gap: 16px; font-size: 14px; color: var(--sub); }
.nav-links a:hover { color: var(--red); }
.nav-dl {
  background: var(--red); color: #fff; padding: 8px 18px; border-radius: 6px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; color: var(--red); font-size: 18px; cursor: pointer; }

/* 通用区块 */
section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { font-size: 26px; margin-bottom: 6px; }
.sec-head p { color: var(--sub); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; color: var(--red); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 50px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel2); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 20px; font-size: 12px; color: var(--red); font-weight: 700;
}
.dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: breathe 1.6s infinite ease-in-out; }
@keyframes breathe { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(.8);} }
.hero h1 { font-size: 42px; line-height: 1.3; margin: 18px 0 16px; }
.hero h1 span { color: var(--red); }
.hero-desc { color: var(--sub); font-size: 16px; margin-bottom: 24px; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; padding: 13px 28px; border-radius: 8px;
  font-size: 16px; font-weight: 700; box-shadow: 0 6px 16px rgba(255,59,66,.25);
}
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--red); color: var(--red); padding: 13px 28px; border-radius: 8px; font-size: 16px; font-weight: 700; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.hero-tags span { font-size: 12px; background: var(--panel); border: 1px solid var(--line); padding: 4px 10px; border-radius: 4px; color: var(--sub); }

/* 魔改对照台 */
.lab-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: relative; box-shadow: 0 10px 30px rgba(255,59,66,.06); }
.lab-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--sub); margin-bottom: 12px; }
.lab-head .tag-red { color: var(--red); font-weight: 800; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-item { border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 2/3; border: 1px solid var(--line); }
.compare-item img { width: 100%; height: 100%; }
.compare-label { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.compare-label.ai { background: var(--red); }
.progress-box { margin-top: 16px; }
.progress-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.progress-track { width: 100%; height: 8px; background: var(--pink-bg); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 25%; background: linear-gradient(90deg, var(--red), #ff8c71); border-radius: 4px; animation: loadBar 4s infinite ease-in-out; }
@keyframes loadBar { 0%{width:25%;} 50%{width:98%;} 100%{width:25%;} }

/* 题材分镜 */
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.story-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; }
.story-card .img-box { aspect-ratio: 3/4; }
.story-card img { width: 100%; height: 100%; }
.story-card .info { padding: 10px; font-size: 14px; font-weight: 700; text-align: center; }
.sc-num { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; }

/* 追剧方式 */
.steps-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--panel2); border-radius: 12px; padding: 20px; border: 1px solid var(--line); }
.step-num { font-size: 12px; color: var(--green); font-weight: 800; margin-bottom: 8px; }
.step-img { aspect-ratio: 16/10; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--line); }
.step-img img { width: 100%; height: 100%; border-radius: 8px; }
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--sub); }

/* 热播榜 */
.rank-board { background: var(--panel); border-radius: 12px; border: 1px solid var(--line); padding: 10px 20px; }
.rank-row { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); gap: 16px; }
.rank-row:last-child { border-bottom: none; }
.rank-no { width: 32px; font-size: 18px; font-weight: 800; color: var(--faint); }
.rank-row:nth-child(1) .rank-no { color: var(--red); }
.rank-row:nth-child(2) .rank-no { color: var(--red); }
.rank-row:nth-child(3) .rank-no { color: var(--green); }
.rank-poster { width: 48px; height: 64px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.rank-poster img { width: 100%; height: 100%; }
.rank-title { flex: 1; font-size: 15px; font-weight: 600; }
.heat-bar { width: 140px; height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.heat-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--red)); border-radius: 3px; }

/* 片库 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { padding: 6px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; cursor: pointer; color: var(--sub); }
.filter-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.grid-lib { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lib-card { background: var(--panel); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); position: relative; transition: transform .2s; }
.lib-card:hover { transform: translateY(-4px); }
.lib-card .img-box { aspect-ratio: 2/3; }
.lib-card img { width: 100%; height: 100%; }
.lib-card .info { padding: 8px 10px; font-size: 13px; text-align: center; font-weight: 600; }

/* 心愿榜 */
.wish-list { display: flex; flex-direction: column; gap: 16px; }
.wish-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; align-items: center; gap: 16px; }
.wish-poster { width: 60px; height: 80px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.wish-poster img { width: 100%; height: 100%; }
.wish-info { flex: 1; }
.wish-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.wish-num { font-size: 12px; color: var(--red); }
.wish-progress { width: 100%; height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.wish-progress .fill { height: 100%; background: var(--red); border-radius: 4px; transition: width .3s; }
.wish-tip { font-size: 12px; color: var(--sub); }
.wish-btn { border: 1px solid var(--red); background: transparent; color: var(--red); padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.wish-btn.done { background: var(--red); color: #fff; }

/* 竖屏体验 */
.mobile-carousel { display: flex; gap: 30px; justify-content: center; align-items: center; padding: 20px 0; }
.mobile-frame { width: 240px; height: 480px; border-radius: 30px; border: 8px solid #2a1214; overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(42,18,20,.15); flex-shrink: 0; }
.mobile-frame img { width: 100%; height: 100%; transition: opacity .4s; }
.mobile-tip { color: var(--faint); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mobile-tip span { font-size: 24px; color: var(--red); }

/* 神评墙 */
.review-header { text-align: center; margin-bottom: 30px; }
.score { font-size: 48px; color: var(--red); font-weight: 800; font-family: monospace; line-height: 1; margin-bottom: 6px; }
.grid-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.review-user { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.review-text { font-size: 14px; color: var(--sub); margin-bottom: 12px; }
.review-like { font-size: 12px; color: var(--faint); font-family: monospace; }

/* 下载区 */
.dl-area { background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--red); border-bottom: 6px solid var(--green); border-radius: 16px; padding: 50px 20px; text-align: center; margin: 40px auto; max-width: 1000px; }
.dl-area h2 { font-size: 32px; margin-bottom: 12px; }
.dl-area p { color: var(--sub); margin-bottom: 24px; }

/* 页脚 */
footer { background: var(--panel2); border-top: 1px solid var(--line); padding: 30px 20px; text-align: center; font-size: 12px; color: var(--faint); }
.footer-inner p { margin-bottom: 6px; }
.footer-inner a { color: var(--faint); }
.footer-details { margin-top: 16px; display: inline-block; text-align: left; }
.footer-details summary { cursor: pointer; list-style: none; font-size: 12px; color: var(--faint); outline: none; display: inline-block; }
.footer-details summary::-webkit-details-marker { display: none; }
.footer-details summary:hover { color: var(--red); }
.footer-links { margin-top: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 16px; font-size: 12px; }
.footer-links a:hover { color: var(--red); }

/* 响应式 */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 34px; }
  .grid-6, .grid-lib { grid-template-columns: repeat(4, 1fr); }
  .steps-wrap { grid-template-columns: 1fr; }
  .grid-reviews { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--panel); padding: 20px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.05); }
  .menu-toggle { display: block; }
  .mobile-carousel { flex-wrap: wrap; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-6, .grid-lib { grid-template-columns: repeat(2, 1fr); }
  .grid-reviews { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .btn-group { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; }
  .rank-row { flex-wrap: wrap; gap: 10px; }
  .heat-bar { width: 100%; }
  .wish-item { flex-wrap: wrap; }
  .wish-btn { width: 100%; text-align: center; }
  .mobile-frame { width: 200px; height: 400px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}