/* ================= 大玩家社区 H5 ================= */
:root{
  --bg:#f4f5f7; --card:#fff; --ink:#1f2430; --sub:#8a90a0; --line:#eef0f4;
  --brand:#4a7dff; --brand2:#7b61ff; --pink:#ff5aa2; --green:#18b86a; --orange:#ff8a3d; --red:#ff4d4f; --gold:#f5b800;
  --shadow:0 6px 22px rgba(31,36,48,.06);
  --shadow2:0 12px 34px rgba(60,70,120,.12);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font-family:inherit;border:none;background:none;cursor:pointer;color:inherit}
img{display:block}
input,textarea{font-family:inherit;outline:none;border:none;color:inherit}
.hidden{display:none!important}
::-webkit-scrollbar{width:0;height:0}

/* ============ 3D 图标砖（高清矢量光泽） ============ */
.i3d{position:relative;border-radius:24%;display:inline-flex;align-items:center;justify-content:center;flex:none;
  box-shadow:inset 0 2px 2px rgba(255,255,255,.65),inset 0 -6px 9px rgba(0,0,0,.16),0 9px 16px -6px rgba(30,40,80,.35)}
.i3d::after{content:'';position:absolute;left:14%;top:9%;width:46%;height:26%;border-radius:99px;
  background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,0));transform:rotate(-8deg);pointer-events:none}
.i3d span{font-size:62%;line-height:1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18));position:relative;z-index:1}
.s56{width:56px;height:56px}.s56 span{font-size:32px}
.s50{width:50px;height:50px}.s50 span{font-size:28px}
.s44{width:44px;height:44px}.s44 span{font-size:24px}
.s38{width:38px;height:38px}.s38 span{font-size:21px}
.g-gold{background:linear-gradient(150deg,#ffd968,#f0a500)}
.g-pink{background:linear-gradient(150deg,#ff8cc0,#ff4d97)}
.g-purple{background:linear-gradient(150deg,#a18bff,#6f52f5)}
.g-cyan{background:linear-gradient(150deg,#56e0d2,#0fb3a3)}
.g-orange{background:linear-gradient(150deg,#ffb873,#ff7f2e)}
.g-yellow{background:linear-gradient(150deg,#ffe07a,#f0b400)}
.g-blue{background:linear-gradient(150deg,#6ea0ff,#3b6cf6)}
.g-red{background:linear-gradient(150deg,#ff8a8a,#f5483f)}
.g-teal{background:linear-gradient(150deg,#59d6a4,#12a873)}

/* ============ 顶栏 ============ */
#topbar{position:sticky;top:0;z-index:40;background:rgba(244,245,247,.9);backdrop-filter:blur(12px)}
.top-inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 16px}
.top-logo{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800}
.logo-tile{width:38px;height:38px;border-radius:13px;background:linear-gradient(150deg,#6ea0ff,#6f52f5);
  display:flex;align-items:center;justify-content:center;font-size:21px;
  box-shadow:inset 0 2px 2px rgba(255,255,255,.55),inset 0 -5px 8px rgba(0,0,0,.15),0 8px 16px -6px rgba(80,90,220,.5)}
.top-actions{display:flex;gap:10px}
.icon-btn{position:relative;width:40px;height:40px;border-radius:13px;background:#fff;box-shadow:var(--shadow);
  display:flex;align-items:center;justify-content:center;font-size:18px}
.red-dot{position:absolute;right:8px;top:8px;width:8px;height:8px;border-radius:50%;background:var(--red);border:1.5px solid #fff}

/* ============ 布局 ============ */
#view{max-width:1180px;margin:0 auto;padding:4px 14px 96px}
.wide{max-width:980px;margin:0 auto}
.narrow{max-width:760px;margin:0 auto}
.card{background:var(--card);border-radius:20px;box-shadow:var(--shadow);padding:18px;margin-bottom:14px}
.page-head{display:flex;align-items:center;gap:12px;padding:6px 2px 14px}
.back-btn{width:40px;height:40px;border-radius:12px;background:#fff;box-shadow:var(--shadow);font-size:17px;display:flex;align-items:center;justify-content:center}
.page-head h2{font-size:19px;font-weight:800;flex:1}

/* ============ 首页：Banner ============ */
.banner{border-radius:18px;overflow:hidden;margin-bottom:14px;position:relative;box-shadow:var(--shadow2);background:#e9ecf3}
.banner img{width:100%;height:150px;object-fit:cover}
.banner-dots{position:absolute;bottom:9px;left:0;right:0;display:flex;justify-content:center;gap:5px}
.banner-dots i{width:6px;height:6px;border-radius:6px;background:rgba(255,255,255,.6);transition:.2s}
.banner-dots i.on{width:16px;background:#fff}
.banner-single{display:block}

/* ============ 分类宫格 ============ */
.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px 6px}
.cat-cell{display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 0;border-radius:14px;position:relative}
.cat-cell .ct{font-size:13.5px;font-weight:700;color:#333b4d}
.cat-cell .i3d{border:2.5px solid transparent;transition:.15s}
.cat-cell.active .ct{color:var(--brand)}
.cat-cell.active .i3d{border-color:var(--brand);box-shadow:inset 0 2px 2px rgba(255,255,255,.6),inset 0 -6px 9px rgba(0,0,0,.18),0 9px 16px -6px rgba(74,125,255,.5)}
.cat-cell.active .cat-underline{width:18px;height:3px;border-radius:3px;background:#ff5a3c}
.cat-underline{height:3px}
@media(min-width:768px){.cat-grid{grid-template-columns:repeat(6,1fr);gap:22px 10px}.cat-cell .ct{font-size:14px}}

/* ============ 公告条 ============ */
.notice-bar{display:flex;align-items:center;gap:11px;padding:13px 16px;margin-bottom:14px;cursor:pointer}
.notice-tag{background:var(--green);color:#fff;font-size:12px;font-weight:800;padding:3px 9px;border-radius:7px;flex:none}
.notice-bar .nt{flex:1;font-weight:700;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-bar .nr{color:#b4bac8;font-size:13px;flex:none;display:flex;align-items:center;gap:3px}

/* ============ 文字 Tabs ============ */
.text-tabs{display:flex;gap:26px;padding:4px 2px 0;margin-bottom:10px}
.text-tabs a{font-size:16px;color:#9aa0b0;font-weight:700;padding-bottom:9px;position:relative}
.text-tabs a.on{color:var(--ink);font-size:18px}
.text-tabs a.on::after{content:'';position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:20px;height:3.5px;border-radius:4px;background:#ff5a3c}

/* ============ 帖子卡片 ============ */
.post-card{background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:16px;margin-bottom:13px;display:block;transition:.15s}
.post-card:active{transform:scale(.992)}
.pc-head{display:flex;align-items:center;gap:10px}
.avatar{width:42px;height:42px;border-radius:50%;flex:none;background:linear-gradient(150deg,#6ea0ff,#6f52f5);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;object-fit:cover;
  box-shadow:0 4px 10px rgba(80,90,200,.25)}
.pc-user{flex:1;min-width:0}
.pc-user .nm{font-weight:700;font-size:14.5px}
.pc-user .tm{color:#a2a8b6;font-size:12px;margin-top:1px}
.pc-cat{font-size:12px;font-weight:700;padding:4px 11px;border-radius:99px;flex:none}
.pc-flags{display:flex;gap:6px;margin:9px 0 2px}
.flag{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:6px}
.flag-top{background:#fff1e5;color:#ff7f2e}.flag-ess{background:#e7f9f0;color:#0fa968}
.pc-title{font-size:16.5px;font-weight:800;margin:8px 0 6px;line-height:1.4}
.pc-content{color:#5b6272;font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-imgs{display:grid;gap:6px;margin-top:11px;border-radius:13px;overflow:hidden}
.pc-imgs.n1{grid-template-columns:1fr;max-width:62%}
.pc-imgs.n2,.pc-imgs.n4{grid-template-columns:1fr 1fr}
.pc-imgs.n3,.pc-imgs.n5,.pc-imgs.n6,.pc-imgs.n7,.pc-imgs.n8,.pc-imgs.n9{grid-template-columns:repeat(3,1fr)}
.pc-imgs img{width:100%;aspect-ratio:1;object-fit:cover;background:#eef0f4;border-radius:10px}
.pc-imgs.n1 img{aspect-ratio:16/10;max-height:260px}
.pc-foot{display:flex;gap:26px;margin-top:13px;color:#9aa0b0;font-size:13px}
.pc-foot span{display:flex;align-items:center;gap:5px}
.pc-foot .liked{color:#ff5a5a}
.pc-foot .faved{color:#ffb02e}

/* ============ 悬浮发帖按钮 ============ */
.fab{position:fixed;right:18px;bottom:86px;z-index:30;width:58px;height:58px;border-radius:21px;
  background:linear-gradient(145deg,#5b8cff,#6f52f5);color:#fff;font-size:26px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 28px rgba(90,90,240,.45),inset 0 2px 2px rgba(255,255,255,.45),inset 0 -4px 7px rgba(0,0,0,.15)}
@media(min-width:768px){.fab{bottom:104px;right:calc(50% - 520px)}}

/* ============ 底部导航 ============ */
#tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);
  border-top:1px solid var(--line);display:flex;padding:7px 0 calc(7px + env(safe-area-inset-bottom))}
.tab-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;color:#9aa0b0;font-size:11.5px;font-weight:700}
.tab-item .ti{font-size:22px;filter:grayscale(.25);transition:.15s}
.tab-item.on{color:var(--brand)}
.tab-item.on .ti{transform:translateY(-2px) scale(1.08);filter:none}
@media(min-width:768px){
  #tabbar{left:50%;transform:translateX(-50%);bottom:16px;width:380px;border:1px solid var(--line);border-radius:24px;
    padding:9px 0;box-shadow:var(--shadow2)}
}

/* ============ 版块页（每行 5 个，自动换行） ============ */
.sec-grid-card{padding:22px 12px}
.sec-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:22px 4px}
.sec-cell{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.sec-cell .sec-tile{width:clamp(44px,13vw,56px);height:clamp(44px,13vw,56px);transition:.15s}
.sec-cell .sec-tile span{font-size:clamp(22px,6.2vw,31px)}
.sec-cell:active .sec-tile{transform:scale(.92)}
.sec-name{font-size:13px;font-weight:700;color:#333b4d;text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:768px){
  .sec-grid{gap:30px 10px}
  .sec-name{font-size:14px}
}

/* ============ 我的 ============ */
.me-hero{background:linear-gradient(135deg,#5b8cff,#7b61ff 60%,#9b6bff);border-radius:22px;padding:24px 20px;color:#fff;
  box-shadow:0 14px 30px rgba(90,100,230,.35);margin-bottom:14px;position:relative;overflow:hidden}
.me-hero::before{content:'';position:absolute;right:-40px;top:-50px;width:180px;height:180px;border-radius:50%;
  background:rgba(255,255,255,.12)}
.me-row{display:flex;align-items:center;gap:14px;position:relative;z-index:1}
.me-hero .avatar{width:64px;height:64px;font-size:24px;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.me-hero .avatar img{width:100%;height:100%;border-radius:50%}
.me-name{font-size:21px;font-weight:800}
.me-sign{font-size:13px;opacity:.9;margin-top:4px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.me-stats{display:flex;margin-top:18px;position:relative;z-index:1}
.me-stats a{flex:1;text-align:center}
.me-stats .n{font-size:19px;font-weight:800}
.me-stats .l{font-size:12px;opacity:.88;margin-top:2px}
.me-guest{text-align:center;padding:30px 0}
.me-guest .gicon{font-size:54px}
.me-guest h3{margin:12px 0 6px;font-size:18px}
.me-guest p{color:rgba(255,255,255,.85);font-size:13px;margin-bottom:16px}
.btn-white{display:inline-block;background:#fff;color:#5566e8;font-weight:800;padding:10px 34px;border-radius:99px;font-size:15px;
  box-shadow:0 8px 18px rgba(30,40,90,.25)}
.menu-card{padding:4px 16px}
.menu-row{display:flex;align-items:center;gap:13px;padding:16px 2px;font-size:15px;font-weight:600}
.menu-row + .menu-row{border-top:1px solid #f4f5f8}
.menu-row .mi{font-size:20px;width:24px;text-align:center}
.menu-row .mr{flex:1}
.menu-row .ar{color:#c0c5d0}
.menu-row .badge{background:var(--red);color:#fff;font-size:11px;min-width:18px;height:18px;border-radius:9px;padding:0 5px;
  display:flex;align-items:center;justify-content:center;font-weight:700}

/* ============ 登录 ============ */
.login-wrap{max-width:420px;margin:26px auto 0}
.login-hero{text-align:center;padding:16px 0 8px}
.login-hero .logo-tile{width:72px;height:72px;border-radius:24px;font-size:38px;margin:0 auto 14px}
.login-hero h2{font-size:23px;margin-bottom:6px}
.login-hero p{color:#8a90a0;font-size:13.5px}
.login-box{background:#fff;border-radius:22px;padding:24px 20px;box-shadow:var(--shadow)}
.lf{display:flex;align-items:center;gap:10px;border:2px solid #eef0f4;border-radius:14px;padding:0 14px;height:52px;margin-bottom:14px;background:#fafbfc;transition:.2s}
.lf:focus-within{border-color:var(--brand);background:#fff}
.lf .p{font-size:18px}
.lf input{flex:1;height:100%;background:transparent;font-size:15px;min-width:0}
.lf .getcode{color:var(--brand);font-weight:700;font-size:13.5px;white-space:nowrap;border-left:1px solid #e6e8ee;padding-left:11px}
.lf .getcode:disabled{color:#b4bac8}
.btn-main{width:100%;height:52px;border-radius:15px;background:linear-gradient(135deg,#4a7dff,#6f52f5);color:#fff;font-size:17px;font-weight:800;
  box-shadow:0 12px 24px rgba(86,100,240,.38)}
.btn-main:active{transform:translateY(1px)}
.btn-main:disabled{opacity:.6}
.login-note{text-align:center;color:#a9afbd;font-size:12px;margin-top:14px;line-height:1.7}

/* ============ 发帖 ============ */
.pub-sel{display:flex;flex-wrap:wrap;gap:9px}
.pub-chip{padding:8px 15px;border-radius:99px;background:#f1f3f8;font-size:13.5px;font-weight:700;color:#5b6272}
.pub-chip.on{background:linear-gradient(135deg,#4a7dff,#6f52f5);color:#fff;box-shadow:0 6px 14px rgba(90,100,230,.35)}
.pub-title{width:100%;font-size:17px;font-weight:800;padding:4px 0 12px;border-bottom:1px solid #f1f2f6}
.pub-content{width:100%;min-height:200px;resize:none;padding:14px 0;font-size:15px;line-height:1.7}
.pub-imgs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}
.pub-imgs .up{aspect-ratio:1;border-radius:13px;background:#f4f5f8;border:2px dashed #dfe3eb;display:flex;align-items:center;justify-content:center;font-size:30px;color:#b4bac8;position:relative;overflow:hidden}
.pub-imgs .up img{width:100%;height:100%;object-fit:cover}
.pub-imgs .up .del{position:absolute;right:4px;top:4px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center;z-index:2}
.up-prog{position:absolute;left:0;bottom:0;height:3px;background:var(--brand);width:0}

/* ============ 帖子详情 ============ */
.detail-title{font-size:21px;font-weight:800;line-height:1.4;margin:4px 0 12px}
.detail-content{font-size:15.5px;line-height:1.85;color:#2c3242}
.detail-imgs{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.detail-imgs img{width:100%;border-radius:14px}
.detail-video{width:100%;border-radius:14px;margin-top:12px;max-height:70vh;background:#000}
.detail-actions{display:flex;margin-top:18px;border-top:1px solid #f1f2f6;padding-top:16px;gap:0}
.detail-actions button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;color:#7a8194;font-size:12.5px;font-weight:700}
.detail-actions .da{width:46px;height:46px;border-radius:50%;background:#f4f5f8;display:flex;align-items:center;justify-content:center;font-size:21px}
.detail-actions button.on .da{background:#ffeaea}
.detail-actions button.on{color:#ff5a5a}
.comment-bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom));display:flex;gap:10px;z-index:35}
.comment-bar input{flex:1;background:#f1f3f8;border-radius:99px;padding:0 18px;height:42px;font-size:14px}
.comment-bar button{background:linear-gradient(135deg,#4a7dff,#6f52f5);color:#fff;font-weight:800;border-radius:99px;padding:0 22px;height:42px}
@media(min-width:768px){.comment-bar{left:50%;transform:translateX(-50%);bottom:16px;width:560px;border:1px solid var(--line);border-radius:99px;box-shadow:var(--shadow2)}}
.cm-item{display:flex;gap:11px;padding:15px 0}
.cm-item + .cm-item{border-top:1px solid #f4f5f8}
.cm-item .avatar{width:38px;height:38px;font-size:14px}
.cm-body{flex:1;min-width:0}
.cm-body .nm{font-weight:700;font-size:13.5px}.cm-body .tm{color:#adb2c0;font-size:11.5px;margin-left:8px}
.cm-body .ct{margin-top:4px;font-size:14.5px;color:#3a4152;white-space:pre-wrap;word-break:break-word}

/* ============ 用户主页 / 关注 ============ */
.user-hero{background:#fff;border-radius:22px;padding:24px 20px;text-align:center;box-shadow:var(--shadow);margin-bottom:14px}
.user-hero .avatar{width:72px;height:72px;font-size:28px;margin:0 auto 10px}
.user-hero h2{font-size:20px}
.user-hero .sig{color:#8a90a0;font-size:13px;margin-top:5px}
.user-hero .ustats{display:flex;margin-top:18px}
.user-hero .ustats a{flex:1}
.user-hero .ustats .n{font-size:100;font-weight:800;font-size:19px}
.user-hero .ustats .l{color:#8a90a0;font-size:12px;margin-top:2px}
.btn-follow{margin-top:16px;background:linear-gradient(135deg,#4a7dff,#6f52f5);color:#fff;font-weight:800;padding:11px 44px;border-radius:99px;font-size:15px;box-shadow:0 10px 20px rgba(90,100,230,.35)}
.btn-follow.on{background:#f1f3f8;color:#7a8194;box-shadow:none}
.rel-row{display:flex;align-items:center;gap:12px;padding:14px 2px}
.rel-row + .rel-row{border-top:1px solid #f4f5f8}
.rel-row .rinfo{flex:1;min-width:0}.rel-row .rinfo b{display:block}.rel-row .rinfo p{color:#9aa0b0;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn-sm-f{padding:7px 17px;border-radius:99px;font-size:13px;font-weight:700;background:linear-gradient(135deg,#4a7dff,#6f52f5);color:#fff}
.btn-sm-f.on{background:#f1f3f8;color:#8a90a0}

/* ============ 私信 ============ */
.msg-row{display:flex;align-items:center;gap:12px;padding:14px 2px}
.msg-row + .msg-row{border-top:1px solid #f4f5f8}
.msg-row .minfo{flex:1;min-width:0}
.msg-row .mtop{display:flex;justify-content:space-between;gap:8px}
.msg-row .mname{font-weight:700}.msg-row .mtime{color:#b4bac8;font-size:12px;flex:none}
.msg-row .mlast{color:#9aa0b0;font-size:13px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-row .uc{width:8px;height:8px;border-radius:50%;background:var(--red);flex:none;margin-right:6px}
.chat-wrap{display:flex;flex-direction:column;gap:14px;margin-bottom:80px}
.bubble{max-width:74%;padding:11px 15px;border-radius:18px;font-size:15px;line-height:1.55;word-break:break-word;white-space:pre-wrap}
.bubble.mine{align-self:flex-end;background:linear-gradient(135deg,#5b8cff,#6f52f5);color:#fff;border-bottom-right-radius:6px}
.bubble.other{align-self:flex-start;background:#fff;box-shadow:var(--shadow);border-bottom-left-radius:6px}
.bubble .bt{font-size:11px;opacity:.7;margin-top:4px}
.chat-input{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom));display:flex;gap:10px;z-index:35}
.chat-input input{flex:1;background:#f1f3f8;border-radius:99px;padding:0 18px;height:42px;font-size:14px}
.chat-input button{background:linear-gradient(135deg,#4a7dff,#6f52f5);color:#fff;font-weight:800;border-radius:99px;padding:0 22px;height:42px}
@media(min-width:768px){.chat-input{left:50%;transform:translateX(-50%);bottom:16px;width:560px;border:1px solid var(--line);border-radius:99px;box-shadow:var(--shadow2)}}

/* ============ 搜索 ============ */
.search-box{display:flex;gap:10px;margin-bottom:14px}
.search-box input{flex:1;height:46px;border-radius:14px;background:#fff;box-shadow:var(--shadow);padding:0 18px;font-size:15px}
.search-box button{width:46px;border-radius:14px;background:linear-gradient(135deg,#4a7dff,#6f52f5);color:#fff;font-size:18px}

/* ============ 通用状态 ============ */
.load-more{text-align:center;color:#a9afbd;padding:18px 0;font-size:13px}
.state-empty{text-align:center;padding:60px 20px;color:#a9afbd}
.state-empty .eico{font-size:52px;display:block;margin-bottom:12px}
.state-empty p{font-size:14px}
#loading{position:fixed;inset:0;background:rgba(244,245,247,.7);z-index:90;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px)}
.spin{width:42px;height:42px;border:4px solid #dce3ff;border-top-color:var(--brand);border-radius:50%;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
#toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:120;display:flex;flex-direction:column;gap:9px;pointer-events:none}
.toast{background:rgba(28,33,48,.94);color:#fff;padding:11px 20px;border-radius:13px;font-size:14px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.25);animation:tin .25s}
.toast.ok{background:rgba(18,168,92,.95)}.toast.err{background:rgba(255,77,79,.95)}
@keyframes tin{from{opacity:0;transform:translateY(-12px) translateX(-50%)}to{opacity:1}}

/* 图片预览 */
.img-viewer{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}
.img-viewer img{max-width:100%;max-height:100%;border-radius:8px}
