/* ============================================================
   红果短剧桌面版下载页 — stylesheet
   视觉参考红果官网：深色底 #131414 + 橙红渐变 + 半透明卡片
   ============================================================ */
:root{
  --bg:        #131414;
  --bg-soft:   #191a1a;
  --card:      rgba(224,224,224,.06);
  --card-hi:   rgba(224,224,224,.10);
  --line:      rgba(255,255,255,.09);
  --text:      #ffffff;
  --muted:     rgba(255,255,255,.62);
  --faint:     rgba(255,255,255,.42);
  --orange-1:  #ff7e0d;
  --orange-2:  #ff9233;
  --grad:      linear-gradient(99.86deg, var(--orange-1) .27%, var(--orange-2));
  --font: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px,5vw,64px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:clip; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; overflow-x:clip;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--orange-1); color:#fff; }

.skip{ position:absolute; left:-9999px; top:0; z-index:200; background:var(--orange-1); color:#fff; padding:12px 20px; }
.skip:focus{ left:0; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible{ outline:2px solid var(--orange-2); outline-offset:3px; border-radius:4px; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }

/* 顶部滚动进度条 */
.progress{ position:fixed; top:0; left:0; height:2px; width:0%; background:var(--grad); z-index:120; transition:width .1s linear; }

/* ============================================================
   导航
   ============================================================ */
.nav{ position:fixed; inset:0 0 auto 0; z-index:100; height:64px; background:rgba(19,20,20,.72); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.nav__inner{ height:100%; display:flex; align-items:center; gap:44px; }
.brand{ display:inline-flex; align-items:center; gap:9px; font-size:18px; font-weight:600; white-space:nowrap; letter-spacing:.01em; }
.brand__mark,.hero__logo-mark{
  width:24px; height:24px; border-radius:50%; flex:none; display:inline-block;
  background:conic-gradient(from 200deg, var(--orange-1), #ff5e2c, var(--orange-2), var(--orange-1));
  position:relative;
}
.brand__mark::after,.hero__logo-mark::after{
  content:""; position:absolute; inset:0; margin:auto; width:0; height:0;
  border-left:8px solid #fff; border-top:5px solid transparent; border-bottom:5px solid transparent;
  transform:translateX(1px);
}
.nav__links{ display:flex; align-items:center; gap:34px; font-size:14px; color:var(--muted); }
.nav__links a{ transition:color .2s; }
.nav__links a:hover{ color:var(--text); }
.nav__right{ display:flex; align-items:center; gap:22px; margin-left:auto; }
.nav__cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 18px; border-radius:9px; background:var(--grad); color:#fff;
  font-size:13.5px; font-weight:600; white-space:nowrap; transition:filter .2s,transform .2s;
}
.nav__cta:hover{ filter:brightness(1.08); transform:translateY(-1px); }
@media(max-width:980px){ .nav__links{ gap:20px; } }
@media(max-width:720px){ .nav__links{ display:none; } .nav__inner{ gap:0; } }

/* ============================================================
   HERO 首屏
   ============================================================ */
.hero{ position:relative; min-height:660px; padding:150px 0 0; overflow:hidden; display:flex; flex-direction:column; align-items:center; }
/* 背景海报墙 */
.hero__wall{ position:absolute; inset:-40px -20px auto; height:560px; display:flex; flex-wrap:wrap; gap:14px; align-content:center; justify-content:center; opacity:.34; filter:blur(2px); transform:scale(1.08); pointer-events:none; }
.wall-card{
  width:120px; height:170px; border-radius:10px; flex:none;
  background-size:cover; background-position:center;
  box-shadow:0 8px 30px rgba(0,0,0,.5);
}
.wall-card[class^="w"]{ background-size:cover; background-position:center; }
.w1{ background-image:url(assets/posters/p1.webp); background-size:cover; background-position:center;}
.w2{ background-image:url(assets/posters/p2.webp); background-size:cover; background-position:center;}
.w3{ background-image:url(assets/posters/p3.webp); background-size:cover; background-position:center;}
.w4{ background-image:url(assets/posters/p4.webp); background-size:cover; background-position:center;}
.w5{ background-image:url(assets/posters/p5.webp); background-size:cover; background-position:center;}
.w6{ background-image:url(assets/posters/p6.webp); background-size:cover; background-position:center;}
.w7{ background-image:url(assets/posters/p7.webp); background-size:cover; background-position:center;}
.w8{ background-image:url(assets/posters/p8.webp); background-size:cover; background-position:center;}
.w9{ background-image:url(assets/posters/p9.webp); background-size:cover; background-position:center;}
.hero__veil{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(19,20,20,.35) 0%, rgba(19,20,20,.55) 38%, #131414 92%),
             radial-gradient(ellipse 60% 44% at 50% 26%, rgba(19,20,20,.55), transparent 75%);
}

.hero__inner{ position:relative; z-index:2; text-align:center; padding-inline:var(--gutter); }
.hero__logo{ display:inline-flex; align-items:center; gap:10px; font-size:17px; font-weight:600; margin-bottom:30px; }
.hero__logo-mark{ width:26px; height:26px; }
.hero__logo-mark::after{ border-left-width:9px; border-top-width:5px; border-bottom-width:5px; }
.hero h1{
  margin:0; font-size:clamp(38px,6vw,68px); line-height:1.2; font-weight:700; letter-spacing:.02em;
  text-shadow:0 4px 30px rgba(0,0,0,.5);
}
.hero h1 em{ position:relative; font-style:normal; white-space:nowrap; }
.hero h1 em::after{
  content:""; position:absolute; left:4%; right:2%; bottom:-10px; height:8px;
  background:linear-gradient(90deg,transparent,#fff 12%,#fff 88%,transparent);
  border-radius:50%; transform:rotate(-1.6deg) skewX(-24deg); opacity:.85;
}
.hero__sub{ margin:30px auto 0; max-width:560px; color:rgba(255,255,255,.82); font-size:clamp(14px,1.5vw,16px); line-height:1.9; text-shadow:0 2px 12px rgba(0,0,0,.5); }
.hero__sub strong{ color:#fff; font-weight:600; }
.hero__actions{ margin-top:32px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:0 30px; border:0; border-radius:11px;
  font-size:16px; font-weight:600; color:#fff; transition:filter .2s,transform .2s,box-shadow .2s;
}
.btn svg{ width:20px; height:20px; }
.btn--primary{ background:var(--grad); box-shadow:0 10px 30px rgba(255,126,13,.24); }
.btn--primary:hover{ filter:brightness(1.07); transform:translateY(-2px); box-shadow:0 14px 36px rgba(255,126,13,.34); }
.hero__scroll{ display:flex; flex-direction:column; align-items:center; gap:8px; margin-top:54px; color:var(--faint); font-size:12.5px; }
.hero__scroll svg{ width:18px; height:18px; animation:bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0); opacity:.5 } 50%{ transform:translateY(6px); opacity:1 } }

/* 扇形层叠海报 */
.fan{ position:relative; z-index:2; width:100%; max-width:900px; height:300px; margin:36px auto 0; }
.fan__card{
  position:absolute; left:50%; bottom:0; width:150px; height:224px; border-radius:12px;
  margin-left:-75px; padding:16px; display:flex; flex-direction:column; justify-content:flex-end;
  background-size:cover; background-position:center; overflow:hidden;
  box-shadow:0 18px 44px rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.12);
  transform-origin:bottom center; transition:transform .4s cubic-bezier(.22,1,.36,1),z-index 0s;
}
.fan__card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fan__card::before{ content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.55)); }
.fan__title,.fan__badge{ display:none; }
.fan__title{ position:relative; font-size:21px; font-weight:800; line-height:1.28; letter-spacing:.02em; text-shadow:0 2px 8px rgba(0,0,0,.8); }
.fan__badge{ position:relative; margin-top:6px; font-size:11px; color:rgba(255,255,255,.8); }
.fc1{ background:linear-gradient(160deg,#7a2d1c,#c1532f 48%,#2a1210); transform:translateX(-330px) rotate(-17deg) translateY(38px); }
.fc2{ background:linear-gradient(160deg,#8f1f2a,#d64a35 50%,#3a1015); transform:translateX(-220px) rotate(-11deg) translateY(12px); }
.fc3{ background:linear-gradient(160deg,#2b3b5c,#88623f 55%,#141a24); transform:translateX(-110px) rotate(-5deg); }
.fc4{ background:linear-gradient(160deg,#5c1e28,#b8413b 52%,#201013); transform:translateX(0) rotate(0) translateY(-14px); z-index:5; }
.fc5{ background:linear-gradient(160deg,#3a2b52,#8a5a9c 52%,#171122); transform:translateX(110px) rotate(5deg); }
.fc6{ background:linear-gradient(160deg,#5a3b1e,#b8863f 52%,#1f150c); transform:translateX(220px) rotate(11deg) translateY(12px); }
.fan__card:hover{ transform:translateX(0) rotate(0) translateY(-30px) scale(1.05) !important; z-index:20; }
@media(max-width:760px){
  .hero{ min-height:600px; padding-top:120px; }
  .hero__wall{ height:460px; }
  .wall-card{ width:88px; height:128px; }
  .fan{ height:220px; transform:scale(.82); transform-origin:bottom center; margin-top:24px; }
}

/* ============================================================
   通用区块标题
   ============================================================ */
.section{ padding:100px 0; }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:46px; }
.kicker{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:var(--orange-2); padding-bottom:8px; border-bottom:2px solid var(--orange-1);
}
.sec-head h2{ margin:16px 0 0; font-size:clamp(30px,4.4vw,48px); font-weight:700; line-height:1.25; letter-spacing:.01em; }
.sec-head h2 em{ font-style:normal; color:var(--orange-2); }
.sec-head p{ max-width:340px; margin:0; color:var(--muted); font-size:14.5px; }

/* ============================================================
   榜单（热播短剧卡片）
   ============================================================ */
.catalog{ padding:24px 0 90px; }
.rank + .rank{ margin-top:58px; }
.rank__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.rank__head h2{ margin:0; font-size:20px; font-weight:600; }
.rank__head h2 span{ color:var(--orange-2); margin-left:4px; font-weight:400; }
.rank__head a{ color:var(--faint); font-size:13px; transition:color .2s; }
.rank__head a:hover{ color:var(--orange-2); }
.rank__row{ display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
.drama{ min-width:0; cursor:pointer; }
.drama__cover{
  position:relative; aspect-ratio:3/4; border-radius:10px; overflow:hidden;
  background-size:cover; background-position:center; border:1px solid rgba(255,255,255,.08);
  transition:transform .28s ease,box-shadow .28s ease;
}
.drama:hover .drama__cover{ transform:translateY(-5px); box-shadow:0 14px 30px rgba(0,0,0,.55); }
.drama__cover img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; transition:transform .4s ease; }
.drama:hover .drama__cover img{ transform:scale(1.06); }
.drama__cover::after{ content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.72)); }
.drama__play{
  position:absolute; top:50%; left:50%; z-index:2; width:40px; height:40px; margin:-20px 0 0 -20px;
  border-radius:50%; background:rgba(0,0,0,.42); border:1.5px solid rgba(255,255,255,.85);
  opacity:0; transform:scale(.8); transition:opacity .25s,transform .25s;
}
.drama__play::after{ content:""; position:absolute; top:50%; left:50%; transform:translate(-40%,-50%); border-left:12px solid #fff; border-top:8px solid transparent; border-bottom:8px solid transparent; }
.drama:hover .drama__play{ opacity:1; transform:scale(1); }
.drama__tag{ position:absolute; top:9px; left:9px; z-index:2; padding:2px 8px; border-radius:5px; background:var(--grad); color:#fff; font-size:10px; font-weight:600; }
.drama h3{ margin:11px 0 3px; font-size:13.5px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.drama p{ margin:0; font-size:11.5px; color:var(--faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.drama p span{ color:rgba(255,255,255,.72); }
/* 封面配色 */
.c1{ background:linear-gradient(155deg,#c9703a,#7a2f1c 55%,#24100b); }
.c2{ background:linear-gradient(155deg,#3a5a7a,#8a6a3f 55%,#141c26); }
.c3{ background:linear-gradient(155deg,#5c2740,#a84a6a 55%,#1d0d16); }
.c4{ background:linear-gradient(155deg,#2b3238,#6a7078 55%,#111417); }
.c5{ background:linear-gradient(155deg,#6a5a3a,#a88a4f 55%,#1f1a0d); }
.c6{ background:linear-gradient(155deg,#5c2a3a,#b85a5a 55%,#210f14); }
.c7{ background:linear-gradient(155deg,#8f1f2a,#d64a35 55%,#3a1015); }
.c8{ background:linear-gradient(155deg,#3a2b52,#8a5a9c 55%,#171122); }
.c9{ background:linear-gradient(155deg,#4a2f1e,#b07a3f 55%,#1c1209); }
.c10{ background:linear-gradient(155deg,#2b3b5c,#7f5a3c 55%,#141a24); }
.c11{ background:linear-gradient(155deg,#1e3f3a,#4f8f6e 55%,#0f1c19); }
.c12{ background:linear-gradient(155deg,#40243a,#9c4a7a 55%,#1a0f17); }
@media(max-width:1100px){ .rank__row{ grid-template-columns:repeat(4,1fr); } .rank__row .drama:nth-child(n+5){ display:none; } }
@media(max-width:640px){ .rank__row{ grid-template-columns:repeat(3,1fr); gap:12px; } .rank__row .drama:nth-child(n+4){ display:none; } .rank__head h2{ font-size:18px; } }

/* ============================================================
   功能亮点
   ============================================================ */
.features{ background:var(--bg-soft); border-block:1px solid var(--line); }
.features__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.feature{
  padding:32px 26px; border-radius:14px; background:var(--card);
  border:1px solid var(--line); transition:background .25s,transform .25s,border-color .25s;
}
.feature:hover{ background:var(--card-hi); transform:translateY(-5px); border-color:rgba(255,146,51,.35); }
.feature__icon{
  width:46px; height:46px; border-radius:12px; display:grid; place-items:center; margin-bottom:24px;
  background:rgba(255,126,13,.12); color:var(--orange-2);
}
.feature__icon svg{ width:24px; height:24px; }
.feature h3{ margin:0 0 10px; font-size:19px; font-weight:600; }
.feature p{ margin:0; color:var(--muted); font-size:14px; line-height:1.8; }
@media(max-width:980px){ .features__grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .features__grid{ grid-template-columns:1fr; } }

/* ============================================================
   界面预览
   ============================================================ */
.preview .shot{
  border-radius:14px; overflow:hidden; border:1px solid var(--line);
  box-shadow:0 30px 70px rgba(0,0,0,.5);
}
.preview .shot img{ width:100%; height:auto; }
.preview__note{ margin:22px 0 0; text-align:center; color:var(--faint); font-size:13px; }

/* ============================================================
   下载区
   ============================================================ */
.os-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.os-card{
  padding:38px 34px 34px; border-radius:16px; background:var(--card);
  border:1px solid var(--line); transition:border-color .3s,transform .3s,background .3s;
}
.os-card:hover{ border-color:rgba(255,146,51,.4); transform:translateY(-4px); background:var(--card-hi); }
.os-card__icon{
  width:54px; height:54px; border-radius:14px; display:grid; place-items:center; margin-bottom:22px;
  background:rgba(255,126,13,.12); color:var(--orange-2);
}
.os-card__icon svg{ width:30px; height:30px; }
.os-card h3{ margin:0; font-size:26px; font-weight:600; }
.os-card__hint{ margin:6px 0 24px; color:var(--faint); font-size:13px; }
.os-card ul{ list-style:none; padding:0; margin:0 0 30px; }
.os-card li{ position:relative; padding:9px 0 9px 26px; color:var(--muted); font-size:14px; border-bottom:1px solid var(--line); }
.os-card li:last-child{ border-bottom:0; }
.os-card li::before{ content:""; position:absolute; left:2px; top:16px; width:12px; height:7px; border-left:2px solid var(--orange-2); border-bottom:2px solid var(--orange-2); transform:rotate(-45deg); }
.os-card .btn{ width:100%; }
.os-card__file{ margin-top:14px; text-align:center; color:var(--faint); font-size:11.5px; letter-spacing:.08em; }
@media(max-width:720px){ .os-grid{ grid-template-columns:1fr; } .os-card{ padding:30px 24px; } }

/* 非官方声明 */
.notice{
  display:flex; gap:14px; align-items:flex-start; margin-top:46px; padding:22px 24px;
  border-radius:12px; background:rgba(255,255,255,.03); border:1px solid var(--line);
}
.notice svg{ width:22px; height:22px; flex:none; margin-top:2px; color:var(--orange-2); }
.notice h4{ margin:0 0 6px; font-size:15px; font-weight:600; }
.notice p{ margin:0; color:var(--muted); font-size:13px; line-height:1.8; }

/* ============================================================
   FAQ
   ============================================================ */
.faq{ background:var(--bg-soft); border-top:1px solid var(--line); }
.faq .sec-head{ margin-bottom:38px; }
.faq__list{ display:grid; gap:12px; max-width:900px; }
.faq__item{ border-radius:12px; background:var(--card); border:1px solid var(--line); overflow:hidden; transition:border-color .2s; }
.faq__item[open]{ border-color:rgba(255,146,51,.35); }
.faq__item summary{
  list-style:none; cursor:pointer; padding:20px 22px; display:flex; align-items:center; justify-content:space-between;
  gap:20px; font-size:16px; font-weight:500;
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary::after{ content:"+"; color:var(--orange-2); font-size:26px; font-weight:300; line-height:1; transition:transform .25s; }
.faq__item[open] summary::after{ transform:rotate(45deg); }
.faq__item p{ margin:0; padding:0 22px 22px; color:var(--muted); font-size:14px; line-height:1.85; }

/* ============================================================
   页脚
   ============================================================ */
.footer{ padding:32px 0; border-top:1px solid var(--line); }
.footer__inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer .brand{ font-size:16px; color:rgba(255,255,255,.9); }
.footer .brand__mark{ width:20px; height:20px; }
.footer .brand__mark::after{ border-left-width:7px; border-top-width:4px; border-bottom-width:4px; }
.footer__note{ margin:0; color:var(--faint); font-size:12px; }

/* toast */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,140%);
  max-width:min(90vw,460px); padding:14px 20px; border-radius:10px;
  background:#262728; color:#fff; border:1px solid rgba(255,146,51,.5);
  box-shadow:0 12px 30px rgba(0,0,0,.5); font-size:14px; text-align:center;
  z-index:150; opacity:0; transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .4s;
}
.toast.show{ transform:translate(-50%,0); opacity:1; }

/* 滚动淡入 */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in{ opacity:1; transform:none; }

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
  .reveal{ opacity:1; transform:none; }
}
