/* =========================================================
   初醒 FLORA · 落地页样式
   设计风格：奶油暖白 + 花卉粉 + 鼠尾草绿，优雅衬线标题
   ========================================================= */

:root {
  /* 配色 */
  --bg: #fdfaf6;            /* 奶油暖白 */
  --surface: #ffffff;
  --surface-alt: #f6f1ea;  /* 浅燕麦 */
  --ink: #2c2722;          /* 主文字 深棕 */
  --ink-soft: #6f655c;     /* 次要文字 */
  --blush: #e8a0a8;        /* 花卉粉 */
  --blush-deep: #d77f89;   /* 深粉（强调/按钮） */
  --sage: #8a9a7b;         /* 鼠尾草绿 */
  --sage-soft: #e3e8dc;
  --gold: #c9a36a;         /* 暖金 点缀 */
  --line: #ece3d8;

  /* 字体 */
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(60, 45, 35, 0.35);
  --shadow-soft: 0 8px 26px -16px rgba(60, 45, 35, 0.28);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* 顶部公告条 */
.announce-bar {
  background: linear-gradient(90deg, var(--blush-deep), var(--blush));
  color: #fff;
  text-align: center;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 9px 16px;
}
.announce-bar strong { font-weight: 700; }

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 246, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); }
.logo-mark { color: var(--blush-deep); font-size: 1.5rem; }
.logo-text { font-size: 1.45rem; font-weight: 700; letter-spacing: 0.02em; }
.logo-text em { font-style: normal; color: var(--sage); font-size: 0.95rem; letter-spacing: 0.18em; }

.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.96rem; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--blush-deep); transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center; transition: transform 0.2s, box-shadow 0.2s;
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--blush-deep); color: #fff; font-size: 0.72rem; font-weight: 700;
  border-radius: 10px; display: grid; place-items: center; font-family: var(--sans);
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* Hero */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 18px;
}
.eyebrow.center { text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 700; }
.hero h1 .accent { color: var(--blush-deep); font-style: italic; }
.hero-sub { margin: 22px 0 30px; color: var(--ink-soft); font-size: 1.05rem; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.25s, color 0.25s;
}
.btn-primary { background: var(--blush-deep); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); background: #cb6e78; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; text-align: center; }

.hero-stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 40px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-media { position: relative; }
.hero-card {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; background: var(--surface-alt);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,0.92);
  border-radius: 14px; padding: 10px 16px; display: flex; align-items: baseline; gap: 6px;
  box-shadow: var(--shadow-soft);
}
.hb-num { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--blush-deep); }
.hb-label { font-size: 0.8rem; color: var(--ink-soft); }

/* 信任带 */
.trust-strip { background: var(--sage-soft); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trust-item { text-align: center; }
.trust-item .ti-ico { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.trust-item p { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

/* 通用 section */
.section { padding: 84px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 14px; }
.section-sub { color: var(--ink-soft); }

/* 产品网格 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-alt); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: #fff;
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.05em;
}
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1.3rem; margin-bottom: 4px; }
.product-desc { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 16px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--blush-deep); }
.product-price small { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.add-btn {
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px;
  font-family: var(--sans); font-size: 0.9rem; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.add-btn:hover { background: var(--blush-deep); transform: translateY(-1px); }

/* 特点 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.fe-ico { font-size: 2rem; display: block; margin-bottom: 14px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 0.92rem; }

/* 流程 */
.process-steps {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
}
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 26px; }
.step-no { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--sage-soft); display: block; margin-bottom: 8px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* 评价 */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-soft);
}
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--ink); }
.review figcaption { color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; }

/* CTA 订阅 */
.cta-band { background: linear-gradient(135deg, #f3d9dd, #e3e8dc); padding: 72px 0; }
.cta-inner { text-align: center; max-width: 620px; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.cta-inner p { color: var(--ink-soft); margin-bottom: 26px; }
.subscribe { display: flex; gap: 12px; max-width: 480px; margin-inline: auto; }
.subscribe input {
  flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans);
  font-size: 0.95rem; background: var(--surface);
}
.subscribe input:focus { outline: 2px solid var(--blush-deep); outline-offset: 1px; }
.form-msg { min-height: 1.4em; margin-top: 14px; font-size: 0.9rem; color: var(--sage); }

/* 页脚 */
.site-footer { background: var(--ink); color: #efe8df; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text em { color: var(--blush); }
.footer-tag { margin-top: 14px; color: #c9bdb0; font-size: 0.92rem; max-width: 26em; }
.footer-col h4 { font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.05em; margin-bottom: 16px; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #c9bdb0; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--blush); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
}
.copyright { color: #b3a89c; font-size: 0.85rem; }
.icp a { color: #b3a89c; font-size: 0.85rem; border-bottom: 1px dashed rgba(255,255,255,0.3); }
.icp a:hover { color: #fff; }

/* 购物车抽屉 */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(40, 30, 22, 0.45); z-index: 90; backdrop-filter: blur(2px);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 90vw); background: var(--bg);
  z-index: 100; box-shadow: -20px 0 50px -20px rgba(0,0,0,0.4); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.32s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-header h3 { font-size: 1.4rem; }
.cart-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.cart-items { list-style: none; margin: 0; padding: 12px 24px; overflow-y: auto; flex: 1; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-info .ci-price { color: var(--blush-deep); font-weight: 600; font-size: 0.9rem; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1rem; line-height: 1; }
.qty span { min-width: 18px; text-align: center; font-size: 0.9rem; }
.cart-empty { padding: 40px 24px; text-align: center; color: var(--ink-soft); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total strong { font-family: var(--serif); font-size: 1.6rem; color: var(--blush-deep); }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 0.92rem;
  z-index: 200; opacity: 0; transition: opacity 0.3s, transform 0.3s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 可访问性 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 3px; }

/* 滚动揭示动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 460px; }
  .product-grid, .feature-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column;
    gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); transform: translateY(-130%);
    transition: transform 0.3s ease; box-shadow: var(--shadow-soft); z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: flex; }
  .hero { padding: 40px 0 56px; }
  .hero-stats { gap: 22px; }
  .section { padding: 60px 0; }
  .product-grid, .feature-grid, .review-grid, .process-steps, .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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