/* ========== 全局样式：默认浅色，可切换深色 ========== */
:root,
html[data-theme="light"] {
  --primary-color: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d5c56;
  --secondary-color: #0e7490;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --accent-soft-strong: rgba(15, 118, 110, 0.14);
  --gradient: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
  --gradient-reverse: linear-gradient(135deg, #0e7490 0%, #0f766e 100%);
  --page-bg: #f5f7fa;
  --dark-bg: #ffffff;
  --darker-bg: #f5f7fa;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: #e6ebf2;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --header-bg: rgba(255, 255, 255, 0.86);
  --brand-ink: #1c3533;
}

html[data-theme="dark"] {
  --primary-color: #2dd4bf;
  --primary-light: #5eead4;
  --primary-dark: #14b8a6;
  --secondary-color: #22d3ee;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-soft-strong: rgba(45, 212, 191, 0.2);
  --gradient: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
  --gradient-reverse: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
  --page-bg: #0b1220;
  --dark-bg: #0f172a;
  --darker-bg: #0b1220;
  --card-bg: #151d2e;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #243044;
  --success-color: #34d399;
  --warning-color: #fbbf24;
  --danger-color: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(15, 23, 42, 0.9);
  --brand-ink: #d7ebe8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  background-color: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  height: 34px;
  width: 34px;
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
}

html[data-theme="dark"] .logo img {
  filter: none;
}

.logo span {
  color: var(--brand-ink);
  letter-spacing: -0.03em;
}

.logo span span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-actions .btn {
  padding: 8px 20px;
  font-size: 14px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ========== Hero Section ========== */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 110px 0 72px;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(15, 118, 110, 0.09), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(14, 116, 144, 0.06), transparent 62%),
    #fff;
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(45, 212, 191, 0.1), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(34, 211, 238, 0.06), transparent 62%),
    var(--page-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.brand-mark {
  margin-bottom: 18px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.hero-content h1 .highlight {
  color: var(--primary-color);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 34rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 18% -8% -10% 12%;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(14, 116, 144, 0.04));
  z-index: 0;
}

.terminal-window {
  position: relative;
  z-index: 1;
  background: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

html[data-theme="dark"] .terminal-window {
  background: #111827;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-title {
  margin-left: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #f87171; }
.terminal-dot.yellow { background: #fbbf24; }
.terminal-dot.green { background: #34d399; }

.terminal-body {
  padding: 22px 20px 24px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13.5px;
  line-height: 1.85;
  color: #cbd5e1;
}

.terminal-line {
  margin-bottom: 6px;
}

.terminal-prompt {
  color: #34d399;
  margin-right: 6px;
}

.terminal-command {
  color: #7dd3fc;
}

.terminal-output {
  color: #94a3b8;
  padding-left: 14px;
}

.terminal-highlight {
  color: #5eead4;
}

/* ========== Shared homepage rhythm ========== */
.home-page {
  background: #fff;
}

html[data-theme="dark"] .home-page {
  background: var(--page-bg);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.home-section {
  padding: 100px 0;
}

.section-intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.035em;
}

.section-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 32rem;
}

.section-intro.narrow {
  margin-bottom: 48px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.trust-strip {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: #fafbfc;
}

html[data-theme="dark"] .trust-strip {
  background: rgba(255, 255, 255, 0.02);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 20px;
}

.trust-grid > div {
  text-align: center;
}

.trust-grid strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.trust-grid span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========== Capabilities ========== */
.capabilities {
  background: #fff;
}

html[data-theme="dark"] .capabilities {
  background: var(--page-bg);
}

.capabilities-list {
  display: flex;
  flex-direction: column;
}

.capability-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--border-color);
}

.capability-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.capability-index {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.capability-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.capability-item p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ========== Workflow ========== */
.workflow {
  background: #f7f9fb;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

html[data-theme="dark"] .workflow {
  background: rgba(255, 255, 255, 0.02);
}

.workflow-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.workflow-track::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 2%;
  right: 2%;
  height: 1px;
  background: var(--border-color);
}

.workflow-step {
  position: relative;
}

.workflow-num {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  background: #f7f9fb;
  padding-right: 10px;
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .workflow-num {
  background: var(--page-bg);
}

.workflow-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.workflow-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.workflow-command {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: #fff;
}

html[data-theme="dark"] .workflow-command {
  background: var(--card-bg);
}

.workflow-command code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.workflow-command code span {
  color: var(--primary-color);
  margin-right: 8px;
}

.workflow-link {
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

.workflow-link:hover {
  opacity: 0.8;
}

/* ========== Voices ========== */
.voices {
  background: #fff;
}

html[data-theme="dark"] .voices {
  background: var(--page-bg);
}

.voices-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.voice-feature,
.voice-item {
  border: 1px solid var(--border-color);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html[data-theme="dark"] .voice-feature,
html[data-theme="dark"] .voice-item {
  background: var(--card-bg);
}

.voice-feature {
  padding: 36px 32px;
  border-radius: 22px;
  min-height: 280px;
}

.voice-item {
  padding: 28px 24px;
  border-radius: 18px;
}

.voice-feature blockquote {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.voice-item blockquote {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.voice-feature figcaption,
.voice-item figcaption {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-feature strong,
.voice-item strong {
  font-size: 0.95rem;
}

.voice-feature span,
.voice-item span {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

/* ========== CTA Section ========== */
.cta {
  padding-top: 20px;
  padding-bottom: 110px;
  background: #fff;
}

html[data-theme="dark"] .cta {
  background: var(--page-bg);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 42px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(255, 255, 255, 0.9));
}

html[data-theme="dark"] .cta-panel {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(21, 29, 46, 0.9));
}

.cta-panel h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.cta-panel p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 32rem;
}

.cta .btn {
  white-space: nowrap;
}

/* ========== Footer ========== */
.footer {
  background: var(--darker-bg);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom .beian-line {
  margin-top: 10px;
}

.seo-faq {
  padding-top: 40px;
}

.seo-faq .faq-list {
  max-width: 820px;
  margin: 28px auto 0;
}

.beian-link,
.site-beian a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.beian-link:hover,
.site-beian a:hover {
  color: var(--primary-color);
}

.site-beian {
  margin-top: 28px;
  text-align: center;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .hero-grid,
  .split-layout,
  .voices-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-visual {
    max-width: 640px;
  }

  .workflow-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-track::before {
    display: none;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-actions .btn-secondary {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .home-section {
    padding: 72px 0;
  }

  .trust-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }

  .workflow-command {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ========== Theme toggle ========== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.feature-card,
.step-card,
.testimonial-card {
  box-shadow: var(--shadow-sm);
}
