:root {
  --bg: #f4efe7;
  --bg-soft: #fbf8f3;
  --text: #1f2a28;
  --muted: #68716d;
  --line: rgba(31, 42, 40, 0.12);
  --forest: #1d4b43;
  --gold: #cbb07b;
  --rose: #c89aa6;
  --navy: #34485d;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 60px rgba(36, 44, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(203, 176, 123, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(29, 75, 67, 0.15), transparent 24%),
    linear-gradient(180deg, #f6f2eb 0%, #f3eee6 36%, #faf7f2 100%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(250, 247, 242, 0.72);
  border-bottom: 1px solid rgba(31, 42, 40, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--forest), #487168);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.18em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.hero {
  padding: 44px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: stretch;
}

.hero-copy {
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 240, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 16px;
  color: var(--forest);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: #49524e;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  transition: 0.2s ease;
}

.button.primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 16px 30px rgba(29, 75, 67, 0.22);
}

.button.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.metric {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.metric strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 18%, rgba(203, 176, 123, 0.34), transparent 28%),
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(145deg, #204740 0%, #6ea385 58%, #e4d9c5 100%);
  box-shadow: var(--shadow);
}

.hero-stage {
  position: absolute;
  inset: 34px 34px 126px 34px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.4s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(18, 27, 25, 0.48);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-slide-copy strong {
  display: block;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-slide-copy p {
  margin: 10px 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.orb.one {
  inset: 70px auto auto 50px;
  width: 180px;
  height: 180px;
  background: rgba(255, 243, 220, 0.35);
}

.orb.two {
  inset: auto 34px 54px auto;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.22);
}

.floating-card {
  position: absolute;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 40px rgba(18, 28, 26, 0.16);
}

.floating-card.small {
  top: 42px;
  right: 34px;
  width: 220px;
}

.floating-card.small strong,
.story-block strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
}

.floating-card.small p {
  margin: 12px 0 0;
  color: #3b4541;
  line-height: 1.7;
  font-size: 14px;
}

.hero-bottle {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 280px;
  height: 440px;
  transform: translate(-50%, -50%);
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(245, 231, 210, 0.92));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    0 44px 70px rgba(15, 41, 36, 0.22);
}

.hero-bottle::before {
  content: "";
  position: absolute;
  left: 78px;
  top: -34px;
  width: 124px;
  height: 70px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(180deg, #f7efe3, #d8c0a5);
}

.hero-bottle::after {
  content: "MEIYIFEI\A PREMIUM PROBIOTICS";
  white-space: pre;
  position: absolute;
  left: 42px;
  top: 116px;
  color: #23443d;
  font-size: 28px;
  line-height: 1.45;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
}

.hero-tag {
  position: absolute;
  left: 34px;
  bottom: 36px;
  right: 34px;
}

.hero-tag .story-block {
  width: min(320px, 100%);
}

.story-block {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 26px 44px rgba(22, 31, 29, 0.16);
}

.story-block p {
  margin: 12px 0 0;
  color: #43504c;
  line-height: 1.75;
  font-size: 14px;
}

.section {
  padding: 42px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.product-card,
.expert-card,
.video-card,
.qr-card,
.ingredient-card,
.journal-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  min-height: 540px;
}

.feature-card img,
.product-card img,
.expert-card img,
.video-media img,
.qr-card img {
  height: 100%;
  object-fit: cover;
}

.feature-card .content {
  position: absolute;
  inset: auto 24px 24px 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(18, 27, 25, 0.62);
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content h3,
.product-copy h3,
.expert-copy h3,
.video-copy h3,
.qr-card h3,
.journal-copy h3 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.content p,
.product-copy p,
.expert-copy p,
.video-copy p,
.qr-card p,
.journal-copy p {
  margin: 0;
  line-height: 1.75;
}

.product-grid,
.expert-grid,
.video-grid,
.qr-grid,
.journal-grid {
  display: grid;
  gap: 18px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qr-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.expert-card,
.video-card {
  display: grid;
  grid-template-rows: 300px auto;
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 66px rgba(36, 44, 42, 0.14);
}

.product-copy,
.expert-copy,
.video-copy,
.qr-card,
.ingredient-card,
.journal-copy {
  padding: 24px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.link-button button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ingredient-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.ingredient-panel {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(140deg, #204740, #6e8e78 60%, #d8c8aa);
  color: #fff;
  box-shadow: var(--shadow);
}

.ingredient-panel h3 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-family: Georgia, "Times New Roman", serif;
}

.ingredient-panel p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
}

.ingredient-points {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.ingredient-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ingredient-card p {
  color: var(--muted);
}

.video-media {
  position: relative;
  min-height: 300px;
  background: #d9d0c3;
}

.expert-media {
  position: relative;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  background: #d9d0c3;
  overflow: hidden;
}

.expert-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.expert-video img,
.expert-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.expert-video img {
  object-fit: cover;
}

.expert-video video {
  object-fit: contain;
  background: #0f1413;
}

.expert-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: rgba(18, 27, 25, 0.32);
}

.expert-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
}

.expert-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-chip {
  text-transform: none;
  letter-spacing: 0.04em;
}

.expert-title h3 {
  margin: 0;
}

.expert-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 16px rgba(20, 27, 25, 0.14);
  flex-shrink: 0;
}

.expert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  background: rgba(20, 27, 25, 0.55);
  backdrop-filter: blur(8px);
}

.video-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 30, 29, 0.6);
  backdrop-filter: blur(12px);
}

.play-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}

.quote {
  display: block;
  margin-top: 18px;
  color: #3e4a46;
  font-size: 14px;
}

.qr-card {
  text-align: center;
}

.qr-card img {
  width: 170px;
  height: 170px;
  margin: 4px auto 22px;
  border-radius: 26px;
  background: #fff;
  padding: 12px;
}

.journal-copy .tag {
  color: var(--forest);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.product-modal.open {
  display: block;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 23, 0.52);
  backdrop-filter: blur(8px);
}

.product-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, calc(100% - 24px));
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border-radius: 30px;
  background: #fbf8f2;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22);
}

.product-modal-media {
  min-height: 520px;
  background: #e9ded0;
}

.product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-copy {
  padding: 36px 34px;
}

.product-modal-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 50px);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.product-modal-copy p {
  color: #4d5753;
  line-height: 1.85;
}

.product-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.product-modal-meta span,
.product-point {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(29, 75, 67, 0.08);
  color: var(--forest);
  font-size: 13px;
}

.product-modal-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.product-modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2a28;
  font-size: 28px;
  cursor: pointer;
}

.footer {
  padding: 48px 0 56px;
}

.footer-card {
  padding: 28px 32px;
  border-radius: 28px;
  background: #203632;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.footer-card strong {
  display: block;
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-card p {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .hero-grid,
  .ingredient-layout,
  .feature-rail,
  .product-grid,
  .expert-grid,
  .video-grid,
  .qr-grid,
  .journal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 28px, 1200px);
  }

  .topbar-inner,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .feature-rail,
  .product-grid,
  .expert-grid,
  .video-grid,
  .qr-grid,
  .ingredient-layout,
  .journal-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .ingredient-panel,
  .product-copy,
  .expert-copy,
  .video-copy,
  .qr-card,
  .journal-copy {
    padding: 22px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-stage {
    inset: 18px 18px 134px 18px;
  }

  .hero-slide-copy strong {
    font-size: 22px;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    justify-content: space-between;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .product-modal-media {
    min-height: 280px;
  }
}
