/* =====================================================
   能力星球 · PC 端独立样式 v3.0.0
   完全自包含，不依赖 app.css
   类名清单严格对齐 assets/js/app.js 的 innerHTML 模板
   ===================================================== */

/* ========== Reset ========== */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}
html,body{min-height:100%}
body{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
    font-size:14px;line-height:1.5;color:#1f2937;
    background:#f3f5f9;
    -webkit-font-smoothing:antialiased;
}
button{font-family:inherit;font-size:inherit;color:inherit;border:0;background:none;cursor:pointer}
input,textarea,select{font-family:inherit;font-size:14px;color:#1f2937;outline:none}
h1,h2,h3,h4,p{margin:0}
ul{list-style:none}
img{max-width:100%}
[hidden]{display:none !important}

/* ========== 图标 ========== */
.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}
.ico-img{width:100%;height:100%;object-fit:contain;border-radius:6px;display:block}

/* ========== 通用按钮 ========== */
.btn-primary,.btn-ghost,.btn-ad,.btn-grad,.btn-outline,.btn-gold{
    height:40px;padding:0 20px;border-radius:11px;font-size:13px;font-weight:700;
    display:inline-flex;align-items:center;justify-content:center;gap:7px;
    transition:transform .15s,box-shadow .15s,background .15s,border-color .15s;
    white-space:nowrap;text-decoration:none;
}
.btn-primary{background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff;box-shadow:0 4px 14px rgba(59,125,252,.25)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 7px 20px rgba(59,125,252,.35)}
.btn-primary[disabled]{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.btn-ghost{background:#fff;border:1px solid #e2e8f0;color:#475569;font-weight:600}
.btn-ghost:hover{background:#f6f8fc;border-color:#cbd5e1}
.btn-ad{background:linear-gradient(135deg,#10b981,#34d399);color:#fff;box-shadow:0 4px 14px rgba(16,185,129,.25)}
.btn-ad:hover{transform:translateY(-1px)}
.btn-grad{background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff;font-weight:700;box-shadow:0 4px 14px rgba(59,125,252,.25)}
.btn-grad:hover{transform:translateY(-1px)}
.btn-grad.sm{height:36px;padding:0 18px;font-size:12.5px}
.btn-outline{background:#fff;border:1px solid #e2e8f0;color:#475569;font-weight:600}
.btn-outline.sm{height:32px;padding:0 12px;font-size:12px;border-radius:9px}
.btn-outline:hover{border-color:#3b7dfc;color:#3b7dfc}
.btn-gold{
    height:34px;padding:0 18px;border-radius:10px;font-size:12.5px;font-weight:800;
    background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff;
    box-shadow:0 4px 12px rgba(245,158,11,.28);
}
.btn-gold:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(245,158,11,.4)}
/* result-actions 里的裸 .primary 按钮 */
.result-actions .primary,
button.primary{
    height:40px;padding:0 20px;border-radius:11px;font-size:13px;font-weight:700;
    background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff;flex:1;
    display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;
    box-shadow:0 4px 14px rgba(59,125,252,.25);
}
button.primary:hover{transform:translateY(-1px)}

/* ========== PC 侧栏 ========== */
.pc-sidebar{
    position:fixed;top:0;left:0;bottom:0;width:232px;z-index:50;
    background:rgba(255,255,255,.95);
    backdrop-filter:saturate(180%) blur(20px);
    -webkit-backdrop-filter:saturate(180%) blur(20px);
    border-right:1px solid #eceff5;
    padding:24px 16px 18px;
    display:flex;flex-direction:column;
}
.pc-logo{display:flex;align-items:center;gap:11px;padding:0 6px 20px;border-bottom:1px solid #f1f4f9}
.pc-logo-mark{
    width:42px;height:42px;border-radius:13px;flex:none;
    background:linear-gradient(135deg,#3b7dfc,#7aa8ff);
    display:flex;align-items:center;justify-content:center;font-size:20px;
    box-shadow:0 8px 18px rgba(59,125,252,.3);
}
.pc-logo-img{
    width:42px;height:42px;border-radius:13px;flex:none;object-fit:cover;
    box-shadow:0 8px 18px rgba(59,125,252,.25);background:#fff;
}
.pc-logo-text h1{font-size:16.5px;font-weight:900;letter-spacing:-.3px;color:#0f172a}
.pc-logo-text span{font-size:10.5px;color:#94a3b8;font-weight:500}

.pc-side-nav{display:flex;flex-direction:column;gap:3px;margin-top:14px}
.nav-item{
    display:flex;align-items:center;gap:11px;width:100%;
    padding:11px 14px;border-radius:12px;
    font-size:13.5px;font-weight:600;color:#475569;text-align:left;
    transition:background .15s,color .15s;
}
.nav-item .ico{width:19px;height:19px}
.nav-item:hover{background:#f1f5fd;color:#3b7dfc}
.nav-item.is-active{
    background:linear-gradient(135deg,#e8f0ff,#f2f6ff);
    color:#2f6bf0;
    box-shadow:inset 3px 0 0 #3b7dfc;
}

.pc-user-box{
    margin-top:auto;padding:12px;border-radius:14px;
    background:linear-gradient(135deg,#f2f6ff,#eef3ff);
    border:1px solid #e3ecff;
    display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;
    column-gap:11px;row-gap:4px;cursor:pointer;
    transition:box-shadow .15s,transform .15s;
}
.pc-user-box:hover{box-shadow:0 6px 18px rgba(59,125,252,.12);transform:translateY(-1px)}
.pc-user-avatar{
    grid-row:1 / 3;width:42px;height:42px;border-radius:50%;align-self:center;
    background:linear-gradient(135deg,#dfeaff,#f2e7ff);
    color:#3b7dfc;font-size:16px;font-weight:800;overflow:hidden;
    display:flex;align-items:center;justify-content:center;
}
.pc-user-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.pc-user-meta{min-width:0;align-self:center}
.pc-user-meta strong{display:block;font-size:13px;font-weight:800;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-user-meta span{display:block;font-size:11px;color:#8593ac;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-side-login{
    grid-column:1 / 3;height:30px;margin-top:6px;border-radius:9px;
    background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff;
    font-size:12px;font-weight:700;
    display:flex;align-items:center;justify-content:center;
}
.pc-side-login:hover{box-shadow:0 4px 12px rgba(59,125,252,.3)}

/* ========== 主区 ========== */
.pc-main{margin-left:232px;padding:30px 42px 70px;max-width:1360px}
.view{display:none}
.view.is-active{display:block;animation:pcfade .25s ease}
@keyframes pcfade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.pc-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.pc-head h2{font-size:25px;font-weight:900;color:#0f172a;letter-spacing:-.5px}
.pc-head p{font-size:13px;color:#94a3b8;margin-top:5px}
.pc-head-stats{display:flex;gap:12px}
.hs-item{
    min-width:104px;padding:10px 16px;border-radius:13px;background:#fff;
    border:1px solid #eceff5;text-align:center;
}
.hs-item label{display:block;font-size:10.5px;color:#94a3b8;font-weight:600;letter-spacing:.3px}
.hs-item b{font-size:21px;font-weight:900;color:#0f172a;line-height:1.3}

/* ========== 分类胶囊 ========== */
.chips{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 4px}
.chip{
    padding:7px 17px;border-radius:99px;font-size:12.5px;font-weight:600;
    background:#fff;color:#64748b;border:1px solid #e6eaf2;transition:all .15s;
}
.chip:hover{border-color:#c4d4f7;color:#3b7dfc}
.chip.is-active{
    background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff;border-color:transparent;
    box-shadow:0 4px 12px rgba(59,125,252,.25);
}

/* ========== 通知条 ========== */
.notice-bar{
    display:flex;align-items:center;gap:11px;
    padding:11px 18px;border-radius:13px;margin:14px 0;
    background:#fff;border:1px solid #e9eef8;
}
.notice-ico{width:18px;height:18px;color:#3b7dfc}
.notice-label{font-size:11.5px;font-weight:800;color:#3b7dfc;padding:3px 10px;border-radius:7px;background:#edf3ff;flex:none}
.notice-marquee{flex:1;min-width:0;font-size:12.5px;color:#475569}
.notice-text{font-size:12.5px;color:#475569}
.notice-text b{color:#3b7dfc}

/* ========== 广告横幅 ========== */
.ad-banner{
    position:relative;border-radius:18px;margin:6px 0 16px;overflow:hidden;
    background:linear-gradient(135deg,#eef4ff,#e3edff);
    border:1px solid #dde8ff;
    box-shadow:0 6px 22px rgba(59,125,252,.07);
    padding:30px 38px;
}
.ad-banner h2{font-size:20px;font-weight:900;color:#1e40af;margin-bottom:6px}
.ad-banner p{font-size:13px;color:#3b6fe0}
.ad-content{position:relative;z-index:1}
.ad-tag{position:absolute;top:12px;right:14px;font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:6px;background:rgba(59,125,252,.14);color:#3b7dfc}
.ad-banner.ad-img{padding:0}
.ad-banner.ad-img img{display:block;width:100%;max-height:300px;object-fit:cover;border-radius:18px}
.ad-banner.ad-img a{display:block}
/* 轮播 */
.ad-carousel{padding:0;background:#0b1220;border:none}
.carousel-track{display:flex;transition:transform .45s ease}
.carousel-slide{flex:0 0 100%;min-width:100%}
.carousel-slide img{display:block;width:100%;max-height:320px;object-fit:cover}
.carousel-slide a{display:block}
.carousel-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:7px}
.carousel-dots button{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);transition:all .2s}
.carousel-dots button.is-on{width:20px;border-radius:99px;background:#fff}

/* ========== 卡片网格 ========== */
.masonry{margin-top:16px}
.pc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
/* 首页能力卡片：屏幕够宽时自动多列、卡片更紧凑 */
#abilityGrid{grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:13px}
@media(max-width:1400px){.pc-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1100px){.pc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.pc-grid{grid-template-columns:1fr}}

/* ---- 能力卡片（紧凑版） ---- */
.ab-card{
    background:#fff;border:1px solid #edf0f6;border-radius:14px;overflow:hidden;
    box-shadow:0 2px 10px rgba(20,40,90,.03);
    display:flex;flex-direction:column;cursor:pointer;
    transition:transform .2s,box-shadow .2s,border-color .2s;
}
.ab-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(30,64,132,.12);border-color:#d8e4ff}
.ab-cover{position:relative;padding:15px 14px 13px;min-height:74px}
.ab-ico{width:38px;height:38px;color:#fff}
.ab-ico img{width:100%;height:100%;object-fit:contain;display:block;border-radius:8px}
.ab-badge{
    position:absolute;top:10px;right:10px;
    padding:2px 9px;border-radius:99px;font-size:9.5px;font-weight:800;
    background:rgba(255,255,255,.92);color:#3b7dfc;backdrop-filter:blur(4px);
}
.ab-badge.free{background:rgba(16,185,129,.92);color:#fff}
.ab-badge.quota{background:rgba(249,115,22,.92);color:#fff}
.ab-body{padding:10px 13px 12px;display:flex;flex-direction:column;flex:1}
.ab-body h3{font-size:13.5px;font-weight:800;color:#0f172a;margin-bottom:3px}
.ab-body p{font-size:11.5px;color:#94a3b8;line-height:1.5;min-height:34px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ab-foot{display:flex;gap:8px;margin-top:auto;padding-top:10px}
.ab-go{
    flex:1;height:32px;border-radius:9px;font-size:12px;font-weight:800;color:#fff;
    background:linear-gradient(135deg,#3b7dfc,#5e95ff);
    display:flex;align-items:center;justify-content:center;
}
.ab-go:hover{box-shadow:0 5px 14px rgba(59,125,252,.32)}
.ab-fav{
    width:32px;height:32px;border-radius:9px;background:#f4f6fa;color:#a4adbd;
    display:flex;align-items:center;justify-content:center;transition:all .15s;
}
.ab-fav .ico{width:16px;height:16px}
.ab-fav:hover{background:#fff1e6}
.ab-fav.is-on{background:#fff1e6;color:#f97316}

/* ---- 记录卡片 ---- */
.rc-card{
    background:#fff;border:1px solid #edf0f6;border-radius:16px;padding:16px;
    box-shadow:0 2px 10px rgba(20,40,90,.03);
    display:flex;flex-direction:column;
    transition:transform .2s,box-shadow .2s;
}
.rc-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(30,64,132,.1)}
.rc-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:9px}
.rc-ico{width:36px;height:36px;border-radius:11px;color:#fff}
.rc-fav{color:#c6cfdd;padding:3px;background:none;display:flex}
.rc-fav .ico{width:16px;height:16px}
.rc-fav.is-on{color:#f97316}
.rc-card h4{font-size:13.5px;font-weight:800;color:#0f172a}
.rc-time{font-size:11.5px;color:#94a3b8;margin:3px 0 7px}
.rc-status{display:inline-block;align-self:flex-start;font-size:11px;font-weight:700;padding:3px 10px;border-radius:7px;margin-bottom:4px}
.rc-status.s-success{background:#e7f8f1;color:#0ca678}
.rc-status.s-failed{background:#fdeceb;color:#e03131}
.rc-status.s-pending{background:#fff4e0;color:#d9820b}
.rc-btns{display:flex;gap:7px;margin-top:auto;padding-top:13px}
.rc-btns button{
    flex:1;height:31px;border-radius:9px;font-size:11.5px;font-weight:700;
    background:#f4f6fa;color:#475569;
    display:flex;align-items:center;justify-content:center;gap:4px;transition:background .15s;
}
.rc-btns button:hover{background:#e8edf6}
.rc-btns button.primary{background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff}
.rc-btns button .ico{width:13px;height:13px}

/* ========== 空状态 / 加载更多 ========== */
.empty{text-align:center;padding:70px 20px;color:#94a3b8}
.empty .ico{width:50px;height:50px;margin-bottom:14px;opacity:.35}
.empty p{font-size:14.5px;font-weight:800;color:#64748b;margin-bottom:5px}
.empty span{font-size:12.5px}
.load-more{text-align:center;padding:26px 0 6px}

/* ========== 标签 ========== */
.tag{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 11px;border-radius:7px}
.tag.ok{background:#e7f8f1;color:#0ca678}
.tag.bad{background:#fdeceb;color:#e03131}
.tag.warn{background:#fff4e0;color:#d9820b}
.tag-ok{font-size:11.5px;font-weight:800;color:#0ca678;background:#e7f8f1;padding:3px 10px;border-radius:7px}
.tag-warn{font-size:11.5px;font-weight:800;color:#d9820b;background:#fff4e0;padding:3px 10px;border-radius:7px}
.tag-gray{font-size:11.5px;font-weight:800;color:#94a3b8;background:#f1f4f9;padding:3px 10px;border-radius:7px}

/* ========== 我的页面 ========== */
.pc-mine-layout{display:flex;flex-direction:column;gap:18px;max-width:920px}
.mine-card{
    background:#fff;border:1px solid #edf0f6;border-radius:20px;padding:26px 28px;
    box-shadow:0 2px 12px rgba(20,40,90,.03);
}
.mine-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.mine-col-left{display:flex;align-items:center;gap:16px}
.mine-col-right{flex:1;min-width:240px}
.mine-row-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.mine-avatar{
    width:74px;height:74px;border-radius:50%;flex:none;overflow:hidden;
    background:linear-gradient(135deg,#dfeaff,#f2e7ff);
    color:#3b7dfc;font-size:28px;font-weight:900;
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 6px 18px rgba(59,125,252,.15);
}
.mine-avatar img{width:100%;height:100%;object-fit:cover}
.mine-badge-row{margin-top:8px}
.badge-gold{
    display:inline-flex;align-items:center;gap:5px;
    padding:5px 13px;border-radius:99px;
    background:linear-gradient(135deg,#fef3c7,#fde68a);
    color:#92400e;font-size:11.5px;font-weight:800;font-style:normal;
}
.badge-gold .ico{width:13px;height:13px}
.badge-gold em{font-style:normal}
.mine-name{font-size:21px;font-weight:900;color:#0f172a}
.mine-expire{font-size:12.5px;color:#94a3b8;margin-top:8px;line-height:1.6}

.stat-card{
    display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
    margin-top:22px;padding-top:22px;border-top:1px solid #f1f4f9;
}
.stat-item{text-align:center}
.stat-item strong{
    display:block;font-size:27px;font-weight:900;line-height:1.2;
    background:linear-gradient(135deg,#0f172a,#3b5998);
    -webkit-background-clip:text;background-clip:text;color:transparent;
}
.stat-item span{font-size:12px;color:#94a3b8;font-weight:600}

/* 菜单 */
.menu-grid{
    background:#fff;border:1px solid #edf0f6;border-radius:20px;overflow:hidden;
    box-shadow:0 2px 12px rgba(20,40,90,.03);
}
.menu-item{
    display:flex;align-items:center;gap:14px;width:100%;
    padding:17px 24px;text-align:left;
    border-bottom:1px solid #f4f6fa;transition:background .15s;
}
.menu-item:last-child{border-bottom:none}
.menu-item:hover{background:#f8faff}
.menu-ico{
    width:42px;height:42px;border-radius:13px;flex:none;
    display:flex;align-items:center;justify-content:center;
}
.menu-ico .ico{width:20px;height:20px}
.c-blue{background:linear-gradient(135deg,#e8f0ff,#d9e7ff);color:#3b7dfc}
.c-purple{background:linear-gradient(135deg,#f0e9ff,#e5daff);color:#8b5cf6}
.c-teal{background:linear-gradient(135deg,#e0f7f4,#cff3ee);color:#0ca678}
.c-gold{background:linear-gradient(135deg,#fef3c7,#fde9b8);color:#d9820b}
.c-green{background:linear-gradient(135deg,#e4f8ee,#d3f3e2);color:#16a34a}
.c-pink{background:linear-gradient(135deg,#ffe9f1,#ffd9e8);color:#e64980}
.menu-label{flex:1;font-size:14px;font-weight:700;color:#334155}
.menu-item .arrow{width:16px;height:16px;color:#c2cad8}

.row-logout{
    display:flex;align-items:center;justify-content:center;gap:9px;
    padding:15px;border-radius:16px;font-size:13.5px;font-weight:800;
    background:#fff;border:1px solid #f6d5d5;color:#e03131;
    transition:background .15s,border-color .15s;
}
.row-logout:hover{background:#fef2f2;border-color:#f3b8b8}
.row-logout .ico{width:17px;height:17px}

/* ========== 弹层 ========== */
.overlay{
    position:fixed;inset:0;z-index:900;
    background:rgba(15,23,42,.5);backdrop-filter:blur(3px);
    display:flex;align-items:center;justify-content:center;padding:30px;
}
.modal,.sheet{
    width:100%;max-width:580px;max-height:88vh;overflow-y:auto;
    background:#fff;border-radius:22px;padding:26px;
    box-shadow:0 30px 70px rgba(15,23,42,.28);
    animation:pop .22s ease;
}
.sheet{max-width:600px}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.sheet-handle{width:42px;height:4px;background:#e2e8f0;border-radius:99px;margin:-8px auto 18px}

.modal-head{display:flex;align-items:center;gap:13px;margin-bottom:18px}
.h-ico{width:46px;height:46px;border-radius:14px;flex:none;display:flex;align-items:center;justify-content:center;color:#fff}
.h-ico .ico{width:23px;height:23px}
.h-text{flex:1;min-width:0}
.h-text h3{font-size:16.5px;font-weight:900;color:#0f172a}
.h-text p{font-size:12px;color:#94a3b8;margin-top:2px}
.close-btn{
    width:34px;height:34px;border-radius:50%;flex:none;
    background:#f4f6fa;color:#94a3b8;
    display:flex;align-items:center;justify-content:center;transition:all .15s;
}
.close-btn:hover{background:#e8edf6;color:#475569}
.close-btn .ico{width:16px;height:16px}

.toast{
    position:fixed;top:28px;left:50%;transform:translateX(-50%);z-index:9999;
    background:rgba(15,23,42,.92);color:#fff;
    padding:11px 22px;border-radius:99px;font-size:13px;font-weight:600;
    box-shadow:0 10px 28px rgba(15,23,42,.3);
}

/* ========== 表单 ========== */
.field{margin-bottom:15px}
.field label{display:block;font-size:12.5px;font-weight:700;color:#475569;margin-bottom:7px}
.field label em{color:#ef4444;font-style:normal;margin-left:2px}
.field input,.field textarea,.field select{
    width:100%;padding:11px 14px;border:1px solid #e2e8f0;border-radius:11px;
    font-size:13.5px;background:#fff;transition:border-color .15s,box-shadow .15s;
}
.field textarea{resize:vertical;line-height:1.6}
.field input:focus,.field textarea:focus,.field select:focus{
    border-color:#3b7dfc;box-shadow:0 0 0 3px rgba(59,125,252,.12);
}
.field select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;padding-right:36px;cursor:pointer}
.hint{font-size:11.5px;color:#94a3b8;margin-top:6px;line-height:1.5}
.form-actions{display:flex;gap:10px;margin-top:6px}
.form-actions button,.form-actions a{flex:1}

/* 多选/滑块/开关 */
.multi-select{display:flex;flex-wrap:wrap;border:1px solid #e2e8f0;border-radius:11px;padding:8px 12px}
.multi-select label{cursor:pointer;color:#475569}
.multi-select input[type=checkbox]{accent-color:#3b7dfc;width:auto !important;margin-right:2px}
.range-wrap{display:flex;align-items:center;gap:14px}
.range-wrap input[type=range]{flex:1;accent-color:#3b7dfc;height:auto;padding:0;border:none}
.range-val{min-width:44px;text-align:center;font-size:12.5px;font-weight:800;color:#3b7dfc;background:#edf3ff;padding:5px 10px;border-radius:8px}
.switch{position:relative;display:inline-block;width:46px;height:26px;flex:none}
.switch input{opacity:0;width:0;height:0}
.switch .slider{position:absolute;inset:0;background:#d7deea;border-radius:99px;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 2px 5px rgba(0,0,0,.15)}
.switch input:checked + .slider{background:linear-gradient(135deg,#3b7dfc,#5e95ff)}
.switch input:checked + .slider::before{transform:translateX(20px)}

/* 上传控件 */
.upload-field{position:relative}
.upload-preview{
    border:1.5px dashed #c8d4ec;border-radius:13px;background:#f8faff;
    min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
    color:#8593ac;font-size:12.5px;font-weight:600;cursor:pointer;
    background-size:cover;background-position:center;transition:border-color .15s,background-color .15s;
}
.upload-preview:hover{border-color:#3b7dfc;background-color:#f1f6ff}
.upload-preview .ico{width:24px;height:24px}
.image-upload .upload-preview{min-height:150px}
.file-card{
    display:flex;align-items:center;gap:13px;padding:14px 16px;
    border:1px solid #e2e8f0;border-radius:13px;background:#fff;cursor:pointer;
}
.file-card:hover{border-color:#c8d4ec}
.file-card-icon{font-size:24px;width:44px;height:44px;border-radius:11px;background:#f1f5fd;display:flex;align-items:center;justify-content:center;flex:none}
.file-card-text{display:flex;flex-direction:column;gap:2px}
.file-card-name{font-size:13px;font-weight:800;color:#334155}
.file-card-size{font-size:11.5px;color:#94a3b8}

/* ========== KV 信息行 ========== */
.kv-box{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.kv{
    display:flex;justify-content:space-between;gap:18px;align-items:flex-start;
    padding:11px 15px;border-radius:11px;background:#f7f9fd;font-size:13px;
}
.kv b{color:#64748b;font-weight:700;flex:none}
.kv span{color:#1f2937;font-weight:600;text-align:right}

/* ========== 会员套餐 ========== */
.pkg-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:13px;margin-top:16px}
.pkg-card{
    position:relative;border:1px solid #e6ebf4;border-radius:16px;padding:18px;
    background:#fff;display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s;
}
.pkg-card:hover{border-color:#c8d8ff;box-shadow:0 10px 26px rgba(59,125,252,.1)}
.pkg-card.is-hot{border-color:#3b7dfc;box-shadow:0 10px 28px rgba(59,125,252,.16)}
.pkg-head b{font-size:15px;font-weight:900;color:#0f172a;display:flex;align-items:center;gap:8px}
.pkg-head em{font-style:normal;font-size:10px;font-weight:800;color:#fff;background:linear-gradient(135deg,#f59e0b,#fb923c);padding:2px 8px;border-radius:6px}
.pkg-price{display:block;font-size:23px;font-weight:900;color:#ef6a00;margin-top:8px}
.pkg-price small{font-size:11.5px;color:#94a3b8;font-weight:600}
.pkg-desc{font-size:12px;color:#64748b;margin:8px 0;line-height:1.55}
.pkg-meta{font-size:11.5px;color:#94a3b8;line-height:1.6;flex:1}
.pkg-foot{display:flex;gap:9px;margin-top:14px}
.pkg-foot select{flex:1;min-width:0;padding:9px 10px;border:1px solid #e2e8f0;border-radius:9px;font-size:12.5px}
.pkg-foot .btn-primary{flex:none;padding:0 16px;height:36px}
.pkg-tip{font-size:11.5px;color:#94a3b8;margin-top:12px;text-align:center;line-height:1.6}

/* 兑换码 */
.coupon-box{
    margin-top:16px;padding:16px;border-radius:14px;
    background:linear-gradient(135deg,#fff8ec,#fff3dd);border:1px solid #f7e2b3;
}
.coupon-title{font-size:13px;font-weight:900;color:#92400e;margin-bottom:9px}
.coupon-row{display:flex;gap:9px}
.coupon-row input{
    flex:1;padding:10px 14px;border:1px solid #ecd49a;border-radius:10px;
    font-size:13px;letter-spacing:1.5px;text-transform:uppercase;background:#fff;
}
.coupon-row input:focus{border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.14)}
.coupon-row .btn-primary{flex:none;padding:0 20px}
.coupon-tip{font-size:11px;color:#b7791f;margin-top:8px;line-height:1.5}

/* ========== 支付 ========== */
.pay-box{border:1px solid #e6ebf4;border-radius:15px;padding:18px;margin-bottom:14px;background:#f8faff}
.pay-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pay-head b{font-size:15px;font-weight:900;color:#0f172a}
.pay-head strong{font-size:21px;font-weight:900;color:#ef6a00}
.pay-sub{font-size:12px;color:#94a3b8;margin-top:5px}
.pay-qr{display:block;margin:16px auto 0;width:210px;height:210px;object-fit:contain;border-radius:13px;border:1px solid #eef1f6;background:#fff}
.pay-warn{font-size:12.5px;color:#b45309;background:#fff4e0;border-radius:10px;padding:12px 14px;margin-top:12px;line-height:1.6}
.pay-note{font-size:12px;color:#64748b;margin-top:10px;line-height:1.6}
.pay-upload{margin-bottom:13px}
.pay-upload input[type=file]{display:none}
.pay-upload-label{
    display:flex;align-items:center;justify-content:center;
    padding:13px;border:1.5px dashed #c8d4ec;border-radius:12px;
    color:#3b7dfc;font-size:13px;font-weight:700;cursor:pointer;background:#f8faff;
}
.pay-upload-label:hover{border-color:#3b7dfc;background:#f1f6ff}
.pay-proof{display:block;margin:10px auto 0;max-width:220px;max-height:220px;border-radius:12px;border:1px solid #e6ebf4}
.pay-fld{display:block;margin-bottom:13px}
.pay-fld span{display:block;font-size:12.5px;font-weight:700;color:#475569;margin-bottom:7px}
.pay-fld input{width:100%;padding:11px 14px;border:1px solid #e2e8f0;border-radius:11px;font-size:13px}

/* ========== 订单 ========== */
.order-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.order-row{
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    padding:15px 18px;border:1px solid #edf0f6;border-radius:13px;background:#fff;
}
.o-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.o-main b{font-size:13.5px;font-weight:800;color:#0f172a}
.o-main em{font-style:normal;font-size:11.5px;color:#94a3b8}
.o-side{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:none}
.o-side strong{font-size:16px;font-weight:900;color:#0f172a}

/* ========== 能力选择弹层 ========== */
.pick-list{display:flex;flex-direction:column;gap:9px;max-height:55vh;overflow-y:auto}
.pick-item{
    display:flex;align-items:center;gap:13px;width:100%;text-align:left;
    padding:13px 16px;border:1px solid #edf0f6;border-radius:13px;background:#fff;
    transition:border-color .15s,background .15s;
}
.pick-item:hover{border-color:#c8d8ff;background:#f8faff}
.p-ico{width:40px;height:40px;border-radius:12px;color:#fff;flex:none;display:flex;align-items:center;justify-content:center}

/* ========== 运行结果 ========== */
.r-result-card{
    border:1px solid #edf0f6;border-radius:16px;padding:17px;background:#fcfdff;margin-top:4px;
}
.r-status-row{display:flex;align-items:center;gap:11px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px dashed #e8edf6}
.r-duration{font-size:11.5px;color:#94a3b8}
.r-media{margin-top:10px;border-radius:13px;overflow:hidden}
.r-video video,.r-image img{display:block;width:100%;max-height:60vh;background:#0b1220;border-radius:13px}
/* 多图结果网格（PC） */
.r-images{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;overflow:visible}
.r-img-cell{position:relative;display:block;border-radius:12px;overflow:hidden;background:#0b1220;aspect-ratio:1/1}
.r-img-cell img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.r-img-cell:hover img{transform:scale(1.05)}
.r-img-idx{position:absolute;left:8px;top:8px;min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;border-radius:10px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;line-height:20px;text-align:center}
.r-audio{background:linear-gradient(135deg,#eef4ff,#e2ecff);border-radius:13px;padding:15px}
.r-audio-cover{display:flex;align-items:center;gap:11px;margin-bottom:11px}
.r-audio-cover span{
    width:42px;height:42px;border-radius:50%;flex:none;
    background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:19px;
    box-shadow:0 5px 14px rgba(59,125,252,.3);
}
.r-audio-cover small{font-size:12px;color:#3b5998;font-weight:700}
.r-audio audio{width:100%}
.r-file{display:flex;align-items:center;gap:13px;background:#f4f7fc;border-radius:12px;padding:13px 15px;word-break:break-all}
.r-file-ico{font-size:22px;flex:none}
.r-file a,.r-file span{font-size:12.5px;color:#3b7dfc;line-height:1.5}
.r-text{
    margin-top:12px;padding:15px 17px;
    background:linear-gradient(180deg,#f8faff,#f0f5ff);
    border-left:4px solid #3b7dfc;border-radius:0 12px 12px 0;
    max-height:52vh;overflow:auto;
}
.r-text pre{margin:0;white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.75;color:#334155;font-family:inherit}
.r-text.r-json pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#475569}
.r-empty{padding:26px 0;text-align:center;color:#94a3b8;font-size:13px}
.result-actions{display:flex;gap:10px;margin-top:6px}
.result-actions button,.result-actions a{text-decoration:none}
.result-meta{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}

/* 弹窗内提示条 */
.notice{
    display:flex;gap:9px;align-items:flex-start;
    background:#fff8e8;border:1px solid #ffe2a6;color:#9a6b12;
    border-radius:11px;padding:11px 13px;font-size:12.5px;line-height:1.6;margin-bottom:13px;
}
.notice .ico{width:16px;height:16px;margin-top:1px;flex:none;color:#f59e0b}
.notice-bad{background:linear-gradient(135deg,#fff7ed,#fee2dc);border-color:#fca5a5;color:#991b1b}
.notice-bad .ico{color:#dc2626}

/* ========== 登录/注册弹窗 ========== */
.auth-title{font-size:19px;font-weight:900;color:#0f172a;text-align:center}
.auth-sub{font-size:12.5px;color:#94a3b8;text-align:center;margin:5px 0 20px}
.auth-switch{text-align:center;font-size:12.5px;color:#94a3b8;margin-top:14px}
.auth-switch b,#authToggle{color:#3b7dfc;font-weight:800;cursor:pointer}

/* ========== 小程序码引导弹窗 ========== */
.miniqr-modal{text-align:center}
.miniqr-tip{display:flex;gap:11px;align-items:flex-start;background:#f6f9ff;border:1px solid #e3ecff;border-radius:13px;padding:13px 15px;margin-bottom:16px;text-align:left}
.miniqr-tip-icon{font-size:20px;flex:none}
.miniqr-tip-text{font-size:12px;color:#475569;line-height:1.7}
.miniqr-header h3,.miniqr-title{font-size:17.5px;font-weight:900;color:#0f172a}
.miniqr-header p,.miniqr-sub{font-size:12px;color:#94a3b8;margin-top:4px}

/* ========== 页脚：友情链接 / 备案 ========== */
.site-footer{
    margin-top:48px;padding:26px 0 8px;
    border-top:1px solid #e8edf5;
    text-align:center;
}
.sf-links{
    display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
    gap:9px 20px;margin-bottom:13px;
}
.sf-links-title{
    font-size:11.5px;font-weight:800;color:#64748b;letter-spacing:.5px;
    position:relative;padding-right:20px;margin-right:2px;
}
.sf-links-title::after{
    content:'';position:absolute;right:0;top:50%;transform:translateY(-50%);
    width:1px;height:12px;background:#dde4ec;
}
.sf-links a{
    font-size:12px;color:#7c8aa5;text-decoration:none;font-weight:600;
    transition:color .15s;
}
.sf-links a:hover{color:#3b7dfc}
.sf-meta{
    display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 18px;
    font-size:12px;color:#9aa6bf;
}
.sf-copy{line-height:1.6}
.sf-icp{
    display:inline-flex;align-items:center;gap:5px;
    color:#9aa6bf;text-decoration:none;line-height:1.6;transition:color .15s;
}
.sf-icp:hover{color:#3b7dfc}
.sf-icp-ico{width:14px;height:14px}
.miniqr-img-wrap{margin:18px auto}
.miniqr-img{width:190px;height:190px;border-radius:16px;background:#fff;padding:10px;box-shadow:0 6px 20px rgba(15,23,42,.1)}
.miniqr-empty{width:190px;height:190px;border-radius:16px;background:#f4f6fa;border:1px dashed #d3dbe8;display:flex;align-items:center;justify-content:center;font-size:12px;color:#94a3b8}
.miniqr-buttons{display:flex;gap:10px;margin-top:16px}
.miniqr-btn{flex:1;height:40px;border-radius:11px;font-size:13px;font-weight:800}
.miniqr-btn-primary{background:linear-gradient(135deg,#3b7dfc,#5e95ff);color:#fff;box-shadow:0 4px 14px rgba(59,125,252,.25)}
.miniqr-btn-secondary{background:#f4f6fa;color:#475569}
.miniqr-footer{margin-top:15px;font-size:10.5px;color:#b0bac9}

/* 额度不足 + 小程序引导 */
.modal-ad-guide{background:linear-gradient(135deg,#fff9ec,#fdf0cd);border:1px solid #fce3a0;border-radius:14px;padding:15px;margin-bottom:15px}
.adguide-hero{display:flex;align-items:center;gap:13px}
.adguide-ico{width:50px;height:50px;border-radius:14px;flex:none;background:linear-gradient(135deg,#f59e0b,#fbbf24);display:flex;align-items:center;justify-content:center;font-size:23px}
.adguide-info strong{display:block;font-size:14px;font-weight:900;color:#92400e}
.adguide-info span{display:block;font-size:12px;color:#a16207;margin-top:2px}
.adguide-tip{font-size:11.5px;color:#a16207;margin:11px 0 0;text-align:center}
.wx-guide-card{display:flex;gap:15px;padding:15px;background:#f7f9fd;border:1px solid #e6ebf4;border-radius:14px;margin-bottom:15px}
.wx-qr-placeholder{width:118px;height:118px;flex:none;border:2px dashed #cbd8ee;border-radius:13px;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;color:#94a3b8;line-height:1.8}
.wx-qr-placeholder small{display:block;font-size:10.5px;margin-top:3px}
.wx-qr-img{width:118px;height:118px;flex:none;object-fit:cover;border-radius:13px;border:1px solid #e6ebf4;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.1)}
.wx-guide-info{flex:1}
.wx-guide-info p{font-size:12.5px;color:#475569;line-height:1.8;margin:0}
.wx-guide-info .brand{color:#3b7dfc;font-weight:800}

/* 更新卡片（保留兼容） */
.up-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;border:1px solid #edf0f6;border-radius:13px;background:#fff;margin-bottom:9px}
.up-ico{width:38px;height:38px;border-radius:11px;color:#fff;flex:none;display:flex;align-items:center;justify-content:center}

/* 占位隐藏 */
.bottom-nav{display:none !important}

/* ========== 滚动条 ========== */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(59,125,252,.2);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:rgba(59,125,252,.35)}
