/* ===========================
   麦图助手官网 — 浅色商务风
   =========================== */

/* ---------- Reset & Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* 浅色主题（默认） */
:root {
  /* 背景色 - 温暖米白色系 */
  --bg:        #fafaf9;
  --bg-alt:    #f5f5f4;
  --surface:   #ffffff;

  /* 边框 - 柔和暖灰 */
  --border:    #e7e5e4;
  --border-hover: #d6d3d1;

  /* 文字颜色 - 深炭黑系 */
  --text:      #1c1917;
  --text-dim:  #57534e;
  --text-bright: #0f172a;

  /* 强调色 - 深蓝 + 琥珀金 */
  --accent-1:  #1e40af;
  --accent-2:  #d97706;
  --accent-3:  #0f172a;

  /* 渐变 - 深蓝到琥珀金 */
  --gradient:  linear-gradient(135deg, var(--accent-1), var(--accent-2));

  /* 圆角 */
  --radius:    8px;
  --radius-lg: 12px;

  /* 字体 */
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* 深色主题 */
[data-theme="dark"] {
  /* 背景色 - 深色系 */
  --bg:        #0a0a0f;
  --bg-alt:    #0f0f18;
  --surface:   #1a1a24;

  /* 边框 - 深色边框 */
  --border:    rgba(255,255,255,0.1);
  --border-hover: rgba(255,255,255,0.15);

  /* 文字颜色 - 浅色系 */
  --text:      #e2e8f0;
  --text-dim:  #94a3b8;
  --text-bright: #ffffff;

  /* 强调色保持不变 */
  --accent-1:  #3b82f6;
  --accent-2:  #f59e0b;
  --accent-3:  #06b6d4;

  /* 渐变 - 调整为更亮的颜色 */
  --gradient:  linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

.nav.scrolled {
  background: rgba(250,250,249,0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-bright);
}

.nav-logo-icon { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active { color: var(--text-bright); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent-2);
  color: #fff;
  transition: opacity .2s, transform .2s;
}

.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* 主题切换按钮 */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  margin-left: 16px;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all .2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(217,119,6,0.25);
}

.btn-primary:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217,119,6,0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  width: 100%;
  justify-content: center;
}

.btn-outline:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(30,64,175,0.05);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 12px; }

.btn-disabled {
  opacity: .4;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: none; /* 移除网格背景 */
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217,119,6,0.12) 0%, rgba(30,64,175,0.08) 40%, transparent 70%);
  filter: blur(40px);
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0%   { opacity: .6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1;  transform: translateX(-50%) scale(1.15); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(231,229,228,0.8);
  font-size: 0.8125rem;
  color: var(--accent-1);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-bright);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--accent-1);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.feature-icon svg { width: 48px; height: 48px; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(217,119,6,0.25);
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- Terminal ---------- */
.terminal {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #ffffff;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f5f5f4;
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
}

.terminal-body {
  padding: 24px;
  min-height: 220px;
  font-size: 0.9375rem;
}

.chat-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.chat-role {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chat-user .chat-role {
  background: rgba(30,64,175,0.1);
  color: var(--accent-1);
}

.chat-ai .chat-role {
  background: rgba(217,119,6,0.1);
  color: var(--accent-2);
}

.chat-result .chat-role {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.chat-text {
  color: var(--text);
  line-height: 1.6;
}

.chat-text .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-1);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink .7s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pricing-card-popular {
  border: 2px solid var(--accent-2);
  box-shadow: 0 8px 32px rgba(217,119,6,0.15);
  background: rgba(217,119,6,0.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}

.pricing-period {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #22c55e;
}

.pricing-card-popular .btn-primary { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform .3s;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ---------- Download CTA ---------- */
.download-cta {
  text-align: center;
  padding: 40px 0;
}

.download-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.download-desc {
  font-size: 1.0625rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.download-badge {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-weight: 700;
  color: var(--text);
}

.footer-company {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--accent-1); }

.footer-icp {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: .6;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(250,250,249,0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .features-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .steps { flex-direction: column; align-items: center; }
  .step-line {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .hero-stats { gap: 20px; }
  .hero-stat-divider { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .section { padding: 64px 0; }
  .feature-card { padding: 24px; }
  .pricing-card { padding: 28px 20px; }
}
