/* site_a 前台样式：完全沿用 857出海 高保真原型的视觉语言。
   无构建链，纯 CSS；CSP 禁止内联样式，所有原型里的 inline style 都已转成 class。 */
:root{
  --blue:#1657fe; --blue2:#3a89ff; --blue-grad:linear-gradient(100deg,#3a89ff,#1657fe);
  --bg:#f4f8ff; --card:#ffffff; --line:#e9eef8; --line2:#f0f3fa;
  --text:#1f2733; --text2:#4b5568; --muted:#8a94a6; --red:#f5222d;
  --orange:#e8912a; --navy:#050e26; --shadow:0 2px 14px rgba(24,60,130,.05);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-size:14px;font-family:"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font-family:inherit;font-size:inherit;outline:none}
button{cursor:pointer;border:0;background:none;color:inherit}
a{color:inherit;text-decoration:none}
input{color:var(--text)}
.hide{display:none!important}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
svg.ic{width:16px;height:16px;flex:none;vertical-align:-3px}
.wrap{max-width:1350px;margin:0 auto;padding:0 24px}

/* ---------- header ---------- */
.hdr{position:sticky;top:0;z-index:60;height:60px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid #eef2fa}
.hdr-in{height:60px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;white-space:nowrap;font-size:19px;font-weight:800;letter-spacing:.3px}
.brand-bars{display:inline-flex;gap:2px;transform:skewX(-18deg);margin-right:9px}
.brand-bars i{display:block;width:5px;height:18px;border-radius:2px}
.brand-bars i:nth-child(1){background:linear-gradient(#ffb23f,#ff6a3d)}
.brand-bars i:nth-child(2){background:linear-gradient(#57a2ff,#1657fe)}
.brand-bars i:nth-child(3){background:linear-gradient(#ff6070,#e01f3d)}
/* 导航是 flex:1 且子项 nowrap，min-width:0 + 可滚动才能真收缩；否则 900~1000px 会把右侧按钮挤出视口 */
.navlist{display:flex;align-items:center;gap:2px;height:60px;flex:1;min-width:0;margin-left:28px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.navlist::-webkit-scrollbar{display:none}
.nav-item{position:relative;display:flex;align-items:center;gap:6px;height:60px;padding:0 14px;color:#5b6478;font-size:14px;white-space:nowrap;transition:.2s}
.nav-item svg.ic{width:15px;height:15px;opacity:.75}
.nav-item:hover{color:var(--blue)}
.nav-item.active{color:var(--blue);font-weight:600}
.nav-item.active:after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:2px;border-radius:2px;background:var(--blue)}
.top-actions{display:flex;align-items:center;gap:9px;white-space:nowrap}
.balance{display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid #d9e4ff;border-radius:18px;color:var(--blue);font-size:13px;background:#fff;font-weight:600}
.pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 14px;border-radius:18px;font-size:13px;font-weight:600;transition:.2s}
.pill-blue{background:var(--blue-grad);color:#fff;box-shadow:0 4px 12px rgba(22,87,254,.24)}
.pill-blue:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(22,87,254,.34)}
.pill-red{background:#fff0f2;color:#f0455b}
.pill-soft{background:#eaf1ff;color:var(--blue)}
.pill svg.ic{width:14px;height:14px}

/* ---------- views ---------- */
.view{display:none}
.view.active{display:block;animation:fadeUp .32s ease both}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;background:radial-gradient(900px 340px at 50% -60px,rgba(49,110,255,.30),transparent 70%),linear-gradient(115deg,#060e28 0%,#0b1b46 55%,#071230 100%);color:#fff}
.hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(#000,transparent 85%)}
.hero-in{position:relative;text-align:center;padding:48px 24px 52px}
.hero h1{margin:0 0 12px;font-size:34px;font-weight:800;letter-spacing:2px;text-shadow:0 4px 24px rgba(0,0,0,.35)}
.hero p{margin:0 0 34px;font-size:14px;color:#a8bce4;letter-spacing:1px}
.hero p span{color:#5c78b4;margin:0 8px}
.hero-cards{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
.hero-card{display:block;width:238px;text-align:left;padding:17px 20px;border-radius:10px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.055);transition:.25s;color:#fff;font:inherit;font-size:13px;cursor:pointer}
.hero-card:hover{transform:translateY(-4px);border-color:rgba(120,170,255,.5);background:rgba(255,255,255,.10)}
.hero-card strong{display:block;font-size:18px;font-weight:600;margin-bottom:9px}
.hero-card small{font-size:12px;color:#93a9d4}
.hero-card.accent{background:linear-gradient(105deg,#1d64f0,#3a89ff);border-color:transparent;box-shadow:0 12px 30px rgba(24,90,240,.32)}
.hero-card.accent small{color:#d5e4ff}
/* 「自选机器人」是 <button>，上面的 .hero-card 已经把按钮样式复位（font/cursor） */
.hero-card:focus-visible{outline:2px solid rgba(120,170,255,.7);outline-offset:2px}

/* ---------- layout ---------- */
.layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;padding:20px 24px 44px;align-items:start}
.side{position:sticky;top:78px;background:#fff;border-radius:10px;box-shadow:var(--shadow);padding:8px 0;border:1px solid #f0f4fc}
.side-title{padding:9px 18px 8px;font-size:12px;color:#a3acc0;letter-spacing:1px}
.side-item{position:relative;display:flex;align-items:center;gap:9px;width:100%;height:40px;padding:0 16px;font-size:13.5px;color:#4b5568;text-align:left;transition:.18s}
.side-item:hover{background:#f5f8ff;color:var(--blue)}
.side-item.active{color:var(--blue);background:#eef4ff;font-weight:600}
.side-item .arrow{margin-left:auto;color:#b6c0d4;font-size:15px}
.side-item .ic{width:15px;height:15px}
.side-item .txt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-sep{height:1px;background:var(--line2);margin:7px 14px}
.side-plain{display:block;width:100%;height:38px;line-height:38px;padding:0 18px;font-size:13.5px;color:#4b5568;text-align:center;transition:.18s}
.side-plain:hover{color:var(--blue);background:#f5f8ff}
.side-item.has-sub{cursor:pointer}
.side-item.hovering{background:#f5f8ff;color:var(--blue)}
.submenu{display:none;position:absolute;z-index:60;width:246px;max-height:min(46vh,300px);overflow-y:auto;overscroll-behavior:contain;padding:8px;background:#fff;border:1px solid #edf1fa;border-radius:10px;box-shadow:0 12px 34px rgba(23,50,110,.16)}
.submenu.open{display:block;animation:fadeUp .18s ease both}
.submenu::-webkit-scrollbar{width:5px}
.submenu::-webkit-scrollbar-thumb{background:#dbe4f5;border-radius:4px}
.sub-row{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:7px;text-align:left;font-size:13.5px;color:#2b3446;line-height:1.45;transition:.18s}
.sub-row:hover{background:#f2f6ff;color:var(--blue)}
.sub-row .ic{width:22px;height:22px;flex:none}
.sub-row.sub-all{color:var(--blue);font-weight:600;border-bottom:1px solid #f0f4fc;border-radius:6px 6px 0 0;margin-bottom:3px}

/* ---------- content ---------- */
.content{min-width:0}
.notice{display:flex;align-items:center;gap:9px;min-height:32px;padding:5px 10px;margin-bottom:12px;border-radius:6px;background:#fff5e6;border:1px solid #ffe7c2;color:#c8791a;font-size:12px}
.notice .txt{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice .ic{width:14px;height:14px;color:#e8912a;flex:none}
.btn-orange{background:#f5a13a;color:#fff;border-radius:14px;padding:4px 12px;font-size:12px;white-space:nowrap}
.btn-orange:hover{background:#ec9024}
.notice .x{color:#d9a15c;font-size:16px;line-height:1;padding:2px 4px}
.search-row{display:flex;gap:14px;margin-bottom:16px}
.search-box{flex:1;display:flex;align-items:center;height:36px;background:#fff;border:1px solid #e1e8f6;border-radius:7px;overflow:hidden;box-shadow:var(--shadow)}
.search-box:focus-within{border-color:#9fc0ff;box-shadow:0 0 0 3px rgba(22,87,254,.08)}
.search-box input{flex:1;min-width:0;border:0;background:transparent;padding:0 12px;height:100%;font-size:13px}
.search-box input::placeholder{color:#aab3c4}
.search-box button{height:100%;padding:0 15px;display:flex;align-items:center;gap:5px;background:var(--blue-grad);color:#fff;font-size:13px;white-space:nowrap}
.search-box button:hover{filter:brightness(1.08)}
.search-box .ic{width:13px;height:13px}
.search-hint{font-size:12px;color:var(--blue);margin:-8px 0 12px;padding-left:2px}
.group-card{background:#fff;border-radius:9px;box-shadow:var(--shadow);border:1px solid #f0f4fc;margin-bottom:16px;overflow:hidden}
.group-title{display:flex;align-items:center;gap:9px;margin:0;padding:14px 16px 12px;font-size:14px;font-weight:700;color:#26304a}
.group-title:before{content:"";width:3px;height:14px;border-radius:2px;background:var(--blue)}
.p-table{width:100%;border-collapse:collapse;table-layout:fixed}
.p-table th{background:#fafbfe;color:#8893a8;font-size:13px;font-weight:500;text-align:left;padding:9px 14px;border-top:1px solid var(--line2);border-bottom:1px solid var(--line2)}
.p-table th:nth-child(1){width:60%}.p-table th:nth-child(2){width:11%}.p-table th:nth-child(3){width:8%}.p-table th:nth-child(4){width:11%}.p-table th:nth-child(5){width:10%}
.p-table td{padding:12px 14px;font-size:13px;color:var(--text2);border-bottom:1px solid var(--line2);vertical-align:middle;line-height:1.55}
.p-table tr:last-child td{border-bottom:0}
.p-table tbody tr{transition:background .18s}
.p-table tbody tr:hover{background:#fafcff}
.p-name{display:flex;align-items:flex-start;gap:9px;color:#333c4e}
.p-name .ic{width:17px;height:17px;margin-top:1px}
/* 平台图标（Threads/Instagram/Facebook）与通用分类图标占同一个图标位 */
.brand-logo{display:block;flex:none;width:17px;height:17px;border-radius:4px;object-fit:contain}
.p-name .brand-logo{margin-top:1px}
.side-item .brand-logo{width:15px;height:15px}
.sub-row .brand-logo{width:22px;height:22px}
.group-title .brand-logo{width:20px;height:20px}
/* 单价用黑色加粗、库存用红色加粗：两者一眼可分（docs/07 §3.2）。
   .p-table td 的 color 优先级高于单类名，所以这里必须写成 td.p-*。 */
.p-table td.p-price{color:#1b2230;font-weight:700;white-space:nowrap}
.p-table td.p-stock{color:var(--red);font-weight:700}
/* 库存扣完（补差价）时库存列转灰、按钮禁用，避免看成还能买。 */
.p-table td.p-stock.zero{color:#98a2b3}
.p-ship{color:#7c869b}
.buy-btn{display:inline-flex;align-items:center;gap:5px;background:var(--blue-grad);color:#fff;border-radius:16px;padding:5px 15px;font-size:13px;white-space:nowrap;box-shadow:0 3px 9px rgba(22,87,254,.18);transition:.2s}
.buy-btn:hover{transform:translateY(-1px);box-shadow:0 6px 15px rgba(22,87,254,.3)}
.buy-btn:disabled{background:#c9ced9;box-shadow:none;cursor:not-allowed}
.buy-btn:disabled:hover{transform:none;box-shadow:none}
.buy-btn .ic{width:12px;height:12px}
.empty{padding:46px 20px;text-align:center;color:#aab3c4;font-size:13px}
.empty .ic{width:44px;height:44px;display:block;margin:0 auto 12px;color:#d3dbeb}

/* info blocks */
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.info-card{background:#fff;border-radius:9px;padding:16px 18px;box-shadow:var(--shadow);border:1px solid #f0f4fc}
.info-card h4{margin:0 0 14px;font-size:14px;display:flex;align-items:center;gap:8px}
.info-card h4:before{content:"";width:3px;height:13px;background:var(--blue);border-radius:2px}
.info-line{display:flex;align-items:center;gap:8px;padding:7px 0;font-size:12.5px;color:#5c6578;border-bottom:1px dashed #eef2fa}
.info-line:last-child{border-bottom:0}
.info-line .lbl{flex:none;color:#8a94a6;width:16px;height:16px;background:#eaf1ff;color:var(--blue);border-radius:50%;text-align:center;line-height:16px;font-size:10.5px}
.info-line span.val{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-btn{font-size:12px;color:var(--blue);background:#eef4ff;border-radius:4px;padding:3px 8px}
.mini-btn:hover{background:#dfeaff}

/* hero 弹窗（选择官方机器人）与补差价购买弹层 */
.bot-list{display:flex;flex-direction:column;gap:10px}
.bot-row{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #eef2fa;border-radius:8px;background:#fafbfe;transition:.18s}
.bot-row:hover{border-color:#cfe0ff;background:#f3f8ff}
.bot-name{font-size:13.5px;font-weight:600;color:#26304a}
.bot-handle{font-size:12px;color:var(--blue)}
.bot-tip{margin:14px 0 0;font-size:12px;color:#a3acc0;text-align:center;line-height:1.6}
.mk-head{margin:0 0 8px;font-size:13px;color:#4b5568;line-height:1.6}
.mk-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;font-size:13.5px;color:#5c6578;border-bottom:1px dashed #eef2fa}
.mk-line b{font-size:14px;font-weight:700;color:#1b2230}
.mk-total{font-size:18px;font-weight:800;color:#1b2230}
.mk-qty-box{display:flex;align-items:center;gap:8px}
.mk-step{display:inline-flex;align-items:center;justify-content:center;width:32px;height:30px;border-radius:6px;background:#f2f6ff;color:var(--blue);font-size:16px;line-height:1}
.mk-step:disabled{opacity:.4}
.mk-qty{width:96px;height:30px;text-align:center;border:1px solid #e3e9f5;border-radius:6px;font-size:13.5px;color:#1b2230}
.mk-tip{margin:12px 0 0;font-size:12px;color:#a3acc0;line-height:1.6}

/* ---------- generic page ---------- */
.page{padding:22px 0 60px;min-height:calc(100vh - 140px)}
.crumb{font-size:12px;color:#9aa4b8;margin-bottom:14px}
.crumb b{color:var(--blue);font-weight:500}
.panel{background:#fff;border:1px solid #f0f4fc;border-radius:9px;box-shadow:var(--shadow)}
.panel-pad{padding:26px 30px}

/* auth */
.auth-view{background:linear-gradient(180deg,#f4f8ff 0%,#f7faff 100%);display:flex;justify-content:center;align-items:flex-start;padding:56px 24px 90px}
.auth-card{width:340px;background:#fff;border-radius:8px;box-shadow:0 8px 30px rgba(30,60,130,.08);padding:28px 26px 24px}
.auth-card h2{margin:0 0 6px;text-align:center;font-size:18px;font-weight:600;color:#2b3446}
.auth-card .sub{text-align:center;color:#a0a9bb;font-size:12px;margin:0 0 22px}
.field{margin-bottom:15px}
.field label{display:block;font-size:12.5px;color:#5b6478;margin-bottom:7px}
.field label i{color:var(--red);font-style:normal}
.inp{width:100%;height:36px;border:1px solid #dce5f7;border-radius:20px;padding:0 14px;font-size:13px;background:#fff;transition:.2s}
.inp:focus{border-color:#7fa8ff;box-shadow:0 0 0 3px rgba(22,87,254,.09)}
.inp::placeholder{color:#b3bccd}
.btn-primary{width:100%;height:38px;border-radius:20px;background:var(--blue-grad);color:#fff;font-size:14px;font-weight:600;box-shadow:0 5px 14px rgba(22,87,254,.24);transition:.2s}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(22,87,254,.34)}
.btn-primary:disabled{background:#c9ceda;box-shadow:none;cursor:not-allowed;transform:none}
.auth-tip{margin:16px 0 0;padding:9px 10px;border:1px dashed #e3e9f5;border-radius:5px;font-size:11px;color:#9aa3b5;text-align:center;line-height:1.6}
.auth-foot{text-align:center;font-size:12px;color:#9aa3b5;margin-top:16px}
.auth-foot a{color:var(--blue);font-weight:600}
.cap-row{display:flex;gap:8px;align-items:stretch}
.cap-box{width:78px;flex:none;border-radius:5px;background:linear-gradient(120deg,#e9f0ff,#dbe7ff);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;letter-spacing:2px;color:#2f5ecc;font-style:italic;text-shadow:1px 1px 0 #fff;user-select:none;cursor:pointer;border:1px solid #dbe4f8}

/* detail */
/* 右列比原型的 246px 略宽：本站余额是 4 位小数的 U，246 会拆断“钱包”和余额 */
.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.d-main{padding:20px 22px}
.d-head{display:flex;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--line2)}
.d-thumb{width:92px;height:92px;flex:none;border-radius:10px;background:#0d0d0f;display:flex;align-items:center;justify-content:center;color:#fff}
.d-thumb .ic{width:54px;height:54px}
/* 详情页头部图标与所属分类共用（product.js 按 category_id 替换）：图片直接铺满
   整个图标位（含圆角），不再露出黑底边框；通用 svg 兜底时仍走黑底白图标 */
.d-thumb .brand-logo{width:92px;height:92px;border-radius:10px}
.d-info h2{margin:0 0 10px;font-size:16px;line-height:1.65;font-weight:600;color:#232c3d}
.tags{display:flex;gap:6px;margin-bottom:9px}
.tag{font-size:10.5px;padding:2px 7px;border-radius:3px;background:#eaf1ff;color:var(--blue)}
.d-price{color:var(--red);font-size:18px;font-weight:700;margin-bottom:6px}
.d-meta{font-size:12px;color:#9aa4b8}
.d-sec{padding:18px 0 4px}
.d-sec h4{margin:0 0 12px;font-size:14px;display:flex;align-items:center;gap:8px}
.d-sec h4:before{content:"";width:3px;height:13px;background:var(--blue);border-radius:2px}
.d-sec p{margin:0 0 9px;font-size:12.5px;line-height:1.9;color:#5c6578}
.d-sec .em{color:#e46b2b}
.d-side{padding:16px 16px 20px}
.d-side h4{margin:0 0 16px;font-size:14px;display:flex;align-items:center;gap:8px}
.d-side h4:before{content:"";width:3px;height:13px;background:var(--blue);border-radius:2px}
.d-side .field{margin-bottom:13px}
.d-side .field label{font-size:12.5px;margin-bottom:6px}
.d-side .inp{height:34px;border-radius:5px;font-size:12.5px}
.stepper{display:flex;align-items:center;gap:8px}
.stepper button{width:26px;height:26px;border-radius:50%;background:#eef3ff;color:var(--blue);font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center}
.stepper button:hover{background:#dde8ff}
.stepper input{width:48px;height:28px;text-align:center;border:1px solid #e0e7f5;border-radius:5px;font-size:13px}
.d-total{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:#7c869b;margin:14px 0 10px}
.d-total b{color:var(--red);font-size:16px}
.pay-opts{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.pay-opt{display:flex;align-items:center;gap:8px;height:34px;padding:0 11px;border:1px solid #e4eaf6;border-radius:5px;font-size:12.5px;color:#5b6478;cursor:pointer;transition:.18s;background:#fff}
.pay-opt:hover{border-color:#9fc0ff}
.pay-opt.sel{border-color:var(--blue);background:#f2f6ff;color:var(--blue);box-shadow:0 0 0 2px rgba(22,87,254,.07)}
.pay-opt .dot{width:14px;height:14px;border-radius:50%;border:1px solid #cfd8e8;margin-left:auto;position:relative}
.pay-opt.sel .dot{border-color:var(--blue)}
.pay-opt.sel .dot:after{content:"";position:absolute;inset:3px;background:var(--blue);border-radius:50%}
.pay-opt .ic{width:15px;height:15px}
.d-submit{width:100%;height:36px;border-radius:5px;background:var(--blue-grad);color:#fff;font-size:13.5px;font-weight:600}
.d-submit:disabled{background:#c9ceda;cursor:not-allowed}

/* recharge */
.rc{width:750px;max-width:100%;margin:0 auto;padding:24px 34px 34px}
.rc h2{text-align:center;font-size:18px;font-weight:600;margin:0 0 16px;color:#2b3446}
.rc-warn{text-align:center;color:var(--red);font-size:13px;font-weight:600;margin-bottom:22px;line-height:1.7}
.rc-label{font-size:13px;color:#4b5568;margin-bottom:9px;display:block}
.rc-label i{color:var(--red);font-style:normal}
.rc-preset{background:var(--blue-grad);color:#fff;border-radius:5px;padding:8px 14px;font-size:12.5px}
.rc-preset:hover{filter:brightness(1.08)}
.rc-hint{font-size:11px;color:#a4adbe;margin-top:7px}
.rc .inp{height:38px;border-radius:5px}
.rc-sep{height:1px;background:var(--line2);margin:20px 0}
.pay-pills{display:flex;gap:10px;flex-wrap:wrap}
.pay-pill{display:flex;align-items:center;gap:6px;height:32px;padding:0 14px;border:1px solid #e0e6f2;border-radius:5px;font-size:12.5px;color:#5b6478;background:#fff;transition:.18s}
.pay-pill:hover{border-color:#9fc0ff}
.pay-pill .ic{width:14px;height:14px}
.pay-pill.sel-usdt{border-color:#e85a5a;color:#e24545;background:#fffafa}
.pay-pill.sel-manual{border-color:#efb45c;color:#d98b1c;background:#fffaf1}
.rc-limit{font-size:11px;color:#8a94a6;margin-top:9px}
.detail-box{margin:14px auto 24px;max-width:560px;background:#fafbfe;border-radius:6px;padding:16px 20px}
.dl{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:#8a94a6;padding:6px 0}
.dl b{color:#4b5568;font-weight:500}
.dl .accent{color:var(--blue);font-size:14px;font-weight:700}
.dl .note{font-size:11px;color:#9aa4b8}
.rc-confirm{display:block;margin:0 auto;width:110px;height:34px;border-radius:18px;background:var(--blue-grad);color:#fff;font-size:13.5px;box-shadow:0 5px 14px rgba(22,87,254,.22)}
.rc-confirm:hover{transform:translateY(-1px)}

/* profile */
.pf-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
.pf-head h1{margin:0 0 6px;font-size:19px;font-weight:600}
.pf-head p{margin:0;font-size:12px;color:#9aa4b8}
.pf-head .acts{display:flex;gap:8px}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}
.stat{border-radius:8px;padding:18px 20px;color:#fff;min-height:92px;position:relative;overflow:hidden}
.stat:after{content:"";position:absolute;right:-20px;top:-28px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.08)}
.stat .lbl{font-size:12px;opacity:.85}
.stat .num{font-size:25px;font-weight:700;margin:8px 0 4px;letter-spacing:.5px}
.stat .sub{font-size:11px;opacity:.75}
.s1{background:linear-gradient(105deg,#4189ff,#1e6bf5)}.s2{background:linear-gradient(105deg,#a43af0,#7427e8)}.s3{background:linear-gradient(105deg,#5a6a9a,#3f4c78)}
.pf-sec h3{margin:0 0 4px;font-size:15px;font-weight:600}
.pf-sec .desc{font-size:12px;color:#a4adbe;margin:0 0 14px}
.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:0}
.tab{position:relative;padding:9px 2px 11px;font-size:13.5px;color:#8a94a6;cursor:pointer}
.tab.active{color:var(--blue);font-weight:600}
.tab.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--blue);border-radius:2px}
.tab .cnt{color:var(--blue)}
.rec-table{width:100%;border-collapse:collapse;table-layout:fixed}
.rec-table th{font-size:12.5px;color:#9aa4b8;font-weight:400;text-align:left;padding:13px 14px;background:#fff}
.rec-table td{font-size:12.5px;color:#5b6478;padding:13px 14px;border-top:1px solid var(--line2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pager{display:flex;justify-content:center;gap:6px;padding:16px}
.pager button{min-width:24px;height:24px;border-radius:4px;font-size:12px;color:#8a94a6}
.pager button.on{background:#eaf1ff;color:var(--blue)}

/* orders */
.tips{background:#fff5e6;border:1px solid #ffe7c2;color:#c8791a;font-size:12px;padding:9px 14px;border-radius:5px;margin-bottom:14px}
.chips{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.chip{padding:6px 14px;border-radius:5px;background:#eaf1ff;color:#6d84b5;font-size:12.5px}
.chip.active{background:var(--blue);color:#fff}
.query-bar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #f0f4fc;border-radius:7px;padding:14px;box-shadow:var(--shadow);margin-bottom:16px}
.query-bar input{width:260px;height:32px;border:1px solid #dce5f7;border-radius:5px;padding:0 11px;font-size:13px}
.query-bar button{height:32px;padding:0 15px;border-radius:16px;background:#eaf3ff;color:var(--blue);font-size:12.5px}
.query-hint{font-size:12px;color:#a4adbe}
/* 订单记录列表：一条一卡。原 7 列表格在窄容器会出现横向滚动条、订单号被裁。 */
.rec-list{display:flex;flex-direction:column;gap:10px;padding:14px}
.rec-card{display:block;border:1px solid var(--line2);border-radius:8px;background:#fff;padding:12px 14px;color:var(--text);transition:border-color .15s,box-shadow .15s}
.rec-card:hover{border-color:#cfe0ff;box-shadow:0 6px 18px rgba(24,60,130,.08)}
.rec-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rec-no{font-family:Consolas,Menlo,monospace;font-size:12.5px;color:var(--text2);word-break:break-all}
.rec-title{margin-top:7px;font-size:13.5px;color:var(--text);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rec-meta{margin-top:9px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.rec-amount{color:var(--red);font-size:13px;font-weight:700}
.empty-panel{padding:62px 20px;text-align:center;background:#fff;border-radius:8px;box-shadow:var(--shadow)}
.empty-ill{width:66px;height:66px;margin:0 auto 12px;color:#dde4f1}
.empty-text{color:#aab3c4;font-size:12.5px}

/* info page tabs */
.info-tabs{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.info-tab{padding:8px 18px;border-radius:6px;background:#fff;border:1px solid #e9eef8;font-size:13px;color:#6b7488}
.info-tab.active{background:var(--blue-grad);color:#fff;border-color:transparent}
.doc{padding:18px 24px;line-height:2;font-size:13.5px;color:#4b5568}
.doc h5{color:#2b3446;font-size:14px;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.doc .num{display:inline-flex;width:17px;height:17px;border-radius:50%;background:var(--blue);color:#fff;align-items:center;justify-content:center;font-size:10.5px;margin-right:7px}
.doc .kv{margin:0 0 6px;padding-left:2px}
.doc .kv b{color:#2b3446;font-weight:600}
.doc .kv em{font-style:normal;color:var(--blue)}
.doc-block{margin-bottom:24px}
.doc-note{color:#a4adbe}

/* ---------- footer / floaters ---------- */
.footer{background:var(--navy);color:#fff}
.footer-in{height:78px;display:flex;align-items:center}
.footer .brand{font-size:18px}
.footer .brand b{color:#fff}
.floaters{position:fixed;right:18px;bottom:24px;z-index:55;display:flex;flex-direction:column;align-items:center;gap:10px}
.fab{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#37a9f5,#1b7fe0);color:#fff;box-shadow:0 6px 18px rgba(20,120,220,.4);transition:.2s}
.fab:hover{transform:translateY(-3px) scale(1.05)}
.fab .ic{width:19px;height:19px}
.fab.small{width:28px;height:28px;background:#fff;color:var(--blue);box-shadow:0 3px 12px rgba(30,60,130,.16)}
.fab.small .ic{width:15px;height:15px}
.cust-card{position:absolute;right:48px;bottom:0;width:250px;background:#fff;border-radius:10px;padding:14px;box-shadow:0 12px 34px rgba(23,50,110,.2);border:1px solid #edf1fa;display:none}
.cust-card.open{display:block;animation:fadeUp .22s ease both}
.cust-card h5{margin:0 0 9px;font-size:13.5px}
.cust-card .row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#5b6478;padding:7px 0;border-top:1px dashed #eef2fa}
.cust-card .row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}
.cust-card .mini-btn{padding:2px 7px}

/* ---------- modal / toast ---------- */
.mask{position:fixed;inset:0;z-index:100;background:rgba(8,18,42,.55);display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .2s ease both}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{width:470px;max-width:100%;max-height:82vh;overflow:auto;background:#fff;border-radius:8px;padding:22px 26px 24px;box-shadow:0 24px 70px rgba(0,0,0,.28);animation:fadeUp .26s ease both}
.modal h3{margin:0 0 16px;text-align:center;font-size:17px;font-weight:600;position:relative}
.modal h3 .x{position:absolute;right:-8px;top:-6px;font-size:19px;color:#b6bfd0;font-weight:400;line-height:1;padding:4px}
.modal .danger{color:var(--red);font-weight:600;font-size:13.5px;line-height:1.8;margin-bottom:14px}
.modal p{font-size:12.5px;line-height:1.95;color:#4b5568;margin:0 0 10px}
.modal .mono{font-family:Consolas,Menlo,monospace;font-size:12px;color:#2b3446;background:#f6f8fd;padding:2px 5px;border-radius:3px;word-break:break-all}
.modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line2)}
/* 商家公告：条目多，加宽一档；收款地址与骗子 ID 单独排版 */
.modal-lg{width:560px}
.modal .notice-sec{margin:14px 0 6px;font-size:13px;font-weight:700;color:#26304a}
.modal .notice-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.modal .notice-link{color:var(--blue);font-weight:600;word-break:break-all}
.modal .notice-pay{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f6f8fd;border:1px solid #eef2fa;border-radius:5px;padding:7px 10px;margin:0 0 10px;font-size:12px;color:#4b5568}
.modal .notice-pay .k{color:#8a94a6}
.modal .notice-pay .mono{background:#fff}
.modal .notice-pay .mini-btn{flex:none}
.modal .notice-scam{color:var(--red);font-weight:600;font-size:12.5px;line-height:1.95}
.check{display:flex;align-items:center;gap:6px;font-size:12px;color:#8a94a6;cursor:pointer}
.check input{accent-color:var(--blue)}
#toast{position:fixed;left:50%;top:76px;z-index:200;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{min-width:180px;max-width:420px;padding:10px 18px;border-radius:6px;background:#202a3e;color:#fff;font-size:13px;box-shadow:0 8px 24px rgba(10,20,40,.24);animation:toastIn .25s ease both}
.toast.ok{background:#1c8a63}.toast.err{background:#d94a52}
@keyframes toastIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

@media(max-width:1180px){
  .navlist{margin-left:12px}
  .nav-item{padding:0 10px}
}
/* 768~1023px 间导航与余额胶囊都放不下，先收起余额（钱包页仍可看余额） */
@media(max-width:1023px){
  .top-actions .balance{display:none}
}
@media(max-width:900px){
  .layout{grid-template-columns:150px minmax(0,1fr)}
  .info-grid{grid-template-columns:1fr 1fr}
  .detail-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
  .wrap{padding:0 14px}
  .hdr-in{gap:8px}
  .brand{font-size:17px}
  .brand-bars i{height:15px;width:4px}
  .navlist{margin-left:8px}
  .nav-item{padding:0 9px;font-size:13px}
  .top-actions .balance{display:none}
  .pill{padding:0 10px;font-size:12px}
  .hero-in{padding:36px 16px 40px}
  .hero h1{font-size:25px}
  .hero-cards{gap:10px}
  .hero-card{width:100%;max-width:340px}
  .layout{display:block;padding:14px 14px 30px}
  .side{position:static;display:flex;overflow-x:auto;gap:4px;padding:6px;margin-bottom:12px;white-space:nowrap}
  .side-title,.side-sep{display:none}
  .side-item,.side-plain{width:auto;flex:none;height:32px;line-height:32px;padding:0 11px}
  .side-item .arrow{display:none}
  .submenu{width:min(260px,calc(100vw - 28px));max-height:56vh}
  .search-row{flex-direction:column;gap:10px}
  .p-table th:nth-child(4),.p-table td:nth-child(4){display:none}
  .p-table th:nth-child(1){width:56%}
  .p-table th:nth-child(5),.p-table td:nth-child(5){width:14%}
  .p-table td{padding:10px 8px;font-size:12px}
  .p-table th{padding:8px;font-size:12px}
  .info-grid,.stat-row{grid-template-columns:1fr}
  .rc{padding:20px 16px 26px}
  .panel-pad{padding:18px 14px}
  .d-head{flex-direction:column}
  .query-bar input{width:100%;flex:1}
  .floaters{left:10px;right:auto;bottom:10px;gap:6px}
  .fab{width:30px;height:30px}
  .fab .ic{width:16px;height:16px}
  .fab.small{width:24px;height:24px}
  .cust-card{left:40px;right:auto;bottom:0;width:210px}
  .p-table td:nth-child(5){padding-right:8px}
  .footer-in{height:64px}
}
/* ---------- 字号校准：以原站 fb857.com 实测 CSS 为基准 ---------- */
.group-title{font-size:16px;font-weight:700}
.group-title:before{width:4px;height:16px}
.p-table th{font-weight:600}
.p-name span{min-width:0;word-break:break-word;line-height:1.45}
.p-name .ic{width:19px;height:19px}
.buy-btn{font-size:14px;padding:6px 17px}
.side-item,.side-plain,.sub-row{font-size:14px}
.nav-item{font-weight:600}
.notice{font-size:13px}
.search-box input,.search-box button{font-size:14px}
@media(min-width:769px){
  .brand{font-size:20px}
  .hero h1{font-size:40px}
  .hero p{font-size:17px}
  .hero-card strong{font-size:20px}
  .hero-card small{font-size:13px}
}
@media(min-width:1181px){
  .p-table td,.p-table th{font-size:16px}
  .p-table td.p-stock{font-size:14px}
  .p-table th:nth-child(1){width:auto}
  .p-table th:nth-child(2){width:150px}
  .p-table th:nth-child(3){width:92px}
  .p-table th:nth-child(4){width:120px}
  .p-table th:nth-child(5){width:122px}
}
@media(min-width:769px) and (max-width:1180px){
  .p-table td,.p-table th{font-size:14px}
  .p-table td.p-stock{font-size:14px}
  .p-table th:nth-child(1){width:auto}
  .p-table th:nth-child(2){width:135px}
  .p-table th:nth-child(3){width:78px}
  .p-table th:nth-child(4){width:104px}
  .p-table th:nth-child(5){width:116px}
  .floaters{left:12px;right:auto}
  .cust-card{left:52px;right:auto}
}
.info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.info-card,.info-line span.val{min-width:0}
@media(max-width:1180px){.info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){
  .p-table td,.p-table th{font-size:13px}
  .group-title{font-size:15px}
  .buy-btn{font-size:13px;padding:5px 12px}
  .info-grid{grid-template-columns:1fr}
}

/* ---------- 列表商品名：可点进详情 ---------- */
.p-name{cursor:pointer;transition:color .18s}
.p-table tbody tr:hover .p-name{color:#0191ff}
.p-name:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}

/* ---------- 详情页字号校准 ---------- */
.crumb{font-size:14px}
.d-info{min-width:0;flex:1}
.d-info h2{font-size:20px;line-height:1.45;font-weight:700;color:#101215;word-break:break-word}
.tag{font-size:12px;padding:3px 9px}
.d-price{font-size:20px;font-weight:700}
.d-meta{font-size:14px}
.d-sec h4,.d-side h4{font-size:16px;font-weight:700}
.d-sec p{font-size:16px;line-height:1.8;color:#4b5568}
.field label{font-size:14px}
.inp{font-size:14px;height:40px}
.stepper input,.stepper button{font-size:14px}
.d-total{font-size:14px}
.d-total b{font-size:18px}
.pay-opt{font-size:14px;height:38px}
.d-submit{font-size:15px;height:40px}
@media(max-width:768px){
  .crumb{font-size:13px}
  .d-info h2{font-size:17px}
  .d-price{font-size:18px}
  .d-meta{font-size:12.5px}
  .d-sec h4,.d-side h4{font-size:15px}
  .d-sec p{font-size:14px;line-height:1.75}
  .field label,.inp,.stepper input,.stepper button,.pay-opt,.d-total{font-size:13.5px}
  .d-submit{font-size:14px}
}

/* ================= 站点补充组件（原型 inline 样式的 class 化 + 数据页） ================= */
.mt-6{margin-top:6px}
.mt-8{margin-top:8px}
.mt-10{margin-top:10px}
.mt-14{margin-top:14px}
.mt-16{margin-top:16px}
.mt-20{margin-top:20px}
.mt-24{margin-top:24px}
.mb-0{margin-bottom:0}
.small{font-size:12px}
.muted{color:var(--muted)}
.mono-text{font-family:Consolas,Menlo,monospace;word-break:break-all}
.page-narrow{max-width:920px;margin:0 auto}
.panel-pf{padding:16px 0 4px}
.px-18{padding:0 18px}
.table-scroll{overflow-x:auto}
.empty-sm{padding:38px}
.rc-presets{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.pay-pill-sm{height:28px;padding:0 12px}
.modal-sm{width:360px}
.coin{width:16px;height:16px;flex:none;background:#111;border-radius:3px;color:#fff;font-size:11.5px;line-height:16px;text-align:center}
.coin-sm{width:13px;height:13px;flex:none;background:#111;border-radius:2px;color:#fff;font-size:9.5px;line-height:13px;text-align:center}
.wallet-bal{margin-left:auto;min-width:0;color:#a4adbe;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pay-opt .pay-name{flex:none}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
/* 按钮行里 .pill 基础高 30、.ghost-btn/.danger-btn 是 36、.btn 是 34，混排必错位（确认弹层、
   充值弹层、改密弹层都有）。这里统一成 36/13/圆角18；.mini-btn 是行内小按钮、.check 是勾选标签，不参与。*/
.actions > button:not(.mini-btn),.actions > a:not(.mini-btn){display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:0;padding:0 18px;border-radius:18px;font-size:13px;font-weight:600;line-height:1;white-space:nowrap;max-width:100%;box-sizing:border-box}
.actions-center{justify-content:center}
.loading{padding:56px 20px;display:flex;align-items:center;justify-content:center;gap:8px;color:#aab3c4;font-size:13px}
.spinner{width:14px;height:14px;border-radius:50%;border:2px solid #dbe4f5;border-top-color:var(--blue);animation:spin .8s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}

/* 状态标签（订单/充值/流水） */
.tag-ok{background:#e8f8f0;color:#1c8a63}
.tag-wait{background:#fff5e6;color:#c8791a}
.tag-err{background:#fff0f2;color:#f0455b}
.tag-info{background:#eaf1ff;color:var(--blue)}
.tag-muted{background:#f0f3fa;color:#8a94a6}
.tag-lg{font-size:12px;padding:4px 10px;border-radius:4px}

/* 确认订单 / 订单详情 */
.order-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line2)}
.panel-head h2{margin:0;font-size:16px;font-weight:700;color:#26304a}
.panel-body{padding:18px 20px}
.sum-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;font-size:13.5px;color:#5b6478;border-bottom:1px dashed #eef2fa}
.sum-line:last-child{border-bottom:0}
.sum-line b{color:#2b3446;font-weight:600}
.sum-line .price{color:var(--red);font-size:18px;font-weight:700}
.sum-line .cnt{color:var(--blue)}
.grand-total{display:flex;justify-content:space-between;align-items:center;margin:14px 0 4px;padding-top:12px;border-top:1px solid var(--line2);font-size:14px;color:#4b5568}
.grand-total b{color:var(--red);font-size:20px;font-weight:700}
.pay-now{width:100%;height:40px;border-radius:20px;background:var(--blue-grad);color:#fff;font-size:14px;font-weight:600;box-shadow:0 5px 14px rgba(22,87,254,.24)}
.pay-now:disabled{background:#c9ceda;box-shadow:none;cursor:not-allowed}
.ghost-btn{height:36px;padding:0 16px;border-radius:18px;background:#eaf1ff;color:var(--blue);font-size:13px}
.ghost-btn:hover{background:#dfeaff}
.danger-btn{height:36px;padding:0 16px;border-radius:18px;background:#fff0f2;color:#f0455b;font-size:13px}
.danger-btn:hover{background:#ffe1e6}
.deliver{border:1px solid var(--line2);border-radius:7px;background:#fafbfe;padding:14px 16px;margin-bottom:12px}
.deliver h5{margin:0 0 10px;font-size:13.5px;color:#2b3446}
.deliver .dl{align-items:flex-start}
.deliver .dl > span:first-child{flex:none;width:92px}
.deliver .dl > .mono-text{flex:1;text-align:right}
.timeline{margin:0;padding:0;list-style:none}
.timeline li{position:relative;padding:0 0 14px 18px;border-left:1px solid var(--line);margin-left:5px}
.timeline li:last-child{padding-bottom:0;border-left-color:transparent}
.timeline li:before{content:"";position:absolute;left:-4px;top:4px;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.timeline .msg{font-size:13px;color:#4b5568}
.timeline .time{font-size:11.5px;color:#a4adbe;margin-top:3px}

/* 充值：二维码面板 */
.qr-wrap{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.qr-img{width:180px;height:180px;border:1px solid var(--line2);border-radius:8px;padding:6px;background:#fff;flex:none}
.qr-img img{width:100%;height:100%;display:block;border-radius:4px}
.qr-side{flex:1;min-width:200px}
.addr{background:#f6f8fd;border:1px solid var(--line2);border-radius:5px;padding:8px 10px;font-size:12px;color:#2b3446;word-break:break-all}
.cd{color:var(--red);font-weight:700}
.warn-txt{color:#c8791a;font-size:12px;line-height:1.8}

/* 账号自选：.field label 的 display:block 会盖掉 flex，必须提高选择器优先级 */
.account-list{max-height:240px;overflow-y:auto;border:1px solid var(--line2);border-radius:6px;padding:6px 8px}
.field .account-row{display:flex;align-items:center;gap:8px;margin-bottom:0;padding:6px 4px;font-size:12.5px;color:#4b5568;cursor:pointer}
.account-row input{accent-color:var(--blue);flex:none}
.account-row > span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-row .mini-btn{flex:none}

/* ================= 页面补充：错误页按钮、四列商品表、流水金额、宽表滚动 ================= */
/* spa.js 的错误页用的是 .btn.btn-primary，不能撑满整块空态区域 */
.btn{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 18px;border-radius:17px;font-size:13px;font-weight:600}
.empty .btn,.empty .btn-primary{width:auto}
.btn-block{display:block;width:100%}
.pre-line{white-space:pre-line}
/* 上游详情是富文本（detail_format=html）：p/br 已由 .d-sec p 统一字体，这里只补列表、链接与引用 */
.rich-text ul,.rich-text ol{margin:0 0 9px;padding-left:20px;font-size:12.5px;line-height:1.9;color:#5c6578}
.rich-text li{margin-bottom:4px}
.rich-text a{color:var(--blue);word-break:break-all}
.rich-text a:hover{text-decoration:underline}
.rich-text blockquote{margin:0 0 9px;padding:6px 10px;border-left:3px solid var(--line);color:#6b7488;font-size:12.5px}
.rich-text hr{border:0;border-top:1px solid var(--line2);margin:10px 0}
.rich-text h1,.rich-text h2,.rich-text h3,.rich-text h4,.rich-text h5,.rich-text h6{margin:10px 0 8px;font-size:14px;font-weight:700;color:#2b3446}
.amt-in{color:#1c8a63}
.amt-out{color:#f0455b}
/* 商品列表 5 列：商品名称 / 单价 / 库存 / 发货类型 / 操作；窄屏隐藏发货类型列 */
.p-table.cols-5 th:nth-child(2){width:12%}
.p-table.cols-5 th:nth-child(3){width:9%}
.p-table.cols-5 th:nth-child(4){width:11%}
.p-table.cols-5 th:nth-child(5){width:10%}
@media(min-width:769px) and (max-width:1180px){
  .p-table.cols-5 th:nth-child(2){width:104px}
  .p-table.cols-5 th:nth-child(4){width:96px}
}
@media(max-width:768px){
  .p-table.cols-5 th:nth-child(1){width:auto}
  .p-table.cols-5 th:nth-child(2){width:86px}
  .p-table.cols-5 th:nth-child(3){width:54px}
  .p-table.cols-5 th:nth-child(4),.p-table.cols-5 td:nth-child(4){display:none}
  .p-table.cols-5 th:nth-child(5),.p-table.cols-5 td:nth-child(5){width:78px}
}
/* 订单/充值/流水记录列数多：改为按内容定宽（订单号/商品名不被截断），超出容器则横向滚动 */
.table-scroll .rec-table{min-width:720px;table-layout:auto}
@media(max-width:900px){
  .order-grid{grid-template-columns:1fr}
  .pf-head{flex-direction:column;gap:12px}
}
/* 登录/注册外壳撑满视口，页脚不会浮在内容下方 */
body[data-area="auth"]{display:flex;flex-direction:column;min-height:100vh}
body[data-area="auth"] #view{flex:1;width:100%}

/* ================= 订单详情（原型无此页，按参考站结构补：左信息+注意事项 / 右凭据卡） ================= */
.od-grid{display:grid;grid-template-columns:minmax(0,460px) minmax(0,1fr);gap:16px;align-items:start}
.od-col{min-width:0}
.od-card{padding:18px 20px;margin-bottom:16px}
.od-card:last-child{margin-bottom:0}
.od-card > h4{margin:0 0 6px;font-size:16px;font-weight:700;color:#26304a;display:flex;align-items:center;gap:8px}
.od-card > h4:before{content:"";width:3px;height:13px;background:var(--blue);border-radius:2px}
.od-row{display:flex;align-items:flex-start;gap:10px;padding:6px 0;font-size:13px;line-height:1.75}
.od-row .k{flex:none;display:flex;justify-content:space-between;width:74px;color:#9aa4b8}
.od-row .k:after{content:"："}
.od-row .v{flex:1;min-width:0;color:#2b3446;word-break:break-all}
.od-row .v.price{color:var(--red);font-weight:700}
.od-row .v.od-no{flex:0 1 auto}
.od-row .mini-btn{flex:none;margin-top:1px}
.od-row.hide{display:none}
.od-foot{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid var(--line2)}
/* 四个动作按钮必须同一套尺寸：.pill 基础高 30（.od-foot 里曾改成 34）、ghost/danger 是 36，
   混排时两两差 2px 互相对不齐，移动端 .pill 还会掉到 12px 字号。这里统一写死。*/
.od-foot > a,.od-foot > button{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:0;padding:0 20px;border-radius:18px;font-size:13px;font-weight:600;line-height:1;white-space:nowrap;max-width:100%;box-sizing:border-box}
.od-foot .od-service{padding:0 22px}
.od-service{height:36px;padding:0 22px;border-radius:18px;background:var(--blue-grad);color:#fff;font-size:13px;font-weight:600;box-shadow:0 5px 14px rgba(22,87,254,.22);transition:.2s}
.od-service:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(22,87,254,.34)}
.od-note p{margin:0 0 8px;font-size:13px;line-height:1.9;color:#5c6578}
.od-note p:last-child{margin-bottom:0}
/* 发货凭据：一账号一卡，按钮在卡片右上角，正文等宽可滚动 */
.ck-bar{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ck-btn{display:inline-flex;align-items:center;height:30px;padding:0 15px;border-radius:15px;background:#eaf1ff;color:var(--blue);font-size:12.5px}
.ck-btn:hover{background:#dfeaff}
.ck-btn:disabled{background:#f0f3fa;color:#aab3c4;cursor:not-allowed}
.ck-card{background:#fff;border:1px solid #f0f4fc;border-radius:9px;box-shadow:var(--shadow);padding:12px 14px 14px;margin-bottom:12px}
.ck-card:last-child{margin-bottom:0}
.ck-acts{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.ck-acts .mini-btn:disabled{background:#f0f3fa;color:#aab3c4;cursor:not-allowed}
.ck-text{margin:0;max-height:190px;overflow:auto;font-family:Consolas,Menlo,monospace;font-size:12px;line-height:1.85;color:#2b3446;white-space:pre-wrap;word-break:break-all}
.ck-text::-webkit-scrollbar{width:6px;height:6px}
.ck-text::-webkit-scrollbar-thumb{background:#dbe4f5;border-radius:4px}
/* 卡片正文逐字段展示，CK 单独折叠（避免和账号拼一行时账号重复出现） */
.ck-fields{display:flex;flex-direction:column;gap:3px;font-size:12.5px;line-height:1.85}
.ck-field{display:flex;gap:8px}
.ck-field .k{flex:0 0 62px;color:#8b95a8}
.ck-field .v{flex:1;min-width:0;color:#2b3446;font-family:Consolas,Menlo,monospace;word-break:break-all}
.ck-fold{margin-top:8px;border-top:1px dashed #e9eef8;padding-top:8px}
.ck-fold>summary{cursor:pointer;font-size:12px;color:var(--blue);user-select:none}
.ck-fold[open]>summary{margin-bottom:6px}
/* 复制降级用的隐藏 textarea（非安全上下文才会创建） */
.sr-copy{position:absolute;left:-9999px;top:0;width:1px;height:1px;opacity:0;border:0;padding:0}
@media(max-width:900px){
  .od-grid{grid-template-columns:1fr}
}
