:root {
  --bg: #0b0b0f;
  --bg-soft: #16161d;
  --card: #1c1c26;
  --line: #2a2a36;
  --text: #f2f2f5;
  --sub: #9a9aa8;
  /* 主基调：明黄 → 琥珀 */
  --brand: #ffc531;
  --brand2: #ff8a00;
  /* 品牌色做底色时的文字色。黄底配白字几乎看不见，必须用深色 */
  --on-brand: #3d2700;
  --gold: #ffc531;
  /* 全站统一品牌黄：登录/注册/「我的」页的身份卡与主按钮都复用 --brand/--brand2，
     不再单独引入第二种主色，避免大面积撞色 */
  --tabbar-h: 1.49333rem;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  /* 防 Android WebView 的文本自动缩放把字号改掉 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  /* 字体栈要覆盖本项目所有语种：拉丁（英/印尼/越南）、泰文、中文。
     CSS 是逐字符回退的，某个字形在前面的字体里没有就往后找，
     所以顺序只要保证「每个语种至少有一款字体能兜住」即可。 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Tahoma",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior-y: none;
}

/* ---------- 多语言排版 ---------- */
/* 泰文的元音/声调是上下叠加的，越南语有多个变音符号堆叠，
   标准行高会把这些辅助符号切掉，这两个语种整体放宽。
   html[data-lang] 由 i18n.js 的 applyLocale 写入。 */
html[data-lang="th"] body,
html[data-lang="vi"] body { line-height: 1.6; }
html[data-lang="th"] .card .t, html[data-lang="th"] .card .desc,
html[data-lang="th"] .pinfo .pt, html[data-lang="th"] .pinfo .pd,
html[data-lang="th"] .pd, html[data-lang="th"] .trialbar,
html[data-lang="th"] .sheet h3, html[data-lang="th"] .langitem .ln,
html[data-lang="th"] .nick { line-height: 1.75; }

/* 同一句话换成泰文/英文后长度能翻一倍，别把容器撑破。
   换行优先，而不是硬挤出横向滚动。 */
.btn, .tb span, .epchip, .chip, .langbtn b { overflow-wrap: anywhere; }
.langitem .ln { overflow-wrap: anywhere; }
.tabbar .tb span { max-width: 100%; text-align: center; }

body { padding-bottom: var(--tabbar-h); }

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
/* 卡片/Banner/广告都是 <a> 包裹，不设 color 会吃浏览器默认的蓝色，在深色底上看不清 */
a { color: inherit; text-decoration: none; }

/* ---------- 通用 ---------- */
.page { min-height: 100vh; min-height: calc(var(--vh, 1vh) * 100); padding-bottom: 0.64rem; }
.hd {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 0.32rem;
  padding: 0.37333rem 0.42667rem;
  background: linear-gradient(180deg, rgba(11,11,15,.96), rgba(11,11,15,.72));
  backdrop-filter: blur(0.32rem);
}
.hd h1 { margin: 0; font-size: 0.50667rem; font-weight: 700; letter-spacing: .0.13333rem; }
.hd .logo { font-size: 0.50667rem; font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spacer { flex: 1; }

.chips { display: flex; gap: 0.21333rem; overflow-x: auto; padding: 0.10667rem 0.42667rem 0.32rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 0.18667rem 0.4rem; border-radius: 26.64rem;
  background: var(--bg-soft); color: var(--sub); font-size: 0.34667rem;
  border: 1px solid var(--line); transition: .15s;
}
.chip.on { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand); border-color: transparent; font-weight: 600; }

/* ---------- 顶栏 + 搜索 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 0.26667rem;
  padding: 0.26667rem 0.37333rem;
  background: rgba(11,11,15,.96); backdrop-filter: blur(0.37333rem);
}
/* 纯图片 Logo：原先「小图标 + 站点名称文字」的总占位全部让给这一张横版图。
   横版比例约 3:1，用 contain 保证任何后台上传的图都不会被裁掉。 */
.topbar .brand { flex: none; display: flex; align-items: center; max-width: 42%; overflow: hidden; }
.topbar .brand .logo { width: 2.66667rem; height: 0.93333rem; object-fit: contain; object-position: left center; flex: none; display: block; }
.topbar .brand .logo-ph { font-size: 0.50667rem; line-height: 1; flex: none; }

/* 二级页面顶栏左侧的返回键，占位和品牌区一致，切换时布局不会跳。
   .topbar（搜索页）与 .hd（追剧/订单/邀请/回家的路等二级页）共用同一套样式 */
.topbar .backbtn, .hd .backbtn {
  flex: none; width: 0.8rem; height: 0.8rem; margin-left: -0.13333rem;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; color: var(--text);
  border-radius: 0.24rem; cursor: pointer;
  transition: background .15s, transform .15s;
}
.topbar .backbtn:active, .hd .backbtn:active { background: rgba(255,255,255,.09); transform: scale(.9); }
.searchbox {
  /* min-width:0 必须写：flex 项默认按内容计算最小宽度，input 的默认宽度会把
     整行撑破，把右边的语言按钮挤到屏幕外面去 */
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.21333rem;
  height: 1.01333rem; padding: 0 0.37333rem; border-radius: 26.64rem;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.searchbox .si { flex: none; font-size: 0.37333rem; opacity: .6; }
.searchbox input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: none; outline: none;
  color: var(--text); font-size: 0.37333rem;
}
.searchbox input::placeholder { color: var(--sub); }
.searchbox .clear { flex: none; font-size: 0.4rem; color: var(--sub); padding: 0 2px; }

/* ---------- 语言切换 ---------- */
.langbtn {
  flex: none; display: flex; align-items: center; gap: 0.10667rem;
  height: 0.90667rem; padding: 0 0.29333rem; border-radius: 26.64rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); font-size: 0.32rem; transition: transform .15s, border-color .15s;
}
.langbtn:active { transform: scale(.94); }
.langbtn .gl { font-size: 0.34667rem; opacity: .85; }
.langbtn b { font-size: 0.34667rem; line-height: 1; }
/* 「我的 / 追剧」页的标题栏是 flex，靠 margin-left:auto 把按钮顶到最右 */
.hd .langbtn { margin-left: auto; }

.langsheet h3 { margin: 0; }
.langlist { display: flex; flex-direction: column; gap: 0.16rem; margin-top: 0.37333rem; }
.langitem {
  display: flex; align-items: center; gap: 0.26667rem;
  padding: 0.32rem 0.37333rem; border-radius: 0.32rem; text-align: left;
  background: var(--bg-soft); border: 1px solid var(--line);
  transition: transform .15s, background .15s;
}
.langitem:active { transform: scale(.98); }
.langitem.on {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-color: transparent; color: var(--on-brand); font-weight: 700;
}
.langitem .lf { flex: none; font-size: 0.48rem; line-height: 1; }
.langitem .ln { flex: 1; min-width: 0; font-size: 0.4rem; }
.langitem .lc { flex: none; font-size: 0.29333rem; opacity: .5; letter-spacing: .0.08rem; }
.langitem.on .lc { opacity: .75; }

/* ---------- Banner 轮播 ---------- */
.banner { position: relative; margin: 0.10667rem 0.37333rem 0; border-radius: 0.42667rem; overflow: hidden; aspect-ratio: 16/10; background: #17171f; }
.banner .track { display: flex; height: 100%; transition: transform .42s cubic-bezier(.2,.9,.3,1); will-change: transform; }
.banner .slide { position: relative; flex: 0 0 100%; height: 100%; display: block; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner .ov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 38%, rgba(0,0,0,.84) 100%); }
.banner .txt { position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.85333rem; }
.banner .bt { font-size: 0.50667rem; font-weight: 800; color: #fff; line-height: 1.2; text-shadow: 0 2px 0.26667rem rgba(0,0,0,.75); }
.banner .bs { margin-top: 0.13333rem; font-size: 0.32rem; color: rgba(255,255,255,.8); text-shadow: 0 1px 0.16rem rgba(0,0,0,.7);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.banner .dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0.32rem; display: flex; gap: 0.16rem; z-index: 2; }
.banner .dot { width: 0.16rem; height: 0.16rem; border-radius: 0.08rem; background: rgba(255,255,255,.42); transition: .25s; }
.banner .dot.on { width: 0.48rem; background: var(--gold); }
.banner .nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 0.74667rem; height: 0.74667rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.34); color: #fff; font-size: 0.4rem; backdrop-filter: blur(0.10667rem);
}
.banner .nav.l { left: 0.21333rem; }
.banner .nav.r { right: 0.21333rem; }

/* ---------- 公告栏 ---------- */
.notice {
  display: flex; align-items: center; gap: 0.21333rem;
  margin: 0.32rem 0.37333rem 0; padding: 0.24rem 0.32rem; border-radius: 0.26667rem;
  background: rgba(255,180,0,.10); border: 1px solid rgba(255,180,0,.28);
  font-size: 0.32rem; overflow: hidden;
}
.notice .tag { flex: none; display: flex; align-items: center; gap: 0.10667rem; color: var(--brand); font-weight: 700; }
.notice .vp { flex: 1; min-width: 0; overflow: hidden; height: 0.45333rem; position: relative; }
.notice .vp .inner {
  position: absolute; left: 0; top: 0;
  display: flex; white-space: nowrap;
  color: rgba(255,255,255,.86);
  animation: marquee 20s linear infinite;
}
.notice .vp .inner span { padding-right: 1.6rem; }
.notice .vp .inner:hover { animation-play-state: paused; }
/* 两段等宽内容接续滚动，实现无缝且一开始就可见 */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.notice .cls { flex: none; color: var(--sub); font-size: 0.37333rem; padding: 0 2px; }

/* ---------- 分区标题 ---------- */
[data-sec] { scroll-margin-top: 1.54667rem; }
.sec-hd { display: flex; align-items: center; margin: 0.58667rem 0.37333rem 0.32rem; }
.sec-hd .bar { flex: none; width: 0.10667rem; height: 0.42667rem; border-radius: 2px; background: var(--brand); margin-right: 0.21333rem; }
.sec-hd h2 { margin: 0; font-size: 0.42667rem; font-weight: 800; letter-spacing: .0.08rem; }
.sec-hd .more { margin-left: auto; font-size: 0.32rem; color: var(--sub); }

/* ---------- 剧集卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.32rem; padding: 0 0.37333rem; align-items: stretch; }
.card { background: var(--card); border-radius: 0.32rem; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .cover { position: relative; aspect-ratio: 3/4; background: #222; flex: none; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
/* 构建层降级：老内核不认 aspect-ratio 时封面高度会塌成 0，卡片全叠在一起。
   这里退回 padding-top 撑比例（3:4 → 133.333%），图片改绝对定位填满 */
@supports not (aspect-ratio: 3/4) {
  .card .cover { height: 0; padding-top: 133.333%; overflow: hidden; }
  .card .cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}
.card .newtag {
  position: absolute; left: 0.18667rem; top: 0.18667rem; padding: 2px 0.18667rem; border-radius: 0.13333rem;
  font-size: 0.26667rem; font-weight: 700; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand);
}
.card .score {
  position: absolute; right: 0.18667rem; top: 0.18667rem; padding: 2px 0.18667rem; border-radius: 0.16rem;
  font-size: 0.29333rem; font-weight: 700; color: var(--gold);
  background: rgba(0,0,0,.52); backdrop-filter: blur(0.10667rem);
}
.card .upd {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.42667rem 0.21333rem 0.16rem;
  font-size: 0.26667rem; color: rgba(255,255,255,.92);
  background: linear-gradient(transparent, rgba(0,0,0,.86));
}
.card .eps {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.42667rem 0.21333rem 0.16rem;
  font-size: 0.26667rem; color: rgba(255,255,255,.92);
  background: linear-gradient(transparent, rgba(0,0,0,.86));
}
.card .body { padding: 0.24rem 0.26667rem 0.29333rem; }
.card .t { font-size: 0.37333rem; font-weight: 700; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card .desc { margin-top: 0.13333rem; font-size: 0.29333rem; color: var(--sub); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { margin-top: 0.18667rem; display: flex; gap: 0.10667rem; flex-wrap: wrap; }
.card .tags span { font-size: 0.26667rem; padding: 2px 0.16rem; border-radius: 0.10667rem; background: rgba(255,255,255,.07); color: var(--sub); }

/* ---------- 热播榜：一列三排横条目（区别于其它类目的 2 列网格） ---------- */
/* 借鉴参考图的「榜单」语言：标题前黄色火焰、每行左侧黄色大号排名 + 竖版封面、
   右侧标题/评分/标签/热力。一行一条、纵向堆叠三排，不再横排挤压。 */
.sec-hot { margin-top: 0.58667rem; }
.hot-hd { display: flex; align-items: center; padding: 0 0.37333rem; margin-bottom: 0.32rem; }
.hot-hd .flame { flex: none; font-size: 0.56rem; margin-right: 0.21333rem; line-height: 1; filter: drop-shadow(0 0.05333rem 0.10667rem rgba(255,138,0,.4)); }
.hot-hd h2 { margin: 0; font-size: 0.42667rem; font-weight: 800; color: #fff; }
.hot-hd .more { margin-left: auto; font-size: 0.32rem; color: var(--sub); }
.hotlist { display: flex; flex-direction: column; gap: 0.26667rem; padding: 0 0.37333rem; }
.hotitem {
  display: flex; gap: 0.32rem; align-items: stretch; background: var(--card);
  border: 1px solid var(--line); border-radius: 0.32rem; overflow: hidden; padding: 0.21333rem;
}
/* 第一名：黄色细描边，呼应参考图的第 1 名卡 */
.hotitem.rank-1 { border-color: var(--brand); box-shadow: 0 0 0 0.05333rem rgba(255,197,49,.35); }
.hotitem .hthumb {
  position: relative; flex: none; width: 2.4rem; aspect-ratio: 3/4;
  border-radius: 0.21333rem; overflow: hidden; background: #222;
}
.hotitem .hthumb img { width: 100%; height: 100%; object-fit: cover; }
@supports not (aspect-ratio: 3/4) {
  .hotitem .hthumb { height: 0; padding-top: 133.333%; overflow: hidden; }
  .hotitem .hthumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}
.hotitem .hrank {
  position: absolute; left: 0.16rem; top: 0.13333rem; line-height: 1;
  font-size: 0.64rem; font-weight: 900; font-style: italic; color: var(--brand);
  text-shadow: 0 0.02667rem 0.10667rem rgba(0,0,0,.7);
}
.hotitem .newtag {
  position: absolute; right: 0.16rem; top: 0.16rem; padding: 2px 0.18667rem; border-radius: 0.13333rem;
  font-size: 0.26667rem; font-weight: 700; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand);
}
.hotitem .hbody { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hotitem .ht {
  font-size: 0.4rem; font-weight: 700; color: #fff; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hotitem .hmeta { display: flex; gap: 0.21333rem; align-items: center; margin-top: 0.24rem; font-size: 0.26667rem; }
.hotitem .hscore { color: var(--gold); font-weight: 600; }
.hotitem .hheat { color: var(--brand); font-weight: 600; }
.hotitem .hupd { margin-top: 0.24rem; font-size: 0.24rem; color: var(--sub); }
.hotitem .htags { display: flex; gap: 0.10667rem; margin-top: 0.24rem; flex-wrap: wrap; }
.hotitem .htags span { font-size: 0.24rem; padding: 1px 0.13333rem; border-radius: 0.10667rem; background: rgba(255,255,255,.07); color: var(--sub); }

/* ---------- 网格内广告卡（复用 .card 视觉，右上角小"广告"标识） ---------- */
/* 广告卡与短剧卡片同尺寸同样式，仅封面右上角多一个极小的"广告"二字标识，
   点击率更高且不破坏网格对齐。禁用广告时该分类直接显示 4 部短剧。 */
.adcard .admark {
  position: absolute; right: 0.18667rem; top: 0.18667rem; padding: 1px 0.16rem; border-radius: 0.10667rem;
  font-size: 0.24rem; font-weight: 600; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.45); backdrop-filter: blur(0.10667rem);
}

/* ---------- 播放页 ---------- */
/* 全屏容器用 position: fixed 四边钉死，高度再用 JS 实测值 --ph 覆盖。
   不依赖 100vh / 100dvh：国产内核要么把地址栏工具栏算进去，要么直接丢弃 dvh，
   结果都是容器比可视区高一截，把右侧点赞列和底部剧名顶到屏幕外。
   不依赖 scroll-snap 和原生滚动：老内核支持不全，mandatory 还会把滚动锁死
   （表现就是「上滑没反应」）。切集交给 JS 手势 + transform 位移，纯 JS 人人支持。 */
.player {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100%;
  height: calc(var(--ph, 100%));
  z-index: 60; background: #000; overflow: hidden;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
/* 手势只改这一层的 transform，不碰原生滚动 */
.player .strack {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  will-change: transform;
}
.player .strack.anim { transition: transform .28s cubic-bezier(.25,.9,.3,1); }
.player .slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; background: #000;
}
/* video 绝对定位钉进 .slide：不参与文档流，
   避免部分内核给 video 塞进额外高度，把点赞列和底部信息顶出屏幕 */
.player .slide video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  background: #000; display: block;
}
/* 横屏视频：全宽居中、完整展示（letterbox），不再被竖屏的 cover 裁掉上下黑边内容 */
.player .slide video.landscape { object-fit: contain; }
/* 系统原生全屏（Android / 桌面 Chrome 等）：铺满整屏、黑底，
   横屏视频依旧由 .landscape 走 contain 居中完整展示 */
.player:fullscreen, .player:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; }
.player .mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 28%, transparent 55%, rgba(0,0,0,.78) 100%); pointer-events: none; }
/* UI 层全局只有一份，跟着当前集更新内容，不随手势位移 ——
   这样点赞列 / 剧名 / 进度条永远钉在可视区内，不可能被顶出屏幕 */
.player .ui { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 7; pointer-events: none; }
.player .ui > * { pointer-events: auto; }

/* 封禁遮罩：覆盖整屏，彻底阻断播放，文案居中 */
.banned-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 0.85333rem; background: radial-gradient(circle at 50% 38%, #2a2030 0%, #14121a 70%); }
.banned-box { max-width: 8.53333rem; text-align: center; color: #fff; }
.banned-ic { font-size: 1.44rem; line-height: 1; margin-bottom: 0.37333rem; }
.banned-t { font-size: 0.50667rem; font-weight: 700; margin-bottom: 0.26667rem; }
.banned-d { font-size: 0.34667rem; line-height: 1.7; color: rgba(255,255,255,.72); }

/* 我的页封禁提示条 */
.ban-notice { margin: 0.32rem 0.37333rem 0; padding: 0.32rem 0.37333rem; border-radius: 0.32rem; background: rgba(255,45,85,.12); border: 1px solid rgba(255,45,85,.4); color: #ffb3c2; font-size: 0.34667rem; line-height: 1.6; }

/* 不用 flex gap：老内核（UC/夸克/部分厂商）支持不全，间距会整段消失。统一改 margin */
/* bottom 先写普通值、再写 calc+env：老内核不认 env() 时整条 calc 会被丢弃，
   有前置值兜底才不会让定位属性整个失效 */
/* z-index 整体抬高：国产内核会给 video 套一层自带控件/代理层，
   那层的层级大约压在 z-index 3~5 之间——原来的 3 正好被吃掉，
   表现就是「进度条(6)看得到，点赞列和剧名看不到」。现在统一抬到 7 以上 */
.side { position: absolute; right: 0.26667rem; bottom: 4rem; bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; z-index: 7; }
.side .ic + .ic { margin-top: 0.48rem; }
.side .ic { display: flex; flex-direction: column; align-items: center; font-size: 0.29333rem; color: #fff; text-shadow: 0 1px 0.10667rem rgba(0,0,0,.6); }
.side .ic i + span { margin-top: 0.10667rem; }
/* 图标改由 SVG 绘制，font-size 只负责下面的数字/文字标签 */
.side .ic i { width: 1.12rem; height: 1.12rem; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-style: normal; backdrop-filter: blur(0.16rem); transition: background .2s, color .2s, transform .22s cubic-bezier(.34,1.56,.64,1); }
.side .ic i svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.side .ic:active i { transform: scale(.9); }
/* 点赞态用红心白底：原来沿用品牌渐变底，跟分享、评论的灰底拉不开差距 */
.side .ic.like.on i { background: rgba(255,255,255,.94); color: #ff2d55; }
.side .ic.like.on i svg { filter: none; }
.side .ic.like.on span { color: #ffd7de; }
/* 复制成功后 ✓ 弹一下，静态图标看不出有没有生效 */
.side .ic i.pop { animation: icPop .42s cubic-bezier(.34,1.56,.64,1); }
@keyframes icPop { 0% { transform: scale(.62) } 58% { transform: scale(1.16) } 100% { transform: scale(1) } }

/* 贴近底部进度条：原来 bottom:2.02667rem，离进度条有 0.96rem 空当 */
.pinfo { position: absolute; left: 0.37333rem; right: 2.02667rem; bottom: 1.38667rem; bottom: calc(1.38667rem + env(safe-area-inset-bottom, 0px)); z-index: 7; color: #fff; }
.pinfo .pt { font-size: 0.37333rem; font-weight: 700; text-shadow: 0 1px 0.16rem rgba(0,0,0,.7); }
/* 简介只占一行，别再挤两行压画面 */
.pinfo .pd { margin-top: 0.08rem; font-size: 0.32rem; color: rgba(255,255,255,.72); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0.10667rem rgba(0,0,0,.7); }

/* 选集默认折叠，点展开条才露出来 */
.epbar { display: flex; align-items: center; justify-content: space-between; gap: 0.16rem; margin-top: 0.24rem; }
.eptoggle { display: inline-flex; align-items: center; gap: 0.13333rem; padding: 0.10667rem 0.26667rem; border-radius: 26.64rem; background: rgba(255,255,255,.16); color: #fff; font-size: 0.29333rem; backdrop-filter: blur(0.16rem); transition: .18s; }
/* 收起：展开后才出现，靠右对齐，正好落在选集网格最右那一列的正上方 */
.epclose { flex: none; display: inline-flex; align-items: center; gap: 0.10667rem; padding: 0.10667rem 0.24rem; border-radius: 26.64rem; background: rgba(255,255,255,.16); color: #fff; font-size: 0.29333rem; backdrop-filter: blur(0.16rem); transition: .18s; }
.epclose i { font-style: normal; font-size: 0.26667rem; opacity: .85; }
.epclose:active { background: rgba(255,255,255,.32); }
.eptoggle .arw { font-style: normal; font-size: 0.26667rem; opacity: .85; transition: transform .2s; }
.pinfo.open .eptoggle { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand); font-weight: 700; }
.pinfo.open .eptoggle .arw { color: var(--on-brand); }
.pinfo.open .eptoggle .arw { transform: rotate(90deg); }
/* 用 .pinfo 提高特异性，否则后面 .epstrip 那条会把它重新显示出来 */
.pinfo .epstrip { display: none; }
.pinfo.open .epstrip { display: grid; }
/* 选集由「单行横向滚动」改成「4 列网格铺开」：
   原来受容器宽度限制只能露出约 6 个，且横向滑动会被播放页左右切集的手势抢走，
   等于后面的集根本点不到。网格 + 纵向滚动既能一眼看全，又不跟手势打架。 */
.epstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.16rem; margin-top: 0.21333rem; max-height: 7.2rem; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.epstrip::-webkit-scrollbar { display: none; }
/* 正方形按钮：宽由网格列宽决定，高用 aspect-ratio 跟着走，不用写死高度 */
.epchip { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 0.16rem; background: rgba(255,255,255,.18); font-size: 0.29333rem; backdrop-filter: blur(0.16rem); }
.epchip.on { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand); font-weight: 700; }
/* 未解锁的集：右上角挂黄色角标显示解锁所需积分（替代原来的 🔒 图标）
   圆角只给右上和左下 —— 左上/右下留直角，贴着按钮的边角看起来更利落 */
.epchip .epcost { position: absolute; top: 0; right: 0; padding: 0 0.08rem; border-radius: 0 0.16rem 0 0.10667rem; background: var(--gold); color: #4a2c00; font-size: 0.16rem; font-weight: 700; line-height: 1.4; white-space: nowrap; pointer-events: none; }
/* 当前集用的是品牌渐变底，黄角标压上去会糊，改成白底 */
.epchip.on .epcost { background: #fff; color: var(--brand2); }

.ptop { position: absolute; left: 0.32rem; top: 0.37333rem; z-index: 8; display: flex; align-items: center; gap: 0.26667rem; }
.pback { width: 0.90667rem; height: 0.90667rem; border-radius: 50%; background: rgba(0,0,0,.4); display: grid; place-items: center; font-size: 0.45333rem; backdrop-filter: blur(0.16rem); }
.ptop .vn { font-size: 0.37333rem; font-weight: 600; text-shadow: 0 1px 0.10667rem rgba(0,0,0,.7); }

.pcenter { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; z-index: 8; pointer-events: none; }
/* hidden 属性来自 UA 样式表，优先级低于任何类选择器，必须显式兜住，
   否则 JS 里设 hidden=true 也不生效，中间按钮会一直杵在画面上 */
.pcenter[hidden] { display: none; }
.pcenter .playbtn { pointer-events: auto; width: 1.65333rem; height: 1.65333rem; border-radius: 50%; background: rgba(0,0,0,.42); display: grid; place-items: center; font-size: 0.64rem; backdrop-filter: blur(0.16rem); }

/* ---------- 进度条 + 最右侧倍速 / 静音 ---------- */
/* 同上：gap 改 margin；底部再加 safe-area，避免被手势条/虚拟导航压住 */
.pbar { position: absolute; left: 0.32rem; right: 0.32rem; bottom: 0.37333rem; bottom: calc(0.37333rem + env(safe-area-inset-bottom, 0px)); z-index: 9; display: flex; align-items: center; }
.pbar > * + * { margin-left: 0.26667rem; }
/* 轨道撑到 0.48rem 高只为手指好按，可见线仍是 0.08rem */
.pbar .ptrack { flex: 1; min-width: 0; height: 0.48rem; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pbar .pline { position: relative; width: 100%; height: 0.08rem; border-radius: 26.64rem; background: rgba(255,255,255,.3); }
.pbar .pfill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 26.64rem; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.pbar .pdot { position: absolute; top: 50%; left: 0; width: 0.29333rem; height: 0.29333rem; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); box-shadow: 0 1px 0.10667rem rgba(0,0,0,.6); }
.pbar .ptime { flex: none; font-size: 0.29333rem; color: rgba(255,255,255,.82); font-variant-numeric: tabular-nums; text-shadow: 0 1px 0.10667rem rgba(0,0,0,.7); }
.pbar .pbtn { flex: none; height: 0.69333rem; min-width: 1.06667rem; padding: 0 0.24rem; border-radius: 0.21333rem; background: rgba(255,255,255,.16); color: #fff; font-size: 0.32rem; font-weight: 700; backdrop-filter: blur(0.16rem); text-shadow: none; }
.pbar .pbtn.off { color: var(--sub); }
.pbar .pbtn.hi { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand); }

/* 试看提示并入信息区跟着走，不再单独绝对定位 —— 否则信息区下移后会被它顶到 */
.trialbar { margin-top: 0.16rem; font-size: 0.32rem; color: var(--gold); text-shadow: 0 1px 0.10667rem rgba(0,0,0,.8); }

/* ---------- 我的 ---------- */
.mecard { margin: 0.37333rem 0.42667rem; padding: 0.48rem; border-radius: 0.42667rem; background: linear-gradient(135deg, #2b2109, #1c1c26); border: 1px solid var(--line); }
.mecard .row { display: flex; align-items: center; gap: 0.32rem; }
.avatar { width: 1.38667rem; height: 1.38667rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--on-brand); display: grid; place-items: center; font-size: 0.58667rem; font-weight: 700; }
.mecard .nick { font-size: 0.42667rem; font-weight: 700; }
.mecard .uid { font-size: 0.29333rem; color: var(--sub); margin-top: 2px; }
.viptag { margin-left: auto; padding: 0.10667rem 0.26667rem; border-radius: 26.64rem; font-size: 0.29333rem; font-weight: 700; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand); }
.viptag.off { background: var(--bg-soft); color: var(--sub); }

.stats { display: flex; margin: 0.42667rem 0.42667rem 0; border-radius: 0.37333rem; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.stat { flex: 1; padding: 0.37333rem 0.21333rem; text-align: center; }
.stat b { display: block; font-size: 0.45333rem; }
.stat span { font-size: 0.29333rem; color: var(--sub); }

.sec { margin: 0.58667rem 0.42667rem 0.26667rem; font-size: 0.37333rem; font-weight: 700; display: flex; align-items: center; }
.sec .sp { flex: 1; }
.sec .more { font-size: 0.32rem; color: var(--sub); font-weight: 400; }

.hlist { display: flex; gap: 0.26667rem; overflow-x: auto; padding: 0 0.42667rem; scrollbar-width: none; }
.hlist::-webkit-scrollbar { display: none; }
.hcard { flex: none; width: 2.56rem; }
.hcard .c { aspect-ratio: 3/4; border-radius: 0.26667rem; overflow: hidden; background: #222; }
.hcard .c img { width: 100%; height: 100%; object-fit: cover; }
.hcard .n { margin-top: 0.16rem; font-size: 0.32rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .e { font-size: 0.29333rem; color: var(--sub); }

.order { margin: 0 0.42667rem 0.21333rem; padding: 0.32rem 0.37333rem; border-radius: 0.32rem; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 0.26667rem; font-size: 0.34667rem; }
.order .amt { margin-left: auto; font-weight: 700; color: var(--brand); }
.order .ty { font-size: 0.29333rem; color: var(--sub); }

/* 我的订单：三列表格（订单类型 / 消费金额 / 订单时间） */
.orderwrap { margin: 0 0.42667rem 0.32rem; }
.orderhead, .orderrow { display: flex; align-items: center; gap: 0.26667rem; padding: 0.29333rem 0.37333rem; font-size: 0.34667rem; }
.orderhead { color: var(--sub); font-size: 0.32rem; border-bottom: 1px solid var(--line); }
.orderrow { border-radius: 0.32rem; background: var(--card); border: 1px solid var(--line); }
.orderrow + .orderrow { margin-top: 0.16rem; }
.orderhead span:nth-child(1), .orderrow .ot { flex: 1.4; }
.orderhead span:nth-child(2), .orderrow .oa { flex: 1; text-align: right; font-weight: 700; color: var(--brand); }
.orderhead span:nth-child(3), .orderrow .otm { flex: 1.2; text-align: right; color: var(--sub); }
.ordermore { width: 100%; margin-top: 0.21333rem; }

.btn { display: block; width: calc(100% - 0.85333rem); margin: 0.32rem 0.42667rem 0; padding: 0.34667rem; border-radius: 0.32rem; font-size: 0.4rem; font-weight: 600; text-align: center; }
.btn.primary { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--text); }

/* ---------- 底部 tab ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: var(--tabbar-h); display: flex;
  background: rgba(14,14,20,.94); backdrop-filter: blur(0.37333rem);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.29333rem; color: var(--sub); }
.tabbar .tb i { font-style: normal; font-size: 0.50667rem; }
.tabbar .tb.on { color: var(--brand); }

/* ---------- 在线客服悬浮按钮（Telegram） ---------- */
.svc {
  position: fixed; right: 0.32rem; top: 62%; z-index: 60;
  width: 1.14667rem; height: 1.14667rem; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05333rem;
  background: #229ED9; color: #fff; border: none; cursor: pointer;
  box-shadow: 0 0.16rem 0.42667rem rgba(34,158,217,.45);
  transition: transform .15s;
}
.svc svg { width: 0.56rem; height: 0.56rem; display: block; }
.svc .svc-label { font-size: 0.24rem; font-weight: 700; line-height: 1; }
.svc:active { transform: scale(.92); }
/* LINE 绿：客服工具切到 LINE 时由 JS 加 class="svc line"，覆盖默认 Telegram 蓝 */
.svc.line { background: #06C755; box-shadow: 0 0.16rem 0.42667rem rgba(6,199,85,.45); }

/* ---------- APP 悬浮按钮（下载客户端入口，位于客服之上，圆形同色） ---------- */
.appbtn {
  /* 紧贴客服按钮上方：客服在 top:62%，本按钮高 1.2rem，留 0.4rem 间距 */
  position: fixed; right: 0.32rem; top: calc(62% - 1.2rem - 0.4rem); z-index: 60;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05333rem;
  background: #229ED9; color: #fff; border: none; cursor: pointer;
  box-shadow: 0 0.16rem 0.42667rem rgba(34,158,217,.45);
  transition: transform .15s;
}
.appbtn svg { width: 0.56rem; height: 0.56rem; display: block; }
.appbtn .appbtn-label { font-size: 0.24rem; font-weight: 700; line-height: 1; }
.appbtn:active { transform: scale(.92); }

/* ---------- 客户端下载页 ---------- */
.appdownload { padding: 0 0.42667rem calc(var(--tabbar-h) + 0.85333rem); }
.apphero { text-align: center; padding: 0.85333rem 0 0.64rem; }
/* 下载页同样只放一张完整横版 Logo，不再叠品牌黄文字 */
.apphero-logo { display: inline-flex; align-items: center; }
.apphero-logo .brand { display: inline-flex; align-items: center; }
.apphero-logo .brand .logo { width: 4.8rem; height: 1.56rem; object-fit: contain; display: block; }
.apphero-logo .brand .logo-ph { font-size: 0.64rem; line-height: 1; }
.apphero-sub { color: var(--sub); font-size: 0.37333rem; margin-top: 0.32rem; }
.dlbtns { display: flex; flex-direction: column; gap: 0.32rem; margin-top: 0.64rem; }
.dlbtn {
  display: flex; align-items: center; gap: 0.32rem; padding: 0.42667rem;
  border-radius: 0.32rem; background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; text-align: left; cursor: pointer; width: 100%;
}
.dlbtn .dl-ic { font-size: 0.64rem; line-height: 1; display: flex; align-items: center; }
.dlbtn .dl-ic svg { height: 0.64rem; width: auto; display: block; }
.dlbtn .dl-tx { display: flex; flex-direction: column; }
.dlbtn .dl-tx b { font-size: 0.45333rem; }
.dlbtn .dl-tx i { font-style: normal; font-size: 0.32rem; color: var(--sub); margin-top: 0.05333rem; }
/* 下载按钮加品牌黄边框 + 同色微光，更醒目 */
.dlbtn.android, .dlbtn.ios { border: 2px solid var(--brand); box-shadow: 0 0.16rem 0.42667rem rgba(255,197,49,.22); }
.pwacard { margin-top: 0.85333rem; padding: 0.42667rem; border-radius: 0.32rem; background: var(--card); border: 1px solid var(--line); text-align: center; }
.pwa-title { font-size: 0.42667rem; font-weight: 700; }
.pwa-desc { color: var(--sub); font-size: 0.34667rem; margin: 0.21333rem 0 0.32rem; }
.pwa-steps { text-align: left; color: var(--sub); font-size: 0.34667rem; padding-left: 0.64rem; margin: 0 0 0.42667rem; }
.pwa-steps li { margin: 0.16rem 0; }
.pwacard .btn { width: 100%; margin-top: 0.10667rem; }
.pwa-hint { color: var(--sub); font-size: 0.32rem; margin-top: 0.32rem; }

/* ---------- 充值页 ---------- */
.rechargepage .rcmain { padding: 0.64rem 0.42667rem; display: flex; flex-direction: column; gap: 0.42667rem; }
.rechargepage .rcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 0.32rem;
  padding: 0.42667rem; text-align: center;
}
.rechargepage .rclabel { font-size: 0.32rem; color: var(--sub); }
.rechargepage .rcval { font-size: 0.64rem; font-weight: 800; color: var(--gold); margin-top: 0.16rem; }
.rechargepage .rcunit { font-size: 0.32rem; font-weight: 400; color: var(--sub); margin-left: 0.08rem; }
.rechargepage .rcpacks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.26667rem; }
.rechargepage .rcpack {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.13333rem; padding: 0.42667rem 0.2rem; border-radius: 0.32rem;
  border: 1px solid var(--line); background: var(--card); color: #fff;
}
.rechargepage .rcpack .rcp { font-size: 0.45333rem; font-weight: 800; color: var(--gold); }
.rechargepage .rcpack .rcpoints { font-size: 0.26667rem; color: var(--sub); }
.rechargepage .rcpack .rcktag {
  position: absolute; top: 0.10667rem; left: 0.10667rem; font-size: 0.24rem; font-weight: 700;
  padding: 1px 0.13333rem; border-radius: 0.10667rem;
  background: linear-gradient(90deg, var(--brand), var(--brand2)); color: var(--on-brand);
}
.rechargepage .rcpack:active { transform: scale(.97); }
.rechargepage .rctip { font-size: 0.26667rem; color: var(--sub); text-align: center; line-height: 1.5; }
/* 充值页的 VIP 横幅：.vipcard 默认的负 margin 是 mepage 贴头用的，放进充值页会左右各多伸
   0.42667rem、比积分卡/充值档位宽，此处归零，宽度与上下模块一致（padding 已是同款 0.42667rem） */
.rechargepage .vipcard { margin: 0; }

/* 充值页底部「积分明细」入口 */
.rechargepage .rcpointsEntry {
  display: flex; align-items: center; gap: 0.26667rem;
  padding: 0.37333rem 0.42667rem; border-radius: 0.32rem;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); text-decoration: none;
}
.rechargepage .rcpointsEntry:active { transform: scale(.99); border-color: var(--brand); }
.rechargepage .rceTxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.08rem; }
.rechargepage .rceTxt b { font-size: 0.37333rem; font-weight: 700; }
.rechargepage .rceTxt small { font-size: 0.26667rem; color: var(--sub); }
.rechargepage .rceChev { flex: none; display: flex; color: var(--sub); }
.rechargepage .rceChev svg { width: 0.42667rem; height: 0.42667rem; }

/* ---------- 积分明细页（与后台「积分记录」四列同构：积分 / 业务类型 / 内容描述 / 时间） ---------- */
.pointspage .pointsCard {
  margin: 0.42667rem; padding: 0.42667rem; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 0.32rem;
}
.pointspage .psLabel { font-size: 0.32rem; color: var(--sub); }
.pointspage .psVal { font-size: 0.64rem; font-weight: 800; color: var(--gold); margin-top: 0.16rem; }
.pointspage .psUnit { font-size: 0.32rem; font-weight: 400; color: var(--sub); margin-left: 0.08rem; }
.pointspage .pointsHead, .pointspage .prow {
  display: flex; align-items: center; gap: 0.16rem; font-size: 0.29333rem;
}
.pointspage .pointsHead { padding: 0.24rem 0.42667rem; color: var(--sub); border-bottom: 1px solid var(--line); }
.pointspage .pointsList { display: flex; flex-direction: column; gap: 0.16rem; margin: 0.16rem 0.42667rem; }
.pointspage .prow {
  padding: 0.29333rem 0.32rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 0.26667rem;
}
.pointspage .pointsHead > span:nth-child(1), .pointspage .prow > .pp { flex: 0 0 1.1rem; }
/* 业务类型列：表头「业务类型」4 字约需 1.17rem，原来 0.8rem 会把末字挤到第二排，加宽并禁止换行 */
.pointspage .pointsHead > span:nth-child(2), .pointspage .prow > .ptype { flex: 0 0 1.34rem; white-space: nowrap; }
.pointspage .pointsHead > span:nth-child(2) { font-size: 0.26667rem; }
.pointspage .pointsHead > span:nth-child(3), .pointspage .prow > .pdesc { flex: 1; min-width: 0; }
.pointspage .pointsHead > span:nth-child(4), .pointspage .prow > .ptime { flex: 0 0 2rem; text-align: right; }
.pointspage .pp { font-weight: 800; font-variant-numeric: tabular-nums; }
.pointspage .pp.in, .pointspage .ptype.in { color: #37c978; }
.pointspage .pp.out, .pointspage .ptype.out { color: #ff6b6b; }
.pointspage .ptype { font-size: 0.26667rem; text-align: center; }
.pointspage .pdesc { color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.pointspage .ptime { font-size: 0.24rem; color: var(--sub); }
.pointspage .pointsLogin { padding: 1.2rem 0.42667rem; text-align: center; }
.pointspage .pointsLogin .btn { margin-top: 0.32rem; }

/* ---------- 弹窗 / toast ---------- */
.modal-root:empty { display: none; }
.modal-root { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(2px); animation: fade .18s ease; }
.sheet {
  position: relative; width: 100%; max-width: 13.86667rem;
  background: var(--bg-soft); border-radius: 0.48rem 0.48rem 0 0; padding: 0.48rem 0.48rem calc(0.53333rem + env(safe-area-inset-bottom));
  animation: up .24s cubic-bezier(.2,.9,.3,1);
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet h3 { margin: 0 0 0.10667rem; font-size: 0.45333rem; }
.sheet .sub { font-size: 0.32rem; color: var(--sub); margin-bottom: 0.37333rem; }
.plan { display: flex; align-items: center; gap: 0.32rem; padding: 0.34667rem 0.37333rem; border-radius: 0.32rem; border: 1px solid var(--line); background: var(--card); margin-bottom: 0.26667rem; }
.plan.on { border-color: var(--brand); background: rgba(255,180,0,.10); }
.plan .pn { font-size: 0.37333rem; font-weight: 600; }
.plan .pd2 { font-size: 0.29333rem; color: var(--sub); margin-top: 2px; }
.plan .pp { margin-left: auto; font-size: 0.42667rem; font-weight: 700; color: var(--brand); }
.plan .tag { font-size: 0.26667rem; padding: 2px 0.18667rem; border-radius: 0.13333rem; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; font-weight: 700; }

/* ---------- 充值 / 会员 确认支付弹层 ---------- */
.checkout { text-align: center; }
.checkout .co-price { font-size: 0.69333rem; font-weight: 800; color: var(--gold); margin: 0.10667rem 0 0.42667rem; }
.checkout .co-field { text-align: left; margin: 0 0 0.4rem; }
.checkout .co-field label { display: block; font-size: 0.32rem; color: var(--sub); margin-bottom: 0.16rem; }
.checkout .paycode-sel, .paywait .paycode-sel { width: 100%; padding: 0.29333rem 0.32rem; border-radius: 0.26667rem; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 0.37333rem; }
.checkout .btn { width: 100%; }
.checkout .btn + .btn { margin-top: 0.26667rem; }
/* 网关拒绝/下单失败时的错误提示：红色醒目，撑满，取代无意义的「确认支付」按钮 */
.checkout .co-err, .paywait .co-err { width: 100%; font-size: 0.32rem; color: var(--danger, #d4380d); line-height: 1.5; word-break: break-all; padding: 0.32rem; border-radius: 0.26667rem; background: rgba(212, 56, 13, 0.06); }

/* 支付/充值失败后的人工客服兜底：错误提示下方的一块卡片，A/B 篇通用。
   两个按钮：联系人工客服（跳对话窗口）+ 复制客服账号（复制后台填的账号）。 */
.co-svc { margin-top: 0.26667rem; padding: 0.32rem; border-radius: 0.26667rem; background: var(--card); border: 1px solid var(--line); }
.co-svc-tip { font-size: 0.32rem; line-height: 1.6; color: var(--sub, #888); margin-bottom: 0.24rem; }
.co-svc-actions { display: flex; gap: 0.26667rem; }
.co-svc-actions .btn { flex: 1; margin-top: 0 !important; text-align: center; text-decoration: none; box-sizing: border-box; font-size: 0.34667rem; padding: 0.24rem 0.1rem; }
.paywait .co-svc { margin-top: 0.32rem; text-align: left; }

/* ---------- 支付等待 + 轮询弹层 ---------- */
.paywait { text-align: center; }
.paywait .co-status { font-size: 0.34667rem; color: var(--sub); margin: 0.32rem 0 0.48rem; padding: 0.32rem; border-radius: 0.26667rem; background: var(--card); word-break: break-all; }
.paywait .btn { width: 100%; }
.paywait .btn + .btn { margin-top: 0.26667rem; }
/* 兜底的「手动打开支付页」是个 <a>，去掉下划线并按按钮盒模型撑满 */
.paywait .payopen { display: block; text-decoration: none; box-sizing: border-box; }
/* 「确认支付」现在也是个 <a>（真实链接跳转，绕开 window.open 被拦），同样按按钮渲染 */
.checkout .paygo { display: block; text-decoration: none; box-sizing: border-box; }

/* ---------- 评论面板 ----------
 * 从播放页右侧气泡点进来。播放页是 fixed 全屏（z-index 60），
 * 面板挂在 #modal（.modal-root，z-index 100）下，层级天然够。
 * 高度取 70%：留一截视频在上面，用户知道自己还在哪部剧里。
 */
.csheet {
  position: relative; width: 100%; max-width: 13.86667rem; height: 70%;
  display: flex; flex-direction: column; background: var(--bg-soft);
  border-radius: 0.48rem 0.48rem 0 0; overflow: hidden;
  animation: up .24s cubic-bezier(.2,.9,.3,1);
}
.chd { display: flex; align-items: center; gap: 0.21333rem; padding: 0.4rem 0.48rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chd b { font-size: 0.4rem; }
.chd .ccnt { font-size: 0.29333rem; color: var(--sub); }
.chd .cx { margin-left: auto; width: 0.74667rem; height: 0.74667rem; border: none; background: transparent; color: var(--sub); font-size: 0.45333rem; cursor: pointer; }
.clist { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0.48rem; }
.citem { display: flex; gap: 0.26667rem; padding: 0.37333rem 0; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: none; }
.cavatar { flex-shrink: 0; width: 0.90667rem; height: 0.90667rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.37333rem; font-weight: 700; font-style: normal; }
.cbody { flex: 1; min-width: 0; }
.cnick { font-size: 0.29333rem; color: var(--sub); display: flex; align-items: center; gap: 0.13333rem; }
.cgbadge { padding: 0 0.10667rem; border-radius: 0.08rem; background: var(--line); font-size: 0.21333rem; line-height: 1.6; }
.ctext { font-size: 0.37333rem; line-height: 1.5; margin-top: 0.13333rem; word-break: break-word; white-space: pre-wrap; }
.ctime { font-size: 0.26667rem; color: var(--sub); margin-top: 0.13333rem; }
.cempty { padding: 1.06667rem 0; text-align: center; color: var(--sub); font-size: 0.34667rem; }
.cform {
  display: flex; gap: 0.21333rem; align-items: center; flex-shrink: 0;
  padding: 0.32rem 0.48rem calc(0.32rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--card);
}
.cform input {
  flex: 1; min-width: 0; height: 0.96rem; padding: 0 0.32rem;
  border: 1px solid var(--line); border-radius: 0.48rem; background: var(--bg);
  color: var(--text); font-size: 0.37333rem; outline: none;
}
.cform input:focus { border-color: var(--brand); }
.csend {
  flex-shrink: 0; height: 0.96rem; padding: 0 0.42667rem; border: none; border-radius: 0.48rem;
  background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff;
  font-size: 0.34667rem; font-weight: 700; cursor: pointer;
}
.csend:disabled { opacity: .5; cursor: default; }

/* 访问弹窗的样式在 popup.css，前台和后台共用一份，后台「预览效果」才能跟线上一致 */

.toast { position: fixed; left: 50%; bottom: 2.4rem; transform: translateX(-50%); z-index: 200; padding: 0.26667rem 0.48rem; border-radius: 0.26667rem; background: rgba(20,20,28,.95); border: 1px solid var(--line); font-size: 0.34667rem; opacity: 0; pointer-events: none; transition: .2s; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(-0.16rem); }

.empty { padding: 1.6rem 0.53333rem; text-align: center; color: var(--sub); font-size: 0.34667rem; }
.loading { padding: 1.6rem 0.53333rem; text-align: center; color: var(--sub); font-size: 0.34667rem; }

/* ================= 登录 / 注册 ================= */

.authpage { min-height: 100vh; min-height: calc(var(--vh, 1vh) * 100); padding: 0 0.64rem 1.17333rem; background: var(--bg); }

/* 左返回 + 居中标题 + 右侧等宽占位，标题才是真居中。
   padding-top 叠 env() 是为了避开刘海/挖孔，否则标题会被状态栏压住 */
.authhd {
  display: flex; align-items: center; gap: 0.21333rem;
  padding: calc(0.37333rem + env(safe-area-inset-top, 0px)) 0 0.21333rem;
}
.authback { width: 0.85333rem; height: 0.85333rem; display: grid; place-items: center; margin-left: -0.21333rem; border-radius: 50%; }
.authback:active { background: var(--bg-soft); }
.authhd h1 { flex: 1; margin: 0; font-size: 0.45333rem; font-weight: 600; text-align: center; }
.authsp { width: 0.85333rem; }

.authform { margin-top: 0.69333rem; }
.afield { margin-bottom: 0.42667rem; }
/* 注册页三个输入框的字段名（账号 / 密码 / 确认密码）；登录页不加 label，保持原样 */
.afield .alabel {
  display: block; margin-bottom: 0.16rem; padding-left: 0.08rem;
  font-size: 0.37333rem; font-weight: 600; color: var(--text);
}
.afield input {
  width: 100%; height: 1.33333rem; padding: 0 0.53333rem;
  border-radius: 0.66667rem; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text);
  font-size: 0.4rem; outline: none;
  transition: border-color .18s, background .18s;
}
.afield input::placeholder { color: #6d6d80; }
.afield input:focus { border-color: var(--brand); background: var(--card); }

/* 验证码：左侧输入框自适应，右侧固定 120×44 的图 */
.captchafield { display: flex; gap: 0.26667rem; align-items: center; }
.captchafield input { flex: 1; min-width: 0; letter-spacing: 2px; text-transform: uppercase; }
.captchabox {
  flex: 0 0 3.2rem; width: 3.2rem; height: 1.33333rem; padding: 0;
  border-radius: 0.32rem; overflow: hidden; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.captchabox svg { display: block; width: 3.2rem; height: 1.17333rem; }
.captchabox:active { opacity: .8; }
.capfail { font-size: 0.29333rem; color: #8a8a9a; text-align: center; padding: 0 0.16rem; line-height: 1.3; }

.acaphint { margin: -0.10667rem 0 0.48rem 0.10667rem; font-size: 0.32rem; color: var(--sub); }
.acaphint::before { content: 'ⓘ '; }

.abtn {
  width: 100%; height: 1.33333rem; margin-top: 0.16rem;
  border-radius: 0.66667rem; font-size: 0.42667rem; font-weight: 600; color: var(--on-brand);
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 0.21333rem 0.58667rem -0.32rem var(--brand2);
  transition: opacity .2s, transform .1s;
}
.abtn:active { transform: scale(.985); }
.abtn:disabled { opacity: .6; }

/* 记住我：勾选框 + 风险提示，夹在输入框和登录按钮之间 */
.aremember { display: flex; align-items: center; gap: 0.16rem; margin: -0.10667rem 0 0.16rem 0.10667rem; }
.aremember input { width: 0.4rem; height: 0.4rem; accent-color: var(--brand); }
.aremember label { font-size: 0.32rem; color: var(--sub); cursor: pointer; }
.aremhint { margin: -0.08rem 0 0.32rem 0.10667rem; font-size: 0.26667rem; color: #6d6d80; }

.aflink { margin-top: 0.53333rem; font-size: 0.34667rem; color: var(--sub); }
.aflink a { color: #4a9eff; margin-left: 0.08rem; }

/* ================= 我的 ================= */

.mepage { padding-bottom: 0.53333rem; }

/* 顶部身份卡：全站品牌黄渐变通栏，圆角只压下面两角，与全站风格统一 */
.mehead {
  display: flex; align-items: center; gap: 0.37333rem;
  padding: calc(0.69333rem + env(safe-area-inset-top, 0px)) 0.53333rem 0.85333rem;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: 0 0 0.58667rem 0.58667rem;
}
.mehead[data-login] { cursor: pointer; }
.meavatar {
  flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: #fff; color: var(--brand2);
  display: grid; place-items: center;
  font-size: 0.53333rem; font-weight: 700;
  border: 0.08rem solid rgba(255, 255, 255, .75);
}
.meavatar.guest { color: #bdbbc8; }
.meavatar.guest svg { width: 0.85333rem; height: 0.85333rem; }
/* 头像是圆形容器：没有 overflow:hidden + 图片撑满，上传的头像会按原始尺寸溢出、
   直角露在圆外（个人资料页能传图后这条必现）。 */
.meavatar { overflow: hidden; }
.meavatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.meheadmain { flex: 1; min-width: 0; }
.meheadname { font-size: 0.53333rem; font-weight: 700; color: var(--on-brand); overflow-wrap: anywhere; }
.meheadsub { margin-top: 0.10667rem; font-size: 0.32rem; color: rgba(61, 39, 0, .72); }
.meheadchev { flex: 0 0 auto; color: rgba(61, 39, 0, .65); display: grid; place-items: center; }
/* 「我的资料」入口：之前没有样式规则，继承了 html 根字号（1rem≈37px）被撑爆。
   改成不受挤压的小号胶囊，和 chevron 一起靠右排，昵称过长时由 meheadmain 收缩省略。 */
.meheadprofile {
  flex: 0 0 auto; max-width: 3.2rem;
  font-size: 0.32rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
  color: rgba(61, 39, 0, .82);
  padding: 0.10667rem 0.26667rem;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(61, 39, 0, .22);
  border-radius: 0.8rem;
  overflow: hidden; text-overflow: ellipsis;
}

/* 会员卡：米金色，压在身份卡下沿形成层叠 */
.vipcard {
  display: flex; align-items: center; gap: 0.26667rem;
  margin: -0.42667rem 0.42667rem 0; padding: 0.37333rem 0.42667rem;
  border-radius: 0.37333rem;
  background: linear-gradient(135deg, #fff3d4, #ffe6c2);
  box-shadow: 0 0.21333rem 0.58667rem -0.42667rem #000;
}
.vipcard.on { background: linear-gradient(135deg, #ffe9b8, #ffd98a); }
.vipcrown { flex: 0 0 auto; color: #b8860b; display: grid; place-items: center; }
.vipcrown svg { width: 0.53333rem; height: 0.53333rem; }
.viptxt { flex: 1; min-width: 0; }
.viptitle { font-size: 0.4rem; font-weight: 700; color: #6b4a12; }
.vipsub { margin-top: 2px; font-size: 0.29333rem; color: #9a7b45; overflow-wrap: anywhere; }
.vipbtn {
  flex: 0 0 auto; padding: 0.21333rem 0.42667rem; border-radius: 26.64rem;
  font-size: 0.34667rem; font-weight: 600; color: #6b4a12;
  background: linear-gradient(135deg, #ffd98a, #f5c26b);
}
.vipbtn:active { opacity: .85; }

.mestats {
  display: flex; margin: 0.37333rem 0.42667rem 0; padding: 0.48rem 0;
  border-radius: 0.37333rem; background: var(--card); border: 1px solid var(--line);
}
.mestat { flex: 1; text-align: center; display: block; color: inherit; }
.mestat + .mestat { border-left: 1px solid var(--line); }
.mestat b { display: block; font-size: 0.53333rem; font-weight: 700; }
.mestat span { display: block; margin-top: 0.13333rem; font-size: 0.32rem; color: var(--sub); }

.mepoints {
  display: flex; align-items: center; gap: 0.32rem;
  margin: 0.37333rem 0.42667rem 0; padding: 0.42667rem;
  border-radius: 0.37333rem; background: var(--card); border: 1px solid var(--line);
}
.mepointsL { flex: 1; min-width: 0; }
.mepointsLabel { display: flex; align-items: center; gap: 0.16rem; font-size: 0.34667rem; color: var(--sub); }
.eyebtn { display: grid; place-items: center; width: 0.58667rem; height: 0.58667rem; color: var(--sub); }
.eyebtn svg { width: 0.45333rem; height: 0.45333rem; }
.mepointsVal { margin-top: 0.21333rem; font-size: 0.53333rem; font-weight: 700; letter-spacing: 2px; }
/* 积分余额：数值后的「积分」单位，小字号弱化，别跟大数值抢视觉 */
.mepointsVal .mepointsUnit { font-size: 0.32rem; font-weight: 500; letter-spacing: 0; color: var(--sub); margin-left: 0.08rem; }

/* 覆盖 .btn 的整宽默认样式，改成像参考图那样贴在右侧的胶囊按钮 */
.mecharge { width: auto; margin: 0; padding: 0.29333rem 0.58667rem; font-size: 0.37333rem; border-radius: 26.64rem; }
/* 「立即充值」按钮统一复用全站主按钮 .btn.primary（品牌黄），不再有粉色变体 */
.melogout { margin-top: 0.64rem; }
/* 空态默认上下 1.6rem 内边距，在「我的」页连着两个空区块时留白会过厚 */
.mepage .empty { padding: 0.90667rem 0.53333rem; }

/* ================= 会员开通页 ================= */
.vippage { padding-bottom: 2.98667rem; }
.viphero { margin: 0.42667rem 0.42667rem 0; padding: 0.64rem 0.42667rem; text-align: center; border-radius: 0.42667rem;
  background: linear-gradient(135deg, rgba(255,197,49,.16), rgba(255,138,0,.08)); border: 1px solid var(--line); }
.viphero .viph { display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--on-brand); margin-bottom: 0.21333rem; }
.viphero .vipht { font-size: 0.4rem; color: var(--sub); }
.vipcd { margin: 0.42667rem 0.42667rem 0; padding: 0.32rem; text-align: center; border-radius: 0.32rem; background: var(--card); border: 1px solid var(--line);
  font-size: 0.37333rem; color: var(--sub); }
.vipcd b { color: var(--brand); font-size: 0.48rem; letter-spacing: 0.05333rem; font-variant-numeric: tabular-nums; }
.vipsection { margin: 0.64rem 0.42667rem 0.32rem; font-size: 0.4rem; font-weight: 700; }
.vipgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.32rem; padding: 0 0.42667rem; }
.vipplan { display: flex; flex-direction: column; align-items: center; gap: 0.10667rem; padding: 0.42667rem 0.21333rem; text-align: center;
  border-radius: 0.42667rem; background: var(--card); border: 1px solid var(--line); transition: transform .12s, border-color .12s; }
.vipplan.on { border-color: var(--brand); box-shadow: 0 0 0 0.05333rem rgba(255,197,49,.25); transform: translateY(-0.10667rem); }
.vipplan .vpn { font-size: 0.37333rem; font-weight: 700; }
.vipplan .vpprice { font-size: 0.53333rem; font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vipplan .vporig { font-size: 0.32rem; color: var(--sub); }
.vipplan .vpdays { font-size: 0.32rem; color: var(--sub); }
.vipbottom { position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 30; display: flex; align-items: center; gap: 0.32rem;
  padding: 0.32rem 0.42667rem; background: linear-gradient(180deg, rgba(28,28,38,.92), rgba(28,28,38,.98)); border-top: 1px solid var(--line); backdrop-filter: blur(0.32rem); }
.vipbottom .vbamount { display: flex; flex-direction: column; line-height: 1.2; }
.vipbottom .vbamount span { font-size: 0.32rem; color: var(--sub); }
.vipbottom .vbamount b { font-size: 0.58667rem; font-weight: 800; color: var(--brand); }
.vipbottom .btn { flex: 1; width: auto; margin: 0; }
/* 三档变窄时价格/天数可能折行，保持等宽对齐 */
.vipplan .vpprice, .vipplan .vpdays { overflow-wrap: anywhere; }

/* ================= 个人资料页 ================= */
/* 顶部品牌黄头像面板，与「我的」页身份卡通栏语言统一 */
.profilepage { padding-bottom: 1.28rem; }
.pfhero {
  margin: calc(0.69333rem + env(safe-area-inset-top, 0px)) 0.42667rem 0;
  padding: 0.74667rem 0.42667rem 0.85333rem;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: 0.42667rem; text-align: center;
}
.pfhero .pfav { width: 3.2rem; height: 3.2rem; border-radius: 50%; overflow: hidden; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--brand2);
  font-size: 1.06667rem; font-weight: 800;
  border: 0.10667rem solid rgba(255, 255, 255, .8);
  box-shadow: 0 0.26667rem 0.58667rem -0.32rem rgba(0, 0, 0, .4); }
.pfhero .pfav img { width: 100%; height: 100%; object-fit: cover; }
.pfhero .pfname { margin-top: 0.32rem; font-size: 0.48rem; font-weight: 700; color: var(--on-brand); }
.pfhero .pfid { margin-top: 0.08rem; font-size: 0.32rem; color: rgba(61, 39, 0, .72); }
/* 头像面板里的「更换头像」按钮：内联胶囊，不用通栏 .btn */
.pfhero .btn { width: auto; margin: 0.42667rem auto 0; padding: 0.16rem 0.48rem; border-radius: 26.64rem; font-size: 0.32rem; }

.pfsection { margin: 0.64rem 0.42667rem 0; }
.pfsection + .pfsection { margin-top: 0.32rem; }
.pfsection > .pfsh { font-size: 0.34667rem; font-weight: 700; color: var(--sub); margin: 0 0.32rem; }
/* 分组底卡：深色，与全站卡片一致 */
.pfcard { background: var(--card); border: 1px solid var(--line); border-radius: 0.42667rem; padding: 0.21333rem; }
.pfcard + .pfcard { margin-top: 0.26667rem; }

/* 统一胶囊输入框：复用全站 .afield 语言（高/圆角/底色/focus 完全一致） */
.pffield { margin: 0 0 0.18667rem; }
.pffield:last-child { margin-bottom: 0; }
.pffield > label { display: block; font-size: 0.29333rem; color: var(--sub); margin: 0 0.18667rem; }
.pffield input {
  width: 100%; height: 1.33333rem; padding: 0 0.53333rem;
  border-radius: 0.66667rem; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text);
  font-size: 0.4rem; outline: none;
  transition: border-color .18s, background .18s;
}
.pffield input::placeholder { color: #6d6d80; }
.pffield input:focus { border-color: var(--brand); background: var(--card); }
.pfhint { margin: 0.26667rem 0.10667rem 0; font-size: 0.29333rem; color: var(--sub); line-height: 1.4; }

/* 保存按钮：全站主按钮（通栏品牌黄渐变） */
.profilepage .btn.primary { margin-top: 0.53333rem; }

/* ---------- 首页「其它分类」横向选项卡 + 分页 ----------
 * 热播榜仍走上方固定分区；这里只服务分类懒加载区（/api/category）。
 * 视觉：卡片式选项卡 + 左右渐隐提示 + 桌面箭头 + 剧数角标；
 * 交互：滚动吸附、选中自动居中、翻页回到列表顶部。 */
.sec-hd .cat-hint {
  margin-left: auto; font-size: 0.26667rem; color: var(--sub);
  white-space: nowrap; font-weight: 400; opacity: .8;
}
.cattabswrap { position: relative; }
/* 两端渐隐：明确告诉用户「还能往这边滑」；pointer-events:none 保证不挡点击 */
.cattabswrap::before, .cattabswrap::after {
  content: ''; position: absolute; top: 0; bottom: 0.10667rem; width: 0.74667rem;
  z-index: 2; pointer-events: none;
}
.cattabswrap::before { left: 0; background: linear-gradient(90deg, var(--bg) 18%, transparent); }
.cattabswrap::after { right: 0; background: linear-gradient(270deg, var(--bg) 18%, transparent); }
.cattabs {
  display: flex; gap: 0.18667rem; overflow-x: auto; flex-wrap: nowrap;
  padding: 0.10667rem 0.74667rem 0.37333rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; scroll-snap-type: x proximity;
}
.cattabs::-webkit-scrollbar { display: none; }
.ctab {
  flex: none; scroll-snap-align: center; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.16rem;
  padding: 0.21333rem 0.37333rem; border-radius: 0.26667rem;
  background: var(--card); color: var(--sub); font-size: 0.34667rem;
  border: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s, background .18s, color .18s, border-color .18s, box-shadow .18s;
}
/* 小圆点始终占位，选中只变色，避免高亮时宽度跳动 */
.ctab::before {
  content: ''; flex: none; width: 0.10667rem; height: 0.10667rem;
  border-radius: 50%; background: var(--line); transition: background .18s;
}
.ctab:hover { color: var(--text); border-color: rgba(255,197,49,.45); }
.ctab:active { transform: scale(.95); }
.ctab-n {
  font-size: 0.26667rem; line-height: 1.1; padding: 0.05333rem 0.16rem;
  border-radius: 26.64rem; background: rgba(255,255,255,.07); color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.ctab.on {
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  color: var(--on-brand); border-color: transparent; font-weight: 700;
  box-shadow: 0 0.10667rem 0.32rem rgba(255,138,0,.3), inset 0 0.02667rem 0 rgba(255,255,255,.45);
}
.ctab.on::before { background: var(--on-brand); }
.ctab.on .ctab-n { background: rgba(61,39,0,.16); color: var(--on-brand); }
/* 桌面端左右滚动箭头；移动端靠手指滑动，隐藏以免挡住选项 */
.cscroll {
  position: absolute; top: 0.16rem; z-index: 3; display: none;
  width: 0.64rem; height: 0.90667rem; align-items: center; justify-content: center;
  background: rgba(28,28,38,.94); color: var(--sub); cursor: pointer;
  border: 1px solid var(--line); border-radius: 0.21333rem; font-size: 0.48rem;
  -webkit-tap-highlight-color: transparent; transition: .15s;
}
.cscroll:hover { color: var(--brand); border-color: var(--brand); }
.cscroll.l { left: 0.10667rem; }
.cscroll.r { right: 0.10667rem; }
@media (min-width: 768px) { .cscroll { display: flex; } }

/* 内容区：加载/切页时给个最小高度，避免整页高度反复跳动；翻页回顶留出顶栏空间 */
.catcontent { min-height: 3.2rem; scroll-margin-top: 1.28rem; }
.catcontent > .loading, .catcontent > .empty { padding: 0.64rem 0; text-align: center; }
.catmeta {
  display: flex; align-items: center; gap: 0.16rem;
  margin: 0.05333rem 0.37333rem 0.26667rem;
  font-size: 0.29333rem; color: var(--sub);
}
.catmeta::before { content: ''; width: 0.05333rem; height: 0.26667rem; border-radius: 2px; background: var(--brand); }

/* 分页：上一页 / 页码 / 下一页 / 跳页，做成一条浅底工具条 */
.catpager {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.16rem; margin: 0.48rem 0.37333rem 0.32rem;
  padding: 0.26667rem 0.21333rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 0.26667rem;
}
.pgbtn {
  cursor: pointer; padding: 0.16rem 0.32rem; border-radius: 0.18667rem;
  background: var(--card); color: var(--sub); font-size: 0.32rem;
  border: 1px solid var(--line); white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: .15s;
}
.pgbtn:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }
.pgbtn:active:not(:disabled) { transform: scale(.96); }
.pgbtn:disabled { opacity: .38; cursor: not-allowed; }
.pgtext { font-size: 0.32rem; color: var(--text); padding: 0 0.10667rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pgjump { display: inline-flex; align-items: center; gap: 0.16rem; font-size: 0.32rem; color: var(--sub); white-space: nowrap; }
.pgin {
  width: 1.17333rem; padding: 0.13333rem 0.10667rem; text-align: center;
  background: var(--card); color: var(--text); font-size: 0.32rem;
  border: 1px solid var(--line); border-radius: 0.18667rem;
  -moz-appearance: textfield; appearance: textfield;
}
.pgin::-webkit-outer-spin-button, .pgin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pgin:focus { outline: none; border-color: var(--brand); }

/* ================= 个人中心改版：签到 / 四宫格 / 订单 / 邀请 / 永久地址 / 追剧 ================= */
/* 签到福利卡：积分余额 + 签到格子融合（参考签到福利页：淡黄底 + 黄框格子 + 金币 + 橙色签到） */
.welfare-card { margin: 0.37333rem 0.42667rem 0; padding: 0.37333rem; border-radius: 0.37333rem;
  background: linear-gradient(180deg, #fff9e6, #fffdf6 62%); border: 1px solid #f6e2a8; }
/* 顶部积分余额行 */
.wf-bal { display: flex; align-items: center; gap: 0.24rem; padding: 0.05333rem 0.05333rem 0.32rem; }
.wf-coin-lg { flex: none; width: 0.74667rem; height: 0.74667rem; display: grid; place-items: center; }
.wf-coin-lg svg { width: 0.74667rem; height: 0.74667rem; }
.wf-bal-main { flex: 1; min-width: 0; }
.wf-bal-label { display: flex; align-items: center; gap: 0.10667rem; font-size: 0.34667rem; color: #8a6d2f; }
.wf-bal-label .eyebtn { width: 0.53333rem; height: 0.53333rem; }
.wf-bal-label .eyebtn svg { width: 0.4rem; height: 0.4rem; }
.wf-bal-val { margin-top: 0.05333rem; font-size: 0.64rem; font-weight: 800; color: #2a2a2a; letter-spacing: 1px; line-height: 1.1; }
.wf-bal-unit { font-size: 0.29333rem; font-weight: 500; color: #8a6d2f; margin-left: 0.10667rem; letter-spacing: 0; }
.wf-recharge { width: auto; margin: 0; padding: 0.24rem 0.4rem; font-size: 0.32rem; border-radius: 26.64rem; flex: none; }
/* 黄色框签到区 */
.wf-panel { padding: 0.32rem 0.26667rem 0.29333rem; border: 2px solid #ffd34d; border-radius: 0.32rem; background: #fffdf7; }
.wf-head { display: flex; align-items: center; justify-content: space-between; gap: 0.21333rem; margin-bottom: 0.29333rem; }
.wf-streak { font-size: 0.34667rem; color: #8a6d2f; font-weight: 600; }
.wf-btn { width: auto; margin: 0; padding: 0.21333rem 0.37333rem; font-size: 0.32rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ffb43c, #ff8a1e); border: 0; border-radius: 26.64rem; flex: none; box-shadow: 0 2px 6px rgba(255,138,30,.28); }
.wf-btn:active { transform: scale(.96); }
.wf-btn:disabled { background: #e6d9bd; color: #a08e6a; box-shadow: none; }
.wf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.10667rem; }
.wf-day { position: relative; text-align: center; padding: 0.21333rem 0 0.16rem; border-radius: 0.24rem;
  background: #fff7e2; border: 1px solid #f3e3b6; display: flex; flex-direction: column; align-items: center; gap: 0.10667rem; min-width: 0; }
.wf-day.on { background: #fff0c4; border-color: #f5c26b; }
.wf-day.today { box-shadow: 0 0 0 1px #ff8a1e inset; border-color: #ff8a1e; }
.wf-gain { font-size: 0.26667rem; font-weight: 700; color: #e8901a; line-height: 1; }
.wf-coin { position: relative; width: 0.58667rem; height: 0.58667rem; display: grid; place-items: center; }
.wf-coin svg { width: 0.58667rem; height: 0.58667rem; }
.wf-day.on .wf-coin svg { filter: saturate(1.15) drop-shadow(0 1px 2px rgba(232,144,26,.4)); }
.wf-ok { position: absolute; right: -0.05333rem; bottom: -0.05333rem; width: 0.32rem; height: 0.32rem; border-radius: 50%;
  background: #ff8a1e; color: #fff; display: grid; place-items: center; }
.wf-ok svg { width: 0.21333rem; height: 0.21333rem; }
.wf-daylabel { font-size: 0.26667rem; color: #8a6d2f; line-height: 1.1; white-space: nowrap; }
.wf-today { font-size: 0.26667rem; font-weight: 700; color: #ff7a00; white-space: nowrap; line-height: 1.1; }
.wf-bonus { position: absolute; top: -0.13333rem; right: -0.05333rem; font-size: 0.21333rem; color: #fff; background: #e8901a; padding: 0.016rem 0.08rem; border-radius: 26.64rem; }
/* 补签格：每周 1 次，可补时与普通格同高亮，已用则置灰禁用 */
.wf-makeup { width: 100%; font-family: inherit; cursor: pointer; transition: transform .12s; }
.wf-makeup:active { transform: scale(.95); }
.wf-makeup .wf-coin svg { width: 0.5rem; height: 0.5rem; opacity: .85; }
.wf-makeup.used { background: #f4eeda; border-color: #e6d9bd; cursor: default; }
.wf-makeup.used .wf-gain { color: #a08e6a; font-weight: 600; }
.wf-makeup.used .wf-coin svg { opacity: .5; }
.wf-makeup.used .wf-daylabel { color: #a08e6a; }
.wf-rule { margin-top: 0.24rem; font-size: 0.26667rem; color: #a08e6a; text-align: center; line-height: 1.6; }

/* 四宫格功能入口 */
.fn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.16rem; margin: 0.37333rem 0.42667rem 0;
  padding: 0.42667rem 0.21333rem; border-radius: 0.37333rem; background: var(--card); border: 1px solid var(--line); }
.fn-item { display: flex; flex-direction: column; align-items: center; gap: 0.21333rem; color: var(--text); }
.fn-ico { display: grid; place-items: center; width: 1.17333rem; height: 1.17333rem; border-radius: 0.37333rem;
  background: linear-gradient(135deg, rgba(255,197,49,.22), rgba(255,138,0,.1)); color: #c9820d; }
.fn-ico svg { width: 0.58667rem; height: 0.58667rem; }
.fn-t { font-size: 0.32rem; }
.fn-item:active { opacity: .7; }

/* 追剧页：三类目 2x2 */
.chaspage { padding-bottom: 2.98667rem; }
.chase-sec { margin: 0.42667rem 0.42667rem 0; }
.chase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.32rem; }
.chase-head h3 { font-size: 0.42667rem; font-weight: 700; }
.chase-more { display: inline-flex; align-items: center; gap: 0.05333rem; font-size: 0.32rem; color: var(--sub); }
.chase-more svg { width: 0.32rem; height: 0.32rem; }
.chase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.26667rem; }

/* 邀请好友页 */
.invpage { padding-bottom: 2.98667rem; }
.inv-hero { margin: 0.42667rem 0.42667rem 0; padding: 0.48rem 0.42667rem; border-radius: 0.37333rem;
  background: linear-gradient(135deg, rgba(255,197,49,.16), rgba(255,138,0,.06)); border: 1px solid var(--line); }
.inv-sub { font-size: 0.37333rem; color: var(--sub); }
.inv-stats { display: flex; margin-top: 0.42667rem; }
.inv-stats > div { flex: 1; text-align: center; }
.inv-stats b { display: block; font-size: 0.53333rem; font-weight: 700; color: #c9820d; }
.inv-stats span { display: block; margin-top: 0.10667rem; font-size: 0.29333rem; color: var(--sub); }
.inv-card { margin: 0.37333rem 0.42667rem 0; padding: 0.42667rem; border-radius: 0.37333rem; background: var(--card); border: 1px solid var(--line); }
.inv-label { font-size: 0.32rem; color: var(--sub); }
.inv-link { margin: 0.21333rem 0; padding: 0.29333rem; font-size: 0.32rem; color: var(--brand); word-break: break-all;
  background: var(--bg); border-radius: 0.21333rem; border: 1px dashed var(--line); }
.inv-code { margin-top: 0.32rem; font-size: 0.34667rem; color: var(--sub); display: flex; align-items: center; gap: 0.16rem; flex-wrap: wrap; }
.inv-code b { color: var(--text); letter-spacing: 0.05333rem; }
.inv-rules { margin: 0.37333rem 0.42667rem 0; padding: 0.37333rem; border-radius: 0.37333rem; background: var(--card); border: 1px solid var(--line);
  font-size: 0.32rem; color: var(--sub); line-height: 1.8; }
.inv-list { margin: 0 0.42667rem; border-radius: 0.37333rem; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.inv-row { display: flex; align-items: center; gap: 0.21333rem; padding: 0.29333rem 0.37333rem; border-bottom: 1px solid var(--line); font-size: 0.32rem; }
.inv-row:last-child { border-bottom: none; }
.inv-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-d { color: #c9820d; }
.inv-t { color: var(--sub); font-size: 0.29333rem; }
.btn.sm { width: auto; margin: 0; padding: 0.10667rem 0.24rem; font-size: 0.29333rem; }

/* 回家的路：永久地址发布页 */
.hppage { padding-bottom: 2.98667rem; }
.hp-card { margin: 0.42667rem 0.42667rem 0; border-radius: 0.37333rem; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.hp-mod { padding: 0.42667rem; border-bottom: 1px solid var(--line); }
.hp-mod:last-child { border-bottom: none; }
.hp-mod-title { font-size: 0.4rem; font-weight: 700; margin-bottom: 0.32rem; padding-left: 0.21333rem; border-left: 0.08rem solid var(--brand); }
.hp-urls { display: flex; flex-direction: column; gap: 0.21333rem; }
.hp-url { display: block; padding: 0.29333rem 0.32rem; font-size: 0.34667rem; color: var(--brand); word-break: break-all;
  background: var(--bg); border-radius: 0.21333rem; border: 1px solid var(--line); }
.hp-email { display: flex; align-items: center; gap: 0.21333rem; flex-wrap: wrap; }
.hp-email b { flex: 1; min-width: 0; font-size: 0.4rem; word-break: break-all; }
.hp-desc { margin-top: 0.21333rem; font-size: 0.32rem; color: var(--sub); line-height: 1.7; }
.hp-tip { background: rgba(255,197,49,.07); }
