/* ==========================================================================
   星月香 XINGYUE 官网 · 全局样式
   风格：暖米底 + 主绿，留白多，治愈系，移动端优先
   ========================================================================== */

:root {
  --bg: #F5F0E8;
  --bg-soft: #FBF8F2;
  --bg-card: #FFFDF9;
  --green: #6B8E5A;
  --green-deep: #4C6B3F;
  --green-soft: #E6EEDF;
  --gold: #C7A76B;
  --ink: #2E2A24;
  --ink-2: #5C554B;
  --ink-3: #918879;
  --line: #E4DDCE;
  --line-soft: #EFE9DC;
  --white: #FFFFFF;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(76, 62, 40, .04), 0 4px 14px rgba(76, 62, 40, .05);
  --shadow-m: 0 6px 24px rgba(76, 62, 40, .09);
  --shadow-l: 0 18px 50px rgba(76, 62, 40, .14);
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 容器与通用 ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 10px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; letter-spacing: .02em; }

.h-xl { font-size: 30px; }
.h-lg { font-size: 24px; }
.h-md { font-size: 19px; }
.h-sm { font-size: 16px; }

.lead { color: var(--ink-2); font-size: 15px; margin: 12px 0 0; }
.muted { color: var(--ink-3); font-size: 13px; }

.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head .lead { font-size: 15px; }

.divider {
  height: 1px; border: 0; margin: 48px 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(107, 142, 90, .28);
}
.btn--primary:hover { background: var(--green-deep); box-shadow: 0 8px 22px rgba(107, 142, 90, .34); }

.btn--ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: rgba(107, 142, 90, .45);
}
.btn--ghost:hover { background: var(--green-soft); border-color: var(--green); }

.btn--light {
  background: #fff;
  color: var(--green-deep);
  border-color: rgba(107, 142, 90, .38);
  box-shadow: var(--shadow-s);
}
.btn--light:hover { border-color: var(--green); background: var(--green-soft); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 240, 232, .86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: .12em; }
.brand__sub { font-size: 10px; letter-spacing: .28em; color: var(--ink-3); }

.nav { display: none; }
.nav a {
  position: relative;
  padding: 8px 2px;
  margin: 0 13px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green-deep); font-weight: 600; }

.header-cta { display: none; }

.nav-toggle {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle span {
  position: relative; display: block; width: 18px; height: 1.6px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.6px;
  background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 8px 0 16px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 15.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 52px;
  background:
    radial-gradient(720px 380px at 12% -8%, rgba(107, 142, 90, .13), transparent 65%),
    radial-gradient(620px 340px at 92% 4%, rgba(199, 167, 107, .16), transparent 62%),
    var(--bg);
}
.hero__inner { position: relative; z-index: 1; max-width: 680px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  font-size: 12.5px; color: var(--green-deep); letter-spacing: .08em;
  margin-bottom: 20px;
}
.hero h1 { font-size: 32px; letter-spacing: .04em; }
.hero h1 .dot { color: var(--gold); }
.hero__sub { margin: 16px 0 0; font-size: 16px; color: var(--ink-2); max-width: 30em; }
.hero__actions { margin-top: 28px; }
.hero__note { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

.hero__art {
  position: relative;
  margin-top: 36px;
}
.hero__art .carousel {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.hero__art img { width: 100%; }

/* ---------- 卡片通用 ---------- */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line); }

.card--link { display: block; }
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 20px;
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; }
.card p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }
.card__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--green-deep);
}
.card__more::after { content: "→"; transition: transform .25s var(--ease); }
.card:hover .card__more::after { transform: translateX(3px); }

/* ---------- 产品卡 ---------- */

.product {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line); }

.product__media { position: relative; background: #F1EBDF; }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 图片轮播 ---------- */

.carousel { position: relative; overflow: hidden; }

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__slide img { width: 100%; display: block; }

.carousel--43 .carousel__slide img { aspect-ratio: 4 / 3; object-fit: cover; }
.carousel--911 .carousel__slide img { aspect-ratio: 9 / 11; object-fit: cover; }

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--green-deep);
  font-size: 20px;
  line-height: 1;
  padding-bottom: 3px;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  opacity: 0;
  transition: opacity .25s var(--ease), background-color .25s var(--ease);
}
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.carousel:hover .carousel__nav,
.carousel:focus-within .carousel__nav { opacity: 1; }
.carousel__nav:hover { background: #fff; }
@media (hover: none) { .carousel__nav { display: none; } }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(46, 42, 36, .26);
  cursor: pointer;
  transition: width .25s var(--ease), background-color .25s var(--ease);
}
.carousel__dot.is-active { width: 18px; background: var(--green); }
.carousel__dot:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .carousel__track { scroll-behavior: auto; }
}

.product__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product__name {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 18px; font-weight: 600;
}
.product__tag {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--green-deep); background: var(--green-soft);
  padding: 2px 8px; border-radius: 999px;
}
.product__line { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }

.spec { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px dashed var(--line); }
.spec li {
  display: flex; gap: 10px;
  padding: 8px 0; font-size: 13.5px;
  border-bottom: 1px dashed var(--line);
}
.spec li:last-child { border-bottom: 0; }
.spec__k { flex: 0 0 62px; color: var(--ink-3); }
.spec__v { color: var(--ink-2); }

.product__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { font-size: 14px; color: var(--ink-3); }
.price strong { display: block; font-size: 15px; color: var(--green-deep); font-weight: 600; }

/* 即将上线 */
.product--soon .product__media img { filter: grayscale(.15) opacity(.9); }
.soon-badge {
  position: absolute; left: 14px; top: 14px;
  background: rgba(46, 42, 36, .72); color: #fff;
  font-size: 12px; letter-spacing: .1em;
  padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.product--soon .product__line { color: var(--ink-3); }

/* ---------- 分类锚点条 ---------- */

.cat-bar {
  position: sticky; top: 62px; z-index: 40;
  background: rgba(245, 240, 232, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar__inner { display: flex; gap: 8px; padding: 10px 20px; max-width: var(--wrap); margin: 0 auto; width: max-content; }
.cat-bar a {
  flex: 0 0 auto;
  padding: 7px 15px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  transition: all .2s var(--ease);
}
.cat-bar a:hover, .cat-bar a.is-active {
  background: var(--green); border-color: var(--green); color: #fff;
}

/* ---------- 页头（内页） ---------- */

.page-hero {
  padding: 46px 0 34px;
  background:
    radial-gradient(560px 300px at 8% 0%, rgba(107, 142, 90, .12), transparent 62%),
    radial-gradient(520px 280px at 96% 10%, rgba(199, 167, 107, .14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: 27px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.crumb a:hover { color: var(--green-deep); }

/* ---------- 小节标题 ---------- */

.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.cat-head h2 { font-size: 21px; }
.cat-head .muted { margin: 4px 0 0; }

/* ---------- 文本块 ---------- */

.prose { max-width: 720px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.prose strong { color: var(--ink); }

.quote {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px; color: var(--ink); line-height: 1.9;
}

.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li {
  position: relative; padding: 7px 0 7px 22px;
  font-size: 15px; color: var(--ink-2);
}
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); opacity: .75;
}

/* ---------- 小芽联动条 ---------- */

.linkbar {
  background: linear-gradient(135deg, #EDF3E7 0%, #F7F2E6 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 22px;
}
.linkbar h3 { font-size: 19px; }
.linkbar p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }
.linkbar .btn-row { margin-top: 18px; }

/* ---------- 二维码 / 微信卡片 ---------- */

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-s);
}
.qr-card img { width: 168px; margin: 0 auto 14px; border-radius: 12px; }
.qr-card h3 { font-size: 16.5px; }
.qr-card p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

.wx-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 14px;
}
.wx-id {
  flex: 1 1 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px; letter-spacing: .06em; color: var(--green-deep);
}

/* ---------- 提示 toast ---------- */

.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translate(-50%, 16px);
  background: rgba(46, 42, 36, .93);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 200;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: 20px;
  background: #2E2A24;
  color: #CFC7B8;
  padding: 44px 0 30px;
  font-size: 14px;
}
.site-footer a { color: #CFC7B8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-brand__name { color: #fff; font-size: 18px; letter-spacing: .14em; }
.footer-brand p { margin: 10px 0 0; color: #A79E8E; font-size: 13.5px; line-height: 1.8; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: #9A9182;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-bottom .disclaimer { color: #B3A996; line-height: 1.7; }

/* ---------- 免责声明块 ---------- */

.notice {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ---------- 反白区块 ---------- */

.band {
  background: linear-gradient(135deg, #5D7F4E 0%, #4C6B3F 100%);
  color: #EDF3E7;
  border-radius: var(--radius-l);
  padding: 34px 24px;
}
.band h2 { color: #fff; font-size: 22px; }
.band p { color: #DCE7D3; font-size: 15px; margin: 12px 0 0; }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (min-width: 600px) {
  body { font-size: 16px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 76px 0 64px; }
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 17px; }
  .page-hero h1 { font-size: 32px; }
  .section { padding: 76px 0; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-bottom .disclaimer { max-width: 60%; text-align: right; }
}

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .header-inner { height: 70px; }
  .mobile-nav { display: none !important; }
  .hero { padding: 92px 0 84px; }
  .hero__inner { max-width: none; }
  .hero__layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .hero__art { margin-top: 0; }
  .hero h1 { font-size: 46px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .band { padding: 46px 44px; }
  .cat-bar { top: 70px; }
}

@media (min-width: 1100px) {
  .section { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
