/* ===== M视频 H5 · 移动端样式（与原型一致） ===== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { height:100%; }
body { font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; background:#e9ebf0; color:#222; }
img { display:block; width:100%; height:100%; object-fit:cover; }
a { color:inherit; text-decoration:none; }

.app { max-width:480px; margin:0 auto; min-height:100vh; background:#f6f7f9; position:relative; padding-bottom:58px; overflow:hidden; }
#view { min-height:100vh; }
.fade { animation:fade .25s ease; }
@keyframes fade { from{opacity:.3} to{opacity:1} }

/* 顶部栏 */
.appbar { display:flex; align-items:center; gap:10px; padding:10px 14px; background:#fff; position:sticky; top:0; z-index:20; }
.logo { font-size:18px; font-weight:800; color:#FF4757; letter-spacing:1px; }
.logo-img { width:34px; height:34px; border-radius:8px; flex:none; object-fit:cover; box-shadow:0 2px 7px rgba(255,71,87,.16); }
.search { flex:1; display:flex; align-items:center; gap:6px; background:#f1f2f5; border-radius:17px; height:34px; padding:0 14px; color:#999; font-size:13px; }
.search svg { width:15px; height:15px; fill:none; stroke:#999; stroke-width:2; }
.navback { font-size:22px; color:#333; line-height:1; padding:0 2px; }

/* 导航图 / Banner */
.banner { margin:2px; aspect-ratio:16/7; border-radius:0; position:relative; overflow:hidden; background:#222; }
.banner .mask { position:absolute; inset:0; background:linear-gradient(transparent 45%,rgba(0,0,0,.6)); }
.banner .b-title { position:absolute; left:14px; bottom:28px; color:#fff; font-size:17px; font-weight:700; }
.banner .b-sub { position:absolute; left:14px; bottom:11px; color:rgba(255,255,255,.85); font-size:11px; }
.dots { position:absolute; right:12px; bottom:11px; display:flex; gap:5px; }
.dots i { width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.5); transition:.2s; }
.dots i.on { width:14px; border-radius:3px; background:#fff; }

/* 文字广告位（滚动） */
.textad { display:flex; align-items:center; gap:8px; margin:2px; height:34px; background:#fff7e6; border:1px solid #ffe2b0; padding:0 10px; overflow:hidden; }
.textad .ta-ico { font-size:13px; flex:none; }
.ta-track { flex:1; overflow:hidden; }
.ta-move { display:inline-flex; white-space:nowrap; animation:marquee 16s linear infinite; }
.ta-move span { font-size:12px; color:#b8741a; padding-right:36px; }
.ta-tag { flex:none; font-size:9px; color:#cc8a2a; border:1px solid #e8b86a; border-radius:3px; padding:1px 5px; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* 栏目选择 */
.cats { display:flex; gap:8px; overflow-x:auto; padding:12px 12px 4px; scrollbar-width:none; }
.cats::-webkit-scrollbar { display:none; }
.chip { flex:none; font-size:13px; color:#555; background:#fff; border-radius:16px; padding:6px 16px; border:1px solid #ececf0; }
.chip.on { background:#FF4757; color:#fff; border-color:#FF4757; font-weight:600; }

/* 模块标题 */
.sec { display:flex; align-items:center; justify-content:space-between; padding:16px 14px 10px; }
.sec .t { font-size:16px; font-weight:700; display:flex; align-items:center; gap:7px; }
.sec .t::before { content:""; width:4px; height:16px; border-radius:2px; background:#FF4757; }
.sec .more { font-size:12px; color:#999; }

/* 视频网格（满宽，2px 间距） */
.grid { display:grid; grid-template-columns:1fr 1fr; gap:2px; padding:0 2px; }
.vcard { background:transparent; }
.thumb { aspect-ratio:16/9; position:relative; overflow:hidden; background:#dfe2e8; }
.thumb .pbtn { position:absolute; inset:0; margin:auto; width:30px; height:30px; border-radius:50%; background:rgba(0,0,0,.32); display:flex; align-items:center; justify-content:center; }
.thumb .pbtn svg { width:13px; height:13px; fill:#fff; margin-left:2px; }
.thumb .dur { position:absolute; right:6px; bottom:6px; background:rgba(0,0,0,.62); color:#fff; font-size:10px; padding:1px 6px; border-radius:4px; }
.thumb .corner { position:absolute; left:0; top:0; color:#fff; font-size:10px; padding:2px 8px; border-radius:0 0 9px 0; font-weight:600; }
.corner.b-rec { background:linear-gradient(90deg,#ff9f43,#ff6b6b); }
.corner.b-new { background:linear-gradient(90deg,#ff4757,#ff6b81); }
.vt { font-size:13px; color:#222; margin-top:7px; padding:0 6px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vm { font-size:11px; color:#aaa; margin-top:3px; padding:0 6px 4px; }
.vmetrics { display:flex; align-items:center; gap:7px; min-width:0; white-space:nowrap; }
.vmetrics span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.vmetrics span:first-child { flex:1; }

/* 横幅广告 */
.adwrap { padding:16px 2px 2px; }
.ad { aspect-ratio:75/20; position:relative; overflow:hidden; background:#333; display:flex; align-items:center; justify-content:center; color:#fff; }
.ad .ad-tag { position:absolute; right:8px; bottom:6px; font-size:9px; border:1px solid rgba(255,255,255,.8); border-radius:3px; padding:0 4px; }
.cat-grid-ad { grid-column:1/-1; padding:14px 0 8px; }

/* ===== 播放页 ===== */
.player { aspect-ratio:16/9; background:#000; position:relative; }
.player video { width:100%; height:100%; background:#000; }
.player .ptop { position:absolute; left:0; right:0; top:0; display:flex; align-items:center; padding:8px 12px; z-index:6; background:linear-gradient(rgba(0,0,0,.5),transparent); }
.player .ptop .back { color:#fff; font-size:22px; }
.player .hls { margin-left:auto; background:rgba(255,71,87,.9); color:#fff; font-size:10px; padding:2px 8px; border-radius:4px; }
.player .fsbtn { margin-left:8px; width:32px; height:32px; border:none; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:17px; line-height:32px; text-align:center; cursor:pointer; }
.player .fsbtn:active { background:rgba(255,71,87,.85); }
/* 贴片广告 */
.preroll { position:absolute; inset:0; z-index:8; display:flex; align-items:center; justify-content:center; background:#111; }
.preroll img { position:absolute; inset:0; opacity:.92; }
.pr-tag2 { position:absolute; left:12px; top:10px; background:rgba(255,71,87,.92); color:#fff; font-size:10px; padding:2px 8px; border-radius:4px; z-index:2; }
.pr-skip { position:absolute; right:12px; top:12px; background:rgba(0,0,0,.55); color:#fff; font-size:11px; padding:4px 12px; border-radius:14px; z-index:2; }
.pr-skip b { color:#ffd86b; }
.pr-cta { position:absolute; left:12px; bottom:12px; background:rgba(0,0,0,.5); color:#fff; font-size:11px; padding:4px 12px; border-radius:14px; z-index:2; }
.pr-ad { position:absolute; right:12px; bottom:12px; font-size:9px; color:#fff; border:1px solid rgba(255,255,255,.7); border-radius:3px; padding:1px 5px; z-index:2; }

.vinfo { background:#fff; padding:14px; }
.vinfo h3 { font-size:16px; line-height:1.4; }
.vinfo .meta { font-size:11px; color:#999; margin-top:8px; display:flex; gap:12px; flex-wrap:wrap; }
.quality { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.q { font-size:11px; color:#666; border:1px solid #e5e5ea; border-radius:5px; padding:3px 10px; }
.q.on { color:#FF4757; border-color:#FF4757; background:#fff3f4; }
.comments { margin-top:12px; background:#f6f7fa; border-radius:8px; padding:10px; }
.comment-head { display:flex; align-items:center; gap:7px; }
.comment-head b { font-size:13px; color:#222; }
.comment-head span { font-size:11px; color:#999; }
.comment-list { max-height:154px; overflow-y:auto; margin-top:8px; background:#fff6f8; border:1px solid #ffe2e7; border-radius:8px; padding:2px 10px 8px; scrollbar-width:thin; }
.comment-empty { font-size:12px; color:#aaa; padding:9px 0 2px; }
.comment-item { padding-top:8px; }
.comment-item b { display:block; font-size:11px; color:#FF4757; margin-bottom:3px; }
.comment-item span { display:block; font-size:12px; line-height:1.5; color:#222; word-break:break-word; }
.comment-compose { display:flex; align-items:center; gap:8px; margin-top:10px; background:#eef4ff; border:1px solid #dbe8ff; border-radius:9px; padding:8px; }
.comment-compose input { flex:1; min-width:0; height:34px; border:1px solid #cddcff; border-radius:7px; background:#fff; padding:0 10px; font-size:12px; outline:none; }
.comment-compose button { width:58px; height:34px; border:0; border-radius:7px; background:#FF4757; color:#fff; font-size:12px; font-weight:700; }
.acts { display:flex; background:#fff; margin-top:8px; padding:12px 0; }
.act { flex:1; text-align:center; font-size:11px; color:#666; }
.act i { display:block; font-size:19px; font-style:normal; margin-bottom:4px; }
.act.on { color:#FF4757; font-weight:600; }
.rel-row { display:flex; gap:10px; padding:8px 12px; }
.rel-row .thumb { width:150px; flex:none; border-radius:6px; }
.rel-row .ri { flex:1; padding-top:2px; min-width:0; }
.rel-row .ri .vt { padding:0; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; margin-top:0; }
.rel-row .ri .vm { padding:0; }
.reltextad { margin-top:8px; display:flex; align-items:center; gap:6px; background:#fff7e6; border:1px solid #ffe2b0; padding:4px 8px; }
.reltextad .rt-txt { flex:1; font-size:11px; color:#b8741a; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:opacity .35s; }

/* ===== 栏目页 ===== */
.ftabs { display:flex; gap:18px; padding:12px 16px 0; background:#fff; overflow-x:auto; scrollbar-width:none; }
.ftabs::-webkit-scrollbar { display:none; }
.ftab { font-size:14px; color:#777; padding-bottom:9px; white-space:nowrap; }
.ftab.on { color:#FF4757; font-weight:700; border-bottom:2.5px solid #FF4757; }
.filters { background:#fff; padding:6px 16px 12px; }
.frow { display:flex; gap:14px; padding:5px 0; font-size:12px; color:#888; overflow-x:auto; scrollbar-width:none; }
.frow::-webkit-scrollbar { display:none; }
.frow span { flex:none; }
.frow .on { color:#FF4757; font-weight:600; }
/* 栏目页 6 条固定文字广告位：三排两列 */
.catads { padding:10px 6px 4px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.catad { min-width:0; min-height:48px; display:flex; align-items:center; background:#fff7e6; border:1px solid #ffe2b0; padding:9px 12px; }
.catad .ca-txt { flex:1; font-size:16px; font-weight:700; color:#b8741a; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== 搜索 · 热搜排行 ===== */
.shead { display:flex; align-items:center; gap:10px; padding:9px 12px; background:#fff; position:sticky; top:0; z-index:20; }
.shead .go { color:#FF4757; font-size:14px; font-weight:600; }
.shead input { flex:1; border:none; outline:none; background:#f1f2f5; border-radius:17px; height:34px; padding:0 14px; font-size:13px; }
.htags { display:flex; flex-wrap:wrap; gap:8px; padding:2px 16px 8px; }
.htag { font-size:12px; color:#555; background:#fff; border:1px solid #ececf0; border-radius:14px; padding:5px 14px; }
.hot-list { background:#fff; }
.hot-item { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid #f4f4f6; }
.hot-rank { width:20px; text-align:center; font-size:16px; font-weight:800; font-style:italic; color:#c4c8d0; flex:none; }
.hot-rank.t1{color:#FF4757}.hot-rank.t2{color:#ff7a18}.hot-rank.t3{color:#ffb300}
.hot-title { flex:1; font-size:13.5px; color:#333; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hot-heat { font-size:11px; color:#aaa; flex:none; }
.hb { font-size:9px; padding:1px 5px; border-radius:3px; margin-left:7px; color:#fff; }

/* ===== 我的 ===== */
.mine-head { background:linear-gradient(135deg,#FF4757,#FF6B81); padding:34px 18px 24px; color:#fff; display:flex; align-items:center; gap:14px; }
.avatar { width:58px; height:58px; flex:none; border-radius:50%; background:rgba(255,255,255,.3); border:2px solid rgba(255,255,255,.7); display:flex; align-items:center; justify-content:center; font-size:26px; box-shadow:0 8px 20px rgba(0,0,0,.12); overflow:hidden; }
.avatar span { transform:translateY(1px); }
.mine-head .name { font-size:17px; font-weight:700; }
.mine-head .sub { font-size:11px; opacity:.85; margin-top:4px; }
.mine-head .uid { font-size:10px; opacity:.7; margin-top:4px; word-break:break-all; }
.mstats { display:flex; background:#fff; margin:-14px 14px 0; border-radius:12px; padding:14px 0; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.mstat { flex:1; text-align:center; }
.mstat b { display:block; font-size:16px; }
.mstat span { font-size:11px; color:#999; }
.mine-section { background:#fff; margin:14px; border-radius:12px; overflow:hidden; }
.mine-title { padding:13px 16px 9px; font-size:15px; font-weight:700; color:#222; border-bottom:1px solid #f4f4f6; }
.mini-row { display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid #f4f4f6; }
.mini-row:last-child { border-bottom:none; }
.mini-thumb { width:108px; aspect-ratio:16/9; border-radius:6px; overflow:hidden; background:#dfe2e8; position:relative; flex:none; }
.mini-thumb span { position:absolute; right:5px; bottom:5px; color:#fff; background:rgba(0,0,0,.62); font-size:9px; border-radius:4px; padding:1px 5px; }
.mini-info { min-width:0; flex:1; }
.mini-info b { display:block; font-size:13px; line-height:1.35; color:#222; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini-info em { display:block; font-style:normal; font-size:11px; color:#999; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini-empty { padding:18px 16px; color:#aaa; font-size:12px; line-height:1.5; }
.ad-self-card { margin:14px; border-radius:12px; background:linear-gradient(135deg,#253142,#56606d); color:#fff; padding:16px; display:flex; align-items:center; justify-content:space-between; gap:14px; box-shadow:0 10px 24px rgba(28,38,50,.16); }
.ad-self-card.alt { margin-top:-4px; background:linear-gradient(135deg,#273247,#46546b); }
.ad-self-card b { display:block; font-size:16px; margin-bottom:5px; }
.ad-self-card span { display:block; color:rgba(255,255,255,.74); font-size:12px; line-height:1.45; }
.ad-self-card em { flex:none; font-style:normal; color:#ffd86b; font-size:12px; }
.ad-flow { padding-bottom:16px; }
.ad-hero { margin:14px; border-radius:16px; padding:18px; color:#fff; display:flex; align-items:flex-end; gap:16px; background:linear-gradient(135deg,#18202c,#466073); box-shadow:0 12px 28px rgba(24,32,44,.2); }
.ad-hero div { flex:1; min-width:0; }
.ad-hero span { display:block; font-size:10px; letter-spacing:.08em; color:rgba(255,255,255,.68); }
.ad-hero h2 { margin-top:4px; font-size:22px; line-height:1.1; }
.ad-hero p { margin-top:8px; font-size:12px; line-height:1.55; color:rgba(255,255,255,.76); }
.ad-hero em { flex:none; font-style:normal; font-size:11px; color:#ffe19b; border:1px solid rgba(255,225,155,.5); border-radius:999px; padding:5px 9px; }
.ad-tabs { margin:0 14px 12px; display:grid; grid-template-columns:1fr 1fr; gap:8px; background:#fff; border-radius:12px; padding:6px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.ad-tabs button { border:0; border-radius:9px; height:36px; background:transparent; color:#777; font-weight:700; font-family:inherit; }
.ad-tabs button.on { background:#FF4757; color:#fff; box-shadow:0 8px 16px rgba(255,71,87,.22); }
.ad-panel { animation:fadeIn .18s ease; }
.ad-step { margin:14px; border-radius:14px; background:#fff; padding:14px; box-shadow:0 2px 10px rgba(0,0,0,.035); }
.ad-step.featured { border:1px solid #f0f1f5; }
.ad-step h3 { font-size:15px; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.ad-step h3 i { width:22px; height:22px; border-radius:50%; background:#fff0f2; color:#FF4757; display:inline-flex; align-items:center; justify-content:center; font-style:normal; font-size:12px; }
.ad-tip { margin:-4px 0 12px; color:#888; font-size:12px; line-height:1.55; }
.slot-list { display:grid; grid-template-columns:1fr; gap:10px; }
.slot-card { width:100%; border:1px solid #ececf0; background:linear-gradient(180deg,#fff,#fbfcfe); border-radius:12px; padding:12px; text-align:left; font-family:inherit; }
.slot-card.on { border-color:#FF4757; background:#fff5f6; box-shadow:0 8px 18px rgba(255,71,87,.12); }
.slot-card b { display:block; font-size:14px; color:#222; }
.slot-card span { display:block; margin-top:5px; font-size:12px; color:#888; }
.slot-card em { display:block; margin-top:7px; font-size:12px; color:#FF4757; font-style:normal; }
.month-row { display:flex; gap:8px; flex-wrap:wrap; }
.month-row button { flex:1; min-width:96px; border:1px solid #ececf0; background:#fff; border-radius:9px; padding:9px 6px; color:#666; font-family:inherit; }
.month-row button.on { border-color:#FF4757; color:#FF4757; background:#fff5f6; font-weight:700; }
.price-box { margin-top:12px; background:#f8f9fb; border-radius:12px; padding:12px; }
.price-box.muted { background:#f5f7fb; border:1px dashed #dde2ec; }
.price-box b { display:block; font-size:22px; color:#FF4757; }
.price-box span { display:block; margin-top:4px; font-size:12px; color:#888; }
.wallet { background:#fff7e6; border:1px solid #ffe2b0; border-radius:10px; padding:12px; margin-bottom:10px; }
.wallet span { display:block; font-size:12px; color:#b8741a; }
.wallet b { display:block; margin-top:5px; font-size:13px; color:#7a4b08; word-break:break-all; font-family:"SF Mono",Menlo,Consolas,monospace; }
.ad-step input { width:100%; height:38px; border:1px solid #dfe2e8; border-radius:9px; padding:0 12px; margin-bottom:10px; outline:none; font-size:13px; }
.ad-step input:focus { border-color:#FF4757; }
.wide-btn { width:100%; border:none; border-radius:9px; height:40px; background:#FF4757; color:#fff; font-weight:700; font-family:inherit; }
.wide-btn:disabled { background:#c9ccd3; }
.ad-order { padding:12px 14px; border-bottom:1px solid #f4f4f6; }
.ad-order:last-child { border-bottom:none; }
.ad-order b { display:block; font-size:13px; color:#222; }
.ad-order span,.ad-order em { display:block; margin-top:5px; font-size:12px; color:#888; font-style:normal; }
.ad-orders-card { box-shadow:0 2px 10px rgba(0,0,0,.035); }
.mlist { background:#fff; margin:14px; border-radius:12px; overflow:hidden; }
.mitem { display:flex; align-items:center; gap:12px; padding:14px 16px; font-size:14px; color:#333; border-bottom:1px solid #f4f4f6; }
.mitem:last-child { border-bottom:none; }
.mitem i { font-style:normal; font-size:17px; width:22px; text-align:center; }
.mitem .arrow { margin-left:auto; color:#ccc; }
.feedback-form { padding-bottom:16px; }
.feedback-form p { padding:12px 16px 0; font-size:12px; line-height:1.55; color:#8f96a3; }
.feedback-form input,.feedback-form textarea { width:calc(100% - 32px); margin:12px 16px 0; border:1px solid #dfe2e8; border-radius:10px; background:#f8f9fb; color:#222; font-family:inherit; font-size:13px; outline:none; }
.feedback-form input { height:40px; padding:0 12px; }
.feedback-form textarea { min-height:138px; resize:none; padding:10px 12px; line-height:1.6; }
.feedback-form input:focus,.feedback-form textarea:focus { border-color:#FF4757; background:#fff; box-shadow:0 0 0 3px rgba(255,71,87,.08); }
.feedback-form .fb-count { display:flex; justify-content:flex-end; padding:7px 16px 10px; color:#adb2bc; font-size:11px; }
.feedback-form .wide-btn { width:calc(100% - 32px); margin:0 16px; }
.feedback-form #fbMsg { padding:12px 16px 0; min-height:32px; }
.about-card { padding:22px 18px 24px; }
.about-card h2 { color:#FF4757; font-size:28px; line-height:1; letter-spacing:0; }
.about-card em { display:inline-flex; margin-top:10px; padding:3px 9px; border-radius:999px; background:#fff0f2; color:#FF4757; font-size:11px; font-style:normal; }
.about-card p { margin-top:14px; color:#555; font-size:13px; line-height:1.75; }
.about-card p + p { margin-top:9px; }

/* 底部导航 */
.tabbar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; height:58px; background:#fff; border-top:1px solid #ededf1; display:flex; z-index:30; }
.tab { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:10px; color:#9aa0a8; }
.tab svg { width:21px; height:21px; fill:none; stroke:#9aa0a8; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tab.on { color:#FF4757; }
.tab.on svg { stroke:#FF4757; }

.loading,.empty { text-align:center; color:#bbb; font-size:12px; padding:30px; }
.hide { display:none !important; }
@keyframes fadeIn { from { opacity:.45; transform:translateY(4px); } to { opacity:1; transform:none; } }
