/* ============================================================
   AutoWave Public Site - Stylesheet
   AutoWave 官方站点 - 样式表
   Dark theme · #10b981 accent · Catppuccin Mocha inspired tokens
   深色主题 · 蓝绿主调 · 与 admin 一致的色板
   ============================================================ */

/* -------- Design tokens / 设计 token -------- */
:root {
  --bg:        #0a0a0a;
  --bg-alt:    #0d0d0d;
  --surface:   #111111;
  --surface-2: #161616;
  --border:    #1a1a1a;
  --border-2:  #2a2a2a;
  --text:      #e5e7eb;
  --text-2:    #d1d5db;
  --muted:     #9ca3af;
  --muted-2:   #6b7280;
  --accent:    #10b981;
  --accent-2:  #06b6d4;
  --accent-3:  #34d399;
  --warn:      #f9e2af;
  --danger:    #f38ba8;
  --beta:      #818cf8;
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --radius:    10px;
  --radius-lg: 14px;
  --gradient:  linear-gradient(90deg, #10b981, #06b6d4);
}

/* -------- Reset / 归一化 -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
code {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}
::selection { background: rgba(16,185,129,0.35); color: #fff; }

/* -------- Layout / 布局 -------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------- Header / 顶栏 -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-logo { width: 28px; height: 28px; }
.brand-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: 1.5rem;
  flex: 1;
}
.nav-link {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Mobile nav toggle / 移动端切换按钮 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text);
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle svg { width: 22px; height: 22px; }

/* -------- Buttons / 按钮 -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #052e22;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  background: var(--accent-3);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(16,185,129,0.08);
}
.btn-sm  { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-lg  { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* -------- Hero / 首屏 -------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(6, 182, 212, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  /* subtle grid backdrop / 微弱网格背景 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.65; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  line-height: 1.05;
  background: linear-gradient(180deg, #f9fafb 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.85rem;
  -webkit-text-fill-color: var(--muted);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-meta {
  font-size: 0.85rem;
  color: var(--muted-2);
}
.hero-meta .sep { margin: 0 0.5rem; }

/* Hero visual: terminal-like card / Hero 演示卡片 */
.hero-visual {
  margin: 3rem auto 0;
  max-width: 880px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(16,185,129,0.08);
  overflow: hidden;
  text-align: left;
}
.hv-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
}
.hv-dot { width: 12px; height: 12px; border-radius: 50%; }
.hv-dot.r { background: #f38ba8; }
.hv-dot.y { background: #f9e2af; }
.hv-dot.g { background: #a6e3a1; }
.hv-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--muted-2);
  font-family: "SF Mono", Menlo, monospace;
}
.hv-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}
.hv-tasks { display: flex; flex-direction: column; gap: 0.5rem; }
.hv-task {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  opacity: 0.4;
  transition: opacity 0.5s, border-color 0.5s, background 0.5s;
}
.hv-task .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}
.hv-task.active {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(16,185,129,0.06);
}
.hv-task.active .dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.4s infinite;
}
.hv-task.done { opacity: 0.85; }
.hv-task.done .dot { background: var(--accent-3); box-shadow: none; }
.hv-log {
  background: #060606;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: #a6e3a1;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 200px;
  max-height: 240px;
  overflow: hidden;
  position: relative;
}
.hv-log .ts { color: var(--muted-2); }
.hv-log .ok { color: var(--accent-3); }
.hv-log .warn { color: var(--warn); }
.hv-log .info { color: var(--accent-2); }

/* -------- Stats band / 数字证明 -------- */
.stats-band {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(16,185,129,0.025) 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item {
  padding: 1rem 0.5rem;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* -------- Sections / 段落 -------- */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.section-eyebrow {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.2;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* -------- Features / 能力卡片 -------- */
.features { padding: 5rem 0; border-top: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 8px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #f3f4f6;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* -------- Workflow diagram / 工作流序列图 -------- */
.workflow-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.workflow-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin: 0 auto;
  max-width: 1000px;
}
.wf-step {
  position: relative;
  padding: 1.2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.wf-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.wf-step::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 1.2rem;
  z-index: 1;
}
.wf-step:last-child::after { display: none; }
.wf-step-num {
  display: inline-block;
  width: 28px; height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.wf-step h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
}
.wf-step p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* -------- Comparison table / 对比表 -------- */
.compare-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table thead th.us {
  color: var(--accent);
  background: rgba(16,185,129,0.06);
}
.compare-table tbody tr:hover { background: rgba(255,255,255,0.015); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .us-col {
  background: rgba(16,185,129,0.04);
  color: var(--accent-3);
  font-weight: 500;
}
.compare-table .feat-col {
  color: var(--text);
  font-weight: 500;
}
.cmp-yes::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.cmp-no  { color: var(--muted-2); }
.cmp-no::before  { content: "✗ "; color: var(--danger); font-weight: 700; }
.cmp-mid { color: var(--warn); }
.cmp-mid::before { content: "○ "; color: var(--warn); font-weight: 700; }

/* -------- FAQ / 常见问题 -------- */
.faq-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s, border-color 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-body {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-body p:first-child { margin-top: 0; }
.faq-body p:last-child  { margin-bottom: 0; }

/* -------- Testimonials / 用户评价 -------- */
.testimonials-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  position: relative;
}
.testimonial-quote::before {
  content: "“";
  position: absolute;
  top: -1.5rem; left: -0.6rem;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.18;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #052e22;
  font-size: 0.95rem;
}
.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.testimonial-role { color: var(--muted-2); font-size: 0.8rem; }

/* -------- Pricing / 价格 -------- */
.pricing-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(16,185,129,0.06) 0%, var(--surface) 100%);
  box-shadow: 0 0 50px rgba(16,185,129,0.08);
}
.price-card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(16,185,129,0.15);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #052e22;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.5rem 0 0.4rem;
}
.price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-currency { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.price-period   { font-size: 0.9rem;  color: var(--muted); }
.price-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.price-features li {
  font-size: 0.88rem;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.55;
}
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-features li.unavail {
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-color: var(--muted-2);
}
.price-features li.unavail::before {
  content: "—";
  color: var(--muted-2);
}

/* -------- CTA banner / 行动召唤 -------- */
.cta-banner {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.10), transparent 60%),
    var(--bg-alt);
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
}
.cta-banner p {
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.cta-banner .btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* -------- Latest Release card / 最新版本卡片 -------- */
.latest-release { padding: 4rem 0; border-top: 1px solid var(--border); }
.release-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.release-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.release-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.release-badge-beta {
  background: rgba(99, 102, 241, 0.12);
  color: var(--beta);
}
.release-version {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.release-time {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted-2);
}
.release-notes {
  font-size: 0.95rem;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.release-notes b { color: var(--accent); }
.release-notes ul {
  margin: 0.4rem 0;
  padding-left: 1.5rem;
}
.release-notes li { margin: 0.3rem 0; }
.release-foot { margin-top: 1.25rem; }
.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.link:hover { text-decoration: underline; color: var(--accent-3); }

/* -------- Contact / 支持 -------- */
.contact { padding: 5rem 0; border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

/* -------- Footer / 页脚 -------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.5rem 0 1rem;
  max-width: 280px;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.footer-bottom .links { display: flex; gap: 1.25rem; }
.footer-bottom .links a { color: var(--muted-2); }
.footer-bottom .links a:hover { color: var(--accent); }

/* legacy footer-inner kept as fallback for older markup */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: 0.8rem; }

/* -------- Page hero / 子页头部 -------- */
.page-hero {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.06), transparent 60%),
    var(--bg);
}
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}
.page-lead {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* -------- Download page / 下载页 -------- */
.download-section { padding: 3rem 0 5rem; }
.download-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.08);
}
.download-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dl-platform {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dl-platform-icon {
  width: 36px; height: 36px;
  color: var(--accent);
}
.dl-platform-name {
  font-size: 1.2rem;
  font-weight: 600;
}
.dl-platform-meta { font-size: 0.85rem; }
.dl-version { text-align: right; }
.dl-version-num {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}
.download-actions {
  margin-bottom: 2rem;
}
.dl-published {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  text-align: center;
}
.download-meta {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.meta-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.88rem;
}
.meta-label { color: var(--muted-2); }
.meta-value {
  color: var(--text-2);
  word-break: break-all;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}
.btn-copy {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.btn-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.info-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: #f3f4f6;
}
.info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.6rem;
  color: var(--text);
}
.install-steps {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-2);
}
.install-steps li {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
}
.install-steps li:last-child { margin-bottom: 0; }
.install-steps strong { color: #f3f4f6; }

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.req-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
.req-item .req-label {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.req-item .req-val {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.channel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.channel-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
}
.channel-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* -------- Changelog / 更新日志 -------- */
.changelog-section { padding: 3rem 0 5rem; }
.changelog-channels {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.live-release {
  border: 1px solid var(--border);
}
.release-archive {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  transition: border-color 0.2s;
}
.release-archive:hover { border-color: var(--border-2); }
.release-archive.major {
  border-color: rgba(16,185,129,0.35);
  background: linear-gradient(180deg, rgba(16,185,129,0.04) 0%, var(--surface) 100%);
}
.archive-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.archive-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f3f4f6;
}
.archive-date {
  font-size: 0.85rem;
  color: var(--muted-2);
}
.archive-channel {
  margin-left: auto;
  font-size: 0.72rem;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.archive-channel.beta { background: rgba(99,102,241,0.12); color: var(--beta); }
.archive-channel.major { background: rgba(16,185,129,0.18); }
.archive-notes {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-2);
  font-size: 0.92rem;
}
.archive-notes li { margin: 0.4rem 0; }
.archive-notes b { color: var(--accent); }
.archive-tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.archive-tag.feat    { background: rgba(16,185,129,0.15);  color: var(--accent); }
.archive-tag.fix     { background: rgba(99,102,241,0.15);  color: var(--beta); }
.archive-tag.security{ background: rgba(243,139,168,0.15); color: var(--danger); }
.archive-tag.perf    { background: rgba(249,226,175,0.15); color: var(--warn); }
.archive-tag.docs    { background: rgba(255,255,255,0.06);  color: var(--muted); }

.archive-foot {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* Timeline rail / 时间线 */
.timeline {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.4;
}
.timeline .release-archive {
  margin-left: 1.25rem;
  position: relative;
}
.timeline .release-archive::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: 1.5rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline .release-archive.major::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 0 4px var(--bg);
}

/* -------- Docs page / 文档页 -------- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}
.docs-toc {
  position: sticky;
  top: 84px;
  align-self: start;
}
.docs-toc h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-weight: 600;
}
.docs-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 1px solid var(--border);
  padding-left: 0.85rem;
}
.docs-toc a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.2rem 0;
  transition: color 0.15s;
  display: block;
}
.docs-toc a:hover,
.docs-toc a.active { color: var(--accent); }

.docs-content {
  min-width: 0;
}
.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 84px;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
}
.docs-content p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.docs-content ul, .docs-content ol {
  color: var(--text-2);
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
}
.docs-content li { margin: 0.25rem 0; }
.docs-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  color: var(--text-2);
  line-height: 1.6;
}
.docs-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-2);
}
.docs-callout {
  background: rgba(16,185,129,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-2);
}
.docs-callout.warn {
  background: rgba(249,226,175,0.06);
  border-color: var(--warn);
}

/* Task type table / 任务类型表 */
.task-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 1rem 0 1.5rem;
}
.task-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.task-table th, .task-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.task-table th {
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.task-table tbody tr:last-child td { border-bottom: 0; }
.task-table tbody tr:hover { background: rgba(255,255,255,0.012); }
.task-table .grp {
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------- Animations / 动画 -------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Utilities / 工具类 -------- */
.muted { color: var(--muted-2); font-size: 0.88rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.flex-spacer { flex: 1; }

/* -------- Responsive / 响应式 -------- */
@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .docs-toc {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
  }
  .docs-toc ul {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    padding-left: 0;
    gap: 0.5rem 1rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hv-body { grid-template-columns: 1fr; }
  .wf-step::after { display: none; }
}
@media (max-width: 768px) {
  .header-inner { gap: 0.6rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    margin: 0;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.25rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link { padding: 0.7rem 0.4rem; }
  .nav-link.active { border-bottom-color: transparent; }
  .header-cta { display: none; }
  .hero { padding: 4rem 0 3rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-visual { margin-top: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .release-head { flex-direction: column; align-items: flex-start; }
  .download-head { flex-direction: column; align-items: flex-start; }
  .dl-version { text-align: left; }
  .meta-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .meta-label { font-size: 0.78rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .pricing-grid { gap: 1rem; }
  .price-card { padding: 1.5rem 1.25rem; }
}

/* Touch devices: replace hover with simpler states / 触屏设备：弱化 hover */
@media (hover: none) {
  .feature-card:hover,
  .price-card:hover,
  .testimonial-card:hover,
  .contact-card:hover { transform: none; }
  .btn:hover { transform: none; box-shadow: none; }
}

/* -------- Reduced motion / 减少动画 -------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
