/* ===================================
   TokenHub 智擎云 - 全局样式
   科技风 | 主色#165DFF | 响应式
   =================================== */

/* ---- 设计系统变量 ---- */
:root {
  --primary: #165DFF;
  --primary-hover: #4080FF;
  --primary-light: #E8F3FF;
  --primary-dark: #0E42D2;
  --secondary: #722ED1;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-dark: #1D2129;
  --text: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --border: #E5E6EB;
  --success: #00B42A;
  --warning: #FF7D00;
  --danger: #F53F3F;
  --gradient: linear-gradient(135deg, #165DFF, #4080FF);
  --gradient-tech: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
  --gradient-dark: linear-gradient(135deg, #1D2129 0%, #2C2F33 100%);
  --shadow-sm: 0 2px 8px rgba(22,93,255,0.06);
  --shadow: 0 4px 20px rgba(22,93,255,0.08);
  --shadow-lg: 0 8px 30px rgba(22,93,255,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --max-width: 1200px;
  --nav-height: 64px;
  --font: "Microsoft YaHei", "Source Han Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- 重置 ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- 通用容器 ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--text-2); text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
  transition: all .25s; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(22,93,255,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,93,255,0.4); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-light); color: var(--primary); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---- 导航栏 ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 1000; transition: box-shadow .3s, background .3s; border-bottom: 1px solid transparent;
}
.navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-bottom-color: var(--border); }
.navbar-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text); }
.navbar-logo .logo-icon { width: 32px; height: 32px; background: var(--gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.navbar-logo .logo-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar-menu { display: flex; align-items: center; gap: 32px; }
.navbar-menu a { font-size: 15px; color: var(--text-2); font-weight: 500; position: relative; }
.navbar-menu a:hover, .navbar-menu a.active { color: var(--primary); }
.navbar-menu a.active::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 1px; }
.navbar-menu li:has(> a[href="console.html"]) { display: none; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--bg-alt); border-radius: 20px; }
.lang-switch button { padding: 4px 10px; font-size: 13px; border-radius: 16px; color: var(--text-3); transition: all .2s; }
.lang-switch button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: all .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; padding: 120px 0 80px; overflow: hidden; background: linear-gradient(180deg, #F2F7FF 0%, #FFFFFF 100%); }
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(22,93,255,0.12), transparent 70%); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -150px; left: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(114,46,209,0.08), transparent 70%); border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; background: var(--primary-light); border-radius: 20px; font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 24px; }
.hero-title { font-size: 52px; font-weight: 700; line-height: 1.25; margin-bottom: 20px; color: var(--text); }
.hero-title .gradient-text { background: var(--gradient-tech); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 18px; color: var(--text-2); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 32px; font-weight: 700; color: var(--primary); }
.hero-stat .label { font-size: 14px; color: var(--text-3); }
.hero-visual { position: relative; height: 420px; }
.hero-visual .orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-visual .orb-1 { width: 280px; height: 280px; top: 40px; left: 80px; background: var(--gradient); opacity: 0.9; animation: float 6s ease-in-out infinite; box-shadow: 0 20px 60px rgba(22,93,255,0.3); }
.hero-visual .orb-2 { width: 120px; height: 120px; top: 0; right: 60px; background: var(--gradient-tech); opacity: 0.8; animation: float 5s ease-in-out infinite 1s; }
.hero-visual .orb-3 { width: 80px; height: 80px; bottom: 60px; right: 120px; background: linear-gradient(135deg, #00D9B2, #165DFF); opacity: 0.7; animation: float 4s ease-in-out infinite 0.5s; }
.hero-visual .model-chip { position: absolute; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.hero-visual .chip-1 { top: 50px; right: 20px; animation: float 4s ease-in-out infinite; }
.hero-visual .chip-2 { bottom: 80px; left: 20px; animation: float 5s ease-in-out infinite 1.5s; }
.hero-visual .chip-3 { top: 200px; right: 0; animation: float 4.5s ease-in-out infinite 0.8s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ---- 网格背景 ---- */
.grid-bg { position: relative; }
.grid-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(22,93,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(22,93,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

/* ---- 特性卡片 ---- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; transition: all .3s; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-card .icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; background: var(--primary-light); }
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ---- 模型卡片 ---- */
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.model-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .3s; position: relative; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.model-card .model-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.model-card .model-logo { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; font-weight: 700; flex-shrink: 0; }
.model-card .model-name { font-size: 16px; font-weight: 600; }
.model-card .model-vendor { font-size: 12px; color: var(--text-3); }
.model-card .model-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.model-card .tag { padding: 3px 10px; font-size: 12px; border-radius: 4px; background: var(--primary-light); color: var(--primary); }
.model-card .tag.code { background: #FFF7E8; color: var(--warning); }
.model-card .tag.vision { background: #E8FFEA; color: var(--success); }
.model-card .model-meta { font-size: 13px; color: var(--text-3); margin-bottom: 8px; display: flex; justify-content: space-between; }
.model-card .model-price { font-size: 13px; color: var(--text-2); padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.model-card .price-num { color: var(--primary); font-weight: 600; font-size: 15px; }

/* ---- 步骤流程 ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0.2; }
.step-item { text-align: center; position: relative; z-index: 1; }
.step-item .step-num { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--primary); box-shadow: var(--shadow); }
.step-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step-item p { font-size: 14px; color: var(--text-2); }

/* ---- 定价卡片 ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; transition: all .3s; display: flex; flex-direction: column; position: relative; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow-lg); }
.pricing-card.featured::before { content: attr(data-badge); position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pricing-card .plan-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pricing-card .plan-price { font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pricing-card .plan-price .unit { font-size: 14px; font-weight: 400; color: var(--text-3); }
.pricing-card .plan-desc { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.pricing-card .plan-features { flex: 1; margin-bottom: 24px; }
.pricing-card .plan-features li { font-size: 14px; color: var(--text-2); padding: 6px 0; padding-left: 24px; position: relative; }
.pricing-card .plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ---- 架构图 ---- */
.arch-diagram { max-width: 800px; margin: 0 auto; }
.arch-layer { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 0; position: relative; text-align: center; transition: all .3s; }
.arch-layer:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.arch-layer .layer-title { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.arch-layer .layer-items { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.arch-layer .layer-items span { padding: 4px 14px; font-size: 13px; background: var(--primary-light); border-radius: 6px; color: var(--text-2); }
.arch-arrow { text-align: center; color: var(--primary); font-size: 20px; margin: 4px 0; }

/* ---- 证言 ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .3s; }
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-card .quote { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }
.testimonial-card .author-info .name { font-size: 15px; font-weight: 600; }
.testimonial-card .author-info .role { font-size: 13px; color: var(--text-3); }

/* ---- CTA 区 ---- */
.cta-section { background: var(--gradient-tech); border-radius: 24px; padding: 56px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%); }
.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; position: relative; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; position: relative; }
.cta-section .btn { background: #fff; color: var(--primary); position: relative; }
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ---- 页脚 ---- */
.footer { background: var(--bg-dark); color: #C9CDD4; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .navbar-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #86909C; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #86909C; }

/* ---- 页面头(内页) ---- */
.page-header { padding: 120px 0 60px; text-align: center; background: linear-gradient(180deg, #F2F7FF, #fff); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(22,93,255,0.06), transparent 60%); border-radius: 50%; }
.page-header h1 { font-size: 42px; font-weight: 700; margin-bottom: 12px; position: relative; }
.page-header p { font-size: 17px; color: var(--text-2); position: relative; max-width: 600px; margin: 0 auto; }

/* ---- 搜索框 ---- */
.search-box { max-width: 480px; margin: 24px auto 0; position: relative; }
.search-box input { width: 100%; padding: 12px 20px 12px 44px; border: 1px solid var(--border); border-radius: 24px; font-size: 15px; outline: none; transition: all .2s; background: #fff; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,93,255,0.1); }
.search-box::before { content: '🔍'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; }

/* ---- 筛选栏 ---- */
.filter-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 14px; color: var(--text-3); }
.filter-group select { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: #fff; cursor: pointer; outline: none; }
.filter-group select:focus { border-color: var(--primary); }

/* ---- 表格 ---- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 14px 20px; text-align: left; font-size: 14px; }
table th { background: var(--bg-alt); color: var(--text-2); font-weight: 600; white-space: nowrap; }
table tr { border-bottom: 1px solid var(--border); }
table tr:last-child { border-bottom: none; }
table tr:hover { background: var(--primary-light); }

/* ---- 代码块 ---- */
.code-block { background: var(--bg-dark); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.code-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
.code-tabs { display: flex; gap: 4px; }
.code-tab { padding: 4px 12px; font-size: 13px; color: #86909C; border-radius: 4px; cursor: pointer; }
.code-tab.active { background: rgba(255,255,255,0.1); color: #fff; }
.code-copy { font-size: 13px; color: #86909C; cursor: pointer; padding: 4px 10px; border-radius: 4px; }
.code-copy:hover { background: rgba(255,255,255,0.1); color: #fff; }
.code-block pre { padding: 20px; overflow-x: auto; }
.code-block code { font-family: "Consolas", "Monaco", "Courier New", monospace; font-size: 14px; color: #C9CDD4; line-height: 1.7; }
.code-block .kw { color: #C678DD; }
.code-block .str { color: #98C379; }
.code-block .com { color: #7F848E; }
.code-block .fn { color: #61AFEF; }
.code-block .num { color: #D19A66; }

/* ---- 控制台布局 ---- */
.console-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-height)); margin-top: var(--nav-height); }
.sidebar { background: var(--bg-dark); color: #C9CDD4; padding: 24px 0; position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height)); overflow-y: auto; }
.sidebar-user { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.sidebar-user .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; margin-bottom: 10px; }
.sidebar-user .name { font-size: 15px; color: #fff; font-weight: 500; }
.sidebar-user .balance { font-size: 13px; color: #86909C; }
.sidebar-user .balance span { color: #FFD666; font-weight: 600; }
.sidebar-menu { padding: 0 12px; }
.sidebar-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; color: #C9CDD4; border-radius: 8px; margin-bottom: 4px; transition: all .2s; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: rgba(22,93,255,0.2); color: #fff; }
.sidebar-menu a .icon { font-size: 18px; width: 20px; text-align: center; }
.console-main { padding: 32px; background: var(--bg-alt); }
.console-panel { display: none; }
.console-panel.active { display: block; }
.panel-title { font-size: 22px; font-weight: 600; margin-bottom: 24px; }

/* ---- 数据卡片(控制台) ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .3s; }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .stat-label { font-size: 14px; color: var(--text-3); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-card .stat-value.primary { color: var(--primary); }
.stat-card .stat-trend { font-size: 13px; margin-top: 8px; }
.stat-card .stat-trend.up { color: var(--success); }
.stat-card .stat-trend.down { color: var(--danger); }

/* ---- 图表(CSS/SVG) ---- */
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.chart-card .chart-title { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 20px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar-chart .bar { width: 100%; max-width: 40px; background: var(--gradient); border-radius: 4px 4px 0 0; transition: all .3s; min-height: 4px; }
.bar-chart .bar:hover { opacity: 0.85; }
.bar-chart .bar-label { font-size: 12px; color: var(--text-3); }

/* ---- Playground ---- */
.playground { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.playground-settings { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.playground-settings .field { margin-bottom: 20px; }
.playground-settings label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-2); }
.playground-settings select, .playground-settings input[type="range"] { width: 100%; }
.playground-settings input[type="range"] { accent-color: var(--primary); }
.playground-settings .range-val { font-size: 13px; color: var(--primary); font-weight: 600; }
.playground-chat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; height: 520px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; }
.chat-msg { margin-bottom: 20px; display: flex; gap: 12px; }
.chat-msg.user .msg-avatar { background: var(--gradient); }
.chat-msg.assistant .msg-avatar { background: var(--bg-dark); }
.chat-msg .msg-avatar { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.chat-msg .msg-content { flex: 1; }
.chat-msg .msg-role { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-2); }
.chat-msg .msg-text { font-size: 14px; color: var(--text); line-height: 1.7; background: var(--bg-alt); padding: 12px 16px; border-radius: 4px 12px 12px 12px; }
.chat-input { border-top: 1px solid var(--border); padding: 16px; display: flex; gap: 12px; }
.chat-input textarea { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; resize: none; height: 44px; outline: none; font-size: 14px; }
.chat-input textarea:focus { border-color: var(--primary); }
.chat-tokens { font-size: 12px; color: var(--text-3); padding: 0 16px 12px; text-align: right; }

/* ---- API 密钥 ---- */
.key-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.key-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.key-item:last-child { border-bottom: none; }
.key-item .key-info .key-name { font-size: 15px; font-weight: 500; }
.key-item .key-info .key-value { font-size: 13px; color: var(--text-3); font-family: monospace; margin-top: 4px; }
.key-item .key-meta { text-align: right; font-size: 13px; color: var(--text-3); }
.badge { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 4px; }
.badge.active { background: #E8FFEA; color: var(--success); }
.badge.inactive { background: #FFF2E8; color: var(--warning); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: all .2s; }
.faq-item:hover { border-color: var(--primary); }
.faq-question { padding: 18px 24px; font-size: 16px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question .arrow { transition: transform .3s; color: var(--primary); font-size: 18px; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ---- 文档布局 ---- */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; margin-top: 40px; }
.docs-sidebar { position: sticky; top: 88px; align-self: start; }
.docs-sidebar h4 { font-size: 14px; font-weight: 600; color: var(--text-3); text-transform: uppercase; margin: 20px 0 10px; }
.docs-sidebar ul li a { display: block; padding: 8px 14px; font-size: 14px; color: var(--text-2); border-radius: 6px; margin-bottom: 2px; }
.docs-sidebar ul li a:hover, .docs-sidebar ul li a.active { background: var(--primary-light); color: var(--primary); }
.docs-content h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { font-size: 19px; font-weight: 600; margin: 28px 0 12px; }
.docs-content p { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.docs-content ul { margin-bottom: 16px; padding-left: 0; }
.docs-content ul li { font-size: 15px; color: var(--text-2); padding: 6px 0 6px 24px; position: relative; }
.docs-content ul li::before { content: '•'; position: absolute; left: 8px; color: var(--primary); font-weight: 700; }

/* ---- 登录页 ---- */
.login-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-brand { background: var(--gradient-tech); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-brand::before { content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%); border-radius: 50%; }
.login-brand .logo { font-size: 28px; font-weight: 700; margin-bottom: 40px; position: relative; }
.login-brand h1 { font-size: 40px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; position: relative; }
.login-brand p { font-size: 17px; opacity: 0.9; margin-bottom: 40px; position: relative; }
.login-brand .features li { display: flex; align-items: center; gap: 12px; font-size: 16px; margin-bottom: 16px; position: relative; }
.login-brand .features li .check { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.login-form .subtitle { font-size: 15px; color: var(--text-3); margin-bottom: 32px; }
.login-tabs { display: flex; gap: 24px; margin-bottom: 28px; border-bottom: 2px solid var(--border); }
.login-tab { padding: 10px 0; font-size: 16px; font-weight: 500; color: var(--text-3); cursor: pointer; position: relative; }
.login-tab.active { color: var(--primary); }
.login-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-2); }
.form-group input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; transition: all .2s; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,93,255,0.1); }
.form-row { display: flex; gap: 12px; align-items: center; }
.form-row .form-group { flex: 1; }
.send-code { white-space: nowrap; padding: 12px 16px; }
.login-divider { text-align: center; font-size: 14px; color: var(--text-3); margin: 24px 0; position: relative; }
.login-divider::before, .login-divider::after { content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: var(--border); }
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }
.social-login { display: flex; gap: 12px; }
.social-login button { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s; background: #fff; }
.social-login button:hover { border-color: var(--primary); background: var(--primary-light); }

/* ---- 模态框 ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 32px; max-width: 480px; width: 90%; position: relative; animation: modalIn .3s; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 22px; color: var(--text-3); cursor: pointer; }
.modal h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.modal p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

/* ---- Toast ---- */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg-dark); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 3000; opacity: 0; transition: all .3s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 淡入动画 ---- */
.fade-in { opacity: 0; transform: translateY(30px); transition: all .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .features-grid, .models-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .playground { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .navbar-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; gap: 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .navbar-menu a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .console-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar-menu a { margin-bottom: 0; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 26px; }
  .section-title { font-size: 28px; }
  .features-grid, .models-grid, .pricing-grid, .stat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-header h1 { font-size: 32px; }
  .cta-section { padding: 40px 24px; }
  .cta-section h2 { font-size: 24px; }
  .console-main { padding: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; }
  .filter-group select { width: 100%; }
}
