/* ==========================================================
   能力星球 · 移动端样式
   ========================================================== */
:root{
    --brand:#3b7dfc;
    --brand-2:#7aa8ff;
    --brand-deep:#2f6ae0;
    --orange:#ff9a3c;
    --orange-2:#ffc06a;
    --ink:#101828;
    --ink-2:#344054;
    --sub:#8c96a8;
    --line:#eef1f6;
    --card:#ffffff;
    --radius:20px;
    --radius-sm:14px;
    --shadow:0 10px 30px rgba(28,60,130,.08);
    --shadow-sm:0 4px 14px rgba(28,60,130,.07);
    --nav-h:64px;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
    background:#fff;
    color:var(--ink);
    font-size:14px;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}
button{font-family:inherit;font-size:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;outline:none}
h1,h2,h3,h4,p{margin:0}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* 上传图片 icon：填满父容器，保持与 SVG icon 一致的占位 */
.ico-img{width:100%;height:100%;object-fit:contain;border-radius:inherit;flex:none;display:block}
.svg-sprite symbol[viewBox] ~ *{}

/* ------------------ 背景光斑 ------------------ */
.bg-blobs{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.blob{position:absolute;display:block;border-radius:50%;filter:blur(58px);opacity:.5}
.b1{width:280px;height:280px;top:-90px;left:-80px;background:#cfe0ff}
.b2{width:250px;height:250px;top:-60px;right:-90px;background:#e6dcff}
.b3{width:260px;height:260px;bottom:-90px;left:-70px;background:#fff0cc}
.b4{width:300px;height:300px;bottom:-120px;right:-100px;background:#cfe9ff}

/* ------------------ 页面容器 ------------------ */
.phone{
    position:relative;z-index:1;
    max-width:480px;margin:0 auto;
    padding:0 16px;
    padding-bottom:calc(var(--nav-h) + 60px);
}
.view{display:none;animation:fadeUp .28s ease both}
.view.is-active{display:block}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ------------------ 页头 ------------------ */
.page-head{padding-top:22px}
.head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.kicker{font-size:13px;font-weight:600;color:var(--brand);letter-spacing:.2px}
.kicker-sub{font-size:12px;color:var(--sub);margin-top:2px}
.page-title{
    font-size:34px;font-weight:900;letter-spacing:-.8px;
    line-height:1.16;margin:14px 0 18px;color:var(--ink);
}
.avatar-btn{
    width:56px;height:56px;border-radius:50%;flex:none;
    background:linear-gradient(135deg,#dfeaff,#f2e7ff);
    color:var(--brand);
    display:flex;align-items:center;justify-content:center;
    box-shadow:var(--shadow-sm);overflow:hidden;
}
.avatar-btn .ico{width:26px;height:26px}
.avatar-btn img{width:100%;height:100%;object-fit:cover}

/* ------------------ 广告横幅 ------------------ */
.ad-banner{
    margin:14px 0 0;border-radius:16px;overflow:hidden;position:relative;
    background:linear-gradient(135deg,#e8f4fd 0%,#f0e6ff 50%,#fff5e6 100%);
    padding:24px 20px;min-height:130px;display:flex;align-items:flex-end;
}
.ad-content{position:relative;z-index:1}
.ad-content h2{font-size:22px;font-weight:900;line-height:1.25;color:var(--ink);margin:0 0 4px}
.ad-content p{font-size:13px;color:var(--ink-2);margin:0;line-height:1.5}
.ad-tag{
    position:absolute;top:14px;left:20px;z-index:2;
    padding:4px 14px;border-radius:999px;font-size:11px;font-weight:700;
    background:linear-gradient(135deg,var(--brand),#5e95ff);color:#fff;
}
/* 图片模式广告 */
.ad-banner.ad-img{
    padding:0;min-height:0;display:block;
    background:#f0f2f6;
}
.ad-banner.ad-img img{
    display:block;width:100%;aspect-ratio:16/9;object-fit:cover;
    border-radius:16px;
}
/* 多图轮播模式 */
.ad-banner.ad-carousel{
    padding:0;min-height:0;overflow:hidden;background:#f0f2f6;border-radius:16px;
}
.ad-banner.ad-carousel .carousel-track{
    display:flex;width:100%;transition:transform .5s ease;
}
.ad-banner.ad-carousel .carousel-slide{
    flex-shrink:0;width:100%;
}
.ad-banner.ad-carousel .carousel-slide a{
    display:block;width:100%;aspect-ratio:16/9;
}
.ad-banner.ad-carousel .carousel-slide img{
    display:block;width:100%;height:100%;object-fit:cover;border-radius:16px;
}
.ad-banner.ad-carousel .carousel-dots{
    position:absolute;bottom:8px;left:0;right:0;display:flex;gap:6px;justify-content:center;
}
.ad-banner.ad-carousel .carousel-dots button{
    width:6px;height:6px;border-radius:50%;border:none;background:rgba(255,255,255,.5);
    padding:0;cursor:pointer;transition:all .3s;
}
.ad-banner.ad-carousel .carousel-dots button.is-on{
    width:18px;border-radius:3px;background:#fff;
}

/* 返回按钮（收藏页等） */
.back-btn{
    width:36px;height:36px;display:flex;align-items:center;justify-content:center;
    border-radius:50%;background:rgba(255,255,255,.8);border:1px solid rgba(59,125,252,.1);
    box-shadow:0 2px 8px rgba(28,60,130,.06);cursor:pointer;
}
.back-btn:active{transform:scale(.95)}
.back-btn .ico{width:18px;height:18px;color:var(--ink)}

/* ------------------ 通知栏 ------------------ */
.notice-bar{
    display:flex;align-items:center;gap:8px;
    margin:12px 0 0;padding:12px 14px;border-radius:14px;
    background:#fff;border:1px solid rgba(59,125,252,.08);
    box-shadow:0 2px 8px rgba(59,125,252,.04);
}
.notice-ico{width:18px;height:18px;color:var(--brand);flex:none}
.notice-label{font-size:12px;font-weight:700;color:var(--brand);flex:none}
.notice-text{
    font-size:12.5px;color:var(--ink-2);line-height:1.5;white-space:nowrap;
}
.notice-marquee{
    flex:1;min-width:0;overflow:hidden;
    font-size:12.5px;color:var(--ink-2);line-height:1.5;
}

/* ------------------ 搜索框 ------------------ */
.searchbar{
    display:flex;align-items:center;gap:10px;
    background:#fff;border-radius:999px;
    padding:8px 8px 8px 16px;
    box-shadow:var(--shadow);
    border:1px solid rgba(59,125,252,.07);
}
.search-ico{color:#a9b2c3;width:19px;height:19px}
.searchbar input{
    flex:1;min-width:0;border:0;background:none;height:36px;font-size:13.5px;
}
.searchbar input::placeholder{color:#a9b2c3}
.searchbar input::-webkit-search-cancel-button{display:none}
.search-all{
    flex:none;height:36px;padding:0 18px;border-radius:999px;
    background:linear-gradient(135deg,var(--brand),#5e95ff);
    color:#fff;font-size:13px;font-weight:700;
    box-shadow:0 6px 14px rgba(59,125,252,.28);
}

/* ------------------ 分类胶囊 ------------------ */
.chips{
    display:flex;gap:8px;margin-top:14px;
    overflow-x:auto;overflow-y:hidden;
    padding-bottom:4px;
    scrollbar-width:none;-ms-overflow-style:none;
}
.chips::-webkit-scrollbar{display:none}
.chip{
    flex:none;height:34px;padding:0 16px;border-radius:999px;
    background:#fff;color:var(--ink-2);font-size:13px;font-weight:600;
    border:1px solid var(--line);box-shadow:0 2px 8px rgba(28,60,130,.04);
    white-space:nowrap;
}
.chip.is-active{
    background:linear-gradient(135deg,var(--brand),#5e95ff);
    color:#fff;border-color:transparent;
    box-shadow:0 6px 16px rgba(59,125,252,.3);
}

/* ------------------ 瀑布流 ------------------ */
.masonry{
    column-count:2;column-gap:12px;
    margin-top:18px;
}
.masonry>*{break-inside:avoid;margin-bottom:12px;display:inline-block;width:100%}

/* ------------------ 能力卡 ------------------ */
.ab-card{
    background:#fff;border-radius:var(--radius);overflow:hidden;
    box-shadow:var(--shadow);border:1px solid rgba(19,48,110,.04);
    text-align:left;
}
.ab-cover{
    position:relative;height:78px;
    display:flex;align-items:center;padding:0 12px;
}
.ab-ico{
    width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.92);
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 4px 12px rgba(16,40,90,.14);
}
.ab-ico .ico{width:20px;height:20px}
.ab-card .ab-cover{position:relative}
.ab-badge{
    position:absolute;top:9px;right:9px;
    height:20px;padding:0 9px;border-radius:999px;
    background:rgba(255,255,255,.94);color:#e8631d;
    font-size:10.5px;font-weight:800;line-height:20px;
}
.ab-badge + .ab-badge{right:auto;left:9px}
.ab-badge.free{background:linear-gradient(135deg,#36d399,#64e3b8);color:#fff}
.ab-badge.quota{background:rgba(255,255,255,.94);color:#2a6fd1}
.ab-body{padding:11px 12px 12px}
.ab-card h3{font-size:14.5px;font-weight:800;letter-spacing:-.2px}
.ab-card p{font-size:11.5px;color:var(--sub);margin-top:4px;line-height:1.45;min-height:33px}
.ab-foot{display:flex;align-items:center;gap:8px;margin-top:10px}
.ab-go{
    flex:1;height:32px;border-radius:999px;background:var(--ink);
    color:#fff;font-size:12.5px;font-weight:700;
}
.ab-go:active{opacity:.86}
.ab-fav{
    width:32px;height:32px;border-radius:50%;flex:none;
    border:1px solid var(--line);color:#c3cbd9;
    display:flex;align-items:center;justify-content:center;background:#fff;
}
.ab-fav .ico{width:16px;height:16px}
.ab-fav.is-on{color:#f5a623;border-color:#ffe4b5;background:#fff8ec}
.ab-fav.is-on .ico{fill:#f5a623;stroke:#f5a623}
.ab-card.is-demo .ab-go{background:linear-gradient(135deg,var(--brand),#5e95ff)}

/* ------------------ 记录卡 ------------------ */
.rc-card{
    background:#fff;border-radius:var(--radius);
    box-shadow:var(--shadow);border:1px solid rgba(19,48,110,.04);
    padding:13px;text-align:left;
}
/* 记录按分类分组 */
.record-groups{padding-bottom:6px}
.rec-group{margin-bottom:18px}
.rec-group-title{
    font-size:13px;font-weight:800;color:#2c3a56;
    padding:10px 4px 6px;letter-spacing:.3px;
    display:flex;align-items:center;gap:8px;
}
.rec-group-title::before{
    content:"";display:inline-block;width:3px;height:14px;border-radius:2px;
    background:linear-gradient(180deg,#3b7dfc,#7aa8ff);
}
.rec-count{font-size:11px;color:#8c96a8;font-weight:500}
.rc-ico{
    width:42px;height:42px;border-radius:13px;
    display:flex;align-items:center;justify-content:center;
    color:#fff;box-shadow:0 6px 14px rgba(16,40,90,.16);
}
.rc-ico .ico{width:21px;height:21px}
.rc-card h4{font-size:14px;font-weight:800;margin-top:10px;letter-spacing:-.2px}
.rc-time{font-size:11px;color:#a4adbd;margin-top:3px}
.rc-status{font-size:11.5px;font-weight:700;margin-top:6px}
.rc-status.s-success{color:#12b886}
.rc-status.s-pending{color:#f59f00}
.rc-status.s-failed{color:#f03e3e}
.rc-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.rc-btns button{
    height:29px;padding:0 12px;border-radius:999px;
    background:#f5f7fb;color:var(--ink-2);font-size:12px;font-weight:700;
}
.rc-btns button.primary{background:linear-gradient(135deg,var(--brand),#5e95ff);color:#fff}
.rc-btns button:active{opacity:.85}
.rc-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.rc-fav{width:26px;height:26px;border-radius:50%;color:#c3cbd9;display:flex;align-items:center;justify-content:center}
.rc-fav .ico{width:15px;height:15px}
.rc-fav.is-on{color:#f5a623}
.rc-fav.is-on .ico{fill:#f5a623;stroke:#f5a623}

/* ------------------ 持续更新 ------------------ */
.update-block{margin-top:26px}
.update-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.update-head h2{font-size:24px;font-weight:900;letter-spacing:-.6px}
.link-btn{display:flex;align-items:center;gap:2px;font-size:12.5px;font-weight:700;color:var(--brand)}
.link-btn .ico{width:15px;height:15px}
.update-scroll{
    display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;
    scrollbar-width:none;-ms-overflow-style:none;
}
.update-scroll::-webkit-scrollbar{display:none}
.up-card{
    flex:none;width:150px;background:#fff;border-radius:16px;padding:12px;
    box-shadow:var(--shadow-sm);border:1px solid rgba(19,48,110,.04);
    display:flex;align-items:center;gap:10px;text-align:left;
}
.up-ico{
    width:34px;height:34px;border-radius:11px;flex:none;
    display:flex;align-items:center;justify-content:center;color:#fff;
}
.up-ico .ico{width:18px;height:18px}
.up-card h4{font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-card p{font-size:10.5px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}

/* ------------------ 主按钮 ------------------ */
.btn-grad{
    display:block;width:170px;height:44px;margin:18px auto 0;
    border-radius:999px;color:#fff;font-size:14px;font-weight:800;
    background:linear-gradient(135deg,var(--brand),#5e95ff);
    box-shadow:0 10px 22px rgba(59,125,252,.32);
}
.btn-grad.sm{width:auto;padding:0 30px;height:40px;font-size:13px}
.btn-grad:active{transform:translateY(1px)}
.btn-grad[disabled]{opacity:.6;box-shadow:none}

/* ------------------ 空状态 ------------------ */
.empty{
    text-align:center;padding:46px 20px;color:var(--sub);
}
.empty .ico{width:44px;height:44px;color:#cbd4e4;stroke-width:1.4}
.empty p{font-size:14.5px;font-weight:700;color:var(--ink-2);margin-top:12px}
.empty span{display:block;font-size:12px;margin-top:5px}
.load-more{text-align:center;margin-top:6px}

/* ------------------ 我的 ------------------ */
.mine-card{
    background:#fff;border-radius:24px;padding:18px;
    box-shadow:var(--shadow);border:1px solid rgba(19,48,110,.04);
    margin-top:22px;
}
.mine-top{
    display:flex;
    align-items:flex-start;
    gap:14px;
}
.mine-col-left{
    display:flex;flex-direction:column;align-items:center;
    gap:6px;flex:none;
}
.mine-col-right{
    flex:1;min-width:0;
    display:flex;flex-direction:column;gap:6px;
}
.mine-row-top{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.mine-avatar{
    width:60px;height:60px;border-radius:50%;flex:none;overflow:hidden;
    background:linear-gradient(135deg,#ffe9c9,#ffd9e5);
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 5px 14px rgba(255,168,74,.2);
    border:2.5px solid #fff;
}
.mine-avatar span{font-size:22px;font-weight:900;color:#f08a2c}
.mine-avatar img{width:100%;height:100%;object-fit:cover}
.mine-badge-row{margin:0}
.badge-gold{
    display:inline-flex;align-items:center;gap:3px;
    height:18px;padding:0 8px;border-radius:999px;
    background:linear-gradient(135deg,#fff3d6,#ffe6b8);
    color:#a9691a;font-size:10px;font-weight:800;
    border:1px solid #ffe1a8;
}
.badge-gold .ico{width:10px;height:10px;stroke-width:2.1}
.badge-gold em{font-style:normal}
.badge-free{
    display:inline-flex;align-items:center;gap:3px;
    height:18px;padding:0 8px;border-radius:999px;
    background:#f3f4f6;color:#6b7280;font-size:10px;font-weight:700;
    border:1px solid #e5e7eb;
}
.mine-name{
    font-size:18px;font-weight:900;letter-spacing:-.3px;
    line-height:1.3;margin:0;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.mine-expire{
    font-size:11.5px;color:#6b7280;
    line-height:1.5;margin:0;
    word-break:break-all;
}
.btn-gold{
    flex:none;
    height:28px;padding:0 12px;border-radius:999px;
    border:1.4px solid #f3c56d;color:#b4762a;background:#fffdf6;
    font-size:11px;font-weight:800;
    transition:all .15s;
}
.btn-gold:active{background:#fff3d6;transform:scale(.96)}

.stat-card{
    display:flex;align-items:center;margin-top:18px;
    background:#fbfcff;border-radius:16px;padding:14px 0;
    border:1px solid var(--line);
}
.stat-item{flex:1;text-align:center;position:relative}
.stat-item+.stat-item::before{
    content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
    width:1px;height:26px;background:var(--line);
}
.stat-item strong{display:block;font-size:21px;font-weight:900;letter-spacing:-.5px}
.stat-item span{display:block;font-size:11px;color:var(--sub);margin-top:2px}

.menu-grid{
    display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px;
}
.menu-item{
    display:flex;align-items:center;gap:9px;
    background:#fff;border-radius:16px;padding:13px 12px;
    box-shadow:var(--shadow-sm);border:1px solid rgba(19,48,110,.04);
    text-align:left;
}
.menu-ico{
    width:34px;height:34px;border-radius:11px;flex:none;
    display:flex;align-items:center;justify-content:center;color:#fff;
}
.menu-ico .ico{width:18px;height:18px}
.c-blue{background:linear-gradient(135deg,#3b7dfc,#7aa8ff)}
.c-purple{background:linear-gradient(135deg,#8a6cf0,#b79cff)}
.c-teal{background:linear-gradient(135deg,#1fc8b4,#7ff0dc)}
.c-gold{background:linear-gradient(135deg,#ffab3c,#ffd07a)}
.c-green{background:linear-gradient(135deg,#2fbf71,#84e0ab)}
.c-pink{background:linear-gradient(135deg,#f76c9b,#ffa8c4)}
.c-slate{background:linear-gradient(135deg,#7b8798,#aab6c6)}
.c-indigo{background:linear-gradient(135deg,#5566e8,#8f9cf5)}
.menu-label{flex:1;font-size:13px;font-weight:700}
.menu-item .arrow{width:15px;height:15px;color:#c3cbd9}
.row-logout{
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:100%;height:48px;border-radius:16px;margin-top:12px;
    background:#fff;color:#f03e3e;font-size:13.5px;font-weight:800;
    box-shadow:var(--shadow-sm);border:1px solid rgba(240,62,62,.12);
}
.row-logout .ico{width:17px;height:17px}

/* ------------------ 底部固定导航 ------------------ */
.bottom-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:60;
    height:calc(var(--nav-h) + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);
    border-top:1px solid rgba(19,48,110,.06);
    display:flex;align-items:center;justify-content:space-around;
    padding-bottom:env(safe-area-inset-bottom);
}
.nav-item{
    flex:1;max-width:120px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    color:#a4adbd;font-size:11px;font-weight:700;
    padding:6px 0;border-radius:14px;margin:0 4px;
    transition:color .25s ease, background .25s ease;
}
.nav-item .ico{width:22px;height:22px;transition:transform .25s ease}
.nav-item.is-active{
    color:var(--brand);
    background:linear-gradient(135deg,rgba(59,125,252,.10),rgba(94,149,255,.08));
}
.nav-item.is-active .ico{stroke-width:2.6;transform:translateY(-1px)}

/* ------------------ 遮罩 / 弹层 ------------------ */
.overlay{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center}
.overlay::before{
    content:"";position:absolute;inset:0;background:rgba(16,24,40,.42);
    backdrop-filter:blur(2px);animation:fade .2s ease both;
}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}

.sheet{
    position:absolute;left:0;right:0;bottom:0;
    width:100%;max-width:480px;margin:0 auto;
    max-height:86vh;overflow:auto;
    background:#fff;border-radius:24px 24px 0 0;
    padding:18px 16px calc(20px + env(safe-area-inset-bottom));
    animation:slideUp .26s ease both;
}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:none}}
.sheet-handle{width:38px;height:4px;border-radius:99px;background:#e6eaf2;margin:0 auto 14px}

.modal{
    position:relative;
    width:min(92%,430px);max-height:88vh;overflow:auto;
    background:#fff;border-radius:24px;
    padding:18px 16px;
    box-shadow:0 24px 60px rgba(16,24,40,.24);
    animation:pop .24s ease both;
}
.modal-head{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.modal-head .h-ico{
    width:42px;height:42px;border-radius:13px;flex:none;
    display:flex;align-items:center;justify-content:center;color:#fff;
}
.modal-head .h-ico .ico{width:21px;height:21px}
.modal-head h3{font-size:16px;font-weight:900;letter-spacing:-.3px}
.modal-head p{font-size:11.5px;color:var(--sub);margin-top:2px}
.modal-head .h-text{flex:1;min-width:0}
.close-btn{
    width:32px;height:32px;border-radius:50%;flex:none;
    background:#f4f6fa;color:#8c96a8;
    display:flex;align-items:center;justify-content:center;
}
.close-btn .ico{width:16px;height:16px}

/* 表单 */
.field{margin-bottom:13px}
.field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink-2);margin-bottom:6px}
.field label em{color:#f03e3e;font-style:normal;margin-left:3px}
.field input,.field textarea,.field select{
    width:100%;border:1.4px solid var(--line);border-radius:13px;
    padding:11px 13px;background:#fbfcfe;font-size:13.5px;
    transition:border-color .18s ease,background .18s ease;
}
.field textarea{min-height:96px;resize:vertical;line-height:1.55}
.field input:focus,.field textarea:focus,.field select:focus{
    border-color:var(--brand);background:#fff;
}
.field .hint{font-size:11px;color:#a4adbd;margin-top:5px}
/* 新参数类型：upload / range / switch / multiselect */
.upload-field{margin-bottom:0}
.upload-preview{
    width:100%;min-height:140px;border:1.5px dashed var(--line);border-radius:14px;
    background:#fbfcfe center/contain no-repeat;
    display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;
    color:#8c96a8;font-size:12.5px;cursor:pointer;transition:border-color .18s;
}
.upload-preview:hover{border-color:var(--brand)}
.upload-field.is-dragging .upload-preview,
.upload-field.is-dragging.file-upload .file-card,
.upload-field.is-dragging{
    border-color:var(--brand)!important;
    background:#eef2ff!important;
    transform:scale(1.01);
}
.upload-field.file-upload{cursor:pointer}
.upload-preview .ico{width:28px;height:28px;color:#8c96a8}
/* 文件上传卡片（非图片） */
.upload-field.file-upload{cursor:pointer}
.file-card{
    display:flex;align-items:center;gap:14px;padding:18px 20px;
    border:1.5px dashed var(--line);border-radius:14px;
    background:#f8f9ff;cursor:pointer;transition:border-color .18s, background .18s;
}
.file-card:hover{border-color:var(--brand);background:#eef2ff}
.file-card-icon{
    font-size:28px;width:52px;height:52px;
    background:linear-gradient(135deg,#f0e9ff,#e4d8ff);
    border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.file-card-text{flex:1;min-width:0}
.file-card-name{display:block;font-size:13.5px;font-weight:700;color:#101828;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-card-size{display:block;font-size:11.5px;color:#8c96a8;margin-top:2px}
.range-wrap{display:flex;align-items:center;gap:12px}
.range-wrap input[type="range"]{flex:1;-webkit-appearance:none;height:6px;background:#e8edf7;border-radius:3px;outline:none}
.range-wrap input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:var(--brand);box-shadow:0 2px 6px rgba(59,125,252,.3);cursor:pointer}
.range-val{font-size:13px;font-weight:700;color:var(--brand);min-width:36px;text-align:right}
.switch{position:relative;display:inline-block;width:46px;height:26px}
.switch input{display:none}
.switch .slider{position:absolute;inset:0;background:#e0e6f0;border-radius:13px;transition:.2s;cursor:pointer}
.switch .slider::before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.switch input:checked + .slider{background:var(--brand)}
.switch input:checked + .slider::before{transform:translateX(20px)}
.multi-select{display:flex;flex-wrap:wrap;gap:2px 0}
.multi-select label{cursor:pointer}
.form-actions{display:flex;gap:10px;margin-top:18px}
.btn-primary{
    flex:1;height:46px;border-radius:14px;color:#fff;font-size:14.5px;font-weight:800;
    background:linear-gradient(135deg,var(--brand),#5e95ff);
    box-shadow:0 10px 22px rgba(59,125,252,.28);
}
.btn-ghost{
    flex:none;padding:0 20px;height:46px;border-radius:14px;
    background:#f4f6fa;color:var(--ink-2);font-size:14px;font-weight:700;
}
.btn-primary[disabled],.btn-ghost[disabled]{opacity:.6}

/* 结果展示 */
.notice{
    display:flex;gap:8px;align-items:flex-start;
    background:#fff8e8;border:1px solid #ffe3ad;color:#a9691a;
    border-radius:13px;padding:10px 12px;font-size:12px;line-height:1.5;
    margin-bottom:13px;
}
.notice .ico{width:16px;height:16px;margin-top:1px;flex:none}
.result-box{
    background:#f7f9fc;border:1px solid var(--line);border-radius:15px;
    padding:13px;max-height:46vh;overflow:auto;
    font-size:12.5px;line-height:1.65;color:var(--ink-2);
}
.result-box pre{
    margin:0;white-space:pre-wrap;word-break:break-word;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;
}
.result-box img{display:block;max-width:100%;height:auto;border-radius:12px;margin:0 auto;background:#fff}
.result-box a{color:var(--brand);word-break:break-all}
.result-meta{
    display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;
}
.tag{
    height:22px;padding:0 10px;border-radius:999px;background:#eef2f9;color:#5a6478;
    font-size:11px;font-weight:700;line-height:22px;
}
.tag.ok{background:#e6f8f0;color:#12b886}
.tag.bad{background:#fdeaea;color:#f03e3e}
.tag.warn{background:#fff5e0;color:#c07b12}
.result-actions{display:flex;gap:8px;margin-top:12px}
.result-actions button{
    flex:1;height:40px;border-radius:13px;background:#f4f6fa;color:var(--ink-2);
    font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:6px;
}
.result-actions button .ico{width:16px;height:16px}
.result-actions button.primary{background:linear-gradient(135deg,var(--brand),#5e95ff);color:#fff}

/* 选择列表 */
.pick-list{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.pick-item{
    display:flex;align-items:center;gap:11px;
    background:#fff;border:1px solid var(--line);border-radius:15px;
    padding:11px;text-align:left;
}
.pick-item .p-ico{
    width:38px;height:38px;border-radius:12px;flex:none;color:#fff;
    display:flex;align-items:center;justify-content:center;
}
.pick-item .p-ico .ico{width:19px;height:19px}
.pick-item h4{font-size:13.5px;font-weight:800}
.pick-item p{font-size:11px;color:var(--sub);margin-top:2px}
.pick-item .arrow{width:15px;height:15px;color:#c3cbd9}

/* 详情行 */
.kv{display:flex;gap:10px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:12.5px}
.kv:last-child{border-bottom:0}
.kv b{flex:none;width:74px;color:var(--sub);font-weight:600}
.kv span{flex:1;word-break:break-all;color:var(--ink-2)}

/* 登录 */
.auth-title{font-size:22px;font-weight:900;letter-spacing:-.5px;text-align:center}
.auth-sub{font-size:12px;color:var(--sub);text-align:center;margin-top:6px;margin-bottom:18px}
.auth-switch{text-align:center;font-size:12.5px;color:var(--sub);margin-top:14px}
.auth-switch button{color:var(--brand);font-weight:800}

/* ------------------ Toast ------------------ */
.toast{
    position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
    z-index:200;
    max-width:74%;padding:12px 18px;border-radius:14px;
    background:rgba(16,24,40,.88);color:#fff;font-size:13px;font-weight:600;
    text-align:center;line-height:1.5;
    animation:pop .2s ease both;
}

/* 滚动条 */
.result-box::-webkit-scrollbar,.modal::-webkit-scrollbar,.sheet::-webkit-scrollbar{width:4px}
.result-box::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb,.sheet::-webkit-scrollbar-thumb{background:#d8dfeb;border-radius:99px}

/* ------------------ 会员与续费 / 订单 ------------------ */
.kv-box{
    background:#f7f9fd;border:1px solid var(--line);border-radius:14px;
    padding:4px 13px;margin-bottom:14px;
}
.pkg-list{display:flex;flex-direction:column;gap:11px}
.pkg-card{
    border:1.4px solid var(--line);border-radius:16px;padding:14px;background:#fff;
}
.pkg-card.is-hot{border-color:#ffd9a0;background:linear-gradient(180deg,#fffaf0,#fff)}
.pkg-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pkg-head b{font-size:15px;font-weight:900;letter-spacing:-.2px}
.pkg-head b em{
    font-style:normal;display:inline-block;margin-left:6px;padding:1px 7px;border-radius:99px;
    background:linear-gradient(135deg,#ffb648,#ffd79a);color:#7a4a00;font-size:10.5px;font-weight:800;vertical-align:middle;
}
.pkg-price{font-size:19px;font-weight:900;color:#e8590c;letter-spacing:-.5px}
.pkg-price small{font-size:11px;font-weight:600;color:var(--sub);margin-left:2px}
.pkg-desc{font-size:12px;color:var(--ink-2);margin-top:7px;line-height:1.6}
.pkg-meta{font-size:11px;color:var(--sub);margin-top:7px;line-height:1.6}
.pkg-foot{display:flex;gap:9px;margin-top:12px}
.pkg-foot select{
    flex:none;width:104px;border:1.4px solid var(--line);border-radius:11px;
    padding:0 10px;background:#fbfcfe;font-size:12.5px;
}
.pkg-foot .btn-primary{flex:1;height:40px}
.pkg-tip{font-size:11.5px;color:var(--sub);margin-top:12px;line-height:1.6}

.order-list{display:flex;flex-direction:column;gap:9px}
.order-row{
    display:flex;align-items:center;gap:10px;padding:12px 13px;
    border:1px solid var(--line);border-radius:14px;background:#fff;
}
.order-row .o-main{flex:1;min-width:0}
.order-row .o-main b{display:block;font-size:13.5px;font-weight:800}
.order-row .o-main em{
    display:block;font-style:normal;font-size:11px;color:var(--sub);margin-top:3px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.order-row .o-side{flex:none;text-align:right}
.order-row .o-side strong{display:block;font-size:14px;font-weight:900;color:#e8590c}
.order-row .o-side span{
    display:inline-block;margin-top:4px;padding:1px 8px;border-radius:99px;font-size:10.5px;font-weight:800;
}
.tag-ok{background:#e6f8f0;color:#0ca678}
.tag-warn{background:#fff5e0;color:#c07b12}
.tag-gray{background:#f2f4f8;color:#8c96a8}

/* 兑换码 */
.coupon-box{
    border:1.4px dashed #c9d8f5;border-radius:16px;padding:13px;margin-bottom:14px;
    background:linear-gradient(180deg,#f6f9ff,#fff);
}
.coupon-title{font-size:13px;font-weight:900;letter-spacing:-.2px;margin-bottom:9px}
.coupon-row{display:flex;gap:9px}
.coupon-row input{
    flex:1;min-width:0;border:1.4px solid var(--line);border-radius:11px;
    padding:0 12px;height:40px;background:#fff;font-size:13px;letter-spacing:1px;
    text-transform:uppercase;
}
.coupon-row input:focus{border-color:var(--brand);outline:none}
.coupon-row .btn-primary{flex:none;width:86px;height:40px}
.coupon-tip{font-size:11px;color:var(--sub);margin-top:8px;line-height:1.6}

/* 下单支付 */
.pay-box{
    border:1.4px solid var(--line);border-radius:16px;padding:14px;background:#fff;margin-bottom:14px;
}
.pay-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pay-head b{font-size:15px;font-weight:900}
.pay-head strong{font-size:19px;font-weight:900;color:#e8590c;letter-spacing:-.5px}
.pay-sub{font-size:11.5px;color:var(--sub);margin-top:5px}
.pay-qr{
    display:block;width:190px;max-width:78%;height:auto;margin:13px auto 0;
    border-radius:12px;border:1px solid var(--line);background:#fff;
}
.pay-warn{
    margin-top:12px;padding:10px 12px;border-radius:11px;background:#fff5e0;color:#c07b12;
    font-size:11.5px;line-height:1.6;
}
.pay-note{font-size:11.5px;color:var(--ink-2);margin-top:11px;line-height:1.7;text-align:center}
.pay-upload{margin-bottom:12px}
.pay-upload input[type=file]{display:none}
.pay-upload-label{
    display:flex;align-items:center;justify-content:center;gap:6px;height:44px;
    border:1.4px dashed var(--line);border-radius:12px;background:#fbfcfe;
    font-size:12.5px;font-weight:700;color:var(--ink-2);cursor:pointer;
}
.pay-proof{
    display:block;width:100%;max-height:220px;object-fit:contain;margin-top:10px;
    border-radius:12px;border:1px solid var(--line);background:#fbfcfe;
}
.pay-fld{display:block;margin-bottom:12px}
.pay-fld>span{display:block;font-size:12px;font-weight:700;color:var(--ink-2);margin-bottom:6px}
.pay-fld input{
    width:100%;border:1.4px solid var(--line);border-radius:12px;
    padding:11px 12px;background:#fbfcfe;font-size:13px;
}
.pay-fld input:focus{border-color:var(--brand);background:#fff;outline:none}

@media (max-width:360px){
    .page-title{font-size:29px}
    .mine-avatar{width:54px;height:54px}
    .mine-avatar span{font-size:20px}
    .mine-col-left{gap:4px}
    .mine-col-right{gap:4px}
    .menu-label{font-size:12.5px}
}

/* ==========================================================
   🪧 微信小程序引导模态框（注册/开通会员）
   ========================================================== */
.miniqr-modal{
    text-align:center;
    padding:6px 4px 2px;
    max-width:100%;
    box-sizing:border-box;
    animation:miniqrFadeIn .25s ease-out;
}
@keyframes miniqrFadeIn{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:translateY(0)}
}
.miniqr-header{margin-bottom:10px}
.miniqr-title{
    margin:0 0 4px;
    font-size:17px;
    font-weight:800;
    background:linear-gradient(135deg,#1e3a8a,#7c3aed);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}
.miniqr-sub{
    margin:0;
    font-size:12px;
    color:#6b7280;
    line-height:1.5;
}
.miniqr-img-wrap{
    width:190px;
    height:190px;
    margin:14px auto 12px;
    background:#ffffff;
    border-radius:14px;
    padding:8px;
    box-shadow:0 6px 24px rgba(59,125,252,.15), 0 2px 6px rgba(0,0,0,.04);
    position:relative;
    overflow:hidden;
    box-sizing:border-box;
}
.miniqr-img-wrap::before{
    content:'';
    position:absolute;
    inset:-2px;
    border-radius:16px;
    background:linear-gradient(135deg,#3b7dfc,#7c3aed,#ec4899);
    z-index:-1;
    opacity:.35;
}
.miniqr-img{
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:8px;
    display:block;
}
.miniqr-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#9ca3af;
    font-size:12px;
    line-height:1.6;
    background:#f9fafb !important;
}
.miniqr-tip{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:4px 0 0;
    padding:12px 14px;
    background:linear-gradient(135deg,#eff6ff 0%,#faf5ff 50%,#fdf4ff 100%);
    border-radius:12px;
    text-align:left;
    border:1px solid rgba(59,125,252,.08);
}
.miniqr-tip-icon{
    font-size:17px;
    line-height:1;
    flex-shrink:0;
    margin-top:1px;
}
.miniqr-tip-text{
    flex:1;
    min-width:0;
    font-size:12.5px;
    color:#374151;
    line-height:1.7;
    font-weight:500;
    word-break:break-word;
}
.miniqr-buttons{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:16px;
}
.miniqr-btn{
    width:100%;
    height:44px;
    border:none;
    border-radius:12px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    transition:all .2s ease;
    font-family:inherit;
}
.miniqr-btn:active{transform:scale(.97)}
.miniqr-btn-primary{
    background:linear-gradient(135deg,#3b7dfc,#5b5dfc);
    color:#fff;
    box-shadow:0 4px 14px rgba(59,125,252,.3);
}
.miniqr-btn-primary:active{
    background:linear-gradient(135deg,#2f6ae0,#4a4ce0);
}
.miniqr-btn-secondary{
    background:#f3f4f6;
    color:#4b5563;
    border:1px solid #e5e7eb;
}
.miniqr-btn-secondary:active{
    background:#e5e7eb;
}
.miniqr-footer{
    margin:12px 0 0;
    font-size:10.5px;
    color:#9ca3af;
    letter-spacing:.3px;
}