:root{
  --bg:#070a12; --panel:#0c1020; --card:#0f1730;
  --text:#eef2ff; --muted:rgba(238,242,255,.72); --muted2:rgba(238,242,255,.56);
  --line:rgba(255,255,255,.10); --line2:rgba(255,255,255,.16);
  --shadow:0 22px 80px rgba(0,0,0,.55);
  --r:18px; --good:#1fe4a8; --warn:#ffd36a; --bad:#ff6b7a;
  --accent:#7c5cff; --accent2:#25c2ff; --max:1240px;
}

*{box-sizing:border-box}
html,body{height:auto}
body{
  margin:0; color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC","Microsoft YaHei";
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(37,194,255,.14), transparent 55%),
    radial-gradient(900px 520px at 60% 110%, rgba(31,228,168,.10), transparent 55%),
    var(--bg);
  padding:18px 12px 44px;
  overflow-x:hidden;
}
.wrap{max-width:var(--max); margin:0 auto;}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;}

.top{
  border:1px solid var(--line); border-radius:var(--r);
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(15,23,48,.86), rgba(10,16,34,.86));
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{display:flex; align-items:center; gap:12px; min-width:0;}
.logo{
  width:40px; height:40px; border-radius:14px;
  background: radial-gradient(14px 14px at 35% 35%, rgba(255,255,255,.35), transparent 60%),
              linear-gradient(135deg, rgba(124,92,255,.95), rgba(37,194,255,.75));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(124,92,255,.18);
  flex:0 0 auto;
}
.h1{font-weight:900; letter-spacing:.2px; font-size:16px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.sub{margin-top:4px; font-size:12px; color:var(--muted); line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

.pill{
  display:inline-flex; align-items:center; gap:8px; white-space:nowrap;
  padding:8px 10px; border-radius:999px; border:1px solid var(--line);
  background: rgba(255,255,255,.04); font-size:12px; color:var(--muted);
}
.dot{width:8px; height:8px; border-radius:999px; background:var(--warn);}
.dot.good{background:var(--good);}
.dot.bad{background:var(--bad);}

.egNav{
  margin-top:10px;
  display:flex; flex-wrap:wrap; gap:10px;
}
.egBtn{
  cursor:pointer; border:1px solid var(--line);
  background: rgba(255,255,255,.06); color:var(--text);
  padding:10px 12px; border-radius:14px; font-weight:850; font-size:13px;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.egBtn:hover{background: rgba(255,255,255,.09); border-color: var(--line2);}
.egBtn:active{transform: translateY(1px);}
.egBtnPrimary{
  background: linear-gradient(180deg, rgba(124,92,255,.92), rgba(124,92,255,.55));
  border-color: rgba(124,92,255,.55);
}
.egBtnGhost{background: transparent;}
.egBtnActive{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(180deg, rgba(124,92,255,.22), rgba(255,255,255,.03));
  box-shadow: 0 18px 60px rgba(124,92,255,.10);
}

.grid{margin-top:12px; display:grid; grid-template-columns: 1fr 1.28fr; gap:12px;}
@media (max-width: 1000px){ .grid{grid-template-columns:1fr;} }

.panel{
  border:1px solid var(--line); border-radius:var(--r);
  background: rgba(12,16,32,.84); box-shadow: var(--shadow); overflow:hidden;
}
.hd{
  padding:12px 14px; border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: rgba(255,255,255,.03);
}
.hdTitle{font-weight:900; font-size:13px; letter-spacing:.2px;}
.bd{padding:14px;}

.card{
  border:1px solid var(--line); border-radius:16px;
  background: rgba(255,255,255,.03); padding:12px;
  margin-top:10px;
}
.k{font-size:12px; color:var(--muted); margin-bottom:6px;}
.v{font-size:16px; font-weight:900; letter-spacing:.2px;}
.small{font-size:12px; color:var(--muted2); line-height:1.6;}

.row{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
@media (max-width:560px){ .row{grid-template-columns:1fr;} }

/* ✅ 输入控件：不要把 checkbox/radio 一起 appearance:none */
select, textarea,
input:not([type="checkbox"]):not([type="radio"]){
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
  font-size:14px;
  max-width:100%;
  min-width:0;
  appearance:none;
  -webkit-appearance:none;
}

textarea{min-height:88px; resize:vertical;}

/* ✅ 修复移动端 select “跑偏/挤出屏幕”，保留自定义箭头 */
select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:34px;
}

/* ✅ checkbox/radio：恢复原生可见可点（你现在“选不动”的根因就在这里） */
input[type="checkbox"], input[type="radio"]{
  appearance:auto !important;
  -webkit-appearance:auto !important;
  width:18px;
  height:18px;
  margin:0 8px 0 0;
  vertical-align:middle;
}

/* ✅ 让整行 label 都可点（手机体验更好） */
.small label{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 8px;
  border-radius:12px;
  user-select:none;
  cursor:pointer;
  touch-action: manipulation;
}
.small label:active{
  background: rgba(255,255,255,.04);
}

.btns{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px;}
.divider{height:1px; background: rgba(255,255,255,.08); margin:12px 0;}
.bad{color:var(--bad)}
.good{color:var(--good)}
.warn{color:var(--warn)}

/* 不要锁滚动（避免你说的“往下滑动不了”） */
body, .wrap { overscroll-behavior:auto; }

/* === PRO 锁屏通用样式 (添加到 app.css 底部) === */
.proGate { position: relative; min-height: 80vh; } /* 最小高度防止空页面太扁 */
.proGateInner { position: relative; transition: filter 0.3s; }

/* 锁定状态：模糊内容，禁止点击 */
.proGate.isLocked .proGateInner {
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

/* 遮罩层容器 */
.proGateOverlay {
  position: absolute; inset: 0;
  display: none; /* 默认隐藏 */
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 999;
}
/* 锁定状态：显示遮罩 */
.proGate.isLocked .proGateOverlay { display: flex; }

/* 黑色卡片样式 */
.proGateCard {
  width: min(500px, 100%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.proGateTitle { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.proGateDesc { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; margin-bottom: 20px; }
.proGateBtns { display: flex; gap: 12px; justify-content: center; }