/* ===== Design Tokens ===== */
:root {
  --color-primary: #2ea3f2;
  --color-primary-dark: #1a8cd8;
  --color-primary-light: #e8f4fd;
  --color-heading: #333333;
  --color-body: #666666;
  --color-light-bg: #f7f7f7;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-footer: #2d2d2d;
  --font-primary: 'Open Sans', 'Noto Sans TC', sans-serif;
  --font-heading: 'Nunito', 'Noto Sans TC', sans-serif;
  --max-width: 1200px;
  --header-height: 75px;
  --transition: all 0.3s ease;
  --shadow: 0 2px 15px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:target { scroll-margin-top: calc(var(--header-height) + 20px); }
section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
body {
  font-family: var(--font-primary);
  color: var(--color-body);
  line-height: 1.7;
  font-size: 16px;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--color-body);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46,163,242,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-white);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { color: var(--color-primary); }
.header-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(55%) sepia(80%) saturate(500%) hue-rotate(175deg) brightness(95%) contrast(95%);
  transition: var(--transition);
}
/* Brand font for all visible "iHealth" text */
.brand-ihealth {
  font-family: Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  transform: scaleX(0.82);
  display: inline-block;
}
/* Banner inline logo (white, used on blue hero backgrounds) */
.banner-logo {
  height: 50px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-heading);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #2ea3f2 0%, #56b4f4 50%, #7ec8f8 100%);
  color: var(--color-white);
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.02);
  border-radius: 50%;
}
.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
.hero .btn { position: relative; z-index: 1; }

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #2ea3f2 0%, #56b4f4 50%, #7ec8f8 100%);
  color: var(--color-white);
  text-align: center;
  padding: 60px 20px;
}
.page-hero h1 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.page-hero p {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* ===== Content Sections ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--color-light-bg);
}
.section-blue {
  background: linear-gradient(135deg, #2ea3f2, #56b4f4);
  color: var(--color-white);
}
.section-blue h2,
.section-blue h3,
.section-blue h4 {
  color: var(--color-white);
}
.section-blue .section-title h2::after {
  background: var(--color-white);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col-text h2 {
  margin-bottom: 1rem;
}
.two-col-text h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.card-grid-small {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Number marker */
.number-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Feature list */
.feature-list {
  margin: 1.5rem 0;
}
.feature-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Highlight box */
.highlight-box {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; }

/* Warning box */
.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 {
  margin-bottom: 1rem;
}
.cta-banner p {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Certification Cards ===== */
.cert-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.cert-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.cert-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}
.cert-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--color-heading);
}
.cert-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.cert-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ===== Contact Page ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}
.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-heading);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46,163,242,0.1);
}
.form-group textarea {
  height: 150px;
  resize: vertical;
}
.form-group .error-msg {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e74c3c;
}
.form-group.has-error .error-msg {
  display: block;
}
.form-success {
  display: none;
  background: #e8f5ec;
  color: #155724;
  padding: 32px 28px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  border: 1px solid #b9dec3;
  box-shadow: 0 4px 18px rgba(21,87,36,0.08);
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #1e8449;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.form-success h3 {
  color: #0b4e2d;
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
}
.form-success p {
  color: #155724;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.7rem;
  font-weight: 400;
}
.form-success p:last-of-type { margin-bottom: 1.4rem; }
.form-success-cta {
  display: inline-block;
  margin-top: 0.4rem;
}

/* === New form features (intro card, dropdowns, file upload, recaptcha, real-time errors) === */
.form-intro-card {
  background: #fff8e1;
  border: 1px solid #ffd47a;
  border-left: 6px solid #f5a300;
  border-radius: 10px;
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.8rem;
}
.form-intro-card h3 {
  color: #8a5a00;
  font-size: 1.25rem;
  margin: 0 0 0.7rem;
  font-weight: 700;
}
.form-intro-card p {
  color: #5a4200;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.6rem;
}
.form-intro-card .form-intro-cta {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 10px 24px;
  font-weight: 700;
  letter-spacing: 1px;
}
/* "右邊 / 下方 QR code" wording flips with the layout */
.qr-direction-desktop { display: inline; }
.qr-direction-mobile  { display: none; }
@media (max-width: 900px) {
  .qr-direction-desktop { display: none; }
  .qr-direction-mobile  { display: inline; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group .req { color: #e74c3c; }
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-heading);
  background: #fff;
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46,163,242,0.1);
}
.form-group.has-error select { border-color: #e74c3c; }

.form-group input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  background: #fafbfc;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-heading);
  cursor: pointer;
}
.form-group input[type="file"]:focus {
  outline: none;
  border-color: var(--color-primary);
  border-style: solid;
}
.form-group input[type="file"]::-webkit-file-upload-button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin-right: 12px;
  border-radius: 4px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
}
.form-group input[type="file"]::file-selector-button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin-right: 12px;
  border-radius: 4px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
}
.form-group.has-error input[type="file"] { border-color: #e74c3c; border-style: solid; }

.form-group .field-hint {
  font-size: 0.82rem;
  color: #666;
  margin-top: 5px;
  line-height: 1.5;
}
.form-group .field-hint code {
  background: #f0f3f7;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}
.form-group .field-hint a {
  color: var(--color-primary);
  text-decoration: underline;
}

.recaptcha-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.recaptcha-wrapper .g-recaptcha { transform-origin: left top; }
@media (max-width: 360px) {
  .recaptcha-wrapper .g-recaptcha { transform: scale(0.85); }
}

.contact-info {
  background: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.contact-info h3 {
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 45px;
  height: 45px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-item-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-item-text p {
  font-size: 0.95rem;
  margin: 0;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}
.social-link {
  width: 42px;
  height: 42px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== Company Intro (certifications page) ===== */
.company-section-logo {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto 1rem;
}
.company-intro {
  gap: 50px;
  align-items: center;
}
.company-hq-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}
.company-info-list {
  margin-top: 1.5rem;
  border-top: 2px solid var(--color-primary-light);
  padding-top: 1rem;
}
.company-info-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  align-items: start;
}
.company-info-item:last-child { border-bottom: none; }
.company-info-label {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}
.company-info-value {
  color: var(--color-heading);
  line-height: 1.6;
}

/* ===== Order tutorial: requirement cards ===== */
.card-requirement {
  position: relative;
  text-align: left;
  padding-top: 40px;
}
.req-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(46,163,242,0.3);
}
.card-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.card-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card-badge-visa {
  background: #1a1f71;
  color: #ffc72c;
}
.card-badge-mastercard {
  background: #fff;
  color: #eb001b;
  border: 1px solid #eee;
  position: relative;
  padding-left: 32px;
}
.card-badge-mastercard::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 50%, #eb001b 55%, transparent 56%),
              radial-gradient(circle at 70% 50%, #f79e1b 55%, transparent 56%);
}
.card-badge-disabled {
  background: #f2f3f5;
  color: #9a9fa8;
  text-decoration: line-through;
  border: 1px dashed #cfd3da;
}

/* ===== Order tutorial: step blocks ===== */
.tutorial-block { margin-bottom: 3rem; }
.tutorial-block:last-child { margin-bottom: 0; }
.tutorial-heading {
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-primary-light);
  font-size: 1.35rem;
}
.tutorial-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.tutorial-step {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.tutorial-step:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.tutorial-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center top;
  background: #f7f7f7;
  display: block;
  border-bottom: 1px solid var(--color-border);
}
.tutorial-step-body { padding: 20px 24px 22px; }
.tutorial-step-body h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-heading);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  margin-right: 10px;
}
.tutorial-step-body p { margin: 0; line-height: 1.75; font-size: 0.95rem; }

/* ===== FAQ accordion ===== */
.faq-list {
  max-width: 860px;
  margin: 0 auto 2.5rem;
}
.faq-nav {
  max-width: 860px;
  margin: 0 auto 2.2rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.faq-nav-link {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-white);
  border: 1px solid rgba(46,163,242,0.25);
  border-radius: 999px;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.faq-nav-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46,163,242,0.2);
}
.faq-group-heading {
  max-width: 860px;
  margin: 2.5rem auto 1rem;
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  padding: 10px 0 10px 16px;
  border-left: 5px solid var(--color-primary);
  background: linear-gradient(90deg, var(--color-primary-light), transparent);
  border-radius: 0 6px 6px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.faq-group-heading:first-of-type { margin-top: 0; }
.faq-item ul {
  margin: 0 22px 20px 40px;
  list-style: disc;
  color: var(--color-body);
}
.faq-item ul li {
  padding: 3px 0;
  line-height: 1.8;
  font-size: 0.94rem;
}
/* iHealth NMN positive conclusion callout inside Q30-Q39 */
.faq-ihealth-pointer {
  margin: 0.8rem 22px 20px !important;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f4faff, var(--color-primary-light));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  color: var(--color-heading);
  font-size: 0.94rem;
  line-height: 1.8;
}
.faq-ihealth-pointer strong { color: var(--color-primary-dark); }
.faq-ihealth-pointer a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.faq-item {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(46,163,242,0.12);
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-hover); }
.faq-item summary {
  padding: 18px 54px 18px 22px;
  font-weight: 700;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--color-primary-light); }
.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--color-body);
  line-height: 1.85;
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .tutorial-steps { grid-template-columns: 1fr; }
  .tutorial-image { height: 220px; }
  .faq-item summary { padding: 16px 48px 16px 18px; font-size: 0.95rem; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 18px 18px; }
}

/* ===== Brand Quality Tagline (yellow) ===== */
.brand-quality-note {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3c4 100%);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 193, 7, 0.25);
  border-bottom: 1px solid rgba(255, 193, 7, 0.25);
}
.quality-tagline {
  color: #b8860b;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.quality-tagline strong { color: #8a6400; }
.quality-tagline .brand-ihealth { color: #b8860b; }

/* ===== How to Choose NMN (what-is-nmn page) ===== */
.how-to-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.choose-card {
  position: relative;
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px 26px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--color-primary);
}
.choose-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.choose-num {
  position: absolute;
  top: -14px;
  left: 22px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(46,163,242,0.3);
}
.choose-card h3 {
  color: var(--color-heading);
  font-size: 1.15rem;
  margin: 0.5rem 0 0.8rem;
}
.choose-card p {
  color: var(--color-body);
  line-height: 1.75;
  font-size: 0.94rem;
  margin: 0;
}

/* ===== BBB Standards Block ===== */
.bbb-standards {
  margin-top: 4rem;
  padding: 48px 40px;
  background: linear-gradient(135deg, #f8fbff, var(--color-primary-light));
  border-radius: 16px;
  border: 1px solid rgba(46,163,242,0.15);
}
.bbb-standards-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.bbb-standards-header h3 {
  color: var(--color-primary-dark);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.bbb-standards-header p {
  color: var(--color-body);
  font-size: 0.98rem;
  margin: 0;
}
.bbb-standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.bbb-standard-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--color-primary);
}
.bbb-standard-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.bbb-standard-number {
  position: absolute;
  top: -18px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(46,163,242,0.3);
}
.bbb-standard-card h4 {
  color: var(--color-heading);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  padding-right: 40px;
}
.bbb-standard-card p {
  color: var(--color-body);
  line-height: 1.75;
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 767px) {
  .bbb-standards { padding: 32px 20px; }
  .bbb-standards-grid { grid-template-columns: 1fr; }
}

/* ===== Site Notice Banner ===== */
.site-notice {
  background: #f2f3f5;
  border-bottom: 1px solid #e4e6ea;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.78rem;
  color: #8a8f99;
  line-height: 1.5;
  letter-spacing: 0.2px;
}
.site-notice .brand-ihealth { opacity: 0.85; }

/* ===== Placeholder Page ===== */
.placeholder-content {
  text-align: center;
  padding: 60px 20px;
}
.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.placeholder-content h2 {
  margin-bottom: 1rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.footer-col h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 8px;
  border-radius: 2px;
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  display: inline-block;
  padding: 2px 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Nav dropdown (什麼是NMN) ===== */
.main-nav li.has-dropdown {
  position: relative;
}
.main-nav li.has-dropdown > a::before {
  content: '▾';
  display: inline-block;
  font-size: 0.7rem;
  margin-left: 4px;
  vertical-align: 1px;
  color: var(--color-primary);
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.main-nav li.has-dropdown:hover > a::before,
.main-nav li.has-dropdown.open > a::before {
  transform: rotate(-180deg);
}
.main-nav .dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 1001;
}
.main-nav li.has-dropdown:hover > .dropdown-menu,
.main-nav li.has-dropdown:focus-within > .dropdown-menu,
.main-nav li.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.main-nav .dropdown-menu li {
  margin: 0;
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.main-nav .dropdown-menu li:first-child { border-top: none; }
.main-nav .dropdown-menu a {
  display: block;
  width: 100%;
  padding: 12px 22px;
  color: var(--color-heading);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.main-nav .dropdown-menu a::after { display: none; }
.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a:focus {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* ===== Article card link (what-is-nmn deep-read section) ===== */
.article-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.article-card-link .card-scenario-image {
  margin: -30px -30px 1rem;
  width: auto;
  height: 180px;
  border-radius: 8px 8px 0 0;
}
.article-card-link .article-card-title {
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.article-card-link p {
  flex: 1;
  color: var(--color-body);
}
.article-card-link .article-card-cta {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}
.article-card-link:hover .article-card-title { color: var(--color-primary); }
.article-card-link:hover .article-card-cta { transform: translateX(4px); }

/* ===== Hero Split Layout (homepage) ===== */
.hero.hero-split {
  padding: 70px 20px 80px;
  text-align: left;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-split-text h1 {
  text-align: left;
  font-size: 2.8rem;
  line-height: 1.25;
}
.hero-split-text p { text-align: left; margin: 0 0 1.2rem; }
.hero-split-text .cta-buttons { justify-content: flex-start; }
.hero-split-text .hero-tagline {
  display: inline-block;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 1.2rem;
  backdrop-filter: blur(4px);
}
.hero-split-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-split-image::before {
  content: '';
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.35), rgba(255,255,255,0) 62%);
  z-index: 0;
  pointer-events: none;
}
.hero-product-image {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  background: #fff;
}

/* ===== Enhanced CTA Section (您的擔心，我們都懂) ===== */
.section-cta-enhanced {
  position: relative;
  background: linear-gradient(135deg, #1a6dc0 0%, #2ea3f2 45%, #56b4f4 100%);
  color: var(--color-white);
  padding: 90px 0 100px;
  overflow: hidden;
}
.section-cta-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.12), transparent 45%);
  pointer-events: none;
}
.section-cta-enhanced .container { position: relative; z-index: 1; }
.section-cta-enhanced h2 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.section-cta-enhanced .section-title h2::after {
  background: #ffd94a;
  width: 80px;
  height: 4px;
}
.section-cta-enhanced .eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffd94a;
  margin-bottom: 0.8rem;
}
/* Plain 3-line title (no yellow underline, centered stack) */
.section-cta-enhanced .section-title-plain h2 {
  display: block;
}
.section-cta-enhanced .section-title-plain h2::after {
  display: none;
}
.section-cta-enhanced .cta-subtitle-yellow {
  color: #ffd94a;
  font-weight: 700;
}
.section-cta-enhanced .cta-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}
.cta-decoration-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 100% 0, 50% 100%, 0 0);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 3rem 0 2.5rem;
}
.cta-highlight-card {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 32px 30px 28px;
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.95);
  transition: var(--transition);
}
.cta-highlight-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-3px);
}
.cta-highlight-card p {
  line-height: 1.85;
  margin-bottom: 0.9rem;
  color: rgba(255,255,255,0.92);
}
.cta-icon-badge {
  display: inline-block;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.cta-icon-badge-accent {
  background: #ffd94a;
  color: #9a6a00;
}
.cta-lead {
  font-size: 1.35rem !important;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 1rem !important;
}
.cta-strong {
  color: #ffd94a;
  background: rgba(255,217,74,0.12);
  padding: 1px 6px;
  border-radius: 4px;
}
.cta-inline-link {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 8px 16px;
  background: rgba(255,217,74,0.15);
  border: 1px solid rgba(255,217,74,0.5);
  border-radius: 6px;
  color: #ffd94a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.cta-inline-link:hover {
  background: #ffd94a;
  color: #9a6a00;
  transform: translateY(-2px);
}
.cta-pullquote {
  position: relative;
  max-width: 720px;
  margin: 2rem auto 2.5rem;
  padding: 28px 40px;
  text-align: center;
  background: rgba(255,255,255,0.08);
  border-top: 2px solid rgba(255,217,74,0.6);
  border-bottom: 2px solid rgba(255,217,74,0.6);
}
.cta-pullquote p {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.5;
}
.cta-pullquote .quote-mark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #ffd94a;
  opacity: 0.8;
}
.cta-pullquote .quote-mark:not(.quote-mark-close) {
  top: 4px;
  left: 12px;
}
.cta-pullquote .quote-mark-close {
  bottom: -10px;
  right: 12px;
}
.cta-buttons-lg { margin-top: 1rem; }
.btn.btn-lg {
  padding: 14px 36px;
  font-size: 1.02rem;
}

/* ===== Hero background image overlay ===== */
.hero.hero-with-bg,
.page-hero.page-hero-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.hero-with-bg::before,
.page-hero.page-hero-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,163,242,0.82), rgba(86,180,244,0.78) 50%, rgba(126,200,248,0.82));
  z-index: 0;
}
.hero.hero-with-bg > *,
.page-hero.page-hero-with-bg > * {
  position: relative;
  z-index: 1;
}

/* ===== Floating back-to-top button ===== */
.floating-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46,163,242,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 900;
}
.floating-nav:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.floating-nav.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== Breadcrumb (subpages) ===== */
.breadcrumb {
  background: var(--color-primary-light);
  border-bottom: 1px solid rgba(46,163,242,0.15);
  padding: 12px 0;
  font-size: 0.92rem;
}
.breadcrumb .container {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep {
  color: #999;
  margin: 0 4px;
}
.breadcrumb .current {
  color: var(--color-heading);
  font-weight: 600;
}

/* ===== Back-nav dual button group (subpages) ===== */
.back-nav-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.back-nav-group .btn {
  min-width: 160px;
}

/* ===== Profile card (scientist portrait + name plate) ===== */
.profile-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.profile-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.profile-photo-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-primary-light);
}
.profile-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.profile-body {
  padding: 24px 28px;
  text-align: center;
}
.profile-body h3 {
  color: var(--color-primary);
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}
.profile-body .profile-title {
  color: var(--color-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.profile-body .profile-quote {
  font-style: italic;
  color: var(--color-heading);
  line-height: 1.6;
  font-size: 1rem;
}

/* ===== Lifestyle / scenario images in content ===== */
.lifestyle-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
}
.lifestyle-image.portrait {
  aspect-ratio: 4 / 5;
  object-position: center 20%;
}

/* Small scenario image for cards */
.card-scenario-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

/* ===== EZWAY numbered gallery (badge 1-N at top-left of each figure) ===== */
.numbered-gallery figure {
  position: relative;
}
.numbered-gallery figure::before {
  content: attr(data-num);
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
}

/* ===== Zoomable image + lightbox ===== */
img.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
img.zoomable:hover,
img.zoomable:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  outline: none;
}
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 40px;
  animation: img-lightbox-fade 0.18s ease-out;
}
.img-lightbox[hidden] { display: none; }
@keyframes img-lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.img-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}
.img-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.img-lightbox-close:hover,
.img-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
  outline: none;
}
@media (max-width: 600px) {
  .img-lightbox { padding: 20px; }
  .img-lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
}

/* ===== Elder portraits (男女男) — 5x3 grid crop ===== */
.elder-portraits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}
.elder-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: url('../images/豐富的在地實例支持.png');
  background-size: 500% 300%;
  background-repeat: no-repeat;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.elder-portrait-male-1   { background-position: 25% 100%; }
.elder-portrait-female   { background-position: 100% 0%; }
.elder-portrait-male-2   { background-position: 100% 50%; }

/* ===== Article (subpages) ===== */
.article-content {
  max-width: 820px;
  margin: 0 auto;
}
.article-content h2 {
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
}
.article-content h3 {
  color: var(--color-heading);
  margin: 1.5rem 0 0.8rem;
  font-size: 1.2rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}
.article-content h4 {
  color: var(--color-primary-dark);
  margin: 1.2rem 0 0.5rem;
  font-size: 1.05rem;
}
.article-content p {
  line-height: 1.85;
  margin-bottom: 1rem;
}
.article-content ul {
  margin: 1rem 0 1.2rem 1.5rem;
  list-style: disc;
}
.article-content ul li {
  padding: 4px 0;
  line-height: 1.7;
}
.article-content .study-card {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 1.2rem 0;
}
.article-content .study-card h3 {
  border: none;
  padding: 0;
  color: var(--color-primary-dark);
  margin-top: 0;
}
.back-button-wrapper {
  text-align: center;
  padding: 40px 20px 60px;
}
.back-button-wrapper .btn {
  padding: 12px 40px;
}

/* Clickable image card on homepage */
.discovery-image-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.discovery-image-link:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.discovery-image-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* Image-based cards (replace emoji icons) */
.card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}
.card-image-small {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

/* NMN intro image */
.nmn-intro-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
}

/* ===== Tutorial flow overview ===== */
.flow-overview {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  margin: 0 auto 2.5rem;
  padding: 20px;
  background: linear-gradient(135deg, #f8fbff, var(--color-primary-light));
  border-radius: 14px;
  border: 1px solid rgba(46,163,242,0.18);
  flex-wrap: wrap;
}
.flow-overview-item {
  flex: 1 1 180px;
  min-width: 150px;
  background: var(--color-white);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(46,163,242,0.1);
  border-top: 3px solid var(--color-primary);
}
.flow-overview-item-common {
  border-top-color: #ffb300;
}
.flow-num {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.flow-overview-item-common .flow-num { background: #ffb300; color: #4a3500; }
.flow-label {
  font-weight: 700;
  color: var(--color-heading);
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.flow-note {
  font-size: 0.78rem;
  color: var(--color-body);
  opacity: 0.8;
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 800;
}
@media (max-width: 767px) {
  .flow-overview { flex-direction: column; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }
}

/* ===== Device tabs (mobile / desktop switcher) ===== */
.device-tabs {
  display: flex;
  gap: 8px;
  background: var(--color-white);
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin: 0 auto 1.5rem;
  max-width: 460px;
  border: 1px solid rgba(46,163,242,0.15);
}
.device-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-body);
  transition: var(--transition);
}
.device-tab:hover { color: var(--color-primary-dark); }
.device-tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 10px rgba(46,163,242,0.3);
}
.device-panel { display: none; }
.device-panel.active { display: block; }

/* ===== LINE QR code block ===== */
.line-qr {
  margin-top: 1.2rem;
  background: var(--color-primary-light);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}
.line-qr img {
  width: 160px;
  height: 160px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow);
  object-fit: contain;
}
.line-qr p {
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.5;
}
.line-qr a {
  color: var(--color-primary-dark);
  font-weight: 700;
}
.footer-qr {
  background: rgba(255,255,255,0.08);
  padding: 14px;
  border-radius: 10px;
  margin-top: 1rem;
  text-align: center;
}
.footer-qr img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 8px;
  background: #fff;
  padding: 5px;
  border-radius: 6px;
  object-fit: contain;
}
.footer-qr p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ===== Enlarged tutorial image (for 填寫申請人個人資料) ===== */
.tutorial-step.tutorial-step-wide {
  grid-column: 1 / -1;
}
.tutorial-step.tutorial-step-wide .tutorial-image {
  height: auto;
  max-height: 720px;
  min-height: 420px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

/* ===== EZWAY steps ===== */
.ezway-stepper {
  max-width: 920px;
  margin: 0 auto;
}
.ezway-step {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 22px;
  position: relative;
  border-left: 4px solid var(--color-primary);
  transition: var(--transition);
}
.ezway-step:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.ezway-step.reverse {
  grid-template-columns: 1fr 300px;
}
.ezway-step.reverse .ezway-step-media { order: 2; }
.ezway-step-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ezway-step-media img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  background: #fff;
}
.ezway-step-media.multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ezway-step-media.multi img { max-width: 100%; }

/* Full-width step: text on top, image gallery below */
.ezway-step.full {
  grid-template-columns: 1fr;
  gap: 18px;
}
.ezway-step.full .ezway-step-media,
.ezway-step.full .ezway-step-body {
  order: initial;
}
.ezway-step.full .ezway-step-body { order: 1; }
.ezway-step.full .ezway-step-media { order: 2; }
.ezway-step-gallery {
  display: grid;
  gap: 12px;
  width: 100%;
}
.ezway-step-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin: 0 auto; }
.ezway-step-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ezway-step-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.ezway-step-gallery figure { margin: 0; text-align: center; }
.ezway-step-gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
  display: block;
}
.ezway-step-gallery figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--color-body);
  line-height: 1.5;
}

/* Step 1 download badge labels */
.ezway-download-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}
.ezway-download-pair figure { margin: 0; text-align: center; }
.ezway-download-pair img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ezway-download-pair figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}
.ezway-step-body h3 {
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ezway-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(46,163,242,0.3);
}
.ezway-step-body p {
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.ezway-step-body p:last-child { margin-bottom: 0; }
.ezway-step-body ul {
  margin: 0.4rem 0 0.8rem 1.2rem;
  list-style: disc;
}
.ezway-step-body ul li {
  padding: 3px 0;
  line-height: 1.7;
  font-size: 0.94rem;
}

/* EZWAY method cards (authentication options) */
.ezway-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 1.2rem 0;
}
.ezway-method {
  background: var(--color-white);
  border: 2px solid var(--color-primary-light);
  border-radius: 12px;
  padding: 20px 22px;
  transition: var(--transition);
}
.ezway-method.recommended {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, #f8fbff, var(--color-primary-light));
}
.ezway-method h4 {
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ezway-method .ezway-method-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.ezway-method p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.ezway-method p:last-child { margin: 0; }

/* EZWAY important notes */
.ezway-notes {
  background: #fff8e1;
  border-left: 5px solid #ffb300;
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin-top: 2.5rem;
}
.ezway-notes h3 {
  color: #b8860b;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.ezway-notes ol {
  margin: 0 0 0 1.2rem;
  padding: 0;
}
.ezway-notes ol li {
  padding: 8px 0;
  line-height: 1.8;
  color: #5b4600;
  font-size: 0.95rem;
}
.ezway-notes ol li strong { color: #8a6400; }

@media (max-width: 767px) {
  .ezway-step,
  .ezway-step.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }
  .ezway-step.reverse .ezway-step-media { order: 0; }
  .ezway-step-media img { max-width: 220px; }
  .ezway-methods { grid-template-columns: 1fr; gap: 16px; }
  .ezway-step-gallery.cols-4,
  .ezway-step-gallery.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .tutorial-step.tutorial-step-wide .tutorial-image {
    max-height: 560px;
    min-height: 280px;
  }
}

/* ===== Disclaimer ===== */
.disclaimer {
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  margin-top: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { padding: 80px 20px; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }
  .two-col { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { gap: 30px; }
}

@media (max-width: 980px) {
  .hero.hero-split { padding: 60px 20px; text-align: center; }
  .hero-split-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-split-text h1 { text-align: center; font-size: 2.3rem; }
  .hero-split-text p { text-align: center; }
  .hero-split-text .cta-buttons { justify-content: center; }
  .hero-product-image { max-width: 320px; }
  .section-cta-enhanced { padding: 70px 0 80px; }
  .section-cta-enhanced h2 { font-size: 1.9rem; }
  .cta-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-pullquote p { font-size: 1.2rem; }
}

@media (max-width: 767px) {
  body { padding-top: 65px; }
  .header-inner { height: 65px; }
  .logo { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-110%);
    transition: var(--transition);
    z-index: 999;
    /* Allow the drawer to scroll internally when its contents (expanded
       dropdowns + many top-level links) are taller than the viewport,
       otherwise bottom items like 「聯繫我們」become unreachable. */
    max-height: calc(100vh - 65px);
    max-height: calc(100dvh - 65px); /* iOS Safari address-bar aware */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav.active {
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }
  .main-nav a {
    padding: 12px 20px;
    border-radius: 0;
  }
  /* Mobile: dropdown becomes inline expanded list */
  .main-nav li.has-dropdown > a::before { display: none; }
  .main-nav .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    background: var(--color-primary-light);
    border-radius: 0;
  }
  .main-nav .dropdown-menu a {
    padding: 10px 20px 10px 40px;
    font-size: 0.9rem;
  }
  .main-nav .dropdown-menu a::before {
    content: '›';
    margin-right: 8px;
    color: var(--color-primary);
    font-weight: 700;
  }
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  .page-hero { padding: 40px 20px; }
  .page-hero h1 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
}

@media (max-width: 479px) {
  .container { padding: 0 15px; }
  .hero { padding: 50px 15px; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 40px 0; }
  .card { padding: 20px; }
  .contact-form,
  .contact-info { padding: 25px; }
  .btn { padding: 10px 24px; font-size: 0.95rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; }
  .floating-nav {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .back-nav-group { flex-direction: column; align-items: center; }
  .back-nav-group .btn { width: 100%; max-width: 280px; }
}

/* =========================================================
   Certifications page v2 (page-cert-v2)
   ========================================================= */

/* Eyebrow label reused across sections */
.page-cert-v2 .cert-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 4px 12px;
  background: rgba(46,163,242,0.1);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.page-cert-v2 .cert-eyebrow-light {
  color: #ffd94a;
  background: rgba(255,217,74,0.18);
}

/* Section title styling shared */
.page-cert-v2 .cert-v2-section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.page-cert-v2 .cert-v2-section-title h2 {
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
}
.page-cert-v2 .cert-v2-section-title p {
  color: var(--color-body);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}
.page-cert-v2 .cert-v2-section-title-light h2,
.page-cert-v2 .cert-v2-section-title-light p {
  color: #fff;
}
.page-cert-v2 .cert-v2-section-title-light p {
  color: rgba(255,255,255,0.88);
}

/* -------- Reveal animation -------- */
.page-cert-v2 .cert-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page-cert-v2 .cert-reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO v2 ===== */
.page-cert-v2 .cert-hero-v2 {
  position: relative;
  color: #fff;
  padding: 110px 20px 140px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}
.page-cert-v2 .cert-hero-v2-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,217,74,0.15), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(135deg, rgba(20,90,160,0.88) 0%, rgba(46,163,242,0.82) 50%, rgba(26,140,216,0.9) 100%);
  z-index: -1;
}
.page-cert-v2 .cert-hero-v2-inner {
  text-align: center;
  position: relative;
}
.page-cert-v2 .cert-hero-v2 h1 {
  color: #fff;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.page-cert-v2 .cert-hero-v2-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin: 0 auto 2.5rem;
  max-width: 580px;
}
.page-cert-v2 .cert-hero-v2-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  color: #fff;
  z-index: 1;
}
.page-cert-v2 .cert-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 18px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
}
.page-cert-v2 .cert-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 4px 8px;
}
.page-cert-v2 .cert-stat + .cert-stat::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.25);
}
.page-cert-v2 .cert-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffd94a;
  line-height: 1.1;
}
.page-cert-v2 .cert-stat-num small {
  font-size: 0.65em;
  font-weight: 700;
  opacity: 0.9;
}
.page-cert-v2 .cert-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.5px;
}

/* ===== Concerns v2 ===== */
.page-cert-v2 .cert-v2-concerns {
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
  padding: 80px 0;
}
.page-cert-v2 .concern-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 2.5rem;
}
.page-cert-v2 .concern-card-v2 {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(46,163,242,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(46,163,242,0.08);
}
.page-cert-v2 .concern-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(46,163,242,0.2);
}
.page-cert-v2 .concern-card-v2-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.page-cert-v2 .concern-card-v2-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.page-cert-v2 .concern-card-v2:hover .concern-card-v2-media img {
  transform: scale(1.08);
}
.page-cert-v2 .concern-card-v2-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(46,163,242,0.4);
}
.page-cert-v2 .concern-card-v2-body {
  padding: 24px 24px 26px;
  position: relative;
  text-align: center;
}
.page-cert-v2 .concern-card-v2-body h3 {
  font-size: 1.3rem;
  color: var(--color-heading);
  margin: 0;
}
.page-cert-v2 .concern-card-v2-dot {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #ffd94a);
  border-radius: 3px;
  margin: 12px auto 0;
}
.page-cert-v2 .cert-v2-leadin {
  max-width: 760px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 24px 30px;
  background: linear-gradient(135deg, #fff, var(--color-primary-light));
  border-radius: 14px;
  border-left: 5px solid var(--color-primary);
}
.page-cert-v2 .cert-v2-leadin p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-heading);
}

/* ===== Excellence standards ===== */
.page-cert-v2 .cert-v2-excellence {
  position: relative;
  padding: 100px 0 110px;
  color: #fff;
  overflow: hidden;
}
.page-cert-v2 .cert-v2-excellence-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,217,74,0.2), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(126,200,248,0.3), transparent 50%),
    linear-gradient(135deg, #0d4d8f 0%, #1a6dc0 50%, #2ea3f2 100%);
  z-index: 0;
}
.page-cert-v2 .cert-v2-excellence > .container {
  position: relative;
  z-index: 1;
}
.page-cert-v2 .excellence-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.page-cert-v2 .excellence-card-v2 {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}
.page-cert-v2 .excellence-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.page-cert-v2 .excellence-badge-v2 {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd94a, #f5b700);
  color: #5b4300;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.page-cert-v2 .excellence-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-primary-light);
}
.page-cert-v2 .excellence-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.page-cert-v2 .excellence-card-v2:hover .excellence-photo img {
  transform: scale(1.1);
}
.page-cert-v2 .excellence-body-v2 {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page-cert-v2 .excellence-kpi {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  background: linear-gradient(90deg, var(--color-primary), #ffd94a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.page-cert-v2 .excellence-body-v2 h3 {
  color: var(--color-heading);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.page-cert-v2 .excellence-body-v2 p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
  color: var(--color-body);
}
.page-cert-v2 .excellence-body-v2 strong {
  color: var(--color-primary-dark);
}

/* ===== Company section ===== */
.page-cert-v2 .cert-v2-company {
  padding: 90px 0;
  background: #fff;
}

/* ===== BBB v2 ===== */
.page-cert-v2 .bbb-v2 {
  margin-top: 4rem;
  background: linear-gradient(135deg, #f8fbff 0%, var(--color-primary-light) 100%);
  border-radius: 20px;
  padding: 48px 44px;
  border: 1px solid rgba(46,163,242,0.2);
  position: relative;
  overflow: hidden;
}
.page-cert-v2 .bbb-v2::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,217,74,0.3), transparent 70%);
  border-radius: 50%;
}
.page-cert-v2 .bbb-v2-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.page-cert-v2 .bbb-v2-badge {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
}
.page-cert-v2 .bbb-v2-badge img {
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  height: auto;
}
.page-cert-v2 .bbb-v2-hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-cert-v2 .bbb-v2-rank {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  background: linear-gradient(135deg, #ffd94a, #f5b700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: 2px;
}
.page-cert-v2 .bbb-v2-year {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}
.page-cert-v2 .bbb-v2-hero-text h3 {
  color: var(--color-heading);
  font-size: 1.5rem;
  margin: 0.4rem 0 0.3rem;
}
.page-cert-v2 .bbb-v2-lead {
  margin: 0;
  color: var(--color-body);
  font-size: 0.98rem;
  line-height: 1.7;
}
.page-cert-v2 .bbb-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.page-cert-v2 .bbb-v2-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 30px 26px 26px;
  box-shadow: 0 4px 14px rgba(46,163,242,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--color-primary);
}
.page-cert-v2 .bbb-v2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(46,163,242,0.2);
}
.page-cert-v2 .bbb-v2-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.page-cert-v2 .bbb-v2-card h4 {
  color: var(--color-heading);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.page-cert-v2 .bbb-v2-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-body);
  margin: 0;
}

/* ===== Certification list v2 ===== */
.page-cert-v2 .cert-v2-list {
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  padding: 90px 0 100px;
}
.page-cert-v2 .cert-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 2.8rem;
  max-width: 900px;
}
.page-cert-v2 .cert-filter-btn {
  background: #fff;
  border: 2px solid rgba(46,163,242,0.25);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}
.page-cert-v2 .cert-filter-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}
.page-cert-v2 .cert-filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(46,163,242,0.35);
  transform: translateY(-1px);
}
.page-cert-v2 .cert-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.page-cert-v2 .cert-card-v2 {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 30px 26px 26px;
  box-shadow: 0 6px 22px rgba(46,163,242,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(46,163,242,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page-cert-v2 .cert-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #7ec8f8);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.page-cert-v2 .cert-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(46,163,242,0.2);
}
.page-cert-v2 .cert-card-v2:hover::before { opacity: 1; }
.page-cert-v2 .cert-card-v2.cert-card-hidden {
  display: none;
}
.page-cert-v2 .cert-card-v2-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.page-cert-v2 .tag-medical {
  background: rgba(46,163,242,0.12);
  color: var(--color-primary-dark);
}
.page-cert-v2 .tag-manufacturing {
  background: rgba(255,179,0,0.15);
  color: #b87800;
}
.page-cert-v2 .tag-testing {
  background: rgba(46,204,113,0.15);
  color: #1e8449;
}
.page-cert-v2 .tag-business {
  background: rgba(155,89,182,0.15);
  color: #6c3483;
}
.page-cert-v2 .cert-card-v2-logo {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff, var(--color-primary-light));
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}
.page-cert-v2 .cert-card-v2:hover .cert-card-v2-logo {
  transform: scale(1.04);
}
.page-cert-v2 .cert-card-v2-logo img {
  max-height: 110px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.page-cert-v2 .cert-card-v2 h3 {
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.page-cert-v2 .cert-card-v2 h4 {
  color: var(--color-heading);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}
.page-cert-v2 .cert-card-v2 p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-body);
  margin: 0 0 0.8rem;
  flex: 1;
}
.page-cert-v2 .cert-card-v2-quote {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--color-primary-light), #fff);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
  line-height: 1.6;
}

/* ===== Philosophy v2 ===== */
.page-cert-v2 .cert-v2-philosophy {
  padding: 90px 0 80px;
  background: #fff;
}
.page-cert-v2 .philosophy-v2-pullquote {
  position: relative;
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 40px 60px;
  text-align: center;
  background: linear-gradient(135deg, #f8fbff, var(--color-primary-light));
  border-radius: 20px;
  border: 1px solid rgba(46,163,242,0.15);
}
.page-cert-v2 .philosophy-v2-pullquote p {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--color-heading);
  margin: 0;
}
.page-cert-v2 .philosophy-v2-pullquote mark {
  background: linear-gradient(120deg, rgba(255,217,74,0.6) 0%, rgba(255,217,74,0.6) 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 78%;
  color: inherit;
  padding: 0 4px;
}
.page-cert-v2 .philosophy-v2-mark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.3;
  font-weight: 700;
}
.page-cert-v2 .philosophy-v2-mark:not(.philosophy-v2-mark-close) {
  top: 10px;
  left: 20px;
}
.page-cert-v2 .philosophy-v2-mark-close {
  bottom: -28px;
  right: 20px;
}
.page-cert-v2 .philosophy-v2-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 1.2rem;
}
.page-cert-v2 .philosophy-v2-principles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 4rem;
  max-width: 900px;
}
.page-cert-v2 .philosophy-v2-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  border: 2px solid var(--color-primary-light);
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-heading);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(46,163,242,0.08);
}
.page-cert-v2 .philosophy-v2-pill:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(46,163,242,0.2);
}
.page-cert-v2 .philosophy-v2-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.page-cert-v2 .philosophy-v2-connector {
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 800;
  opacity: 0.5;
}
.page-cert-v2 .philosophy-v2-split {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}
.page-cert-v2 .philosophy-v2-col {
  padding: 34px 32px;
  border-radius: 18px;
  background: #fff;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-cert-v2 .philosophy-v2-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.page-cert-v2 .philosophy-v2-col-no {
  border-top: 5px solid #e74c3c;
  background: linear-gradient(180deg, #fff5f3 0%, #fff 100%);
}
.page-cert-v2 .philosophy-v2-col-yes {
  border-top: 5px solid var(--color-primary);
  background: linear-gradient(180deg, #f0f8ff 0%, #fff 100%);
}
.page-cert-v2 .philosophy-v2-col-icon {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.page-cert-v2 .philosophy-v2-col-no .philosophy-v2-col-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.page-cert-v2 .philosophy-v2-col-yes .philosophy-v2-col-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.page-cert-v2 .philosophy-v2-col h4 {
  margin: 1rem 0 1rem;
  font-size: 1.2rem;
  text-align: center;
}
.page-cert-v2 .philosophy-v2-col-no h4 { color: #c0392b; }
.page-cert-v2 .philosophy-v2-col-yes h4 { color: var(--color-primary-dark); }
.page-cert-v2 .philosophy-v2-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-cert-v2 .philosophy-v2-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-weight: 600;
  line-height: 1.7;
}
.page-cert-v2 .philosophy-v2-col-no .philosophy-v2-list li {
  color: #c0392b;
}
.page-cert-v2 .philosophy-v2-col-yes .philosophy-v2-list li {
  color: var(--color-primary-dark);
}
.page-cert-v2 .philosophy-v2-col-no .philosophy-v2-list li::before {
  content: '✕';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #e74c3c;
  font-weight: 800;
}
.page-cert-v2 .philosophy-v2-col-yes .philosophy-v2-list li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-weight: 800;
}
.page-cert-v2 .philosophy-v2-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.55;
  letter-spacing: 3px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .page-cert-v2 .cert-hero-v2 { padding: 80px 20px 110px; }
  .page-cert-v2 .cert-hero-v2 h1 { font-size: 2.2rem; }
  .page-cert-v2 .cert-stats-ribbon { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .page-cert-v2 .cert-stat + .cert-stat::before { display: none; }
  .page-cert-v2 .concern-grid-v2 { grid-template-columns: 1fr; gap: 20px; }
  .page-cert-v2 .excellence-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .page-cert-v2 .bbb-v2-hero { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .page-cert-v2 .bbb-v2-grid { grid-template-columns: 1fr; }
  .page-cert-v2 .philosophy-v2-split { grid-template-columns: 1fr; }
  .page-cert-v2 .philosophy-v2-vs { padding: 10px 0; }
}
@media (max-width: 640px) {
  .page-cert-v2 .cert-hero-v2 h1 { font-size: 1.85rem; }
  .page-cert-v2 .cert-hero-v2-subtitle { font-size: 1rem; }
  .page-cert-v2 .cert-stat-num { font-size: 1.6rem; }
  .page-cert-v2 .cert-stat-label { font-size: 0.78rem; }
  .page-cert-v2 .excellence-grid-v2 { grid-template-columns: 1fr; }
  .page-cert-v2 .cert-grid-v2 { grid-template-columns: 1fr; }
  .page-cert-v2 .cert-v2-section-title h2 { font-size: 1.6rem; }
  .page-cert-v2 .philosophy-v2-pullquote { padding: 32px 22px; }
  .page-cert-v2 .philosophy-v2-pullquote p { font-size: 1.2rem; }
  .page-cert-v2 .philosophy-v2-principles { flex-direction: column; gap: 10px; }
  .page-cert-v2 .philosophy-v2-connector { transform: rotate(90deg); }
  .page-cert-v2 .bbb-v2 { padding: 32px 22px; }
}

/* =========================================================
   Homepage Hero v3 (dynamic product showcase)
   ========================================================= */
.hero-v3 {
  position: relative;
  color: #fff;
  padding: 90px 20px 0;
  overflow: hidden;
  isolation: isolate;
  background: #041a35;
}
.hero-v3-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15) brightness(0.55);
  z-index: -3;
  animation: heroV3BgDrift 30s ease-in-out infinite alternate;
}
@keyframes heroV3BgDrift {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
.hero-v3-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 75% 15%,  rgba(46,163,242,0.55), transparent 60%),
    radial-gradient(900px  700px at 15% 90%,  rgba(255,217,74,0.18), transparent 55%),
    linear-gradient(135deg, rgba(6,24,48,0.90) 0%, rgba(10,60,120,0.78) 45%, rgba(18,110,200,0.70) 100%);
  z-index: -2;
}
.hero-v3-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.hero-v3-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: heroV3Orb 18s ease-in-out infinite alternate;
}
.hero-v3-orb-a {
  width: 360px; height: 360px;
  top: -80px; left: -60px;
  background: #2ea3f2;
  animation-duration: 22s;
}
.hero-v3-orb-b {
  width: 500px; height: 500px;
  top: 10%; right: -120px;
  background: #ffd94a;
  opacity: 0.3;
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}
.hero-v3-orb-c {
  width: 420px; height: 420px;
  bottom: -100px; left: 40%;
  background: #8b5cf6;
  opacity: 0.28;
  animation-duration: 30s;
}
@keyframes heroV3Orb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

/* Grid layout */
.hero-v3-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 60px;
  min-height: 580px;
}

/* Text side */
.hero-v3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,217,74,0.45);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffd94a;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(6px);
}
.hero-v3-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffd94a;
  box-shadow: 0 0 12px #ffd94a;
  animation: heroV3Pulse 1.8s ease-in-out infinite;
}
@keyframes heroV3Pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
.hero-v3-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 3.3rem;
  line-height: 1.18;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero-v3-title-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-v3-title-accent {
  background: linear-gradient(90deg, #ffd94a 0%, #ffb347 60%, #7ec8f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255,217,74,0.3));
  animation: heroV3GradShift 6s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes heroV3GradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-v3-logo {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(255,255,255,0.3));
}
.hero-v3-lede {
  font-size: 1.15rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin: 0 0 1.8rem;
}
.hero-v3-lede strong { color: #ffd94a; }

/* Stats ribbon inline with text */
.hero-v3-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 18px;
  justify-content: start;
  margin-bottom: 2rem;
  padding: 18px 22px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  max-width: 520px;
}
.hero-v3-stat {
  display: flex;
  flex-direction: column;
  padding: 0 14px;
  position: relative;
}
.hero-v3-stat + .hero-v3-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%; bottom: 14%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}
.hero-v3-stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffd94a;
  line-height: 1.1;
}
.hero-v3-stat-num small {
  font-size: 0.6em;
  opacity: 0.9;
  margin-left: 1px;
}
.hero-v3-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

/* CTA buttons */
.hero-v3-cta { justify-content: flex-start; }
.hero-v3-btn-primary {
  background: linear-gradient(135deg, #fff, #f8faff);
  color: var(--color-primary-dark);
  padding: 14px 32px;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-v3-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,217,74,0.3);
  color: var(--color-primary-dark);
}
.hero-v3-btn-ghost {
  padding: 14px 28px;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}
.hero-v3-btn-ghost:hover {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #fff;
}

/* Showcase side (right) */
.hero-v3-showcase {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rings */
.hero-v3-showcase-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-v3-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.18);
}
.hero-v3-ring-1 { width: 260px; height: 260px; animation: heroV3Spin 30s linear infinite; }
.hero-v3-ring-2 { width: 380px; height: 380px; border-color: rgba(255,217,74,0.22); animation: heroV3Spin 60s linear infinite reverse; }
.hero-v3-ring-3 { width: 500px; height: 500px; border-color: rgba(46,163,242,0.2); animation: heroV3Spin 90s linear infinite; }
@keyframes heroV3Spin { to { transform: rotate(360deg); } }

.hero-v3-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), rgba(255,217,74,0.12) 45%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  animation: heroV3GlowPulse 4s ease-in-out infinite alternate;
}
@keyframes heroV3GlowPulse {
  0%   { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.08); }
}

/* Main product */
.hero-v3-product-main {
  position: relative;
  z-index: 3;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroV3Float 6s ease-in-out infinite alternate;
}
@keyframes heroV3Float {
  0%   { transform: translateY(-10px) rotate(-1deg); }
  100% { transform: translateY(10px)  rotate(1deg); }
}
.hero-v3-product-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.55)) drop-shadow(0 0 30px rgba(46,163,242,0.4));
  background: #fff;
  border-radius: 18px;
  padding: 8px;
  transition: transform 0.4s ease;
}
.hero-v3-product-main:hover .hero-v3-product-img {
  transform: scale(1.04);
}
/* HOT badge — simple text-only pill */
.hero-v3-hero-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  display: inline-block;
  background: linear-gradient(135deg, #ffd94a 0%, #f5a300 100%);
  color: #5a3800;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 3px;
  box-shadow: 0 6px 18px rgba(245,163,0,0.45), 0 0 0 3px rgba(255,255,255,0.15);
  z-index: 4;
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
  animation: heroV3HotPulse 1.8s ease-in-out infinite;
}
@keyframes heroV3HotPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 6px 18px rgba(245,163,0,0.45), 0 0 0 3px rgba(255,255,255,0.15); }
  50%      { transform: scale(1.06); box-shadow: 0 8px 24px rgba(255,205,60,0.7),  0 0 0 4px rgba(255,255,255,0.22); }
}

/* Satellites (figures with caption tooltip on hover) */
.hero-v3-satellites { position: absolute; inset: 0; pointer-events: none; }
.hero-v3-sat {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* allow caption to overflow circle */
  border: 2px solid rgba(255,255,255,0.85);
  animation: heroV3SatOrbit 10s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  pointer-events: auto;
}
.hero-v3-sat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.hero-v3-sat:hover {
  transform: scale(1.22) !important;
  box-shadow: 0 20px 46px rgba(255,217,74,0.5);
  border-color: #ffd94a;
  z-index: 10;
}
@keyframes heroV3SatOrbit {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(10px, -8px); }
}
/* Tooltip caption (English product name) — fades in on hover */
.hero-v3-sat-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,217,74,0.35);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 11;
}
.hero-v3-sat-name::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
}
.hero-v3-sat:hover .hero-v3-sat-name {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 6 satellites evenly distributed around the main product */
.hero-v3-sat-1 { top: 4%;    left: 10%;  width: 92px; height: 92px; }
.hero-v3-sat-2 { top: 2%;    right: 10%; width: 96px; height: 96px; }
.hero-v3-sat-3 { top: 44%;   right: -6%; width: 86px; height: 86px; }
.hero-v3-sat-4 { bottom: 4%; right: 14%; width: 94px; height: 94px; }
.hero-v3-sat-5 { bottom: 8%; left: 14%;  width: 92px; height: 92px; }
.hero-v3-sat-6 { top: 44%;   left: -6%;  width: 86px; height: 86px; }

/* Marquee strip */
.hero-v3-marquee {
  position: relative;
  z-index: 1;
  margin: 30px -20px 0;
  padding: 16px 0;
  background: rgba(0,0,0,0.28);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.hero-v3-marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: heroV3Marquee 40s linear infinite;
}
.hero-v3-marquee:hover .hero-v3-marquee-track { animation-play-state: paused; }
.hero-v3-marquee-row {
  display: flex;
  gap: 40px;
  flex-shrink: 0;
}
.hero-v3-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 4px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
}
.hero-v3-mq-item:hover {
  background: rgba(255,217,74,0.22);
  border-color: #ffd94a;
  box-shadow: 0 4px 14px rgba(255,217,74,0.3);
  transform: translateY(-2px);
}
.hero-v3-mq-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.hero-v3-mq-item em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.25s ease;
}
/* English name (default shown) + Chinese name (revealed on hover) */
.hero-v3-mq-en {
  display: inline-block;
}
.hero-v3-mq-zh {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  padding-left: 0;
  border-left: 0 solid transparent;
  color: #ffe98a !important;
  transition: max-width 0.4s ease, opacity 0.35s ease 0.1s,
              margin-left 0.35s ease, padding-left 0.35s ease, border-left-width 0.35s ease;
}
.hero-v3-mq-item:hover .hero-v3-mq-en { color: #fff; }
.hero-v3-mq-item:hover .hero-v3-mq-zh {
  max-width: 240px;
  opacity: 1;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,217,74,0.5);
}
/* Pause marquee on any pill hover so user can read both names */
.hero-v3-marquee:has(.hero-v3-mq-item:hover) .hero-v3-marquee-track {
  animation-play-state: paused;
}
@keyframes heroV3Marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-v3 { padding-top: 60px; }
  .hero-v3-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; min-height: auto; }
  .hero-v3-text { text-align: center; }
  .hero-v3-eyebrow { justify-content: center; }
  .hero-v3-title { font-size: 2.4rem; }
  .hero-v3-title-line { justify-content: center; }
  .hero-v3-lede { margin-left: auto; margin-right: auto; }
  .hero-v3-stats { margin-left: auto; margin-right: auto; }
  .hero-v3-cta { justify-content: center; }
  .hero-v3-showcase { min-height: 420px; }
  .hero-v3-ring-1 { width: 220px; height: 220px; }
  .hero-v3-ring-2 { width: 320px; height: 320px; }
  .hero-v3-ring-3 { width: 420px; height: 420px; }
  .hero-v3-product-main { width: 220px; height: 220px; }
  .hero-v3-sat { width: 70px !important; height: 70px !important; }
}
@media (max-width: 640px) {
  .hero-v3-title { font-size: 1.85rem; }
  .hero-v3-logo { height: 44px; }
  .hero-v3-lede { font-size: 1rem; }
  .hero-v3-stats { grid-template-columns: 1fr 1fr 1fr; padding: 14px 10px; gap: 0; }
  .hero-v3-stat { padding: 0 8px; }
  .hero-v3-stat-num { font-size: 1.4rem; }
  .hero-v3-stat-label { font-size: 0.72rem; }
  .hero-v3-product-main { width: 180px; height: 180px; }
  .hero-v3-ring-1 { width: 190px; height: 190px; }
  .hero-v3-ring-2 { width: 270px; height: 270px; }
  .hero-v3-ring-3 { width: 360px; height: 360px; }
  .hero-v3-sat { width: 62px !important; height: 62px !important; }
  .hero-v3-sat-1 { top: 2%;    left: 6%; }
  .hero-v3-sat-2 { top: 0;     right: 6%; }
  .hero-v3-sat-3 { top: 44%;   right: -2%; }
  .hero-v3-sat-4 { bottom: 2%; right: 12%; }
  .hero-v3-sat-5 { bottom: 4%; left: 10%; }
  .hero-v3-sat-6 { top: 44%;   left: -2%; }
  .hero-v3-hero-badge { font-size: 0.76rem; padding: 5px 12px; letter-spacing: 2px; top: -10px; right: -10px; }
  .hero-v3-sat-name { font-size: 0.68rem; padding: 4px 8px; }
  .hero-v3-mq-en, .hero-v3-mq-zh { font-size: 0.78rem; }
}

/* Accessibility: honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-v3-bg, .hero-v3-orb, .hero-v3-eyebrow-dot,
  .hero-v3-title-accent, .hero-v3-glow, .hero-v3-ring,
  .hero-v3-product-main, .hero-v3-sat, .hero-v3-marquee-track,
  .hero-v3-hero-badge {
    animation: none !important;
  }
}

/* =========================================================
   Article figures (subpage imagery)
   ========================================================= */
.article-figure {
  margin: 2.2rem 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  background: var(--color-white);
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.article-figure:hover img { transform: scale(1.02); }
.article-figure figcaption {
  padding: 16px 22px;
  font-size: 1.02rem;
  color: var(--color-body);
  background: linear-gradient(135deg, var(--color-primary-light), #fff);
  border-top: 3px solid var(--color-primary);
  line-height: 1.75;
  font-style: italic;
}
.article-figure-full { display: block; max-width: 100%; }
.article-figure-left {
  float: left;
  width: 50%;
  margin: 0.5rem 32px 1.4rem 0;
  clear: left;
}
.article-figure-right {
  float: right;
  width: 50%;
  margin: 0.5rem 0 1.4rem 32px;
  clear: right;
}
@media (max-width: 860px) {
  .article-figure-left,
  .article-figure-right {
    float: none;
    width: 100%;
    margin: 1.8rem 0;
  }
}

/* Timeline strip (NAD+ history page) */
.article-timeline {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  margin: 2.2rem 0 2.4rem;
  padding: 24px 20px;
  background: linear-gradient(135deg, #f8fbff, var(--color-primary-light));
  border-radius: 16px;
  border: 1px solid rgba(46,163,242,0.18);
  flex-wrap: wrap;
}
.article-timeline-item {
  flex: 1 1 140px;
  min-width: 140px;
  background: #fff;
  padding: 18px 14px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(46,163,242,0.1);
  border-top: 3px solid var(--color-primary);
}
.article-timeline-item.article-timeline-current {
  border-top-color: #ffd94a;
  background: linear-gradient(135deg, #fffbe5, #fff);
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(255,217,74,0.25);
}
.article-timeline-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}
.article-timeline-current .article-timeline-year { color: #b8860b; }
.article-timeline-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-body);
}
.article-timeline-arrow {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 800;
  opacity: 0.6;
}
@media (max-width: 767px) {
  .article-timeline { flex-direction: column; gap: 8px; }
  .article-timeline-arrow { transform: rotate(90deg); }
}

/* Clearfix for article content with floated figures */
.article-content::after { content: ''; display: block; clear: both; }

/* ===== Molecular banner (what-is-nmn) ===== */
.nmn-molecular-banner {
  position: relative;
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.nmn-molecular-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,30,60,0.85), rgba(26,108,195,0.7));
  z-index: 0;
}
.nmn-molecular-banner-inner {
  position: relative;
  z-index: 1;
}
.nmn-molecular-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffd94a;
  padding: 5px 14px;
  background: rgba(255,217,74,0.18);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.nmn-molecular-banner h3 {
  color: #fff;
  font-size: 2rem;
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .nmn-molecular-banner { padding: 60px 20px; }
  .nmn-molecular-banner h3 { font-size: 1.4rem; }
}

/* =========================================================
   "如何選擇 NMN" — redesigned dynamic feature layout (v2)
   ========================================================= */
.choose-v2 {
  position: relative;
  padding: 90px 0 110px;
  background: linear-gradient(180deg, #f6fbff 0%, #fff 45%, #f8fafd 100%);
  overflow: hidden;
  isolation: isolate;
}
.choose-v2-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(46,163,242,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,163,242,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.choose-v2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.choose-v2-orb-a {
  width: 420px; height: 420px;
  top: -120px; left: -140px;
  background: rgba(46,163,242,0.6);
  animation: chooseV2Orb 18s ease-in-out infinite alternate;
}
.choose-v2-orb-b {
  width: 500px; height: 500px;
  bottom: -180px; right: -160px;
  background: rgba(255,217,74,0.45);
  animation: chooseV2Orb 22s ease-in-out infinite alternate-reverse;
}
@keyframes chooseV2Orb {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-30px) scale(1.1); }
}

/* Header */
.choose-v2-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem;
}
.choose-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.choose-v2-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(46,163,242,0.8);
  animation: chooseV2Pulse 1.8s ease-in-out infinite;
}
@keyframes chooseV2Pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
.choose-v2-header h2 {
  font-size: 2.4rem;
  margin: 0 0 0.6rem;
}
.choose-v2-title-accent {
  background: linear-gradient(90deg, var(--color-primary) 0%, #ffd94a 55%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: chooseV2Shift 5s ease-in-out infinite;
}
@keyframes chooseV2Shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.choose-v2-header p {
  color: var(--color-body);
  font-size: 1.05rem;
}

/* Quick-jump pills */
.choose-v2-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 3.5rem;
  max-width: 960px;
}
.choose-v2-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 10px;
  background: #fff;
  border: 1.5px solid rgba(46,163,242,0.25);
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.88rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(46,163,242,0.08);
}
.choose-v2-jump a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
}
.choose-v2-jump a:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(46,163,242,0.35);
}
.choose-v2-jump a:hover span {
  background: #ffd94a;
  color: var(--color-primary-dark);
}

/* Row layout - alternating left/right */
.choose-v2-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0;
  scroll-margin-top: calc(var(--header-height) + 30px);
}
.choose-v2-row + .choose-v2-row { border-top: 1px dashed rgba(46,163,242,0.15); }
.choose-v2-row-reverse .choose-v2-visual { order: 2; }
.choose-v2-row-reverse .choose-v2-text   { order: 1; }

/* Text column */
.choose-v2-text { padding: 20px 10px; }
.choose-v2-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}
.choose-v2-num-big {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, #0d4d8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.choose-v2-num-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #ffd94a 60%, transparent);
  border-radius: 3px;
}
.choose-v2-text h3 {
  font-size: 1.8rem;
  color: var(--color-heading);
  margin: 0 0 0.8rem;
  line-height: 1.3;
}
.choose-v2-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-body);
  margin: 0;
}
.choose-v2-text strong { color: var(--color-primary-dark); }

/* Visual column */
.choose-v2-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* ----- 01 Generation timeline ----- */
.cv-gen-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(46,163,242,0.12);
  border: 1px solid rgba(46,163,242,0.1);
}
.cv-gen {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fbff;
  border-radius: 12px;
  border-left: 4px solid #d0dde9;
  transition: all 0.3s ease;
  position: relative;
}
.cv-gen.cv-gen-active {
  background: linear-gradient(135deg, #e9f6ff, #fff4c4);
  border-left-color: #ffd94a;
  box-shadow: 0 8px 22px rgba(255,217,74,0.25);
  transform: translateX(6px);
}
.cv-gen-badge {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: #94a5b8;
  border-radius: 8px;
  padding: 8px 6px;
  min-height: 60px;
}
.cv-gen-2 .cv-gen-badge { background: #5fb4e8; }
.cv-gen-active .cv-gen-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 4px 12px rgba(46,163,242,0.4);
}
.cv-gen-label {
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.02rem;
}
.cv-gen-bar {
  height: 6px;
  background: rgba(46,163,242,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.cv-gen-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #94a5b8, #94a5b8);
  border-radius: 99px;
  width: 0;
  animation: cvBarFill 1.4s ease-out forwards;
}
.cv-gen-2 .cv-gen-bar span { background: linear-gradient(90deg, #5fb4e8, #2ea3f2); }
.cv-gen-active .cv-gen-bar span { background: linear-gradient(90deg, var(--color-primary), #ffd94a); }
@keyframes cvBarFill { to { width: var(--targetW, 100%); } }
.cv-gen-note { font-size: 0.82rem; color: var(--color-body); }
.cv-gen-active .cv-gen-note { color: var(--color-primary-dark); font-weight: 600; }

/* ----- 02 Cert constellation ----- */
.cv-cert-cluster {
  position: relative;
  width: 380px;
  height: 380px;
  max-width: 100%;
}
.cv-cert-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #e6f3ff);
  box-shadow: 0 10px 30px rgba(46,163,242,0.3), 0 0 0 6px rgba(46,163,242,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.cv-cert-count {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}
.cv-cert-label {
  font-size: 0.85rem;
  color: var(--color-body);
  font-weight: 600;
  margin-top: 6px;
}
.cv-cert-ring {
  position: absolute;
  inset: 0;
  animation: cvCertOrbit 40s linear infinite;
}
@keyframes cvCertOrbit { to { transform: rotate(360deg); } }
.cv-cert-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border: 2px solid rgba(46,163,242,0.15);
  transform: translate(-50%, -50%) rotate(var(--deg)) translate(140px) rotate(calc(-1 * var(--deg))) rotate(var(--counter, 0deg));
  animation: cvCertItemCounter 40s linear infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@keyframes cvCertItemCounter {
  from { --counter: 0deg; }
  to   { --counter: -360deg; }
}
@property --counter { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.cv-cert-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ----- 03 Purity gauge (feature row) ----- */
.choose-v2-row-feature {
  grid-template-columns: 1fr;
  padding: 56px 0;
}
.choose-v2-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, #0d4d8f 0%, #1a6dc0 50%, #2ea3f2 100%);
  border-radius: 28px;
  padding: 54px 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.choose-v2-feature-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 85% 20%, rgba(255,217,74,0.25), transparent 60%),
    radial-gradient(400px 300px at 15% 80%, rgba(126,200,248,0.3), transparent 60%);
  pointer-events: none;
}
.choose-v2-row-feature .choose-v2-text h3,
.choose-v2-row-feature .choose-v2-text p { color: #fff; }
.choose-v2-row-feature .choose-v2-text { position: relative; z-index: 1; }
.choose-v2-row-feature .choose-v2-text strong { color: #ffd94a; }
.choose-v2-row-feature .choose-v2-num-big {
  background: linear-gradient(135deg, #fff 0%, #ffd94a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.choose-v2-row-feature .choose-v2-num-line {
  background: linear-gradient(90deg, #ffd94a, rgba(255,255,255,0.3) 80%, transparent);
}
.cv-purity {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.cv-purity-gauge {
  width: 100%;
  height: auto;
  display: block;
}
.cv-purity-arc {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: cvPurityFill 2s ease-out 0.3s forwards;
}
@keyframes cvPurityFill {
  to { stroke-dashoffset: 3; }
}
.cv-purity-dot {
  animation: cvPurityDot 2s ease-out 0.3s forwards;
  transform: rotate(-180deg);
  transform-origin: 100px 110px;
}
.cv-purity-readout {
  text-align: center;
  margin-top: -34px;
}
.cv-purity-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.cv-purity-num small { font-size: 0.5em; margin-left: 2px; }
.cv-purity-label {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
}
.cv-purity-compare {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.cv-bar {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 12px;
  align-items: center;
  font-size: 0.86rem;
}
.cv-bar-label { color: rgba(255,255,255,0.9); font-weight: 600; }
.cv-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  overflow: hidden;
}
.cv-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  animation: cvBarSlide 1.4s cubic-bezier(.2,.8,.2,1) forwards;
}
.cv-bar-fill-hi  { background: linear-gradient(90deg, #ffd94a, #7ec8f8); animation-delay: 0.3s; }
.cv-bar-fill-mid { background: linear-gradient(90deg, #5fb4e8, #2ea3f2); animation-delay: 0.5s; }
.cv-bar-fill-lo  { background: linear-gradient(90deg, #8d9ead, #6b7a87); animation-delay: 0.7s; }
@keyframes cvBarSlide { to { width: var(--w, 100%); } }
.cv-bar-val {
  color: #ffd94a;
  font-weight: 800;
  font-family: var(--font-heading);
  text-align: right;
  font-size: 0.9rem;
}
.cv-bar-fill-mid + .cv-bar-val,
.cv-bar-fill-lo  + .cv-bar-val { color: rgba(255,255,255,0.85); }

/* ----- 04 Origin cards + grade ribbon ----- */
.cv-origin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.cv-origin-card {
  background: #fff;
  padding: 22px 18px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(46,163,242,0.12);
  border-top: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}
.cv-origin-card:hover { transform: translateY(-5px); }
.cv-origin-flag { font-size: 2.4rem; line-height: 1; }
.cv-origin-country { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--color-heading); }
.cv-origin-desc { font-size: 0.82rem; color: var(--color-body); line-height: 1.5; }
.cv-origin-grade {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff4c4 0%, #ffe98a 100%);
  border-radius: 14px;
  border: 1px solid rgba(255,179,0,0.3);
}
.cv-grade-ribbon {
  background: linear-gradient(135deg, #b8860b, #8a6400);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(184,134,11,0.4);
}
.cv-grade-text {
  color: #5a3800;
  font-weight: 700;
  font-size: 1rem;
}

/* ----- 06 Enteric absorption flow ----- */
.cv-enteric {
  width: 100%;
  max-width: 450px;
}
.cv-enteric-stages {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.cv-enteric-stage {
  background: #fff;
  padding: 18px 10px 14px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(46,163,242,0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.cv-stage-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 6px;
}
.cv-stage-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-heading);
}
.cv-stage-sub {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--color-body);
}
.cv-stage-active {
  background: linear-gradient(135deg, #e9f6ff, #fff4c4);
  border-color: #ffd94a;
  box-shadow: 0 8px 22px rgba(255,217,74,0.3);
  transform: scale(1.06);
}
.cv-stage-active .cv-stage-icon { color: #1e8449; }
.cv-stage-active .cv-stage-sub { color: var(--color-primary-dark); font-weight: 700; }
.cv-enteric-arrow {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 800;
  opacity: 0.55;
}
.cv-enteric-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cv-enteric-badge {
  padding: 6px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(46,163,242,0.25);
}
.cv-enteric-badge-vege {
  background: #e8f7e8;
  color: #1e8449;
  border-color: rgba(30,132,73,0.3);
}

/* ----- 07 cGMP QC overlay ----- */
.cv-qc {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 3;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}
.cv-qc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,77,143,0.85) 0%, rgba(46,163,242,0.7) 100%);
}
.cv-qc-content {
  position: absolute;
  inset: 0;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cv-qc-seal {
  align-self: flex-end;
  background: linear-gradient(135deg, #ffd94a, #f5a300);
  color: #5a3800;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 2px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(245,163,0,0.45);
}
.cv-qc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cv-qc-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.22);
}
.cv-qc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #1e8449;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(30,132,73,0.5);
}

/* Scroll-reveal */
.choose-v2-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.choose-v2-row.cv-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .choose-v2 { padding: 70px 0 90px; }
  .choose-v2-header h2 { font-size: 1.9rem; }
  .choose-v2-row,
  .choose-v2-row-reverse,
  .choose-v2-feature-inner { grid-template-columns: 1fr; gap: 30px; }
  .choose-v2-row-reverse .choose-v2-visual,
  .choose-v2-row-reverse .choose-v2-text { order: initial; }
  .choose-v2-feature-inner { padding: 40px 26px; }
  .choose-v2-num-big { font-size: 2.8rem; }
  .choose-v2-text h3 { font-size: 1.45rem; }
  .cv-cert-cluster { width: 320px; height: 320px; }
  .cv-cert-item { transform: translate(-50%, -50%) rotate(var(--deg)) translate(115px) rotate(calc(-1 * var(--deg))); }
  .cv-purity-num { font-size: 2.8rem; }
}
@media (max-width: 640px) {
  .choose-v2-header h2 { font-size: 1.6rem; }
  .choose-v2-num-big { font-size: 2.4rem; }
  .choose-v2-text h3 { font-size: 1.3rem; }
  .cv-gen-timeline { padding: 18px; }
  .cv-gen { grid-template-columns: 60px 1fr; padding: 10px; }
  .cv-cert-cluster { width: 260px; height: 260px; }
  .cv-cert-item { width: 48px; height: 48px; padding: 6px; transform: translate(-50%, -50%) rotate(var(--deg)) translate(95px) rotate(calc(-1 * var(--deg))); }
  .cv-cert-center { width: 110px; height: 110px; }
  .cv-cert-count { font-size: 1.8rem; }
  .cv-enteric-stages { grid-template-columns: 1fr; }
  .cv-enteric-arrow { transform: rotate(90deg); justify-self: center; }
  .cv-bar { grid-template-columns: 70px 1fr 56px; font-size: 0.78rem; }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .choose-v2-orb, .choose-v2-eyebrow-dot, .choose-v2-title-accent,
  .cv-cert-ring, .cv-cert-item, .cv-purity-arc, .cv-bar-fill,
  .cv-gen-bar span {
    animation: none !important;
  }
  .choose-v2-row { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   "為什麼我們需要補充 NMN" — Bento dynamic layout (v2)
   ========================================================= */
.why-v2 {
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(180deg, #fff 0%, #f6fbff 50%, #fff 100%);
  overflow: hidden;
  isolation: isolate;
}
.why-v2-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.why-v2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  animation: whyV2Float 24s ease-in-out infinite alternate;
}
.why-v2-orb-a {
  width: 460px; height: 460px;
  top: -100px; right: -120px;
  background: rgba(255,217,74,0.55);
}
.why-v2-orb-b {
  width: 520px; height: 520px;
  bottom: -160px; left: -140px;
  background: rgba(46,163,242,0.5);
  animation-direction: alternate-reverse;
}
@keyframes whyV2Float {
  0%   { transform: translate(0,0)    scale(1); }
  100% { transform: translate(30px,-20px) scale(1.12); }
}

/* Header */
.why-v2-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.2rem;
}
.why-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
}
.why-v2-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(46,163,242,0.8);
  animation: whyV2Pulse 1.8s ease-in-out infinite;
}
@keyframes whyV2Pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
.why-v2-header h2 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}
.why-v2-accent {
  background: linear-gradient(90deg, var(--color-primary) 0%, #ffd94a 55%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: whyV2Shift 5s ease-in-out infinite;
}
@keyframes whyV2Shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.why-v2-header p {
  color: var(--color-body);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Hero stat callout */
.why-v2-hero-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 4px;
  background: linear-gradient(135deg, rgba(46,163,242,0.2), rgba(255,217,74,0.2));
  border-radius: 999px;
}
.why-v2-hero-stat-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  padding: 16px 32px 16px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(46,163,242,0.12);
}
.why-v2-hero-num {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 70%, #0d4d8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.why-v2-hero-num small { font-size: 0.45em; margin-left: 2px; }
.why-v2-hero-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.4;
}
.why-v2-hero-text strong { color: var(--color-heading); font-size: 1.1rem; }
.why-v2-hero-text span { color: var(--color-body); font-size: 0.88rem; }

/* Uniform 3-col grid (neat but not rigid — variety comes from category colors + KPI badges) */
.why-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card (static — no image dynamic effects) */
.why-v2-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(46,163,242,0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(46,163,242,0.08);
}
.why-v2-card.why-v2-in {
  opacity: 1;
  transform: translateY(0);
}
.why-v2-card:hover {
  box-shadow: 0 12px 28px rgba(46,163,242,0.16);
}
.why-v2-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-primary-light);
}
.why-v2-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.why-v2-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* Number badge (top-left) */
.why-v2-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.5);
}

/* KPI badge (top-right — static, no pulse) */
.why-v2-kpi {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ffd94a 0%, #f5a300 100%);
  color: #5a3800;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245,163,0,0.35);
  letter-spacing: 0.5px;
}
.why-v2-kpi small { font-size: 0.55em; font-weight: 700; margin-left: 2px; }
/* Longer KPI text (e.g. "7 種長壽蛋白 / Sirtuins") — multi-line pill */
.why-v2-kpi-long {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.92rem;
  line-height: 1.15;
  border-radius: 14px;
  text-align: center;
  letter-spacing: 0.3px;
}
.why-v2-kpi-long small {
  font-size: 0.72em;
  margin-left: 0;
  margin-top: 2px;
  font-style: italic;
  opacity: 0.85;
  letter-spacing: 1px;
}

/* NASA label (for card 8, static) */
.why-v2-nasa {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(6, 24, 48, 0.88);
  color: #7ec8f8;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 8px;
  border: 1px solid rgba(126, 200, 248, 0.4);
  backdrop-filter: blur(6px);
}
.why-v2-nasa::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5a3c;
  box-shadow: 0 0 6px #ff5a3c;
}

/* Body */
.why-v2-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.why-v2-card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  opacity: 0.75;
}
.why-v2-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: currentColor;
  color: #fff !important;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.why-v2-tag::before { content: attr(data-txt); }
.why-v2-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--color-heading);
}
.why-v2-card-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-body);
}
.why-v2-card-body strong { color: var(--color-primary-dark); }

/* Category colors (each card sets currentColor via category class) */
.why-v2-energy      { color: #f5a300; }
.why-v2-metabolism  { color: #1e8449; }
.why-v2-immune      { color: #e74c3c; }
.why-v2-heart       { color: #e91e63; }
.why-v2-brain       { color: #8b5cf6; }
.why-v2-dna         { color: #2ea3f2; }
.why-v2-longevity   { color: #14b8a6; }
.why-v2-space       { color: #0d4d8f; }
/* Apply currentColor only to tag/strip; restore heading/body colors */
.why-v2-card-body h3,
.why-v2-card-body p,
.why-v2-card-body strong {
  color: inherit; /* revert to original */
}
/* Headings specifically not colored */
.why-v2-card-body h3       { color: var(--color-heading); }
.why-v2-card-body p        { color: var(--color-body); }
.why-v2-card-body strong   { color: var(--color-primary-dark); }

.why-v2-space .why-v2-card-body strong { color: #0d4d8f; }

/* Responsive */
@media (max-width: 980px) {
  .why-v2 { padding: 70px 0 90px; }
  .why-v2-header h2 { font-size: 1.85rem; }
  .why-v2-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .why-v2-hero-num { font-size: 2.4rem; }
}
@media (max-width: 640px) {
  .why-v2-header h2 { font-size: 1.5rem; line-height: 1.4; }
  .why-v2-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-v2-hero-stat-inner { padding: 12px 20px 12px 14px; gap: 12px; }
  .why-v2-hero-num { font-size: 2rem; }
  .why-v2-hero-text strong { font-size: 0.95rem; }
  .why-v2-hero-text span { font-size: 0.78rem; }
  .why-v2-kpi { font-size: 1rem; padding: 6px 12px; }
  .why-v2-kpi-long { font-size: 0.78rem; padding: 6px 10px; }
  .why-v2-num { min-width: 42px; height: 42px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .why-v2-orb, .why-v2-eyebrow-dot, .why-v2-accent { animation: none !important; }
  .why-v2-card { opacity: 1; transform: none; transition: none; }
}


/* =====================================================================
   ELDER-FRIENDLY ACCESSIBILITY LAYER
   Larger type, stronger contrast, bigger controls, calmer animations,
   always-visible labels — applied to every page by default.
   ===================================================================== */

/* 1. Base typography scale-up (everything using rem cascades) */
html {
  font-size: 18px;
}
html.text-size-2 { font-size: 20px; }
html.text-size-3 { font-size: 22px; }
body {
  color: #262626;               /* darker body text for contrast */
  line-height: 1.85;
}
body p { line-height: 1.9; }

/* Stronger contrast baseline tokens (override the palette's light greys) */
:root {
  --color-body: #333333;         /* was #666 — too light for elder eyes */
  --color-heading: #1a1a1a;      /* was #333 — now near-black */
}

/* Links: always underlined inside articles so they're never missed */
.article-content a,
.faq-item p a,
.two-col-text a,
.imai-body a,
.contact-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* 2. Heading scale bump */
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.35rem; }

/* 3. Buttons — bigger tap targets + readable labels */
.btn {
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-width: 2px;
  min-height: 52px;
}
.btn.btn-lg { padding: 18px 42px; font-size: 1.15rem; min-height: 60px; }

/* 4. Navigation — larger header, bigger links, taller menu */
:root { --header-height: 88px; }
.logo { font-size: 1.35rem; gap: 10px; }
.header-logo { height: 44px; }
.main-nav a {
  padding: 10px 18px;
  font-size: 1.05rem;
}
.main-nav .dropdown-menu a {
  padding: 14px 22px;
  font-size: 1rem;
}
.main-nav .dropdown-menu { min-width: 320px; }

/* Mobile nav toggle bigger */
.nav-toggle { padding: 14px; }
.nav-toggle span { width: 30px; height: 4px; margin: 6px 0; }

/* 5. Site notice — readable, not tiny */
.site-notice { font-size: 0.92rem; padding: 10px 20px; color: #555; }

/* 6. Hero blocks */
.page-hero h1 { font-size: 2.4rem; }
.page-hero p { font-size: 1.2rem; }
.hero-v3-title { font-size: 3rem; }
.hero-v3-lede { font-size: 1.2rem; line-height: 1.9; }

/* 7. Forms — bigger inputs, high contrast */
.form-group label { font-size: 1.05rem; }
.form-group input,
.form-group textarea {
  padding: 16px 20px;
  font-size: 1.05rem;
  border-width: 2px;
  color: #1a1a1a;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(46,163,242,0.2);
}

/* 8. FAQ — bigger, clearer summaries */
.faq-item summary {
  font-size: 1.12rem;
  padding: 22px 60px 22px 26px;
  line-height: 1.55;
}
.faq-item summary::after { font-size: 1.9rem; right: 26px; }
.faq-item p { font-size: 1.05rem; line-height: 1.9; padding: 0 26px 24px; }
.faq-item ul li { font-size: 1.02rem; line-height: 1.9; }

/* 9. Cards — readable text inside every card */
.card p,
.choose-card p,
.bbb-standard-card p,
.cert-card p,
.cv-gen-label,
.profile-body h3,
.profile-body p {
  font-size: 1rem;
  line-height: 1.85;
}
.card h3, .choose-card h3, .cert-card h3 { font-size: 1.3rem; }
.card-icon { font-size: 2.2rem; }
.number-marker {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  margin-right: 14px;
}

/* Why-v2 & Choose-v2 copy bumps */
.why-v2-card-body h3 { font-size: 1.35rem; }
.why-v2-card-body p  { font-size: 1rem; line-height: 1.9; }
.why-v2-tag { font-size: 0.8rem; }
.why-v2-num { min-width: 56px; height: 56px; font-size: 1.2rem; }
.why-v2-kpi { font-size: 1.35rem; padding: 9px 18px; }

.choose-v2-text h3 { font-size: 2rem; }
.choose-v2-text p  { font-size: 1.1rem; line-height: 2; }
.choose-v2-num-big { font-size: 4rem; }
.choose-v2-jump a { padding: 12px 22px 12px 12px; font-size: 1rem; }
.choose-v2-jump a span { width: 30px; height: 30px; font-size: 0.8rem; }

/* 10. Footer — no tiny text */
.footer-col p,
.footer-col a { font-size: 1.02rem; line-height: 1.9; }
.footer-bottom { font-size: 1rem; padding: 24px 0; }
.footer-col h4 { font-size: 1.25rem; }
.footer-qr img { width: 150px; height: 150px; }

/* 11. Floating back-to-top — much larger */
.floating-nav {
  width: 64px;
  height: 64px;
  font-size: 1.7rem;
  right: 28px;
  bottom: 28px;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(46,163,242,0.5);
}

/* 12. Hero v3 — calmer animations, stats ribbon readable */
.hero-v3-bg { animation: none !important; }  /* kill slow drift */
.hero-v3-orb { animation-duration: 40s; opacity: 0.3; }
.hero-v3-product-main { animation-duration: 10s; }  /* slower float */
.hero-v3-ring-1,
.hero-v3-ring-2,
.hero-v3-ring-3 { animation-duration: 120s; }  /* slower spin */
.hero-v3-stat-num { font-size: 2.3rem; }
.hero-v3-stat-label { font-size: 0.98rem; }

/* Product circle names — revert to hover-reveal; larger elder-readable text */
.hero-v3-sat-name {
  font-size: 0.95rem;
  padding: 7px 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.hero-v3-sat:hover .hero-v3-sat-name,
.hero-v3-sat:focus-within .hero-v3-sat-name {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* Marquee — inline EN by default; ZH revealed on hover with larger elder text */
.hero-v3-mq-item img { width: 46px; height: 46px; }
.hero-v3-mq-en { font-size: 0.98rem; font-weight: 700; }
.hero-v3-mq-zh { font-size: 0.98rem; font-weight: 700; color: #ffd94a !important; }
.hero-v3-mq-item:hover .hero-v3-mq-zh { max-width: 320px; }
/* Slower marquee speed helps elders track the pills */
.hero-v3-marquee-track { animation-duration: 60s; }

/* 13. Focus indicators — unmistakable for keyboard & touch users */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f5a300;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255,217,74,0.35);
}

/* 14. Tone down aggressive hover transforms that disorient elders */
.card:hover,
.choose-card:hover,
.why-v2-card:hover,
.cert-card:hover {
  transform: none !important;  /* no lift */
}
.why-v2-card-media img,
.concern-card-v2 img,
.cert-card img { transform: none !important; }

/* 15. Dropdown menu shows arrow large enough */
.main-nav li.has-dropdown > a::before { font-size: 0.9rem; margin-left: 6px; }

/* 16. Section titles breathe a bit more */
.section-title p { font-size: 1.15rem; }

/* 17. Certification logos / badges visible */
.cert-icon img { width: 72px; height: 72px; }
.cert-badge, .cert-card-v2-tag, .choose-v2-eyebrow,
.why-v2-eyebrow { font-size: 0.88rem; letter-spacing: 2px; }

/* 18. Contact page — big obvious entries */
.contact-item h4 { font-size: 1.2rem; }
.contact-item p  { font-size: 1.1rem; line-height: 1.8; }
.contact-item-icon { width: 56px; height: 56px; font-size: 1.5rem; }
.line-qr img { width: 200px; height: 200px; }
.line-qr p   { font-size: 1rem; }

/* 19. Tutorial step numbers + images visible */
.step-num { font-size: 1rem; padding: 4px 14px; }
.tutorial-step-body h4 { font-size: 1.25rem; }
.tutorial-step-body p { font-size: 1.02rem; line-height: 1.85; }

/* 20. EZWAY step badges and bodies */
.ezway-step-body h3 { font-size: 1.35rem; }
.ezway-step-body p  { font-size: 1rem; line-height: 1.85; }
.ezway-step-badge { width: 48px; height: 48px; font-size: 1.1rem; }
.ezway-notes ol li { font-size: 1.02rem; line-height: 1.9; }
.ezway-method p { font-size: 1rem; line-height: 1.85; }

/* 21. FAQ iHealth pointer callouts */
.faq-ihealth-pointer { font-size: 1rem; line-height: 1.9; padding: 16px 20px; }

/* 22. Skip-to-content link (hidden until focused) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #f5a300;
  color: #fff;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

/* 23. Font-size toggle widget (floating, right-center) */
.text-size-toggle {
  position: fixed;
  right: 16px;
  top: calc(var(--header-height) + 20px);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.text-size-toggle-label {
  font-size: 0.72rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(46,163,242,0.2);
  margin-bottom: 2px;
}
.text-size-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f6fbff;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.text-size-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}
.text-size-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary-dark);
  box-shadow: 0 3px 10px rgba(46,163,242,0.35);
}
.text-size-btn-sm { font-size: 0.82rem; }
.text-size-btn-md { font-size: 1.05rem; }
.text-size-btn-lg { font-size: 1.3rem; }

/* 24. Mobile adjustments — keep content readable, move toggle */
@media (max-width: 767px) {
  html { font-size: 17px; }
  html.text-size-2 { font-size: 19px; }
  html.text-size-3 { font-size: 21px; }
  :root { --header-height: 78px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
  .btn { padding: 14px 28px; font-size: 1.05rem; min-height: 50px; }
  .text-size-toggle {
    top: auto;
    bottom: 110px;          /* above floating back-to-top */
    right: 12px;
    flex-direction: row;
    padding: 6px;
    gap: 4px;
  }
  .text-size-toggle-label { display: none; }
  .text-size-btn { width: 44px; height: 44px; }
  .floating-nav { width: 56px; height: 56px; font-size: 1.5rem; }
  /* Marquee text readable on mobile (hover shows ZH on touch = tap) */
  .hero-v3-mq-en { font-size: 0.92rem; }
  .hero-v3-mq-zh { font-size: 0.9rem; }
  .hero-v3-sat-name { font-size: 0.82rem; padding: 5px 10px; }
}

/* 25. Respect reduced-motion for elderly sensitivity to motion sickness */
@media (prefers-reduced-motion: reduce) {
  .hero-v3-orb,
  .hero-v3-ring-1, .hero-v3-ring-2, .hero-v3-ring-3,
  .hero-v3-product-main,
  .hero-v3-marquee-track,
  .hero-v3-sat,
  .why-v2-accent,
  .choose-v2-title-accent,
  .hero-v3-eyebrow-dot,
  .why-v2-eyebrow-dot,
  .choose-v2-eyebrow-dot {
    animation: none !important;
  }
}

/* =========================================================
   Emphasized STEP 4 重要注意事項 alert box (order-tutorial)
   High-contrast red-amber palette to demand attention.
   ========================================================= */
.step4-alert {
  margin: 2rem 0;
  padding: 28px 30px 26px;
  background: linear-gradient(135deg, #fff4e6 0%, #ffe5d0 100%);
  border: 3px solid #e55a2b;
  border-left-width: 10px;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(229,90,43,0.22);
  position: relative;
}
.step4-alert::before {
  content: '';
  position: absolute;
  top: -3px; right: -3px; bottom: -3px; left: -3px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255,217,74,0.35), rgba(229,90,43,0) 60%);
  z-index: -1;
  pointer-events: none;
}
.step4-alert-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px dashed rgba(229,90,43,0.4);
}
.step4-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #c0392b 100%);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 14px rgba(192,57,43,0.45);
  animation: step4AlertPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes step4AlertPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 4px 14px rgba(192,57,43,0.45); }
  50%      { transform: scale(1.08); box-shadow: 0 6px 20px rgba(255,107,53,0.6); }
}
.step4-alert-head h4 {
  margin: 0;
  font-size: 1.5rem;
  color: #8a2a0d;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.step4-alert-head h4 strong {
  color: #c0392b;
  background: linear-gradient(90deg, #ffd94a 0%, #ffd94a 100%);
  background-repeat: no-repeat;
  background-size: 100% 42%;
  background-position: 0 80%;
  padding: 0 4px;
}
.step4-alert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step4-alert-list li {
  position: relative;
  padding: 14px 18px 14px 52px;
  background: #fff;
  border-radius: 10px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #2a1a0a;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(192,57,43,0.08);
  border: 1px solid rgba(229,90,43,0.18);
}
.step4-alert-list li::before {
  content: '!';
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #c0392b 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(192,57,43,0.4);
}
.step4-alert-list li strong {
  color: #c0392b;
  font-weight: 800;
}
/* Highlighted emphasis phrase — red text on yellow marker */
.step4-alert-hl {
  background: linear-gradient(90deg, #fff2a6 0%, #ffd94a 100%);
  color: #8a2a0d;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: 2px solid #e55a2b;
  text-decoration: none;
}

@media (max-width: 767px) {
  .step4-alert { padding: 22px 20px 20px; border-left-width: 8px; }
  .step4-alert-head { gap: 10px; }
  .step4-alert-icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .step4-alert-head h4 { font-size: 1.25rem; }
  .step4-alert-list li {
    padding: 12px 14px 12px 46px;
    font-size: 1rem;
    line-height: 1.8;
  }
  .step4-alert-list li::before { left: 12px; top: 12px; width: 24px; height: 24px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step4-alert-icon { animation: none !important; }
}

/* =========================================================
   Scholar cards (testimonials page — photo-free, quote-forward)
   ========================================================= */
.scholar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 1.8rem 0 2rem;
}

.scholar-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 30px 26px;
  box-shadow: 0 6px 24px rgba(46,163,242,0.08);
  border: 1px solid rgba(46,163,242,0.1);
  border-top: 5px solid var(--color-primary);
  transition: box-shadow 0.25s ease;
}
.scholar-card:hover { box-shadow: 0 12px 32px rgba(46,163,242,0.16); }
.scholar-card-featured {
  border-top-color: #ffd94a;
  background: linear-gradient(180deg, #fffaed 0%, #ffffff 140px);
}

.scholar-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(46,163,242,0.2);
}
.scholar-head-text { flex: 1; min-width: 0; }
.scholar-monogram {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(46,163,242,0.35);
}
.scholar-monogram-zh {
  font-size: 1.35rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #e8506d 0%, #ad2a42 100%);
  box-shadow: 0 4px 14px rgba(173,42,66,0.35);
}
.scholar-card-featured .scholar-monogram {
  background: linear-gradient(135deg, #ffd94a 0%, #f5a300 100%);
  color: #5a3800;
  box-shadow: 0 4px 14px rgba(245,163,0,0.4);
}

.scholar-name {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--color-heading);
  line-height: 1.3;
}
.scholar-name .scholar-zh {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.3px;
}
.scholar-affil {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  line-height: 1.5;
}
.scholar-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.scholar-meta span { display: inline-block; }

.scholar-quote {
  position: relative;
  margin: 1rem 0 1.2rem;
  padding: 18px 22px 18px 54px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2a2a2a;
  font-weight: 600;
  font-style: normal;
  background: linear-gradient(135deg, #f4faff 0%, #e9f6ff 100%);
  border-radius: 10px;
  border-left: 4px solid var(--color-primary);
}
.scholar-card-featured .scholar-quote {
  background: linear-gradient(135deg, #fff8dc 0%, #fff4bf 100%);
  border-left-color: #f5a300;
}
.scholar-quote::before {
  content: '"';
  position: absolute;
  left: 14px;
  top: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.5;
  font-weight: 700;
}
.scholar-card-featured .scholar-quote::before { color: #f5a300; }

.scholar-body { color: var(--color-body); line-height: 1.85; }
.scholar-body p { margin: 0 0 0.8rem; }
.scholar-body p:last-child { margin-bottom: 0; }
.scholar-rep-title {
  margin-top: 0.8rem !important;
  margin-bottom: 0.4rem !important;
  font-weight: 700;
  color: var(--color-heading);
}
.scholar-bullets {
  margin: 0 0 0.8rem 1.3rem;
  padding: 0;
  list-style: disc;
  color: var(--color-body);
}
.scholar-bullets li { margin: 4px 0; line-height: 1.8; }
.scholar-bullets-strong li strong { color: var(--color-primary-dark); font-weight: 700; }

.scholar-book {
  margin-top: 1.4rem;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(245,163,0,0.25);
  border-radius: 12px;
  box-shadow: inset 4px 0 0 #ffd94a;
  padding-left: 24px;
}
.scholar-book-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #8a6400;
  margin-bottom: 0.3rem;
}
.scholar-book-zh {
  margin: 0 0 0.6rem !important;
  font-size: 0.92rem;
  color: #5a4200;
  font-weight: 600;
}
.scholar-book p { font-size: 0.96rem; line-height: 1.85; margin: 0.5rem 0; }
.scholar-book ul { margin-top: 0.4rem; }

.scholar-ref {
  margin: 0.8rem 0 0 !important;
  font-size: 0.85rem;
  color: #888;
}
.scholar-ref a { color: var(--color-primary-dark); text-decoration: underline; }

@media (max-width: 640px) {
  .scholar-card { padding: 22px 20px 20px; }
  .scholar-head { gap: 14px; }
  .scholar-monogram { width: 58px; height: 58px; font-size: 1.25rem; border-radius: 12px; }
  .scholar-monogram-zh { font-size: 1.05rem; }
  .scholar-name { font-size: 1.15rem; }
  .scholar-name .scholar-zh { display: block; margin-left: 0; margin-top: 2px; }
  .scholar-quote { padding: 14px 16px 14px 44px; font-size: 1rem; }
  .scholar-quote::before { font-size: 2.6rem; left: 10px; top: 0; }
  .scholar-book { padding: 14px 16px 14px 20px; padding-left: 20px; }
}

/* =====================================================================
   RWD baseline polish — ensures every page degrades cleanly on mobile
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
img, video, picture, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}
table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }

/* Tablet — large breakpoint catch-all */
@media (max-width: 1024px) {
  .container, .container-narrow { padding-left: 20px; padding-right: 20px; }
}

/* Phone — fluid type, larger tap targets, no iOS input-zoom */
@media (max-width: 767px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  h3 { font-size: clamp(1.2rem, 4.2vw, 1.5rem); }
  .container, .container-narrow { padding-left: 16px; padding-right: 16px; }
  .btn, button.btn, a.btn { min-height: 44px; padding: 12px 22px; }
  input, textarea, select { font-size: 16px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .container, .container-narrow { padding-left: 12px; padding-right: 12px; }
  .btn { padding: 10px 16px; font-size: 14px; }
}

/* =====================================================================
   Content protection — anti-copy / anti-drag for text & images
   (client-side only; deters casual copying, cannot stop a determined user)
   ===================================================================== */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
/* Form fields must remain selectable / editable */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* =====================================================================
   Header: keep brand + nav on a single row on standard desktops.
   The header container is allowed to extend past the global --max-width
   so the brand text and full nav fit without wrapping.
   ===================================================================== */
@media (min-width: 768px) {
  .site-header .header-inner.container {
    max-width: 1480px;
    padding-left: 24px;
    padding-right: 24px;
    gap: 16px;
    flex-wrap: nowrap;
  }
  .site-header .logo {
    font-size: 1.05rem;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .site-header .header-logo {
    height: 38px;
  }
  .site-header .main-nav ul {
    flex-wrap: nowrap;
    gap: 0;
  }
  .site-header .main-nav a {
    padding: 10px 10px;
    font-size: 0.92rem;
    white-space: nowrap;
  }
  .site-header .main-nav .dropdown-menu a {
    padding: 12px 18px;
    font-size: 0.95rem;
    white-space: normal;
  }
}
@media (min-width: 1100px) {
  .site-header .logo { font-size: 1.15rem; }
  .site-header .main-nav a { padding: 10px 13px; font-size: 0.98rem; }
}
@media (min-width: 1320px) {
  .site-header .logo { font-size: 1.3rem; }
  .site-header .main-nav a { padding: 10px 16px; font-size: 1.02rem; }
}

/* =====================================================================
   FAQ index page: image to the right of each category list.
   ===================================================================== */
.faq-category-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto 3rem;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.faq-category-block .faq-category-text { min-width: 0; }
.faq-category-block .faq-group-heading {
  margin-top: 0;
  max-width: none;
}
.faq-category-block .faq-index-list {
  margin: 0;
  padding-left: 1.2rem;
}
.faq-category-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: #f3f6fb;
}
.faq-category-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.faq-category-image .faq-category-image-caption {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  background: #fff;
}
@media (max-width: 900px) {
  .faq-category-block {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .faq-category-image {
    position: static;
    max-width: 520px;
    margin: 0 auto;
  }
  .faq-category-image img { height: 200px; }
}

/* =====================================================================
   FAQ detail page (Q1-Q47): category-themed answer block with bigger,
   high-contrast text and a relevant category banner above the answer.
   ===================================================================== */
.page-faq-item .faq-detail { max-width: 880px; }

.faq-category-banner {
  width: 100%;
  margin: 0 auto 1.6rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.faq-category-banner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.faq-category-banner .faq-category-banner-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .faq-category-banner img { height: 180px; }
}

.faq-question-restate {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: #4a5a6a;
  margin: 0 0 1rem;
  padding: 10px 16px;
  background: #fff;
  border: 1px dashed #b9c3cf;
  border-left: 4px solid currentColor;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.faq-cat-order   .faq-question-restate { color: #1976d2; border-left-color: #1976d2; }
.faq-cat-intro   .faq-question-restate { color: #00897b; border-left-color: #00897b; }
.faq-cat-use     .faq-question-restate { color: #43a047; border-left-color: #43a047; }
.faq-cat-fraud   .faq-question-restate { color: #c62828; border-left-color: #c62828; }
.faq-cat-choose  .faq-question-restate { color: #ef6c00; border-left-color: #ef6c00; }
.faq-cat-ihealth .faq-question-restate { color: #5c6bc0; border-left-color: #5c6bc0; }

.page-faq-item .faq-answer {
  font-size: 1.2rem;
  line-height: 2;
  color: #1a1a1a;
  padding: 1.8rem 2rem;
  border-radius: 14px;
  border-left: 8px solid currentColor;
  margin-bottom: 1.8rem;
}
.page-faq-item .faq-answer p {
  font-size: 1.18rem;
  line-height: 2;
  margin-bottom: 1.1rem;
  color: #1a1a1a;
}
.page-faq-item .faq-answer p:last-child { margin-bottom: 0; }
.page-faq-item .faq-answer ul {
  margin: 0.6rem 0 1rem 1.6rem;
  padding-left: 0.5rem;
}
.page-faq-item .faq-answer ul li {
  font-size: 1.12rem;
  line-height: 1.95;
  padding: 4px 0;
  color: #262626;
}
.page-faq-item .faq-answer strong { color: #0d3b66; }
.page-faq-item .faq-answer .faq-ihealth-pointer {
  font-size: 1.08rem;
  line-height: 1.95;
  margin: 1.2rem 0 0 !important;
  padding: 16px 20px;
}
@media (max-width: 600px) {
  .page-faq-item .faq-answer { padding: 1.2rem 1.2rem; }
  .page-faq-item .faq-answer,
  .page-faq-item .faq-answer p { font-size: 1.08rem; line-height: 1.9; }
  .page-faq-item .faq-answer ul li { font-size: 1.02rem; }
}

/* Category color themes */
.faq-cat-order .faq-answer {
  background: #e8f3ff;             /* sky-blue tint */
  border-left-color: #1976d2;
}
.faq-cat-order .faq-category-banner-label { background: rgba(25,118,210,0.85); }

.faq-cat-intro .faq-answer {
  background: #e6f7f4;             /* teal tint */
  border-left-color: #00897b;
}
.faq-cat-intro .faq-category-banner-label { background: rgba(0,137,123,0.85); }

.faq-cat-use .faq-answer {
  background: #ebf6e6;             /* fresh-green tint */
  border-left-color: #43a047;
}
.faq-cat-use .faq-category-banner-label { background: rgba(67,160,71,0.85); }

.faq-cat-fraud .faq-answer {
  background: #fdecea;             /* warning-red tint */
  border-left-color: #c62828;
}
.faq-cat-fraud .faq-category-banner-label { background: rgba(198,40,40,0.85); }

.faq-cat-choose .faq-answer {
  background: #fff5e1;             /* amber tint */
  border-left-color: #ef6c00;
}
.faq-cat-choose .faq-category-banner-label { background: rgba(239,108,0,0.85); }

.faq-cat-ihealth .faq-answer {
  background: #efeefd;             /* indigo tint */
  border-left-color: #5c6bc0;
}
.faq-cat-ihealth .faq-category-banner-label { background: rgba(92,107,192,0.85); }

/* Category-tinted banner caption on faq.html index */
.faq-cat-order .faq-category-image-caption { color: #0d47a1; }
.faq-cat-intro .faq-category-image-caption { color: #00695c; }
.faq-cat-use .faq-category-image-caption { color: #2e7d32; }
.faq-cat-fraud .faq-category-image-caption { color: #b71c1c; }
.faq-cat-choose .faq-category-image-caption { color: #bf360c; }
.faq-cat-ihealth .faq-category-image-caption { color: #283593; }
