/* ACSSA — 统一暗色主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #0f0f1a; color: #e0e0e0; }

/* ── 导航 ── */
nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; border-bottom: 1px solid #1f1f35; background: #0a0a14; }
nav .logo { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
nav .logo span { color: #5b8def; }
nav .logo img { height: 32px; vertical-align: middle; }
nav a { color: #999; text-decoration: none; margin-left: 24px; font-size: 14px; transition: color .2s; }
nav a:hover, nav a.active { color: #fff; }

/* ── 容器 ── */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }

/* ── 卡片 ── */
.card { background: #141428; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* ── 统计面板 ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #141428; border-radius: 10px; padding: 20px; text-align: center; }
.stat .num { font-size: 28px; font-weight: 700; color: #5b8def; }
.stat .label { font-size: 13px; color: #888; margin-top: 4px; }

/* ── 表格 ── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #1f1f35; font-size: 14px; }
th { color: #888; font-weight: 500; background: #0a0a14; }

/* ── 按钮 ── */
.btn { display: inline-block; padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: none; transition: all .2s; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #5b8def; color: #fff; }
.btn-primary:hover { background: #4a7de0; }
.btn-outline { background: transparent; color: #5b8def; border: 1px solid #5b8def; }
.btn-outline:hover { background: rgba(91,141,239,0.1); }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* ── 徽章 ── */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.badge-ok { background: rgba(39,174,96,0.2); color: #2ecc71; }
.badge-active { background: rgba(39,174,96,0.2); color: #2ecc71; }
.badge-warn { background: rgba(243,156,18,0.2); color: #f39c12; }
.badge-pending { background: rgba(243,156,18,0.2); color: #f39c12; }
.badge-fatal, .badge-failed { background: rgba(231,76,60,0.2); color: #e74c3c; }

/* ── 输入框 ── */
input, select, textarea { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid #1f1f35; background: #0f0f1a; color: #e0e0e0; font-size: 14px; outline: none; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: #5b8def; }
input::placeholder { color: #555; }
select { cursor: pointer; appearance: auto; }

/* ── 标题 ── */
h2 { font-size: 22px; margin-bottom: 20px; }
h3 { font-size: 18px; margin-bottom: 12px; }

/* ── 报错横幅 ── */
.error-banner { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: rgba(231,76,60,0.95); color: #fff; padding: 12px 32px; text-align: center; font-size: 14px; }
.error-banner button { margin-left: 16px; background: none; border: none; cursor: pointer; color: #fff; font-weight: bold; font-size: 18px; }

/* ── footer ── */
footer { text-align: center; padding: 40px 20px; color: #555; font-size: 13px; border-top: 1px solid #1f1f35; margin-top: 48px; }
footer a { color: #5b8def; text-decoration: none; }

/* ── 工具类 ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: #888; font-size: 13px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 8px; }
