/* ==========================================================================
   StarHub 云控 · v5 设计系统
   深空玻璃 + 渐变强调色；类名沿用 v4，页面不用改结构直接换皮。
   ========================================================================== */

:root{
  --bg:#05070E;
  --bg-2:#080C16;
  --panel:rgba(17,23,39,.72);
  --panel-2:rgba(23,31,51,.78);
  --panel-solid:#0D1424;
  --line:rgba(255,255,255,.07);
  --line-2:rgba(255,255,255,.13);
  --txt:#E9EFFB;
  --dim:#98A6C0;
  --dim-2:#6C7B95;
  --accent:#6D8BFF;
  --accent-2:#22D3EE;
  --violet:#A78BFA;
  --ok:#34D399;
  --warn:#FBBF24;
  --bad:#FB7185;
  --gold:#FFD98A;
  --grad:linear-gradient(135deg,#6D8BFF 0%,#8B7BFF 45%,#22D3EE 100%);
  --grad-soft:linear-gradient(135deg,rgba(109,139,255,.18),rgba(34,211,238,.12));
  --r:18px; --r-sm:12px; --r-lg:24px;
  --side-w:264px;
  --sh-1:0 4px 18px rgba(0,0,0,.28);
  --sh-2:0 18px 46px rgba(0,0,0,.34);
  --sh-glow:0 14px 40px rgba(109,139,255,.35);
  --ease:cubic-bezier(.22,.9,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ margin:0; padding:0; }
html{ overflow-x:hidden; }   /* 兜底：任何一页都不许整页左右晃 */

body{
  min-height:100dvh;
  background:var(--bg);
  color:var(--txt);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro SC","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; }
b,strong{ font-weight:650; }
h1,h2,h3,h4{ margin:0; font-weight:650; letter-spacing:-.01em; }
hr,.hr{ border:0; border-top:1px solid var(--line); margin:22px 0; }

::selection{ background:rgba(109,139,255,.35); }

/* 滚动条 */
*{ scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.16) transparent; }
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.14); border-radius:99px; border:2px solid transparent; background-clip:content-box; }
::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.26); background-clip:content-box; }

/* ---------------------------------------------------------- 背景 */
.aurora{
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(109,139,255,.16), transparent 62%),
    radial-gradient(900px 620px at 92% 0%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(1000px 700px at 60% 110%, rgba(167,139,250,.10), transparent 62%),
    var(--bg);
}
.aurora::after{
  content:""; position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:26px 26px;
  mask-image:radial-gradient(circle at 50% 25%, #000 0%, transparent 78%);
  -webkit-mask-image:radial-gradient(circle at 50% 25%, #000 0%, transparent 78%);
  opacity:.5;
}
.aurora i{ position:absolute; display:block; border-radius:50%; filter:blur(110px); opacity:.4; }
.aurora i:nth-child(1){ width:48vw; height:48vw; left:-14vw; top:-18vw; background:radial-gradient(circle,#4C6FFF,transparent 68%); animation:drift 26s var(--ease) infinite alternate; }
.aurora i:nth-child(2){ width:42vw; height:42vw; right:-14vw; top:-8vw; background:radial-gradient(circle,#8B5CF6,transparent 70%); opacity:.3; animation:drift 32s var(--ease) infinite alternate-reverse; }
.aurora i:nth-child(3){ width:56vw; height:56vw; left:22vw; bottom:-34vw; background:radial-gradient(circle,#06B6D4,transparent 72%); opacity:.22; animation:drift 40s var(--ease) infinite alternate; }
@keyframes drift{ from{ transform:translate3d(0,0,0) scale(1);} to{ transform:translate3d(3vw,2vw,0) scale(1.08);} }

/* ---------------------------------------------------------- 布局 */
.shell{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:var(--side-w) minmax(0,1fr);
  min-height:100dvh;
}

.side{
  position:sticky; top:0; height:100dvh;
  display:flex; flex-direction:column;
  padding:22px 16px 18px;
  background:linear-gradient(180deg,rgba(11,16,28,.92),rgba(6,9,17,.94));
  border-right:1px solid var(--line);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  z-index:40;
}

.side-brand{
  display:flex; align-items:center; gap:12px;
  padding:6px 8px 18px;
  margin-bottom:8px;
  border-bottom:1px solid var(--line);
}
.side-brand .logo{
  width:42px; height:42px; flex:none;
  display:grid; place-items:center;
  font-size:19px;
  border-radius:14px;
  background:var(--grad);
  box-shadow:var(--sh-glow);
}
.brand-txt{ display:flex; flex-direction:column; min-width:0; }
.brand-txt b{ font-size:15px; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-txt i{ font-style:normal; font-size:9.5px; letter-spacing:2.2px; color:var(--dim-2); margin-top:2px; }

.side-nav{ display:flex; flex-direction:column; gap:4px; overflow-y:auto; padding:10px 2px 10px; flex:1; }
.nav-it{
  position:relative;
  display:flex; align-items:center; gap:11px;
  padding:11px 13px;
  border-radius:13px;
  color:var(--dim);
  font-size:13.5px; font-weight:550;
  transition:background .18s var(--ease), color .18s, transform .18s;
}
.nav-it .nav-ico{ width:20px; text-align:center; font-size:15px; opacity:.9; }
.nav-it:hover{ background:rgba(255,255,255,.05); color:var(--txt); transform:translateX(2px); }
.nav-it.on{
  color:#fff;
  background:linear-gradient(90deg,rgba(109,139,255,.22),rgba(34,211,238,.08));
  box-shadow:inset 0 0 0 1px rgba(109,139,255,.28);
}
.nav-it.on::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:3px; height:18px; border-radius:0 4px 4px 0; background:var(--grad);
}
.nav-dot{
  margin-left:auto; font-style:normal;
  min-width:20px; padding:1px 6px;
  font-size:10.5px; font-weight:700;
  border-radius:99px;
  background:rgba(251,191,36,.16); color:var(--warn);
  border:1px solid rgba(251,191,36,.28);
}

.side-foot{ display:flex; flex-direction:column; gap:10px; padding-top:14px; border-top:1px solid var(--line); }
.online-card{
  display:flex; align-items:center; gap:10px;
  padding:11px 13px;
  border-radius:15px;
  background:rgba(52,211,153,.07);
  border:1px solid rgba(52,211,153,.2);
}
.online-card b{ display:block; font-size:13.5px; }
.online-card i{ font-style:normal; font-size:11px; color:var(--dim-2); }
.pulse{
  width:9px; height:9px; border-radius:50%; flex:none;
  background:var(--ok); box-shadow:0 0 0 0 rgba(52,211,153,.6);
  animation:pulse 2.2s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(52,211,153,.55); }
  70%{ box-shadow:0 0 0 10px rgba(52,211,153,0); }
  100%{ box-shadow:0 0 0 0 rgba(52,211,153,0); }
}
.side-out{
  text-align:center; padding:9px; border-radius:12px;
  font-size:12.5px; color:var(--dim-2);
  border:1px solid var(--line);
  transition:.18s;
}
.side-out:hover{ color:var(--bad); border-color:rgba(251,113,133,.35); background:rgba(251,113,133,.08); }

.mainarea{ display:flex; flex-direction:column; min-width:0; }

.topbar{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; gap:14px;
  padding:16px 26px;
  background:rgba(6,9,17,.72);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}
.page-title{ font-size:17px; letter-spacing:.1px; }
.burger{
  display:none; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:11px;
  border:1px solid var(--line-2); background:rgba(255,255,255,.04);
  color:var(--txt); font-size:16px; cursor:pointer;
}
.top-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.live-clock{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px; color:var(--dim-2);
  padding:5px 10px; border-radius:99px;
  border:1px solid var(--line); background:rgba(255,255,255,.03);
}
.whoami{
  display:flex; align-items:center; gap:8px;
  padding:6px 12px 6px 7px; border-radius:99px;
  border:1px solid var(--line-2); background:rgba(255,255,255,.045);
  font-size:12.5px;
}
.whoami::before{
  content:"👤"; width:24px; height:24px; border-radius:50%;
  display:grid; place-items:center; font-size:12px;
  background:var(--grad-soft); border:1px solid var(--line-2);
}

.content{ padding:26px; max-width:1320px; width:100%; margin:0 auto; flex:1; }
.footbar{
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:16px 26px 26px;
  font-size:11.5px; color:var(--dim-2);
  border-top:1px solid var(--line);
}

/* ---------------------------------------------------------- 卡片 */
.card{
  position:relative;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:22px;
  box-shadow:var(--sh-2);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  margin-bottom:18px;
  animation:rise .5s var(--ease) both;
}
@keyframes rise{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none;} }
.card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.06),transparent 36%);
  mask-image:linear-gradient(#000,transparent 60%);
  -webkit-mask-image:linear-gradient(#000,transparent 60%);
}
.card-head{ display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.card-head h2{ font-size:15.5px; display:flex; align-items:center; gap:8px; }
.card-lead{ font-size:13px; color:var(--dim); margin:0 0 18px; line-height:1.85; }

.section-title{
  margin:24px 0 12px; font-size:11.5px; font-weight:700;
  letter-spacing:1.6px; text-transform:uppercase; color:var(--dim-2);
}
.muted{ color:var(--dim); }
.subtle{ color:var(--dim-2); }
.mono{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.92em; }
.spacer{ flex:1; }
.nowrap{ white-space:nowrap; }
.t-right{ text-align:right; }
.kbd{
  display:inline-block; padding:1px 7px; border-radius:7px;
  font-family:ui-monospace,Menlo,monospace; font-size:11.5px;
  background:rgba(255,255,255,.07); border:1px solid var(--line-2);
  color:#c9d6ef;
}
.eyebrow{ font-size:10.5px; letter-spacing:2.4px; text-transform:uppercase; color:var(--accent-2); font-weight:700; }

/* ---------------------------------------------------------- 按钮 */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:10px 17px; min-height:40px;
  border-radius:999px; border:1px solid var(--line-2);
  background:rgba(255,255,255,.055); color:var(--txt);
  font-size:13.5px; font-weight:600; font-family:inherit;
  cursor:pointer; white-space:nowrap;
  transition:transform .16s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}
.btn:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.24); transform:translateY(-1px); }
.btn:active{ transform:translateY(0) scale(.985); }
.btn-primary{ background:var(--grad); border:none; color:#fff; box-shadow:0 10px 28px rgba(109,139,255,.32); }
.btn-primary:hover{ box-shadow:0 14px 38px rgba(109,139,255,.46); }
.btn-ghost{ background:transparent; border-color:var(--line); color:var(--dim); }
.btn-ghost:hover{ color:var(--txt); }
.btn-danger{ background:rgba(251,113,133,.13); border-color:rgba(251,113,133,.32); color:#ffc2cb; }
.btn-danger:hover{ background:rgba(251,113,133,.2); }
.btn-ok{ background:rgba(52,211,153,.14); border-color:rgba(52,211,153,.32); color:#9BF2CF; }
.btn-sm{ padding:7px 14px; min-height:34px; font-size:12.5px; }
.btn-xs{ padding:5px 11px; min-height:28px; font-size:11.5px; border-radius:99px; }
.btn-lg{ padding:13px 26px; min-height:48px; font-size:14.5px; }
.btn-block{ width:100%; }
.btn[disabled],.btn.disabled{ opacity:.45; pointer-events:none; }

/* ---------------------------------------------------------- 标签 */
.badge{
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 10px; border-radius:99px;
  font-size:11.5px; font-weight:650; letter-spacing:.2px;
  background:rgba(255,255,255,.07); border:1px solid var(--line-2); color:var(--dim);
}
.badge-on{ background:rgba(52,211,153,.13); border-color:rgba(52,211,153,.32); color:#8FF0C8; }
.badge-off{ background:rgba(148,163,184,.1); border-color:rgba(148,163,184,.24); color:#A9B6CD; }
.badge-bad{ background:rgba(251,113,133,.13); border-color:rgba(251,113,133,.3); color:#FFC2CB; }
.badge-warn{ background:rgba(251,191,36,.12); border-color:rgba(251,191,36,.3); color:#FFE1A3; }
.badge-info{ background:rgba(109,139,255,.14); border-color:rgba(109,139,255,.32); color:#C3D0FF; }
.badge-vip{ background:linear-gradient(135deg,rgba(255,217,138,.18),rgba(255,152,0,.12)); border-color:rgba(255,217,138,.35); color:var(--gold); }
.badge-shell{ background:rgba(167,139,250,.13); border-color:rgba(167,139,250,.3); color:#D6C8FF; }

.chip{
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 11px; border-radius:99px;
  font-size:11.5px; color:var(--dim);
  background:rgba(255,255,255,.045); border:1px solid var(--line);
}
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* ---------------------------------------------------------- 表单 */
.field{ margin-bottom:15px; min-width:0; }
.field > label{ display:block; font-size:12.5px; color:var(--dim); margin-bottom:7px; }
.input,select.input,textarea.input{
  width:100%; padding:11px 14px; min-height:44px;
  border-radius:13px;
  border:1px solid var(--line-2);
  background:rgba(0,0,0,.32);
  color:var(--txt); font-size:14px; font-family:inherit;
  outline:none;
  transition:border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder{ color:#5B6981; }
.input:focus, select.input:focus, textarea.input:focus{
  border-color:rgba(109,139,255,.7);
  box-shadow:0 0 0 4px rgba(109,139,255,.14);
  background:rgba(0,0,0,.42);
}
select.input{ appearance:none; background-image:linear-gradient(45deg,transparent 50%,#7A88A3 50%),linear-gradient(135deg,#7A88A3 50%,transparent 50%); background-position:calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-right:34px; }
textarea.input{ min-height:110px; resize:vertical; }
input[type=file].input{ padding:8px; }
input[type=radio],input[type=checkbox]{ accent-color:var(--accent); width:15px; height:15px; }
.form-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:0 14px; }
.form-inline{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
/* 批量操作条：手机上不换行，横向滑动，按钮一律圆角胶囊 */
.batch-bar{
  flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
  padding-bottom:3px;
}
.batch-bar::-webkit-scrollbar{ height:0; display:none; }
.batch-bar > *{ flex:0 0 auto; }
.batch-bar .btn{ border-radius:999px; white-space:nowrap; }
.batch-bar select.input{ min-width:170px; }
.form-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.hint-inline{ font-size:11.5px; color:var(--dim-2); line-height:1.7; }

/* ---------------------------------------------------------- 网格 / 统计 */
.grid-2{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; }
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:20px; }
.stat{
  position:relative; overflow:hidden;
  padding:18px 18px 16px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  box-shadow:var(--sh-1);
}
.stat::after{
  content:""; position:absolute; right:-30px; top:-30px; width:110px; height:110px;
  background:radial-gradient(circle,rgba(109,139,255,.28),transparent 70%);
  filter:blur(8px);
}
.stat .k{ font-size:11.5px; color:var(--dim-2); letter-spacing:.6px; }
.stat .v{ font-size:28px; font-weight:750; letter-spacing:-.02em; margin:6px 0 2px;
  background:linear-gradient(120deg,#fff,#B9C7FF 70%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat .s{ font-size:11.5px; color:var(--dim-2); }
.stat .v span{ -webkit-text-fill-color:var(--dim-2); }

.mini-stat{
  min-width:76px; padding:10px 12px; border-radius:14px; text-align:center;
  border:1px solid var(--line); background:rgba(255,255,255,.04);
}
.mini-stat b{ display:block; font-size:19px; }
.mini-stat span{ font-size:10.5px; color:var(--dim-2); letter-spacing:.6px; }

/* ---------------------------------------------------------- 表格 */
.tbl-wrap{ overflow-x:auto; border-radius:var(--r); border:1px solid var(--line); }
.tbl{ width:100%; border-collapse:collapse; font-size:13px; min-width:560px; }
.tbl thead th{
  text-align:left; font-size:11px; letter-spacing:1px; text-transform:uppercase;
  color:var(--dim-2); font-weight:700;
  padding:12px 14px;
  background:rgba(255,255,255,.035);
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
.tbl tbody td{ padding:13px 14px; border-bottom:1px solid rgba(255,255,255,.045); vertical-align:middle; }
.tbl tbody tr{ transition:background .16s; }
.tbl tbody tr:hover{ background:rgba(109,139,255,.055); }
.tbl tbody tr:last-child td{ border-bottom:none; }

.empty{ text-align:center; padding:52px 18px; color:var(--dim); }
.empty .big{ font-size:44px; opacity:.5; margin-bottom:10px; }
.empty p{ margin:6px 0; font-size:13.5px; }

/* 分页 */
.pager{ display:flex; gap:6px; align-items:center; justify-content:center; margin-top:18px; flex-wrap:wrap; }
.pager .pg{
  min-width:34px; height:34px; padding:0 10px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px; font-size:12.5px;
  border:1px solid var(--line); color:var(--dim);
  background:rgba(255,255,255,.03);
}
.pager .pg.on{ background:var(--grad); color:#fff; border:none; font-weight:700; }
.pager .pg:hover{ color:var(--txt); }
.pg-sep{ color:var(--dim-2); }

/* ---------------------------------------------------------- 表格：手机端卡片化 */
@media (max-width:720px){
  .tbl{ min-width:0; }
  .tbl thead{ display:none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td{ display:block; width:100%; }
  .tbl tr{ padding:12px 6px; border-bottom:1px solid var(--line); }
  .tbl tbody td{ border:none; padding:5px 12px; display:flex; gap:12px; justify-content:space-between; align-items:center; }
  .tbl tbody td::before{
    content:attr(data-label); font-size:11px; color:var(--dim-2);
    letter-spacing:.5px; flex:none;
  }
  .tbl tbody td.t-right{ justify-content:flex-end; flex-wrap:wrap; gap:6px; }
  .tbl tbody td.t-right::before{ content:""; }
}

/* ---------------------------------------------------------- 设备卡片 */
.dev-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(268px,1fr)); gap:14px; }
.dev-card{
  position:relative; overflow:hidden;
  padding:17px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(155deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  transition:transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.dev-card:hover{ transform:translateY(-3px); border-color:rgba(109,139,255,.34); box-shadow:0 18px 44px rgba(0,0,0,.4); }
.dev-top{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.dev-avatar{
  width:44px; height:44px; flex:none;
  display:grid; place-items:center;
  border-radius:14px; font-weight:750; font-size:15px;
  background:rgba(255,255,255,.06); border:1px solid var(--line-2); color:var(--dim);
  position:relative;
}
.dev-avatar.on{ background:var(--grad-soft); color:#fff; border-color:rgba(109,139,255,.4); }
.dev-avatar.on::after{
  content:""; position:absolute; right:-2px; bottom:-2px; width:11px; height:11px;
  border-radius:50%; background:var(--ok); border:2px solid #0A0F1B;
}
.dev-avatar.kind-sh{ background:rgba(167,139,250,.16); border-color:rgba(167,139,250,.35); color:#D6C8FF; }
.dev-avatar.kind-win{ background:rgba(34,211,238,.14); border-color:rgba(34,211,238,.32); color:#A9F0FF; }
.dev-avatar.kind-android{ background:rgba(109,139,255,.14); border-color:rgba(109,139,255,.3); }
.dev-name{ font-size:14px; font-weight:650; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.dev-sub{
  font-size:11.5px; color:var(--dim-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}
.dev-meta{ display:flex; gap:8px; flex-wrap:wrap; }
.dev-chip{
  font-size:11px; color:var(--dim);
  padding:3px 9px; border-radius:99px;
  background:rgba(255,255,255,.045); border:1px solid var(--line);
}
.dev-foot{ display:flex; gap:8px; margin-top:14px; }
.dev-state{ font-size:11.5px; }

.dev-hero{
  display:flex; gap:18px; flex-wrap:wrap; align-items:center;
  padding:22px; border-radius:var(--r-lg); margin-bottom:18px;
  border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(109,139,255,.14),rgba(34,211,238,.05) 55%,transparent);
}
.dev-hero-left{ display:flex; align-items:center; gap:14px; min-width:0; }
.dev-hero-name{ font-size:19px; font-weight:700; }
.dev-hero-sub{ font-size:12px; color:var(--dim); }
.dev-hero-right{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }

/* ---------------------------------------------------------- 功能墙 */
/* 分组条：单行横向滑动（手机上不再是好几行按钮糊成一片） */
.fn-bar{
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
  position:sticky; top:70px; z-index:12;
  padding:8px 0;
  background:linear-gradient(180deg,rgba(6,9,17,.92),rgba(6,9,17,.62) 70%,transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.fn-tabs{
  display:flex; gap:8px; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden;
  scroll-behavior:smooth; -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  padding:2px 2px 6px; margin:0; flex:1; min-width:0;
  scrollbar-width:none; -ms-overflow-style:none;
  mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 18px),transparent 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 18px),transparent 100%);
}
.fn-tabs::-webkit-scrollbar{ height:0; display:none; }
.fn-tab{
  flex:0 0 auto; scroll-snap-align:start;
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 15px; min-height:38px; border-radius:99px;
  font-size:12.5px; font-weight:600; color:var(--dim);
  border:1px solid var(--line); background:rgba(255,255,255,.04);
  cursor:pointer; font-family:inherit; white-space:nowrap;
  transition:transform .16s var(--ease), color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.fn-tab em{
  font-style:normal; font-size:10.5px; font-weight:700;
  padding:1px 6px; border-radius:99px; color:var(--dim-2);
  background:rgba(255,255,255,.07);
}
.fn-tab:hover{ color:var(--txt); border-color:var(--line-2); transform:translateY(-1px); }
.fn-tab.on{
  background:var(--grad); color:#fff; border-color:transparent;
  box-shadow:0 8px 22px rgba(109,139,255,.34);
}
.fn-tab.on em{ background:rgba(0,0,0,.22); color:#fff; }
.fn-scroll-hint{ display:none; }

/* 功能搜索 + 计数 */
.fn-tools{ display:flex; gap:8px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
.fn-search{ position:relative; flex:1; min-width:190px; }
.fn-search input{
  width:100%; height:42px; padding:0 40px 0 38px;
  border-radius:99px; border:1px solid var(--line-2);
  background:rgba(255,255,255,.045); color:var(--txt);
  font-family:inherit; font-size:13px; outline:none;
  transition:border-color .18s, background .18s, box-shadow .18s;
}
.fn-search input::placeholder{ color:#5B6981; }
.fn-search input:focus{ border-color:rgba(109,139,255,.5); background:rgba(109,139,255,.07); box-shadow:0 0 0 3px rgba(109,139,255,.12); }
.fn-search .ico{ position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:14px; opacity:.65; pointer-events:none; }
.fn-search .clr{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border-radius:50%; display:none; place-items:center;
  border:0; background:rgba(255,255,255,.1); color:var(--dim); cursor:pointer; font-size:12px;
}
.fn-search.has-val .clr{ display:grid; }
.fn-count{ font-size:11.5px; color:var(--dim-2); white-space:nowrap; }

.fn-group{ margin-bottom:24px; display:none; }
.fn-group.on{ display:block; animation:rise .32s var(--ease) both; }
.fn-groups{ display:block; }
.fn-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); gap:10px; }

/* 功能按钮：圆角、渐变悬停、按下回弹 */
.fn-btn, .fn{
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; gap:6px;
  padding:13px 12px; min-height:92px;
  border-radius:18px; text-align:left;
  border:1px solid var(--line);
  background:linear-gradient(158deg,rgba(255,255,255,.062),rgba(255,255,255,.014));
  color:var(--txt); cursor:pointer; font-family:inherit;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  transition:transform .18s var(--ease), border-color .2s, background .2s, box-shadow .22s;
  -webkit-tap-highlight-color:transparent;
}
.fn-btn::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(120px 80px at 82% -12%,rgba(109,139,255,.28),transparent 72%);
  opacity:0; transition:opacity .22s;
}
.fn-btn:hover, .fn:hover{
  transform:translateY(-3px);
  border-color:rgba(109,139,255,.46);
  background:linear-gradient(158deg,rgba(109,139,255,.16),rgba(34,211,238,.06));
  box-shadow:0 16px 34px rgba(60,86,190,.28);
}
.fn-btn:hover::after{ opacity:1; }
.fn-btn:active, .fn:active{ transform:translateY(-1px) scale(.972); }
.fn-btn:focus-visible{ outline:2px solid var(--accent-2); outline-offset:2px; }
.fn-btn.is-hit{ animation:fnHit .42s var(--ease); }
@keyframes fnHit{ 0%{ box-shadow:0 0 0 0 rgba(34,211,238,.55);} 100%{ box-shadow:0 0 0 14px rgba(34,211,238,0);} }
.fn-ico{
  width:34px; height:34px; flex:none;
  display:grid; place-items:center;
  font-size:17px; border-radius:11px;
  background:var(--grad-soft);
  border:1px solid rgba(109,139,255,.22);
}
.fn-name{ font-size:12.5px; font-weight:650; line-height:1.34; letter-spacing:.1px; }
.fn-cost{
  position:absolute; right:9px; top:9px; font-style:normal;
  font-size:10px; font-weight:700; color:#0B1020;
  padding:2px 7px; border-radius:99px;
  background:linear-gradient(135deg,#FFE59A,#FFC24D);
  box-shadow:0 3px 10px rgba(255,194,77,.3);
}
.fn-risk{ position:absolute; right:10px; bottom:9px; font-size:10px; color:var(--warn); opacity:.85; }
.fn-lock{
  position:absolute; right:9px; top:9px; font-size:10px;
  padding:2px 6px; border-radius:99px;
  background:rgba(251,191,36,.16); border:1px solid rgba(251,191,36,.3);
}
.fn-btn.disabled, .fn.disabled{ opacity:.42; }
.fn-btn.disabled:hover, .fn.disabled:hover{ transform:none; box-shadow:0 6px 18px rgba(0,0,0,.18); }
.fn-empty{ padding:38px 12px; text-align:center; color:var(--dim-2); font-size:13px; }

/* ---------------------------------------------------------- 投屏 */
.live-wrap{ display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); gap:16px; }
.live-stage{
  position:relative; border-radius:var(--r); overflow:hidden;
  background:#04060C; border:1px solid var(--line);
  min-height:320px; display:grid; place-items:center;
  touch-action:none;              /* 关键：画面上的手势不交给页面滚动 */
  -webkit-user-select:none; user-select:none;
  -webkit-touch-callout:none;
  overscroll-behavior:contain;
}
.live-stage.off{ opacity:.7; }
.live-screen{
  max-width:100%; max-height:78vh; display:block;
  touch-action:none;              /* 手机端没有这行，拖动就变成滚页面 → 手势全丢 */
  -webkit-user-select:none; user-select:none;
  -webkit-touch-callout:none;
  -webkit-user-drag:none;
  cursor:crosshair;
  image-rendering:-webkit-optimize-contrast;
}
.live-screen.busy{ cursor:progress; }
.live-placeholder{ color:var(--dim-2); text-align:center; padding:40px 20px; }
.live-placeholder .big{ font-size:40px; margin-bottom:8px; opacity:.6; }
.live-side{ display:flex; flex-direction:column; gap:12px; }
.live-stat{ display:flex; justify-content:space-between; font-size:12.5px; padding:8px 0; border-bottom:1px dashed var(--line); }
.live-stat b{ font-weight:650; }
.live-badge{ position:absolute; left:12px; top:12px; padding:4px 10px; border-radius:99px; font-size:11px; background:rgba(251,113,133,.2); color:#FFC2CB; border:1px solid rgba(251,113,133,.4); }
.live-touch-hint{ position:absolute; right:12px; bottom:12px; font-size:11px; color:var(--dim-2); background:rgba(0,0,0,.55); padding:4px 9px; border-radius:99px; opacity:0; transform:translateY(4px); transition:opacity .18s, transform .18s; pointer-events:none; }
.live-touch-hint.show{ opacity:1; transform:none; }
.touch-dot{
  position:absolute; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%;
  pointer-events:none; border:2px solid rgba(34,211,238,.85);
  background:radial-gradient(circle,rgba(34,211,238,.35),transparent 68%);
  animation:dotPulse .46s var(--ease) forwards;
}
@keyframes dotPulse{ from{ transform:scale(.4); opacity:1;} to{ transform:scale(1.35); opacity:0;} }
.ctl-row{ display:flex; gap:8px; flex-wrap:wrap; }
.ctl-row .btn{ flex:1; min-width:74px; }
.pad-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.pad-grid .btn{ padding:10px 0; font-size:15px; border-radius:14px; }
.live-mode-seg{
  display:flex; gap:4px; padding:4px; border-radius:99px;
  background:rgba(255,255,255,.05); border:1px solid var(--line);
}
.live-mode-seg .btn{ flex:1; border:0; background:transparent; border-radius:99px; min-height:34px; font-size:12px; }
.live-mode-seg .btn.btn-primary{ background:var(--grad); box-shadow:0 6px 16px rgba(109,139,255,.32); }
.live-q{ display:flex; gap:6px; flex-wrap:wrap; }
.live-q button{
  font-size:11px; padding:5px 10px; border-radius:99px; cursor:pointer; font-family:inherit;
  border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--dim);
}
.live-q button.on{ border-color:rgba(34,211,238,.45); background:rgba(34,211,238,.12); color:#A9F0FF; }

/* ---------------------------------------------------------- 列表 / 流水 */
.ledger{ display:flex; flex-direction:column; gap:2px; }
.ledger-row{
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:11px; font-size:12.5px;
  background:rgba(255,255,255,.02);
}
.ledger-row:nth-child(odd){ background:rgba(255,255,255,.04); }
.ledger-row .t{ color:var(--dim-2); font-family:ui-monospace,monospace; font-size:11px; flex:none; }
.ledger-row .r{ flex:1; color:var(--dim); }
.ledger-row .d{ font-weight:700; }
.ledger-row .d.plus{ color:var(--ok); }
.ledger-row .d.minus{ color:var(--bad); }

.kv{ display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px dashed var(--line); font-size:13px; flex-wrap:wrap; }
.kv:last-child{ border:0; }
.kv .k{ color:var(--dim-2); flex:0 0 auto; }
.kv .v{ font-weight:600; min-width:0; word-break:break-word; text-align:right; }

/* dl.kv 是多行「标签 / 值」表（设备资料、扩展信息），
   以前继承了上面那条 flex，12 个子项全挤一行，整页被撑宽到 800+ —— 手机端左右晃的元凶 */
dl.kv{
  display:grid; grid-template-columns:auto minmax(0,1fr);
  gap:9px 14px; padding:9px 0; margin:0;
  border-bottom:1px dashed var(--line);
  font-size:13px;
}
dl.kv:last-child{ border:0; }
dl.kv dt{ color:var(--dim-2); white-space:nowrap; }
dl.kv dd{ margin:0; text-align:right; min-width:0; word-break:break-word; }
dl.kv dd.mono{ font-size:12px; }
@media (max-width:560px){
  dl.kv{ grid-template-columns:1fr; gap:2px; padding:11px 0; }
  dl.kv dt{ font-size:11.5px; }
  dl.kv dd{ text-align:left; }
}

/* ---------------------------------------------------------- 图表 */
.chart-bars{
  display:flex; align-items:flex-end; gap:10px; height:184px;
  padding:14px 4px 0;
  border-bottom:1px solid var(--line);
}
.bar-col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; justify-content:flex-end; height:100%; min-width:0; }
.bar-wrap{ width:100%; display:flex; align-items:flex-end; justify-content:center; flex:1; min-height:0; }
.bar-wrap > i{
  display:block; width:58%; max-width:38px; min-height:6px;
  border-radius:10px 10px 4px 4px;
  background:linear-gradient(180deg,#8FB0FF,#6D8BFF 45%,#22D3EE);
  box-shadow:0 8px 22px rgba(109,139,255,.32);
  transition:height .5s var(--ease);
}
.bar-col:hover .bar-wrap > i{ filter:brightness(1.15); }
.bar-col > span{ font-size:10.5px; color:var(--dim-2); }
.bar-col > em{ font-style:normal; font-size:11px; color:var(--dim); }
.bar-wrap > div{ width:58%; max-width:38px; }

/* ---------------------------------------------------------- 首屏 / 落地页 */
.landing-body{ background:var(--bg); }
.landing{ position:relative; z-index:1; max-width:1180px; margin:0 auto; padding:0 22px 60px; }
.land-nav{ display:flex; align-items:center; gap:14px; padding:22px 0; }
.land-brand{ display:flex; align-items:center; gap:11px; font-weight:700; }
.land-brand-txt{ display:flex; flex-direction:column; }
.land-brand-txt b{ font-size:15px; }
.land-brand-txt i{ font-style:normal; font-size:10px; letter-spacing:2px; color:var(--dim-2); }
.hero-land{ text-align:center; padding:56px 0 30px; }
.hero-land h1{ font-size:clamp(30px,5vw,52px); line-height:1.12; letter-spacing:-.03em; }
.grad{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lead{ font-size:15px; color:var(--dim); max-width:640px; margin:16px auto 0; line-height:1.9; }
.hero-cta{ display:flex; gap:12px; justify-content:center; margin-top:26px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:18px; justify-content:center; margin-top:38px; flex-wrap:wrap; }
.hero-stats div{ padding:12px 20px; border-radius:16px; border:1px solid var(--line); background:rgba(255,255,255,.035); }
.hero-stats b{ display:block; font-size:22px; }
.hero-stats span{ font-size:11.5px; color:var(--dim-2); }
.landing-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; margin-top:26px; }
.feat{
  padding:20px; border-radius:var(--r);
  border:1px solid var(--line); background:var(--panel);
  backdrop-filter:blur(16px);
}
.feat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.feat .fi{ font-size:22px; margin-bottom:10px; }
.feat h3{ font-size:14.5px; margin-bottom:6px; }
.feat p{ margin:0; font-size:12.5px; color:var(--dim); line-height:1.8; }
.faq{ display:flex; flex-direction:column; gap:10px; }
.faq details{ padding:14px 18px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.03); }
.faq summary{ cursor:pointer; font-size:13.5px; font-weight:600; }
.faq p{ margin:10px 0 0; font-size:12.5px; color:var(--dim); line-height:1.85; }
.land-foot{ margin-top:50px; padding-top:22px; border-top:1px solid var(--line); font-size:11.5px; color:var(--dim-2); display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

/* ---------------------------------------------------------- 登录 / 注册 */
.auth-wrap{ min-height:100dvh; display:grid; place-items:center; padding:36px 18px; position:relative; z-index:1; }
.auth-card{
  width:100%; max-width:420px; padding:32px 30px;
  border-radius:26px; border:1px solid var(--line-2);
  background:var(--panel); backdrop-filter:blur(22px);
  box-shadow:var(--sh-2);
}
.auth-logo{
  width:56px; height:56px; margin:0 0 20px;
  display:grid; place-items:center;
  font-size:26px; border-radius:18px;
  background:var(--grad); box-shadow:var(--sh-glow);
}
.auth-card h1{ font-size:20px; margin-bottom:6px; }
.auth-card .sub{ margin:0 0 18px; font-size:12.5px; color:var(--dim-2); }
.auth-foot{ margin-top:18px; font-size:12px; color:var(--dim-2); text-align:center; }

/* ---------------------------------------------------------- 提示 / 弹层 */
.toast-inline{
  display:flex; align-items:center; gap:9px;
  padding:12px 16px; border-radius:14px; margin-bottom:14px;
  font-size:13px; border:1px solid var(--line-2);
  background:rgba(255,255,255,.05);
  animation:rise .4s var(--ease) both;
}
.toast-inline.is-ok{ background:rgba(52,211,153,.1); border-color:rgba(52,211,153,.3); color:#B6F5DC; }
.toast-inline.is-err{ background:rgba(251,113,133,.1); border-color:rgba(251,113,133,.32); color:#FFC9D1; }

.modal-mask{
  position:fixed; inset:0; z-index:120;
  display:grid; place-items:center;
  padding:20px;
  background:rgba(3,5,10,.78);
  /* 不用 backdrop-filter：手机浏览器里它会把弹层里的文字一起栅格化变糊 */
  overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.modal-mask[hidden]{ display:none; }
.modal{
  width:100%; max-width:480px; max-height:86dvh; overflow:auto;
  border-radius:24px; border:1px solid var(--line-2);
  background:linear-gradient(180deg,#141D31,#0B111E);
  box-shadow:0 30px 80px rgba(0,0,0,.62);
  animation:pop .28s var(--ease) both;
  isolation:isolate; transform:translateZ(0);
  -webkit-overflow-scrolling:touch;
  text-rendering:optimizeLegibility;
}
@keyframes pop{ from{ opacity:0; transform:translateY(10px) scale(.98);} to{ opacity:1; transform:none;} }
.modal-head{ display:flex; align-items:center; gap:12px; padding:20px 20px 14px; border-bottom:1px solid var(--line); }
.modal-ico{ font-size:20px; width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:var(--grad-soft); border:1px solid var(--line-2); }
.modal-head h3{ font-size:15px; }
.modal-head p{ margin:2px 0 0; font-size:12px; color:var(--dim-2); }
.modal-x{ margin-left:auto; width:32px; height:32px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--dim); cursor:pointer; }
.modal-body{ padding:18px 20px 20px; }
.modal-foot{ display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }
@media (max-width:560px){
  .modal-mask{ padding:0; align-items:flex-end; }
  .modal{ max-width:none; max-height:92dvh; border-radius:22px 22px 0 0; border-bottom:0; animation:sheetUp .3s var(--ease) both; }
  @keyframes sheetUp{ from{ transform:translateY(30px); opacity:.6;} to{ transform:none; opacity:1;} }
}

/* 右上角快捷面板（手机端顶栏「⋯」） */
.quick-btn{
  display:none; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:12px; flex:none;
  border:1px solid var(--line-2); background:rgba(255,255,255,.05);
  color:var(--txt); font-size:17px; cursor:pointer;
}
.quick-sheet{
  position:fixed; inset:0; z-index:130; display:none;
}
.quick-sheet.on{ display:block; }
.quick-sheet .qs-mask{ position:absolute; inset:0; background:rgba(2,4,9,.66); }
.quick-sheet .qs-body{
  position:absolute; right:10px; top:58px; width:min(280px,calc(100vw - 20px));
  border-radius:20px; border:1px solid var(--line-2);
  background:linear-gradient(180deg,#182138,#0C1322);
  box-shadow:0 24px 60px rgba(0,0,0,.6);
  padding:8px; animation:qsIn .2s var(--ease) both;
  isolation:isolate;
}
@keyframes qsIn{ from{ opacity:0; transform:translateY(-6px) scale(.97);} to{ opacity:1; transform:none;} }
.qs-head{ display:flex; align-items:center; gap:10px; padding:10px 10px 12px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.qs-head .av{ width:34px; height:34px; border-radius:11px; display:grid; place-items:center; background:var(--grad); font-size:15px; }
.qs-head b{ display:block; font-size:13.5px; }
.qs-head i{ font-style:normal; font-size:11px; color:var(--dim-2); }
.qs-it{
  display:flex; align-items:center; gap:11px; width:100%;
  padding:11px 12px; border-radius:13px; border:0; background:transparent;
  color:var(--txt); font-size:13px; font-family:inherit; text-align:left; cursor:pointer;
}
.qs-it:hover{ background:rgba(109,139,255,.13); }
.qs-it .i{ width:26px; height:26px; border-radius:9px; display:grid; place-items:center; background:rgba(255,255,255,.06); font-size:13px; }
.qs-it.danger{ color:#FFC2CB; }
.qs-sep{ height:1px; background:var(--line); margin:6px 8px; }

/* ---------------------------------------------------------- 建站/打包页 */
.build-tabs{ display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.build-tab{
  padding:10px 18px; border-radius:99px; cursor:pointer;
  border:1px solid var(--line); background:rgba(255,255,255,.035);
  color:var(--dim); font-size:13px; font-weight:600; font-family:inherit;
  transition:.18s;
}
.build-tab:hover{ color:var(--txt); }
.build-tab.is-on{ background:var(--grad); color:#fff; border:none; box-shadow:0 10px 26px rgba(109,139,255,.3); }
.build-pane{ display:none; }
.build-pane.is-on{ display:block; animation:rise .35s var(--ease) both; }

.page-hero{
  display:flex; gap:24px; align-items:center; flex-wrap:wrap;
  padding:24px 26px; margin-bottom:18px;
  border-radius:var(--r-lg);
  border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(109,139,255,.16),rgba(34,211,238,.06) 55%,transparent);
  box-shadow:var(--sh-2);
}
.page-hero-text h1{ font-size:24px; margin:8px 0 6px; letter-spacing:-.02em; }
.page-hero-text p{ margin:0; font-size:13px; color:var(--dim); max-width:620px; line-height:1.8; }
.page-hero-side{ margin-left:auto; display:flex; gap:10px; }

.icon-drop{ display:flex; gap:14px; align-items:center; }
.icon-preview{
  width:78px; height:78px; flex:none; border-radius:18px;
  display:grid; place-items:center; font-size:28px;
  border:1px dashed var(--line-2); background:rgba(255,255,255,.04);
  overflow:hidden;
}
.theme-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.theme-card{
  position:relative; cursor:pointer;
  padding:14px; border-radius:16px;
  border:1px solid var(--line); background:rgba(255,255,255,.03);
  display:flex; flex-direction:column; gap:6px;
  transition:.18s;
}
.theme-card input{ position:absolute; opacity:0; pointer-events:none; }
.theme-card:hover{ border-color:rgba(255,255,255,.2); }
.theme-card.is-on{ border-color:rgba(109,139,255,.55); background:rgba(109,139,255,.1); box-shadow:0 0 0 3px rgba(109,139,255,.12); }
.theme-swatch{ width:100%; height:26px; border-radius:8px; }
.theme-name{ font-size:12.5px; font-weight:650; }
.theme-desc{ font-size:11px; color:var(--dim-2); line-height:1.6; }
.note-strip{
  margin-top:16px; padding:13px 16px; border-radius:14px;
  background:rgba(251,191,36,.07); border:1px solid rgba(251,191,36,.22);
  font-size:12px; color:#E8D6A8; line-height:1.85;
}
.steps-list{ margin:0; padding-left:20px; font-size:13px; color:var(--dim); line-height:2.1; }
.steps{ display:flex; gap:14px; flex-wrap:wrap; }
.step{ flex:1; min-width:180px; }
.step-n{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700; background:var(--grad-soft); border:1px solid var(--line-2); margin-bottom:8px; }

/* 复制框 */
.copy-box{ display:flex; gap:8px; align-items:center; }
.copy-box .input{ font-family:ui-monospace,Menlo,monospace; font-size:12.5px; }
.copyable{ cursor:pointer; }
.copyable:hover{ color:var(--accent-2); }

/* 设备卡密页 */
.cards-hero{
  display:flex; gap:20px; align-items:center;
  padding:24px;
  border-radius:var(--r-lg);
  border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(255,217,138,.14),rgba(255,152,0,.05) 60%,transparent);
}
.cards-hero .num{ font-size:38px; font-weight:750; letter-spacing:-.03em; }
.cards-hero .num small{ font-size:14px; color:var(--dim); margin-left:4px; }
.points-hero{
  padding:24px; border-radius:var(--r-lg); border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(109,139,255,.16),rgba(34,211,238,.06) 60%,transparent);
}
.points-hero .num{ font-size:40px; font-weight:750; }

/* 风险 / 结果 */
.res{ font-family:ui-monospace,Menlo,monospace; font-size:12px; line-height:1.75; white-space:pre-wrap; word-break:break-word; max-height:320px; overflow:auto; background:rgba(0,0,0,.35); padding:12px 14px; border-radius:12px; border:1px solid var(--line); }
.res-txt{ font-size:12.5px; white-space:pre-wrap; }
.file-link{ color:var(--accent-2); text-decoration:underline; text-underline-offset:3px; }

/* 顶部 tabbar（手机） */
.tabbar{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:rgba(8,12,21,.94);
  backdrop-filter:blur(18px);
  border-top:1px solid var(--line);
  padding:8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  font-size:10.5px; color:var(--dim-2); padding:5px 2px; border-radius:12px;
}
.tabbar a span{ font-size:16px; }
.tabbar a.on{ color:var(--accent-2); }

/* 遮罩 */
.scrim{
  position:fixed; inset:0; z-index:55; display:none;
  background:rgba(3,5,10,.62);
  backdrop-filter:blur(3px);
}
body.side-open .scrim{ display:block; }
body.side-open{ overflow:hidden; }

/* 其它零碎 */
.top-right .pad-grid{ display:flex; gap:6px; }
.row-check{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--dim); }
.res-txt a{ color:var(--accent-2); }

/* ---------------------------------------------------------- 响应式 */
@media (max-width:1180px){
  .live-wrap{ grid-template-columns:1fr; }
}

@media (max-width:980px){
  :root{ --side-w:0px; }
  .shell{ grid-template-columns:1fr; }
  .side{
    position:fixed; left:0; top:0; width:278px;
    transform:translateX(-102%);
    transition:transform .28s var(--ease);
    box-shadow:0 0 60px rgba(0,0,0,.6);
    /* 手机上不叠毛玻璃：糊的是自己的文字 */
    background:linear-gradient(180deg,#0B1120,#070B14);
    backdrop-filter:none; -webkit-backdrop-filter:none;
    z-index:70;
  }
  body.side-open .side{ transform:none; }
  .burger{ display:inline-flex; }
  .quick-btn{ display:inline-flex; }
  .content{ padding:18px 14px 26px; }
  .topbar{ padding:10px 12px; background:rgba(6,9,17,.96); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .page-title{ font-size:15.5px; }
  .live-clock{ display:none; }
  .whoami{ display:none; }
  .tabbar{ display:flex; }
  .mainarea{ padding-bottom:70px; }
  .footbar{ display:none; }
  .page-hero{ padding:18px; }
  .page-hero-side{ margin-left:0; width:100%; justify-content:space-between; }
  /* 卡片/弹窗在手机上全部用实色，避免滚动时糊成一片 */
  .card, .feat, .auth-card{ backdrop-filter:none; -webkit-backdrop-filter:none; background:rgba(15,21,36,.94); }
  .fn-bar{ top:58px; }
  .scrim{ backdrop-filter:none; -webkit-backdrop-filter:none; background:rgba(3,5,10,.72); }
}

@media (max-width:560px){
  body{ font-size:14.5px; }
  .card{ padding:16px; border-radius:20px; }
  .stat .v{ font-size:24px; }
  .stat-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .fn-grid{ grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:8px; }
  .fn-btn, .fn{ min-height:96px; border-radius:18px; padding:12px 10px; }
  .fn-name{ font-size:12px; }
  .fn-ico{ width:32px; height:32px; font-size:16px; }
  .theme-grid{ grid-template-columns:repeat(2,1fr); }
  .hero-land{ padding:34px 0 18px; }
  .btn{ padding:9px 14px; }
  .welcome-bar{ flex-direction:column; align-items:flex-start; }
  .live-screen{ max-height:66vh; }
  .live-stage{ min-height:200px; }
  .dev-hero-right{ width:100%; }
  .dev-hero-right .btn{ flex:1; justify-content:center; text-align:center; }
}

/* 顶部欢迎条（仪表盘用） */
.welcome-bar{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  padding:22px 24px; margin-bottom:18px;
  border-radius:var(--r-lg);
  border:1px solid var(--line);
  background:
    radial-gradient(600px 200px at 8% 0%, rgba(109,139,255,.22), transparent 70%),
    linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.01));
  box-shadow:var(--sh-2);
}
.welcome-bar h2{ font-size:20px; letter-spacing:-.02em; }
.welcome-bar p{ margin:4px 0 0; font-size:12.5px; color:var(--dim); }
.welcome-bar .wb-actions{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }

/* 进度条 */
.progress{ height:8px; border-radius:99px; background:rgba(255,255,255,.08); overflow:hidden; }
.progress > i{ display:block; height:100%; border-radius:99px; background:var(--grad); transition:width .6s var(--ease); }

/* 骨架 */
.skeleton{ background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.11),rgba(255,255,255,.05)); background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:10px; }
@keyframes shimmer{ from{ background-position:200% 0;} to{ background-position:-200% 0;} }

/* 给旧页面里 inline 的 rgba 白底补一点层次 */
.card .card{ background:rgba(255,255,255,.03); box-shadow:none; }

/* ==========================================================================
   v7 视觉层 · 「深空 · 极光」
   --------------------------------------------------------------------------
   这一层只做「更好看」和「新组件」，不改旧类名的结构，老页面不会错位。
   新东西：应用管理 / 文件管理 / 选设备 / 打包方式选择 / 全局微交互。
   ========================================================================== */

:root{
  --v7-line:rgba(255,255,255,.085);
  --v7-glow:0 0 0 1px rgba(109,139,255,.22), 0 24px 60px -28px rgba(109,139,255,.55);
  --v7-card:linear-gradient(180deg,rgba(21,29,48,.82),rgba(12,18,32,.86));
  --v7-hair:linear-gradient(120deg,rgba(109,139,255,.55),rgba(34,211,238,.35) 40%,rgba(167,139,250,.15) 70%,transparent);
}

/* 全局细节 */
body{ letter-spacing:.005em; }
h1,h2,h3{ letter-spacing:-.022em; }
.page-title{ letter-spacing:-.03em; }
::selection{ background:rgba(109,139,255,.4); color:#fff; }
:focus-visible{ outline:2px solid rgba(109,139,255,.72); outline-offset:2px; border-radius:10px; }

/* 卡片：加一层会呼吸的渐变发丝边 */
.card{
  background:var(--v7-card);
  border:1px solid var(--v7-line);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset, 0 26px 60px -34px rgba(0,0,0,.9);
  transition:box-shadow .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}
.card:hover{
  border-color:rgba(255,255,255,.14);
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset, 0 34px 70px -36px rgba(0,0,0,.95);
}
.card-head h2{ font-size:16px; }

/* 侧边栏：当前项变成一条会发光的胶囊 */
.nav-it.on{
  background:linear-gradient(120deg,rgba(109,139,255,.22),rgba(34,211,238,.1));
  border:1px solid rgba(109,139,255,.35);
  box-shadow:0 12px 30px -18px rgba(109,139,255,.8), 0 0 0 1px rgba(109,139,255,.08) inset;
}
.nav-it.on::after{
  content:""; position:absolute; left:-2px; top:22%; bottom:22%; width:3px; border-radius:99px;
  background:linear-gradient(180deg,#8FA6FF,#22D3EE);
  box-shadow:0 0 12px rgba(109,139,255,.9);
}

/* 表格更利落 */
.tbl thead th{
  position:sticky; top:0; z-index:2;
  background:linear-gradient(180deg,#0E1626,#0B1220);
  backdrop-filter:blur(8px);
}
.tbl tbody tr{ transition:background .18s; }
.tbl tbody tr:hover{ background:rgba(109,139,255,.06); }

/* ------------------------------------------------------------------ 通用小件 */

.chip{
  display:inline-flex; align-items:center; gap:4px;
  padding:1px 8px; border-radius:99px; font-size:10.5px; font-weight:650;
  background:rgba(109,139,255,.16); border:1px solid rgba(109,139,255,.3); color:#C5D2FF;
}
.chip-dim{ background:rgba(255,255,255,.06); border-color:var(--line-2); color:var(--dim); }
.txt-ok{ color:#7DF0C2; }
.txt-dim{ color:var(--dim-2); }

.page-hero{
  position:relative; overflow:hidden;
  display:flex; align-items:center; gap:22px; flex-wrap:wrap;
  padding:26px 28px; margin-bottom:18px;
  border-radius:var(--r-lg);
  border:1px solid var(--v7-line);
  background:
    radial-gradient(700px 240px at 0% -20%, rgba(109,139,255,.22), transparent 65%),
    radial-gradient(500px 220px at 100% 120%, rgba(34,211,238,.14), transparent 60%),
    linear-gradient(180deg, rgba(22,30,50,.85), rgba(12,18,32,.9));
  box-shadow:0 30px 70px -40px rgba(0,0,0,.95);
}
.page-hero::after{
  content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border-radius:50%;
  background:radial-gradient(circle,rgba(109,139,255,.28),transparent 68%); filter:blur(12px);
  pointer-events:none;
}
.page-hero-text h1{
  font-size:26px; letter-spacing:-.03em;
  background:linear-gradient(100deg,#FFFFFF,#CBD8FF 55%,#8FE9FF);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-hero-text p{ margin:8px 0 0; font-size:13px; color:var(--dim); max-width:62ch; line-height:1.8; }
.page-hero-side{ margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }

/* ------------------------------------------------------------------ 选设备 */

.pick-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.pick-card{
  display:flex; align-items:center; gap:14px;
  padding:16px 18px; border-radius:20px;
  border:1px solid var(--v7-line);
  background:var(--v7-card);
  transition:transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.pick-card:hover{
  transform:translateY(-3px);
  border-color:rgba(109,139,255,.42);
  box-shadow:0 26px 54px -30px rgba(109,139,255,.65);
}
.pick-av{
  width:46px; height:46px; flex:none; display:grid; place-items:center;
  border-radius:15px; font-weight:700; font-size:18px;
  background:rgba(255,255,255,.07); border:1px solid var(--line-2); color:var(--dim);
}
.pick-av.on{ background:linear-gradient(135deg,rgba(52,211,153,.3),rgba(34,211,238,.16)); color:#C7FFE9; border-color:rgba(52,211,153,.4); }
.pick-txt{ display:flex; flex-direction:column; min-width:0; flex:1; }
.pick-txt b{ font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pick-txt i{ font-style:normal; font-size:11.5px; color:var(--dim-2); margin-top:3px; }
.pick-go{ color:var(--dim-2); font-size:16px; }

/* ------------------------------------------------------------------ 设备条 */

.mg-dev{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 18px; margin-bottom:16px;
  border-radius:20px; border:1px solid var(--v7-line);
  background:linear-gradient(120deg,rgba(20,28,46,.9),rgba(12,18,32,.9));
}
.mg-dev-av{
  width:42px; height:42px; display:grid; place-items:center; border-radius:14px;
  background:rgba(255,255,255,.06); border:1px solid var(--line-2); font-weight:700; color:var(--dim);
}
.mg-dev-av.on{ background:linear-gradient(135deg,rgba(52,211,153,.28),rgba(34,211,238,.14)); color:#C7FFE9; border-color:rgba(52,211,153,.38); }
.mg-dev-txt{ display:flex; flex-direction:column; min-width:0; }
.mg-dev-txt b{ font-size:15px; }
.mg-dev-txt i{ font-style:normal; font-size:11.5px; color:var(--dim-2); margin-top:2px; }
.mg-dev-links{ margin-left:auto; display:flex; gap:6px; flex-wrap:wrap; }

/* ------------------------------------------------------------------ 头部

   mg-hero / toolbar / chips / search / busy / toast / empty */

.mg-hero{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  padding:22px 24px; margin-bottom:16px;
  border-radius:24px; border:1px solid var(--v7-line);
  background:
    radial-gradient(620px 200px at 0% 0%, rgba(109,139,255,.2), transparent 62%),
    radial-gradient(520px 200px at 100% 100%, rgba(34,211,238,.13), transparent 60%),
    linear-gradient(180deg,rgba(21,29,48,.86),rgba(11,17,30,.9));
  box-shadow:0 30px 70px -42px rgba(0,0,0,.95);
}
.mg-hero-l{ display:flex; align-items:center; gap:16px; min-width:0; }
.mg-hero-ico{
  width:54px; height:54px; flex:none; display:grid; place-items:center; font-size:24px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(109,139,255,.28),rgba(34,211,238,.16));
  border:1px solid rgba(109,139,255,.34);
  box-shadow:0 16px 36px -20px rgba(109,139,255,.9);
}
.mg-hero h1{
  font-size:23px; letter-spacing:-.03em;
  background:linear-gradient(100deg,#fff,#CFDBFF 60%,#9BEBFF);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.mg-hero p{ margin:6px 0 0; font-size:12.5px; color:var(--dim); line-height:1.75; max-width:70ch; }
.mg-hero-stats{ margin-left:auto; display:flex; gap:10px; }
.mg-hero-stats > div{
  min-width:78px; padding:10px 14px; border-radius:16px; text-align:center;
  background:rgba(255,255,255,.045); border:1px solid var(--v7-line);
}
.mg-hero-stats b{ display:block; font-size:20px; letter-spacing:-.02em; }
.mg-hero-stats span{ font-size:10.5px; color:var(--dim-2); letter-spacing:.08em; }

.mg-toolbar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:12px 14px; margin-bottom:14px;
  border-radius:18px; border:1px solid var(--v7-line);
  background:rgba(13,20,34,.72);
  position:sticky; top:8px; z-index:20;
  backdrop-filter:blur(14px);
}
.mg-search{
  display:flex; align-items:center; gap:8px; flex:1; min-width:180px;
  padding:0 14px; height:42px; border-radius:999px;
  background:rgba(255,255,255,.05); border:1px solid var(--line-2);
  transition:border-color .2s, background .2s;
}
.mg-search:focus-within{ border-color:rgba(109,139,255,.55); background:rgba(109,139,255,.08); }
.mg-search span{ font-size:13px; opacity:.7; }
.mg-search input{
  flex:1; min-width:0; background:none; border:none; outline:none; color:var(--txt);
  font-size:13.5px; font-family:inherit;
}
.mg-chips{ display:flex; gap:6px; overflow-x:auto; max-width:100%; padding:2px; scrollbar-width:none; }
.mg-chips::-webkit-scrollbar{ display:none; }
.mg-chips button{
  flex:none; padding:8px 14px; border-radius:999px; cursor:pointer;
  background:rgba(255,255,255,.05); border:1px solid var(--line-2); color:var(--dim);
  font-size:12.5px; font-weight:600; font-family:inherit; white-space:nowrap;
  transition:all .18s var(--ease);
}
.mg-chips button:hover{ color:var(--txt); border-color:rgba(255,255,255,.26); }
.mg-chips button.is-on{
  background:linear-gradient(120deg,rgba(109,139,255,.3),rgba(34,211,238,.16));
  border-color:rgba(109,139,255,.5); color:#EAF0FF;
  box-shadow:0 10px 26px -16px rgba(109,139,255,.9);
}
.mg-tools{ display:flex; gap:6px; margin-left:auto; }

.mg-busy{
  display:flex; align-items:center; gap:10px;
  padding:10px 16px; margin-bottom:12px; border-radius:14px;
  font-size:12.5px; color:#CFDBFF;
  background:rgba(109,139,255,.12); border:1px solid rgba(109,139,255,.3);
}
.mg-spin{
  width:14px; height:14px; border-radius:50%;
  border:2px solid rgba(255,255,255,.22); border-top-color:#8FA6FF;
  animation:mgspin .8s linear infinite;
}
@keyframes mgspin{ to{ transform:rotate(360deg);} }

.mg-toast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%,24px);
  padding:12px 20px; border-radius:14px; max-width:min(560px,92vw);
  background:rgba(18,26,44,.97); border:1px solid rgba(109,139,255,.4);
  color:#E7EEFF; font-size:13px; box-shadow:0 26px 60px -20px rgba(0,0,0,.9);
  opacity:0; pointer-events:none; transition:all .26s var(--ease); z-index:200;
}
.mg-toast.is-on{ opacity:1; transform:translate(-50%,0); }
.mg-toast.is-err{ border-color:rgba(251,113,133,.55); background:rgba(46,18,26,.97); color:#FFD5DB; }
.mg-toast.is-ok{ border-color:rgba(52,211,153,.5); }

.mg-empty{ text-align:center; padding:56px 20px; color:var(--dim); }
.mg-empty-ico{ font-size:40px; margin-bottom:10px; opacity:.85; }
.mg-empty b{ display:block; font-size:15px; color:var(--txt); margin-bottom:6px; }
.mg-empty p{ margin:0; font-size:12.5px; line-height:1.7; }

.mg-skeleton{
  height:64px; border-radius:16px; margin-bottom:8px;
  background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.1),rgba(255,255,255,.04));
  background-size:200% 100%; animation:shimmer 1.3s infinite;
}
.mg-more{ text-align:center; padding:14px 0 4px; }

/* ------------------------------------------------------------------ 应用列表 */

.app-list{ display:flex; flex-direction:column; gap:8px; }

.app-row{
  display:flex; align-items:center; gap:14px;
  padding:12px 16px; border-radius:18px;
  border:1px solid var(--v7-line);
  background:linear-gradient(180deg,rgba(20,28,46,.72),rgba(13,19,33,.78));
  transition:transform .16s var(--ease), border-color .18s, background .18s;
  animation:rise .34s var(--ease) both;
}
.app-row:hover{
  transform:translateY(-2px);
  border-color:rgba(109,139,255,.36);
  background:linear-gradient(180deg,rgba(26,36,58,.86),rgba(15,22,38,.88));
}
.app-row.is-busy{ opacity:.6; pointer-events:none; }

.app-ico{
  width:46px; height:46px; flex:none; border-radius:14px; overflow:hidden;
  display:grid; place-items:center;
  background:rgba(255,255,255,.06); border:1px solid var(--line-2);
}
.app-ico img{ width:100%; height:100%; object-fit:cover; display:block; }
.app-ico-ph{ font-size:17px; font-weight:700; color:#B9C7E6; }

.app-main{ min-width:0; flex:1; }
.app-name{
  display:flex; align-items:center; gap:8px;
  font-size:14.5px; font-weight:650; letter-spacing:-.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.app-pkg{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:11.5px; color:#8FA0BE; margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  cursor:copy;
}
.app-pkg:hover{ color:#A9C0FF; }
.app-meta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:4px; font-size:11px; color:var(--dim-2); }

.app-actions{ display:flex; gap:8px; flex:none; }

/* ------------------------------------------------------------------ 文件管理 */

.fm-shell{ display:grid; grid-template-columns:236px minmax(0,1fr); gap:16px; align-items:start; overflow:hidden; }

.fm-side{
  min-width:0;
  border-radius:20px; border:1px solid var(--v7-line);
  background:linear-gradient(180deg,rgba(20,28,46,.78),rgba(12,18,32,.85));
  padding:14px 10px;
  position:sticky; top:10px;
}
.fm-side-title{
  font-size:10.5px; letter-spacing:1.6px; text-transform:uppercase;
  color:var(--dim-2); padding:4px 10px 10px; font-weight:700;
}
.fm-roots{ display:flex; flex-direction:column; gap:3px; max-height:60vh; overflow-y:auto; }
.fm-root{
  display:flex; align-items:center; gap:10px; width:100%;
  padding:9px 10px; border-radius:12px; cursor:pointer; text-align:left;
  background:none; border:1px solid transparent; color:var(--dim);
  font-family:inherit; transition:all .16s var(--ease);
}
.fm-root:hover{ background:rgba(255,255,255,.06); color:var(--txt); }
.fm-root.on{
  background:linear-gradient(120deg,rgba(109,139,255,.22),rgba(34,211,238,.1));
  border-color:rgba(109,139,255,.34); color:#E9F0FF;
}
.fm-root-ico{ font-size:15px; width:20px; text-align:center; }
.fm-root-txt{ display:flex; flex-direction:column; min-width:0; }
.fm-root-txt b{ font-size:12.5px; font-weight:600; }
.fm-root-txt i{
  font-style:normal; font-size:10px; color:var(--dim-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; direction:rtl; text-align:left;
}

.fm-main{ min-width:0; }
.fm-toolbar{ top:8px; }
.fm-path{
  flex:1; min-width:0; font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:12px; color:#AFBEDD; padding:9px 14px; border-radius:999px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
  overflow-x:auto; white-space:nowrap; scrollbar-width:none;
}
.fm-path::-webkit-scrollbar{ display:none; }
.fm-toggle{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--dim); cursor:pointer; }
.fm-toggle input{ accent-color:#6D8BFF; }

.file-list{ display:flex; flex-direction:column; gap:6px; }

.file-row{
  display:flex; align-items:center; gap:12px;
  padding:11px 15px; border-radius:16px;
  border:1px solid var(--v7-line);
  background:linear-gradient(180deg,rgba(19,27,45,.66),rgba(12,18,32,.74));
  transition:transform .15s var(--ease), border-color .18s, background .18s;
  animation:rise .3s var(--ease) both;
}
.file-row:hover{
  transform:translateY(-1px);
  border-color:rgba(109,139,255,.34);
  background:linear-gradient(180deg,rgba(25,35,56,.82),rgba(14,21,36,.86));
}
.file-row.is-dir{ cursor:pointer; }
.file-row.is-busy{ opacity:.55; pointer-events:none; }

.file-ico{
  width:40px; height:40px; flex:none; display:grid; place-items:center;
  font-size:18px; border-radius:12px;
  background:rgba(255,255,255,.05); border:1px solid var(--line-2);
}
.file-main{ min-width:0; flex:1; }
.file-name{
  display:block; font-size:13.5px; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.file-meta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:3px; font-size:11px; color:var(--dim-2); }
.file-actions{ display:flex; gap:6px; flex:none; }

/* 预览弹层 */
.fm-modal{ position:fixed; inset:0; z-index:220; display:flex; align-items:center; justify-content:center; padding:18px; }
.fm-modal-mask{ position:absolute; inset:0; background:rgba(4,7,14,.82); }
.fm-modal-card{
  position:relative; width:min(860px,100%); max-height:88vh; display:flex; flex-direction:column;
  border-radius:22px; border:1px solid rgba(109,139,255,.3);
  background:linear-gradient(180deg,#111a2c,#0A1120);
  box-shadow:0 40px 100px -30px rgba(0,0,0,.95);
  animation:rise .3s var(--ease) both; overflow:hidden;
}
.fm-modal-head{
  display:flex; align-items:center; gap:10px; padding:14px 18px;
  border-bottom:1px solid var(--line);
}
.fm-modal-head b{ flex:1; min-width:0; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fm-modal-body{ padding:16px 18px; overflow:auto; min-height:120px; }
.fm-modal-foot{ display:flex; gap:8px; padding:12px 18px; border-top:1px solid var(--line); flex-wrap:wrap; }
.fm-preview-img{ text-align:center; }
.fm-preview-img img{ max-width:100%; max-height:62vh; border-radius:14px; box-shadow:0 20px 50px -20px #000; }
.fm-preview-txt{
  margin:0; padding:14px; border-radius:14px; max-height:58vh; overflow:auto;
  background:rgba(0,0,0,.32); border:1px solid var(--line);
  font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12px; line-height:1.7;
  white-space:pre-wrap; word-break:break-word; color:#D4DEF3;
}

/* 顶部小卡片 */
.mini-stat{
  min-width:76px; padding:10px 14px; border-radius:16px; text-align:center;
  background:rgba(255,255,255,.045); border:1px solid var(--v7-line);
}
.mini-stat b{ display:block; font-size:19px; }
.mini-stat span{ font-size:10.5px; color:var(--dim-2); letter-spacing:.1em; }

/* ------------------------------------------------------------------ 打包方式选择 */

.build-type{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:4px 0 6px; }
.build-type label{
  position:relative; display:flex; gap:12px; padding:16px 18px;
  border-radius:18px; cursor:pointer;
  border:1px solid var(--v7-line); background:rgba(255,255,255,.035);
  transition:all .2s var(--ease);
}
.build-type label:hover{ border-color:rgba(109,139,255,.4); transform:translateY(-2px); }
.build-type input{ position:absolute; opacity:0; pointer-events:none; }
.build-type .bt-ico{ font-size:22px; line-height:1.2; }
.build-type b{ display:block; font-size:14px; margin-bottom:3px; }
.build-type i{ font-style:normal; font-size:11.5px; color:var(--dim-2); line-height:1.65; display:block; }
.build-type label.is-on{
  border-color:rgba(109,139,255,.6);
  background:linear-gradient(135deg,rgba(109,139,255,.18),rgba(34,211,238,.08));
  box-shadow:0 20px 40px -26px rgba(109,139,255,.9);
}
.build-type label.is-on::after{
  content:"✓"; position:absolute; right:14px; top:12px;
  width:20px; height:20px; border-radius:50%; display:grid; place-items:center;
  font-size:11px; color:#fff; background:var(--grad);
}

/* 加固说明条 */
.armor-note{
  display:flex; gap:10px; padding:12px 16px; margin-top:10px;
  border-radius:14px; font-size:12px; line-height:1.75;
  background:rgba(52,211,153,.08); border:1px solid rgba(52,211,153,.26); color:#BDF3DD;
}

/* ------------------------------------------------------------------ 响应式 */

@media (max-width:980px){
  /* 手机上关掉所有毛玻璃：老问题，自己的字会被栅格化糊掉 */
  .card,.side,.mg-toolbar,.fm-side,.page-hero,.welcome-bar{
    backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  }
  .mg-toolbar{ position:static; }
  .fm-shell{ grid-template-columns:minmax(0,1fr); }
  .fm-side{ position:static; min-width:0; }
  .fm-main{ min-width:0; }
  .fm-roots{ flex-direction:row; overflow-x:auto; max-height:none; }
  .fm-root{ min-width:150px; }
  .mg-hero{ padding:18px; }
  .mg-hero-stats{ margin-left:0; width:100%; justify-content:space-between; }
  .mg-hero-stats > div{ flex:1; }
  .build-type{ grid-template-columns:1fr; }
  .page-hero{ padding:20px; }
  .page-hero-text h1{ font-size:21px; }
}

@media (max-width:640px){
  .app-row{ flex-wrap:wrap; padding:12px; }
  .app-actions{ width:100%; }
  .app-actions .btn{ flex:1; }
  .file-row{ flex-wrap:wrap; padding:11px 12px; }
  .file-actions{ width:100%; }
  .file-actions .btn{ flex:1; min-height:34px; }
  .fm-modal-card{ max-height:92vh; border-radius:18px; }
  .mg-hero-ico{ width:46px; height:46px; font-size:20px; }
  .mg-hero h1{ font-size:20px; }
}

/* v7：这些是「用 JS 切换 hidden」的块，display:flex 会盖掉浏览器默认的 [hidden]，必须显式关掉 */
.mg-busy[hidden],.mg-empty[hidden],.mg-more[hidden],.fm-modal[hidden],
.armor-note[hidden],.build-type[hidden],.mg-toast[hidden]{ display:none !important; }

/* ===== v7.3 图形验证码 ===== */
.cap-field{ margin-bottom:15px; }
.cap-row{ display:flex; gap:10px; align-items:stretch; }
.cap-row .cap-input{
  flex:1 1 auto; min-width:0; letter-spacing:.32em; font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:17px; text-align:center; text-transform:uppercase; padding-left:14px; padding-right:6px;
}
.cap-img{
  flex:0 0 148px; width:148px; height:50px; border-radius:10px; cursor:pointer;
  border:1px solid rgba(120,150,210,.32); background:#f7f9fd; object-fit:cover;
  transition:filter .15s ease, transform .12s ease;
}
.cap-img:hover{ filter:brightness(1.04); }
.cap-img:active{ transform:scale(.985); }
.cap-tip{ font-size:11.5px; color:var(--dim,#7A88A3); margin-top:7px; opacity:.85; }
@media (max-width:400px){
  .cap-row{ gap:8px; }
  .cap-img{ flex-basis:126px; width:126px; height:46px; }
}


/* ================= v7.6 App 公告弹窗（用户端） ================= */
.sh-notice-mask{ z-index:400; }
.sh-notice{ max-width:460px; }
.sh-notice .modal-head{ align-items:flex-start; }
.sh-notice .modal-head h3{ font-size:16px; }
.sh-notice-txt{
  font-size:13.5px; line-height:1.85; color:var(--dim);
  max-height:46dvh; overflow:auto; white-space:pre-wrap; word-break:break-word;
}
.sh-notice-cb{
  display:flex; align-items:center; gap:9px; margin-top:18px;
  font-size:13px; color:var(--dim); cursor:pointer; user-select:none;
}
.sh-notice-cb input{
  appearance:none; -webkit-appearance:none; margin:0;
  width:19px; height:19px; flex:0 0 19px; border-radius:6px;
  border:1px solid var(--line-2); background:rgba(255,255,255,.04);
  position:relative; cursor:pointer; transition:.16s var(--ease);
}
.sh-notice-cb input:checked{ background:var(--grad); border-color:transparent; }
.sh-notice-cb input:checked::after{
  content:""; position:absolute; left:6px; top:2.5px;
  width:5px; height:10px; border:2px solid #fff; border-top:0; border-left:0;
  transform:rotate(42deg);
}
html.sh-notice-open, html.sh-notice-open body{ overflow:hidden; }

/* ==================================================================
 * v7.7 · 人机验证（图形验证码 / 滑动拼图）
 * ================================================================== */
.human{ margin-top:2px; }
.human-tabs{
  display:flex; gap:6px; margin:2px 0 10px; padding:4px;
  background:rgba(255,255,255,.035); border:1px solid var(--line); border-radius:12px;
}
.human-tab{
  flex:1 1 auto; appearance:none; cursor:pointer; border:0; border-radius:9px;
  background:transparent; color:var(--dim,#7A88A3); font-size:12.5px; font-weight:600;
  padding:8px 10px; transition:background .15s ease, color .15s ease;
  font-family:inherit;
}
.human-tab:hover{ color:#cfd9ee; }
.human-tab.is-on{
  background:linear-gradient(135deg,rgba(109,139,255,.24),rgba(155,123,255,.20));
  color:#eaf0ff; box-shadow:inset 0 0 0 1px rgba(140,165,255,.35);
}
.human-pane[hidden]{ display:none !important; }

/* 滑块舞台 */
.sl-stage{
  position:relative; width:100%; max-width:320px; overflow:hidden;
  border-radius:12px; border:1px solid rgba(120,150,210,.30);
  background:#0a1120; line-height:0; user-select:none; -webkit-user-select:none;
  touch-action:none;
}
.sl-stage .sl-bg{ width:100%; height:auto; display:block; }
.sl-stage .sl-piece{
  position:absolute; left:0; top:0; width:14.375%; height:auto;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.45)); pointer-events:none;
}

/* 滑块条 */
.sl-bar{
  position:relative; width:100%; max-width:320px; height:44px; margin-top:12px;
  border-radius:12px; background:rgba(255,255,255,.05);
  border:1px solid var(--line-2); overflow:hidden; touch-action:none;
  user-select:none; -webkit-user-select:none;
}
.sl-bar .sl-fill{
  position:absolute; left:0; top:0; bottom:0; width:0;
  background:linear-gradient(90deg,rgba(109,139,255,.35),rgba(155,123,255,.28));
}
.sl-bar .sl-thumb{
  position:absolute; left:0; top:0; width:44px; height:42px;
  display:flex; align-items:center; justify-content:center;
  border-radius:11px; cursor:grab;
  background:linear-gradient(135deg,#8AA6FF,#A98CFF); color:#0b1020;
  font-size:17px; font-weight:800; box-shadow:0 4px 14px rgba(109,139,255,.45);
  transition:box-shadow .15s ease, background .15s ease;
  z-index:2;
}
.sl-bar .sl-thumb.is-drag{ cursor:grabbing; box-shadow:0 6px 20px rgba(109,139,255,.7); }
.sl-bar .sl-tip{
  position:absolute; left:0; right:0; top:0; bottom:0;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; color:var(--dim,#7A88A3); pointer-events:none; z-index:1;
}
.sl-reload{
  display:inline-block; margin-top:8px; font-size:11.5px; color:#8ea2c8;
  text-decoration:none; border-bottom:1px dashed rgba(142,162,200,.45);
}
.sl-reload:hover{ color:#c3d2ef; }
