:root {
  --bg: #fffaf2;
  --bg-alt: #f3f7ff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #ffb930;
  --primary-600: #ff9f00;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);

  --img-hero-max-h: 520px;
  --img-card-max-h: 340px;  /* 旧变量保留 */
  --img-card-h: 280px;      /* 新增：功能卡片统一高度 */
  --img-carousel-max-h: 560px;
}

* { box-sizing: border-box; }
html,body { margin: 0; padding: 0; font-family: "Nunito", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }
.container { width: min(1080px, 92vw); margin: 0 auto; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
h1,h2,h3 { margin: 0 0 12px; }
p { color: var(--muted); line-height: 1.8; }

/* Nav */
.nav { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(10px); background: rgba(255,255,255,0.8); border-bottom: 1px solid var(--border); z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { font-weight: 800; letter-spacing: .5px; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.menu a { margin: 0 12px; text-decoration: none; color: var(--text); font-weight: 600; }
.menu-toggle { display: none; border: none; background: transparent; font-size: 22px; }
@media (max-width: 860px) {
  .menu { display: none; position: absolute; right: 16px; top: 58px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px; }
  .menu a { display: block; margin: 8px 12px; }
  .menu-toggle { display: inline-block; }
}

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.hero-text h1 { font-size: clamp(28px, 4vw, 42px); }
.hero-cta { margin-top: 16px; display: flex; gap: 12px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.btn.primary { background: var(--primary); color: #3d2b00; box-shadow: var(--shadow); }
.btn.primary:hover { background: var(--primary-600); }
.btn.ghost { border: 2px solid var(--primary); color: var(--text); }
.hero-illustration img { width: 100%; border-radius: 18px; max-height: var(--img-hero-max-h); height: auto; box-shadow: var(--shadow); }
.hint { color: var(--muted); display: block; margin-top: 8px; text-align: center; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h3 { font-size: 22px; }
.card ul { margin: 10px 0 0; padding-left: 18px; }
.card li { margin: 6px 0; color: var(--muted); }
.card .preview { margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px dashed var(--border); background: #fafafa; max-height: var(--img-card-max-h); }
.card .preview img { width: 100%; height: auto; max-height: var(--img-card-max-h); }
.card.feature {
  // 让卡片更紧凑、更有层次
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}
.feature-icon {
  font-size: 22px;
  line-height: 1;
}
.badge-group {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255,185,48,.16);
  color: var(--primary-600);
  border: 1px solid rgba(255,185,48,.35);
}

/* 紧凑型列表：更小的行距与前导符号 */
.list-compact {
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
}
.list-compact li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  color: var(--muted);
}
.list-compact li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-600);
}

/* 预览容器维持统一尺寸 */
.card .preview { margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px dashed var(--border); background: #fafafa; max-height: var(--img-card-max-h); }
.card .preview img { width: 100%; height: auto; max-height: var(--img-card-max-h); }
.card .preview {
  /* 统一高度，容器负责定高，内部图片铺满 */
  height: var(--img-card-h);
  max-height: none;
  display: block;
}

.card .preview img {
  /* 图片等比裁剪，居中对齐，填满容器 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-height: none;
  display: block;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  /* 移动端卡片预览更紧凑 */
  :root {
    --img-card-h: 220px;
  }
}

/* Carousel */
.carousel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.nav-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--card); box-shadow: var(--shadow); font-size: 22px; cursor: pointer; }
.slides { overflow: hidden; position: relative; border-radius: 16px; background: var(--card); border: 1px solid var(--border); min-height: calc(var(--img-carousel-max-h) + 32px); }
.slide { width: 100%; padding: 10px; display: none; }
.slide.active { display: block; animation: fade .28s ease-in; }
.slide img { width: 100%; border-radius: 12px; max-height: var(--img-carousel-max-h); height: auto; }
.caption { margin: 6px 0 4px; color: var(--muted); text-align: center; }
@keyframes fade { from { opacity: .3; transform: translateY(6px);} to { opacity: 1; transform: none;} }

/* Download */
.download .download-box { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.download .store { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.download .stats-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.download .store img, .download .stats-card img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .download .download-box { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
details p { margin: 6px 0 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 14px; color: var(--muted); }

/* 移动端优化：徽标与标题换行更自然 */
@media (max-width: 860px) {
  .card-header { flex-wrap: wrap; }
  .badge-group { width: 100%; justify-content: flex-start; margin-left: 0; }
}