/* ============================================================
   Nova AI Platform — 全局样式 (SenseTime 风格改造)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* 设计规范 — 科技蓝配色（保持不变） */
  --brand: hsl(211 86% 48%);       /* 主色/按钮 */
  --brand-dark: hsl(211 86% 40%);
  --brand-soft: hsl(210 40% 96%);  /* 强调色/悬停背景 */

  /* 文字 */
  --ink-900: hsl(215 25% 16%);     /* 主文字 */
  --ink-800: hsl(215 22% 22%);
  --ink-700: hsl(215 20% 30%);
  --ink-600: hsl(215 18% 38%);
  --ink-500: hsl(215 16% 46%);     /* 弱化文字 */
  --ink-400: hsl(215 12% 58%);
  --ink-300: hsl(215 10% 72%);
  --ink-200: hsl(214 32% 91%);     /* 边框色 */
  --ink-100: hsl(210 40% 96%);     /* 强调色 */
  --white: hsl(0 0% 100%);         /* 卡片色 */
  --page-bg: hsl(210 50% 98%);     /* 背景色 */

  /* 语义色 */
  --success: hsl(160 70% 40%);
  --warning: hsl(38 92% 50%);
  --danger: hsl(0 84% 60%);
  --info: hsl(211 86% 48%);

  /* 间距系统 (8pt 网格) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* 圆角系统 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* 高度 */
  --nav-h: 64px;
  --sidebar-w: 240px;

  /* 字体 */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-heading: 'Space Grotesk', 'DM Sans', -apple-system, "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* 阴影系统（分层深度） */
  --shadow-xs: 0 1px 2px hsla(215, 25%, 16%, 0.04);
  --shadow-sm: 0 2px 4px hsla(215, 25%, 16%, 0.04), 0 1px 2px hsla(215, 25%, 16%, 0.03);
  --shadow: 0 4px 12px hsla(215, 25%, 16%, 0.06), 0 2px 4px hsla(215, 25%, 16%, 0.04);
  --shadow-md: 0 8px 20px hsla(215, 25%, 16%, 0.08), 0 3px 6px hsla(215, 25%, 16%, 0.04);
  --shadow-lg: 0 16px 40px hsla(215, 25%, 16%, 0.10), 0 4px 12px hsla(215, 25%, 16%, 0.05);
  --shadow-brand: 0 8px 24px hsla(211, 86%, 48%, 0.22);
  --shadow-brand-lg: 0 16px 40px hsla(211, 86%, 48%, 0.24), 0 4px 12px hsla(211, 86%, 48%, 0.12);

  /* 动效 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 300ms;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
}

/* 全局焦点环 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 通用 icon（Lucide 风格内联 SVG）
   - 默认 16×16，viewBox 24×24，1.5px stroke
   - 跟随 currentColor，与文本 baseline 对齐 */
.ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}
.ico-sm { width: 14px; height: 14px; }
.ico-md { width: 18px; height: 18px; }
.ico-lg { width: 20px; height: 20px; }
.ico-xl { width: 24px; height: 24px; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Prefers-reduced-motion 遵循 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

code, pre {
  font-family: var(--font-mono);
}

/* ============================================================
   顶部导航 (公共站点)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(0, 0%, 100%, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
  color: var(--ink-900);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* SenseNova 图标：紫色大块 + 青绿小块 */
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--brand) 100%);
}
.brand-mark::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: hsl(160 90% 55%);
  bottom: 2px;
  right: 2px;
  border-radius: 2px;
}
.brand-mark::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.35);
  top: 4px;
  right: 4px;
  border-radius: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  flex: 1;
}

.nav-links a {
  color: var(--ink-500);
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink-900);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-ext-link {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
  padding: 6px 4px;
}
.nav-ext-link:hover {
  color: var(--brand);
}

/* 语言切换按钮 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
  height: 28px;
}
.lang-toggle::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.5'><circle cx='8' cy='8' r='6.5'/><path d='M1.5 8h13M8 1.5c2 2 3 4 3 6.5s-1 4.5-3 6.5c-2-2-3-4-3-6.5s1-4.5 3-6.5z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.lang-toggle:hover::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230F6FE3' stroke-width='1.5'><circle cx='8' cy='8' r='6.5'/><path d='M1.5 8h13M8 1.5c2 2 3 4 3 6.5s-1 4.5-3 6.5c-2-2-3-4-3-6.5s1-4.5 3-6.5z'/></svg>");
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-sm), inset 0 1px 0 hsla(0,0%,100%,0.12);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--ink-200);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
}

/* 箭头微交互 */
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow { transform: translateX(2px); }

.btn-block {
  width: 100%;
}

.btn-danger {
  color: var(--danger);
  background: transparent;
  border-color: transparent;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}

/* ============================================================
   通用容器与排版
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: hsla(211, 86%, 48%, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  color: var(--ink-900);
}

h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 640px;
}

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--ink-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Form 控件
   ============================================================ */
.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.helper {
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 6px;
}

/* ============================================================
   表格
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink-500);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-100);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--ink-200);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--ink-100);
}

/* ============================================================
   徽章
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  line-height: 1.4;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}
.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}
.badge-neutral {
  background: var(--ink-100);
  color: var(--ink-500);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--white);
  color: var(--ink-500);
  padding: 64px 0 32px;
  font-size: 14px;
  border-top: 1px solid var(--ink-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h5 {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--ink-500);
}
.footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
  display: flex;
  justify-content: space-between;
  color: var(--ink-400);
  font-size: 13px;
}

/* ============================================================
   控制台布局：顶部主导航 + 左侧次级功能导航
   ============================================================ */

/* 顶部主导航（控制台 - 与 Token Plan 站点导航保持一致） */
.console-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(0, 0%, 100%, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
  color: var(--ink-900);
  height: var(--nav-h);
}

.console-topbar .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.console-topbar .brand {
  color: var(--ink-900);
  font-size: 18px;
}

.console-topbar .nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  flex: 1;
}
.console-topbar .nav-links a {
  color: var(--ink-500);
  font-weight: 500;
  transition: color 0.15s;
}
.console-topbar .nav-links a:hover,
.console-topbar .nav-links a.active {
  color: var(--ink-900);
}

.console-topbar .nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.console-topbar .badge {
  background: var(--brand-soft);
  color: var(--brand);
}

/* 主体区域 */
.app-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - var(--nav-h));
  background: var(--page-bg);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* 左侧次级导航 */
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--ink-200);
  padding: 16px 10px;
  overflow-y: auto;
}

.side-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  padding: 14px 10px 6px;
  font-weight: 600;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--ink-500);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 1px;
  transition: all 0.12s;
}

.side-link:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}

.side-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.side-link .s-ico {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-400);
  transition: color 0.12s;
}
.side-link:hover .s-ico { color: var(--ink-700); }
.side-link.active .s-ico { color: var(--brand); }

.side-link .s-ico svg {
  width: 16px;
  height: 16px;
}

.side-link .ext {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-400);
}

.app-main {
  min-width: 0;
}

.app-body {
  padding: 28px 32px;
}

.page-head {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.page-desc {
  color: var(--ink-500);
  font-size: 14px;
  margin: 0;
}

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.stat-card .label {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 6px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.stat-card .trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

/* 模型卡片列表 */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.model-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.model-card h4 {
  font-size: 15px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-card .desc {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
  min-height: 40px;
}

.model-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-400);
}

/* 用户下拉菜单 */
.user-menu {
  position: relative;
  display: inline-block;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), hsl(200 80% 55%));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.user-avatar:hover {
  border-color: var(--brand-soft);
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 80;
  display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown .info {
  padding: 14px 12px 12px;
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: 6px;
}
.user-dropdown .info .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--ink-900);
}
.user-dropdown .info .meta {
  font-size: 12px;
  color: var(--ink-500);
}
.user-dropdown .info .meta + .meta {
  margin-top: 4px;
}
.user-dropdown .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ink-700);
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.user-dropdown .menu-item:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}
.user-dropdown .menu-item.danger {
  color: var(--danger);
}
.user-dropdown .menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}
.user-dropdown .ico {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

/* 文档侧边栏锚点 active (scrollspy) */
.docs-sidebar li a.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.docs-toc a.is-active {
  color: var(--brand);
  font-weight: 600;
}

/* Utility */
.flex {
  display: flex;
  gap: 12px;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-center { text-align: center; }
.text-muted { color: var(--ink-500); }
.text-small { font-size: 13px; }

.hidden {
  display: none !important;
}

/* 代码框 */
.code-block {
  background: var(--ink-900);
  color: #E8E8F0;
  padding: 20px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
}

.code-block .kw { color: #93C5FD; }
.code-block .str { color: #F1FA8C; }
.code-block .cm { color: #6272A4; }
.code-block .num { color: #BD93F9; }
.code-block .fn { color: #8BE9FD; }

.code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  cursor: pointer;
}
.code-copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ink-200);
  margin-bottom: 24px;
}

.tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.15s;
}

.tab:hover {
  color: var(--ink-900);
}

.tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* 响应式 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-body { padding: 20px; }
}
