/* ===== Reset & Base ===== */
*, *::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;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Colors（美证记设计令牌，来自 meizhengji_ui/styles.css） ===== */
:root {
  /* 新令牌 */
  --teal-900: #06463F;
  --teal-700: #0B7A6E;
  --teal-600: #0E9E89;
  --teal-500: #16B79E;
  --teal-grad: linear-gradient(150deg, #19c0a4 0%, #0c8a7b 96%);
  --teal-soft: #DCEFEA;
  --mint-bg: #EBF4F1;
  --mint-bg-2: #F2F8F6;
  --ink: #143029;
  --ink-2: #4E635D;
  --ink-3: #8AA09A;
  --coral: #FF8C5A;
  --gold: #F4B24A;
  --gold-deep: #E89A2E;
  --gold-grad: linear-gradient(120deg, #ffd27a 0%, #f0a83b 100%);
  --gold-text: #5A3A06;
  --dark: #12161D;
  --dark-surface: #1B212B;
  --r-md: 18px;
  --r-lg: 24px;
  --shadow-card: 0 10px 30px rgba(13,76,68,0.08);
  --shadow-pop: 0 16px 44px rgba(13,76,68,0.16);

  /* 旧变量名别名 —— privacy/terms 内联样式只换皮不改文件 */
  --primary: #0E9E89;
  --primary-dark: #0B7A6E;
  --primary-light: #DCEFEA;
  --accent: #FF8C5A;
  --sun: #F4B24A;
  --text: #143029;
  --text-light: #4E635D;
  --bg: #fff;
  --bg-gray: #EBF4F1;
  --border: rgba(11,122,110,0.12);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(13,76,68,0.08); }
.nav-content { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.logo-icon { color: var(--teal-600); font-size: 24px; }
.logo-img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.logo-text { color: var(--ink); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--ink-2); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal-600); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 16px; font-size: 15px; font-weight: 700;
  transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--teal-grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13,76,68,0.25); }
.btn-outline { background: transparent; color: var(--teal-700); border-color: var(--teal-500); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ===== Hero ===== */
.hero { padding: 120px 0 80px; background: linear-gradient(135deg, var(--mint-bg) 0%, #fff 55%, var(--mint-bg-2) 100%); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.3; margin-bottom: 20px; font-weight: 900; }
.highlight { color: var(--teal-600); }
.hero-desc { font-size: 18px; color: var(--ink-2); margin-bottom: 32px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 12px; }
.badge { display: inline-block; padding: 4px 14px; background: var(--teal-soft); border-radius: 20px; font-size: 13px; color: var(--teal-700); font-weight: 600; }

/* 手机Mockup —— 深色编辑器示意（对应 APP 编辑器 #12161D） */
.phone-mockup {
  width: 280px; margin: 0 auto;
  background: #0c0f10; border-radius: 36px; padding: 12px;
  box-shadow: 0 20px 60px rgba(8,30,28,0.3);
}
.phone-screen { background: var(--dark); border-radius: 26px; padding: 20px 16px 16px; min-height: 460px; }
.mock-header { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 14px; color: #ECF0F4; }
.mock-icon { color: var(--teal-500); }
.mock-canvas { background: #3A78D9; border-radius: 14px; height: 230px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.mock-portrait { width: 120px; height: 200px; display: block; }
.mock-spec { color: #8A94A3; font-size: 12px; text-align: center; margin: 10px 0 14px; }
.mock-swatches { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.mock-swatch { width: 30px; height: 30px; border-radius: 8px; border: 2px solid rgba(255,255,255,.85); }
.mock-cta { background: var(--gold-grad); color: var(--gold-text); text-align: center; padding: 12px; border-radius: 14px; font-weight: 800; font-size: 14px; }

/* ===== Sections Common ===== */
.section-title { font-size: 36px; text-align: center; margin-bottom: 12px; font-weight: 900; }
.section-desc { text-align: center; color: var(--ink-2); font-size: 16px; margin-bottom: 48px; }

/* ===== Features ===== */
.features { padding: 100px 0; background: var(--mint-bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px; background: var(--teal-soft);
}
.feature-card:nth-child(3n+2) .feature-icon { background: rgba(255,140,90,0.14); }
.feature-card:nth-child(3n) .feature-icon { background: rgba(244,178,74,0.16); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ===== Download ===== */
.download { padding: 100px 0; background: var(--teal-grad); }
.download .section-title, .download .section-desc { color: #fff; }
.download .section-desc { opacity: 0.85; }
.download-content { text-align: center; }
.download-buttons { display: flex; justify-content: center; gap: 20px; }
.download .btn-primary { background: #fff; color: var(--teal-700); }
.download .btn-primary:hover { box-shadow: 0 12px 28px rgba(6,70,63,0.35); }
.download .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.download .btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-icon { font-size: 20px; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #8A94A3; padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.09); }
.footer-brand .logo-icon { color: var(--teal-500); }
.footer-brand .logo-text { color: #fff; font-size: 20px; font-weight: 800; }
.footer-brand p { margin-top: 12px; font-size: 14px; }
.footer-links h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-links a { display: block; margin-bottom: 10px; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-500); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: #6B7682; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--teal-500); }

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px; gap: 16px;
    box-shadow: 0 4px 20px rgba(13,76,68,0.1);
  }
  .nav-links.open { display: flex; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-buttons { justify-content: center; }
  .hero-badges { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-buttons { flex-direction: column; align-items: center; }
  .footer-content { grid-template-columns: 1fr; }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 15px; }
  .section-title { font-size: 28px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .phone-mockup { width: 240px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}
