/* ==========================================================================
   成分星球 · 化妆品品牌官网 demo
   视觉：柔粉奶油 · 亲和（品牌蓝取自 logo #47529B，作辅助强调色）
   无外部依赖，可离线渲染。品牌色/主色在下方 :root 中可整体调整。
   ========================================================================== */

:root {
  /* 品牌蓝（取自 logo） */
  --brand: #47529B;
  --brand-deep: #3A4486;
  --brand-grad: linear-gradient(135deg, #6b77c4 0%, #47529B 60%, #3A4486 100%);

  /* 奶油 / 粉色系氛围 */
  --rose: #ef87ad;
  --rose-deep: #e06a98;
  --rose-soft: rgba(239, 135, 173, .14);
  --peach: #f7c3ac;
  --cream: #fdf8f4;          /* 页面底色 */
  --cream-2: #fffaf6;        /* 浅一档 */
  --surface: #fffdfc;        /* 卡片/表单 */
  --gold: #caa36a;

  /* 中性文字（暖调） */
  --heading: #392f3c;
  --ink: #4d4350;
  --muted: #877b89;
  --line: rgba(77, 67, 80, .12);

  /* 几何 */
  --radius: 20px;
  --radius-sm: 13px;
  --shadow-sm: 0 10px 26px rgba(120, 90, 120, .08);
  --shadow-md: 0 22px 50px -16px rgba(120, 90, 120, .22);
  --shadow-brand: 0 14px 28px -9px rgba(71, 82, 155, .5);
  --shadow-rose: 0 14px 28px -10px rgba(224, 106, 152, .45);

  --container: 1120px;
  --header-h: 76px;
}

/* ---------------- 基础 ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--heading); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: linear-gradient(180deg, #fbeef1 0%, #fdf6f2 100%); }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- 导航 ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(253, 248, 244, .7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-solid { background: rgba(255, 252, 250, .9); box-shadow: 0 6px 24px rgba(120, 90, 120, .07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }
@media (max-width: 520px) { .brand img { height: 36px; } }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav ul a {
  position: relative; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 6px 0; transition: color .2s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  border-radius: 2px; background: var(--rose-deep); transition: width .25s ease;
}
.main-nav ul a:hover { color: var(--brand-deep); }
.main-nav ul a:hover::after { width: 100%; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; border: none; font-size: 15px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-grad); color: #fff; padding: 14px 32px; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -9px rgba(71,82,155,.62); }
.btn-soft {
  background: var(--surface); color: var(--brand-deep); padding: 14px 32px;
  border: 1px solid rgba(71, 82, 155, .35);
}
.btn-soft:hover { border-color: var(--brand-deep); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 11px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--heading); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: calc(var(--header-h) + 46px) 0 96px;
  background:
    radial-gradient(620px 300px at 82% 8%, rgba(242, 147, 182, .20), transparent 65%),
    radial-gradient(620px 340px at 12% 20%, rgba(249, 198, 174, .30), transparent 60%),
    radial-gradient(760px 420px at 50% 118%, rgba(71, 82, 155, .13), transparent 65%),
    linear-gradient(180deg, #fdf4ef 0%, var(--cream) 78%);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55;
  animation: drift 11s ease-in-out infinite;
}
.orb-rose { width: 300px; height: 300px; left: -90px; top: 8%; background: var(--rose); opacity: .5; }
.orb-peach { width: 240px; height: 240px; right: -60px; top: 26%; background: var(--peach); animation-delay: -4s; }
.orb-brand { width: 260px; height: 260px; left: 44%; top: -90px; background: var(--brand); opacity: .22; animation-delay: -7s; }
@keyframes drift { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-26px) } }
.spark { position: absolute; color: rgba(239, 135, 173, .65); animation: twinkle 3.4s ease-in-out infinite; }
.s1 { top: 20%; left: 12%; font-size: 15px; }
.s2 { top: 62%; left: 20%; font-size: 11px; animation-delay: -1s; }
.s3 { top: 24%; right: 14%; font-size: 12px; animation-delay: -2s; color: rgba(71,82,155,.6); }
.s4 { top: 55%; right: 22%; font-size: 15px; animation-delay: -1.6s; color: rgba(202,163,106,.8); }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.85) } 50% { opacity: 1; transform: scale(1.1) } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  font-size: 14px; letter-spacing: 3px; font-weight: 500; color: var(--rose-deep);
  background: var(--rose-soft); border: 1px solid rgba(239,135,173,.35);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-logo img { width: min(380px, 78vw); height: auto; }
.hero-title {
  margin-top: 18px;
  font-size: clamp(27px, 5vw, 46px); letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.hero-title .divider { display: inline-block; width: 3px; height: .9em; border-radius: 3px; background: linear-gradient(180deg, var(--rose), var(--brand)); }
.hero-sub {
  margin-top: 18px; max-width: 560px; color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16.5px);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.scroll-hint { margin-top: 56px; display: inline-block; }
.scroll-mouse {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(77, 67, 80, .35);
  border-radius: 14px; position: relative;
}
.scroll-mouse i {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--rose-deep); animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(14px) } }

/* ---------------- 区块标题 ---------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(25px, 3.6vw, 38px); letter-spacing: 1px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 15px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--rose-deep); background: var(--rose-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------------- 品牌理念三支柱 ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.pillar-ico {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; color: var(--rose-deep);
  background: radial-gradient(circle at 30% 25%, #fdecf2, var(--rose-soft));
  border: 1px solid rgba(239,135,173,.4);
}
.pillar-ico svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 20px; }
.pillar h3 small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 2px; }
.pillar p { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* 信任词条 */
.trust {
  margin: 52px auto 0; max-width: 860px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
}
.trust li {
  font-size: 14px; color: var(--ink); background: var(--surface);
  border: 1px solid rgba(239,135,173,.4); border-radius: 999px; padding: 7px 18px;
  box-shadow: var(--shadow-sm);
}
.trust li::before { content: "♥"; margin-right: 8px; color: var(--rose); font-size: 11px; }

/* ---------------- 产品预告 ---------------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.product {
  --pc: var(--rose);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 24px 30px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.product-visual { position: relative; height: 172px; margin-bottom: 20px; }
.halo {
  position: absolute; inset: 0; margin: auto; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--pc) 0%, transparent 70%); opacity: .34; filter: blur(6px);
}
.bottle { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 96px; z-index: 2; }
.bottle .cap {
  display: block; width: 54px; height: 20px; margin: 0 auto;
  border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 55%), var(--pc);
  box-shadow: 0 4px 10px rgba(0,0,0,.14);
}
.bottle .jar {
  display: block; width: 76px; height: 62px; margin: -2px auto 0; position: relative;
  border-radius: 12px 12px 20px 20px;
  /* 基础版（无需 color-mix，保证老浏览器可渲染） */
  border: 1px solid rgba(224, 106, 152, .5);
  background:
    linear-gradient(150deg, rgba(255,255,255,.75), rgba(255,255,255,.2) 40%, rgba(0,0,0,.05)),
    linear-gradient(180deg, #ffffff, #f6dbe5 80%);
  box-shadow: inset 0 -8px 14px rgba(255,255,255,.5), 0 12px 22px -8px rgba(224,106,152,.45);
}
/* 现代浏览器：用各瓶 --pc 主色精确上色 */
@supports (background: color-mix(in srgb, red, #fff)) {
  .bottle .jar {
    border-color: color-mix(in srgb, var(--pc) 55%, #fff);
    background:
      linear-gradient(150deg, rgba(255,255,255,.75), rgba(255,255,255,.18) 38%, rgba(0,0,0,.05) 100%),
      linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--pc) 46%, #fff) 70%);
    box-shadow: inset 0 -8px 14px rgba(255,255,255,.5), 0 12px 22px -8px color-mix(in srgb, var(--pc) 60%, transparent);
  }
}
.bottle .sheen {
  position: absolute; left: 10px; top: 8px; bottom: 8px; width: 9px;
  border-radius: 9px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.15));
}
.bottle .stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; padding: 3px; object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.bottle-ice { --pc: #7c8ad6; }
.bottle-rose { --pc: #ef87ad; }
.bottle-cream { --pc: #d9b878; }
.coming {
  position: absolute; right: 6px; top: 4px; z-index: 3;
  font-size: 12px; color: var(--rose-deep); background: var(--rose-soft);
  border: 1px dashed rgba(239,135,173,.6); border-radius: 999px; padding: 3px 10px;
  transform: rotate(6deg);
}
.product-name { font-size: 19px; letter-spacing: 1px; }
.product-name small { display: block; font-size: 12px; font-weight: 400; color: var(--gold); letter-spacing: 1px; margin-top: 4px; }
.product-line { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.products-note { text-align: center; margin-top: 38px; font-size: 12.5px; color: var(--muted); }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: start; }
.contact-info h2 { font-size: clamp(25px, 3.2vw, 32px); margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-ico {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--brand-grad); box-shadow: var(--shadow-brand);
}
.contact-ico svg { width: 21px; height: 21px; }
.contact-list li div { display: flex; flex-direction: column; }
.contact-list small { color: var(--muted); font-size: 12.5px; }
.contact-list a, .contact-list li span { font-size: 15.5px; font-weight: 600; color: var(--heading); }
.contact-list a:hover { color: var(--brand-deep); }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 20px; margin-bottom: 18px; letter-spacing: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 11px; background: var(--cream-2);
  padding: 11px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(71, 82, 155, .14);
}
.form-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-success {
  background: #f1fbff; border: 1px solid #9cd3ea; color: #227aa3;
  border-radius: 11px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 14px; display: none;
}
.form-success.show { display: block; }

/* ---------------- 页脚（夜空蓝） ---------------- */
.site-footer { position: relative; color: rgba(255,255,255,.82);
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(71,82,155,.7), transparent 65%),
    linear-gradient(180deg, #2b3161 0%, #242952 100%);
  overflow: hidden;
}
.footer-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(2px 2px at 12% 30%, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(1.6px 1.6px at 28% 72%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(2px 2px at 46% 18%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(1.4px 1.4px at 62% 60%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(2.2px 2.2px at 78% 24%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(1.6px 1.6px at 90% 70%, rgba(255,255,255,.5), transparent 70%),
    radial-gradient(1.8px 1.8px at 8% 80%, rgba(255,255,255,.5), transparent 70%);
}
.footer-inner {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px;
  padding: 58px 0 36px;
}
.footer-word { font-size: 24px; font-weight: 700; letter-spacing: 4px; color: #fff; }
.footer-word em {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: 2px;
  color: rgba(255,255,255,.66); margin-left: 10px;
}
.footer-slogan { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.66); letter-spacing: 2px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 14.5px; color: rgba(255,255,255,.8); transition: color .2s; }
.footer-nav a:hover { color: var(--rose); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { font-size: 13.5px; color: rgba(255,255,255,.7); }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom-inner a:hover { color: #fff; }

/* ---------------- 回到顶部 ---------------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--brand-grad); color: #fff; font-size: 19px;
  box-shadow: var(--shadow-brand); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }

/* ---------------- 滚动渐显 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .orb, .spark, .scroll-mouse i { animation: none !important; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .pillars, .products { grid-template-columns: 1fr; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 30px) 0 72px; }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); padding: 16px 6% 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: .3s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { display: block; color: var(--ink); padding: 12px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { flex-direction: column; gap: 6px; }
  .hero-title .divider { height: 3px; width: .6em; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
}
