/* ============================================================
   apik.plus — 站点样式（视觉复刻 aitokenpilot.com/home，teal 变体）
   双主题: light (默认) / dark (html.dark)
   双语: .zh / .en 由 html.lang-en 切换
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  --primary: #0d9488;        /* teal-600 */
  --primary-2: #14b8a6;      /* teal-500 */
  --primary-3: #2dd4bf;      /* teal-400 */
  --primary-deep: #0f766e;   /* teal-700 */
  --primary-soft: #ccfbf1;   /* teal-100 */

  --bg: #f8fafc;
  --bg2: #f0fdfa;            /* teal-50 淡青 */
  --bg3: #f5f5f4;
  --card: rgba(255, 255, 255, 0.6);
  --card-solid: #ffffff;
  --line: rgba(100, 116, 139, 0.16);
  --line-strong: rgba(13, 148, 136, 0.35);

  --text: #1c1917;           /* stone-900 */
  --text2: #57534e;          /* stone-600 */
  --text3: #78716c;          /* stone-500 */

  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;

  --code-bg: #0f172a;        /* slate-900 */
  --code-text: #e2e8f0;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Fira Code", monospace;
}

html.dark {
  --primary: #2dd4bf;
  --primary-2: #14b8a6;
  --primary-3: #5eead4;
  --primary-deep: #0d9488;
  --primary-soft: rgba(20, 184, 166, 0.16);

  --bg: #141413;
  --bg2: #191918;
  --bg3: #1f1f1e;
  --card: rgba(31, 31, 30, 0.62);
  --card-solid: #1c1c1b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(45, 212, 191, 0.35);

  --text: #e7e5e4;
  --text2: #a8a29e;
  --text3: #8a8580;

  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 45%, var(--bg3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-deep); text-decoration: none; }
html.dark a { color: var(--primary-3); }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; }
img { max-width: 100%; }

/* 双语切换 */
.en { display: none !important; }
html.lang-en .en { display: revert !important; }
html.lang-en .zh { display: none !important; }

/* ---------- 布局容器 ---------- */
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid var(--line);
}
html.dark .site-header { background: rgba(20, 20, 19, 0.72); }
.header-inner {
  max-width: 1152px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 12px; box-shadow: var(--shadow); }
.brand-name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 13px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--text2); transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(100, 116, 139, 0.1); color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--primary-deep); background: rgba(13, 148, 136, 0.08); }
html.dark .nav-links a.active { color: var(--primary-3); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text2); cursor: pointer;
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: rgba(100, 116, 139, 0.1); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text2); font-size: 13px; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: background .18s, color .18s;
}
.lang-btn:hover { background: rgba(100, 116, 139, 0.1); color: var(--text); }
.menu-btn { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; flex: 0 0 auto; }
.btn svg * { max-width: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(13, 148, 136, 0.45);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(13, 148, 136, 0.55); }
.btn-ghost {
  background: var(--card); color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

/* ---------- 落地页（首页） ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.blobs { pointer-events: none; position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.blob-1 { width: 380px; height: 380px; right: -160px; top: -160px; background: rgba(45, 212, 191, 0.22); }
.blob-2 { width: 380px; height: 380px; left: -160px; bottom: -160px; background: rgba(13, 148, 136, 0.16); }
.blob-3 { width: 280px; height: 280px; left: 30%; top: 22%; background: rgba(45, 212, 191, 0.12); }
.blob-4 { width: 250px; height: 250px; right: 22%; bottom: 20%; background: rgba(13, 148, 136, 0.10); }
.grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}
.landing > * { position: relative; z-index: 1; }

.hero-landing { flex: 1; display: flex; align-items: center; padding: 72px 0 48px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-copy { text-align: left; }
.hero-title {
  font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.12; margin-bottom: 18px; color: var(--text);
}
.hero-title .grad {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-2), var(--primary-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 19px; color: var(--text2); margin-bottom: 30px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta .btn { white-space: nowrap; }
.hero-cta .btn svg { width: 16px; height: 16px; max-width: 16px; flex: 0 0 auto; }

/* ---------- 终端窗口 ---------- */
.terminal { width: 100%; max-width: 460px; margin-left: auto; }
.terminal-window {
  width: 100%;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1),
              inset 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  transition: transform .3s ease;
}
.terminal-window:hover { transform: perspective(1000px) rotateX(0) rotateY(0) translateY(-4px); }
html.dark .terminal-window {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(45, 212, 191, 0.35),
              0 0 40px rgba(45, 212, 191, 0.12), inset 0 1px rgba(255, 255, 255, 0.1);
}
.terminal-header {
  display: flex; align-items: center; padding: 12px 16px;
  background: rgba(30, 41, 59, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-buttons { display: flex; gap: 8px; }
.terminal-buttons span { width: 12px; height: 12px; border-radius: 50%; }
.btn-close { background: #ef4444; }
.btn-minimize { background: #eab308; }
.btn-maximize { background: #22c55e; }
.terminal-title {
  flex: 1; text-align: center; font-size: 12px; font-family: var(--mono);
  color: #64748b; margin-right: 52px;
}
.terminal-body { padding: 20px 24px; font-family: var(--mono); font-size: 14px; line-height: 2; }
.code-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; opacity: 0; animation: line-appear .5s ease forwards; }
.line-1 { animation-delay: .3s; }
.line-2 { animation-delay: 1s; }
.line-3 { animation-delay: 1.8s; }
.line-4 { animation-delay: 2.5s; }
@keyframes line-appear { 0% { opacity: 0; transform: translateY(5px); } 100% { opacity: 1; transform: translateY(0); } }
.code-prompt { color: #22c55e; font-weight: 700; }
.code-cmd { color: #38bdf8; }
.code-flag { color: #a78bfa; }
.code-url { color: #14b8a6; }
.code-comment { color: #64748b; font-style: italic; }
.code-success { color: #22c55e; background: rgba(34, 197, 94, 0.15); padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.code-response { color: #fbbf24; }
.cursor {
  display: inline-block; width: 8px; height: 16px; background: #22c55e;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ---------- 标签胶囊 ---------- */
.tag-pills { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; justify-content: center; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); padding: 10px 20px;
  backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.tag-pill svg { width: 15px; height: 15px; color: var(--primary-2); }
.tag-pill span { font-size: 14px; font-weight: 500; color: var(--text); }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; }
.fcard {
  border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  padding: 26px; backdrop-filter: blur(8px);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.fcard:hover { box-shadow: 0 18px 40px -14px rgba(13, 148, 136, 0.28); border-color: var(--line-strong); transform: translateY(-2px); }
.fcard-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s;
}
.fcard:hover .fcard-icon { transform: scale(1.1); }
.fcard-icon svg { width: 24px; height: 24px; color: #fff; }
.fcard-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 18px -6px rgba(59, 130, 246, 0.5); }
.fcard-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 8px 18px -6px rgba(20, 184, 166, 0.5); }
.fcard-icon.purple { background: linear-gradient(135deg, #a855f7, #9333ea); box-shadow: 0 8px 18px -6px rgba(168, 85, 247, 0.5); }
.fcard h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.fcard p { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ---------- 支持平台徽章 ---------- */
.providers-title { text-align: center; margin-bottom: 12px; }
.providers-title h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.providers-title p { font-size: 15px; color: var(--text2); }
.provider-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 72px; }
.pbadge {
  display: flex; align-items: center; gap: 10px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--card); padding: 12px 18px;
  backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.06);
}
.pbadge.dim { border-color: var(--line); opacity: 0.65; }
.pbadge-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.pbadge-icon.orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.pbadge-icon.green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.pbadge-icon.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.pbadge-icon.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.pbadge-icon.zinc { background: linear-gradient(135deg, #71717a, #3f3f46); }
.pbadge-icon.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.pbadge-name { font-size: 14px; font-weight: 600; }
.pbadge-tag {
  font-size: 10px; font-weight: 600; color: var(--primary-deep);
  background: var(--primary-soft); border-radius: 4px; padding: 2px 6px;
}
.pbadge-tag.gray { color: var(--text3); background: rgba(100, 116, 139, 0.14); }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg2); text-align: center; padding: 64px 24px;
}
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: var(--text2); margin-bottom: 26px; }

/* ---------- 页面 Hero（子页面） ---------- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--primary-deep); text-transform: uppercase; margin-bottom: 14px;
}
html.dark .page-hero .tag { color: var(--primary-3); }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 14px; }
.page-hero p { font-size: 17px; color: var(--text2); max-width: 680px; margin: 0 auto; }

/* ---------- 内容区 ---------- */
.section { padding: 12px 0 72px; }
.section h2 { font-size: 24px; font-weight: 700; margin: 44px 0 16px; }
.section h2:first-child { margin-top: 0; }
.section h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.section p { margin: 10px 0; }
.section ul, .section ol { margin: 10px 0 10px 22px; }
.section li { margin: 6px 0; }
.meta { font-size: 13px; color: var(--text3); margin-bottom: 24px; }
.muted { color: var(--text3); font-size: 14px; }
.article h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.article { max-width: 820px; }

/* ---------- 卡片 / 提示框 ---------- */
.card {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); padding: 26px; backdrop-filter: blur(8px);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text2); }
.card ul { margin: 12px 0 0 18px; }
.card li { font-size: 13.5px; color: var(--text2); margin: 4px 0; }
.grid { display: grid; gap: 22px; }
.cols2 { grid-template-columns: repeat(2, 1fr); }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--primary-2);
  background: var(--card); border-radius: 10px; padding: 16px 20px;
  font-size: 14px; margin: 20px 0;
}
.notice strong { display: block; margin-bottom: 4px; }
.notice.warn { border-left-color: var(--amber); }
.notice.ok { border-left-color: var(--green); }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
thead th {
  text-align: left; font-weight: 600; font-size: 13px; color: var(--text2);
  padding: 10px 14px; border-bottom: 2px solid var(--line);
}
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: rgba(13, 148, 136, 0.04); }
table code {
  background: rgba(13, 148, 136, 0.08); color: var(--primary-deep);
  padding: 2px 7px; border-radius: 6px; font-size: 12.5px;
}
html.dark table code { color: var(--primary-3); }

/* ---------- 代码块 ---------- */
pre {
  background: var(--code-bg); color: var(--code-text);
  border-radius: 12px; padding: 20px 24px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; margin: 16px 0;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35);
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 44px 24px 28px;
  background: rgba(255, 255, 255, 0.4);
}
html.dark .site-footer { background: rgba(255, 255, 255, 0.015); }
.footer-grid {
  max-width: 1152px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 28px;
}
.footer-grid h5 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-grid a {
  display: block; font-size: 13.5px; color: var(--text2); padding: 4px 0;
}
.footer-grid a:hover { color: var(--text); }
.copyright {
  max-width: 1152px; margin: 0 auto; text-align: center;
  font-size: 13px; color: var(--text3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .terminal { margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr; }
  .cols2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--card-solid); border-bottom: 1px solid var(--line);
    padding: 12px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
    background: transparent; color: var(--text); font-size: 17px; cursor: pointer;
  }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .terminal-body { padding: 16px 16px; font-size: 12.5px; }
  .hero-title { font-size: 34px; }
  .brand-name { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }
}

/* ---------- 文档区 (docs) ---------- */
.docs-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px;
  max-width: 1152px; margin: 0 auto; padding: 40px 24px 72px; align-items: start;
}
.docs-sidebar { position: sticky; top: 84px; }
.docs-sidebar h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 12px;
}
.docs-sidebar a {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px;
  color: var(--text2); margin-bottom: 2px; transition: background .15s, color .15s;
}
.docs-sidebar a:hover { background: rgba(100, 116, 139, 0.1); color: var(--text); text-decoration: none; }
.docs-sidebar a.active { background: rgba(13, 148, 136, 0.1); color: var(--primary-deep); font-weight: 600; }
html.dark .docs-sidebar a.active { color: var(--primary-3); }
.docs-content { min-width: 0; }
.docs-content h1 { font-size: 34px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.015em; }
.docs-content h2 { font-size: 24px; font-weight: 700; margin: 44px 0 14px; }
.docs-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.docs-content h4 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.docs-content p { margin: 10px 0; }
.docs-content ul, .docs-content ol { margin: 10px 0 10px 22px; }
.docs-content li { margin: 6px 0; }
.docs-content a { color: var(--primary-deep); }
html.dark .docs-content a { color: var(--primary-3); }
.docs-content blockquote {
  border-left: 3px solid var(--primary-2); background: var(--card);
  padding: 12px 18px; border-radius: 0 10px 10px 0; margin: 16px 0;
}
.docs-content code:not(pre code) {
  background: rgba(13, 148, 136, 0.08); color: var(--primary-deep);
  padding: 2px 7px; border-radius: 6px; font-size: 13px;
}
html.dark .docs-content code:not(pre code) { color: var(--primary-3); }

/* custom-block (info/warning) */
.custom-block { border-radius: 10px; padding: 14px 18px; margin: 18px 0; font-size: 14px; border: 1px solid var(--line); }
.custom-block .custom-block-title { font-weight: 700; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.custom-block.info { border-left: 3px solid var(--primary-2); background: var(--card); }
.custom-block.warning { border-left: 3px solid var(--amber); background: var(--card); }

/* link-grid (terminal page) */
.link-grid { display: grid; gap: 14px; margin: 20px 0; }
.link-grid--3 { grid-template-columns: repeat(3, 1fr); }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.link-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.link-card__title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.link-card__desc { font-size: 13px; color: var(--text3); }
.link-card__arrow { color: var(--text3); flex-shrink: 0; }

/* model-list */
.model-list { margin: 24px 0; }
.model-list__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.model-list__live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green); }
.model-list__live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.model-list__live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.35); animation: ml-ping 1.5s ease-out infinite;
}
@keyframes ml-ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.model-list__endpoint-label {
  background: rgba(13, 148, 136, 0.1); color: var(--primary-deep);
  padding: 2px 8px; border-radius: 6px; font-size: 12px; font-family: var(--mono);
}
html.dark .model-list__endpoint-label { color: var(--primary-3); }
.model-list__hint { font-size: 12px; color: var(--text3); }
.model-list__title { font-size: 18px; font-weight: 700; margin: 14px 0 6px; }
.model-list__sub { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.model-list__cols { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.model-list__col { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); }
.model-list__col-title { font-size: 15px; font-weight: 700; }
.model-list__col-count { font-size: 12px; color: var(--text3); margin-left: 8px; font-weight: 500; }
.model-list__col-blurb { font-size: 13px; color: var(--text3); margin: 4px 0 12px; }
.model-cat { margin-bottom: 14px; }
.model-cat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.model-cat__icon {
  display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(13, 148, 136, 0.1); color: var(--primary-deep); flex-shrink: 0;
}
html.dark .model-cat__icon { color: var(--primary-3); }
.model-cat__title { font-size: 14px; font-weight: 600; }
.model-cat__desc { font-size: 12px; color: var(--text3); }
.model-cat__list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.model-cat__list li { margin: 0 !important; }
.model-item {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  background: var(--card-solid); cursor: pointer; font-size: 13px;
  font-family: var(--font); transition: border-color .15s, background .15s;
}
.model-item:hover { border-color: var(--line-strong); background: rgba(13, 148, 136, 0.06); }
.model-item__name { font-family: var(--mono); font-size: 12.5px; }
.model-item__right { display: inline-flex; align-items: center; gap: 5px; }
.model-tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.model-tag--latest { background: rgba(20, 184, 166, 0.15); color: var(--primary-deep); }
html.dark .model-tag--latest { color: var(--primary-3); }
.model-item__copy { width: 12px; height: 12px; color: var(--text3); }
.model-item.copied { border-color: var(--green); background: rgba(34, 197, 94, 0.1); }

/* docs 语言切换 */
.lang-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text2); font-size: 13px; font-weight: 600;
  font-family: var(--font); transition: background .18s, color .18s;
}
.lang-link:hover { background: rgba(100, 116, 139, 0.1); color: var(--text); text-decoration: none; }

/* ---------- 文档首页 (docs home, VitePress 风格) ---------- */
.docs-home { max-width: 1152px; margin: 0 auto; padding: 64px 24px 32px; text-align: center; }
.docs-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 24px; }
.docs-hero .name {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-2), var(--primary-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.docs-hero .text { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.015em; }
.docs-hero .tagline { font-size: 17px; color: var(--text2); max-width: 680px; margin-top: 6px; }
.docs-hero .docs-hero-img { margin-top: 20px; }
.docs-hero .docs-hero-img img {
  width: 120px; height: 120px; border-radius: 26px;
  box-shadow: 0 20px 50px -12px rgba(13, 148, 136, 0.45);
}
.docs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 8px; }
.docs-actions .btn { white-space: nowrap; }
.docs-actions .btn svg { width: 15px; height: 15px; }

.docs-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1152px; margin: 0 auto; padding: 24px; text-align: left;
}
.docs-feature {
  display: block; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 26px; backdrop-filter: blur(8px);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.docs-feature:hover { box-shadow: 0 18px 40px -14px rgba(13, 148, 136, 0.28); border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.docs-feature .icon { font-size: 34px; line-height: 1; margin-bottom: 14px; display: block; }
.docs-feature .icon img { width: 40px; height: 40px; }
.docs-feature h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.docs-feature p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 10px; }
.docs-feature .flink { font-size: 13.5px; font-weight: 600; color: var(--primary-deep); }
html.dark .docs-feature .flink { color: var(--primary-3); }
.docs-feature .flink::after { content: " →"; }

.docs-quicklinks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 1152px; margin: 0 auto; padding: 8px 24px 56px;
}
.docs-quicklinks a {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  font-size: 13.5px; font-weight: 500; color: var(--text2);
  background: var(--card); backdrop-filter: blur(8px);
  transition: border-color .18s, color .18s, transform .18s;
}
.docs-quicklinks a:hover { border-color: var(--line-strong); color: var(--text); transform: translateY(-1px); text-decoration: none; }
.docs-quicklinks a svg { width: 14px; height: 14px; color: var(--primary-2); }

@media (max-width: 960px) {
  .docs-features { grid-template-columns: 1fr; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-sidebar h5 { width: 100%; }
  .link-grid--3 { grid-template-columns: 1fr; }
  .model-list__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
