/* =====================================================
   御光澜官网 · style.css
   主题：薄荷绿 / 留白 / 高级感 / 响应式
   ===================================================== */

:root {
  --mint: #34c99e;
  --mint-deep: #18a87f;
  --mint-soft: #e8f8f2;
  --mint-tint: #f4fbf8;
  --ink: #22313b;
  --ink-2: #5b6b76;
  --line: #e3efe9;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(24, 90, 70, 0.10);
  --shadow-sm: 0 8px 24px rgba(24, 90, 70, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.35s ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(52, 201, 158, 0.38);
}
.btn-primary:hover { box-shadow: 0 18px 38px rgba(52, 201, 158, 0.45); }

.btn-light {
  background: #fff;
  color: var(--mint-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.btn-small {
  padding: 10px 22px;
  font-size: 14px;
  background: var(--mint);
  color: #fff;
  box-shadow: 0 6px 16px rgba(52, 201, 158, 0.32);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 4px 20px rgba(24, 90, 70, 0.07);
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 8px;
}

.nav-links a {
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #f2fcf7 0%, #ffffff 88%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.blob-1 {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(52, 201, 158, 0.5), rgba(52, 201, 158, 0) 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 420px; height: 420px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(52, 201, 158, 0.35), rgba(52, 201, 158, 0) 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: 130px;
  fill: #ffffff;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-hint { font-size: 13px; color: #93a8a0; }

.hero-points {
  margin-top: 44px;
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-points li {
  font-size: 13px;
  color: var(--mint-deep);
  background: var(--mint-soft);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
}

/* ---------- 手机样机 ---------- */
.hero-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.2;
  background: #0e1513;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  z-index: 2;
}

.phone-screen, .phone-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 20px;
  background: #0e1513;
  border-radius: 999px;
  z-index: 3;
}

.phone-slides {
  position: relative;
  width: 100%; height: 100%;
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.phone-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.phone-shadow {
  width: 64%;
  height: 26px;
  margin-top: 26px;
  background: radial-gradient(ellipse at center, rgba(24, 90, 70, 0.22), transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
  z-index: 1;
}

.float-anim { animation: floaty 6s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 120px 0; }

.section-tint { background: var(--mint-tint); }

.section-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.3;
}

.section-desc {
  margin-top: 18px;
  color: var(--ink-2);
  max-width: 640px;
  font-size: 16px;
}

/* ---------- 健康公式 ---------- */
.formula-row {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}

.formula-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.formula-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.formula-icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  color: var(--mint-deep);
  background: var(--mint-soft);
  border-radius: 16px;
  margin-bottom: 22px;
}

.formula-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.formula-card p { font-size: 14.5px; color: var(--ink-2); }

.formula-plus {
  align-self: center;
  font-size: 30px;
  font-weight: 200;
  color: var(--mint);
}

/* ---------- App 展示 ---------- */
.app-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.app-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-static { width: min(280px, 72vw); }

.app-text .section-title { margin-bottom: 12px; }

.feature-list {
  margin-top: 36px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.feature-item h3 {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c6e6da;
  transition: background 0.35s ease, transform 0.35s ease;
  flex: none;
}

.feature-item p {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.feature-item.is-active {
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-item.is-active h3::before {
  background: var(--mint);
  transform: scale(1.3);
}

.feature-item.is-active p {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}

/* ---------- 我们提供 ---------- */
.offer-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 32px 36px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.offer-num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 20px;
}

.offer-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.offer-card p { font-size: 14.5px; color: var(--ink-2); }

.offer-tags {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.offer-tags span {
  font-size: 12px;
  color: var(--mint-deep);
  background: var(--mint-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(150deg, var(--mint) 0%, var(--mint-deep) 100%);
  padding: 110px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta::before { width: 340px; height: 340px; top: -140px; left: -100px; }
.cta::after  { width: 260px; height: 260px; bottom: -120px; right: -80px; }

.cta-inner { position: relative; z-index: 1; }

.cta-icon {
  width: 76px; height: 76px;
  border-radius: 22px;
  margin: 0 auto 26px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }

.cta p { margin-top: 10px; opacity: 0.9; font-size: 16px; }

.cta .btn { margin-top: 36px; }

/* ---------- 页脚 ---------- */
.footer { padding: 56px 0 48px; text-align: center; }

.footer-logo { height: 30px; margin: 0 auto 14px; }

.footer p { font-size: 14px; color: var(--ink-2); }

.footer-copy { margin-top: 6px; font-size: 12.5px; color: #9db3aa; }

/* ---------- 滚动渐显动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-anim, .hero-blob { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { padding: 140px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-icon { margin: 0 auto 24px; }
  .hero-actions { justify-content: center; }
  .hero-points { justify-content: center; }
  .formula-row { grid-template-columns: 1fr; gap: 16px; }
  .formula-plus { transform: rotate(90deg); justify-self: center; }
  .app-layout { grid-template-columns: 1fr; gap: 56px; }
  .offer-grid { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 70px; }
  .hero h1 br { display: none; }
  .btn { padding: 14px 28px; font-size: 16px; }
  .feature-item { padding: 14px 18px; }
  .formula-card, .offer-card { padding: 32px 24px; }
  .cta { padding: 84px 0; }
}
