/* ============================================
   "空间增长系统" — 品牌风格指南与样式表
   Mobile First 策略
   ============================================ */

/* === 1. CSS变量与主题 === */
:root {
  /* 品牌色板 */
  --color-primary: #1a1a2e;       /* 深蓝黑 — 品牌主色 */
  --color-secondary: #0f3460;     /* 深蓝 — 权威感 */
  --color-accent: #52c41a;        /* 增长绿 — 行动号召 */
  --color-accent-hover: #73d13d;  /* 浅绿 — hover态 */
  --color-gold: #ffd700;          /* 金色 — 高端点缀 */
  --color-danger: #ff4d4f;        /* 红色 — 错误/警告 */

  /* 暗色模式 */
  --bg: #0a0a0a;
  --bg-card: #151515;
  --bg-elevated: #1e1e1e;
  --text-main: #f0f0f0;
  --text-secondary: #a8a8a8;
  --text-dim: #666;
  --border: #2a2a2a;
  --nav-bg: rgba(10, 10, 10, 0.85);
  --overlay: rgba(0, 0, 0, 0.7);

  /* 布局 */
  --container-width: 1200px;
  --gutter: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.4);

  /* 排版 */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
}

/* 浅色模式 */
.light-mode {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-elevated: #fafafa;
  --text-main: #1d1d1f;
  --text-secondary: #515154;
  --text-dim: #86868b;
  --border: #d2d2d7;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --overlay: rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* === 2. Reset 与基础 === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* === 3. 布局 === */
.container {
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* main 元素增加顶部 padding，为固定导航栏预留空间 */
main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

section {
  padding: 60px 0;
  animation: fadeIn 0.6s ease-out;
}

/* 痛点选择页面和报告页面的 section 额外增加顶部间距 */
section.container {
  padding-top: 40px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 4. 排版 === */
h1 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 1rem; font-weight: 700; }
h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.8rem; font-weight: 600; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 0.6rem; font-weight: 600; }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* === 5. 按钮系统 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  min-height: 48px; /* 移动端触控友好 */
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #73d13d);
  color: #fff;
  box-shadow: 0 4px 16px rgba(82, 196, 26, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(82, 196, 26, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--border);
  color: var(--text-main);
  border: 1px solid transparent;
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

/* === 6. 导航栏 === */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}
.logo-text { color: var(--text-main); }
.logo-accent { color: var(--color-accent); }

.nav-links {
  display: none; /* Mobile: 默认隐藏 */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.nav-links.open { display: flex; }

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 10px 0;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--color-accent); }

.nav-cta { display: none; }

/* 汉堡菜单按钮 */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 主题切换按钮 */
.theme-toggle {
  background: var(--border);
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: 0.3s;
}
.theme-toggle:hover {
  background: var(--color-accent);
  color: #000;
}

/* === 7. Hero 区域 === */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(82, 196, 26, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--text-main), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === 8. 诊断卡片 === */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out;
}
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }

.card:hover, .card.active {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(82, 196, 26, 0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 第二步：痛点多选 */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 30px 0;
}

.check-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.9rem;
}
.check-item:hover { border-color: var(--color-accent); }
.check-item.checked { border-color: var(--color-accent); background: rgba(82, 196, 26, 0.08); }
.check-item input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pain-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 16px;
}
.pain-count strong {
  color: var(--color-accent);
}

/* === 9. 报告页 === */
.report-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--color-accent);
  margin-bottom: 60px;
}
.report-card h2 { margin-bottom: 16px; }
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.report-tag {
  background: rgba(82, 196, 26, 0.1);
  color: var(--color-accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(82, 196, 26, 0.2);
}
.report-body {
  color: var(--text-secondary);
  line-height: 1.8;
}
.report-cta {
  margin-top: 24px;
  text-align: center;
}

/* === 10. 套餐系统 === */
.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s ease;
}
.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
.pkg-card.featured {
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 32px rgba(82, 196, 26, 0.12);
}
.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pkg-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.pkg-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 16px 0;
}
.pkg-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}
.pkg-result {
  background: rgba(82, 196, 26, 0.08);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border-left: 3px solid var(--color-accent);
  font-size: 0.85rem;
}
.pkg-result strong { display: block; margin-bottom: 6px; color: var(--color-accent); }
.pkg-result p { color: var(--text-secondary); line-height: 1.6; }

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  flex-grow: 1;
}
.feature-list li {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  line-height: 1.5;
}
.feature-list li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: bold;
  flex-shrink: 0;
}
.feature-list li strong { color: var(--text-main); }

.pkg-card .btn { margin-top: auto; }

/* === 11. 成功案例模块 === */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
.case-image {
  height: 180px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 3rem;
}
.case-body {
  padding: 24px;
}
.case-tag {
  display: inline-block;
  background: rgba(82, 196, 26, 0.1);
  color: var(--color-accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.case-body h4 { font-size: 1.05rem; margin-bottom: 8px; }
.case-body p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.case-result {
  display: flex;
  gap: 16px;
}
.case-stat {
  text-align: center;
}
.case-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
}
.case-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* === 12. 方法论文本 === */
.methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.methodology-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: 0.3s;
}
.methodology-card:hover { border-color: var(--color-accent); }
.methodology-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(82, 196, 26, 0.15);
  line-height: 1;
  margin-bottom: 8px;
}
.methodology-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.methodology-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* === 13. 联系表单 Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--overlay);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-out;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-header h3 { margin: 0; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  padding: 4px;
  cursor: pointer;
  transition: 0.3s;
}
.modal-close:hover { color: var(--text-main); }

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group label .required {
  color: var(--color-danger);
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(82, 196, 26, 0.1);
}
.form-input.error {
  border-color: var(--color-danger);
}
.form-error {
  color: var(--color-danger);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.open { display: block; }
.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.form-success h4 { margin-bottom: 8px; color: var(--color-accent); }
.form-success p { color: var(--text-secondary); font-size: 0.9rem; }

/* === 14. 信任标识 === */
.trust-banner {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.trust-banner h3 {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}
.trust-logo {
  height: 28px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: 0.3s;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.trust-logo:hover { opacity: 0.7; filter: none; }

/* 客户评价 */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}
.testimonial-text::before { content: '"'; }
.testimonial-text::after { content: '"'; }
.testimonial-author {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-dim); }

/* === 15. 页脚 === */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: var(--color-accent);
  font-size: 1rem;
}

.footer-col p, .footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--color-accent); }

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.qr-placeholder img { width: 100%; }

.copyright {
  text-align: center;
  margin-top: 40px;
  color: #555;
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* === 16. 回到顶端 === */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(82, 196, 26, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 17. 三排错落滚动痛点关键词展示 === */
.pain-tags-3d-container {
  margin-top: 60px;
  text-align: center;
  overflow: hidden;
  padding: 20px 0;
}

.pain-tags-3d-title {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pain-tags-marquee-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

/* 左右渐变遮罩 */
.pain-tags-marquee-wrapper::before,
.pain-tags-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
}

.pain-tags-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.pain-tags-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* 三排错落滚动轨道 */
.pain-tags-row {
  display: flex;
  gap: 16px;
  width: fit-content;
  margin-bottom: 12px;
}

.pain-tags-row:last-child {
  margin-bottom: 0;
}

/* 第一排：向左滚动，正常速度 */
.pain-tags-row.row-1 {
  animation: marquee-left 25s linear infinite;
}

/* 第二排：向右滚动，较慢速度，错位开始 */
.pain-tags-row.row-2 {
  animation: marquee-right 35s linear infinite;
  transform: translateX(-25%);
}

/* 第三排：向左滚动，最快速度，更多错位 */
.pain-tags-row.row-3 {
  animation: marquee-left 20s linear infinite;
  transform: translateX(-50%);
}

.pain-tags-marquee-wrapper:hover .pain-tags-row {
  animation-play-state: paused;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.pain-tag-flow {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.pain-tag-flow:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(82, 196, 26, 0.2);
}

/* === 18. 响应式断点 (Mobile First) === */

/* 平板 (≥ 768px) */
@media (min-width: 768px) {
  :root { --gutter: 24px; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .section-title { font-size: 2.2rem; }

  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .checkbox-group { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .package-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

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

  .methodology-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .report-card { padding: 40px; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    align-items: center;
    gap: 24px;
  }

  .hamburger { display: none; }

  .nav-cta { display: inline-flex; }
}

/* 桌面 (≥ 1024px) */
@media (min-width: 1024px) {
  :root { --gutter: 32px; }

  h1 { font-size: 3rem; }

  .section-title { font-size: 2.5rem; }

  .checkbox-group { grid-template-columns: repeat(3, 1fr); }

  .case-grid { grid-template-columns: repeat(3, 1fr); }

  .hero { padding-top: 140px; padding-bottom: 80px; }
  .hero h1 { font-size: 3.2rem; }
}

/* ============================================
   案例详情弹窗（首页诊断报告用）
   ============================================ */
.cases-detail-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  padding: 40px 20px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}
.cases-detail-overlay.open { display: flex; }
.cases-detail-overlay .cases-detail-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  animation: caseModalIn 0.3s ease;
  position: relative;
}
@keyframes caseModalIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cases-detail-overlay .cases-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.cases-detail-overlay .cases-detail-close:hover { background: rgba(255,77,79,0.8); }
.cases-detail-overlay .cases-detail-image {
  height: 240px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.cases-detail-overlay .cases-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cases-detail-overlay .cases-detail-image .img-fallback { font-size: 4rem; opacity: 0.3; }
.cases-detail-overlay .cases-detail-image .cases-detail-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
}
.cases-detail-overlay .cases-detail-body { padding: 24px; }
.cases-detail-overlay .cases-detail-body h2 { font-size: 1.2rem; margin-bottom: 8px; }
.cases-detail-overlay .cases-detail-body .detail-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.cases-detail-overlay .cases-detail-stats {
  display: flex; gap: 24px; margin-bottom: 16px;
  padding: 12px 16px; background: var(--bg-elevated); border-radius: var(--radius-sm);
}
.cases-detail-overlay .cases-detail-stat { text-align: center; }
.cases-detail-overlay .cases-detail-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--color-accent); }
.cases-detail-overlay .cases-detail-stat-lbl { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.cases-detail-overlay .detail-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* 设计方案说明 */
.cases-detail-overlay .cases-detail-section {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}
.cases-detail-overlay .section-title-inline { font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; color: var(--color-accent); }
.cases-detail-overlay .design-plan-content { font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); }
.cases-detail-overlay .design-plan-content .md-h3 { font-size: 0.92rem; font-weight: 600; color: var(--text-main); margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.cases-detail-overlay .design-plan-content .md-p { margin: 4px 0; }
.cases-detail-overlay .design-plan-content .md-ul { margin: 6px 0; padding-left: 16px; list-style: none; }
.cases-detail-overlay .design-plan-content .md-li { position: relative; padding-left: 14px; margin-bottom: 3px; }
.cases-detail-overlay .design-plan-content .md-li::before { content: '•'; position: absolute; left: 0; color: var(--color-accent); }
.cases-detail-overlay .design-plan-content strong { color: var(--text-main); }

/* 多图轮播（原画廊改轮播） */
.cases-detail-overlay .gallery-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; color: var(--text-main); }

/* 轮播容器 */
.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.carousel-track {
  flex: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.carousel-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  width: 100%;
  height: 100%;
  color: var(--text-dim);
  background: var(--bg-elevated);
}

/* 左右箭头按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, background 0.2s;
}

.gallery-carousel:hover .carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.75);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* 圆点指示器 */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 4px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.25s;
}

.carousel-dot.active {
  background: var(--color-accent);
  width: 22px;
  border-radius: 5px;
}

.carousel-dot:hover {
  background: var(--text-dim);
}

/* Lightbox 样式 */
#_homeCaseLightbox {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,77,79,0.7); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lb-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lb-counter {
  margin-top: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .cases-detail-overlay { padding: 20px 12px; }
  .cases-detail-overlay .cases-detail-image { height: 180px; }
  .cases-detail-overlay .cases-detail-body { padding: 16px; }
  .carousel-track { min-height: 140px; }
  .carousel-btn { width: 30px; height: 30px; font-size: 1.2rem; }
  #_homeCaseLightbox { padding: 20px; }
  .lb-nav { width: 36px; height: 36px; font-size: 1.6rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
