/* 去水印助手 - 全站样式（首页/登录/用户中心/后台共用） */
/* 全站 CSS 变量（theme.css 里同样定义一份，值一致；首页不加载 theme.css，这里兜底） */
:root{
  --primary:#6366f1; --primary-deep:#4f46e5; --primary-soft:#eef0ff; --accent:#f97316;
  --ink:#1e2338; --ink-2:#5b6178; --ink-3:#8b91a8; --ink-4:#b6bbcd;
  --line:#e9ebf5; --line-2:#f0f1f8; --paper:#FFFFFF; --bg:#f7f8fd; --bg-2:#f4f5fa;
  --ok:#059669; --warn:#b45309; --bad:#dc2626;
  --r:18px; --r-sm:12px;
  --shadow:0 8px 24px rgba(30,35,56,.08); --shadow-up:0 14px 34px rgba(99,102,241,.35);
  --max:1080px; --nav-h:66px;
}
[hidden]{ display:none !important; }

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"PingFang SC","Microsoft YaHei",sans-serif; background:#f7f8fd; color:#1e2338; }
a { text-decoration:none; color:inherit; }
button { font-family:inherit; }
input, select, textarea { font-family:inherit; }

.btn { border:none; cursor:pointer; border-radius:10px; font-size:14px; padding:10px 22px; transition:.2s; font-weight:500; }
.btn-ghost { background:transparent; color:#5b6178; border:1.5px solid #e3e6f0; }
.btn-ghost:hover { border-color:#6366f1; color:#6366f1; }
.btn-primary { background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; box-shadow:0 6px 16px rgba(99,102,241,.35); }
.btn-primary:hover { transform:translateY(-1px); }
.btn-sm { font-size:12px; padding:6px 14px; border-radius:8px; }
.pill { display:inline-block; padding:3px 11px; border-radius:99px; font-size:11.5px; }
.pill.ok { background:#ecfdf5; color:#059669; }
.pill.warn { background:#fffbeb; color:#b45309; }
.pill.off { background:#f3f4f6; color:#6b7280; }
.pill.plat { background:#eef2ff; color:#4f6ef7; }

/* 导航 */
.nav { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:0 max(calc((100% - 900px) / 2), 24px); height:66px; background:rgba(255,255,255,.85); backdrop-filter:blur(12px); box-shadow:0 1px 0 rgba(30,35,56,.06); position:sticky; top:0; z-index:10; }
/* 导航内容收拢到 900px：logo 与用户中心不拉到屏幕两端（窗口窄于 900px 时自动退为 24px 边距）；菜单项多时由 api.js 自适应放宽至多 1280px */
/* 测量自然宽度时禁用两侧弹性撑开（供 fitNavWidth 使用） */
.nav.nav-measuring > .logo, .nav.nav-measuring > #navUser { flex:0 0 auto !important; }
/* 导航位置稳定：两侧等宽撑开 → 菜单永远绝对居中，不随 logo/登录区宽度或滚动条出现而偏移 */
html { scrollbar-gutter: stable; }
.nav > .logo, .nav > #navUser { flex:1 1 auto; min-width:max-content; } /* min-width 防止空间不足时被压缩折行 */
.nav > #navUser { justify-content:flex-end; }
.nav > .menu { flex:0 0 auto; }
.nav .logo { font-size:19px; font-weight:800; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.nav .logo .icon { width:34px; height:34px; background:linear-gradient(135deg,#6366f1,#a855f7); border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px; box-shadow:0 4px 12px rgba(99,102,241,.35); }
.nav .logo em { font-style:normal; background:linear-gradient(90deg,#6366f1,#a855f7); -webkit-background-clip:text; background-clip:text; color:transparent; }
.nav .menu { display:flex; gap:6px; font-size:14.5px; color:#5b6178; }
.nav .menu a { padding:8px 16px; border-radius:9px; white-space:nowrap; }
.nav #navUser .btn, .nav #navUser a { white-space:nowrap; }
.nav .menu a:hover, .nav .menu a.active { background:#eef0ff; color:#6366f1; }
.balance-chip { display:flex; align-items:center; gap:7px; background:linear-gradient(135deg,#fef3c7,#fde68a); border:1px solid #fcd34d; color:#92400e; font-size:13px; font-weight:600; padding:7px 14px; border-radius:99px; white-space:nowrap; }

/* ===== 头像下拉菜单（悬停/点按展开） ===== */
.nav-user-wrap { position:relative; display:flex; align-items:center; gap:10px; }
/* 隐形桥：覆盖头像与下拉框之间的 12px 空隙，鼠标下移时悬停不中断 */
.nav-user-wrap::after { content:''; position:absolute; top:100%; right:0; width:236px; height:14px; }
.nav-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#6366f1,#a855f7); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; cursor:pointer; box-shadow:0 4px 12px rgba(99,102,241,.3); user-select:none; }
.nav-avatar:hover { transform:scale(1.06); }
.nav-drop { position:absolute; top:calc(100% + 12px); right:0; width:236px; background:#fff; border-radius:18px; box-shadow:0 18px 50px rgba(20,22,40,.18); padding:8px; display:none; z-index:120; animation:ndIn .18s ease; }
.nav-user-wrap:hover .nav-drop, .nav-drop.show { display:block; }
@keyframes ndIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.nav-drop::before { content:''; position:absolute; top:-6px; right:16px; width:12px; height:12px; background:#fff; transform:rotate(45deg); border-radius:2px; }
.nd-head { padding:12px 14px 11px; border-bottom:1px solid #f0f1f8; margin-bottom:6px; }
.nd-name { font-size:14px; font-weight:700; color:#2b2f3a; word-break:break-all; }
.nd-pts { margin-top:5px; font-size:12.5px; color:#8b91a8; display:flex; justify-content:space-between; align-items:center; }
.nd-pts b { color:#6366f1; font-size:15px; }
.nd-body { display:flex; flex-direction:column; padding-bottom:6px; }
.nd-body a, .nd-foot a { display:flex; align-items:center; gap:9px; padding:9px 14px; border-radius:10px; font-size:13.5px; color:#5b6178; text-decoration:none; transition:.15s; }
.nd-body a:hover { background:#f4f5fa; color:#6366f1; }
.nd-foot { border-top:1px solid #f0f1f8; padding-top:6px; margin-top:4px; }
.nd-foot a { color:#8b91a8; }
.nd-foot a:hover { background:#fef2f2; color:#dc2626; }

/* Hero + 解析器 */
.hero { position:relative; overflow:hidden; padding:60px 5% 50px; text-align:center; }
.blob { position:absolute; border-radius:50%; filter:blur(70px); opacity:.5; }
.b1 { width:420px; height:420px; background:#c7d2fe; top:-120px; left:-80px; }
.b2 { width:380px; height:380px; background:#e9d5ff; top:-60px; right:-60px; }
.hero .inner { position:relative; z-index:1; }
.hero h1 { font-size:38px; line-height:1.3; margin-bottom:14px; font-weight:800; }
.hero h1 .grad { background:linear-gradient(90deg,#6366f1,#a855f7,#ec4899); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p { color:#71788f; font-size:15px; margin-bottom:32px; }
.parser { max-width:820px; margin:0 auto; background:#fff; border-radius:20px; padding:14px; box-shadow:0 20px 50px rgba(99,102,241,.18); display:flex; gap:10px; align-items:center; }
.parser input { flex:1; border:none; padding:16px 18px; font-size:15px; outline:none; background:transparent; min-width:0; }
/* 输入框内右侧清空按钮：有内容才显示 */
.parser .input-field { flex:1; display:flex; align-items:center; min-width:0; }
.parser .input-field input { flex:1; padding:16px 0 16px 18px; }
.clr-btn { display:none; align-items:center; justify-content:center; width:26px; height:26px; border:none; border-radius:50%; background:#e8eaf3; color:#8a90a6; font-size:14px; cursor:pointer; flex:none; margin-right:10px; transition:all .15s; line-height:1; padding:0; }
.clr-btn:hover { background:#dcdfeb; color:#5b6178; }
.input-field.has .clr-btn { display:flex; }
.hero .tip { font-size:13px; color:#9aa0b5; margin-top:16px; }
.hero .tip b { color:#6366f1; }
.platforms { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:-6px 0 18px; }
.platforms span { background:#fff; border:1px solid #e9ebf5; border-radius:99px; padding:8px 20px; font-size:13.5px; color:#5b6178; box-shadow:0 2px 8px rgba(30,35,56,.04); }
.platforms span.hot { background:linear-gradient(135deg,#fff7e6,#ffedd5); border-color:#fdba74; color:#c2410c; font-weight:600; }

/* 解析结果 */
.result { max-width:820px; margin:22px auto 0; background:#fff; border-radius:18px; padding:22px 24px; box-shadow:0 12px 32px rgba(30,35,56,.09); text-align:left; border:1px solid #f0f1f8; }
.result .head { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.result .t { font-size:15.5px; font-weight:700; flex:1; line-height:1.55; }
.copy-btn { border:1.5px solid #e3e6f0; background:#fff; color:#5b6178; font-size:12.5px; border-radius:9px; padding:6px 13px; cursor:pointer; }
.copy-btn:hover { border-color:#6366f1; color:#6366f1; }
.result .meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.result .meta span { font-size:11.5px; padding:3px 11px; border-radius:99px; background:#f4f5fa; color:#71788f; }
.result .meta span.hd { background:#eef0ff; color:#6366f1; font-weight:600; }
.player video { width:100%; border-radius:14px; background:#000; max-height:460px; display:block; }
.gallery { position:relative; border-radius:14px; overflow:hidden; background:#f4f5fa; aspect-ratio:4/3; }
.gal-track { display:flex; height:100%; transition:transform .35s ease; }
.gal-slide { min-width:100%; height:100%; background:#111; display:flex; align-items:center; justify-content:center; }
.gal-slide img { max-width:100%; max-height:100%; object-fit:contain; user-select:none; }
.gal-nav { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.9); box-shadow:0 4px 14px rgba(0,0,0,.18); border:none; cursor:pointer; font-size:17px; color:#3c4257; }
.gal-nav.prev { left:14px; } .gal-nav.next { right:14px; }
.gal-dots { position:absolute; bottom:12px; left:0; right:0; display:flex; justify-content:center; gap:7px; }
.gal-dots i { width:7px; height:7px; border-radius:99px; background:rgba(255,255,255,.6); cursor:pointer; transition:.2s; }
.gal-dots i.on { width:20px; background:#fff; }
.gal-idx { position:absolute; top:12px; right:12px; background:rgba(0,0,0,.5); color:#fff; font-size:11.5px; padding:3px 11px; border-radius:99px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; justify-content:center; }
.act { border:none; cursor:pointer; border-radius:11px; font-size:13.5px; font-weight:600; padding:11px 20px; transition:.18s; display:inline-flex; align-items:center; gap:6px; text-decoration:none; line-height:1; }
.act-main { background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; box-shadow:0 6px 16px rgba(99,102,241,.3); }
.act-sec { background:#f4f5fa; color:#5b6178; }
.act-sec:hover { background:#eef0ff; color:#6366f1; }
.loading { text-align:center; padding:30px; color:#8b91a8; font-size:14px; }
.loading .spin { display:inline-block; width:26px; height:26px; border:3px solid #e3e6f0; border-top-color:#6366f1; border-radius:50%; animation:sp 1s linear infinite; margin-bottom:10px; }
@keyframes sp { to { transform:rotate(360deg); } }

/* 充值套餐 */
.section-title { text-align:center; font-size:25px; font-weight:800; margin:56px 0 6px; }
.section-sub { text-align:center; color:#8b91a8; font-size:13.5px; margin-bottom:30px; }
.plans { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; padding:0 5% 40px; }
.plan { background:#fff; border:1.5px solid #eceef7; border-radius:20px; padding:28px; text-align:center; width:220px; position:relative; transition:.25s; }
.plan:hover { transform:translateY(-3px); }
.plan.best { box-shadow:0 8px 24px rgba(99,102,241,.14); }
.plan.best.sel { border:2px solid transparent; background:linear-gradient(#f6f6ff,#f6f6ff) padding-box, linear-gradient(135deg,#6366f1,#a855f7) border-box; }
.plan .tag { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:linear-gradient(135deg,#6366f1,#a855f7); color:#fff; font-size:11.5px; padding:4px 16px; border-radius:99px; white-space:nowrap; }
.plan .pts { font-size:22px; font-weight:800; }
.plan .price { font-size:28px; color:#6366f1; font-weight:800; margin:10px 0 2px; }
.plan .desc { font-size:12px; color:#8b91a8; margin:12px 0 18px; line-height:1.8; }
.plan .desc b { color:#5b6178; }

/* 用户中心 */
.wrap { max-width:1280px; margin:28px auto 70px; padding:0 5%; display:flex; gap:24px; align-items:flex-start; }
.profile { width:270px; flex-shrink:0; position:sticky; top:90px; }
.p-card { background:linear-gradient(150deg,#6366f1,#8b5cf6 60%,#a855f7); border-radius:20px; padding:26px 22px; color:#fff; box-shadow:0 16px 36px rgba(99,102,241,.35); }
.p-top { display:flex; align-items:center; gap:13px; margin-bottom:18px; }
.p-avatar { width:50px; height:50px; border-radius:50%; background:rgba(255,255,255,.25); border:2px solid rgba(255,255,255,.5); display:flex; align-items:center; justify-content:center; font-size:19px; font-weight:700; }
.p-name { font-size:15.5px; font-weight:700; }
.p-uid { font-size:12px; color:rgba(255,255,255,.75); margin-top:3px; }
.vip-tag { display:inline-block; background:linear-gradient(135deg,#fde68a,#fbbf24); color:#5b3a03; font-size:11px; font-weight:700; padding:3px 10px; border-radius:99px; margin-top:5px; }
.p-balance { background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); border-radius:14px; padding:15px 18px; text-align:center; }
.p-balance .lbl { font-size:12px; color:rgba(255,255,255,.75); }
.p-balance .num { font-size:26px; font-weight:800; margin-top:4px; }
.p-balance .num small { font-size:12px; font-weight:500; color:rgba(255,255,255,.75); }
.p-menu { background:#fff; border-radius:16px; padding:10px; box-shadow:0 4px 18px rgba(30,35,56,.05); margin-top:16px; }
.p-menu a { display:flex; align-items:center; gap:11px; padding:12px 14px; border-radius:10px; font-size:14px; color:#5b6178; cursor:pointer; }
.p-menu a:hover { background:#f4f5fa; color:#6366f1; }
.p-menu a.on { background:#eef0ff; color:#6366f1; font-weight:600; }
.content { flex:1; min-width:0; }
.panel { background:#fff; border-radius:18px; padding:24px 26px; box-shadow:0 4px 18px rgba(30,35,56,.05); margin-bottom:20px; border:1px solid #f0f1f8; }
.panel h3 { font-size:16.5px; font-weight:700; margin-bottom:4px; }
.panel .sub { font-size:12.5px; color:#9aa0b5; margin-bottom:20px; }
.spk { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.spk .plan { width:auto; cursor:pointer; }
.spk .plan.sel { border:2px solid #6366f1; background:#f6f6ff; }
.pay-methods { display:flex; gap:12px; margin:18px 0 4px; }
.pay { flex:1; display:flex; align-items:center; justify-content:center; gap:9px; border:1.5px solid #eceef7; border-radius:12px; padding:13px; font-size:14px; color:#5b6178; cursor:pointer; }
.pay.sel { border-color:#6366f1; background:#f6f6ff; color:#6366f1; font-weight:600; }
/* 官方品牌色选中态 */
.pay.sel[data-ch="wx"] { border-color:#07C160; background:#f0fbf4; color:#079154; }
.pay.sel[data-ch="ali"] { border-color:#1677FF; background:#f0f6ff; color:#1677FF; }
.pay-note { font-size:12px; color:#9aa0b5; }
.redeem-box { display:flex; gap:12px; }
.redeem-box input { flex:1; border:1.5px solid #e3e6f0; border-radius:11px; padding:13px 16px; font-size:14.5px; outline:none; letter-spacing:1px; }
.redeem-box input:focus { border-color:#6366f1; }
.redeem-tip { margin-top:13px; font-size:12.5px; color:#9aa0b5; line-height:1.8; background:#fafbff; border:1px dashed #dfe3f3; border-radius:10px; padding:11px 15px; }

/* 表单 */
.field { margin-bottom:16px; }
.field label { display:block; font-size:13px; color:#5b6178; margin-bottom:7px; font-weight:600; }
.field input, .field select, .field textarea { width:100%; border:1.5px solid #e3e6f0; border-radius:10px; padding:12px 14px; font-size:14px; outline:none; transition:.15s; background:#fff; }
.field input:focus, .field textarea:focus { border-color:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,.1); }
.form-card { max-width:420px; margin:60px auto; background:#fff; border-radius:20px; padding:34px; box-shadow:0 16px 40px rgba(30,35,56,.08); }
.tabs { display:flex; gap:4px; background:#f4f5fa; border-radius:12px; padding:5px; margin-bottom:22px; width:max-content; }
.tabs a { padding:9px 22px; border-radius:9px; font-size:14px; color:#5b6178; cursor:pointer; }
.tabs a.on { background:#fff; color:#6366f1; font-weight:700; box-shadow:0 2px 8px rgba(30,35,56,.08); }

/* 表格 */
table { width:100%; border-collapse:collapse; font-size:13px; }
th { text-align:left; color:#9aa0b5; font-weight:500; padding:9px 10px; border-bottom:1px solid #f0f1f8; white-space:nowrap; }
td { padding:11px 10px; border-bottom:1px solid #f7f8fc; color:#3c4257; }
.plus { color:#059669; font-weight:700; } .minus { color:#dc2626; font-weight:700; }

/* 后台 */
.admin-body { display:flex; min-height:100vh; }
.side { width:220px; background:#fff; border-right:1px solid #e9ecf5; flex-shrink:0; display:flex; flex-direction:column; }
.side .brand { padding:20px 18px; font-size:16px; font-weight:800; display:flex; align-items:center; gap:10px; border-bottom:1px solid #f0f1f8; }
.side .brand .icon { width:32px; height:32px; background:linear-gradient(135deg,#6366f1,#a855f7); border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:15px; color:#fff; }
.side .brand em { font-style:normal; color:#9aa0b5; font-size:11.5px; font-weight:500; display:block; }
.side .menu { padding:12px; }
.side .menu a { display:flex; align-items:center; gap:11px; padding:11px 14px; border-radius:10px; font-size:14px; margin-bottom:3px; color:#5b6178; cursor:pointer; }
.side .menu a:hover { background:#f4f5fa; color:#1e2338; }
.side .menu a.on { background:linear-gradient(135deg,#eef0ff,#f5f0ff); color:#6366f1; font-weight:700; box-shadow:inset 0 0 0 1.5px #dfe3ff; }
.admin-main { flex:1; padding:24px 28px; min-width:0; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.card { background:#fff; border-radius:16px; padding:20px; box-shadow:0 3px 14px rgba(30,35,56,.05); border:1px solid #eef0f8; }
.card .label { font-size:12.5px; color:#8b91a8; margin-bottom:9px; }
.card .val { font-size:24px; font-weight:800; }
.card .delta { font-size:11.5px; margin-top:7px; color:#9aa0b5; }
.sw-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 16px; border:1px solid #eef0f8; border-radius:12px; background:#fbfcff; margin-bottom:10px; }
.sw-row .n { font-size:13.5px; font-weight:600; }
.sw-row .d { font-size:11.5px; color:#9aa0b5; margin-top:4px; }
.sw { position:relative; width:46px; height:26px; flex-shrink:0; border-radius:99px; background:#d8dbe8; cursor:pointer; border:none; transition:.2s; }
.sw::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.2); transition:.2s; }
.sw.on { background:linear-gradient(135deg,#6366f1,#8b5cf6); }
.sw.on::after { left:23px; }
.op-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-size:13px; }
.op-row input, .op-row select { padding:9px 12px; border:1.5px solid #e6e9f4; border-radius:9px; font-size:13px; outline:none; }
.op-row input:focus { border-color:#6366f1; }
.inline-form { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }
@media (max-width:860px){ .wrap{ flex-direction:column; } .profile{ width:100%; position:static; } .spk{ grid-template-columns:1fr; } .stats{ grid-template-columns:1fr 1fr; } .admin-body{ flex-direction:column; } .side{ width:100%; } }

/* Toast */
.toast { position:fixed; left:50%; bottom:22%; transform:translateX(-50%) translateY(20px); background:#1e2338; color:#fff; font-size:13.5px; padding:11px 24px; border-radius:99px; opacity:0; pointer-events:none; transition:.3s; z-index:500; box-shadow:0 10px 30px rgba(20,22,40,.35); }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ===== 移动端适配（≤640px） ===== */
/* 桌面端不显示底部 Tab 栏（须写在 media query 之前，避免覆盖） */
.tabbar { display:none; }
@media (max-width:640px){
  html { scrollbar-gutter:auto; }
  /* 导航改两行：第一行 logo + 登录区，第二行菜单居中，避免挤压竖排/溢出 */
  .nav { flex-wrap:wrap; height:auto; padding:8px 14px 4px; }
  .nav > .logo, .nav > #navUser { flex:0 0 auto; }
  .nav .logo { font-size:16.5px; gap:8px; white-space:nowrap; }
  .nav .logo .icon { width:28px; height:28px; font-size:14px; border-radius:8px; }
  .nav > .menu { display:none; } /* 移动端菜单走底部 Tab 栏 */
  .nav .menu a { padding:7px 12px; font-size:13.5px; white-space:nowrap; }
  .nav #navUser .btn { padding:8px 14px; font-size:13px; white-space:nowrap; }
  .nav-user-wrap { gap:8px; }
  .nav-user-wrap::after { width:150px; }
  .balance-chip { padding:6px 10px; font-size:12px; }
  /* 首页 hero */
  .hero { padding:38px 5% 36px; }
  .hero h1 { font-size:26px; }
  .hero p { font-size:13.5px; margin-bottom:22px; }
  /* 解析框改上下堆叠 */
  .parser { flex-direction:column; padding:12px; gap:8px; }
  .parser input { width:100%; text-align:center; padding:13px 12px; }
  .parser .input-field input { padding:13px 6px 13px 12px; }
  .clr-btn { margin-right:6px; }
  .parser .btn-primary { width:100%; padding:13px 0 !important; font-size:15px !important; }
  .platforms span { padding:7px 14px; font-size:12.5px; }
  /* 记录/明细表格超宽时横向滑动，不撑破页面 */
  .panel table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  /* 弹窗卡片留边 */
  .rec { width:calc(100vw - 32px) !important; }
  /* APP 式底部 Tab 栏 */
  body { padding-bottom:calc(62px + env(safe-area-inset-bottom)); }
  .tabbar {
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:150;
    background:rgba(255,255,255,.97); backdrop-filter:blur(14px);
    box-shadow:0 -4px 22px rgba(30,35,56,.1);
    padding:6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
    font-size:11px; color:#8b91a8; padding:5px 0 3px; border-radius:12px; transition:.15s; }
  .tabbar a .ico { font-size:21px; line-height:1; }
  .tabbar a.on { color:#6366f1; font-weight:700; }
  .tabbar a.on .ico { transform:translateY(-1px) scale(1.08); }
  .tabbar a:active { background:#f4f5fa; }
}
