﻿/* =============================================
   ToCodex — Main Stylesheet
   Dark-first, glassmorphism, neon accents
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- DARK theme (default) ---- */
:root {
  --bg:          #080c14;
  --bg-2:        #0d1220;
  --bg-3:        #111827;
  --border:      rgba(255,255,255,.07);
  --border-glow: rgba(99,179,237,.2);

  --accent:      #60a5fa;
  --accent-2:    #a78bfa;
  --accent-3:    #34d399;
  --accent-glow: rgba(96,165,250,.35);

  --text:        #f0f4ff;
  --text-2:      #94a3b8;
  --text-3:      #475569;

  --code-bg:     #0a0f1c;
  --code-kw:     #60a5fa;
  --code-fn:     #a78bfa;
  --code-str:    #34d399;
  --code-sym:    #94a3b8;
  --code-var:    #f0f4ff;
  --code-comment:#475569;

  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .25s cubic-bezier(.4,0,.2,1);

  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* logo icon: 深色模式用品牌绿-蓝渐变着色 */
  --logo-icon-filter: none;
}

/* ---- LIGHT theme ---- */
[data-theme="light"] {
  --bg:          #f8faff;
  --bg-2:        #ffffff;
  --bg-3:        #f1f5f9;
  --border:      rgba(0,0,0,.08);
  --border-glow: rgba(37,99,235,.2);

  --accent:      #2563eb;
  --accent-2:    #7c3aed;
  --accent-3:    #059669;
  --accent-glow: rgba(37,99,235,.3);

  --text:        #0f172a;
  --text-2:      #475569;
  --text-3:      #94a3b8;

  --code-bg:     #f1f5f9;
  --code-kw:     #2563eb;
  --code-fn:     #7c3aed;
  --code-str:    #059669;
  --code-sym:    #475569;
  --code-var:    #0f172a;
  --code-comment:#94a3b8;

  /* logo icon: pure black in light mode */
  --logo-icon-filter: brightness(0) saturate(0);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* 全站背景：完全静态渐变（画一次即可，滚动时零开销），只用于兜底 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 20% 12%, rgba(96,165,250,.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 18%, rgba(167,139,250,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 72% 90%, rgba(52,211,153,.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 15% 85%, rgba(236,72,153,.08) 0%, transparent 60%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 55% 40% at 20% 12%, rgba(37,99,235,.10) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 18%, rgba(124,58,237,.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 72% 90%, rgba(5,150,105,.06) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 15% 85%, rgba(219,39,119,.05) 0%, transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--font-mono); }
button { cursor: pointer; border: none; background: none; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

/* ---------- UTILS ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.desktop-only { display: initial; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #93c5fd;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-glow);
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(96,165,250,.08);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-2);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(248,250,255,.9);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 22px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-logo-icon {
  position: relative;
  top: -4px;
  margin-left: 0;
  width: 28px; height: 28px;
  filter: var(--logo-icon-filter);
  transition: filter var(--transition);
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #f0f4ff;
  -webkit-text-fill-color: #f0f4ff;
}
[data-theme="light"] .nav-logo-text {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  margin-left: clamp(36px, 4vw, 56px);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.08); transform: translateY(-1px); }
[data-theme="light"] .nav-links a:hover { background: rgba(37,99,235,.08); color: var(--accent); }

.nav-actions { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.nav-github-link {
  width: 30px;
  height: 32px;
  margin-right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  border: 1px solid transparent;
  border-radius: 8px;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.nav-github-link:hover {
  color: var(--text);
  border-color: var(--border-glow);
  background: rgba(128,128,128,.08);
  transform: translateY(-1px);
}
.nav-github-link svg {
  width: 18px;
  height: 18px;
}

/* Theme toggle button */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-glow); background: rgba(128,128,128,.08); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Language switcher button */
.lang-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.lang-btn svg {
  width: 30px;
  height: 22px;
  flex-shrink: 0;
}
.lang-btn[data-target-lang="zh"] svg {
  width: 24px;
  height: 22px;
}
.lang-btn:hover { color: var(--text); background: rgba(128,128,128,.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- SECTION COMMON ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-2);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
  overflow: hidden;
}
/*
 * Hero 背景：动感集中在首屏（<= 100vh），滚出屏幕后自动消失。
 * 只在两个有限尺寸的 blob 上做纯 transform + opacity 动画（100% GPU 合成层），
 * 不做 filter/background-position/background-size/inset 动画，保证滚动不卡。
 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-bg::before {
  top: -18%;
  left: -10%;
  background: radial-gradient(circle at 50% 50%,
    rgba(96,165,250,.35) 0%,
    rgba(96,165,250,.16) 40%,
    transparent 70%);
  filter: blur(40px);
  animation: hero-blob-a 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  bottom: -22%;
  right: -12%;
  background: radial-gradient(circle at 50% 50%,
    rgba(167,139,250,.32) 0%,
    rgba(236,72,153,.14) 40%,
    transparent 70%);
  filter: blur(40px);
  animation: hero-blob-b 22s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-bg::before {
  background: radial-gradient(circle at 50% 50%,
    rgba(37,99,235,.22) 0%,
    rgba(37,99,235,.10) 40%,
    transparent 70%);
}
[data-theme="light"] .hero-bg::after {
  background: radial-gradient(circle at 50% 50%,
    rgba(124,58,237,.20) 0%,
    rgba(219,39,119,.10) 40%,
    transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
/* 纯 GPU 合成动画：只动 transform，不触发 paint/layout */
@keyframes hero-blob-a {
  0%   { transform: translate3d(0, 0, 0)     scale(1)    rotate(0deg); }
  100% { transform: translate3d(12%, 8%, 0)  scale(1.15) rotate(80deg); }
}
@keyframes hero-blob-b {
  0%   { transform: translate3d(0, 0, 0)     scale(1)    rotate(0deg); }
  100% { transform: translate3d(-14%, -6%, 0) scale(1.12) rotate(-70deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .hero-bg::after { display: none; }
  .hero-bg::before {
    width: 90vw;
    height: 90vw;
    filter: blur(30px);
  }
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
}
.hero-glow-1 {
  width: 600px; height: 400px;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(96,165,250,.5) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 400px; height: 300px;
  bottom: 100px; right: 10%;
  background: radial-gradient(circle, rgba(167,139,250,.4) 0%, transparent 70%);
}

.hero > .container,
.hero > * { position: relative; z-index: 1; }

.hero-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 42px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(96,165,250,.05);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:.5; transform: scale(.8); }
}
.badge-models {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 4px;
}
.badge-model-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 3px;
  opacity: .88;
  transition: opacity .2s;
}
.badge-model-logo:hover { opacity: 1; }
.badge-model-logo svg {
  flex-shrink: 0;
  border-radius: 3px;
}
.badge-model-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-2);
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: clamp(12px, 1.35vw, 15px);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-download-cards {
  gap: 32px;
  margin-bottom: 14px;
}
.hero-download-menu-wrap {
  position: relative;
  display: flex;
  min-width: 230px;
}
.hero-download-menu-wrap > .hero-download-card {
  width: 100%;
}
.hero-download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .28s, box-shadow .28s, background .28s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
button.hero-download-card {
  font: inherit;
  cursor: pointer;
  text-align: left;
}
/* shimmer 扫光 */
.hero-download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}
.hero-download-card:hover::before {
  transform: translateX(100%);
}
.hero-download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(91,159,255,.28);
}
.hero-download-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 15px;
  background: rgba(15,23,42,.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 46px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.05) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.hero-download-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.hero-download-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #e5edff;
  font-size: 12px;
  font-weight: 760;
  background: rgba(255,255,255,.06);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.hero-download-option:hover {
  color: #fff;
  background: rgba(96,165,250,.24);
  transform: translateY(-1px);
}
.hero-download-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
/* 主按钮：蓝紫实色渐变，大而醒目 */
.hero-download-card-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 60%, #8b5cf6 100%);
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 8px 32px rgba(99,102,241,.45), 0 2px 0 rgba(255,255,255,.12) inset;
}
.hero-download-card-primary:hover {
  box-shadow: 0 20px 52px rgba(99,102,241,.55), 0 2px 0 rgba(255,255,255,.12) inset;
  border-color: rgba(165,180,252,.6);
}
/* 副按钮：绿色轮廓风格 */
.hero-download-card-secondary {
  border-color: rgba(52,211,153,.35);
  background: linear-gradient(135deg, rgba(52,211,153,.1), rgba(96,165,250,.07));
}
.hero-download-card-secondary:hover {
  border-color: rgba(52,211,153,.65);
  box-shadow: 0 20px 52px rgba(52,211,153,.2);
}
.hero-download-card-mac {
  border-color: rgba(226,232,240,.35);
  background: linear-gradient(135deg, rgba(226,232,240,.16), rgba(148,163,184,.08));
}
.hero-download-card-mac:hover {
  border-color: rgba(226,232,240,.7);
  box-shadow: 0 20px 52px rgba(226,232,240,.18);
}
.hero-download-card-mac .hero-download-icon {
  background: rgba(226,232,240,.18);
  color: #e2e8f0;
}
.hero-download-card-mac .hero-download-copy strong {
  color: #f8fafc;
}
.hero-download-card-mac .hero-download-copy small {
  color: rgba(226,232,240,.84);
}
.hero-download-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.hero-download-card-secondary .hero-download-icon {
  background: rgba(52,211,153,.18);
  color: #34d399;
}
.hero-download-icon svg {
  width: 22px;
  height: 22px;
}
.hero-download-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.hero-download-copy strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #ffffff;
}
.hero-download-copy small {
  font-size: 10px;
  color: rgba(255,255,255,.75);
}
.hero-download-card-secondary .hero-download-copy strong {
  color: #f1f5f9;
}

/* Light 主题 */
[data-theme="light"] .hero-download-card {
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 8px 32px rgba(15,23,42,.1);
}
[data-theme="light"] .hero-download-menu {
  border-color: rgba(15,23,42,.12);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 46px rgba(15,23,42,.13), 0 0 0 1px rgba(15,23,42,.04) inset;
}
[data-theme="light"] .hero-download-option {
  color: #0f172a;
  background: rgba(15,23,42,.045);
}
[data-theme="light"] .hero-download-option:hover {
  color: #0f172a;
  background: rgba(37,99,235,.12);
}
[data-theme="light"] .hero-download-card-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #7c3aed 100%);
  border-color: rgba(79,70,229,.5);
  box-shadow: 0 8px 32px rgba(79,70,229,.35), 0 2px 0 rgba(255,255,255,.1) inset;
}
[data-theme="light"] .hero-download-card-primary:hover {
  box-shadow: 0 20px 52px rgba(79,70,229,.45);
}
[data-theme="light"] .hero-download-card-secondary {
  border-color: rgba(5,150,105,.25);
  background: linear-gradient(135deg, rgba(5,150,105,.08), rgba(37,99,235,.06));
}
[data-theme="light"] .hero-download-card-secondary:hover {
  border-color: rgba(5,150,105,.45);
  box-shadow: 0 20px 52px rgba(5,150,105,.15);
}
[data-theme="light"] .hero-download-card-secondary .hero-download-copy strong {
  color: #0f172a;
}
[data-theme="light"] .hero-download-card-secondary .hero-download-copy small {
  color: #475569;
}
[data-theme="light"] .hero-download-card-secondary .hero-download-icon {
  color: #059669;
}
[data-theme="light"] .hero-download-card-mac {
  border-color: rgba(71,85,105,.22);
  background: linear-gradient(135deg, rgba(100,116,139,.1), rgba(148,163,184,.08));
}
[data-theme="light"] .hero-download-card-mac:hover {
  border-color: rgba(71,85,105,.42);
  box-shadow: 0 20px 52px rgba(71,85,105,.14);
}
[data-theme="light"] .hero-download-card-mac .hero-download-copy strong {
  color: #0f172a;
}
[data-theme="light"] .hero-download-card-mac .hero-download-copy small {
  color: #475569;
}
[data-theme="light"] .hero-download-card-mac .hero-download-icon {
  color: #334155;
}
/* CLI 按钮：黄色/琥珀色风格 */
.hero-download-card-cli {
  border-color: rgba(251,191,36,.35);
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(245,158,11,.08));
}
.hero-download-card-cli:hover {
  border-color: rgba(251,191,36,.65);
  box-shadow: 0 20px 52px rgba(251,191,36,.2);
}
.hero-download-card-cli .hero-download-icon {
  background: rgba(251,191,36,.18);
  color: #fbbf24;
}
.hero-download-card-cli .hero-download-copy strong {
  color: #fef3c7;
}
.hero-download-card-cli .hero-download-copy small {
  color: rgba(253,230,138,.85);
}
[data-theme="light"] .hero-download-card-cli {
  border-color: rgba(217,119,6,.25);
  background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(217,119,6,.06));
}
[data-theme="light"] .hero-download-card-cli:hover {
  border-color: rgba(217,119,6,.45);
  box-shadow: 0 20px 52px rgba(217,119,6,.15);
}
[data-theme="light"] .hero-download-card-cli .hero-download-copy strong {
  color: #0f172a;
}
[data-theme="light"] .hero-download-card-cli .hero-download-copy small {
  color: #92400e;
}
[data-theme="light"] .hero-download-card-cli .hero-download-icon {
  color: #d97706;
}
.hero-trust-note {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.stat { text-align: center; }
.stat-num-wrap { display: inline-flex; align-items: baseline; white-space: nowrap; }
.stat-num {
  display: inline;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.stat-suffix { font-size: 28px; font-weight: 800; }
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---------- HERO EDITOR ---------- */
.hero-editor {
  width: 100%;
  max-width: 900px;
  margin: 60px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.editor-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--code-bg);
  box-shadow:
    0 0 0 1px rgba(96,165,250,.1),
    0 40px 80px rgba(0,0,0,.6),
    0 0 60px rgba(96,165,250,.08);
  overflow: hidden;
}
.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
}
.editor-dots { display: flex; gap: 6px; }
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.editor-filename {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.editor-body { display: flex; }
.editor-sidebar {
  width: 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
}
.sidebar-item {
  padding: 8px;
  border-radius: 8px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.sidebar-item.active { color: var(--accent); background: rgba(96,165,250,.1); }
.sidebar-item:hover { color: var(--text-2); }

.editor-main { flex: 1; overflow: hidden; }
.code-area {
  display: flex;
  padding: 20px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.line-nums {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font-mono);
  text-align: right;
  user-select: none;
  min-width: 20px;
}
.line-nums span { line-height: 1.7; }
.code-content {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
}
.code-content code { display: block; }

/* Syntax colors */
.kw  { color: var(--code-kw); }
.fn  { color: var(--code-fn); }
.str { color: var(--code-str); }
.sym { color: var(--code-sym); }
.var { color: var(--code-var); }
.comment { color: var(--code-comment); font-style: italic; }

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.ai-suggestion {
  padding: 16px 20px;
  background: rgba(96,165,250,.04);
}
.suggestion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.suggestion-icon { width: 18px; height: 18px; border-radius: 4px; }
.suggestion-code {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
  overflow: hidden;
}
.suggestion-actions { display: flex; gap: 8px; }
.sug-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}
.sug-accept { background: var(--accent); color: #000; }
.sug-accept:hover { background: #93c5fd; }
.sug-reject { background: rgba(255,255,255,.05); color: var(--text-2); border: 1px solid var(--border); }
.sug-reject:hover { background: rgba(255,255,255,.08); }

/* ── 新编辑器：左右分栏布局 ── */
.editor-body-split {
  display: flex;
  height: 420px;
  overflow: hidden;
}

/* 标签栏 */
.editor-tab-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
}
.editor-tab {
  padding: 0 14px;
  height: 38px;
  line-height: 36px;
  font-size: 12px;
  color: var(--text-3);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  cursor: default;
  transition: color var(--transition);
}
.editor-tab.active {
  color: var(--text-1);
  background: rgba(96,165,250,.06);
  border-bottom: 2px solid var(--accent);
}

/* 左侧 AI 对话面板 */
.editor-chat-panel {
  width: 240px;
  min-width: 200px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,.15);
}
.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.chat-panel-icon { width: 18px; height: 18px; border-radius: 4px; }
.chat-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  flex: 1;
}
.chat-panel-model {
  font-size: 10px;
  color: var(--accent);
  background: rgba(96,165,250,.1);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* 消息列表 */
.chat-panel-messages {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.chat-msg-item { display: flex; gap: 8px; align-items: flex-start; }
.user-msg-item { flex-direction: row-reverse; }
.chat-avatar { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.chat-msg-bubble {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.55;
  max-width: 85%;
}
.user-bubble {
  background: var(--accent);
  color: #000;
  font-weight: 500;
  border-radius: 10px 10px 2px 10px;
}
.ai-bubble {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 2px 10px 10px 10px;
}
.ai-bubble-done {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  color: #4ade80;
  font-size: 10px;
  padding: 8px 11px;
  border-radius: 2px 10px 10px 10px;
  max-width: 85%;
}

/* AI 文件生成计划列表 */
.ai-file-plan {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-3);
}
.plan-item.plan-done { color: #4ade80; }
.plan-item.plan-active { color: var(--accent); }
.plan-check { color: #4ade80; font-weight: 700; }
.plan-arrow { color: var(--accent); animation: blink 1s step-end infinite; }
.plan-dot { color: var(--text-3); }

/* 底部输入框 */
.chat-panel-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.chat-input-box {
  flex: 1;
  font-size: 10px;
  color: var(--text-3);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-send-btn {
  width: 26px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-send-btn:hover { background: #93c5fd; }

/* 右侧代码区（分栏模式） */
.editor-main-split {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.code-area-full {
  flex: 1;
  display: flex;
  padding: 16px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.code-content-full {
  flex: 1;
  font-size: 12px;
  line-height: 1.65;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre;
  text-align: left;
  scrollbar-width: none;
}
.code-content-full::-webkit-scrollbar { display: none; }
.code-content-full code {
  display: block;
  text-align: left;
}

/* AI 代码生成进度条 */
.code-gen-status {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(96,165,250,.04);
  border-top: 1px solid var(--border);
}
.gen-progress-wrap { width: 100%; }
.gen-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.gen-progress-fill {
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: 2px;
  animation: progress-pulse 2s ease-in-out infinite;
}
@keyframes progress-pulse {
  0%   { width: 20%; opacity: .8; }
  50%  { width: 45%; opacity: 1; }
  100% { width: 20%; opacity: .8; }
}
.gen-status-text {
  font-size: 10px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}
.gen-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: blink 1s step-end infinite;
}

/* 思考动画 */
.thinking-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.thinking-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: thinking 1.2s ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: .2s; }
.thinking-dot:nth-child(3) { animation-delay: .4s; }
@keyframes thinking {
  0%,80%,100% { transform: scale(.7); opacity: .4; }
  40%          { transform: scale(1);  opacity: 1; }
}

/* num token 样式 */
.num { color: #f59e0b; }

/* ---------- LOGOS ---------- */
.logos-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 24px;
}
.logos-track { overflow: hidden; }
.logos-inner {
  display: flex;
  gap: 60px;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.logo-item {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color var(--transition);
}
.logo-item:hover { color: var(--text-2); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- PRODUCT SHOWCASE ---------- */
.features.product-showcase {
  position: relative;
  padding: 72px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(99,102,241,.12), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(20,184,166,.10), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
.features.product-showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 28px;
  width: min(1180px, 88vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.28), rgba(52,211,153,.16), transparent);
}
.features.product-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(99,102,241,.12), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(20,184,166,.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.008), transparent 52%);
}
.showcase-container {
  position: relative;
  z-index: 1;
  max-width: 1220px;
}
.tocodex-app-demo {
  --demo-sidebar-w: 218px;
  --demo-agent-w: 454px;
  --demo-radius: 10px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(198px, var(--demo-sidebar-w)) minmax(var(--demo-agent-w), .94fr) minmax(500px, 1.16fr);
  gap: 0;
  min-height: clamp(620px, 58vw, 760px);
  border: 0;
  border-radius: var(--demo-radius);
  overflow: visible;
  background: transparent;
  box-shadow: 0 34px 110px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.025), 0 0 70px rgba(20,184,166,.055);
  isolation: isolate;
}
.tocodex-app-demo::before {
  content: none;
}
.tocodex-app-demo::after {
  content: none;
}
.demo-window {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--demo-radius);
  clip-path: none;
  background: rgba(2,6,18,.98);
  color: rgba(226,232,240,.92);
  border-right: 0;
}
.demo-window-top {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(148,163,184,.20);
  background: linear-gradient(135deg, #4f2368 0%, #2d4f87 43%, #1d7184 70%, #4e3c91 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.demo-window-actions,
.agent-toolbar,
.editor-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(226,232,240,.84);
}
.agent-toolbar {
  flex: 1;
  justify-content: space-between;
  min-width: 0;
}
.agent-toolbar-start,
.agent-toolbar-end {
  display: inline-flex;
  align-items: center;
}
.agent-toolbar-start { gap: 16px; color: rgba(226,232,240,.8); }
.agent-toolbar-end { gap: 18px; color: rgba(226,232,240,.86); }
.demo-new-task {
  position: relative;
  border-radius: 5px;
}
.demo-new-task:hover,
.demo-new-task:focus-visible {
  color: #fff;
  background: rgba(34,197,94,.18);
  box-shadow: 0 0 0 3px rgba(34,197,94,.12), 0 0 18px rgba(34,197,94,.22);
  outline: none;
}
.new-task-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #ecfeff;
  background: rgba(2,6,23,.92);
  box-shadow: 0 10px 26px rgba(0,0,0,.28), inset 0 0 0 1px rgba(148,163,184,.18);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
}
.new-task-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  background: rgba(2,6,23,.92);
  transform: translateX(-50%) rotate(45deg);
}
.new-task-tooltip span { position: relative; }
.new-task-tooltip span + span::before {
  content: "/";
  margin-right: 5px;
  color: rgba(148,163,184,.76);
}
.demo-new-task:hover .new-task-tooltip,
.demo-new-task:focus-visible .new-task-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ui-svg {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: .88;
  flex: 0 0 auto;
}
button.ui-svg {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
button.ui-svg:hover { opacity: 1; color: #fff; }
.ui-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-svg-folder svg path:first-child,
.ui-svg-grid svg path,
.ui-svg-panel svg rect,
.ui-svg-panel svg path:first-of-type { fill: currentColor; fill-opacity: .05; }
.ui-svg-accent { color: #22c55e; opacity: .95; }
.ui-svg-warm { color: #f59e0b; opacity: .9; }
.demo-window-actions { gap: 14px; }
.demo-window-actions .ui-svg { width: 13px; height: 13px; }
.editor-icons { gap: 13px; }
.editor-icons .ui-svg { width: 13px; height: 13px; }
.demo-sidebar {
  z-index: 1;
  background:
    radial-gradient(circle at 100% 0%, rgba(20,184,166,.13), transparent 38%),
    linear-gradient(180deg, rgba(2,28,24,.99), rgba(0,17,15,.99));
}
.demo-sidebar::after {
  content: "";
  position: absolute;
  top: 36px;
  right: 0;
  bottom: 0;
  width: 46px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(1,30,24,.45));
}
.demo-path {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(45,212,191,.22);
  color: rgba(203,213,225,.82);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-tree {
  padding: 10px 0 20px;
  font-size: 11.5px;
}
.tree-row {
  width: 100%;
  height: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 13px;
  border: 0;
  color: rgba(203,213,225,.9);
  background: transparent;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.tree-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
button.tree-row {
  cursor: pointer;
}
button.tree-row:hover,
button.tree-row:focus-visible {
  color: #fff;
  background: rgba(148,163,184,.10);
  outline: none;
}
.tree-row.active {
  background: linear-gradient(90deg, rgba(109,40,217,.92), rgba(79,70,229,.58));
  color: #fff;
  box-shadow: inset 3px 0 0 rgba(167,139,250,.88), 0 0 24px rgba(99,102,241,.22);
}
.tree-row.open { color: rgba(255,255,255,.94); }
.tree-child { padding-left: 28px; }
.tree-grand { padding-left: 44px; }
.tree-caret {
  position: relative;
  width: 10px;
  height: 10px;
  color: rgba(148,163,184,.78);
  flex: 0 0 10px;
}
.tree-caret::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 0;
  height: 0;
  border-style: solid;
}
.tree-caret-closed::before { border-width: 3.5px 0 3.5px 5px; border-color: transparent transparent transparent currentColor; }
.tree-caret-open::before { top: 3px; border-width: 5px 3.5px 0 3.5px; border-color: currentColor transparent transparent transparent; }
.tree-folder {
  position: relative;
  width: 15px;
  height: 12px;
  color: #f4c542;
  flex: 0 0 15px;
  filter: drop-shadow(0 0 4px rgba(250,204,21,.16));
}
.tree-folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 8px;
  border: 1.4px solid currentColor;
  border-radius: 1.5px;
  background: rgba(250,204,21,.08);
}
.tree-folder::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 7px;
  height: 4px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 1.5px 1.5px 0 0;
}
.file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 14px;
  padding: 0 3px;
  border-radius: 4px;
  color: #031018;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
}
.file-badge.md { background: #7dd3fc; }
.file-badge.js { background: #fde047; }
.file-badge.sh { background: #86efac; }
.file-badge.py { background: #93c5fd; color: #082f49; }
.file-badge.img { background: #f0abfc; }
.demo-agent-panel {
  background:
    radial-gradient(circle at 50% 0%, rgba(20,184,166,.14), transparent 32%),
    linear-gradient(180deg, rgba(1,30,24,.99), rgba(0,17,15,.99));
}
.agent-topbar { background: linear-gradient(135deg, #6a2d74 0%, #a4432f 24%, #b07d22 42%, #3b8646 64%, #2c6f8e 100%); }
.agent-toolbar { opacity: .92; }
.agent-body {
  position: relative;
  min-height: calc(100% - 64px);
  padding: 48px clamp(22px, 2.7vw, 38px) 102px;
  background:
    radial-gradient(circle at 50% 8%, rgba(20,184,166,.12), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.34));
}
.agent-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 36px;
}
.agent-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(45,212,160,.20));
}
.agent-brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.agent-brand span {
  display: block;
  color: rgba(203,213,225,.72);
  font-size: 10.5px;
}
.agent-brand em {
  margin-left: auto;
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 999px;
  color: rgba(203,213,225,.8);
  font-size: 10px;
  font-style: normal;
}
.agent-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 400;
}
.agent-recent-head strong { font-weight: 400; }
.agent-recent-head span { color: rgba(148,163,184,.72); font-size: 10px; }
.task-card {
  position: relative;
  padding: 10px 12px;
  margin-bottom: 7px;
  border: 0;
  background: rgba(15,23,42,.58);
  color: rgba(226,232,240,.84);
  overflow: hidden;
}
.task-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 22% 50%, rgba(45,212,191,.22), transparent 46%);
  opacity: 0;
  transform: translateX(-12px) scale(.96);
  pointer-events: none;
}
.task-card:hover,
.task-card:focus-within {
  transform: translateX(4px) translateY(-1px);
  background: rgba(30,41,59,.84);
  color: rgba(248,250,252,.96);
  box-shadow: inset 3px 0 0 rgba(45,212,191,.66), 0 12px 28px rgba(0,0,0,.24), 0 0 26px rgba(20,184,166,.11);
}
.task-card:hover::before,
.task-card:focus-within::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.task-card.active {
  background: rgba(30,41,59,.78);
  box-shadow: inset 3px 0 0 rgba(45,212,191,.62), 0 0 24px rgba(20,184,166,.08);
}
.task-card.active:hover,
.task-card.active:focus-within {
  transform: translateX(4px) translateY(-1px);
  background: rgba(30,41,59,.84);
  box-shadow: inset 3px 0 0 rgba(45,212,191,.66), 0 12px 28px rgba(0,0,0,.24), 0 0 26px rgba(20,184,166,.11);
}
.task-card span,
.task-card small {
  position: relative;
  z-index: 1;
}
.task-card span { display: block; font-size: 11px; font-weight: 400; }
.task-card small { display: block; margin-top: 4px; color: rgba(148,163,184,.76); font-size: 9px; }
.task-card:hover small,
.task-card:focus-within small { color: rgba(203,213,225,.9); }
.agent-prompt {
  position: absolute;
  left: clamp(20px, 3vw, 30px);
  right: clamp(20px, 3vw, 30px);
  bottom: 36px;
}
.prompt-slogan {
  margin-bottom: 22px;
  text-align: center;
  color: rgba(255,255,255,.9);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: .025em;
  text-shadow: 0 0 14px rgba(52,211,153,.14);
}
.prompt-box {
  position: relative;
  min-height: 80px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 44px 13px 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(30,10,48,.82);
  box-shadow: inset 0 0 24px rgba(168,85,247,.10), 0 18px 42px rgba(0,0,0,.30);
  color: rgba(203,213,225,.70);
  font-size: 11px;
}
.typing-prompt-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.typing-cursor {
  width: 1px;
  height: 14px;
  margin: 1px auto 0 2px;
  background: rgba(226,232,240,.82);
  animation: prompt-caret-blink .82s steps(1) infinite;
  flex: 0 0 auto;
}
@keyframes prompt-caret-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
.prompt-actions {
  position: absolute;
  top: 13px;
  right: 13px;
  bottom: 13px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.prompt-box button {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(203,213,225,.65);
  cursor: default;
  transition: color .18s ease, transform .18s ease;
}
.prompt-box button:hover,
.prompt-box button:focus-visible {
  color: rgba(244,232,255,.94);
}
.prompt-box button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prompt-box .prompt-send-button {
  width: 17px;
  height: 17px;
  color: rgba(216,180,254,.92);
  box-shadow: none;
}
.prompt-box .prompt-send-button:hover,
.prompt-box .prompt-send-button:focus-visible {
  transform: translateY(-1px);
  color: rgba(244,232,255,.96);
}
.prompt-box .prompt-send-button svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.55;
  transform: translate(1px, -1px);
}
.prompt-hints {
  margin-top: 12px;
  color: rgba(203,213,225,.52);
  font-size: 10.5px;
}
.agent-statusbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px 0 12px;
  border-top: 1px solid rgba(52,211,153,.24);
  background: rgba(1,22,18,.98);
  color: rgba(226,232,240,.82);
  font-size: 10px;
  white-space: nowrap;
  overflow: visible;
}
.agent-im-status {
  position: relative;
  margin-left: auto;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #22c55e;
  background: rgba(34,197,94,.08);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.34), 0 0 14px rgba(34,197,94,.10);
  cursor: default;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.agent-im-status::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(1,22,18,.98), 0 0 10px rgba(34,197,94,.95);
}
.agent-im-status svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agent-im-status:hover,
.agent-im-status:focus-visible {
  transform: translateY(-1px);
  color: #86efac;
  background: rgba(34,197,94,.16);
  box-shadow: inset 0 0 0 1px rgba(134,239,172,.72), 0 0 22px rgba(34,197,94,.35);
  outline: none;
}
.agent-im-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 5px 8px;
  border-radius: 7px;
  color: #dcfce7;
  background: rgba(2,6,23,.94);
  box-shadow: 0 10px 26px rgba(0,0,0,.34), inset 0 0 0 1px rgba(34,197,94,.28);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.agent-im-tooltip::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: rgba(2,6,23,.94);
  box-shadow: 1px 1px 0 rgba(34,197,94,.18);
  transform: rotate(45deg);
}
.agent-im-status:hover .agent-im-tooltip,
.agent-im-status:focus-visible .agent-im-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.demo-editor {
  border-right: 0;
  background: linear-gradient(180deg, rgba(9,3,22,.99), rgba(4,0,12,.995));
}
.editor-titlebar { background: linear-gradient(135deg, #a94335 0%, #997d25 22%, #36844b 46%, #2f6f96 70%, #513c93 100%); }
.editor-path {
  flex: 1;
  min-width: 0;
  color: rgba(203,213,225,.82);
  font-family: var(--font-mono);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-tabs {
  height: 32px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(147,51,234,.42);
  background: rgba(24,4,45,.96);
  overflow: hidden;
}
.editor-tabs button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 170px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid rgba(147,51,234,.5);
  border-radius: 0;
  color: rgba(221,214,254,.76);
  background: transparent;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.editor-tabs button:hover,
.editor-tabs button:focus-visible {
  color: #fff;
  background: rgba(91,33,182,.46);
}
.editor-tabs button:focus-visible {
  outline: 1px solid rgba(216,180,254,.9);
  outline-offset: -2px;
}
.editor-tabs button.active {
  color: #fff;
  background: rgba(76,29,149,.62);
  box-shadow: inset 0 -2px 0 rgba(168,85,247,.95);
}
.editor-code {
  height: calc(100% - 96px);
  padding: 12px 0 42px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(11.5px, .88vw, 12.8px);
  line-height: 1.72;
  color: #e2e8f0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(90deg, rgba(15,23,42,.54) 0 58px, transparent 58px),
    radial-gradient(circle at 75% 18%, rgba(147,51,234,.075), transparent 28%);
}
.editor-code-python {
  font-size: clamp(11.5px, .84vw, 12.4px);
  line-height: 1.66;
}
.editor-code div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  min-height: 23px;
}
.editor-code i {
  text-align: right;
  color: rgba(203,213,225,.72);
  font-style: normal;
  user-select: none;
}
.editor-code code {
  color: #f8fafc;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.005em;
}
.editor-code div:nth-child(1) code,
.editor-code div:nth-child(5) code,
.editor-code div:nth-child(7) code { color: #93c5fd; }
.editor-code div:nth-child(n+8):nth-child(-n+12) code { color: #bbf7d0; }
.editor-code-python code { color: #e5edf8; }
.editor-code-python .py-key { color: #d8b4fe; }
.editor-code-python .py-str { color: #bbf7d0; }
.editor-code-python .py-fn { color: #bfdbfe; }
.editor-code-python .py-type { color: #fde68a; }
.tocodex-app-demo strong,
.tocodex-app-demo b,
.tocodex-app-demo code,
.tocodex-app-demo .demo-window-top,
.tocodex-app-demo .tree-row,
.tocodex-app-demo .task-card span,
.tocodex-app-demo .prompt-slogan,
.tocodex-app-demo .editor-tabs button {
  font-weight: 400;
}
.tocodex-app-demo .editor-code code,
.tocodex-app-demo .editor-code i {
  font-weight: 500;
}
.tocodex-app-demo .agent-brand strong {
  font-weight: 500;
}
.editor-statusbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
  padding: 0 14px;
  border-top: 1px solid rgba(147,51,234,.38);
  background: rgba(45,12,74,.98);
  color: rgba(226,232,240,.84);
  font-size: 10px;
}
.tocodex-app-demo.sidebar-closed,
.tocodex-app-demo.editor-closed {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}
.tocodex-app-demo.sidebar-closed::before,
.tocodex-app-demo.sidebar-closed::after,
.tocodex-app-demo.editor-closed::before,
.tocodex-app-demo.editor-closed::after {
  opacity: 0;
}
.tocodex-app-demo.sidebar-closed .demo-sidebar,
.tocodex-app-demo.editor-closed .demo-editor {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none;
  border: 0;
}
.tocodex-app-demo.sidebar-closed .demo-sidebar *,
.tocodex-app-demo.editor-closed .demo-editor * {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.tocodex-app-demo.sidebar-closed.editor-closed .demo-agent-panel {
  transform: none;
}
@media (max-width: 1100px) {
  .tocodex-app-demo {
    --demo-sidebar-w: 190px;
    grid-template-columns: var(--demo-sidebar-w) minmax(320px, 1fr);
    gap: 0;
  }
  .tocodex-app-demo::before {
    background:
      linear-gradient(90deg, #4e3c91, #6a2d74) calc(var(--demo-sidebar-w) - var(--demo-radius)) 0 / calc(var(--demo-radius) * 2) var(--demo-radius) no-repeat,
      linear-gradient(90deg, rgba(0,17,15,.99), rgba(0,17,15,.99)) calc(var(--demo-sidebar-w) - var(--demo-radius)) calc(100% - var(--demo-radius)) / calc(var(--demo-radius) * 2) var(--demo-radius) no-repeat;
  }
  .demo-editor { grid-column: 1 / -1; min-height: 430px; border-top: 0; }
}
@media (max-width: 760px) {
  .features.product-showcase { padding: 72px 0 86px; }
  .tocodex-app-demo { grid-template-columns: 1fr; gap: 0; min-height: auto; background: transparent; box-shadow: none; overflow: visible; }
  .tocodex-app-demo::before,
  .tocodex-app-demo::after { opacity: 0; }
  .demo-window { border-right: 0; border-bottom: 0; }
  .demo-sidebar,
  .demo-editor { display: none; }
  .demo-agent-panel { min-height: 560px; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.04); }
  .demo-agent-panel::before { border-radius: 8px; }
  .agent-body { padding: 34px 20px 102px; }
  .editor-tabs button { max-width: 140px; padding: 0 12px; }
}
@media (max-width: 480px) {
  .showcase-container { padding: 0 12px; }
  .tocodex-app-demo { border-radius: 8px; }
  .demo-window-top { font-size: 12px; }
  .prompt-slogan { letter-spacing: .04em; }
  .editor-code { font-size: 11px; }
  .editor-code div { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
}

/* ---------- MODES ---------- */
.modes-section { padding: 100px 0; }
.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 1100px) { .modes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .modes-grid { grid-template-columns: repeat(2, 1fr); } }
.mode-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.mode-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mode-architect { background: rgba(96,165,250,.12); color: var(--accent); }
.mode-code      { background: rgba(167,139,250,.12); color: var(--accent-2); }
.mode-ask       { background: rgba(52,211,153,.12);  color: var(--accent-3); }
.mode-ssh       { background: rgba(96,165,250,.12); color: var(--accent); }
.mode-image     { background: rgba(236,72,153,.12); color: #ec4899; }
.mode-debug     { background: rgba(251,146,60,.12);  color: #fb923c; }
.mode-orchestrator { background: rgba(96,165,250,.12); color: var(--accent); }
.mode-browser   { background: rgba(14,165,233,.12);  color: #38bdf8; }
.mode-schedule  { background: rgba(250,204,21,.12);  color: #facc15; }
.mode-skills    { background: rgba(45,212,191,.12);  color: #2dd4bf; }
.mode-translate { background: rgba(167,139,250,.12); color: var(--accent-2); }
.mode-issue     { background: rgba(52,211,153,.12);  color: var(--accent-3); }
.mode-docs      { background: rgba(251,146,60,.12);  color: #fb923c; }
.mode-problem   { background: rgba(248,113,113,.12); color: #f87171; }
.mode-income    { background: rgba(250,204,21,.12); color: #eab308; }
.mode-card--income { border-color: rgba(234,179,8,.28); }
.mode-card--income:hover { border-color: rgba(234,179,8,.5); }
.mode-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mode-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.mode-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ---------- DEMO / STEPS ---------- */
.demo-section { padding: 100px 0; background: var(--bg-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--border-glow); }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px;
  right: -17%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, var(--border-glow) 100%);
}
.step-num {
  font-size: 48px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(96,165,250,.15);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-3);
  margin-top: 14px;
}
.step p a {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition), text-decoration-thickness var(--transition), text-underline-offset var(--transition), opacity var(--transition);
}
.step p a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.step p a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.copy-btn {
  color: var(--text-3);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.copy-btn:hover { color: var(--accent); }
.copy-btn.copied { color: var(--accent-3); }

kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 100px 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.stars { color: #fbbf24; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #000;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 14px; }
.author-role { font-size: 12px; color: var(--text-3); }

/* ---------- INSTALL CTA ---------- */
.install-section { padding: 80px 0; }
.install-card {
  position: relative;
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  background: var(--bg-2);
}
.install-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(96,165,250,.15) 0%, transparent 70%);
  pointer-events: none;
}
.install-content {
  position: relative;
  padding: 80px 40px;
}
.install-logo {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1);
}
[data-theme="light"] .install-logo {
  filter: brightness(0) saturate(0);
}
.install-content h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.install-content p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 32px;
}
.install-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.install-note { font-size: 12px; color: var(--text-3); }

/* ---------- CHANGELOG ---------- */
.changelog { padding: 100px 0; background: var(--bg-2); }
.changelog-list { max-width: 760px; margin: 0 auto; }
.changelog-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-item:last-child { border-bottom: none; }
.changelog-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  flex-shrink: 0;
}
.changelog-version {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.changelog-date { font-size: 12px; color: var(--text-3); }
.changelog-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
}
.tag-new     { background: rgba(52,211,153,.1); color: var(--accent-3); }
.tag-improve { background: rgba(96,165,250,.1); color: var(--accent); }
.tag-fix     { background: rgba(251,191,36,.1); color: #fbbf24; }

.changelog-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.changelog-item p  { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 72px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-brand .nav-logo {
  margin-left: 0;
  padding-left: 0;
  opacity: .9;
}
.footer-brand .nav-logo-text {
  color: var(--text-2);
  -webkit-text-fill-color: var(--text-2);
}
.footer-brand .nav-logo-icon {
  top: -3px;
  margin-left: 0;
  margin-right: 0;
  opacity: .78;
  filter: grayscale(.2) brightness(.92) contrast(.92);
}
[data-theme="light"] .footer-brand .nav-logo-icon {
  opacity: .95;
  filter: grayscale(.2) brightness(.7) contrast(1);
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: .24em;
  margin: 10px 0 24px;
  margin-left: 0;
  max-width: 260px;
}
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a,
.footer-ai-links a {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all var(--transition);
}
.footer-social a:hover,
.footer-ai-links a:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  background: rgba(96,165,250,.08);
  transform: translateY(-1px);
}
.footer-wechat {
  position: relative;
  overflow: visible;
}
.footer-wechat-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  width: 224px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(96,165,250,.28);
  border-radius: 18px;
  background: rgba(8,12,20,.96);
  box-shadow: 0 18px 45px rgba(0,0,0,.34), 0 0 24px rgba(96,165,250,.14);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(.96);
  transform-origin: bottom center;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 30;
}
.footer-wechat-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(96,165,250,.28);
  border-bottom: 1px solid rgba(96,165,250,.28);
  background: rgba(8,12,20,.96);
  transform: translateX(-50%) rotate(45deg);
}
.footer-wechat-card img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.footer-wechat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.footer-wechat:hover .footer-wechat-card,
.footer-wechat:focus-visible .footer-wechat-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
[data-theme="light"] .footer-wechat-card {
  border-color: rgba(59,130,246,.24);
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 45px rgba(15,23,42,.14), 0 0 22px rgba(59,130,246,.10);
}
[data-theme="light"] .footer-wechat-card::after {
  border-color: rgba(59,130,246,.24);
  background: rgba(255,255,255,.98);
}
[data-theme="light"] .footer-wechat-card span { color: #475569; }
@media (max-width: 480px) {
  .footer-wechat-card {
    left: 0;
    transform: translate(0, 8px) scale(.96);
  }
  .footer-wechat-card::after { left: 18px; }
  .footer-wechat:hover .footer-wechat-card,
  .footer-wechat:focus-visible .footer-wechat-card {
    transform: translate(0, 0) scale(1);
  }
}
.footer-ai-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  max-width: 220px;
}
.footer-ai-links img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  border-radius: 5px;
  opacity: .72;
  filter: grayscale(1) saturate(0) brightness(.78) contrast(1.08);
  transition: opacity var(--transition), filter var(--transition), transform var(--transition);
}
.footer-ai-links a:hover img {
  opacity: .98;
  filter: grayscale(1) saturate(0) brightness(1.12) contrast(1.12);
  transform: scale(1.04);
}
[data-theme="light"] .footer-ai-links img {
  opacity: .78;
  filter: grayscale(1) saturate(0) brightness(.62) contrast(1.16);
}
[data-theme="light"] .footer-ai-links a:hover img {
  opacity: 1;
  filter: grayscale(1) saturate(0) brightness(.36) contrast(1.24);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 24px;
  align-items: start;
  justify-items: start;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-3);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large, .bento-wide { grid-column: span 2; flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .desktop-only { display: none; }
}

@media (max-width: 700px) {
  .nav-inner { gap: 14px; }
  .nav-links, .nav-github-link, .nav-actions .btn-primary { display: none; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(8,12,20,.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  [data-theme="light"] .nav-links.open { background: rgba(248,250,255,.97); }
  .nav-links.open a { padding: 12px 0; font-size: 16px; color: var(--text); }
  .nav-toggle { display: flex; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-download-menu-wrap {
    width: 100%;
    min-width: 0;
  }
  .hero-download-card {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }
  .hero-download-icon {
    width: 34px;
    height: 32px;
  }
  .hero-download-icon svg {
    width: 16px;
    height: 16px;
  }
  .install-buttons { flex-direction: column; align-items: center; }
  .footer-links { grid-template-columns: 1fr; }
}

/* 顶部限时活动条 */
.announce {
  position: relative;
  z-index: 200;
  background: linear-gradient(90deg, #5b9fff, #a47cff, #2dd4a0);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.flash {
  animation: flash-anim 1.5s infinite;
  display: inline-block;
}
@keyframes flash-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* hero-promo badge */
.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(255,209,102,.12), rgba(255,107,157,.08));
  border: 1px solid rgba(255,209,102,.2);
  font-size: 14px;
  font-weight: 600;
  color: #ffd166;
}
.fire {
  animation: fire-bounce .6s infinite alternate;
  display: inline-block;
}
@keyframes fire-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-3px); }
}

/* 模型卡片（首页 hero 区） */
.model-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: 32px auto 0;
}
.model-strip[data-cn-models-adjusted="true"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1180px;
}
.model-card {
  padding: 22px 16px;
  border-radius: 16px;
  background: rgba(12, 17, 28, .8);
  border: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.model-card::after {
  content: "NEW";
  position: absolute;
  top: 10px;
  right: -24px;
  padding: 2px 28px;
  font-size: 10px;
  font-weight: 700;
  background: #2dd4a0;
  color: #000;
  transform: rotate(45deg);
}
.model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 159, 255, .25);
}
.model-icon { display:flex; align-items:center; justify-content:center; margin-bottom: 10px; height: 44px; }
.model-icon img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.model-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.model-vendor { font-size: 12px; color: var(--text-3, #586880); margin-bottom: 10px; }
.model-desc { font-size: 13px; color: var(--text-2, #94a3b8); line-height: 1.6; }

@media (max-width: 960px) {
  .model-strip[data-cn-models-adjusted="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
}
@media (max-width: 700px) {
  .model-strip { grid-template-columns: 1fr; max-width: 360px; }
  .model-strip[data-cn-models-adjusted="true"] { grid-template-columns: 1fr; max-width: 360px; }
}

/* 有活动条时导航栏下移 */
.has-announce .nav {
  top: 40px;
}

/* ===== 中国大陆区域政策提示条 ===== */
.cn-notice {
  position: relative;
  z-index: 201;
  background: #ffd166;
  color: #1a1a1a;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
[data-theme="light"] .cn-notice {
  background: #ffd166;
  color: #1a1a1a;
}
/* 有区域提示条时导航栏下移 */
.has-cn-notice .nav {
  top: 38px;
}
/* 同时存在区域提示条和活动条时，导航栏继续下移 */
.has-cn-notice.has-announce .nav {
  top: 78px;
}

@media (max-width: 700px) {
  .has-announce .nav {
    top: 36px;
  }
  .cn-notice {
    font-size: 12px;
    padding: 8px 12px;
  }
  .has-cn-notice .nav {
    top: 34px;
  }
  .has-cn-notice.has-announce .nav {
    top: 70px;
  }
  .announce {
    font-size: 10px;
    padding: 8px 12px;
  }
}

/* ========== 限时活动：促销横幅 & CTA 倒计时 ========== */

/* btn-gold */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background: linear-gradient(135deg, #ffd166, #ffb347);
  color: #1a1200;
  border: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 209, 102, .45);
}

/* 促销横幅 */
.promo-banner {
  padding: 60px 0;
}
.promo-box {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(91,159,255,.08), rgba(164,124,255,.08));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 40px 44px;
}
.promo-box h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}
.promo-box h2 .promo-price {
  color: #ffd166;
  font-size: 1.15em;
}
.promo-box .promo-sub {
  color: var(--text-3, #94a3b8);
  margin-bottom: 20px;
  line-height: 1.6;
}
.promo-gifts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gift-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .2s, border-color .2s;
}
.gift-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91,159,255,.25);
}
.gift-card .gift-icon { font-size: 26px; margin-bottom: 6px; }
.gift-card .gift-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.gift-card .gift-desc { font-size: 12px; color: var(--text-3, #94a3b8); line-height: 1.5; }

/* CTA 倒计时 */
.cta-section {
  padding: 60px 0 80px;
}
.cta-box {
  position: relative;
  padding: 52px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(91,159,255,.1), rgba(164,124,255,.1));
  border: 1px solid rgba(91,159,255,.2);
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,209,102,.15), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-box > p {
  color: var(--text-3, #94a3b8);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.cta-timer {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 28px;
}
.cta-timer .t-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  min-width: 52px;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cta-timer .t-label {
  font-size: 10px;
  color: var(--text-3, #94a3b8);
  display: block;
  margin-top: 4px;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 响应式补充 */
@media (max-width: 768px) {
  .promo-box {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .cta-box {
    padding: 36px 20px;
  }
}
@media (max-width: 480px) {
  .promo-gifts {
    grid-template-columns: 1fr;
  }
  .cta-timer .t-block {
    min-width: 44px;
    font-size: 20px;
    padding: 6px 10px;
  }
}

/* 模型卡片副标题（首页 hero 区） */
.model-section-title {
  text-align: center;
  margin: 36px 0 0;
}
.model-section-title p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-2, #94a3b8);
  letter-spacing: .02em;
}
.model-title-grad {
  background: linear-gradient(90deg, #b8d8ff, var(--primary, #5b9fff) 30%, var(--secondary, #a47cff) 60%, var(--accent, #2dd4a0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 限时活动元素 light 主题适配 ===== */
[data-theme="light"] .announce {
  /* 渐变色在两种主题下均清晰，保持原色 */
  color: #fff;
}
[data-theme="light"] .hero-promo {
  background: linear-gradient(135deg, rgba(180, 120, 0, .08), rgba(200, 60, 100, .06));
  border-color: rgba(160, 100, 0, .2);
  color: #a06000;
}
[data-theme="light"] .model-strip .model-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}
[data-theme="light"] .model-strip .model-card:hover {
  border-color: rgba(37, 99, 235, .25);
  box-shadow: 0 8px 32px rgba(37, 99, 235, .1);
}
[data-theme="light"] .model-strip .model-name {
  color: #0f172a;
}
[data-theme="light"] .model-strip .model-desc {
  color: #475569;
}
[data-theme="light"] .gift-card {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .08);
}
[data-theme="light"] .gift-card:hover {
  border-color: rgba(37, 99, 235, .2);
  background: rgba(37, 99, 235, .04);
}
[data-theme="light"] .gift-card .gift-desc {
  color: #64748b;
}
[data-theme="light"] .promo-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, .05) 0%, rgba(124, 58, 237, .04) 100%);
  border-color: rgba(0, 0, 0, .08);
}
[data-theme="light"] .promo-box h2 .promo-price {
  color: #b45309;
}
[data-theme="light"] .promo-box .promo-sub {
  color: #64748b;
}
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, .07) 0%, rgba(124, 58, 237, .06) 100%);
  border-color: rgba(37, 99, 235, .2);
}
[data-theme="light"] .cta-box::before {
  opacity: .4;
}
[data-theme="light"] .cta-box h2 {
  color: #0f172a;
}
[data-theme="light"] .cta-box > p {
  color: #64748b;
}
[data-theme="light"] .cta-timer .t-block {
  background: rgba(0, 0, 0, .05);
  border-color: rgba(0, 0, 0, .1);
  color: #0f172a;
}
[data-theme="light"] .cta-timer .t-label {
  color: #64748b;
}

/* ---- nav promo link (活动) ---- */
.nav-promo {
  color: #ffd166 !important;
  font-weight: 700 !important;
  background: rgba(255, 209, 102, .1) !important;
  border-radius: 999px;
  animation: promo-pulse 2.5s ease-in-out infinite;
}
.nav-promo:hover {
  background: rgba(255, 209, 102, .22) !important;
  color: #ffe599 !important;
}
@keyframes promo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,209,102,0); }
  50%       { box-shadow: 0 0 0 5px rgba(255,209,102,.18); }
}
[data-theme="light"] .nav-promo {
  color: #b45309 !important;
  background: rgba(180, 83, 9, .08) !important;
}
[data-theme="light"] .nav-promo:hover {
  background: rgba(180, 83, 9, .16) !important;
}

/* ---- announce bar clickable ---- */
a.announce {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
a.announce:hover {
  opacity: .88;
}

/* =============================================
   整站粒子背景 Canvas
   ============================================= */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* =============================================
   整站视觉活跃化
   ============================================= */

/* Section 小标签（label）彩色渐变 */
.section-label, .feat-label, .scene-label, .compare-label,
.review-label, .pricing-label, .changelog-label {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Bento / feat / mode 卡片 hover 发光边框 */
.bento-card:hover,
.feat-card:hover,
.mode-card:hover,
.testimonial-card:hover,
.changelog-item:hover {
  border-color: rgba(96, 165, 250, .45) !important;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .25), 0 8px 32px rgba(96, 165, 250, .12) !important;
  transition: border-color .3s, box-shadow .3s;
}

/* CTA 主按钮 shimmer 扫光 */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: btn-shimmer 2.8s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%   { left: -75%; }
  60%  { left: 125%; }
  100% { left: 125%; }
}

/* Hero 下载卡片也加发光 */
.hero-download-card:hover {
  box-shadow: 0 0 0 1.5px rgba(96,165,250,.5), 0 12px 40px rgba(96,165,250,.15) !important;
  transition: box-shadow .3s;
}

/* stat 数字发光 */
.stat-number, .stat .number {
  text-shadow: 0 0 18px rgba(96,165,250,.45);
}

/* Section 顶部渐变分隔光晕线 */
.features::before, .modes-section::before, .testimonials::before,
.install-section::before, .changelog::before, .demo-section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(96,165,250,.35) 30%, rgba(167,139,250,.35) 70%, transparent 100%);
  margin-bottom: 0;
}

/* 浅色主题适配 */
[data-theme="light"] .bento-card:hover,
[data-theme="light"] .feat-card:hover,
[data-theme="light"] .mode-card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .changelog-item:hover {
  border-color: rgba(37,99,235,.35) !important;
  box-shadow: 0 0 0 1px rgba(37,99,235,.15), 0 8px 32px rgba(37,99,235,.08) !important;
}
[data-theme="light"] .stat-number, [data-theme="light"] .stat .number {
  text-shadow: 0 0 12px rgba(37,99,235,.25);
}
[data-theme="light"] .features::before,
[data-theme="light"] .modes-section::before,
[data-theme="light"] .testimonials::before,
[data-theme="light"] .install-section::before,
[data-theme="light"] .changelog::before,
[data-theme="light"] .demo-section::before {
  background: linear-gradient(90deg, transparent 0%, rgba(37,99,235,.25) 30%, rgba(124,58,237,.25) 70%, transparent 100%);
}

/* ---------- MODES: hover 差异化霓虹 ---------- */
.modes-grid .mode-card:nth-child(1)  { --mc:96,165,250 }
.modes-grid .mode-card:nth-child(2)  { --mc:129,140,248 }
.modes-grid .mode-card:nth-child(3)  { --mc:52,211,153 }
.modes-grid .mode-card:nth-child(4)  { --mc:56,189,248 }
.modes-grid .mode-card:nth-child(5)  { --mc:45,212,191 }
.modes-grid .mode-card:nth-child(6)  { --mc:244,114,182 }
.modes-grid .mode-card:nth-child(7)  { --mc:251,146,60 }
.modes-grid .mode-card:nth-child(8)  { --mc:250,204,21 }
.modes-grid .mode-card:nth-child(9)  { --mc:168,85,247 }
.modes-grid .mode-card:nth-child(10) { --mc:34,197,94 }
.modes-grid .mode-card:nth-child(11) { --mc:249,115,22 }
.modes-grid .mode-card:nth-child(12) { --mc:248,113,113 }
.modes-grid .mode-card:nth-child(13) { --mc:99,102,241 }
.modes-grid .mode-card:nth-child(14) { --mc:217,70,239 }
.modes-grid .mode-card:nth-child(15) { --mc:251,146,60 }
.modes-grid .mode-card:nth-child(16) { --mc:34,211,238 }
.modes-grid .mode-card:hover {
  border-color: rgba(var(--mc),.72) !important;
  box-shadow: 0 0 0 1px rgba(var(--mc),.28), 0 16px 44px rgba(var(--mc),.22), 0 8px 28px rgba(0,0,0,.3) !important;
  transform: translateY(-5px) !important;
}

/* modes 静止背景色调 */
.modes-grid .mode-card { background-image: radial-gradient(circle at 80% 0%, rgba(var(--mc),.09) 0%, transparent 55%) !important; transition: border-color var(--transition), box-shadow var(--transition), background-image var(--transition), transform var(--transition); }


/* ---------- FOOTER: bottom AI links compact placement ---------- */
.footer-bottom {
  gap: 20px;
}

.footer-bottom .footer-ai-links {
  margin-top: 0;
  margin-left: auto;
  max-width: none;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
}

.footer-bottom .footer-ai-links a {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.footer-bottom .footer-ai-links a:hover {
  border-color: transparent;
  background: transparent;
  transform: translateY(-1px);
}

.footer-bottom .footer-ai-links img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  opacity: .58;
}

.footer-bottom .footer-ai-links a:hover img {
  opacity: .9;
  transform: scale(1.08);
}

/* ---------- HOMEPAGE HERO INTEGRATED SHOWCASE (2026-07) ---------- */
.hero {
  min-height: auto;
  justify-content: flex-start;
  padding: clamp(112px, 10vw, 144px) 24px 14px;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: none;
}
.hero .hero-grid {
  opacity: .72;
  mask-image: radial-gradient(ellipse 82% 76% at 50% 42%, black 34%, transparent 100%);
}
.hero .hero-glow-1 {
  width: 760px;
  height: 460px;
  top: -180px;
  opacity: .34;
}
.hero .hero-glow-2 {
  width: 560px;
  height: 380px;
  right: 5%;
  bottom: 18%;
  opacity: .24;
  background: radial-gradient(circle, rgba(45,212,191,.34) 0%, transparent 72%);
}
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
}
.hero-copy {
  width: 100%;
  max-width: 890px;
  margin: 0 auto;
}
.hero-promo.hero-eyebrow {
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-color: rgba(148,163,184,.22);
  background: rgba(15,23,42,.42);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none;
}
.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 16px rgba(45,212,191,.72);
}
.hero .fire { display: none; }
.hero-title {
  margin: 0 auto 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.065em;
  white-space: nowrap;
}
.hero-title span {
  display: inline;
}
.hero-desc {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.75;
  color: var(--text-2);
}
.hero-actions.hero-download-cards {
  align-items: center;
  gap: 12px;
  margin: 0;
}
.hero-text-actions {
  gap: clamp(18px, 2.2vw, 34px);
}
.hero .hero-text-menu-wrap {
  min-width: 0;
  display: inline-flex;
}
.hero-text-menu-wrap .hero-download-menu {
  min-width: 214px;
}
button.hero-plain-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.hero .hero-download-menu-wrap {
  min-width: 214px;
}
.hero .hero-text-menu-wrap {
  min-width: 0;
}
.hero .hero-download-card {
  min-width: 214px;
  padding: 12px 16px;
  border-radius: 15px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.hero .hero-download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(96,165,250,.14) !important;
}
.hero .hero-download-card-docs {
  min-width: 196px;
  border-color: rgba(96,165,250,.28);
  background: rgba(96,165,250,.08);
}
.hero .hero-download-card-docs:hover {
  border-color: rgba(96,165,250,.48);
  box-shadow: 0 16px 38px rgba(96,165,250,.13) !important;
}
.hero .hero-download-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.hero .hero-download-icon svg {
  width: 20px;
  height: 20px;
}
.hero .hero-download-copy strong {
  font-size: 14px;
}
.hero .hero-download-copy small {
  font-size: 10px;
}
.hero-plain-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  transition: color var(--transition), transform var(--transition), opacity var(--transition);
}
.hero-plain-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.hero-plain-link .hero-action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .78;
  transition: opacity var(--transition), transform var(--transition);
}
.hero-menu-arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: .78;
  transition: transform var(--transition), opacity var(--transition);
}
.hero-plain-link:hover .hero-action-icon,
.hero-menu-trigger:hover .hero-menu-arrow {
  opacity: 1;
}
.hero-menu-trigger[aria-expanded="true"] .hero-menu-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 1220px;
  margin: clamp(30px, 4.8vw, 52px) auto 0;
  isolation: isolate;
  text-align: left;
}
.hero-showcase::before {
  content: none;
}
.hero-model-logo-title {
  margin: 58px auto 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  color: rgba(226,232,240,.72);
}
.hero-model-logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 35px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
}
.hero-model-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  opacity: .52;
  transition: transform var(--transition), opacity var(--transition), filter var(--transition);
}
.hero-model-logo img,
.hero-model-logo-mimo-badge {
  filter: brightness(.62) saturate(.86);
  transition: transform var(--transition), opacity var(--transition), filter var(--transition), box-shadow var(--transition);
}
.hero-model-logo:hover {
  transform: translateY(-2px);
  opacity: 1;
}
.hero-model-logo-row:hover .hero-model-logo {
  opacity: .32;
}
.hero-model-logo-row:hover .hero-model-logo:hover {
  opacity: 1;
}
.hero-model-logo:hover img,
.hero-model-logo:hover .hero-model-logo-mimo-badge,
.hero-model-logo-row:hover .hero-model-logo:hover img,
.hero-model-logo-row:hover .hero-model-logo:hover .hero-model-logo-mimo-badge {
  filter: brightness(1.08) saturate(1.08);
}
.hero-model-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.hero-model-logo-mimo-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6a00;
  box-shadow: 0 6px 16px rgba(255,106,0,.18);
}
.hero-model-logo:hover .hero-model-logo-mimo-badge,
.hero-model-logo-row:hover .hero-model-logo:hover .hero-model-logo-mimo-badge {
  box-shadow: 0 10px 22px rgba(255,106,0,.34);
}
.hero-model-logo-mimo-mi {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
}
.modes-section {
  padding-top: 42px;
}
.modes-section::before {
  margin-bottom: 56px;
}
.logos-section {
  padding: 34px 0;
}
[data-theme="light"] .hero-promo.hero-eyebrow {
  border-color: rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  color: #475569;
}
[data-theme="light"] .hero-model-logo-title {
  color: rgba(71,85,105,.82);
}
[data-theme="light"] .hero-model-logo-mimo-badge {
  box-shadow: 0 6px 16px rgba(255,106,0,.18);
}
[data-theme="light"] .hero-plain-link {
  color: #475569;
}
[data-theme="light"] .hero-plain-link:hover {
  color: #0f172a;
}
@media (max-width: 1100px) {
  .hero {
    padding-top: clamp(104px, 11vw, 128px);
  }
}
@media (max-width: 760px) {
  .hero {
    padding: 104px 16px 52px;
  }
  .hero-title {
    font-size: clamp(36px, 12vw, 60px);
    letter-spacing: -.06em;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 1.72;
    margin-bottom: 22px;
  }
  .hero-actions.hero-download-cards {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
  }
  .hero-text-menu-wrap {
    justify-content: center;
  }
  .hero-showcase {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .hero-model-logo-title {
    margin-top: 42px;
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: .1em;
  }
  .hero-model-logo-row {
    gap: 22px;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 18px;
  }
  .hero-model-logo {
    min-height: 24px;
  }
  .hero-model-logo img {
    width: 24px;
    height: 24px;
  }
  .hero-model-logo-mimo-badge {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .hero-model-logo-mimo-mi {
    font-size: 9px;
  }

}
@media (max-width: 480px) {
  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-promo.hero-eyebrow {
    max-width: 100%;
    letter-spacing: .035em;
    white-space: normal;
  }
  .hero-title {
    font-size: clamp(32px, 11vw, 50px);
  }
  .hero-model-logo-row {
    gap: 16px;
    margin-bottom: 14px;
  }
  .hero-model-logo img {
    width: 22px;
    height: 22px;
  }
  .hero-model-logo-mimo-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .hero-model-logo-mimo-mi {
    font-size: 8px;
  }
}
/* ---------- END HOMEPAGE HERO INTEGRATED SHOWCASE ---------- */
