/* ============================================
   🫘 红豆作战总控台 · 共享样式表
   深色主题 · 手机优先 · 零依赖
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  background:#080810;color:#d0d0e0;min-height:100vh;overflow-x:hidden;
  line-height:1.6
}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:#080810}
::-webkit-scrollbar-thumb{background:#2a2a3e;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:#3a3a5e}

/* ---------- AMBIENT GLOW ---------- */
body::before{
  content:'';position:fixed;top:-50%;left:-20%;width:80%;height:80%;
  background:radial-gradient(ellipse at center,rgba(99,102,241,0.03) 0%,transparent 70%);
  pointer-events:none;z-index:0
}

/* ---------- CONTAINER ---------- */
.container{max-width:900px;margin:0 auto;padding:0 16px;position:relative;z-index:1}

/* ---------- HEADER ---------- */
.header{
  padding:24px 0 8px;position:sticky;top:0;z-index:100;
  background:rgba(8,8,16,0.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,0.04)
}
.header .container{display:flex;align-items:center;justify-content:space-between;height:52px}
.header-left{display:flex;align-items:center;gap:12px}
.header-logo{
  width:34px;height:34px;border-radius:8px;
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  display:flex;align-items:center;justify-content:center;
  font-size:17px;font-weight:800;color:#fff
}
.header h1{font-size:17px;font-weight:700;letter-spacing:0.3px;color:#e8e8f0}
.header .badge{font-size:10px;color:#8888a0;background:rgba(255,255,255,0.04);padding:2px 8px;border-radius:4px}
.header-right{display:flex;align-items:center;gap:8px}
.time-display{font-size:12px;color:#585870;font-variant-numeric:tabular-nums}
.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block}
.status-dot.online{background:#22c55e;box-shadow:0 0 8px rgba(34,197,94,0.4)}
.status-dot.offline{background:#ef4444;box-shadow:0 0 8px rgba(239,68,68,0.4)}

/* ---------- SECTION TITLES ---------- */
.section{padding:24px 0 8px}
.section-title{
  display:flex;align-items:center;gap:8px;margin-bottom:16px
}
.section-title h2{
  font-size:14px;font-weight:700;color:#a0a0b8;letter-spacing:0.5px;
  text-transform:uppercase;white-space:nowrap
}
.section-title .line{flex:1;height:1px;background:linear-gradient(90deg,rgba(255,255,255,0.06),transparent)}

/* ---------- NAV CARD GRID ---------- */
.nav-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.nav-card{
  background:linear-gradient(160deg,rgba(18,18,32,0.9),rgba(12,12,24,0.95));
  border:1px solid rgba(255,255,255,0.04);border-radius:14px;
  padding:20px 18px;transition:all 0.25s;position:relative;overflow:hidden;
  display:flex;flex-direction:column;align-items:flex-start;gap:8px
}
.nav-card:active{transform:scale(0.97)}
.nav-card:hover{
  border-color:rgba(99,102,241,0.2);transform:translateY(-2px);
  box-shadow:0 8px 32px rgba(99,102,241,0.06)
}
.nav-card .card-icon{
  font-size:24px;width:42px;height:42px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:4px
}
.nav-card .card-icon.blue{background:rgba(59,130,246,0.12)}
.nav-card .card-icon.gold{background:rgba(245,158,11,0.12)}
.nav-card .card-icon.purple{background:rgba(139,92,246,0.12)}
.nav-card .card-icon.green{background:rgba(16,185,129,0.12)}
.nav-card .card-icon.red{background:rgba(239,68,68,0.12)}
.nav-card .card-icon.cyan{background:rgba(6,182,212,0.12)}
.nav-card .card-icon.pink{background:rgba(236,72,153,0.12)}

.nav-card .card-label{font-size:14px;font-weight:600;color:#d0d0e8}
.nav-card .card-desc{font-size:12px;color:#686880;line-height:1.5}
.nav-card .card-meta{
  font-size:11px;color:#484860;margin-top:auto;padding-top:8px;
  display:flex;align-items:center;gap:6px
}

/* ---------- DATA TABLES ---------- */
.data-table{
  width:100%;border-collapse:collapse;font-size:13px;
  background:linear-gradient(160deg,rgba(18,18,32,0.9),rgba(12,12,24,0.95));
  border:1px solid rgba(255,255,255,0.04);border-radius:12px;overflow:hidden
}
.data-table thead{background:rgba(255,255,255,0.02)}
.data-table th{
  padding:10px 12px;text-align:left;font-size:11px;font-weight:700;
  color:#686880;text-transform:uppercase;letter-spacing:0.5px;
  border-bottom:1px solid rgba(255,255,255,0.04)
}
.data-table td{
  padding:10px 12px;border-bottom:1px solid rgba(255,255,255,0.02);color:#c0c0d0
}
.data-table tr:hover td{background:rgba(255,255,255,0.02)}
.data-table .num{font-variant-numeric:tabular-nums;text-align:right;font-weight:600}

/* Provider badges */
.badge-ds{color:#60a5fa;background:rgba(59,130,246,0.1);border:1px solid rgba(59,130,246,0.15)}
.badge-bl{color:#fbbf24;background:rgba(245,158,11,0.1);border:1px solid rgba(245,158,11,0.15)}
.badge-sf{color:#a78bfa;background:rgba(139,92,246,0.1);border:1px solid rgba(139,92,246,0.15)}
.badge-zp{color:#34d399;background:rgba(16,185,129,0.1);border:1px solid rgba(16,185,129,0.15)}
.badge-provider{
  display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600
}

/* ---------- STAT BADGES ---------- */
.stat-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.stat-card{
  flex:1;min-width:100px;
  background:rgba(18,18,32,0.6);border:1px solid rgba(255,255,255,0.04);
  border-radius:10px;padding:12px 14px;text-align:center
}
.stat-card .stat-value{font-size:22px;font-weight:800;color:#e8e8f0}
.stat-card .stat-label{font-size:11px;color:#686880;margin-top:2px}

/* ---------- BACK LINK ---------- */
.back-link{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;color:#686880;padding:6px 10px;border-radius:6px;
  transition:all 0.2s;margin-bottom:12px
}
.back-link:hover{color:#a0a0b8;background:rgba(255,255,255,0.03)}

/* ---------- FILTER BAR ---------- */
.filter-bar{
  display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;align-items:center
}
.filter-bar select,.filter-bar input{
  background:rgba(18,18,32,0.8);border:1px solid rgba(255,255,255,0.06);
  color:#d0d0e0;padding:6px 12px;border-radius:8px;font-size:13px;outline:none
}
.filter-bar select:focus,.filter-bar input:focus{border-color:rgba(99,102,241,0.3)}

/* ---------- SUMMARY BOX ---------- */
.summary-box{
  background:linear-gradient(160deg,rgba(18,18,32,0.9),rgba(12,12,24,0.95));
  border:1px solid rgba(255,255,255,0.04);border-radius:12px;
  padding:20px;margin-bottom:16px
}
.summary-box h3{font-size:13px;color:#a0a0b8;margin-bottom:12px;letter-spacing:0.5px}
.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.summary-item{text-align:center;padding:8px}
.summary-item .s-value{font-size:18px;font-weight:700;color:#e8e8f0}
.summary-item .s-label{font-size:11px;color:#686880}

/* ---------- SUBPAGE HEADER ---------- */
.subpage-header h1{
  font-size:26px;font-weight:800;
  background:linear-gradient(135deg,#e8e8f0 30%,#a0a0b8 70%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  margin-bottom:4px
}
.subpage-header p{font-size:14px;color:#686880;margin-bottom:20px}

/* ---------- FOOTER ---------- */
.footer{
  text-align:center;padding:40px 0 24px;border-top:1px solid rgba(255,255,255,0.03);
  color:#484860;font-size:12px;margin-top:40px
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:640px){
  .nav-grid{grid-template-columns:1fr 1fr;gap:10px}
  .nav-card{padding:16px 14px}
  .nav-card .card-icon{width:36px;height:36px;font-size:20px}
  .nav-card .card-label{font-size:13px}
  .stat-row{gap:8px}
  .stat-card{min-width:80px;padding:10px}
  .stat-card .stat-value{font-size:18px}
  .subpage-header h1{font-size:22px}
}
@media(max-width:380px){
  .nav-grid{grid-template-columns:1fr;gap:8px}
}
