/* ============================================================
   AI Nexus · 全局设计系统（企业蓝）
   ============================================================ */
:root {
  --primary: #2b9cf2;
  --primary-600: #1179d6;
  --primary-500: #55b1f5;
  --primary-100: #e3f4ff;
  --navy: #1668ad;
  --navy-2: #2b8ed6;
  --bg: #f4f7fe;
  --card: #ffffff;
  --text: #101b3d;
  --muted: #64748b;
  --border: #e5eaf5;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --surface: #ffffff;
  --nav-bg: rgba(255,255,255,.86);
  --nav-text: #475569;
  --thead: #f8faff;
  --hover-row: #f7faff;
  --row-line: #eef2fb;
  --pg-bg: #f5fbff;
  --soft: #f1f5f9;
  --soft-2: #e2e8f0;
  --bar-end: #1179d6;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(18, 52, 184, .08);
  --shadow-lg: 0 18px 60px rgba(18, 52, 184, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--primary); color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s;
  user-select: none; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); color: #fff; box-shadow: 0 6px 18px rgba(43, 156, 242, .3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(43, 156, 242, .4); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fef2f2; color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-block { width: 100%; }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; height: 66px; gap: 34px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); color: #fff; font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(43, 156, 242,.4);
}
.logo small { font-size: 10px; font-weight: 600; color: var(--primary); letter-spacing: 1px; display: block; line-height: 1; }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a { color: var(--nav-text); font-size: 14px; font-weight: 500; padding: 6px 2px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav .user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); font-weight: 600; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(120,190,255,.55), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(110,193,250,.4), transparent 55%),
              linear-gradient(160deg, #1a7fd4 0%, #2b9cf2 55%, #6ec1fa 100%);
  padding: 96px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 400px at 30% 20%, #000, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 13px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, #a8d8ff, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16.5px; color: rgba(255,255,255,.82); margin-bottom: 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges span { font-size: 13px; color: rgba(255,255,255,.75); display: inline-flex; gap: 6px; align-items: center; }

/* 代码演示卡 */
.code-card {
  background: #0e2a47; border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.2deg);
}
.code-card .bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-card .bar i:nth-child(2) { background: #febc2e; }
.code-card .bar i:nth-child(3) { background: #28c840; }
.code-card .bar em { margin-left: 8px; font-style: normal; color: rgba(255,255,255,.4); font-size: 12px; }
.code-card pre { padding: 20px 22px; font-family: "SF Mono", Consolas, monospace; font-size: 12.8px; line-height: 1.85; color: #d9edff; overflow-x: auto; }
.tok-k { color: #8fd0ff; } .tok-s { color: #7ce38b; } .tok-c { color: #64748b; }

/* ---------- 区块 ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--surface); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head .eyebrow { display: inline-block; color: var(--primary); background: var(--primary-100); font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.sec-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.sec-head p { color: var(--muted); margin-top: 10px; }

/* 统计条 */
.stats-band { margin-top: -62px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat-cell { padding: 28px 12px; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: 0; }
.stat-cell b { display: block; font-size: 28px; color: var(--primary-600); font-weight: 800; }
.stat-cell span { font-size: 13px; color: var(--muted); }

/* 特性卡 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; transition: all .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-500); }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-100); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 16px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 13.8px; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tbl th { text-align: left; padding: 13px 16px; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .5px; border-bottom: 1px solid var(--border); background: var(--thead); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--hover-row); }
.tbl .mono { font-family: "SF Mono", Consolas, monospace; font-size: 12.5px; }

/* ---------- 徽章 ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-blue { background: var(--primary-100); color: var(--primary); }
.badge-green { background: #e9f9ef; color: var(--green); }
.badge-red { background: #fee2e2; color: var(--red); }
.badge-amber { background: #fef3c7; color: var(--amber); }
.badge-gray { background: #eef1f6; color: #64748b; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #334155; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
input.inp, select.inp, textarea.inp {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--text); background: var(--surface); outline: none; transition: all .15s; font-family: inherit;
}
input.inp:focus, select.inp:focus, textarea.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 156, 242,.12); }
textarea.inp { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10, 26, 77, .45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 300; padding: 20px;
}
.modal { background: var(--card); border-radius: 18px; width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16.5px; }
.modal-close { border: 0; background: var(--soft); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--muted); }
.modal-close:hover { background: var(--soft-2); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; top: 20px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); border-radius: 12px; padding: 13px 18px; min-width: 260px; max-width: 380px;
  box-shadow: var(--shadow-lg); font-size: 13.8px; display: flex; gap: 10px; align-items: flex-start;
  border-left: 4px solid var(--primary); animation: slideIn .22s ease;
}
.toast.ok { border-left-color: var(--green); } .toast.err { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 公告卡 ---------- */
.ann-card h3 { font-size: 15.5px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ann-card pre { white-space: pre-wrap; font-family: inherit; color: var(--muted); font-size: 13.5px; max-height: 120px; overflow: hidden; }
.ann-card .time { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ---------- 定价 ---------- */
.price-card { text-align: left; }
.price-card .p { font-size: 30px; font-weight: 800; color: var(--primary-600); }
.price-card .p small { font-size: 13px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 16px 0 20px; }
.price-card ul li { font-size: 13.5px; color: var(--nav-text); padding: 5px 0; display: flex; gap: 8px; }
.price-card ul li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 54px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.66); font-size: 13.5px; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .brand p { font-size: 13px; margin-top: 10px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 认证页 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: radial-gradient(900px 500px at 80% -10%, rgba(255,255,255,.28), transparent 60%), linear-gradient(160deg, #1a7fd4, #2b9cf2 60%, #55b1f5);
  color: #fff; padding: 64px 58px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-side::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 44px 44px; }
.auth-side .pos { position: relative; }
.auth-side h2 { font-size: 30px; font-weight: 800; margin: 14px 0; line-height: 1.3; }
.auth-side ul { list-style: none; margin-top: 26px; }
.auth-side ul li { padding: 9px 0; font-size: 14.5px; color: rgba(255,255,255,.85); display: flex; gap: 10px; }
.auth-side ul li::before { content: "✓"; font-weight: 800; color: #ffffff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .box { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 34px 32px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.oauth-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.oauth-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); font-size: 12px; color: var(--nav-text); transition: all .15s;
}
.oauth-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.oauth-btn i { font-style: normal; font-size: 19px; }
.divider { display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: 12.5px; margin: 20px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- 代码块（文档） ---------- */
.codeblock { background: #0e2a47; color: #d9edff; border-radius: 12px; padding: 18px 20px; font-family: "SF Mono", Consolas, monospace; font-size: 12.8px; line-height: 1.8; overflow-x: auto; position: relative; white-space: pre; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #d9edff; border-radius: 7px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.2); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 16px; font-size: 13px; color: var(--muted); }
.pager button { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 13px; cursor: pointer; font-size: 13px; color: var(--nav-text); }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 在线体验 Playground ---------- */
.pg-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 22px 24px; max-width: 880px; margin: 0 auto;
}
.pg-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pg-model { width: auto; min-width: 230px; font-weight: 600; }
.pg-hints { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-chip {
  border: 1px solid var(--border); background: var(--primary-100); color: var(--primary-600);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-weight: 600; transition: all .15s;
}
.pg-chip:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(43,156,242,.18); }
.pg-out {
  min-height: 230px; max-height: 400px; overflow-y: auto; background: var(--pg-bg);
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; scroll-behavior: smooth;
}
.pg-welcome { color: var(--muted); font-size: 13.5px; text-align: center; padding: 60px 20px; line-height: 1.9; }
.pg-msg { padding: 10px 14px; border-radius: 12px; font-size: 13.8px; line-height: 1.85; margin-bottom: 12px; white-space: pre-wrap; word-break: break-word; }
.pg-user { background: var(--primary-100); color: var(--text); align-self: flex-end; font-weight: 500; }
.pg-ai { background: var(--surface); border: 1px solid var(--border); }
.pg-err { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.pg-cursor { display: inline-block; width: 8px; height: 15px; background: var(--primary); margin-left: 3px; vertical-align: -2px; border-radius: 2px; animation: pgBlink 1s steps(1) infinite; }
@keyframes pgBlink { 50% { opacity: 0; } }
.pg-input-row { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.pg-input-row textarea { flex: 1; resize: none; min-height: 52px; }
.pg-input-row .btn { height: 52px; padding: 0 26px; flex: 0 0 auto; }
.pg-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.pg-note a { color: var(--primary); font-weight: 600; }
.pg-clear { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.pg-clear:hover { border-color: var(--red); box-shadow: 0 4px 10px rgba(220,38,38,.15); }
html.dark .pg-clear { background: rgba(220,38,38,.14); color: #f87171; border-color: rgba(220,38,38,.35); }

/* ---------- 主题按钮 & 移动端导航 ---------- */
[data-theme-btn] {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
[data-theme-btn]:hover { border-color: var(--primary); transform: translateY(-1px); }
.nav-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 17px; cursor: pointer; color: var(--primary); align-items: center; justify-content: center; }
.m-nav { display: none; }
@media (max-width: 960px) {
  .nav-burger { display: inline-flex; }
  .nav-inner { gap: 12px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-outline { display: none; } /* 登录入口保留在移动菜单中 */
  .m-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--card);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px 24px 16px; z-index: 99;
  }
  .m-nav.open { display: block; }
  .m-nav a { display: block; padding: 12px 4px; font-size: 15px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--row-line); }
  .m-nav a:last-child { border-bottom: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .code-card { transform: none; }
  .hero h1 { font-size: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .nav-links { display: none; }
  .pg-input-row { flex-direction: column; }
  .pg-input-row .btn { width: 100%; }
  .pg-box { padding: 16px 14px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 64px 0 80px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- 深色模式 ---------- */
html.dark {
  --bg: #0a1220;
  --card: #101c31;
  --surface: #0d1729;
  --text: #e6eef9;
  --muted: #8aa2c0;
  --border: #22334f;
  --nav-bg: rgba(10,18,32,.88);
  --nav-text: #a9bdd6;
  --thead: #13233c;
  --hover-row: #16243d;
  --row-line: #1c2b45;
  --pg-bg: #0d1a30;
  --soft: #1a2740;
  --soft-2: #243352;
  --primary-100: #15304f;
  --bar-end: #2b9cf2;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 60px rgba(0,0,0,.5);
}
html.dark .badge-green { background: rgba(22,163,74,.18); color: #4ade80; }
html.dark .badge-red { background: rgba(220,38,38,.18); color: #f87171; }
html.dark .badge-amber { background: rgba(217,119,6,.2); color: #fbbf24; }
html.dark .badge-gray { background: rgba(148,163,184,.15); color: #94a3b8; }
html.dark .btn-danger { background: rgba(220,38,38,.14); border-color: rgba(220,38,38,.35); color: #f87171; }
html.dark .btn-danger:hover { background: var(--red); color: #fff; }
html.dark .pg-chip { border-color: rgba(85,177,245,.3); }
html.dark .code-card { box-shadow: var(--shadow-lg); }
html.dark .footer { background: #081426; }
