/* ==========================================================================
   闪压压缩官网 - 全局样式
   视觉对齐 baseline(原 Astro + Tailwind 实现)，底层全部用原生 CSS 重写
   ========================================================================== */

:root {
  /* baseline tailwind.config.mjs 的色板 */
  --brand-50:   #eef2ff;
  --brand-100:  #e0e7ff;
  --brand-200:  #c7d2fe;
  --brand-300:  #a5b4fc;
  --brand-400:  #818cf8;
  --brand-500:  #6366f1; /* 主色 */
  --brand-600:  #4f46e5;
  --brand-700:  #4338ca;
  --brand-800:  #3730a3;
  --brand-900:  #312e81;
  --brand-950:  #1e1b4b;

  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;

  /* 中性色 (slate) */
  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-300:  #cbd5e1;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-600:  #475569;
  --slate-700:  #334155;
  --slate-800:  #1e293b;
  --slate-900:  #0f172a;
  --slate-950:  #020617;

  /* 语义色 */
  --bg:         #ffffff;
  --bg-soft:    #f8fafc;
  --fg:         #0f172a;
  --fg-soft:    #475569;
  --border:     #e2e8f0;

  /* 圆角 */
  --radius-sm:  6px;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* 阴影 */
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow:     0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:  0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-glow:    0 0 40px -8px rgba(99, 102, 241, 0.35);
  --shadow-glow-lg: 0 20px 60px -15px rgba(99, 102, 241, 0.4);

  /* 字体 */
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans CN", "Noto Sans SC", system-ui, sans-serif;

  /* 容器 */
  --container-max: 1600px;
}

html.dark {
  --bg:         #020617;
  --bg-soft:    #0f172a;
  --fg:         #f1f5f9;
  --fg-soft:    #94a3b8;
  --border:     #1e293b;
}

/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; width: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-600); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg); }
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: var(--slate-50); }
ul { list-style: none; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-500); border-radius: var(--radius-sm); }

/* 选区 */
::selection { background: rgba(99, 102, 241, 0.3); color: var(--brand-900); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-400); }
html.dark ::-webkit-scrollbar-track { background: var(--slate-900); }
html.dark ::-webkit-scrollbar-thumb { background: var(--slate-700); }

/* ===== container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 640px)  { .container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .container { padding-left: 32px; padding-right: 32px; } }

/* ===== section 通用 ===== */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* ===== gradient text ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500), var(--brand-500));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-x 8s ease infinite;
}
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in  { animation: fade-in 0.5s ease-out; }
.animate-slide-up { animation: slide-up 0.6s ease-out; }

/* ===== dot-bg 装饰 ===== */
.dot-bg {
  background-image: radial-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 8px 12px;  font-size: 13px; }
.btn-md { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--accent-500) 50%, #a855f7 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
  color: #fff;
}
.btn-secondary {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--brand-500); color: var(--fg); }
.btn-ghost { color: var(--fg-soft); background: transparent; }
.btn-ghost:hover { background: var(--slate-100); color: var(--fg); }
html.dark .btn-ghost { color: var(--slate-300); }
html.dark .btn-ghost:hover { background: var(--slate-800); color: var(--slate-100); }

/* ===== glass / card ===== */
.glass-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
html.dark .glass-card {
  border-color: rgba(30, 41, 59, 0.6);
  background: rgba(15, 23, 42, 0.6);
}
.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 24px;
  transition: all 0.3s;
  text-align: left;
}
html.dark .feature-card { background: var(--slate-900); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-400);
  box-shadow: var(--shadow-glow);
}

/* ===== feature 渐变图标块 ===== */
.feature-icon-image {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  color: #fff; margin-bottom: 12px;
}
.feature-blue    { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.feature-purple  { background: linear-gradient(135deg, #a855f7, #ec4899); }
.feature-orange  { background: linear-gradient(135deg, #f97316, #ef4444); }
.feature-red     { background: linear-gradient(135deg, #ef4444, #f43f5e); }
.feature-emerald { background: linear-gradient(135deg, #10b981, #14b8a6); }
.feature-indigo  { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.feature-sky     { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.feature-amber   { background: linear-gradient(135deg, #f59e0b, #eab308); }

/* ===== Header 毛玻璃 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, 0.6); }
}
html.dark .site-header {
  border-bottom-color: rgba(30, 41, 59, 0.6);
  background: rgba(2, 6, 23, 0.8);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  html.dark .site-header { background: rgba(2, 6, 23, 0.6); }
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.brand-link { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
}
.brand-logo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.brand-text .accent { color: var(--brand-500); }

/* desktop nav */
.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-item {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--fg-soft);
  border-radius: var(--radius-sm);
}
.nav-item:hover, .nav-item.active { background: var(--slate-100); color: var(--fg); }
html.dark .nav-item:hover, html.dark .nav-item.active { background: var(--slate-800); color: var(--slate-100); }
.nav-item.has-children .caret { display: inline-block; margin-left: 4px; font-size: 10px; }
.nav-submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 224px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}
.nav-item.has-children:hover .nav-submenu { opacity: 1; visibility: visible; }
.nav-submenu a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--fg-soft);
}
.nav-submenu a:hover { background: var(--brand-50); color: var(--brand-600); }
html.dark .nav-submenu a:hover { background: rgba(99,102,241,0.15); color: var(--brand-400); }

/* mobile menu */
.nav-mobile-toggle { display: inline-flex; padding: 8px; }
@media (min-width: 1024px) { .nav-mobile-toggle { display: none; } }
.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 8px 0 16px; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.08); }
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 12px 16px; font-size: 15px;
  color: var(--fg-soft); border-radius: var(--radius-sm); margin: 2px 0;
}
.nav-mobile a.active { color: var(--brand-600); font-weight: 600; background: var(--brand-50); }
.nav-mobile a:hover { background: var(--slate-100); color: var(--fg); }
html.dark .nav-mobile a.active { background: rgba(99,102,241,0.15); }
html.dark .nav-mobile a:hover { background: var(--slate-800); color: var(--slate-100); }
/* 移动端 details 折叠 */
.nav-mobile details { margin: 2px 0; }
.nav-mobile details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 15px; color: var(--fg-soft);
  border-radius: var(--radius-sm); cursor: pointer;
  list-style: none; user-select: none;
}
.nav-mobile details summary::-webkit-details-marker { display: none; }
.nav-mobile details summary::after {
  content: '+'; font-size: 18px; color: var(--fg-soft);
  transition: transform 0.2s;
}
.nav-mobile details[open] summary::after { content: '\2212'; }
.nav-mobile details summary:hover { background: var(--slate-100); color: var(--fg); }
.nav-mobile details[open] > summary { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
html.dark .nav-mobile details summary:hover { background: var(--slate-800); color: var(--slate-100); }
html.dark .nav-mobile details[open] > summary { background: rgba(99,102,241,0.15); color: var(--brand-400); }
.nav-mobile details a { padding-left: 36px; font-size: 14px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px; }
@media (min-width: 768px) { .hero { padding: 112px 0 96px; } }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.preview-window { width: clamp(700px, calc(100vw - 120px), 1200px); margin-left: 50%; transform: translateX(-50%); position: relative; z-index: 1; border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-glow-lg); overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--brand-200); background: var(--brand-50);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; color: var(--brand-700);
  margin-bottom: 24px; animation: fade-in 0.5s ease-out;
}
html.dark .hero-badge {
  border-color: var(--brand-800); background: rgba(99, 102, 241, 0.15); color: var(--brand-300);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); position: relative; }
.hero-badge .dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-400);
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(2.4); opacity: 0; } }
.hero h1 { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 64px; } }
.hero p.lead { font-size: 17px; color: var(--fg-soft); max-width: 640px; margin: 0 auto 40px; line-height: 1.6; }
@media (min-width: 768px) { .hero p.lead { font-size: 19px; } }
.hero-cta {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }
.hero-meta { font-size: 13px; color: var(--slate-500); margin-bottom: 40px; }
.hero-blob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 1200px; height: 800px; background: rgba(99, 102, 241, 0.10);
  border-radius: 50%; filter: blur(96px); z-index: -1; pointer-events: none;
}
html.dark .hero-blob { background: rgba(99, 102, 241, 0.05); }
.hero-dot-bg { position: absolute; inset: 0; opacity: 0.6; z-index: -1; }

/* product preview */

html.dark .preview-window { background: var(--slate-900); }
.preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--slate-50); font-size: 12px; color: var(--slate-500);
}
html.dark .preview-bar { background: var(--slate-950); }
.preview-bar .traffic-lights { display: flex; gap: 6px; }
.preview-bar .traffic-lights span { width: 12px; height: 12px; border-radius: 50%; }
.preview-bar .traffic-lights span:nth-child(1) { background: #f87171; }
.preview-bar .traffic-lights span:nth-child(2) { background: #fbbf24; }
.preview-bar .traffic-lights span:nth-child(3) { background: #4ade80; }
.preview-bar .title { flex: 1; text-align: center; }
.preview-body { padding: 20px; }
@media (min-width: 768px) { .preview-body { padding: 40px 32px; } }
.preview-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
@media (min-width: 768px) { .preview-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.preview-card { padding: 16px 18px; }
.preview-card-desc { font-size: 13px; color: var(--fg-soft); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.preview-card .feature-icon-image { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; }
.preview-card .feature-icon-image svg { width: 24px; height: 24px; }

/* ===== Features grid ===== */
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== section header ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  font-size: 13px; font-weight: 600;
  color: var(--brand-600); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 12px;
}
html.dark .section-head .eyebrow { color: var(--brand-400); }
.section-head h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 768px) { .section-head h2 { font-size: 36px; } }
@media (min-width: 1024px) { .section-head h2 { font-size: 48px; } }
.section-head p { margin-top: 16px; color: var(--fg-soft); font-size: 17px; }

/* ===== scenes 4 grid ===== */
.scenes-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .scenes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .scenes-grid { grid-template-columns: repeat(4, 1fr); } }
.scene-card {
  padding: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom right, var(--bg), var(--bg-soft));
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.scene-card:hover { border-color: var(--brand-400); }
html.dark .scene-card { background: linear-gradient(to bottom right, var(--slate-900), var(--slate-950)); }
.scene-card .emoji { font-size: 36px; margin-bottom: 12px; }
.scene-card h3 { font-size: 18px; margin-bottom: 8px; }
.scene-card p { font-size: 14px; color: var(--fg-soft); line-height: 1.6; }

/* ===== stats strip ===== */
.stats-strip {
  display: grid; grid-template-columns: 1fr; gap: 32px; text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom right, var(--bg), var(--bg-soft));
}
@media (min-width: 768px) { .stats-strip { grid-template-columns: repeat(3, 1fr); } }
html.dark .stats-strip { background: linear-gradient(to bottom right, var(--slate-900), var(--slate-950)); }
.stats-strip .num {
  font-size: 48px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-strip .lbl { margin-top: 8px; font-size: 14px; color: var(--fg-soft); }

/* ===== faq ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); padding: 20px;
}
html.dark .faq-list details { background: var(--slate-900); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none;
  font-weight: 500; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex-shrink: 0;
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke=%27%2394a3b8%27 stroke-width=%272%27><path d=%27m6 9 6 6 6-6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/></svg>");
  background-repeat: no-repeat; transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p { margin-top: 12px; color: var(--fg-soft); line-height: 1.7; }
.faq-more { text-align: center; margin-top: 32px; }
.faq-more a { color: var(--brand-600); font-weight: 500; }
html.dark .faq-more a { color: var(--brand-400); }

/* ===== testimonials ===== */
.testimonials {
  position: relative; background: var(--bg-soft);
  border-radius: var(--radius-lg); padding: 48px 32px 32px;
  margin: 0 auto; overflow: hidden;
}
html.dark .testimonials { background: var(--slate-900); }
.testimonials-marker {
  position: absolute; top: 36px;
  width: 32px; height: 32px;
  background: var(--bg); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  border: 1px solid var(--border); z-index: 1;
}
html.dark .testimonials-marker { background: var(--slate-800); border-color: var(--slate-700); }
.testimonials-marker.left { right: 72px; }
.testimonials-marker.right { right: 32px; }
.testimonials-marker.disabled { opacity: 0.4; cursor: not-allowed; }
.testimonials-list { overflow: hidden; margin-top: 24px; }
.testimonials-track {
  display: flex; gap: 20px;
  transition: transform 0.6s ease;
}
.testimonial-card {
  flex: 0 0 100%; min-width: 280px;
  background: var(--bg); border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
@media (min-width: 768px)  { .testimonial-card { flex: 0 0 calc((100% - 40px) / 2); } }
@media (min-width: 1100px) { .testimonial-card { flex: 0 0 calc((100% - 40px) / 3); } }
html.dark .testimonial-card { background: var(--slate-800); }
.testimonial-card .quote { font-size: 15px; line-height: 1.7; color: var(--fg); }
.testimonial-card .name  { margin-top: 16px; font-weight: 600; color: var(--brand-600); }
.testimonial-card .role  { font-size: 13px; color: var(--fg-soft); }

/* ===== CTA final ===== */
.cta-final {
  position: relative;
  padding: 64px 32px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500), #a855f7);
  border-radius: var(--radius-xl);
  text-align: center; color: #fff; overflow: hidden;
}
@media (min-width: 768px) { .cta-final { padding: 80px; } }
.cta-final h2 { color: #fff; font-size: 28px; line-height: 1.15; }
@media (min-width: 768px) { .cta-final h2 { font-size: 40px; } }
@media (min-width: 1024px) { .cta-final h2 { font-size: 48px; } }
.cta-final p { margin: 16px auto 32px; max-width: 600px; font-size: 17px; opacity: 0.9; }
.cta-final .btn-row {
  display: flex; flex-direction: column; align-items: center; gap: 12px; justify-content: center;
}
@media (min-width: 640px) { .cta-final .btn-row { flex-direction: row; } }
.cta-final .btn-white {
  background: #fff; color: var(--brand-600); font-weight: 600;
}
.cta-final .btn-white:hover { background: var(--slate-50); color: var(--brand-600); transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2); }
.cta-final .btn-ghost-white {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  backdrop-filter: blur(4px);
}
.cta-final .btn-ghost-white:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ===== footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft); padding: 48px 0 0;
}
html.dark .site-footer { background: var(--slate-950); }
.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--fg-soft); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; color: var(--fg); }
html.dark .footer-col h4 { color: var(--slate-100); }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--fg-soft); }
.footer-col a:hover { color: var(--brand-600); }
.footer-bottom {
  margin-top: 48px; padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center;
  font-size: 14px; color: var(--slate-500);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: center; } }

/* ===== goto_top 浮窗 ===== */
.goto_top {
  position: fixed; right: 24px; bottom: 96px; z-index: 30;
  display: flex; flex-direction: column; gap: 6px;
}
.goto_top .kefu-btn, .goto_top .set_top {
  width: 56px; height: 56px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 12px; color: var(--fg);
  box-shadow: var(--shadow);
}
.goto_top .kefu-btn { height: 80px; flex-direction: column; padding-top: 50px; }
.goto_top .set_top:hover, .goto_top .kefu-btn:hover { color: var(--brand-600); border-color: var(--brand-400); }
.code-layout {
  position: absolute; right: 64px; bottom: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px;
  box-shadow: var(--shadow-lg); display: none; text-align: center;
}
html.dark .code-layout { background: var(--slate-900); }
.code-layout img { width: 120px; height: 120px; }
.code-layout .tip { font-size: 13px; margin-bottom: 8px; color: var(--fg); }
.code-layout.show { display: block; }

/* ===== admin / chrome ===== */
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== 为什么选择（3 列大图标卡） ===== */
.why-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
html.dark .why-card { background: var(--slate-900); }
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-400);
  box-shadow: var(--shadow-glow);
}
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.why-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.why-card p  { font-size: 15px; color: var(--fg-soft); line-height: 1.7; }

/* ===== 着陆页：格式芯片、操作步骤 ===== */
.format-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; max-width: 720px; margin: 0 auto;
}
.format-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.format-chip:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
  transform: translateY(-2px);
}
html.dark .format-chip { background: var(--slate-900); }
html.dark .format-chip:hover { color: var(--brand-400); }

.steps-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-align: center;
  transition: all 0.3s;
}
html.dark .step-card { background: var(--slate-900); }
.step-card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  font-size: 20px; font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.step-card p  { font-size: 14px; color: var(--fg-soft); line-height: 1.6; }

.feature-hero h1 { font-size: 36px; }
@media (min-width: 768px) { .feature-hero h1 { font-size: 48px; } }
@media (min-width: 1024px) { .feature-hero h1 { font-size: 56px; } }

/* ===== 右侧悬浮工具栏 (FAB) ===== */
.fab-bar {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.fab-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 0;
}
.fab-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px -8px rgba(99, 102, 241, 0.45),
    0 4px 8px rgba(15, 23, 42, 0.08);
}
.fab-btn:hover .fab-icon {
  transform: scale(1.1);
}
.fab-btn:hover .fab-label {
  color: #fff;
  font-weight: 500;
}
.fab-icon {
  transition: transform 0.25s ease;
}
.fab-label {
  font-size: 11px;
  color: var(--slate-500);
  letter-spacing: 0.5px;
  transition: color 0.25s;
}
/* 顶部按钮 hover 出蓝色（区别于客服的品牌渐变） */
.fab-btn.fab-top:hover {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
/* 激活态：客服按钮展示二维码时高亮 */
.fab-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.fab-btn.is-active .fab-label { color: #fff; font-weight: 500; }
html.dark .fab-btn {
  background: var(--slate-800);
  border-color: var(--slate-700);
  color: var(--slate-300);
}
html.dark .fab-btn:hover { color: #fff; }
html.dark .fab-label { color: var(--slate-400); }

/* 二维码弹窗（带指向客服按钮的小三角） */
.fab-qrcode {
  position: absolute;
  right: 68px;
  top: 0;
  width: 152px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow:
    0 10px 30px -6px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.06);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.fab-qrcode.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.fab-qrcode .tip {
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate-700);
  margin-bottom: 8px;
}
.fab-qrcode .tip small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 2px;
}
.fab-qrcode img {
  display: block;
  width: 124px;
  height: 124px;
  border-radius: 8px;
  margin: 0 auto;
}
/* 弹窗的右向箭头 */
.fab-qrcode .qr-arrow {
  position: absolute;
  right: -7px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid var(--slate-200);
  border-top: 1px solid var(--slate-200);
  transform: rotate(45deg);
}
html.dark .fab-qrcode {
  background: var(--slate-800);
  border-color: var(--slate-700);
}
html.dark .fab-qrcode .tip { color: var(--slate-200); }
html.dark .fab-qrcode .tip small { color: var(--slate-400); }
html.dark .fab-qrcode .qr-arrow {
  background: var(--slate-800);
  border-color: var(--slate-700);
}

/* 小屏时缩小一点 */
@media (max-width: 640px) {
  .fab-bar { right: 12px; bottom: 64px; }
  .fab-btn { width: 50px; height: 50px; border-radius: 14px; }
  .fab-label { display: none; }
  .fab-qrcode { right: 60px; }
}

/* 保留旧 .goto_top 兼容层（避免 inline old markup 失效） */
.goto_top { display: none; }

/* ===== 时间轴（关于页发展历程） ===== */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 0 16px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 80px; /* 与时间年份标签对齐 */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--brand-400) 8%,
    var(--accent-500) 50%,
    var(--brand-400) 92%,
    transparent 100%
  );
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 24px 0;
  align-items: start;
}
.timeline-year {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
  margin-top: 4px;
  z-index: 1;
  justify-self: end;
  min-width: 72px;
}
.timeline-year::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  z-index: 2;
}
html.dark .timeline-year::after {
  background: var(--slate-900);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}
.timeline-content {
  position: relative;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: all 0.3s;
}
html.dark .timeline-content { background: var(--slate-900); }
.timeline-content:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.timeline-content::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 28px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.timeline-content:hover::before {
  border-color: var(--brand-400);
}
.timeline-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}
html.dark .timeline-content h3 { color: var(--slate-50); }
.timeline-content p {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .timeline::before { left: 60px; }
  .timeline-item { grid-template-columns: 76px 1fr; gap: 20px; }
  .timeline-year { min-width: 56px; padding: 0 10px; font-size: 13px; }
  .timeline-year::after { right: -14px; }
  .timeline-content { padding: 18px 20px; }
}

/* Markdown 表格 */
.md-table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.md-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-table thead { background: var(--bg-soft); }
.md-table th, .md-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.md-table th { font-weight: 600; color: var(--fg); }
.md-table tbody tr:last-child td { border-bottom: none; }
.md-table tbody tr:hover { background: var(--slate-50); }
html.dark .md-table tbody tr:hover { background: var(--slate-900); }

/* Blockquote */
blockquote { margin: 12px 0; padding: 12px 18px; border-left: 4px solid var(--brand-500); background: var(--bg-soft); color: var(--fg-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
blockquote p { margin: 4px 0; }

/* hr */
hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* 文章内 ol / ul 间距 */
.article-body ol, .article-body ul { padding-left: 22px; margin: 8px 0 16px; }
.article-body ol li, .article-body ul li { margin: 4px 0; line-height: 1.75; }
/* Blog tabs (全部 / 技术 / 教程 / 资讯) */
.blog-tabs-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 32px; }
.blog-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; }
.blog-tab {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--fg-soft);
  text-decoration: none; transition: all .2s ease;
}
.blog-tab:hover { color: var(--fg); background: rgba(99,102,241,.08); }
.blog-tab.active { color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); box-shadow: var(--shadow-glow); font-weight: 600; }
/* ===== Mobile 专项加固 ===== */
/* ===== Mobile 专项加固 ===== */
@media (max-width: 640px) {
  /* hero 头部贴紧 */
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 30px; line-height: 1.15; }
  .hero p.lead { font-size: 15px; margin-bottom: 28px; }
  .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 18px; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-meta { font-size: 12px; margin-bottom: 32px; }

  /* sections 紧凑 */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 15px; }

  /* preview window 窄屏自适应 */
  .preview-window { width: calc(100vw - 32px); min-width: 0; max-width: 100%; margin-left: 0; transform: none; border-radius: 16px; }

  /* preview 卡片紧凑 */
  .preview-card { padding: 18px 16px; }
  .preview-card .feature-icon-image { width: 42px; height: 42px; }
  .preview-card h3 { font-size: 16px; }
  .preview-card p { font-size: 12px; line-height: 1.5; }

  /* scene-card */
  .scene-card { padding: 20px; }

  /* timeline 紧凑 */
  .timeline-item { grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; }
  .timeline-year { min-width: 50px; padding: 0 8px; font-size: 12px; }
  .timeline-year::after { right: -12px; width: 10px; height: 10px; border-width: 2px; }
  .timeline-content { padding: 16px 18px; }
  .timeline-content h3 { font-size: 16px; }
  .timeline-content p { font-size: 14px; }

  /* FAQ 紧凑 */
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-item .faq-answer { padding: 0 18px 16px; font-size: 14px; }

  /* CTA final 紧凑 */
  .cta-final { padding: 40px 24px; border-radius: var(--radius-lg); }
  .cta-final h2 { font-size: 24px; }
  .cta-final p { font-size: 15px; }
  .cta-final .btn-row .btn { width: 100%; max-width: 280px; }

  /* footer 紧凑 */
  .site-footer { padding-top: 36px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { margin-top: 32px; padding: 18px 0; font-size: 13px; }

  /* fab 浮窗 */
  .fab-bar { right: 12px; bottom: 80px; }
  .fab-btn { width: 46px; height: 46px; }
  .fab-qrcode { right: 54px; padding: 12px; }
  .fab-qrcode img { width: 100px; height: 100px; }

  /* blog 文章页 */
  .article-hero h1 { font-size: 24px; line-height: 1.3; }
  .article-body { font-size: 15px; line-height: 1.75; }
  .article-body h2 { font-size: 20px; }
  .article-body h3 { font-size: 17px; }

  /* 阻止横向滚动 */
  body { overflow-x: hidden; }
}
/* 导航栏立即下载按钮 */
.nav-download-btn { display: none !important; }
@media (min-width: 768px) { .nav-download-btn { display: inline-flex !important; } }


/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--fg-soft, #6b7280);
  max-width: var(--container-max, 1200px);
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px 6px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}
.breadcrumb li + li::before {
  content: '\203A';
  color: var(--fg-soft, #9ca3af);
  margin: 0 4px;
  font-weight: 500;
}
.breadcrumb a {
  color: var(--fg-soft, #6b7280);
  text-decoration: none;
  transition: color .15s ease;
}
.breadcrumb a:hover {
  color: var(--brand-500, #6366f1);
}
.breadcrumb .bread-current {
  color: var(--fg, #111827);
  font-weight: 500;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .breadcrumb { padding: 16px 20px 4px; font-size: 12px; }
}
@media (max-width: 480px) {
  .breadcrumb { padding: 12px 16px 4px; font-size: 12px; }
  .breadcrumb .bread-current { max-width: 180px; }
}




/* ===== 面包屑 hero 变体（融入 banner 渐变） ===== */
.breadcrumb--in-hero {
  max-width: var(--container-max, 1200px);
  margin: 0 auto !important;
  padding: 0 24px !important;
  width: 100% !important;
  border-bottom: none !important;
  background: transparent !important;
}
/* 面包屑贴在导航栏下方 + 跟 .container 同步 paddingLeft 自然和 logo 左对齐 */
.site-header + .breadcrumb {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  /* 与 .container 完全一致的 padding 节奏 */
  padding: 14px 16px 8px;
  position: relative;
  z-index: 2;
  text-align: left;
  font-size: 13px;
  background: transparent;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .site-header + .breadcrumb { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1024px) {
  .site-header + .breadcrumb { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 480px) {
  .site-header + .breadcrumb { padding: 10px 16px 6px; font-size: 12px; }
}
