/* ============================================================
   金七家园 · 品牌官网
   视觉变量严格对应设计稿 tokens
   ============================================================ */
:root {
  --cream: #F7F4EC;
  --red-900: #1C0807;
  --red-800: #2E0F0D;
  --red-700: #A02623;
  --red-600: #8A1F1C;
  --red-100: #F6E4E2;
  --red-50: #FAF0EF;
  --gold: #C8A15A;
  --ink: #2E0F0D;
  --body: #6B5B58;
  --muted: #7A6663;
  --muted-light: #9A7F7C;
  --sage: #C99E9A;
  --sage-dim: #EBC9C6;

  --radius-card: 20px;
  --radius-qr: 24px;
  --radius-pill: 100px;

  --nav-h: 92px;
  --pad-x: 120px;
  --max-w: 1440px;

  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  --font-en: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-cn);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---------- 通用 ---------- */
.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--red-700);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #8A1F1C;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(160, 38, 35, .22);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  color: var(--red-700);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(160, 38, 35, .28);
  transition: border-color .25s ease, background .25s ease;
}
.btn-ghost:hover {
  border-color: var(--red-700);
  background: rgba(160, 38, 35, .05);
}

.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: rgba(46, 15, 13, .08);
  background: rgba(247, 244, 236, .95);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(46, 15, 13, .18);
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--red-800);
  letter-spacing: .5px;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 15px;
  color: #6B514E;
  position: relative;
  padding: 4px 0;
  transition: color .22s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transition: right .28s ease;
}
.nav-links a:hover { color: var(--red-800); }
.nav-links a:hover::after { right: 0; }

/* ---------- 主视觉 ---------- */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 78% 22%, rgba(160, 38, 35, .09), transparent 68%),
    radial-gradient(520px 320px at 12% 92%, rgba(200, 161, 90, .10), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--pad-x) 104px;
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--red-100);
  color: var(--red-700);
  font-size: 12px;
  font-weight: 500;
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: block;
}
.hero-title {
  margin: 0;
  font-size: 62px;
  line-height: 78px;
  font-weight: 700;
  color: var(--red-800);
  letter-spacing: 1px;
}
.hero-sub {
  margin: 0;
  font-size: 17px;
  line-height: 32px;
  color: var(--body);
  max-width: 480px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-visual {
  position: relative;
  flex: 0 0 428px;
  width: 428px;
  height: 468px;
  border-radius: 280px 280px 24px 24px;
  background: linear-gradient(135deg, #C9766A 0%, #A02623 100%);
  box-shadow: 0 32px 64px -12px rgba(120, 26, 24, .35);
  overflow: hidden;
  isolation: isolate;
  animation: visualRise 1s cubic-bezier(.2, .8, .25, 1) both;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 18% 8%, rgba(255, 255, 255, .28), transparent 58%),
    radial-gradient(90% 60% at 88% 100%, rgba(60, 12, 10, .45), transparent 62%);
  mix-blend-mode: soft-light;
}
.hero-visual-ring {
  position: absolute;
  left: 50%; top: 54%;
  width: 300px; height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, .035);
}
.hero-visual-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 190px; height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 60%, transparent 72%);
  filter: blur(.4px);
}
@keyframes visualRise {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 简介区 ---------- */
.about { background: #FFFFFF; padding: 104px 0; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow-light { color: var(--gold); }
.section-title {
  margin: 0;
  font-size: 40px;
  line-height: 52px;
  font-weight: 700;
  color: var(--red-800);
  letter-spacing: .5px;
}
.section-title.light { color: #fff; }
.section-lead {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 30px;
  color: var(--body);
}
.section-lead.light { color: var(--sage-dim); font-size: 15px; line-height: 26px; }

.card-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.2,.8,.25,1), box-shadow .35s ease, border-color .35s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(160, 38, 35, .12);
  box-shadow: 0 18px 40px -18px rgba(46, 15, 13, .22);
}
.card-index {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--red-700);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .6px;
}
.card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--red-800);
}
.card-body {
  margin: 0;
  font-size: 14px;
  line-height: 25px;
  color: var(--body);
}

/* ---------- 下载区 ---------- */
.download {
  position: relative;
  background: var(--red-700);
  padding: 104px 0;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 380px at 12% 6%, rgba(200, 161, 90, .16), transparent 66%),
    radial-gradient(700px 420px at 88% 96%, rgba(233, 199, 196, .18), transparent 68%);
  pointer-events: none;
}
.download .section-inner { position: relative; }

.qr-row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.qr-card {
  width: 320px;
  background: #fff;
  border-radius: var(--radius-qr);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  box-shadow: 0 24px 48px -20px rgba(70, 14, 12, .45);
  transition: transform .35s cubic-bezier(.2,.8,.25,1), box-shadow .35s ease;
}
.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px -20px rgba(70, 14, 12, .55);
}
.qr-box {
  width: 168px;
  height: 168px;
  border-radius: 8px;
  background: #F2F2F2;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #8A9490;
  font-size: 12px;
  letter-spacing: .5px;
}
.qr-box img, .qr-box canvas { width: 100%; height: 100%; display: block; }
.qr-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--red-800);
}
.qr-desc {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}
.qr-ver {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--red-50);
  color: var(--red-700);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
}
.download-note {
  margin: 36px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--sage);
  letter-spacing: .4px;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--red-900); padding: 56px 0; color: #fff; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-name { font-size: 24px; font-weight: 700; letter-spacing: .8px; }
.footer-slogan { font-size: 13px; color: var(--muted-light); }
.footer-info { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-info span:first-child { font-size: 13px; color: var(--sage); }
.footer-info span:last-child { font-size: 13px; color: var(--muted-light); }
.footer-divider { height: 1px; background: #3A1512; margin: 36px 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #8A6E6B;
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { transition: color .22s ease; }
.footer-legal a:hover { color: var(--sage); }

/* ---------- 滚动进场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.25,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  :root { --pad-x: 64px; }
  .hero-title { font-size: 54px; line-height: 68px; }
  .hero-visual { flex-basis: 380px; width: 380px; height: 420px; }
}

@media (max-width: 980px) {
  :root { --pad-x: 40px; }
  .hero-inner { flex-direction: column; padding-bottom: 72px; gap: 48px; }
  .hero-visual { flex-basis: auto; width: min(100%, 428px); }
  .card-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 32px; line-height: 44px; }
  .about, .download { padding: 72px 0; }
}

@media (max-width: 720px) {
  :root { --pad-x: 22px; }
  .nav-inner { padding: 16px var(--pad-x); }
  .nav-links { display: none; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 19px; }
  .hero-inner { padding-top: 32px; }
  .hero-title { font-size: 36px; line-height: 48px; letter-spacing: .5px; }
  .hero-sub { font-size: 15px; line-height: 27px; }
  .hero-visual { height: 340px; border-radius: 240px 240px 20px 20px; }
  .hero-visual-ring { width: 220px; height: 220px; }
  .hero-visual-glow { width: 140px; height: 140px; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-actions .btn-lg { width: 100%; }
  .section-title { font-size: 28px; line-height: 38px; }
  .section-lead { font-size: 15px; line-height: 27px; }
  .card-grid { margin-top: 36px; }
  .qr-row { gap: 20px; margin-top: 36px; }
  .qr-card { width: 100%; max-width: 340px; padding: 28px 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-info { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
