/* ===== tokenlink-ai聚合平台新版 品牌样式体系（UI规范落地） ===== */
:root {
  color-scheme: light;

  /* 品牌色系 - 科技深蓝渐变（合规、稳定、权威） */
  --brand-blue: #165DFF;
  --brand-blue-2: #4080FF;
  --brand-blue-rgb: 22,93,255;
  --brand-blue-2-rgb: 64,128,255;
  --brand-gradient: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
  --brand-dark: #0E3D9C;

  /* 辅助色 */
  --color-success: #00B42A;
  --color-warning: #FF7D00;
  --color-danger: #F53F3F;
  --color-info-bg: #F0F7FF;

  /* 中性色（文字/背景/分割线） */
  --text-1: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --bg-page: #FFFFFF;
  --bg-card: #FAFBFC;
  --border-color: #E5E6EB;

  /* 兼容旧页面内联 var() 引用（自动跟随新配色） */
  --primary-color: #165DFF;
  --primary-hover: #4080FF;
  --primary-light: #4080FF;
  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-tertiary: #86909C;
  --bg-soft: #F0F7FF;
  --bg-card-soft: #FAFBFC;
  --border-soft: #E5E6EB;

  /* 兼容旧 style.css 的 --tl-* 变量体系 */
  --tl-primary: #165DFF;
  --tl-primary-dark: #0E3D9C;
  --tl-primary-light: #4080FF;
  --tl-secondary: #1D2129;
  --tl-accent: #4080FF;
  --tl-accent-green: #00B42A;
  --tl-accent-orange: #FF7D00;
  --tl-accent-red: #F53F3F;
  --tl-gradient: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
  --tl-gradient-dark: linear-gradient(135deg, #0E3D9C 0%, #165DFF 100%);
  --tl-text: #1D2129;
  --tl-text-light: #4E5969;
  --tl-text-white: #ffffff;
  --tl-bg: #FFFFFF;
  --tl-bg-soft: #F0F7FF;
  --tl-bg-dark: #0E3D9C;
  --tl-border: #E5E6EB;

  /* 间距 */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 48px;
  --sp-2xl: 80px;

  /* 圆角（文档统一 6px 按钮 / 8px 卡片） */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* 阴影（轻量化浅阴影） */
  --shadow-sm: 0 1px 3px rgba(29,33,41,0.06);
  --shadow-md: 0 4px 16px rgba(29,33,41,0.08);
  --shadow-lg: 0 12px 40px rgba(29,33,41,0.12);
  --shadow-blue: 0 8px 24px rgba(var(--brand-blue-rgb),0.16);

  /* 字体 */
  --font-base: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--text-1);
  font-size: 14px;
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 标题层级（文档规范） */
h1 { font-size: 32px; font-weight: 800; line-height: 1.3; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.35; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 16px; font-weight: 600; }
.text-3 { color: var(--text-3); }

/* ===== 按钮规范 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 12px 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: all .25s; white-space: nowrap;
}
.btn-primary {
  background-color: var(--brand-blue); background-image: var(--brand-gradient); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(var(--brand-blue-rgb),0.24); }
/* 主按钮内部文字(span.btn-text / span.btn-loading)继承白色，避免与蓝色底同色看不清 */
.btn-primary .btn-text, .btn-primary .btn-loading { color: #fff; }
.btn-outline {
  background: #fff; color: var(--brand-blue); border-color: rgba(var(--brand-blue-rgb),0.5);
}
.btn-outline:hover { background: var(--color-info-bg); border-color: var(--brand-blue); }
.btn-text { background: none; color: var(--brand-blue); padding: 10px 8px; }
.btn-text:hover { text-decoration: underline; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-lg .fa { font-size: 17px; }

/* ===== 章节通用 ===== */
.section { padding: var(--sp-2xl) 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand-blue); margin-bottom: 12px;
}
.section-title { font-size: 32px; font-weight: 800; color: var(--text-1); margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-2); max-width: 640px; margin: 0 auto; }
.section-header.left { text-align: center; }
.section-header.left .section-desc { margin: 0 auto; }

/* ===== 导航栏（固定顶栏，白底底部分割线） ===== */
#theme-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 24px; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo a {
  font-size: 20px; font-weight: 800; background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo img { max-height: 38px; }
[data-menu-location="header"] { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu .nav-link {
  font-size: 15px; font-weight: 500; color: var(--text-1);
  transition: color .25s; position: relative; white-space: nowrap; padding: 6px 0;
}
.nav-menu .nav-link:hover, .nav-menu .nav-link.active { color: var(--brand-blue); }
.nav-menu .nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--brand-gradient); border-radius: 1px;
}
.nav-menu .nav-link:hover::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--brand-gradient); border-radius: 1px; }
.nav-auth { display: flex; gap: 12px; align-items: center; }
.btn-login { font-size: 14px; font-weight: 500; color: var(--text-1); padding: 8px 16px; border-radius: var(--radius-sm); }
.btn-login:hover { color: var(--brand-blue); }
.btn-register {
  font-size: 13px; font-weight: 600; color: #fff; background-color: var(--brand-blue); background-image: var(--brand-gradient);
  padding: 9px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-blue); transition: all .25s; white-space: nowrap;
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--brand-blue-rgb),0.26); }

/* 下拉菜单 */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  margin-top: 12px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color); min-width: 200px; opacity: 0; visibility: hidden; transition: all .25s; z-index: 1000;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 12px 18px; font-size: 14px; color: var(--text-1); }
.dropdown-menu a:hover { background: var(--color-info-bg); color: var(--brand-blue); }
.dropdown-menu a.active { background: var(--color-info-bg); color: var(--brand-blue); font-weight: 600; }

/* 移动端菜单 */
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; padding: 10px; background: none; border: none; cursor: pointer; border-radius: var(--radius-sm); }
.menu-toggle:hover { background: rgba(var(--brand-blue-rgb),0.08); }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--brand-blue); border-radius: 2px; transition: transform .3s, opacity .3s; }
#theme-header.mobile-nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#theme-header.mobile-nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
#theme-header.mobile-nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 用户菜单 */
.user-menu { position: relative; display: flex; align-items: center; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .3s; }
.user-avatar:hover { transform: scale(1.05); }
.user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s; z-index: 1000; }
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-info { padding: 16px; border-bottom: 1px solid var(--border-color); }
.user-name { font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.user-email { font-size: 13px; color: var(--text-2); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 8px 0; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text-1); font-size: 14px; transition: background .3s; }
.dropdown-item:hover { background: var(--color-info-bg); color: var(--brand-blue); }

/* ===== Hero 区域 ===== */
.hero-section {
  padding: 160px 0 100px; background: var(--tl-gradient-dark); color: #fff; text-align: center; position: relative; overflow: hidden;
}
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 28% 40%, rgba(var(--brand-blue-2-rgb),0.28) 0%, transparent 50%), radial-gradient(circle at 72% 60%, rgba(var(--brand-blue-rgb),0.2) 0%, transparent 52%); }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--brand-blue-2-rgb),0.18); border: 1px solid rgba(var(--brand-blue-2-rgb),0.4); padding: 6px 16px; border-radius: var(--radius-full); font-size: 14px; color: #fff; margin-bottom: 24px; }
.hero-badge i { color: #9BC0FF; }
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.hero-title .gradient-text { background: linear-gradient(135deg, #9BC0FF 0%, #FFFFFF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 680px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand-blue); padding: 15px 32px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; transition: all .25s; box-shadow: var(--shadow-lg); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.btn-hero-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.28); color: #fff; padding: 15px 32px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; transition: all .25s; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }

/* ===== 卡片通用 ===== */
.tl-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; transition: all .25s; box-shadow: var(--shadow-sm); }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-blue); }
.tl-card-highlight { background: var(--color-info-bg); border: 1px solid rgba(var(--brand-blue-rgb),0.28); border-radius: var(--radius-md); padding: 32px; }
.tl-card-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-1); }
.tl-card-title i { color: var(--brand-blue); margin-right: 8px; }
.tl-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.tl-icon { width: 52px; height: 52px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.tl-icon.blue { background: var(--color-info-bg); color: var(--brand-blue); }
.tl-icon.green { background: rgba(0,180,42,0.1); color: var(--color-success); }
.tl-icon.orange { background: rgba(255,125,0,0.1); color: var(--color-warning); }

/* ===== 产品能力区块 ===== */
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.capability-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; transition: all .25s; text-align: center; }
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-blue); }
.capability-card .tl-icon { margin-left: auto; margin-right: auto; }
.capability-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-1); }
.capability-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.capability-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.capability-step { background: var(--bg-card); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.capability-step-num { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.capability-step h4 { font-size: 16px; margin-bottom: 8px; }
.capability-step p { font-size: 14px; color: var(--text-2); }

/* ===== 合规体系区块 ===== */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.compliance-card { background: var(--color-info-bg); border: 1px solid rgba(var(--brand-blue-rgb),0.28); border-radius: var(--radius-md); padding: 32px; transition: all .25s; }
.compliance-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.compliance-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.compliance-card h3 i { color: var(--brand-blue); }
.compliance-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.compliance-callout { background: var(--color-info-bg); border-left: 4px solid var(--brand-blue); border-radius: var(--radius-sm); padding: 20px 24px; margin-top: 40px; font-size: 14px; color: var(--text-2); }
.compliance-callout strong { color: var(--text-1); }

/* ===== 数据表格（模型备案清单） ===== */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table thead { background: var(--bg-card); }
.data-table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--text-1); padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.data-table td { font-size: 14px; color: var(--text-2); padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.data-table tbody tr:hover { background: var(--color-info-bg); }
.data-table tbody tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; }
.tag-success { background: rgba(0,180,42,0.1); color: var(--color-success); }
.tag-info { background: var(--color-info-bg); color: var(--brand-blue); }
.tag-warning { background: rgba(255,125,0,0.1); color: var(--color-warning); }

/* ===== 模型资源区块 ===== */
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.model-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px 24px; text-align: center; transition: all .25s; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-blue); }
.model-icon { font-size: 40px; margin-bottom: 14px; }
.model-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.model-card p { font-size: 13px; color: var(--text-2); }
.model-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--color-info-bg); color: var(--brand-blue); font-size: 12px; }

/* ===== 计费区块 ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 36px 32px; transition: all .25s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured { background: var(--color-info-bg); border: 1px solid rgba(var(--brand-blue-rgb),0.35); box-shadow: var(--shadow-blue); }
.pricing-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.pricing-price { font-size: 36px; font-weight: 800; color: var(--brand-blue); margin-bottom: 16px; }
.pricing-price small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pricing-card ul { margin: 20px 0 24px; }
.pricing-card li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); padding: 8px 0; }
.pricing-card li i { color: var(--color-success); font-size: 13px; }
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.pricing-table th, .pricing-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.pricing-table th { background: var(--bg-card); font-weight: 600; color: var(--text-1); }
.pricing-table td { color: var(--text-2); }

/* ===== 文档区块 ===== */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.docs-sidebar { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.docs-sidebar h4 { font-size: 13px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; margin-bottom: 12px; }
.docs-sidebar a { display: block; padding: 10px 12px; font-size: 14px; color: var(--text-2); border-radius: var(--radius-sm); }
.docs-sidebar a:hover { background: var(--color-info-bg); color: var(--brand-blue); }
.docs-content { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 40px; box-shadow: var(--shadow-sm); min-width: 0; }
.docs-content h2 { font-size: 22px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.docs-content h3 { font-size: 18px; margin: 28px 0 12px; }
.docs-content p { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.code-block { background: #1D2129; color: #E5E6EB; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; line-height: 1.7; border-radius: var(--radius-sm); padding: 20px; overflow-x: auto; margin: 16px 0; }
.code-block .c-comment { color: #86909C; }
.code-block .c-key { color: #4080FF; }
.code-block .c-str { color: #00B42A; }
.param-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.param-table th, .param-table td { padding: 12px 16px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--border-color); }
.param-table th { background: var(--bg-card); font-weight: 600; color: var(--text-1); }
.param-table td { color: var(--text-2); }

/* ===== FAQ 区块 ===== */
.faq-section { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 15px; font-weight: 600; color: var(--text-1); cursor: pointer; background: #fff; }
.faq-q:hover { color: var(--brand-blue); }
.faq-q i { transition: transform .25s; color: var(--brand-blue); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 20px; font-size: 14px; color: var(--text-2); line-height: 1.8; border-top: 1px solid var(--border-color); padding-top: 16px; }
.faq-item.open .faq-a { display: block; }

/* ===== 关于区块 ===== */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-stat { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px 24px; text-align: center; }
.about-stat h3 { font-size: 30px; font-weight: 800; color: var(--brand-blue); }
.about-stat p { font-size: 14px; color: var(--text-2); }
.contact-form { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-1); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; color: var(--text-1); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb),0.12); }

/* ===== 页面内页头 ===== */
.hd-page-header { background: var(--tl-gradient-dark); color: #fff; padding: 96px 0 56px; text-align: center; }
.hd-page-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.hd-page-header p { font-size: 16px; opacity: .9; }

/* ===== CTA 区域 ===== */
.cta-section { background: var(--color-info-bg); text-align: center; padding: var(--sp-2xl) 0; }
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.cta-section p { font-size: 16px; color: var(--text-2); margin-bottom: 28px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-gradient); color: #fff; padding: 15px 32px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; box-shadow: var(--shadow-blue); transition: all .25s; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(var(--brand-blue-rgb),0.3); }

/* ===== Footer（深灰底白字，合规公示） ===== */
#theme-footer { background: #1D2129; color: #E5E6EB; padding: 64px 0 32px; }
.footer-grid { margin-bottom: 0; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: #86909C; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; text-align: center; font-size: 13px; color: #86909C; line-height: 1.9; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }
.footer-slogan { margin-top: 8px; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.footer-links a { font-size: 13px; color: #86909C; }
.footer-links a:hover { color: #fff; }

/* ===== 滚动到顶部 ===== */
#scroll-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border: none; border-radius: 8px; background: var(--brand-gradient); color: #fff; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 999; box-shadow: var(--shadow-blue); }
#scroll-to-top.visible { opacity: 1; visibility: visible; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .capability-grid, .services-grid, .compliance-grid, .features-grid, .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar { position: static; }
  .docs-content, .docs-sidebar { min-width: 0; width: 100%; box-sizing: border-box; }
  .hero-title { font-size: 38px; }
}
@media (max-width: 768px) {
  /* 移动端头部固定两行结构（grid）：第一行 logo 居中，第二行 登录/注册/多语言 + 汉堡菜单（右上锚定） */
  .nav-container { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo logo" "auth toggle"; height: auto; padding: 10px 16px; row-gap: 10px; column-gap: 12px; }
  .logo { grid-area: logo; justify-content: center; }
  .nav-auth .btn-primary { display: none; }
  [data-menu-location="header"] { display: contents; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 16px 24px 32px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border-color); display: none; overflow-y: auto; max-height: calc(100vh - 60px); z-index: 999; }
  #theme-header.mobile-nav-open .nav-menu { display: flex; }
  .menu-toggle { grid-area: toggle; display: flex; justify-self: end; }
  .nav-auth { grid-area: auth; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  /* 移动端用户下拉菜单：头像在左列靠左，drop-down 改向右展开并钳制宽度，避免向左溢出被视口裁剪 */
  .user-dropdown { left: 0; right: auto; z-index: 9999; max-width: calc(100vw - 32px); }
  .user-dropdown { min-width: 200px; }
  .btn-register { padding: 8px 14px; }
  .capability-grid, .services-grid, .compliance-grid, .features-grid, .compare-grid, .models-grid, .about-grid, .pricing-grid, .capability-steps { grid-template-columns: 1fr; }
  .hero-section { padding: 120px 0 64px; }
  .hero-title { font-size: 28px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }

  /* ===== 移动端二级菜单：纵向展开 + 点击切换 ===== */
  .has-dropdown { position: static; }
  .has-dropdown > .nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .has-dropdown > .nav-link::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; margin-left: 8px; color: var(--text-2); transition: transform .25s; }
  .has-dropdown.expanded > .nav-link::after { transform: rotate(180deg); }
  .dropdown-menu {
    position: static; top: auto; left: auto; margin: 0; width: 100%;
    transform: none; background: transparent; border: none; box-shadow: none;
    min-width: 0; opacity: 1; visibility: visible; border-radius: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
    padding: 0 0 0 16px;
  }
  .has-dropdown.expanded .dropdown-menu { max-height: 500px; padding: 12px 0 4px 16px; }
  .dropdown-menu a { padding: 12px 16px; border-left: 2px solid var(--border-color); }
  .dropdown-menu a:hover { border-left-color: var(--brand-blue); }
  .dropdown-menu a.active { border-left-color: var(--brand-blue); }

  /* ===== 移动端表格 / 页面头 / 提示块自适应 ===== */
  .hd-page-header { padding: 72px 0 36px; }
  .hd-page-header h1 { font-size: 24px; }
  .hd-page-header p { font-size: 14px; }
  .data-table, .pricing-table, .param-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td, .pricing-table th, .pricing-table td, .param-table th, .param-table td { padding: 12px 14px; font-size: 13px; }
  .compliance-callout { padding: 16px; font-size: 13px; }

  /* ===== 移动端模型广场：2 列卡片 + 标签换行 ===== */
  .models-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .model-card { padding: 20px 14px; }
  .model-icon { font-size: 30px; margin-bottom: 10px; }
  .model-card h4 { font-size: 14px; }
  .model-card p { font-size: 12px; }
  .model-badge { font-size: 11px; padding: 2px 8px; }
  .section-header.left { margin-bottom: 32px; }

  /* ===== 移动端 API 文档：单栏 + 压缩内边距 ===== */
  .docs-content { padding: 20px 16px; }
  .docs-content h2 { font-size: 18px; }
  .docs-content h3 { font-size: 16px; }
  .docs-content p { font-size: 13px; }
  .code-block { font-size: 12px; padding: 14px; }
  .docs-sidebar { padding: 16px; }
  .docs-sidebar a { padding: 8px 10px; font-size: 13px; }

  /* ===== 移动端 API 文档目录：改为顶部横向滚动胶囊导航（避免 14 项长竖列占满屏） ===== */
  .docs-layout { grid-template-columns: 1fr; gap: 16px; }
  .docs-sidebar { display: flex; align-items: center; gap: 8px; overflow-x: auto; white-space: nowrap; padding: 12px 16px; margin-bottom: 16px; position: static; border-radius: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .docs-sidebar::-webkit-scrollbar { display: none; }
  .docs-sidebar h4 { display: none; }
  .docs-sidebar a { flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: var(--color-info-bg); border: 1px solid var(--border-color); font-size: 13px; color: var(--text-2); }
  .docs-sidebar a:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
}

/* ===== 多语言切换器（静态兜底：不依赖 JS 即可显示，移动端可见） ===== */
.lang-switcher { position: relative; display: inline-block; margin-left: 12px; }
.lang-switcher-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: inherit; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px; transition: all .25s ease; line-height: 1; white-space: nowrap; }
.lang-switcher-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.lang-switcher-btn .fa-globe { font-size: 14px; opacity: .85; }
.lang-switcher-btn .chevron { font-size: 9px; opacity: .6; transition: transform .25s ease; }
.lang-switcher.open .lang-switcher-btn .chevron { transform: rotate(180deg); }
.lang-switcher-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08); min-width: 172px; z-index: 9999; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right; transition: all .22s cubic-bezier(.4,0,.2,1); padding: 6px 0; }
.lang-switcher.open .lang-switcher-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #374151; text-decoration: none; font-size: 13.5px; cursor: pointer; position: relative; }
.lang-item:hover { background: #f0f5ff; }
.lang-item.active { color: #4f46e5; font-weight: 600; background: #eef2ff; }
.lang-item .flag { font-size: 17px; line-height: 1; }
.lang-item .check { margin-left: auto; font-size: 12px; color: #4f46e5; opacity: 0; }
.lang-item.active .check { opacity: 1; }
@media (max-width: 768px) { .lang-switcher { margin-left: 0; } .lang-switcher-btn span.name { display: none; } .lang-switcher-btn { padding: 7px 10px; } }

/* ===== 导航水平菜单：始终单行排列，绝不叠成双层（放不下时由 main.js 折叠为汉堡菜单） ===== */
#theme-header .nav-menu { flex-wrap: nowrap !important; }
#theme-header .nav-menu > li { flex: 0 0 auto; }

/* ===== 自适应折叠导航（菜单放不下一整行时，由 main.js 加 .nav-collapse 显示汉堡菜单） ===== */
#theme-header.nav-collapse .nav-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 0; align-items: stretch;
  background: #fff; padding: 16px 24px 32px;
  box-shadow: var(--shadow-lg); border-top: 1px solid var(--border-color);
  display: none; overflow-y: auto; max-height: calc(100vh - 68px); z-index: 999;
}
#theme-header.nav-collapse.mobile-nav-open .nav-menu { display: flex; }
#theme-header.nav-collapse .nav-item { width: 100%; }
#theme-header.nav-collapse .nav-menu .nav-link { padding: 12px 0; }
#theme-header.nav-collapse .menu-toggle { display: flex; }
#theme-header.nav-collapse .nav-auth { flex-wrap: nowrap; }
#theme-header.nav-collapse .has-dropdown { position: static; }
#theme-header.nav-collapse .has-dropdown > .nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; }
#theme-header.nav-collapse .has-dropdown > .nav-link::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; margin-left: 8px; color: var(--text-2); transition: transform .25s; }
#theme-header.nav-collapse .has-dropdown.expanded > .nav-link::after { transform: rotate(180deg); }
#theme-header.nav-collapse .dropdown-menu {
  position: static; top: auto; left: auto; margin: 0; width: 100%; transform: none;
  background: transparent; border: none; box-shadow: none; min-width: 0;
  opacity: 1; visibility: visible; border-radius: 0;
  max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  padding: 0 0 0 16px;
}
#theme-header.nav-collapse .has-dropdown.expanded .dropdown-menu { max-height: 500px; padding: 12px 0 4px 16px; }
#theme-header.nav-collapse .dropdown-menu a { padding: 12px 16px; border-left: 2px solid var(--border-color); }
#theme-header.nav-collapse .dropdown-menu a:hover,
#theme-header.nav-collapse .dropdown-menu a.active { border-left-color: var(--brand-blue); }
