/* ===== 变量 & 重置 ===== */
:root {
  --green:      #7A9A72;
  --green-dark: #5C7A55;
  --bg:         #FBF9F5;
  --card:       #FFFFFF;
  --text:       #2B3A29;
  --text-sec:   #8A908A;
  --radius:     16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 导航栏 ===== */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}
.nav-bar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

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

.nav-logo {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px;
}
.nav-logo-icon { font-size: 24px; }

.nav-links { display: flex; gap: 32px; }
.nav-link { font-size: 15px; color: var(--text-sec); transition: color 0.2s; }
.nav-link:hover { color: var(--green); }

/* 汉堡按钮 */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #E8F0E5 0%, #FBF9F5 50%, #E8F0E5 100%);
  z-index: -1;
}
.hero-bg::after {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(122, 154, 114, 0.12); filter: blur(80px);
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px); font-weight: 900;
  color: var(--text); letter-spacing: 2px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero-icon { font-size: clamp(32px, 6vw, 56px); }

.hero-subtitle {
  font-size: clamp(17px, 3vw, 22px); color: var(--text-sec);
  font-weight: 500; margin-bottom: 8px;
}
.hero-desc { font-size: 15px; color: var(--text-sec); margin-bottom: 40px; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 通用按钮 ===== */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 32px; border-radius: 14px;
  font-size: 16px; font-weight: 700; transition: all 0.25s; cursor: pointer;
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 6px 24px rgba(122,154,114,0.3);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(122,154,114,0.08); color: var(--green);
  border: 1.5px solid rgba(122,154,114,0.2);
}
.btn-secondary:hover { background: rgba(122,154,114,0.15); }

/* ===== 通用 Section ===== */
.section { padding: 80px 24px; }
.section-alt { background: rgba(122,154,114,0.04); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: clamp(26px, 5vw, 36px);
  font-weight: 800; color: var(--text); margin-bottom: 48px;
}

/* ===== 功能卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(0,0,0,0.03);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.06); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text-sec); line-height: 1.7; }

/* ===== 截图轮播 ===== */
.gallery-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }

.gallery-item { flex: 0 0 300px; scroll-snap-align: start; }
.screenshot {
  width: 300px; height: auto; border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.screenshot.placeholder { background: linear-gradient(160deg, #E8F0E5, #DCE8D8); }
.placeholder-text { font-size: 18px; font-weight: 700; color: var(--green); opacity: 0.5; }

/* ===== 下载卡片 ===== */
.download-cards {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.download-card {
  flex: 1 1 300px; max-width: 360px;
  background: var(--card); border-radius: var(--radius); padding: 40px 24px;
  text-align: center; border: 1px solid rgba(0,0,0,0.03);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.download-icon { font-size: 48px; }
.download-card h3 { font-size: 20px; }
.download-card p { font-size: 13px; color: var(--text-sec); margin-bottom: 8px; }

/* ===== 页脚 ===== */
.footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 40px 24px; text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; margin-bottom: 8px; opacity: 0.5; }
.footer-icp {
  display: inline-block; font-size: 12px; color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-icp:hover { color: rgba(255,255,255,0.7); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(251,249,245,0.95);
    backdrop-filter: blur(16px); flex-direction: column; gap: 0;
    padding: 16px 24px; border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 0; font-size: 17px; }
  .nav-toggle { display: flex; }

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

  .gallery-item { flex: 0 0 240px; }
  .screenshot { width: 240px; height: auto; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; }
  .download-card { max-width: 100%; }
}
