/* ============ 算力云 · 全局样式（暗色科技风） ============ */
:root {
  --bg: #0b0f1a;
  --bg-2: #101626;
  --bg-3: #161d31;
  --card: #131a2c;
  --card-2: #182136;
  --border: #232c45;
  --border-2: #2d3856;
  --text: #e6ebf5;
  --text-2: #9aa5c0;
  --text-3: #6b7691;
  --primary: #6366f1;
  --primary-2: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --cyan: #22d3ee;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* 背景光晕 */
.glow-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow-bg::before, .glow-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.18;
}
.glow-bg::before { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -100px; }
.glow-bg::after { width: 500px; height: 500px; background: var(--cyan); top: -100px; right: -150px; opacity: 0.1; }

/* ============ 启动屏 ============ */
.boot-screen {
  height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; z-index: 99; position: relative;
}
.boot-logo {
  width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
.boot-text { color: var(--text-2); font-size: 14px; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.7; } }

/* ============ 顶部导航 ============ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px;
}
.logo-text i { font-style: normal; font-size: 11px; color: var(--text-3); margin-left: 8px; font-weight: 500; }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a {
  padding: 7px 14px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links a.router-link-exact-active { color: var(--primary-2); background: rgba(99, 102, 241, 0.12); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-balance {
  font-size: 13px; color: var(--green); background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25); padding: 4px 12px; border-radius: 20px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  padding: 10px 20px; transition: all 0.18s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5); color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--primary-glow); }
.btn-primary:disabled { opacity: 0.5; transform: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); }
.btn-danger { background: rgba(248, 113, 113, 0.12); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.3); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ============ 首页 ============ */
.hero { position: relative; z-index: 1; padding: 90px 24px 60px; text-align: center; }
.hero h1 {
  font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: 1.25; margin: 0 auto 20px; max-width: 820px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary-2), var(--cyan), var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub { color: var(--text-2); font-size: 17px; max-width: 620px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 56px; }
.hero-cta .btn { padding: 13px 30px; font-size: 15px; }

.hero-stats {
  max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; transition: all 0.2s;
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--primary-2); }
.stat-card .num.g { color: var(--green); } .stat-card .num.c { color: var(--cyan); }
.stat-card .label { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--text-2); font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: all 0.2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; background: rgba(99, 102, 241, 0.12);
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-2); }

/* 模型卡片 */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.model-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all 0.2s; position: relative;
}
.model-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.model-card .m-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.model-card h3 { font-size: 16px; font-weight: 700; }
.vendor-tag {
  font-size: 11px; color: var(--cyan); background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25); padding: 2px 8px; border-radius: 6px; white-space: nowrap;
}
.model-card .m-desc { font-size: 13px; color: var(--text-2); margin: 6px 0 12px; min-height: 40px; }
.model-card .m-ctx { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.model-card .m-price { display: flex; gap: 14px; padding-top: 12px; border-top: 1px dashed var(--border-2); font-size: 13px; }
.model-card .m-price b { color: var(--primary-2); font-weight: 700; }
.model-card .m-price span { color: var(--text-3); font-size: 12px; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.cap-tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
  background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border);
}

/* 价格页 */
.price-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
table.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.price-table th {
  text-align: left; padding: 14px 18px; color: var(--text-3); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.5px; border-bottom: 1px solid var(--border); background: var(--bg-2); white-space: nowrap;
}
.price-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(99, 102, 241, 0.04); }
.price-table td:first-child { color: var(--text); font-weight: 600; }
.price-table .p { color: var(--primary-2); font-weight: 700; }

/* CTA 横幅 */
.cta-banner {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto 80px; padding: 0 24px;
}
.cta-inner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.35); border-radius: 20px;
  padding: 46px; text-align: center;
}
.cta-inner h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.cta-inner p { color: var(--text-2); margin-bottom: 24px; }

/* ============ 文档页 ============ */
.docs-layout { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 50px 24px 90px; }
.docs-layout h1 { font-size: 30px; margin-bottom: 8px; }
.docs-layout .lead { color: var(--text-2); margin-bottom: 34px; }
.doc-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 20px; scroll-margin-top: 90px;
}
.doc-card h2 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.doc-card h2 .anchor { color: var(--text-3); font-size: 14px; font-weight: 400; }
.doc-card p, .doc-card li { color: var(--text-2); font-size: 14px; }
.doc-card ol, .doc-card ul { padding-left: 20px; margin: 8px 0; }
.doc-card code.inline {
  background: var(--bg-3); border: 1px solid var(--border); padding: 1.5px 7px; border-radius: 6px;
  font-size: 13px; color: var(--cyan); font-family: "Cascadia Code", Consolas, monospace;
}
pre.code-block {
  background: #0a0e18; border: 1px solid var(--border); border-radius: 10px; padding: 18px;
  overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 12px 0; position: relative;
}
pre.code-block code { font-family: "Cascadia Code", Consolas, monospace; color: #c9d4f0; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; font-size: 11px; padding: 4px 10px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-2); cursor: pointer;
}
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }

/* ============ 登录 / 注册 ============ */
.auth-page {
  position: relative; z-index: 1; min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 38px 34px; box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 23px; margin-bottom: 6px; }
.auth-card .hint { color: var(--text-3); font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.field input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14px; outline: none; transition: border 0.15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.field input::placeholder { color: var(--text-3); }
.auth-tip { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 18px; }
.auth-tip a { color: var(--primary-2); }
.form-error {
  background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--red);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.demo-tip {
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); border-radius: 10px;
  padding: 10px 14px; font-size: 12.5px; color: var(--cyan); margin-bottom: 18px;
}

/* ============ 控制台 ============ */
.console-layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.side-nav {
  width: 230px; flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-nav .logo { padding: 0 10px 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.side-group { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; padding: 12px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; margin-bottom: 2px; transition: all 0.15s;
}
.side-link:hover { color: var(--text); background: var(--bg-3); }
.side-link.router-link-active { color: var(--primary-2); background: rgba(99, 102, 241, 0.12); font-weight: 600; }
.side-link .ic { width: 18px; text-align: center; }
.side-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px;
}
.side-user .info { overflow: hidden; }
.side-user .info .em { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .info .bal { font-size: 12px; color: var(--green); }
.logout-btn { width: 100%; margin-top: 8px; }

.console-main { flex: 1; padding: 28px 32px; min-width: 0; max-width: 1280px; }
.console-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.console-head h1 { font-size: 22px; font-weight: 800; }
.console-head .sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h3 { font-size: 15.5px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }

/* 指标卡 */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.metric .m-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.metric .m-value { font-size: 25px; font-weight: 800; margin-top: 6px; }
.metric .m-value.g { color: var(--green); } .metric .m-value.p { color: var(--primary-2); }
.metric .m-value.c { color: var(--cyan); } .metric .m-value.a { color: var(--amber); }
.metric .m-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* 图表 */
.chart-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-bottom: 20px; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); }
.chart-legend .lg { display: flex; align-items: center; gap: 5px; }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.bar-chart { display: flex; align-items: flex-end; gap: 5px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-stack { width: 100%; max-width: 26px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--primary-2), var(--primary)); min-height: 2px; position: relative; transition: opacity .15s; }
.bar-col:hover .bar-stack { opacity: 0.75; }
.bar-label { font-size: 10px; color: var(--text-3); }
.hbar-list .hbar-row { margin-bottom: 14px; }
.hbar-row .hr-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.hbar-row .hr-top .cost { color: var(--primary-2); font-weight: 600; }
.hbar-row .hr-track { height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.hbar-row .hr-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left; padding: 10px 14px; color: var(--text-3); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(99, 102, 241, 0.04); }
.pill { font-size: 11.5px; padding: 3px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.pill-off { background: rgba(107, 118, 145, 0.18); color: var(--text-3); }
.pill-red { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.pill-half { background: rgba(59, 130, 246, 0.14); color: var(--primary-2); }
.mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
.key-text { color: var(--amber); }

/* 密钥表单 */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type=text], .inline-form input[type=password], .inline-form input[type=number] {
  flex: 1; min-width: 200px; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 9px 14px; color: var(--text); font-size: 14px; outline: none;
}
.inline-form input[type=text]:focus, .inline-form input[type=password]:focus, .inline-form input[type=number]:focus { border-color: var(--primary); }
.inline-form select {
  flex: 1; min-width: 160px; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 9px 14px; color: var(--text); font-size: 13.5px; outline: none; cursor: pointer;
}

/* Playground */
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-pane { display: flex; flex-direction: column; }
.pg-pane .pane-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.pg-input textarea, .pg-input select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  color: var(--text); padding: 11px 13px; font-size: 13.5px; outline: none; resize: vertical;
}
.pg-input textarea { min-height: 130px; margin-bottom: 12px; }
.pg-input textarea:focus { border-color: var(--primary); }
.pg-output {
  flex: 1; background: #0a0e18; border: 1px solid var(--border); border-radius: 10px;
  padding: 15px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word;
  min-height: 260px; max-height: 480px; overflow-y: auto; color: #c9d4f0;
}
.pg-output .cursor { display: inline-block; width: 7px; height: 15px; background: var(--cyan); animation: blink 0.9s infinite; vertical-align: text-bottom; }
@keyframes blink { 50% { opacity: 0; } }
.pg-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.pg-meta b { color: var(--primary-2); }

/* 充值套餐 */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pkg-card {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; position: relative; transition: all 0.18s; cursor: pointer;
}
.pkg-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.pkg-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); }
.pkg-card .pkg-tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--cyan)); color: #fff;
  font-size: 11px; padding: 2px 10px; border-radius: 12px; white-space: nowrap; font-weight: 600;
}
.pkg-card .pkg-name { font-size: 14px; color: var(--text-2); }
.pkg-card .pkg-price { font-size: 30px; font-weight: 800; margin: 8px 0 2px; }
.pkg-card .pkg-price small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.pkg-card .pkg-bonus { font-size: 12.5px; color: var(--green); margin-top: 4px; }
.pay-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pay-opt {
  flex: 1; min-width: 120px; padding: 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-2); text-align: center; font-size: 14px; transition: all 0.15s;
}
.pay-opt:hover { border-color: var(--primary); }
.pay-opt.sel { border-color: var(--primary); background: rgba(99, 102, 241, 0.1); color: var(--primary-2); font-weight: 600; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 18px; align-items: center; }
.pager button {
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-2);
  padding: 6px 14px; border-radius: 8px; font-size: 13px;
}
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }
.pager .pg-info { font-size: 12.5px; color: var(--text-3); }

/* Toast */
.toast-wrap { position: fixed; top: 76px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card-2); border: 1px solid var(--border-2); border-left: 3px solid var(--green);
  border-radius: 10px; padding: 12px 18px; font-size: 14px; box-shadow: var(--shadow);
  animation: slideIn 0.25s ease; min-width: 220px;
}
.toast.err { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(5, 8, 15, 0.7); backdrop-filter: blur(4px);
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); border: 1px solid var(--border-2); border-radius: 16px;
  padding: 28px; width: 100%; max-width: 460px; box-shadow: var(--shadow);
}
.modal h3 { font-size: 17px; margin-bottom: 14px; }
.modal p { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* 空状态 */
.empty { text-align: center; padding: 50px 20px; color: var(--text-3); font-size: 14px; }
.empty .ic { font-size: 36px; margin-bottom: 10px; opacity: 0.5; }

/* 管理后台：单元格输入框 + 异常行 */
.cell-input {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 8px;
  color: var(--text); padding: 6px 10px; font-size: 13px; width: 90px; outline: none;
}
.cell-input:focus { border-color: var(--primary); }
tr.warn-row td { background: rgba(248, 113, 113, 0.06) !important; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 50px 24px 28px; position: relative; z-index: 1; }
.footer-inner {
  max-width: 1200px; margin: 0 auto 26px; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-3); }
.footer-col h4 { font-size: 13.5px; margin-bottom: 12px; color: var(--text); }
.footer-col a { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary-2); }
.footer-copy { text-align: center; font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 22px; max-width: 1200px; margin: 0 auto; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .chart-row { grid-template-columns: 1fr; }
  .pg-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .console-layout { flex-direction: column; }
  .side-nav {
    width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap;
    align-items: center; padding: 10px; gap: 4px;
  }
  .side-nav .logo { border: none; padding: 4px 10px; margin: 0; }
  .side-group { display: none; }
  .side-link { padding: 8px 12px; }
  .side-bottom { margin: 0 0 0 auto; border: none; padding: 0; display: flex; align-items: center; gap: 8px; }
  .logout-btn { width: auto; }
  .console-main { padding: 20px 16px; }
}
