/* ============================================
   WELLTHY — Shared Styles (multi-page site)
   ============================================ */
:root {
  --navy: #1F3A8E;
  --navy-dark: #14296A;
  --navy-deep: #0F1F52;
  --orange: #F58220;
  --orange-light: #FFA552;
  --orange-soft: #FFE4CC;
  --cream: #FFF8F1;
  --white: #FFFFFF;
  --grey-100: #F4F6FB;
  --grey-200: #E5EAF2;
  --grey-300: #D1D8E4;
  --grey-500: #6B7280;
  --grey-700: #374151;
  --green: #10B981;
  --shadow-sm: 0 4px 12px rgba(31, 58, 142, 0.08);
  --shadow-md: 0 12px 32px rgba(31, 58, 142, 0.12);
  --shadow-lg: 0 24px 60px rgba(31, 58, 142, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
body.page-transition {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
body.page-transition.page-ready {
  opacity: 1;
  transform: none;
}
body.page-transition.page-leaving {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
site-header { display: block; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(31,58,142,0.08);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-weight: 500; color: var(--navy); font-size: 15px;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 3px; background: var(--orange); border-radius: 2px;
}
.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--navy); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Language toggle button (中文 / EN) injected by JS */
.lang-toggle {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--grey-200);
  padding: 7px 14px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.3px;
}
.lang-toggle:hover {
  border-color: var(--orange); color: var(--orange);
  background: rgba(245,130,32,0.06);
}

.nav-toggle { display:none; background:none; border:none; cursor:pointer; }
.nav-toggle span { display:block; width:26px; height:3px; background:var(--navy); margin:5px 0; border-radius:2px; transition:0.3s; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 240px; background: var(--white);
  box-shadow: var(--shadow-md); border-radius: var(--radius-md);
  padding: 14px; opacity: 0; visibility: hidden;
  transition: all 0.25s ease; z-index: 110;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(8px); }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-weight: 500; font-size: 14px;
}
.dropdown a:hover { background: var(--grey-100); color: var(--orange); }
.dropdown a .di {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.dropdown a:nth-child(1) .di { background: linear-gradient(135deg, #1E3A8E, #2563EB); color:#fff; }
.dropdown a:nth-child(2) .di { background: linear-gradient(135deg, #6D28D9, #C026D3); color:#fff; }
.dropdown a:nth-child(3) .di { background: linear-gradient(135deg, #0F1F52, #6366F1); color:#fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.page-transition,
  body.page-transition.page-ready,
  body.page-transition.page-leaving {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 999px; font-weight: 600;
  font-size: 15px; cursor: pointer; transition: all 0.25s; border: none;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 24px rgba(245,130,32,0.35); }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,58,142,0.35); }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--orange); }
.btn-light:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border: 2px solid var(--white); padding: 14px 30px; }
.btn-outline-light:hover { background: var(--white); color: var(--orange); transform: translateY(-2px); }

/* ---------- SECTIONS ---------- */
.section { padding: 72px 32px; position: relative; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(245,130,32,0.12); color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(30px, 3.8vw, 48px); font-weight: 800;
  color: var(--navy); line-height: 1.15; margin-bottom: 16px;
  letter-spacing: -1px;
}
.section h2 span.accent { color: var(--orange); }
.section .sub {
  font-size: 18px; color: var(--grey-500);
  max-width: 680px; margin-bottom: 56px;
}
.section-header { text-align: center; }
.section-header .sub { margin-left: auto; margin-right: auto; }

/* ---------- PAGE-TOP HERO (sub-pages) ---------- */
.page-hero {
  padding: 110px 32px 56px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245,130,32,0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(31,58,142,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #FFF8F1 0%, #FFFFFF 100%);
}
.page-hero-inner { max-width: 1240px; margin: 0 auto; }
.crumb {
  font-size: 13px; color: var(--grey-500); margin-bottom: 16px;
}
.crumb a { color: var(--navy); font-weight: 500; }
.crumb a:hover { color: var(--orange); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.8);
  padding: 80px 32px 30px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; opacity: 0.7; margin-bottom: 18px; max-width: 320px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.socials a:hover { background: var(--orange); transform: translateY(-2px); }
.footer-col h5 {
  font-size: 14px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14px; opacity: 0.75;
  padding: 4px 0; transition: all 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--orange-light); transform: translateX(4px); }
.footer-bottom {
  max-width: 1240px; margin: 50px auto 0; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; opacity: 0.6;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, #FCE9C1 0%, #FCB971 35%, #F7A043 70%, #CA5D11 100%);
  color: var(--white); text-align: center;
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  margin: 0 32px 120px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
/* Soft sparkle dust + light streaks like the paperplane scene */
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 12% 28%, rgba(255,255,255,0.95), transparent 60%),
    radial-gradient(2px 2px at 22% 70%, rgba(255,255,255,0.8),  transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 80%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(2px 2px at 35% 35%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 48% 65%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(2px 2px at 65% 25%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 50%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(255,200,120,0.55) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,160,60,0.4) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--white); font-size: clamp(28px,3.5vw,42px);
  margin-bottom: 16px; position: relative;
  text-shadow: 0 2px 12px rgba(160, 70, 0, 0.25);
}
.cta-banner p { font-size: 18px; opacity: 0.98; color: var(--white); margin-bottom: 36px; position: relative;
  text-shadow: 0 1px 6px rgba(160, 70, 0, 0.2); }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- PRODUCT-PAGE COMMON ---------- */
.product-hero {
  padding: 110px 32px 56px;
  position: relative; overflow: hidden;
}
.product-hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
.product-hero-text h1 {
  font-size: clamp(36px, 5vw, 60px); font-weight: 800;
  line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 18px;
}
.product-hero-text .lead { font-size: 18px; margin-bottom: 28px; max-width: 540px; }
.product-hero-text .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.product-mock {
  position: relative; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.product-bottle {
  width: 280px; height: 460px;
  border-radius: 30px 30px 50px 50px / 30px 30px 80px 80px;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 38px 24px; color: var(--white);
  text-align: center;
}
.product-bottle::before {
  content: ''; position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px; border-radius: 8px;
  background: rgba(0,0,0,0.45); z-index: 2;
}
.product-bottle::after {
  content: ''; position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px; border-radius: 6px 6px 4px 4px;
  background: rgba(0,0,0,0.3);
}
.product-bottle .bn-tag {
  font-size: 11px; letter-spacing: 2px; opacity: 0.8;
  text-transform: uppercase; font-weight: 600; margin-top: 30px;
}
.product-bottle .bn-name {
  font-size: 36px; font-weight: 900; line-height: 1; margin: 12px 0;
  letter-spacing: -1px;
}
.product-bottle .bn-sub {
  font-size: 13px; opacity: 0.85; margin-bottom: 18px; line-height: 1.4;
}
.product-bottle .bn-feature {
  background: rgba(255,255,255,0.15); padding: 8px 14px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  margin: 6px; display: inline-block; backdrop-filter: blur(6px);
}
.product-bottle .bn-volume {
  margin-top: auto; font-size: 12px; opacity: 0.7;
  letter-spacing: 1px; padding-top: 10px;
}

/* ---------- INGREDIENTS GRID ---------- */
.ing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 30px;
}
.ing-card {
  background: var(--white); padding: 28px;
  border-radius: var(--radius-md); border: 1px solid var(--grey-200);
  transition: all 0.3s;
}
.ing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ing-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white); margin-bottom: 14px;
}
.ing-card h4 { font-size: 18px; color: var(--navy); margin-bottom: 6px; font-weight: 700; }
.ing-card .dose { font-size: 13px; color: var(--orange); font-weight: 700; margin-bottom: 10px; }
.ing-card p { font-size: 14px; color: var(--grey-500); }

/* ---------- BENEFITS LIST ---------- */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 30px;
}
.benefit-card {
  background: var(--white); padding: 32px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--grey-200);
  transition: all 0.3s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--white); margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}
.benefit-card h4 { font-size: 18px; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.benefit-card p { font-size: 14.5px; color: var(--grey-500); }

/* ---------- HOW-TO-USE STRIP ---------- */
.how-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 30px;
}
.how-step {
  background: var(--cream); padding: 28px 24px; border-radius: var(--radius-md);
  border: 1px solid var(--orange-soft); position: relative;
}
.how-step .num {
  position: absolute; top: -16px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; box-shadow: var(--shadow-sm);
}
.how-step h5 { font-size: 16px; color: var(--navy); margin: 14px 0 6px; font-weight: 700; }
.how-step p { font-size: 14px; color: var(--grey-500); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm); padding: 18px 22px;
  margin-bottom: 12px; transition: all 0.2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--orange-soft); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; color: var(--orange); font-size: 22px; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--grey-500); font-size: 15px; }

/* ---------- RELATED PRODUCTS ---------- */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 30px;
}
.related-card {
  border-radius: var(--radius-md); overflow: hidden; padding: 28px;
  color: var(--white); min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all 0.3s;
}
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.related-card .rt-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8; }
.related-card h4 { font-size: 24px; font-weight: 800; margin: 8px 0; }
.related-card .rt-arrow { font-size: 14px; font-weight: 600; }
.rc-vizion { background: linear-gradient(135deg, #1E3A8E, #2563EB); }
.rc-cell { background: linear-gradient(135deg, #6D28D9, #C026D3); }
.rc-reset { background: linear-gradient(135deg, #0F1F52, #6366F1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-mock { min-height: 380px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 24px 32px;
    box-shadow: var(--shadow-md); gap: 18px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .has-dropdown .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0; min-width: 0; }
  .section { padding: 52px 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .cta-banner { margin: 0 16px 80px; padding: 60px 24px; }
  .page-hero { padding: 100px 24px 40px; }
  .product-hero { padding: 100px 24px 40px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =================================================================
   IMAGE LIGHTBOX — click any zoomable image to view full-size
   ================================================================= */
.img-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 14, 38, 0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 24px;
}
.img-lightbox.open { opacity: 1; visibility: visible; }

.img-lb-frame {
  margin: 0; max-width: 92vw; max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  cursor: zoom-out;
}
.img-lb-image {
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  background: #fff;
  cursor: default;
  animation: lb-zoom-in 0.3s cubic-bezier(.2,.8,.2,1);
}
@keyframes lb-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.img-lb-caption {
  color: rgba(255,255,255,0.9);
  font-size: 14px; line-height: 1.5;
  text-align: center; max-width: 720px;
  padding: 0 16px;
}

.img-lb-close,
.img-lb-prev,
.img-lb-next {
  position: absolute; z-index: 1;
  background: rgba(255,255,255,0.12);
  color: #fff; border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.img-lb-close {
  top: 22px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 28px; font-weight: 300; line-height: 1;
}
.img-lb-prev,
.img-lb-next {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 36px; font-weight: 300; line-height: 1;
}
.img-lb-prev { left: 22px; }
.img-lb-next { right: 22px; }

.img-lb-close:hover,
.img-lb-prev:hover,
.img-lb-next:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.05);
}
.img-lb-close:hover { transform: rotate(90deg) scale(1.05); }

@media (max-width: 600px) {
  .img-lb-prev, .img-lb-next {
    width: 44px; height: 44px; font-size: 28px;
  }
  .img-lb-prev { left: 8px; }
  .img-lb-next { right: 8px; }
  .img-lb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 24px; }
  .img-lb-image { max-height: 70vh; }
}

/* =================================================================
   SOCIAL ICON SVGS — sized inside circular footer + contact card chips
   ================================================================= */
.socials a {
  color: #fff;
  text-decoration: none;
}
.socials a svg {
  width: 18px; height: 18px;
  display: block;
}
.info-row .ico svg {
  width: 20px; height: 20px;
  display: block;
}
