:root{
  --main:#D7263D;
  --sub:#1A1A1A;
  --bg:#F5F0E8;
  --accent:#D7263D;
  --radius:2px;
  --shadow:0 6px 18px rgba(26,26,26,.18);
  --shadow-strong:0 10px 28px rgba(26,26,26,.26);
  --gap:20px;
  --pad:20px;
  --sec-gap:64px;
}
*{box-sizing:border-box;}
html{font-size:16px;}
body{
  margin:0;
  background:var(--bg);
  color:var(--sub);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:16px;
  line-height:1.75;
}
img{width:100%;height:100%;object-fit:cover;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4,p{margin:0;}
.container{
  max-width:1240px;
  margin:0 auto;
  padding:0 20px;
}
@media(min-width:720px){.container{padding:0 32px;}}
@media(min-width:1100px){.container{padding:0 40px;}}

/* 顶部品牌区 */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--sub);
  color:#fff;
  border-bottom:3px solid var(--main);
}
.topbar-inner{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:60px;
  flex-wrap:nowrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:18px;
  color:#fff;
  white-space:nowrap;
}
.brand-mark{
  width:26px;height:26px;
  border-radius:50%;
  background:var(--main);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:800;color:#fff;
}
.nav-main{
  display:none;
  gap:4px;
  margin-left:8px;
}
.nav-main a{
  padding:8px 12px;
  font-size:14px;
  border-radius:var(--radius);
  color:#efe9df;
  transition:background .2s,color .2s;
}
.nav-main a:hover,.nav-main a:focus-visible{background:var(--main);color:#fff;outline:none;}
.search-box{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  background:#fff;
  border-radius:var(--radius);
  padding:4px 6px;
  flex:1 1 auto;
  max-width:280px;
}
.search-box input{
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  color:var(--sub);
  width:100%;
  padding:6px 4px;
  font-family:inherit;
}
.search-box button{
  border:none;
  background:var(--main);
  color:#fff;
  font-size:13px;
  padding:8px 12px;
  border-radius:var(--radius);
  cursor:pointer;
  min-height:34px;
  font-family:inherit;
}
.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:1px solid #555;
  color:#fff;
  border-radius:var(--radius);
  width:40px;height:40px;
  font-size:18px;
  cursor:pointer;
}
.mobile-nav{
  display:none;
  flex-direction:column;
  gap:2px;
  padding:8px 0 14px;
}
.mobile-nav.open{display:flex;}
.mobile-nav a{
  padding:11px 8px;
  font-size:15px;
  color:#efe9df;
  border-bottom:1px solid #333;
}
.mobile-nav a:hover{color:var(--main);}
@media(min-width:820px){
  .nav-main{display:flex;}
  .menu-btn{display:none;}
  .mobile-nav{display:none !important;}
}

/* 面包屑 */
.crumb{
  font-size:13.5px;
  padding:20px 0 0;
  color:#6b6459;
}
.crumb a:hover{color:var(--main);}
.crumb span[aria-current]{color:var(--main);font-weight:600;}

/* Hero */
.hero{
  margin-top:24px;
  position:relative;
  overflow:hidden;
  border:2px solid var(--sub);
  border-radius:var(--radius);
  background:linear-gradient(135deg,#1A1A1A 0%,#2b1d1f 55%,#D7263D 160%);
  color:#fff;
  box-shadow:var(--shadow-strong);
}
.hero::before{
  content:"";
  position:absolute;
  width:320px;height:320px;
  border-radius:50%;
  background:rgba(215,38,61,.35);
  top:-140px;right:-100px;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  width:220px;height:220px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.18);
  bottom:-110px;left:-60px;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:26px 22px;
}
.hero-poster{
  aspect-ratio:16/9;
  border-radius:var(--radius);
  overflow:hidden;
  border:2px solid rgba(255,255,255,.25);
}
.hero-copy{display:flex;flex-direction:column;gap:16px;text-align:center;}
.hero h1{
  font-size:34px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.5px;
}
.hero-spark{
  font-size:16px;
  line-height:1.75;
  color:#f0e7dc;
}
.tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.tag{
  display:inline-block;
  font-size:13px;
  line-height:1.4;
  padding:4px 11px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
}
.tag.solid{background:var(--main);border-color:var(--main);}
.hero-meta{
  display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:center;
  font-size:14px;color:#f3ddd8;
}
.hero-meta b{color:#fff;font-size:16px;}
.hero-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 24px;
  font-size:14px;
  font-weight:700;
  border-radius:var(--radius);
  border:2px solid var(--main);
  background:var(--main);
  color:#fff;
  cursor:pointer;
  font-family:inherit;
  transition:transform .15s,box-shadow .2s,background .2s,color .2s;
}
.btn:hover{box-shadow:0 6px 16px rgba(215,38,61,.45);transform:translateY(-1px);}
.btn:focus-visible{outline:3px solid #fff;outline-offset:2px;}
.btn-ghost{background:transparent;color:#fff;border-color:#fff;}
.btn-ghost:hover{background:#fff;color:var(--sub);box-shadow:0 6px 16px rgba(0,0,0,.3);}
.btn-sm{min-height:38px;padding:8px 16px;font-size:13px;}
@media(min-width:820px){
  .hero-inner{flex-direction:column;padding:34px 40px;gap:22px;}
  .hero-poster{aspect-ratio:21/8;}
  .hero h1{font-size:46px;}
  .hero-spark{font-size:17px;max-width:760px;margin:0 auto;}
  .hero-copy{gap:18px;}
}

/* 通用 section */
.section{margin-top:var(--sec-gap);}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:20px;
  border-bottom:2px solid var(--sub);
  padding-bottom:12px;
}
.section-head h2{
  font-size:23px;
  line-height:1.3;
  font-weight:800;
  color:var(--sub);
  position:relative;
  padding-left:14px;
}
.section-head h2::before{
  content:"";
  position:absolute;
  left:0;top:6px;bottom:6px;
  width:5px;
  background:var(--main);
  border-radius:var(--radius);
}
@media(min-width:720px){.section-head h2{font-size:28px;}}
.section-desc{
  font-size:15px;
  line-height:1.7;
  color:#5c564d;
  margin-top:6px;
  max-width:820px;
}
.more-link{
  font-size:14px;
  font-weight:700;
  color:var(--main);
  border:1px solid var(--main);
  padding:8px 16px;
  border-radius:var(--radius);
  white-space:nowrap;
  min-height:38px;
  display:inline-flex;align-items:center;
  transition:background .2s,color .2s;
}
.more-link:hover{background:var(--main);color:#fff;}

/* 分类导航 */
.cat-scroll{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:14px;
}
@media(max-width:480px){
  .cat-scroll{display:flex;overflow-x:auto;gap:12px;padding-bottom:6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;}
  .cat-card{min-width:160px;scroll-snap-align:start;}
}
.cat-card{
  border:2px solid var(--sub);
  border-radius:var(--radius);
  background:#fff;
  padding:16px;
  box-shadow:var(--shadow);
  transition:transform .18s,box-shadow .18s,border-color .18s;
  display:block;
}
.cat-card:hover,.cat-card:focus-visible{border-color:var(--main);transform:translateY(-3px);box-shadow:var(--shadow-strong);outline:none;}
.cat-card h3{font-size:17px;line-height:1.4;font-weight:800;color:var(--sub);}
.cat-card p{font-size:13.5px;line-height:1.6;color:#5c564d;margin-top:6px;}

/* 剧集卡片网格 */
.grid-cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
@media(min-width:720px){.grid-cards{grid-template-columns:repeat(3,1fr);gap:18px;}}
@media(min-width:1080px){.grid-cards{grid-template-columns:repeat(4,1fr);}}
.drama-card{
  background:#fff;
  border:2px solid var(--sub);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .18s,box-shadow .18s,border-color .18s;
}
.drama-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-strong);border-color:var(--main);}
.drama-cover{
  aspect-ratio:3/4;
  border-bottom:2px solid var(--sub);
  position:relative;
  overflow:hidden;
}
.drama-cover .badge{
  position:absolute;top:8px;left:8px;
  background:var(--main);
  color:#fff;
  font-size:12.5px;
  padding:2px 9px;
  border-radius:var(--radius);
  font-weight:700;
}
.drama-body{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1;}
.drama-body h3{font-size:17px;line-height:1.4;font-weight:800;color:var(--sub);}
.drama-body p{font-size:13.5px;line-height:1.65;color:#5c564d;flex:1;}
.drama-meta{font-size:13px;line-height:1.5;color:#8a8275;}
.drama-link{font-size:13.5px;font-weight:700;color:var(--main);}
.drama-link:hover{text-decoration:underline;}

/* 看点列表 */
.highlights{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media(min-width:720px){.highlights{grid-template-columns:repeat(2,1fr);gap:18px;}}
.hl-item{
  background:#fff;
  border-left:6px solid var(--main);
  border-top:1px solid #d9d1c4;
  border-right:1px solid #d9d1c4;
  border-bottom:1px solid #d9d1c4;
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.hl-item h3{font-size:17px;line-height:1.4;font-weight:800;margin-bottom:6px;color:var(--main);}
.hl-item p{font-size:14px;line-height:1.7;color:#4a453d;}

/* 剧情简介 */
.story-box{
  background:#fff;
  border:2px solid var(--sub);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow-strong);
}
.story-box p{font-size:16px;line-height:1.8;color:#3a352e;}
.story-box p+p{margin-top:14px;}

/* 人物关系 */
.people-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
@media(min-width:720px){.people-grid{grid-template-columns:repeat(4,1fr);gap:18px;}}
.person{
  background:#fff;
  border:2px solid var(--sub);
  border-radius:var(--radius);
  padding:16px;
  text-align:center;
  box-shadow:var(--shadow);
  transition:border-color .2s,transform .2s;
}
.person:hover{border-color:var(--main);transform:translateY(-3px);}
.person-avatar{
  width:84px;height:84px;
  border-radius:50%;
  overflow:hidden;
  margin:0 auto 12px;
  border:3px solid var(--main);
}
.person h3{font-size:17px;font-weight:800;line-height:1.4;}
.person .role{font-size:13px;color:var(--main);font-weight:700;margin-top:2px;}
.person p{font-size:13.5px;line-height:1.6;color:#5c564d;margin-top:8px;}

/* 追剧队列 */
.queue-wrap{
  background:#fff;
  border:2px solid var(--sub);
  border-radius:var(--radius);
  box-shadow:var(--shadow-strong);
  overflow:hidden;
}
.queue-head{
  background:var(--sub);
  color:#fff;
  padding:14px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:14px;
}
.queue-head b{color:#ffd6db;font-size:17px;}
.queue-list{list-style:none;margin:0;padding:0;}
.queue-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 20px;
  border-bottom:1px solid #e4dccf;
  flex-wrap:wrap;
}
.queue-item:last-child{border-bottom:none;}
.q-num{
  width:34px;height:34px;
  flex:0 0 34px;
  border-radius:50%;
  background:var(--sub);
  color:#fff;
  font-size:14px;
  font-weight:800;
  display:flex;align-items:center;justify-content:center;
}
.q-info{flex:1 1 200px;min-width:180px;}
.q-info h3{font-size:16.5px;line-height:1.4;font-weight:800;}
.q-info p{font-size:13.5px;line-height:1.6;color:#5c564d;margin-top:3px;}
.q-meta{font-size:13px;color:#8a8275;white-space:nowrap;}
.q-add{
  min-height:40px;
  padding:8px 18px;
  font-size:13.5px;
  font-weight:700;
  border-radius:var(--radius);
  border:2px solid var(--main);
  background:#fff;
  color:var(--main);
  cursor:pointer;
  font-family:inherit;
  transition:background .2s,color .2s,transform .15s;
  white-space:nowrap;
}
.q-add:hover{background:var(--accent);color:#fff;transform:translateY(-1px);}
.q-add:focus-visible{outline:3px solid var(--sub);outline-offset:2px;}
.q-add.on{background:var(--main);color:#fff;}
.q-hidden{display:none;}
.q-toggle-row{text-align:center;padding:16px;}
.q-toggle{
  min-height:42px;
  padding:10px 24px;
  font-size:14px;
  font-weight:700;
  border:2px dashed var(--sub);
  background:#fff3ef;
  color:var(--sub);
  border-radius:var(--radius);
  cursor:pointer;
  font-family:inherit;
}
.q-toggle:hover{border-color:var(--main);color:var(--main);}

/* 相关推荐 */
.rel-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
@media(min-width:720px){.rel-grid{grid-template-columns:repeat(3,1fr);gap:18px;}}
@media(min-width:1080px){.rel-grid{grid-template-columns:repeat(4,1fr);}}
.rel-card{
  background:#fff;
  border:2px solid var(--sub);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;flex-direction:column;
  transition:transform .18s,box-shadow .18s,border-color .18s;
}
.rel-card:hover{transform:translateY(-4px);border-color:var(--main);box-shadow:var(--shadow-strong);}
.rel-cover{aspect-ratio:3/4;border-bottom:2px solid var(--sub);}
.rel-body{padding:16px;display:flex;flex-direction:column;gap:7px;flex:1;}
.rel-body h3{font-size:16.5px;font-weight:800;line-height:1.4;}
.rel-body p{font-size:13.5px;line-height:1.6;color:#5c564d;flex:1;}
.rel-kw{font-size:12.5px;color:var(--main);font-weight:700;}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:12px;}
.faq-item{
  background:#fff;
  border:2px solid var(--sub);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.faq-item h3{font-size:16.5px;line-height:1.5;font-weight:800;color:var(--sub);}
.faq-item h3::before{content:"Q ";color:var(--main);font-weight:800;}
.faq-item p{font-size:14.5px;line-height:1.75;color:#4a453d;margin-top:8px;}

/* 标签云 */
.tag-cloud{display:flex;flex-wrap:wrap;gap:10px;}
.tag-cloud a{
  font-size:13.5px;
  padding:6px 14px;
  border-radius:var(--radius);
  background:#fff;
  border:1.5px solid var(--sub);
  color:var(--sub);
  transition:background .2s,color .2s,border-color .2s;
}
.tag-cloud a:hover{background:var(--main);color:#fff;border-color:var(--main);}

/* 友情链接 & 页脚 */
.footer{
  margin-top:var(--sec-gap);
  background:var(--sub);
  color:#e6ddd0;
  padding-top:52px;
}
.footer a{color:#e6ddd0;transition:color .2s;}
.footer a:hover{color:#ff6b7d;}
.footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
}
@media(min-width:720px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;}}
.footer h3{font-size:16px;font-weight:800;color:#fff;margin-bottom:10px;}
.footer p{font-size:13.5px;line-height:1.75;color:#bfb6a8;}
.footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;}
.footer ul a{font-size:13.5px;}
.friends{
  margin-top:40px;
  border-top:1px solid #3a3a3a;
  padding-top:26px;
}
.friends h2{font-size:16px;font-weight:800;color:#fff;margin-bottom:12px;}
.friends .tag-cloud a{background:transparent;border-color:#4a4a4a;color:#d8cfc1;font-size:13px;padding:5px 12px;}
.friends .tag-cloud a:hover{background:var(--main);border-color:var(--main);color:#fff;}
.footer-bottom{
  margin-top:34px;
  border-top:1px solid #3a3a3a;
  padding:22px 0 30px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  text-align:center;
  font-size:13px;
  line-height:1.6;
  color:#a89f91;
}
.footer-bottom .beian{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;}
.footer-bottom .beian a{font-size:13px;}
.to-top{
  position:fixed;
  right:16px;
  bottom:20px;
  z-index:60;
  width:46px;height:46px;
  border-radius:50%;
  background:var(--main);
  color:#fff;
  border:none;
  font-size:18px;
  cursor:pointer;
  box-shadow:var(--shadow-strong);
  display:none;
  align-items:center;justify-content:center;
}
.to-top.show{display:flex;}
.to-top:focus-visible{outline:3px solid var(--sub);outline-offset:3px;}
.empty-hint{font-size:14px;color:#8a8275;padding:8px 0;display:none;}
.empty-hint.show{display:block;}

@media(prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important;scroll-behavior:auto !important;}
}