/* ============================================================
   曦研生化 Solis Bio-Research — 品牌視覺系統
   色票：#FFFFFF / #F5F7FA / #D4AF37 / #2F4F4F
   ============================================================ */

:root {
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --gold: #D4AF37;
  --gold-light: #e8c84a;
  --gold-dark: #b8941f;
  --graphite-green: #2F4F4F;
  --graphite-green-light: #3d6363;
  --graphite-green-dark: #1e3333;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --border-light: rgba(212, 175, 55, 0.2);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Reset & Typography ── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif TC', 'Noto Sans TC', Georgia, serif;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif TC', Georgia, serif;
  letter-spacing: 0.04em;
}

.font-sans { font-family: 'Noto Sans TC', sans-serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Utility Classes ── */
.text-gold { color: var(--gold) !important; }
.text-graphite { color: var(--graphite-green) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-graphite { background-color: var(--graphite-green) !important; }
.bg-light-gray { background-color: var(--light-gray) !important; }
.border-gold { border-color: var(--gold) !important; }

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1rem auto 2rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
}

/* ── Buttons ── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-graphite {
  background: var(--graphite-green);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-graphite:hover {
  background: var(--graphite-green-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  padding: 1rem 0;
}

#mainNav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-brand .brand-en {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--graphite-green);
  text-transform: uppercase;
}

.navbar-brand .brand-zh {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-top: -2px;
}

.navbar-brand .brand-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  margin: 0 6px;
  vertical-align: middle;
}

.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite-green) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after { width: 60%; }
.nav-link:hover { color: var(--gold) !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--graphite-green-dark) 0%, var(--graphite-green) 50%, #1a2e2e 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('../images/hero-lab.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Noto Sans TC', sans-serif;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 520px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.hero-stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-item .stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  margin-top: 4px;
  font-family: 'Noto Sans TC', sans-serif;
}

.hero-cta-group { margin-top: 2.5rem; gap: 1rem; display: flex; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Hero visual card */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card-float {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card-float::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 60%);
  animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.molecule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.cryo-temp {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.cryo-temp sup {
  font-size: 1rem;
  color: var(--gold);
  vertical-align: super;
}

.tech-bar {
  margin-top: 1.5rem;
}

.tech-bar-item {
  margin-bottom: 1rem;
}

.tech-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
  font-family: 'Noto Sans TC', sans-serif;
}

.tech-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--graphite-green);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  font-family: 'Noto Sans TC', sans-serif;
}

/* ============================================================
   SKIN QUIZ SECTION
   ============================================================ */
#skin-quiz {
  background: var(--graphite-green);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#skin-quiz::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
}

#skin-quiz::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
}

#skin-quiz .section-title { color: var(--white); }
#skin-quiz .section-label { color: var(--gold); }

.quiz-container {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.quiz-progress-wrap {
  margin-bottom: 2.5rem;
}

.quiz-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
  font-family: 'Noto Sans TC', sans-serif;
  letter-spacing: 0.1em;
}

.quiz-progress .progress {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.quiz-progress .progress-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-step-number {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans TC', sans-serif;
}

.quiz-question {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quiz-option {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-family: 'Noto Sans TC', sans-serif;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-option:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.quiz-option.selected {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
  color: var(--white);
}

.quiz-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Quiz Result */
.quiz-result {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.quiz-result-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.quiz-result-title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.prescription-card {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}

.prescription-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  color: rgba(255,255,255,0.85);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
}

.prescription-item:last-child { border-bottom: none; }

.prescription-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Scanning animation */
.scan-overlay {
  display: none;
  text-align: center;
  padding: 3rem 0;
}

.scan-ring {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(212,175,55,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
  position: relative;
}

.scan-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,175,55,0.15);
  border-top-color: rgba(212,175,55,0.5);
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scan-text {
  color: rgba(255,255,255,0.7);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.scan-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ============================================================
   TRANSPARENCY LAB SECTION
   ============================================================ */
#transparency-lab {
  padding: 6rem 0;
  background: var(--white);
}

/* CRYO-Fix Chart */
.cryo-chart-wrap {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 2.5rem;
}

.cryo-chart-title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: 'Noto Sans TC', sans-serif;
}

.comparison-bar-group { margin-bottom: 1.5rem; }

.comparison-label {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
}

.comparison-track {
  height: 36px;
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.comparison-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: 'Noto Sans TC', sans-serif;
}

.comparison-fill.traditional {
  background: linear-gradient(90deg, #9ca3af, #d1d5db);
  color: var(--text-dark);
}

.comparison-fill.cryo {
  background: linear-gradient(90deg, var(--graphite-green), var(--graphite-green-light));
}

.comparison-fill.cryo-gold {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

/* Tech badge */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--graphite-green);
  color: var(--white);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 1rem;
}

/* Ingredient Filter */
.ingredient-filter-wrap {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 3rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tag {
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Noto Sans TC', sans-serif;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.ingredient-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.ingredient-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.ingredient-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.ingredient-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--graphite-green);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.ingredient-name-en {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Noto Sans TC', sans-serif;
}

.ingredient-tags-small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.ingredient-tag-small {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: var(--light-gray);
  color: var(--text-muted);
  font-family: 'Noto Sans TC', sans-serif;
}

/* ============================================================
   CLINICAL EVIDENCE SECTION
   ============================================================ */
#clinical-evidence {
  padding: 6rem 0;
  background: var(--light-gray);
}

.case-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.case-header {
  background: var(--graphite-green);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212,175,55,0.2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.case-meta .case-name {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}

.case-meta .case-profile {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Noto Sans TC', sans-serif;
}

.case-body { padding: 2rem; }

.case-complaint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-stat {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.case-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.case-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-family: 'Noto Sans TC', sans-serif;
}

/* B&A Slider */
.ba-slider-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #000;
}

.ba-slider-wrap img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ba-after-img {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  overflow: hidden;
}

.ba-after-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: left center;
}

.ba-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 3;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  cursor: ew-resize;
}

.ba-handle svg {
  width: 18px;
  height: 18px;
  fill: var(--graphite-green);
}

.ba-label {
  position: absolute;
  bottom: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 600;
}

.ba-label-before {
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
}

.ba-label-after {
  left: 10px;
  background: rgba(212,175,55,0.8);
  color: var(--white);
}

.ba-range-input {
  width: 100%;
  margin-top: 0.75rem;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 50%, rgba(0,0,0,0.1) 50%);
  border-radius: 2px;
  outline: none;
}

.ba-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
#products {
  padding: 6rem 0;
  background: var(--white);
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-color: var(--border-light);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
  height: 280px;
  cursor: pointer;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--graphite-green);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-family: 'Noto Sans TC', sans-serif;
}

.product-quick-view {
  position: absolute;
  bottom: -50px;
  left: 0; right: 0;
  background: rgba(47,79,79,0.9);
  color: var(--white);
  text-align: center;
  padding: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: bottom 0.3s ease;
  font-family: 'Noto Sans TC', sans-serif;
}

.product-card:hover .product-quick-view { bottom: 0; }

.product-body { padding: 1.5rem; }

.product-series {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--graphite-green);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.product-name-en {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 0.75rem;
}

.product-feature {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 1rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--graphite-green);
}

.product-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.2rem;
}

.btn-add-cart {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--graphite-green);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-add-cart:hover {
  background: var(--gold);
  transform: scale(1.1);
}

/* ============================================================
   OFFCANVAS QUICK VIEW
   ============================================================ */
#quickViewOffcanvas {
  width: 420px !important;
  background: var(--white);
}

.offcanvas-header {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
}

.offcanvas-body { padding: 0; }

.qv-img-wrap {
  background: var(--light-gray);
  height: 300px;
  overflow: hidden;
}

.qv-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-content { padding: 2rem; }

.qv-series {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 0.4rem;
}

.qv-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--graphite-green);
  margin-bottom: 0.3rem;
}

.qv-name-en {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 1rem;
}

.qv-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--graphite-green);
  margin-bottom: 1.5rem;
}

.qv-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.2rem;
}

.qv-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-family: 'Noto Sans TC', sans-serif;
  margin-bottom: 1.5rem;
}

.qv-features {
  margin-bottom: 2rem;
}

.qv-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.82rem;
  color: var(--text-dark);
  font-family: 'Noto Sans TC', sans-serif;
}

.qv-feature-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ============================================================
   INGREDIENT MODAL
   ============================================================ */
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  background: var(--graphite-green);
  border: none;
  padding: 1.5rem 2rem;
}

.modal-title { color: var(--white); }

.modal-body { padding: 2rem; }

.ingredient-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.clinical-data-bar {
  margin-bottom: 1.5rem;
}

.clinical-data-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-family: 'Noto Sans TC', sans-serif;
}

.clinical-data-track {
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.clinical-data-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--graphite-green), var(--gold));
  border-radius: 4px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--graphite-green-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-brand .brand-en {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2em;
}

.footer-brand .brand-zh {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  display: block;
  margin-top: 2px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Noto Sans TC', sans-serif;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-family: 'Noto Sans TC', sans-serif;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Noto Sans TC', sans-serif;
}

.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Noto Sans TC', sans-serif;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}

.social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ============================================================
   ANIMATIONS & SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .quiz-options { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-title { font-size: 2.2rem; }
  .quiz-container { padding: 2rem 1.5rem; }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  #quickViewOffcanvas { width: 100% !important; }
  .case-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .ingredient-grid { grid-template-columns: 1fr 1fr; }
}
