/* ==========================================================================
   碰一碰 · AI 种草营销系统
   样式总表：后台（深色黑科技）+ 手机端落地页
   ========================================================================== */

:root{
  --bg:#060a10;
  --bg-glow:#0a1520;
  --panel:#0d141e;
  --panel-2:#111a26;
  --panel-3:#16222f;
  --line:rgba(255,255,255,.07);
  --line-strong:rgba(255,255,255,.13);
  --text:#e9f0f8;
  --text-2:#aab8ca;
  --muted:#77869b;
  --accent:#2ee6a8;
  --accent-dim:rgba(46,230,168,.12);
  --accent-2:#ff3d5f;
  --accent-2-dim:rgba(255,61,95,.12);
  --blue:#5c8dff;
  --blue-dim:rgba(92,141,255,.12);
  --gold:#ffb547;
  --gold-dim:rgba(255,181,71,.12);
  --violet:#9d7bff;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 18px 50px rgba(0,0,0,.42);
  --sidebar-w:236px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
body::before{
  content:"";
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(46,230,168,.10), transparent 60%),
    radial-gradient(700px 420px at 92% 0%, rgba(92,141,255,.08), transparent 60%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size:auto,auto,52px 52px,52px 52px;
  mask-image:linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer;border:none;background:none}
h1,h2,h3,h4,p{margin:0}
ul{margin:0;padding:0;list-style:none}
svg{display:block}
::selection{background:rgba(46,230,168,.28)}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-thumb{background:#1e2b3a;border-radius:9px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-track{background:transparent}

/* ---------- 布局 ---------- */
.app-shell{position:relative;z-index:1;display:flex;min-height:100vh}
.sidebar{
  width:var(--sidebar-w);flex:0 0 var(--sidebar-w);
  position:fixed;inset:0 auto 0 0;z-index:20;
  display:flex;flex-direction:column;
  padding:22px 14px 18px;
  background:linear-gradient(180deg, rgba(13,20,30,.96), rgba(8,13,20,.98));
  border-right:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.brand{display:flex;align-items:center;gap:11px;padding:0 8px 22px}
.brand-mark{
  width:40px;height:40px;border-radius:12px;flex:0 0 40px;
  display:grid;place-items:center;color:#8ffff0;
  background:linear-gradient(145deg,rgba(46,230,168,.22),rgba(46,230,168,.04));
  border:1px solid rgba(46,230,168,.34);
  box-shadow:0 0 24px rgba(46,230,168,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.brand-mark svg{width:24px;height:24px}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand-text strong{font-size:17px;letter-spacing:.06em}
.brand-text span{font-size:10.5px;color:var(--muted);letter-spacing:.14em}

.nav{flex:1;overflow-y:auto;padding:2px 0}
.nav-label{font-size:10.5px;letter-spacing:.16em;color:#5c6b80;padding:16px 12px 7px;text-transform:uppercase}
.nav-item{
  position:relative;display:flex;align-items:center;gap:11px;
  height:42px;padding:0 12px;margin-bottom:4px;border-radius:11px;
  color:#9fb0c4;font-size:13.5px;transition:.18s;
}
.nav-item:hover{background:rgba(255,255,255,.045);color:var(--text)}
.nav-item.active{
  color:#dfffee;background:linear-gradient(90deg,rgba(46,230,168,.16),rgba(46,230,168,.03));
  box-shadow:inset 0 0 0 1px rgba(46,230,168,.18);
}
.nav-item.active::before{
  content:"";position:absolute;left:-14px;top:11px;bottom:11px;width:3px;border-radius:3px;
  background:var(--accent);box-shadow:0 0 12px var(--accent);
}
.nav-ico{width:19px;height:19px;display:grid;place-items:center;opacity:.92}
.nav-ico svg{width:18px;height:18px}
.nav-badge{
  margin-left:auto;font-style:normal;font-size:10.5px;color:#91a3b8;
  min-width:22px;text-align:center;padding:1px 7px;border-radius:20px;
  background:rgba(255,255,255,.06);
}
.sidebar-foot{display:flex;flex-direction:column;gap:12px}
.store-mini{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid var(--line)}
.store-logo{
  width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:0 0 34px;
  font-weight:700;font-size:15px;color:#04231a;
  background:linear-gradient(145deg,#63f5c4,#16b98a);
}
.store-mini div:last-child{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.store-mini strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-mini span{font-size:10.5px;color:var(--muted)}
.plan-card{padding:11px 12px;border-radius:12px;background:linear-gradient(145deg,rgba(92,141,255,.10),rgba(92,141,255,.02));border:1px solid rgba(92,141,255,.16)}
.plan-top{display:flex;justify-content:space-between;font-size:11px;color:#b9c8dc}
.plan-top b{color:var(--blue);font-weight:600}
.plan-bar{height:5px;border-radius:5px;background:rgba(255,255,255,.08);margin:8px 0 6px;overflow:hidden}
.plan-bar i{display:block;height:100%;width:43%;border-radius:5px;background:linear-gradient(90deg,var(--blue),#8eaaff)}
.plan-card p{font-size:10.5px;color:var(--muted)}

.app-shell > .main{margin-left:var(--sidebar-w);flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{
  height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 30px;position:sticky;top:0;z-index:15;
  background:rgba(6,10,16,.78);backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}
.crumbs{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.crumbs i{width:4px;height:4px;border-radius:50%;background:#3d4b5e}
.crumbs b{color:var(--text);font-weight:500}
.top-actions{display:flex;align-items:center;gap:14px}
/* 多商户切换 */
.store-switch{display:flex;align-items:center;gap:7px}
.store-switch-label{font-size:11px;color:#6d7f94;white-space:nowrap}
.store-switch .select{min-width:168px;max-width:230px}
.store-switch .select:disabled{opacity:.55}
.user-chip{display:flex;align-items:center;gap:9px;padding-left:14px;border-left:1px solid var(--line)}
.user-avatar{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  font-size:13px;font-weight:600;color:#0a1a12;
  background:linear-gradient(145deg,#8cf7d2,#28c99a);
}
.user-meta{display:flex;flex-direction:column;line-height:1.3}
.user-meta strong{font-size:12px;font-weight:500}
.user-meta span{font-size:10px;color:var(--muted)}
.view{padding:26px 30px 54px;flex:1}

/* ---------- 通用组件 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:36px;padding:0 15px;border-radius:9px;font-size:12.5px;font-weight:500;
  border:1px solid transparent;transition:.18s;white-space:nowrap;
}
.btn svg{width:15px;height:15px}
.btn-primary{
  color:#05140f;background:linear-gradient(135deg,#5bf0c0,#22cb99);
  box-shadow:0 6px 18px rgba(46,230,168,.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
.btn-ghost{color:#c3d1e2;background:rgba(255,255,255,.045);border-color:var(--line-strong)}
.btn-ghost:hover{background:rgba(255,255,255,.08);color:#fff}
.btn-danger{color:#ff8ea1;background:var(--accent-2-dim);border-color:rgba(255,61,95,.22)}
.btn-danger:hover{background:rgba(255,61,95,.2)}
.btn-sm{height:29px;padding:0 11px;font-size:11.5px;border-radius:7px}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none!important}
.icon-btn{
  width:30px;height:30px;border-radius:8px;display:grid;place-items:center;
  color:#93a3b8;border:1px solid transparent;transition:.16s;
}
.icon-btn:hover{background:rgba(255,255,255,.07);color:#fff;border-color:var(--line)}
.icon-btn svg{width:15px;height:15px}

.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px;flex-wrap:wrap}
.page-title h1{font-size:22px;font-weight:600;letter-spacing:.01em;display:flex;align-items:center;gap:10px}
.page-title p{font-size:12.5px;color:var(--muted);margin-top:5px}
.page-title .pill-live{
  display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:500;color:#7cf5cd;
  padding:2px 9px;border-radius:20px;background:rgba(46,230,168,.1);border:1px solid rgba(46,230,168,.22);
}
.pill-live i{width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent);animation:blink 1.8s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}
.head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}

.panel{
  background:linear-gradient(165deg, rgba(17,26,38,.92), rgba(11,17,25,.92));
  border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);position:relative;
}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px 0}
.panel-head h3{font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}
.panel-head h3 small{font-size:10.5px;font-weight:400;color:var(--muted);letter-spacing:.02em}
.panel-head .sub{font-size:11.5px;color:var(--muted)}
.panel-body{padding:16px 20px 20px}

.tag{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:6px;font-size:10.5px;font-weight:500;white-space:nowrap}
.tag svg{width:12px;height:12px;flex:0 0 12px}
.tag-green{color:#79f7c9;background:rgba(46,230,168,.1);border:1px solid rgba(46,230,168,.18)}
.tag-red{color:#ff98aa;background:rgba(255,61,95,.1);border:1px solid rgba(255,61,95,.18)}
.tag-blue{color:#9db9ff;background:var(--blue-dim);border:1px solid rgba(92,141,255,.2)}
.tag-gold{color:#ffcb7a;background:var(--gold-dim);border:1px solid rgba(255,181,71,.2)}
.tag-gray{color:#9aa9bd;background:rgba(255,255,255,.05);border:1px solid var(--line)}
.tag-violet{color:#c4b0ff;background:rgba(157,123,255,.1);border:1px solid rgba(157,123,255,.2)}
.dot{width:5px;height:5px;border-radius:50%;background:currentColor}

/* 数据卡 */
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.stat{
  position:relative;overflow:hidden;padding:16px 18px;border-radius:var(--radius);
  background:linear-gradient(160deg,rgba(19,29,42,.95),rgba(10,16,24,.95));
  border:1px solid var(--line);box-shadow:var(--shadow);
}
.stat::after{
  content:"";position:absolute;right:-34px;top:-34px;width:110px;height:110px;border-radius:50%;
  background:radial-gradient(circle,rgba(46,230,168,.16),transparent 68%);
}
.stat.stat-b::after{background:radial-gradient(circle,rgba(92,141,255,.16),transparent 68%)}
.stat.stat-r::after{background:radial-gradient(circle,rgba(255,61,95,.14),transparent 68%)}
.stat.stat-g::after{background:radial-gradient(circle,rgba(255,181,71,.14),transparent 68%)}
.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.stat-top span{font-size:11.5px;color:var(--muted)}
.stat-ico{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.05);color:#8fa2b9}
.stat-ico svg{width:14px;height:14px}
.stat-num{font-size:27px;font-weight:600;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.stat-num small{font-size:12px;font-weight:400;color:var(--text-2);margin-left:4px}
.stat-foot{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:11px;color:var(--muted)}
.stat-foot svg{width:11px;height:11px}
.up{color:#54e6b0}.down{color:#ff8095}
.trend-spark{position:absolute;right:14px;bottom:14px;opacity:.85}

/* 网格 */
.grid-2{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px;margin-bottom:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grid-halves{display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* 折线图 */
.chart-wrap{position:relative;padding:6px 4px 0}
.chart-svg{width:100%;height:214px;overflow:visible}
.chart-legend{display:flex;gap:16px;font-size:11px;color:var(--text-2)}
.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
.chart-tip{
  position:absolute;pointer-events:none;padding:7px 10px;border-radius:8px;font-size:11px;
  background:rgba(10,16,24,.96);border:1px solid var(--line-strong);box-shadow:0 10px 24px rgba(0,0,0,.5);
  transform:translate(-50%,-115%);opacity:0;transition:opacity .12s;white-space:nowrap;z-index:5;
}
.chart-tip.show{opacity:1}
.chart-tip b{color:var(--accent)}

/* 分布条 */
.dist-row{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.dist-row:last-child{margin-bottom:0}
.dist-logo{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;flex:0 0 26px;font-size:10px;font-weight:700;color:#fff}
.dist-main{flex:1;min-width:0}
.dist-top{display:flex;justify-content:space-between;font-size:11.5px;margin-bottom:5px}
.dist-top span{color:var(--text-2)}
.dist-top b{font-weight:600;font-variant-numeric:tabular-nums}
.dist-bar{height:6px;border-radius:6px;background:rgba(255,255,255,.06);overflow:hidden}
.dist-bar i{display:block;height:100%;border-radius:6px;transition:width .6s cubic-bezier(.2,.8,.2,1)}

/* 实时流 */
.live-list{display:flex;flex-direction:column;gap:2px;max-height:262px;overflow:auto;padding-right:2px}
.live-item{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px dashed rgba(255,255,255,.05);font-size:11.5px}
.live-item:last-child{border-bottom:none}
.live-ico{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;flex:0 0 26px;color:#bcd0e4;background:rgba(255,255,255,.05)}
.live-ico svg{width:13px;height:13px}
.live-txt{flex:1;min-width:0;color:var(--text-2)}
.live-txt b{color:var(--text);font-weight:500}
.live-time{font-size:10.5px;color:#607087;white-space:nowrap}
.live-new{animation:slideIn .5s ease}
@keyframes slideIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* 排行 */
.rank{display:flex;align-items:center;gap:11px;padding:9px 0;border-bottom:1px dashed rgba(255,255,255,.05)}
.rank:last-child{border:none}
.rank-no{width:20px;font-size:11px;color:var(--muted);font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.rank-no.top{color:var(--gold)}
.rank-ava{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:11px;font-weight:600;color:#08130f;flex:0 0 30px}
.rank-ava svg{width:14px;height:14px}
.rank-main{flex:1;min-width:0}
.rank-main strong{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-main span{font-size:10.5px;color:var(--muted)}
.rank-val{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:#b9f9e4}
.rank-val small{font-size:10px;font-weight:400;color:var(--muted)}

/* 漏斗 */
.funnel{display:flex;flex-direction:column;gap:9px;padding-top:4px}
.funnel-row{position:relative;height:44px;border-radius:9px;overflow:hidden;background:rgba(255,255,255,.035);border:1px solid var(--line)}
.funnel-fill{position:absolute;inset:0;border-radius:9px;background:linear-gradient(90deg,rgba(46,230,168,.28),rgba(46,230,168,.06));transform-origin:left;animation:growX .8s cubic-bezier(.2,.8,.2,1)}
.funnel-row:nth-child(2) .funnel-fill{background:linear-gradient(90deg,rgba(92,141,255,.28),rgba(92,141,255,.06))}
.funnel-row:nth-child(3) .funnel-fill{background:linear-gradient(90deg,rgba(157,123,255,.26),rgba(157,123,255,.05))}
.funnel-row:nth-child(4) .funnel-fill{background:linear-gradient(90deg,rgba(255,181,71,.24),rgba(255,181,71,.05))}
@keyframes growX{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.funnel-in{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;height:100%;padding:0 14px;font-size:12px}
.funnel-in span{color:var(--text-2)}
.funnel-in b{font-size:14px;font-variant-numeric:tabular-nums}
.funnel-in em{font-style:normal;font-size:10.5px;color:var(--muted);margin-left:7px}

/* 表格 */
.table-wrap{overflow-x:auto}
table.tb{width:100%;border-collapse:collapse;font-size:12px}
table.tb th{
  text-align:left;font-weight:500;font-size:11px;color:#75859b;letter-spacing:.03em;
  padding:10px 12px;white-space:nowrap;border-bottom:1px solid var(--line);
}
table.tb td{padding:12px;border-bottom:1px solid rgba(255,255,255,.045);white-space:nowrap;vertical-align:middle}
table.tb tr:last-child td{border-bottom:none}
table.tb tbody tr{transition:background .15s}
table.tb tbody tr:hover{background:rgba(255,255,255,.022)}
.cell-main{display:flex;align-items:center;gap:9px}
.cell-ico{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;flex:0 0 28px;background:rgba(255,255,255,.05);color:#a5b8cc}
.cell-ico svg{width:14px;height:14px}
.cell-main strong{font-size:12px;font-weight:500;display:block}
.cell-main span{font-size:10.5px;color:var(--muted)}
.mono{font-family:"SF Mono",Consolas,"Roboto Mono",monospace;font-size:11px;letter-spacing:.02em;color:#9fb2c7}
.num{font-variant-numeric:tabular-nums}
.row-actions{display:flex;gap:2px;justify-content:flex-end}

/* 筛选条 */
.filters{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.search{
  display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:9px;
  background:rgba(255,255,255,.04);border:1px solid var(--line);min-width:220px;
}
.search svg{width:14px;height:14px;color:var(--muted)}
.search input{background:none;border:none;outline:none;font-size:12px;flex:1;min-width:0;color:var(--text)}
.search input::placeholder{color:#5e6d81}
.select{
  height:34px;padding:0 30px 0 11px;border-radius:9px;background:rgba(255,255,255,.04);
  border:1px solid var(--line);font-size:12px;color:var(--text-2);outline:none;
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2377869b' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat;background-position:right 11px center;
}
.select:focus{border-color:rgba(46,230,168,.4)}
.seg{display:flex;padding:3px;border-radius:9px;background:rgba(255,255,255,.04);border:1px solid var(--line)}
.seg button{height:27px;padding:0 11px;border-radius:7px;font-size:11.5px;color:#8192a7;transition:.15s}
.seg button.on{background:rgba(46,230,168,.14);color:#8bf8d3;box-shadow:inset 0 0 0 1px rgba(46,230,168,.16)}

/* 卡片管理 */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(286px,1fr));gap:14px}
.nfc-card{
  position:relative;overflow:hidden;border-radius:14px;padding:17px;
  background:linear-gradient(150deg,#131e2b,#0b121b);border:1px solid var(--line);
  transition:.2s;
}
.nfc-card:hover{border-color:rgba(46,230,168,.28);transform:translateY(-2px);box-shadow:0 16px 36px rgba(0,0,0,.4)}
.nfc-card::before{
  content:"";position:absolute;right:-30px;top:-40px;width:130px;height:130px;border-radius:50%;
  background:radial-gradient(circle,rgba(46,230,168,.13),transparent 70%);
}
.nfc-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:13px}
.nfc-id{font-family:"SF Mono",Consolas,monospace;font-size:11px;color:#7d90a6;letter-spacing:.06em}
.nfc-name{font-size:14px;font-weight:600;margin:3px 0 2px}
.nfc-store{font-size:10.5px;color:var(--muted)}
.nfc-chip{
  width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#8bf8d3;
  background:rgba(46,230,168,.07);border:1px solid rgba(46,230,168,.22);
}
.nfc-chip svg{width:19px;height:19px}
.nfc-waves{display:flex;gap:3px;align-items:flex-end;height:14px;margin-left:auto}
.nfc-waves i{width:2px;border-radius:2px;background:var(--accent);opacity:.8;animation:wave 1.6s infinite}
.nfc-waves i:nth-child(1){height:5px;animation-delay:0s}
.nfc-waves i:nth-child(2){height:9px;animation-delay:.15s}
.nfc-waves i:nth-child(3){height:13px;animation-delay:.3s}
@keyframes wave{0%,100%{transform:scaleY(.5);opacity:.35}50%{transform:scaleY(1);opacity:.95}}
.nfc-actions-chips{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 13px;min-height:22px}
.nfc-stats{display:flex;gap:18px;padding:11px 0;border-top:1px dashed rgba(255,255,255,.07);border-bottom:1px dashed rgba(255,255,255,.07);margin-bottom:12px}
.nfc-stats div{display:flex;flex-direction:column;line-height:1.3}
.nfc-stats b{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.nfc-stats span{font-size:10px;color:var(--muted)}
.nfc-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.nfc-foot .row-actions{justify-content:flex-start}

/* 内容工厂 */
.studio{display:grid;grid-template-columns:340px minmax(0,1fr);gap:16px;align-items:start}
.form-grid{display:flex;flex-direction:column;gap:13px}
.field{display:flex;flex-direction:column;gap:6px}
.field > label{font-size:11.5px;color:#9aabbf;display:flex;justify-content:space-between;align-items:center}
.field > label em{font-style:normal;font-size:10px;color:#5f6f84}
.input,.textarea{
  width:100%;background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:9px;
  padding:9px 11px;font-size:12.5px;outline:none;color:var(--text);transition:.16s;
}
.input:focus,.textarea:focus{border-color:rgba(46,230,168,.4);background:rgba(46,230,168,.03)}
.textarea{resize:vertical;min-height:78px;line-height:1.65}
.input::placeholder,.textarea::placeholder{color:#56657a}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{
  height:27px;padding:0 11px;border-radius:20px;font-size:11.5px;color:#9aabbf;
  background:rgba(255,255,255,.04);border:1px solid var(--line);transition:.15s;
}
.chip:hover{color:var(--text);border-color:var(--line-strong)}
.chip.on{color:#8bf8d3;background:rgba(46,230,168,.1);border-color:rgba(46,230,168,.3)}
.ai-result{
  border-radius:12px;border:1px dashed rgba(46,230,168,.24);
  background:linear-gradient(160deg,rgba(46,230,168,.05),rgba(46,230,168,.01));
  padding:15px;margin-top:15px;min-height:120px;
}
.ai-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:120px;color:#617188;font-size:11.5px;text-align:center}
.ai-empty svg{width:26px;height:26px;opacity:.55}
.ai-block{margin-bottom:12px}
.ai-block:last-child{margin-bottom:0}
.ai-block h5{font-size:10.5px;color:#6f8198;font-weight:500;margin-bottom:5px;letter-spacing:.04em}
.ai-block p{font-size:12.5px;line-height:1.75;color:#cfdbe8;white-space:pre-wrap}
.ai-block .hashtags{display:flex;flex-wrap:wrap;gap:5px}
.ai-block .hashtags span{font-size:11px;color:#8bb7ff}
.ai-loading{display:flex;align-items:center;gap:9px;font-size:12px;color:#9ab0c6;padding:28px 0;justify-content:center}
.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(46,230,168,.2);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.content-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:12px}
.content-card{
  border-radius:12px;overflow:hidden;background:rgba(255,255,255,.03);
  border:1px solid var(--line);transition:.18s;display:flex;flex-direction:column;
}
.content-card:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.cover{position:relative;height:104px;display:flex;align-items:flex-end;padding:10px;overflow:hidden}
.cover::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,9,14,.72),transparent 70%)}
.cover b{position:relative;z-index:1;font-size:10.5px;font-weight:500;padding:2px 7px;border-radius:5px;background:rgba(0,0,0,.32);backdrop-filter:blur(4px)}
.cover .cover-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(6px)}
.cover .cover-play svg{width:12px;height:12px;color:#fff}
.cover-g1{background:linear-gradient(140deg,#1f6f5b,#0d2b2c 70%)}
.cover-g2{background:linear-gradient(140deg,#7a3b52,#2a1524 70%)}
.cover-g3{background:linear-gradient(140deg,#3c4f86,#141c33 70%)}
.cover-g4{background:linear-gradient(140deg,#8a6a2f,#2e2314 70%)}
.cover-g5{background:linear-gradient(140deg,#5a3f86,#1f1733 70%)}
.cover-g6{background:linear-gradient(140deg,#2f6d86,#11232e 70%)}
.content-body{padding:11px 12px 12px;display:flex;flex-direction:column;gap:8px;flex:1}
.content-body strong{font-size:12px;font-weight:500;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.content-meta{display:flex;align-items:center;justify-content:space-between;font-size:10.5px;color:var(--muted);margin-top:auto}
.content-meta .mini-av{display:inline-flex;width:15px;height:15px;border-radius:4px;align-items:center;justify-content:center;font-size:8px;color:#fff;margin-right:4px}

/* 矩阵 */
.matrix{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.acct-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:11px}
.acct{
  display:flex;align-items:center;gap:11px;padding:12px;border-radius:11px;
  background:rgba(255,255,255,.028);border:1px solid var(--line);
}
.acct:hover{background:rgba(255,255,255,.045)}
.acct-ava{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:600;color:#fff;flex:0 0 38px;position:relative}
.acct-ava i{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;border:2px solid #0d141e;background:#28d19d}
.acct-main{flex:1;min-width:0}
.acct-main strong{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acct-main span{font-size:10.5px;color:var(--muted)}
.acct-main span b{color:#9fdccb;font-weight:500}
.acct .tag{height:20px;font-size:9.5px;padding:0 6px}
.task-list{display:flex;flex-direction:column;gap:9px;max-height:412px;overflow:auto}
.task{padding:11px 12px;border-radius:10px;background:rgba(255,255,255,.028);border:1px solid var(--line)}
.task-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.task-top strong{font-size:11.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task-meta{display:flex;gap:10px;font-size:10.5px;color:var(--muted);flex-wrap:wrap}
.task-bar{height:5px;border-radius:5px;background:rgba(255,255,255,.07);margin-top:8px;overflow:hidden;display:none}
.task.running .task-bar{display:block}
.task-bar i{display:block;height:100%;border-radius:5px;width:0;background:linear-gradient(90deg,var(--blue),var(--accent));transition:width .5s ease;box-shadow:0 0 10px rgba(46,230,168,.4)}

/* 设置 */
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px dashed rgba(255,255,255,.06)}
.set-row:last-child{border:none;padding-bottom:0}
.set-row .set-main{min-width:0}
.set-row .set-main strong{display:block;font-size:12.5px;font-weight:500}
.set-row .set-main span{font-size:10.5px;color:var(--muted)}
.set-row .input{width:150px}
.switch{position:relative;width:38px;height:22px;border-radius:20px;background:rgba(255,255,255,.12);border:none;transition:.2s;flex:0 0 38px;padding:0}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#8796a9;transition:.2s}
.switch.on{background:rgba(46,230,168,.35)}
.switch.on::after{left:18px;background:#63f5c4;box-shadow:0 0 10px rgba(46,230,168,.6)}
.hint{
  padding:11px 12px;border-radius:9px;background:rgba(92,141,255,.06);border:1px solid rgba(92,141,255,.16);
  font-size:11px;color:#a9c1e6;line-height:1.65;
}
.hint svg{width:14px;height:14px;display:inline-block;vertical-align:-2px;margin-right:5px}
.hint b{color:#cadcff}
.nfc-write{display:flex;flex-direction:column;gap:10px}
.step-line{display:flex;gap:10px;font-size:11.5px;color:#9cafc3;line-height:1.6}
.step-line i{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;flex:0 0 19px;font-size:9.5px;font-style:normal;color:#8bf8d3;background:rgba(46,230,168,.1);border:1px solid rgba(46,230,168,.22);margin-top:1px}
.link-box{
  display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:rgba(0,0,0,.25);
  border:1px solid var(--line);font-size:11px;color:#8fa5bd;
}
.link-box span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Consolas,monospace}

/* 空状态 */
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:44px 20px;text-align:center;color:#68798e;font-size:12px}
.empty svg{width:30px;height:30px;opacity:.5}

/* 模态框 */
#modal-root{position:fixed;inset:0;z-index:60;display:none}
#modal-root.open{display:block}
.modal-mask{position:absolute;inset:0;background:rgba(3,6,10,.72);backdrop-filter:blur(5px);animation:fadeIn .18s}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{
  position:relative;width:min(520px,calc(100vw - 32px));margin:7vh auto;max-height:86vh;display:flex;flex-direction:column;
  background:linear-gradient(165deg,#121c28,#0a1119);border:1px solid var(--line-strong);border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.7);animation:popIn .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes popIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.modal.wide{width:min(680px,calc(100vw - 32px))}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:19px 20px 0}
.modal-head h3{font-size:15px;font-weight:600}
.modal-head p{font-size:11px;color:var(--muted);margin-top:3px}
.modal-body{padding:16px 20px;overflow-y:auto}
.modal-foot{display:flex;justify-content:flex-end;gap:9px;padding:0 20px 18px}
.modal-close{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;color:#8192a7;flex:0 0 28px}
.modal-close svg{width:14px;height:14px}
.modal-close:hover{background:rgba(255,255,255,.07);color:#fff}
.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.check{
  display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:9px;
  background:rgba(255,255,255,.03);border:1px solid var(--line);font-size:12px;color:#a8b8ca;cursor:pointer;
}
.check input{accent-color:#2ee6a8;width:14px;height:14px;margin:0}
.check.on{border-color:rgba(46,230,168,.3);background:rgba(46,230,168,.06);color:#d6f7eb}
.check-ico{width:16px;height:16px;color:#8fa2b9;display:grid;place-items:center}
.check-ico svg{width:15px;height:15px}

/* Toast */
.toast-wrap{position:fixed;left:50%;bottom:34px;transform:translateX(-50%);z-index:90;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{
  display:flex;align-items:center;gap:8px;padding:9px 16px;border-radius:10px;font-size:12px;
  color:#d7f9ec;background:rgba(13,26,22,.95);border:1px solid rgba(46,230,168,.28);
  box-shadow:0 14px 34px rgba(0,0,0,.55);animation:toastIn .24s cubic-bezier(.2,.9,.3,1.2);
}
.toast.err{color:#ffdce2;background:rgba(30,13,18,.96);border-color:rgba(255,61,95,.3)}
.toast svg{width:14px;height:14px;flex:0 0 14px}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.toast.out{animation:toastOut .2s forwards}
@keyframes toastOut{to{opacity:0;transform:translateY(6px)}}

/* 启动层 */
.boot{position:fixed;inset:0;z-index:99;display:grid;place-items:center;align-content:center;gap:16px;background:var(--bg);transition:opacity .35s}
.boot.hide{opacity:0;pointer-events:none}
.boot-logo{
  width:58px;height:58px;border-radius:18px;display:grid;place-items:center;color:#8ffff0;
  background:linear-gradient(145deg,rgba(46,230,168,.2),rgba(46,230,168,.03));
  border:1px solid rgba(46,230,168,.3);box-shadow:0 0 40px rgba(46,230,168,.2);
  animation:pulse 1.7s infinite;
}
.boot-logo svg{width:32px;height:32px}
@keyframes pulse{0%,100%{box-shadow:0 0 22px rgba(46,230,168,.14)}50%{box-shadow:0 0 46px rgba(46,230,168,.34)}}
.boot p{font-size:11.5px;color:#6f8298;letter-spacing:.08em}

/* ==========================================================================
   手机端 H5
   ========================================================================== */
body.h5-mode{background:#04070b}
body.h5-mode::before{background:radial-gradient(800px 500px at 50% 0%,rgba(46,230,168,.10),transparent 60%),#04070b;background-size:auto}
body.h5-mode .app-shell{display:none}
.h5-stage{position:relative;z-index:1;display:flex;justify-content:center;min-height:100vh;padding:0}
.h5-shell{
  width:100%;max-width:430px;min-height:100vh;position:relative;overflow-x:hidden;
  background:linear-gradient(180deg,#0b1118 0%,#080d13 46%,#060a0f 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.05), 0 0 80px rgba(0,0,0,.8);
  padding-bottom:32px;
}
.h5-topbar{
  position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;background:rgba(6,10,15,.72);backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.05);
}
.h5-back{display:flex;align-items:center;gap:5px;font-size:12px;color:#9fb0c4;height:30px;padding:0 8px;border-radius:8px;background:rgba(255,255,255,.05)}
.h5-wx-tip{
  margin:8px 18px 0;padding:9px 11px;border-radius:10px;display:flex;gap:8px;align-items:flex-start;
  font-size:11px;line-height:1.55;color:#ffe0a8;background:rgba(255,181,71,.09);
  border:1px solid rgba(255,181,71,.24);
}
.h5-wx-tip svg{width:14px;height:14px;flex:0 0 14px;margin-top:2px;color:#ffbf63}
.h5-wx-tip b{color:#fff0d2}
.h5-back svg{width:13px;height:13px}
.h5-brand{display:flex;align-items:center;gap:6px;font-size:11px;color:#7d8ea4;letter-spacing:.1em}
.h5-brand svg{width:13px;height:13px}
.h5-brand b{color:#d9fff2;font-weight:600;letter-spacing:.04em}
.h5-shop{padding:18px 18px 0}
.h5-cover{
  position:relative;height:150px;border-radius:16px;overflow:hidden;
  background:
    radial-gradient(120px 90px at 82% 22%, rgba(255,225,170,.35), transparent 65%),
    radial-gradient(200px 140px at 15% 100%, rgba(46,230,168,.3), transparent 65%),
    linear-gradient(140deg,#1d4c40,#0d2320 60%,#0a1715);
  border:1px solid rgba(255,255,255,.08);
}
.h5-cover::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(4,7,10,.86),rgba(4,7,10,.1) 65%);
}
.h5-cover-meta{position:absolute;left:15px;right:15px;bottom:13px;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.h5-shop-name{font-size:19px;font-weight:600;letter-spacing:.02em;line-height:1.3;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.h5-shop-sub{font-size:10.5px;color:#b4c4c0;margin-top:3px;display:flex;align-items:center;gap:6px}
.h5-shop-sub i{width:3px;height:3px;border-radius:50%;background:#7e938f}
.h5-verified{display:inline-flex;align-items:center;gap:3px;font-size:9.5px;color:#8bf8d3;background:rgba(46,230,168,.14);border:1px solid rgba(46,230,168,.28);border-radius:4px;padding:1px 5px}
.h5-verified svg{width:10px;height:10px}
.h5-badge{
  position:absolute;top:12px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:5px;
  padding:4px 9px;border-radius:20px;background:rgba(6,10,15,.55);backdrop-filter:blur(10px);
  border:1px solid rgba(46,230,168,.35);font-size:10px;color:#8bf8d3;letter-spacing:.04em;
}
.h5-badge svg{width:11px;height:11px}
.h5-notice{
  margin:12px 0 0;padding:9px 12px;border-radius:10px;display:flex;align-items:center;gap:8px;
  background:rgba(46,230,168,.06);border:1px solid rgba(46,230,168,.16);font-size:11px;color:#a9e8d4;line-height:1.45;
}
.h5-notice svg{width:14px;height:14px;flex:0 0 14px;color:var(--accent)}
.h5-section{padding:20px 18px 0}
.h5-sec-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.h5-sec-title h2{font-size:14.5px;font-weight:600;display:flex;align-items:center;gap:7px}
.h5-sec-title h2::before{content:"";width:3px;height:14px;border-radius:3px;background:linear-gradient(180deg,#6cf5c8,#1cbf95);box-shadow:0 0 8px rgba(46,230,168,.5)}
.h5-sec-title span{font-size:10px;color:#6b7c91}
.h5-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.h5-act{
  position:relative;overflow:hidden;padding:14px;border-radius:13px;text-align:left;
  background:linear-gradient(155deg,rgba(24,35,48,.95),rgba(12,18,26,.95));
  border:1px solid rgba(255,255,255,.07);transition:.18s;
}
.h5-act:active{transform:scale(.98)}
.h5-act:hover{border-color:rgba(46,230,168,.3)}
.h5-act.main{
  grid-column:span 2;display:flex;align-items:center;gap:13px;
  background:linear-gradient(135deg,rgba(46,230,168,.16),rgba(92,141,255,.08) 70%,rgba(12,18,26,.9));
  border-color:rgba(46,230,168,.3);box-shadow:0 10px 30px rgba(46,230,168,.1);
}
.h5-act-ico{
  width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex:0 0 38px;
  background:rgba(255,255,255,.06);color:#a9c3d8;border:1px solid rgba(255,255,255,.08);
}
.h5-act-ico svg{width:19px;height:19px}
.h5-act.main .h5-act-ico{width:46px;height:46px;flex:0 0 46px;color:#06251c;background:linear-gradient(145deg,#75f7cd,#22cb99);border:none;box-shadow:0 6px 18px rgba(46,230,168,.3)}
.h5-act.main .h5-act-ico svg{width:23px;height:23px}
.h5-act-txt{flex:1;min-width:0}
.h5-act-txt strong{display:block;font-size:13.5px;font-weight:600;line-height:1.4}
.h5-act-txt span{display:block;font-size:10px;color:#7d8fa4;margin-top:3px;line-height:1.4}
.h5-act.main .h5-act-txt strong{font-size:15px}
.h5-act.main .h5-act-txt span{font-size:11px;color:#9db8b0}
.h5-act-arrow{color:#6ca99a;display:grid;place-items:center}
.h5-act-arrow svg{width:16px;height:16px}
.h5-act .tag-abs{position:absolute;top:10px;right:10px;font-size:9px;height:17px;padding:0 6px}
.h5-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.h5-mini{
  display:flex;flex-direction:column;align-items:center;gap:6px;padding:11px 4px;border-radius:11px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);font-size:10px;color:#9aabbf;
}
.h5-mini .h5-act-ico{width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:rgba(255,255,255,.05)}
.h5-mini .h5-act-ico svg{width:15px;height:15px}
.h5-deals{display:flex;flex-direction:column;gap:8px}
.h5-deal{
  display:flex;align-items:center;gap:11px;padding:11px;border-radius:12px;
  background:linear-gradient(120deg,rgba(255,181,71,.07),rgba(255,255,255,.025));
  border:1px solid rgba(255,181,71,.16);
}
.h5-deal-ico{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;flex:0 0 38px;background:rgba(255,181,71,.1);color:var(--gold)}
.h5-deal-ico svg{width:19px;height:19px}
.h5-deal-main{flex:1;min-width:0}
.h5-deal-main strong{display:block;font-size:12px;font-weight:500}
.h5-deal-main span{font-size:10px;color:#8b9aae}
.h5-price{font-size:16px;font-weight:600;color:#ffcf8a;font-variant-numeric:tabular-nums}
.h5-price small{font-size:9.5px;font-weight:400;color:#7d8da2;margin-left:2px}
.h5-grab{height:28px;padding:0 11px;border-radius:20px;font-size:11px;color:#2a1c05;background:linear-gradient(135deg,#ffd27a,#ffae3d);font-weight:600;flex:0 0 auto}
.h5-foot{
  margin-top:26px;padding:0 18px;text-align:center;font-size:9.5px;color:#4f5d70;line-height:1.7;
}
.h5-foot b{color:#697a8f;font-weight:500}
.h5-sticky{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;z-index:30;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(to top,rgba(6,10,15,.98) 55%,rgba(6,10,15,0));
}
.h5-sticky .btn{width:100%;height:44px;font-size:13.5px;border-radius:12px}

/* H5 流程抽屉 */
.h5-sheet{
  position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;justify-content:center;
}
.h5-sheet[hidden]{display:none}
.h5-sheet-mask{position:absolute;inset:0;background:rgba(2,5,8,.7);backdrop-filter:blur(4px)}
.h5-sheet-body{
  position:relative;width:100%;max-width:430px;max-height:92vh;overflow-y:auto;
  border-radius:20px 20px 0 0;padding:18px 18px calc(20px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,#101923,#080d13);
  border-top:1px solid rgba(255,255,255,.1);
  box-shadow:0 -20px 60px rgba(0,0,0,.6);
  animation:sheetUp .28s cubic-bezier(.2,.85,.25,1);
}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.sheet-head h3{font-size:15.5px;font-weight:600}
.sheet-head p{font-size:10.5px;color:#7b8ca1;margin-top:2px}
.sheet-close{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06);color:#94a5b9;flex:0 0 30px}
.sheet-close svg{width:14px;height:14px}
.platform-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.platform{
  display:flex;align-items:center;gap:10px;padding:12px;border-radius:11px;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);font-size:12px;text-align:left;
}
.platform:hover{border-color:var(--line-strong)}
.platform.on{border-color:rgba(46,230,168,.4);background:rgba(46,230,168,.07)}
.platform-logo{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:11px;font-weight:700;color:#fff;flex:0 0 30px}
.platform small{display:block;font-size:9.5px;color:#6f8095;margin-top:1px}
.sheet-label{font-size:11px;color:#8d9fb3;margin:14px 0 7px;display:flex;justify-content:space-between;align-items:center}
.sheet-label b{font-weight:500;color:#6e8197;font-size:10px}
.style-row{display:flex;gap:7px;flex-wrap:wrap}
.sheet-textarea{
  width:100%;min-height:104px;padding:11px;border-radius:11px;font-size:12px;line-height:1.75;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);outline:none;resize:none;color:#dbe7f3;
}
.sheet-textarea:focus{border-color:rgba(46,230,168,.35)}
.ai-hint{
  display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:9px;margin-top:8px;
  background:rgba(46,230,168,.06);border:1px solid rgba(46,230,168,.16);font-size:10.5px;color:#91e0c7;
}
.ai-hint svg{width:13px;height:13px;flex:0 0 13px}
.video-pick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.video-thumb{
  position:relative;height:82px;border-radius:10px;overflow:hidden;border:1px solid rgba(255,255,255,.08);
  display:flex;align-items:flex-end;padding:7px;font-size:9.5px;color:#dfeaf5;text-align:left;
}
.video-thumb.on{outline:2px solid rgba(46,230,168,.65);outline-offset:1px}
.video-thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.65),transparent 60%)}
.video-thumb span{position:relative;z-index:1;line-height:1.3}
.sheet-actions{display:flex;gap:9px;margin-top:18px}
.sheet-actions .btn{flex:1;height:44px;font-size:13px;border-radius:11px}
.publish-progress{display:flex;flex-direction:column;gap:13px;padding:12px 0 4px}
.pp-step{display:flex;align-items:center;gap:10px;font-size:12px;color:#7d8ea3;transition:.2s}
.pp-step .pp-dot{
  width:21px;height:21px;border-radius:50%;display:grid;place-items:center;flex:0 0 21px;
  border:1px solid rgba(255,255,255,.14);font-size:9px;color:#6d7e92;
}
.pp-step.active{color:#dcfff3}
.pp-step.active .pp-dot{border-color:rgba(46,230,168,.5);background:rgba(46,230,168,.12);color:#8bf8d3}
.pp-step.done .pp-dot{background:#2ee6a8;color:#04251c;border-color:transparent}
.pp-step.done .pp-dot svg{width:11px;height:11px}
.pp-step .spinner{width:13px;height:13px;border-width:1.5px}
.pp-bar{height:6px;border-radius:6px;background:rgba(255,255,255,.07);overflow:hidden;margin-top:4px}
.pp-bar i{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#2ee6a8,#5c8dff);transition:width .5s ease}
.success-box{text-align:center;padding:8px 4px 4px}
.success-ico{
  width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin:4px auto 13px;
  color:#04231a;background:linear-gradient(145deg,#7cf7cf,#26cb99);box-shadow:0 0 34px rgba(46,230,168,.35);
}
.success-ico svg{width:28px;height:28px}
.success-box h4{font-size:17px;font-weight:600}
.success-box p{font-size:11.5px;color:#8b9db2;margin-top:5px;line-height:1.6}
.success-reward{
  margin:16px 0;padding:13px;border-radius:12px;text-align:left;
  background:linear-gradient(120deg,rgba(255,181,71,.12),rgba(255,181,71,.03));
  border:1px solid rgba(255,181,71,.24);display:flex;align-items:center;gap:11px;
}
.success-reward .h5-deal-ico{background:rgba(255,181,71,.14)}
.success-reward strong{display:block;font-size:12.5px;color:#ffd9a1;font-weight:500}
.success-reward span{font-size:10px;color:#a5906c}
.success-stat{display:flex;justify-content:center;gap:22px;margin:10px 0 4px}
.success-stat div{text-align:center}
.success-stat b{display:block;font-size:17px;font-weight:600;color:#cfeee3;font-variant-numeric:tabular-nums}
.success-stat span{font-size:9.5px;color:#67798e}
.review-stars{display:flex;gap:7px;justify-content:center;padding:8px 0 14px}
.review-stars button{font-size:0;width:34px;height:34px;color:#3f4d60;transition:.15s}
.review-stars svg{width:32px;height:32px;margin:auto}
.review-stars button.on{color:#ffb547;filter:drop-shadow(0 0 6px rgba(255,181,71,.4))}
.review-stars button:hover{transform:scale(1.08)}
.wifi-box{
  margin:6px 0 4px;padding:20px 16px;border-radius:14px;text-align:center;
  background:linear-gradient(160deg,rgba(92,141,255,.12),rgba(92,141,255,.03));
  border:1px solid rgba(92,141,255,.22);
}
.wifi-box svg{width:30px;height:30px;margin:0 auto 8px;color:#9db9ff}
.wifi-box h4{font-size:13px;font-weight:500;color:#dbe7ff}
.wifi-box .wifi-ssid{font-size:19px;font-family:Consolas,monospace;letter-spacing:.04em;margin:9px 0 2px;color:#fff}
.wifi-box .wifi-pw{font-size:13px;font-family:Consolas,monospace;color:#a9c0ff;letter-spacing:.08em}
.wifi-copy{margin-top:12px}
.coupon-head{
  padding:16px;border-radius:14px;margin-bottom:12px;
  background:linear-gradient(135deg,rgba(46,230,168,.16),rgba(255,181,71,.08));
  border:1px solid rgba(46,230,168,.24);
}
.coupon-head strong{font-size:18px;font-weight:600;display:block}
.coupon-head span{font-size:11px;color:#9db7ad}
.coupon-item{
  display:flex;align-items:center;gap:11px;padding:12px;border-radius:10px;
  background:rgba(255,255,255,.03);border:1px dashed rgba(255,255,255,.12);margin-bottom:8px;
}
.coupon-item b{font-size:15px;color:#ffcf8a;font-variant-numeric:tabular-nums;flex:0 0 auto}
.coupon-item div{flex:1;min-width:0}
.coupon-item strong{display:block;font-size:11.5px;font-weight:500}
.coupon-item span{font-size:10px;color:#73849a}
.coupon-item em{font-style:normal;font-size:9.5px;color:#66cfae}

/* 手机预览按钮组 */
.preview-float{
  position:fixed;right:22px;bottom:22px;z-index:40;display:flex;align-items:center;gap:9px;
  padding:9px 14px 9px 10px;border-radius:40px;font-size:11.5px;color:#06231b;
  background:linear-gradient(135deg,#8dfbd8,#2ee6a8);font-weight:600;
  box-shadow:0 12px 30px rgba(46,230,168,.3);
}
.preview-float svg{width:17px;height:17px}

/* ---------- 响应式 ---------- */
@media (max-width:1240px){
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2{grid-template-columns:1fr}
  .studio{grid-template-columns:1fr}
  .matrix{grid-template-columns:1fr}
  .settings-grid{grid-template-columns:1fr}
}
@media (max-width:900px){
  :root{--sidebar-w:0px}
  .sidebar{
    transform:translateX(-100%);transition:transform .24s;width:236px;flex-basis:236px;
  }
  .sidebar.open{transform:none}
  .app-shell > .main{margin-left:0}
  .topbar{padding:0 16px}
  .view{padding:18px 16px 46px}
  .mobile-toggle{display:grid!important}
  .user-meta{display:none}
  .top-actions{gap:8px}
  .grid-3,.grid-halves{grid-template-columns:1fr}
  .page-head{align-items:flex-start}
}
@media (max-width:560px){
  .stat-grid{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:13px}
  .stat-num{font-size:22px}
  .stat-foot{font-size:10px}
  .content-grid{grid-template-columns:1fr 1fr}
  .acct-list{grid-template-columns:1fr}
  .modal{margin:4vh auto}
  .h5-shell{max-width:none;box-shadow:none}
  .h5-sticky{max-width:none}
  .h5-sheet-body{max-width:none}
}
.mobile-toggle{display:none;width:32px;height:32px;border-radius:8px;place-items:center;color:#b6c6d8;background:rgba(255,255,255,.05);margin-right:10px}
.mobile-toggle svg{width:18px;height:18px}

/* ==========================================================================
   登录层 / 启动失败
   ========================================================================== */
.login-root{display:none}
body.auth-mode .login-root{
  display:grid;place-items:center;position:fixed;inset:0;z-index:120;
  background:radial-gradient(900px 520px at 50% -10%,rgba(46,230,168,.10),transparent 62%),#05090f;
  padding:24px;
}
body.auth-mode .app-shell,body.auth-mode .h5-stage,body.auth-mode #toast{display:none}
.login-card{
  width:min(382px,100%);padding:30px 28px 24px;border-radius:20px;
  background:linear-gradient(170deg,rgba(20,30,42,.96),rgba(9,14,21,.98));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 40px 80px -30px rgba(0,0,0,.9),0 0 0 1px rgba(46,230,168,.05) inset;
}
.login-brand{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:12px}
.login-brand svg{width:20px;height:20px}
.login-brand b{font-size:14px;letter-spacing:.04em;color:#ecfff8}
.login-brand span{color:#6f8298;font-size:11px;margin-left:2px}
.login-card h2{margin:20px 0 6px;font-size:21px;font-weight:600;color:#f2fbf7;letter-spacing:.01em}
.login-sub{margin:0 0 18px;font-size:11.5px;color:#7e91a6}
.login-field{display:flex;flex-direction:column;gap:7px;margin-bottom:13px;font-size:11px;color:#93a5b8}
.login-field .input{width:100%}
.login-err{min-height:16px;font-size:11px;color:#ff6b81;margin:2px 0 8px;line-height:1.5}
.login-submit{width:100%;justify-content:center;height:40px;margin-top:2px}
.login-submit:disabled{opacity:.6;cursor:not-allowed}
.login-foot{display:flex;align-items:center;gap:6px;margin-top:16px;padding-top:14px;border-top:1px dashed rgba(255,255,255,.08);font-size:10.5px;color:#5f7387;line-height:1.6}
.login-foot svg{width:13px;height:13px;flex:0 0 13px;color:#2ee6a8}
.boot-fail{display:flex;flex-direction:column;align-items:center;gap:10px;color:#8fa2b8;font-size:12px;text-align:center;padding:0 24px}
.boot-fail svg{width:26px;height:26px;color:#ff6b81}
.boot-fail h3{margin:0;font-size:15px;color:#ecfff8}
.boot-fail p{margin:0;max-width:340px;line-height:1.7}

/* ---------- 多商户管理（100 家规模） ---------- */
.store-picker{width:210px;padding-right:11px;background-image:none;text-overflow:ellipsis}
.store-picker::placeholder{color:#5e6d81}
.store-cell{display:flex;align-items:center;gap:10px;min-width:210px}
.store-cell .store-logo{width:32px;height:32px;flex:0 0 32px;border-radius:9px;font-size:14px}
.store-cell-main{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.store-cell-main strong{font-size:12.5px;font-weight:500;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-cell-main span{font-size:10.5px;color:var(--muted);max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.code-chip{
  display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;
  font-family:"SF Mono",Consolas,monospace;font-size:11px;letter-spacing:.06em;color:#8bf8d3;
  background:rgba(46,230,168,.08);border:1px solid rgba(46,230,168,.18);
}
table.tb tbody tr.tr-cur{background:rgba(46,230,168,.05)}
.pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px}
.pager-info{font-size:11.5px;color:var(--muted)}
