:root {
  --primary: #184f40;
  --primary-dark: #123f35;
  --primary-light: #24634f;
  --primary-subtle: #eef5f1;
  --accent: #d78a51;
  --accent-light: #fef5ee;
  --text-main: #1f2d27;
  --text-muted: #62746a;
  --text-light: #8fa096;
  --bg-page: #fbfcfb;
  --bg-card: #ffffff;
  --border: #e2e8e3;
  --border-light: #f0f4f1;
  --shadow-sm: 0 2px 8px rgba(18, 63, 53, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 63, 53, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 63, 53, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 布局容器 */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

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

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

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

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(24, 79, 64, 0.2);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(24, 79, 64, 0.28);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* 徽章 Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(24, 79, 64, 0.15);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 首屏 Hero */
.hero {
  padding: 64px 0 80px;
  background: radial-gradient(circle at 50% 20%, rgba(24, 79, 64, 0.04) 0%, transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-version-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: -24px;
  margin-bottom: 32px;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

.trust-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 12px;
}

/* 对比组件 Before / After Slider */
.compare-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  user-select: none;
  -webkit-user-select: none;
}

.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #ffffff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
  will-change: width;
}

.compare-overlay .compare-img {
  width: 100%;
  min-width: 480px;
}

.compare-slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  transform: translateX(-50%);
  cursor: ew-resize;
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  pointer-events: auto;
  cursor: ew-resize;
}

.compare-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.compare-label.label-before {
  left: 16px;
  z-index: 5;
}

.compare-label.label-after {
  right: 16px;
  background: rgba(24, 79, 64, 0.85);
}

.compare-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

/* 通用章节规范 */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f4f6f3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 750;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* 痛点对比卡片 */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.pain-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.pain-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.pain-badge.traditional {
  background: #feeceb;
  color: #c93b2b;
}

.pain-badge.dinestudio {
  background: var(--primary-subtle);
  color: var(--primary);
}

.pain-card-title {
  font-size: 18px;
  font-weight: 700;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.pain-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-top: 2px;
}

.pain-icon.cross {
  background: #feeceb;
  color: #c93b2b;
}

.pain-icon.check {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* 核心特色卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 极简流程步骤 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 18px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* 下载区域 */
.download-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.download-info h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.download-info p {
  font-size: 16px;
  opacity: 0.88;
  line-height: 1.7;
  margin-bottom: 28px;
}

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

.btn-download-main {
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-download-main:hover {
  background: #f5f6f2;
  transform: translateY(-2px);
}

.download-qr-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.qr-code-wrap {
  width: 160px;
  height: 160px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  margin: 0 auto 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-wrap svg, .qr-code-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-tip {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

/* FAQ 常见疑问 */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-answer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 页脚 Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--text-main);
}

/* 响应式断点适配 */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 36px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-box {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .pain-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .section-title {
    font-size: 26px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .download-info h2 {
    font-size: 26px;
  }
}
