:root {
  /* 花栖品牌色：自然绿 + 米白 + 木色 + 柔和暖橙 */
  --green-700: #2f5233;
  --green-600: #3e6b4f;
  --green-500: #4a7c59;
  --green-400: #6f9a7a;
  --green-100: #e7efe7;
  --cream: #faf8f3;
  --wood: #b08968;
  --amber: #d98e5f;
  --ink: #2c3a2f;
  --muted: #6b7280;
  --line: #e6e0d4;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 700; }
.brand-mark { font-size: 20px; }
.brand-name { font-size: 20px; letter-spacing: 1px; }
.brand-en { font-size: 13px; color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 15px; color: var(--ink); }
.nav a:hover { color: var(--green-500); }
.lang-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--green-400); color: var(--green-600); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; }
.hero-inner { max-width: 720px; }
.hero-kicker {
  display: inline-block;
  font-size: 14px;
  color: var(--green-600);
  background: var(--green-100);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.hero-title span { display: block; }
.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 20px auto 32px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--green-400); color: var(--green-600); }
.btn-small { font-size: 14px; padding: 9px 18px; border-radius: 10px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.3px;
}
.section-sub { text-align: center; color: var(--muted); margin: 12px 0 40px; }

/* ---------- Features ---------- */
.features { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(63, 107, 79, 0.08); }
.feature-icon { font-size: 30px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- Principles ---------- */
.principles-inner { max-width: 640px; }
.principles-list { list-style: none; }
.principles-list li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.principles-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}
.principles-list li:last-child { border-bottom: none; }

/* ---------- Apps ---------- */
.apps { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-grid { display: grid; gap: 24px; }
.app-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}
.app-logo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.app-meta h3 { font-size: 22px; }
.app-en { font-size: 14px; color: var(--muted); font-weight: 500; }
.app-tagline { font-size: 15px; color: var(--green-600); font-weight: 600; margin: 4px 0 10px; }
.app-desc { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.app-actions { display: flex; align-items: center; gap: 16px; }
.link-muted { font-size: 14px; color: var(--muted); }
.link-muted:hover { color: var(--green-500); }
.badge-soon {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--green-100);
  padding: 9px 18px;
  border-radius: 10px;
}

/* ---------- Download ---------- */
.download { text-align: center; }
.download-badge { display: flex; justify-content: center; margin: 8px 0 16px; }
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  transition: transform 0.15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); color: #fff; }
.badge-icon { width: 24px; height: 24px; display: inline-block; }
.badge-icon::before { content: ""; }
.badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.badge-small { font-size: 10px; opacity: 0.8; }
.badge-large { font-size: 18px; font-weight: 600; }
.download-note { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--cream); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-nav { display: flex; gap: 24px; font-size: 14px; }
.footer-legal { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.beian { color: var(--muted); }
.beian:hover { color: var(--green-500); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .nav { gap: 14px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
  .app-card { flex-direction: column; }
}

/* Public support and policy pages share the same responsive typography. */
[hidden] { display: none !important; }
.header-inner { min-height: 64px; height: auto; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.nav, .footer-nav { flex-wrap: wrap; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green-600); outline-offset: 4px; }
.document { max-width: 820px; padding-top: 48px; padding-bottom: 64px; }
.document article { padding: clamp(20px, 5vw, 40px); background: white; border: 1px solid var(--line); border-radius: 20px; }
.document h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin-bottom: 20px; }
.document h2 { font-size: 22px; margin: 28px 0 12px; }
.document p { margin-bottom: 16px; overflow-wrap: anywhere; }
.document a { text-decoration: underline; }
.document .lang-nav { margin-bottom: 20px; display: flex; gap: 20px; }
.draft { background: #fff1d8; padding: 16px; border: 1px solid #986225; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
