:root {
  /* 品牌色 */
  --color-primary: #FF6B35;
  --color-primary-light: #fff3ed;
  --color-primary-hover: #e55a2b;
  --color-accent: #07C160;
  --color-accent-light: #e8f8ee;
  --color-danger: #e53e3e;
  --color-warning: #f59e0b;
  
  /* 中性色 */
  --color-bg: #f5f5f7;
  --color-bg-card: #ffffff;
  --color-bg-sidebar: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-border: #e8e8ed;
  --color-border-light: #f0f0f5;
  
  /* 暗色主题 */
  --color-bg-dark: #0f0f1a;
  --color-bg-card-dark: #1a1a2e;
  --color-bg-sidebar-dark: #1a1a2e;
  --color-text-dark: #e0e0e0;
  --color-text-secondary-dark: #888;
  --color-border-dark: #2a2a3e;
  
  /* 间距系统 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  
  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
  
  /* 导航尺寸 */
  --sidebar-width: 240px;
  --header-height: 56px;
  --tabbar-height: 56px;
  
  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* 暗色主题自动适配 */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--color-bg-dark);
    --color-bg-card: var(--color-bg-card-dark);
    --color-bg-sidebar: var(--color-bg-sidebar-dark);
    --color-text: var(--color-text-dark);
    --color-text-secondary: var(--color-text-secondary-dark);
    --color-border: var(--color-border-dark);
    --color-primary-light: #2a1a0e;
    --color-accent-light: #0a1f15;
  }
}

[data-theme="dark"] {
  --color-bg: var(--color-bg-dark);
  --color-bg-card: var(--color-bg-card-dark);
  --color-bg-sidebar: var(--color-bg-sidebar-dark);
  --color-text: var(--color-text-dark);
  --color-text-secondary: var(--color-text-secondary-dark);
  --color-border: var(--color-border-dark);
  --color-primary-light: #2a1a0e;
  --color-accent-light: #0a1f15;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light dark;
}

/* 暗色/亮色切换过渡效果 */
html, html * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
/* ========= 网格系统 ========= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========= 布局组件 ========= */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏（桌面） */
.sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  z-index: 100;
  overflow-y: auto;
}
@media (min-width: 992px) {
  .sidebar { display: flex; flex-direction: column; }
}

/* 主内容区 */
.main-content {
  flex: 1;
  padding-bottom: calc(var(--tabbar-height) + var(--space-md));
}
@media (min-width: 992px) {
  .main-content {
    margin-left: var(--sidebar-width);
    padding-bottom: var(--space-md);
  }
}

/* 顶栏（桌面） */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-md);
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* 底部Tab栏（手机） */
.tabbar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-height);
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  z-index: 100;
}
@media (min-width: 992px) {
  .tabbar { display: none; }
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  gap: 2px;
}
.tabbar-item.active {
  color: var(--color-primary);
}
.tabbar-item .icon {
  font-size: 20px;
}

/* 页面容器 */
.page-container {
  padding: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 576px) {
  .page-container { padding: var(--space-lg); }
}

/* 卡片 */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

@media (hover: hover) {
  .card:active {
    transform: scale(0.98);
  }
}

/* 表单 */
.form-group {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--color-bg-card);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 6px;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
/* 按钮状态 */
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-outline:disabled, .btn-outline[disabled] {
  opacity: 0.35;
}

/* 统计卡片网格（响应式） */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
@media (min-width: 576px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  font-size: 13px;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
}
.table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 11px;
  text-transform: uppercase;
}
.table tr:hover td {
  background: var(--color-bg-subtle);
}
.table tr:active td {
  background: var(--color-border-light);
}
.table-clickable tr {
  cursor: pointer;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green { background: var(--color-accent-light); color: var(--color-accent); }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red { background: #fef2f2; color: var(--color-danger); }
.badge-blue { background: #eff6ff; color: #2563eb; }

/* Loading */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: var(--space-md);
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: var(--space-md);
}
.page-404 .icon { font-size: 64px; }
.page-404 h1 { font-size: 24px; }
.page-404 p { color: var(--color-text-secondary); }
/* ========= 认证页（登录/注册/忘记密码） ========= */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-md);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}
.auth-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.auth-header .auth-icon { font-size: 48px; margin-bottom: var(--space-sm); }
.auth-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.auth-header p { font-size: 14px; color: var(--color-text-secondary); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.auth-footer {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 13px;
  color: var(--color-text-muted);
}
.auth-footer .dot { margin: 0 8px; }

/* ========= 弹窗 ========= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-content {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-lg);
}

/* ========= Toast通知 ========= */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  animation: toastIn 0.3s ease;
}
.toast-success { background: var(--color-accent); color: white; }
.toast-error { background: var(--color-danger); color: white; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========= 模型卡片网格 ========= */
.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
@media (min-width: 576px) {
  .models-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .models-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ========= 移动端底部安全区 ========= */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========= Switch 开关 ========= */
.switch { display: inline-block; cursor: pointer; padding: 4px; }
.switch-track {
  width: 44px; height: 24px;
  background: var(--color-bg-subtle);
  border-radius: 24px;
  position: relative;
  transition: background 0.3s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.switch-track.on { background: var(--color-primary); }
.switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch-track.on .switch-thumb { transform: translateX(20px); }

@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 空状态 ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--color-text-muted);
  gap: 8px;
}
.empty-state .empty-icon { font-size: 48px; }
.empty-state .empty-title { font-size: 15px; font-weight: 600; color: var(--color-text-secondary); }
.empty-state .empty-desc { font-size: 13px; }
.empty-state .empty-action { margin-top: 8px; }

/* ========== 标签组件 ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
}

/* ========== 进度条 ========== */
.progress-bar {
  height: 8px;
  background: var(--color-bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.5s ease;
}

/* ========== 分类Tab ========== */
.cat-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: all 0.15s ease;
  user-select: none;
}
.cat-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.cat-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ========== 分割线组件 ========== */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-md) 0;
}

/* ========== 工具提示 ========== */
.tooltip {
  position: relative;
  cursor: help;
}
.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--color-text);
  color: var(--color-bg-card);
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.tooltip:hover::after {
  opacity: 1;
}

/* ========== 闪烁高亮 ========== */
@keyframes highlightFade {
  from { background: rgba(99,102,241,0.2); }
  to { background: transparent; }
}
.highlight-row {
  animation: highlightFade 1.5s ease;
}

/* ========== admin管理端卡片点击缩放 ========== */
.admin-card {
  cursor: pointer;
  text-align: center;
  padding: 20px;
  transition: all 0.15s ease;
}
.admin-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.admin-card:active {
  transform: scale(0.97);
}
.admin-card .admin-card-icon { font-size: 28px; margin-bottom: 8px; }
.admin-card .admin-card-title { font-size: 13px; font-weight: 600; color: var(--color-text); }
.admin-card .admin-card-sub { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }

/* ========== 桌面端顶部导航 ========== */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0 12px;
  overflow-x: auto;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.desktop-nav a.nav-link {
  white-space: nowrap;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}
.desktop-nav a.nav-link:hover { background: var(--color-bg-subtle); }
.desktop-nav a.nav-link.active {
  background: var(--color-primary);
  color: white;
}

/* ========== 手机端底部导航 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 54px;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 10000;
  box-shadow: 0 -1px 4px var(--color-border);
  padding: 0 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bottom-nav-item {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  color: var(--color-text-muted);
}
.bottom-nav-item.active {
  color: var(--color-primary);
}
.bottom-nav-item:active {
  opacity: 0.7;
}
.nav-icon { font-size: 20px; line-height: 1.3; }
.nav-label { font-size: 10px; line-height: 1.2; margin-top: 1px; font-weight: 400; }
.bottom-nav-item.active .nav-label {
  font-weight: 600;
}

/* ========== 响应式切换 ========== */
@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
  .desktop-nav { display: flex !important; }
}

@media (max-width: 767px) {
  .desktop-nav { display: none !important; }
  .bottom-nav { display: flex !important; }
}

/* 安全区适配（全面屏手机） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(54px + env(safe-area-inset-bottom));
  }
}

/* 防止内容被导航遮挡 */
@media (max-width: 767px) {
  #app {
    padding-bottom: 58px;
  }
}

/* mobile refinements */
@media (max-width: 767px) {
  .bottom-nav-item { min-width: 48px; padding: 6px 0; }
  .btn { min-height: 38px; font-size: 13px; padding: 8px 14px; }
  .card { padding: 14px; border-radius: 10px; }
  .model-card-mobile { padding: 12px 14px; }
  input, select, textarea { font-size: 16px !important; } /* 防止iOS自动缩放 */
  
  /* 移动端触控反馈 */
  .card:active, .bottom-nav-item:active, .cat-tab:active {
    opacity: 0.8;
    transform: scale(0.97);
  }
  .btn:active { transform: scale(0.96); }
  
  /* 移动端列表项点击高亮 */
  .list-item:active { background: var(--color-bg-subtle); }
}

/* ========== Landing页 ========== */
.landing-root {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-subtle) 100%);
}

/* Hero区 */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 40px;
  text-align: center;
}
.landing-hero-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255,107,53,0.06) 0%, transparent 70%);
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.landing-hero-content {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.landing-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(255,107,53,0.2);
  transition: transform 0.3s ease;
}
.landing-logo:hover { transform: scale(1.05); }
.landing-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.landing-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.landing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing-btn-primary { padding: 14px 32px; font-size: 16px; }
.landing-btn-outline { padding: 14px 32px; font-size: 16px; }

/* 统计数据 */
.landing-stats {
  padding: 16px 0 32px;
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 32px;
  text-align: center;
  min-width: 140px;
  transition: all 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Section标题 */
.section-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  margin: 8px auto 0;
}

/* 功能亮点网格 */
.landing-features { padding: 32px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--color-primary);
}
.feature-icon { font-size: 36px; margin-bottom: 10px; }
.feature-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }

/* 模型区 */
.landing-models { padding: 32px 0; }

/* 步骤区 */
.landing-steps {
  padding: 32px 0;
  background: var(--color-bg-subtle);
}
.steps-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  position: relative;
  transition: all 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.step-num {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.step-icon { font-size: 32px; margin: 8px 0; }
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step-desc { font-size: 12px; color: var(--color-text-secondary); }

/* 代码示例 */
.landing-code { padding: 32px 0; }
.code-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  max-width: 650px;
  margin: 0 auto;
}
.code-block pre {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.code-block code {
  color: var(--color-text-secondary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* 底部CTA */
.landing-cta-bottom {
  padding: 48px 0 40px;
  background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-subtle));
}

/* Footer */
.landing-footer {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}
.landing-footer p { color: var(--color-text); font-weight: 500; margin-bottom: 4px; }
.landing-footer-meta { font-size: 12px; color: var(--color-text-muted); font-weight: 400; }

/* 通用: 强调色文本 */
.text-primary { color: var(--color-primary); }

/* ========== Landing页移动端适配 ========== */
@media (max-width: 767px) {
  .landing-hero { padding: 40px 0 24px; }
  .landing-title { font-size: 24px; }
  .landing-subtitle { font-size: 14px; }
  .landing-btn-primary, .landing-btn-outline { padding: 12px 24px; font-size: 14px; }
  .stat-card { padding: 16px 24px; min-width: 100px; }
  .stat-value { font-size: 22px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { padding: 18px 14px; }
  .feature-icon { font-size: 28px; }
  .step-card { min-width: 140px; }
  .section-title { font-size: 18px; }
  .landing-cta-bottom { padding: 36px 0 24px; }
  .landing-footer { padding: 16px 0; font-size: 12px; }
}

@media (max-width: 400px) {
  .landing-title { font-size: 20px; }
  .landing-subtitle { font-size: 13px; }
  .features-grid { grid-template-columns: 1fr; }
  .landing-cta { flex-direction: column; align-items: center; }
  .landing-btn-primary, .landing-btn-outline { width: 100%; max-width: 280px; }
  .stat-card { min-width: 80px; padding: 12px 16px; }
  .stat-value { font-size: 18px; }
}
