@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700;900&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");

:root {
  --qsh-paper: #f7f2e8;
  --qsh-ivory: #fffdf8;
  --qsh-celadon: #dce8df;
  --qsh-celadon-soft: #edf4ef;
  --qsh-jade: #2f7d5a;
  --qsh-jade-dark: #174a3a;
  --qsh-ink: #17251e;
  --qsh-copy: #405248;
  --qsh-muted: #68776e;
  --qsh-gold: #b88736;
  --qsh-gold-soft: #efe1bd;
  --qsh-danger: #a74632;
  --qsh-line: rgba(23, 74, 58, 0.16);
  --qsh-shadow: 0 18px 48px rgba(23, 74, 58, 0.10);
  --qsh-radius: 22px;
  --qsh-max: 1180px;
}

/* ===== Test result readability ===== */
.test-page .result-card {
  max-width: 980px;
  margin-inline: auto;
}

.test-page .type-table-header {
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.test-page .type-table-row {
  grid-template-columns: 1.05fr 1.9fr 1.15fr;
  padding: 18px 20px;
  gap: 18px;
  font-size: 0.96rem;
  line-height: 1.78;
}

.test-page .type-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
}

.test-page .type-feature,
.test-page .type-age {
  color: #43564d;
  font-size: 0.94rem;
  line-height: 1.78;
}

.test-page .test-cta h3 {
  font-size: 1.42rem;
  line-height: 1.45;
}

.test-page .test-cta p {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.85;
}

.test-page .test-cta .btn-primary {
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .test-page .type-table-row {
    gap: 8px;
    padding: 17px;
    font-size: 0.94rem;
  }

  .test-page .type-table-row::before,
  .test-page .type-name {
    font-size: 1rem;
  }

  .test-page .type-feature,
  .test-page .type-age {
    font-size: 0.92rem;
    line-height: 1.72;
  }

  .test-page .test-cta h3 {
    font-size: 1.22rem;
  }

  .test-page .test-cta p {
    font-size: 0.94rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--qsh-paper);
}

body,
body.mall-page,
body.knowledge-page,
body.member-page {
  margin: 0;
  padding-top: 72px !important;
  padding-bottom: 0 !important;
  overflow-x: hidden;
  background: var(--qsh-paper) !important;
  color: var(--qsh-ink) !important;
  font-family: "Noto Sans SC", sans-serif !important;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body p,
body li,
body label,
body input,
body textarea,
body button,
body a {
  font-family: "Noto Sans SC", sans-serif;
}

body p,
body li {
  color: var(--qsh-copy);
}

h1,
h2,
h3,
h4,
h5,
.page-header h1,
.footer-title {
  margin-top: 0;
  color: var(--qsh-ink);
  font-family: "Noto Serif SC", serif !important;
  line-height: 1.35;
  text-wrap: balance;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(64px, 7vw, 96px) max(24px, calc((100vw - var(--qsh-max)) / 2)) !important;
}

.topbar {
  position: fixed !important;
  z-index: 1000;
  inset: 0 0 auto 0;
  width: 100%;
  height: 72px !important;
  display: flex !important;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--qsh-max)) / 2)) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--qsh-line) !important;
  background: rgba(255, 253, 248, 0.96) !important;
  box-shadow: 0 8px 28px rgba(23, 74, 58, 0.06) !important;
  backdrop-filter: blur(18px);
}

.topbar-logo,
.brand-logo,
.logo,
.site-logo {
  flex: 0 0 auto;
  color: var(--qsh-jade-dark) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 1.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.topbar-logo span,
.brand-logo span,
.logo span,
.site-logo span {
  color: var(--qsh-gold) !important;
}

.topbar-links {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px !important;
  min-width: 0;
  margin: 0 auto;
  background: transparent !important;
}

.nav-link,
.topbar-link {
  position: relative;
  padding: 10px 12px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #385247 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-link::after,
.topbar-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  background: var(--qsh-gold);
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.topbar-link:hover,
.topbar-link.active {
  color: var(--qsh-jade-dark) !important;
}

.nav-link:hover::after,
.nav-link.active::after,
.topbar-link:hover::after,
.topbar-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar-user,
.topbar-btn,
.login-btn {
  min-height: 42px;
  padding: 0 18px !important;
  border: 1px solid var(--qsh-jade-dark) !important;
  border-radius: 999px !important;
  background: var(--qsh-jade-dark) !important;
  color: var(--qsh-ivory) !important;
  box-shadow: none !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  cursor: pointer;
}

.topbar-user:hover,
.topbar-btn:hover,
.login-btn:hover {
  background: var(--qsh-jade) !important;
  border-color: var(--qsh-jade) !important;
  transform: translateY(-1px);
}

.topbar-menu {
  display: none !important;
}

.topbar-menu-panel {
  position: fixed !important;
  z-index: 999;
  top: 64px !important;
  right: 14px !important;
  left: 14px !important;
  max-height: calc(100dvh - 82px);
  padding: 12px !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: 18px !important;
  background: var(--qsh-ivory) !important;
  box-shadow: var(--qsh-shadow) !important;
  overflow-y: auto;
}

.menu-link {
  display: block;
  padding: 13px 14px !important;
  border-radius: 12px !important;
  color: var(--qsh-ink) !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  text-decoration: none;
}

.menu-link:hover,
.menu-link.active {
  background: var(--qsh-celadon-soft) !important;
  color: var(--qsh-jade-dark) !important;
}

.hero {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  min-height: 650px;
  padding: 0 !important;
  background: var(--qsh-ivory) !important;
  isolation: isolate;
}

.hero::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  min-height: 650px;
  background: #102f24 url("../assets/qsh-hero-storefront-original.webp") center / contain no-repeat;
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100% !important;
  max-width: 660px !important;
  margin: 0 0 0 auto !important;
  padding: 80px 54px 76px max(24px, calc((100vw - var(--qsh-max)) / 2)) !important;
  color: var(--qsh-ink) !important;
}

.hero-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px !important;
  padding: 8px 13px !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: 999px !important;
  background: var(--qsh-celadon-soft) !important;
  color: var(--qsh-jade-dark) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-badge i {
  color: var(--qsh-jade);
}

.hero h1 {
  max-width: 580px;
  margin: 0 0 22px !important;
  color: var(--qsh-jade-dark) !important;
  font-size: clamp(2.5rem, 4vw, 4.75rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.23 !important;
  text-shadow: none !important;
}

.hero h1 .highlight {
  color: var(--qsh-ink) !important;
  background: none !important;
}

.hero-subtitle {
  max-width: 550px;
  margin: 0 0 30px !important;
  color: var(--qsh-copy) !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}

.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 0 0 34px !important;
  padding: 18px 0 !important;
  border-top: 1px solid var(--qsh-line);
  border-bottom: 1px solid var(--qsh-line);
  gap: 0 !important;
}

.hero-stat {
  padding: 0 18px !important;
  border-right: 1px solid var(--qsh-line);
  text-align: left !important;
}

.hero-stat:first-child {
  padding-left: 0 !important;
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat-num {
  color: var(--qsh-jade-dark) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
}

.hero-stat-label {
  margin-top: 2px;
  color: var(--qsh-muted) !important;
  font-size: 0.76rem !important;
}

.hero-cta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px !important;
}

.hero-btn-primary,
.hero-btn-secondary,
.btn-primary,
.btn-gold,
.product-card-btn,
.course-btn,
.agent-card-btn,
.knowledge-btn,
.download-btn,
.referral-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px !important;
  border: 1px solid var(--qsh-jade-dark) !important;
  border-radius: 12px !important;
  background: var(--qsh-jade-dark) !important;
  color: var(--qsh-ivory) !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: 180ms ease;
}

.hero-btn-secondary,
.knowledge-btn:not(.primary) {
  background: transparent !important;
  color: var(--qsh-jade-dark) !important;
}

.hero-btn-primary:hover,
.hero-btn-secondary:hover,
.btn-primary:hover,
.btn-gold:hover,
.product-card-btn:hover,
.course-btn:hover,
.agent-card-btn:hover,
.knowledge-btn:hover,
.download-btn:hover,
.referral-btn:hover {
  background: var(--qsh-jade) !important;
  border-color: var(--qsh-jade) !important;
  color: var(--qsh-ivory) !important;
  transform: translateY(-2px);
}

.brand-section,
.product-section,
.knowledge-section,
.download-section,
.member-section,
.referral-section,
.trace-section,
.test-page {
  background: var(--qsh-paper) !important;
}

.pain-section,
.course-section {
  background: var(--qsh-celadon-soft) !important;
}

.brand-header,
.pain-header,
.product-header,
.course-header,
.agent-header,
.section-title {
  max-width: 780px;
  margin: 0 auto 42px !important;
  text-align: center !important;
}

.brand-header h2,
.pain-header h2,
.product-header h2,
.course-header h2,
.agent-header h2,
.section-title h2,
.knowledge-intro h2,
.download-intro h2 {
  margin-bottom: 12px !important;
  color: var(--qsh-jade-dark) !important;
  font-size: clamp(1.9rem, 3vw, 2.75rem) !important;
  font-weight: 900 !important;
}

.brand-header p,
.pain-header p,
.product-header p,
.course-header p,
.agent-header p,
.section-title p {
  margin: 0 !important;
  color: var(--qsh-muted) !important;
  font-size: 0.95rem !important;
}

.brand-cards,
.pain-grid,
.product-grid,
.course-grid,
.agent-grid,
.knowledge-grid,
.download-grid {
  width: 100% !important;
  max-width: var(--qsh-max) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.brand-cards {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px !important;
}

.brand-card,
.pain-card,
.product-card,
.course-card,
.agent-card,
.knowledge-card,
.download-card,
.referral-card,
.trace-card,
.member-profile,
.task-card,
.level-card,
.agreement-card,
.lock-section,
.trial-card {
  overflow: hidden;
  border: 1px solid var(--qsh-line) !important;
  border-radius: var(--qsh-radius) !important;
  background: var(--qsh-ivory) !important;
  box-shadow: none !important;
  color: var(--qsh-ink) !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-card:hover,
.pain-card:hover,
.product-card:hover,
.course-card:hover,
.agent-card:hover,
.knowledge-card:hover,
.download-card:hover,
.referral-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 74, 58, 0.32) !important;
  box-shadow: var(--qsh-shadow) !important;
}

.brand-card {
  min-height: 100%;
  padding: 22px !important;
  text-align: left !important;
}

.brand-card-icon {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  margin: 0 0 22px !important;
  overflow: hidden;
  border-radius: 16px !important;
  background: var(--qsh-celadon) !important;
}

.brand-card-icon img,
.brand-card img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}

.brand-card h3,
.pain-card h3,
.product-card h3,
.course-card h3,
.agent-card h3,
.knowledge-card h3,
.download-card h3 {
  margin-bottom: 10px !important;
  color: var(--qsh-ink) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

.brand-card p {
  margin: 0 !important;
  color: var(--qsh-copy) !important;
  font-size: 0.9rem !important;
  line-height: 1.85 !important;
}

.pain-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px !important;
  overflow: hidden;
  border: 1px solid var(--qsh-line);
  border-radius: var(--qsh-radius);
  background: var(--qsh-ivory);
}

.pain-card {
  padding: 28px !important;
  border: 0 !important;
  border-right: 1px solid var(--qsh-line) !important;
  border-radius: 0 !important;
}

.pain-card:last-child {
  border-right: 0 !important;
}

.pain-card.qishe {
  background: var(--qsh-celadon) !important;
}

.pain-card-header {
  display: block !important;
  margin-bottom: 20px !important;
}

.pain-card-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 48px;
  height: 32px !important;
  margin: 0 0 12px !important;
  padding: 0 12px !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: 999px !important;
  background: var(--qsh-paper) !important;
  color: var(--qsh-jade-dark) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.pain-card ul,
.product-card-features,
.course-items,
.agent-card ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pain-card li,
.product-card-features li,
.course-items li,
.agent-card li {
  position: relative;
  padding: 10px 0 10px 22px !important;
  border-bottom: 1px solid rgba(23, 74, 58, 0.10);
  color: var(--qsh-copy) !important;
  font-size: 0.86rem !important;
  line-height: 1.65 !important;
}

.pain-card li:last-child,
.product-card-features li:last-child,
.course-items li:last-child,
.agent-card li:last-child {
  border-bottom: 0;
}

.pain-card li::before,
.product-card-features li::before,
.course-items li::before,
.agent-card li::before {
  content: "\f058" !important;
  position: absolute;
  top: 11px;
  left: 0;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--qsh-jade) !important;
  font-family: "Font Awesome 6 Free" !important;
  font-size: 0.78rem;
  font-weight: 900;
}

.pain-card.hospital li::before {
  content: "\f06a" !important;
  color: var(--qsh-danger) !important;
}

.pain-card.store li::before {
  content: "\f071" !important;
  color: var(--qsh-gold) !important;
}

.product-tabs {
  display: flex !important;
  justify-content: center;
  gap: 10px !important;
  max-width: var(--qsh-max);
  margin: 0 auto 28px !important;
}

.product-tab {
  min-height: 42px;
  padding: 0 18px !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: 999px !important;
  background: var(--qsh-ivory) !important;
  color: var(--qsh-copy) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.product-tab:hover,
.product-tab.active {
  background: var(--qsh-jade-dark) !important;
  border-color: var(--qsh-jade-dark) !important;
  color: var(--qsh-ivory) !important;
}

.product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px !important;
}

.product-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
}

.product-card-img,
.product-img {
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--qsh-paper) !important;
}

.product-card-img img,
.product-img img,
.product-card > img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

.product-card-body,
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px !important;
  background: var(--qsh-ivory) !important;
}

.product-card-tag,
.product-img .badge,
.badge,
.resource-tag,
.knowledge-tag,
.course-tag {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  width: auto !important;
  margin: 0 0 12px !important;
  padding: 6px 11px !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: 999px !important;
  background: var(--qsh-celadon-soft) !important;
  color: var(--qsh-jade-dark) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
}

.product-card-spec,
.product-spec {
  margin: 0 0 16px !important;
  color: var(--qsh-muted) !important;
  font-size: 0.8rem !important;
  line-height: 1.65 !important;
}

.product-card-price,
.price-row {
  margin: 0 0 16px !important;
  color: var(--qsh-jade-dark) !important;
}

.product-card-price .price,
.price {
  color: var(--qsh-jade-dark) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 1.65rem !important;
  font-weight: 900 !important;
}

.product-card-features {
  flex: 1;
  margin-bottom: 22px !important;
}

.product-card-btn {
  width: 100%;
  margin-top: auto;
}

.course-grid,
.agent-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px !important;
}

.course-card,
.agent-card {
  position: relative;
  padding: 30px !important;
  text-align: left !important;
}

.course-card.featured,
.course-card.medium,
.agent-card.featured {
  border-color: rgba(184, 135, 54, 0.44) !important;
  box-shadow: inset 0 4px 0 var(--qsh-gold) !important;
}

.course-duration,
.course-note,
.agent-card-price span {
  color: var(--qsh-muted) !important;
  font-size: 0.8rem !important;
}

.course-total {
  margin: 20px 0 14px !important;
  padding: 16px !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: 14px !important;
  background: var(--qsh-celadon-soft) !important;
}

.course-total-price,
.agent-card-price {
  color: var(--qsh-jade-dark) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 1.65rem !important;
  font-weight: 900 !important;
}

.agent-section {
  position: relative;
  isolation: isolate;
  background: var(--qsh-jade-dark) url("../assets/qsh-herbal-craft-v2.webp") center / cover no-repeat !important;
}

.agent-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(14, 55, 42, 0.90);
}

.agent-header h2,
.agent-header p {
  color: var(--qsh-ivory) !important;
}

.agent-card {
  background: rgba(255, 253, 248, 0.96) !important;
}

.page-header {
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(58px, 7vw, 88px) max(24px, calc((100vw - var(--qsh-max)) / 2)) !important;
  border: 0 !important;
  background: var(--qsh-jade-dark) !important;
  text-align: center !important;
}

.page-header h1,
.page-header h1 span {
  margin-bottom: 10px !important;
  color: var(--qsh-ivory) !important;
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

.page-header p,
.page-header .subtitle {
  max-width: 680px;
  margin: 0 auto !important;
  color: rgba(255, 253, 248, 0.80) !important;
  font-size: 0.95rem !important;
}

.knowledge-intro,
.download-intro,
.download-guide,
.knowledge-flow {
  max-width: var(--qsh-max);
  margin: 0 auto 34px !important;
  padding: clamp(28px, 4vw, 44px) !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: var(--qsh-radius) !important;
  background: var(--qsh-ivory) !important;
}

.knowledge-grid,
.download-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px !important;
}

.knowledge-card,
.download-card {
  padding: 26px !important;
}

.knowledge-index,
.download-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 54px !important;
  height: 54px !important;
  margin-bottom: 18px !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: 15px !important;
  background: var(--qsh-celadon-soft) !important;
  color: var(--qsh-jade-dark) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
}

.content,
.page-content,
.main-content {
  width: min(calc(100% - 40px), 900px) !important;
  max-width: 900px !important;
  margin: clamp(40px, 6vw, 74px) auto !important;
  padding: clamp(26px, 5vw, 56px) !important;
  border: 1px solid var(--qsh-line) !important;
  border-radius: var(--qsh-radius) !important;
  background: var(--qsh-ivory) !important;
  box-shadow: none !important;
}

.content h2,
.page-content h2,
.main-content h2 {
  margin: 34px 0 14px !important;
  color: var(--qsh-jade-dark) !important;
  font-size: 1.35rem !important;
}

.content h2:first-child,
.page-content h2:first-child,
.main-content h2:first-child {
  margin-top: 0 !important;
}

.content h3,
.page-content h3,
.main-content h3 {
  color: var(--qsh-ink) !important;
  font-size: 1.05rem !important;
}

.alert-box,
.alert-box.red {
  padding: 18px 20px !important;
  border: 1px solid rgba(167, 70, 50, 0.28) !important;
  border-radius: 14px !important;
  background: #fff4ef !important;
  color: #6d2f22 !important;
}

.member-section,
.referral-section,
.trace-section {
  min-height: 54vh;
}

.member-profile,
.referral-card,
.trace-card,
.test-card,
.test-container {
  max-width: 880px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: clamp(24px, 5vw, 42px) !important;
}

input,
textarea,
select,
.form-control,
.trace-input input {
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(23, 74, 58, 0.22) !important;
  border-radius: 12px !important;
  background: var(--qsh-ivory) !important;
  color: var(--qsh-ink) !important;
  font-size: 0.92rem !important;
  outline: none;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--qsh-jade) !important;
  box-shadow: 0 0 0 4px rgba(47, 125, 90, 0.12) !important;
}

.modal-overlay,
.video-detail-overlay {
  background: rgba(23, 37, 30, 0.72) !important;
  backdrop-filter: blur(8px);
}

.modal-box,
.video-detail-box {
  border: 1px solid var(--qsh-line) !important;
  border-radius: 22px !important;
  background: var(--qsh-ivory) !important;
  box-shadow: 0 28px 80px rgba(23, 37, 30, 0.26) !important;
}

.modal-header {
  border-bottom: 1px solid var(--qsh-line) !important;
  background: var(--qsh-paper) !important;
}

.modal-header h3 i,
.video-upload-icon i,
.video-thumb i,
.result-icon i {
  color: var(--qsh-jade);
}

.video-upload-icon,
.video-thumb,
.result-icon {
  color: var(--qsh-jade) !important;
}

.modal-close,
.video-remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
}

.modal-close::before,
.video-remove::before {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-size: 0.95rem;
  font-weight: 900;
}

.download-icon {
  font-size: 0 !important;
}

.download-icon::before {
  content: "\f15c";
  font-family: "Font Awesome 6 Free";
  font-size: 1.15rem;
  font-weight: 900;
}

.download-card:nth-child(2) .download-icon::before {
  content: "\f46d";
}

.download-card:nth-child(3) .download-icon::before {
  content: "\f144";
}

.download-card:nth-child(4) .download-icon::before {
  content: "\f03e";
}

.download-card.is-member .download-icon::before {
  content: "\f023";
}

.trace-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
}

.trace-icon::before {
  content: "\f06c";
  color: var(--qsh-jade);
  font-family: "Font Awesome 6 Free";
  font-size: 1rem;
  font-weight: 900;
}

.trace-item:nth-child(2) .trace-icon::before {
  content: "\f4d8";
}

.trace-item:nth-child(3) .trace-icon::before {
  content: "\f0c3";
}

.trace-item:nth-child(4) .trace-icon::before {
  content: "\f494";
}

.footer {
  padding: 64px max(24px, calc((100vw - var(--qsh-max)) / 2)) 28px !important;
  background: var(--qsh-jade-dark) !important;
  color: rgba(255, 253, 248, 0.82) !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 38px !important;
  max-width: var(--qsh-max) !important;
  margin: 0 auto !important;
  text-align: left !important;
}

.footer-brand-col {
  display: block !important;
  text-align: left !important;
}

.footer-brand {
  display: block !important;
  margin: 0 0 16px !important;
  color: var(--qsh-ivory) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  text-align: left !important;
  white-space: nowrap;
}

.footer-brand span {
  color: #d9b568 !important;
}

.footer-desc {
  max-width: 320px !important;
  margin: 0 !important;
  color: rgba(255, 253, 248, 0.72) !important;
  font-size: 0.8rem !important;
  line-height: 1.85 !important;
}

.footer-title {
  margin-bottom: 15px !important;
  color: #f3ddb0 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

.footer-links {
  gap: 7px !important;
}

.footer p,
.footer li,
.footer a {
  color: rgba(255, 253, 248, 0.72) !important;
  font-size: 0.78rem !important;
  line-height: 1.7 !important;
}

.footer a:hover {
  color: #f3ddb0 !important;
}

.footer-bottom {
  max-width: var(--qsh-max) !important;
  margin: 34px auto 0 !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(255, 253, 248, 0.14) !important;
  color: rgba(255, 253, 248, 0.56) !important;
  text-align: center !important;
}

.bottombar {
  display: none !important;
}

@keyframes qsh-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.brand-header,
.product-header,
.course-header {
  animation: qsh-reveal 520ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .topbar {
    gap: 12px;
  }

  .nav-link {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 0.82rem !important;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr) !important;
  }
}

@media (max-width: 820px) {
  body,
  body.mall-page,
  body.knowledge-page,
  body.member-page {
    padding-top: 62px !important;
    padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    font-size: 15px;
  }

  section {
    padding: 52px 16px !important;
  }

  .topbar {
    height: 62px !important;
    gap: 10px;
    padding: 0 14px !important;
  }

  .topbar-logo {
    margin-right: auto;
    font-size: 1.35rem !important;
  }

  .topbar-links {
    display: none !important;
  }

  #userArea {
    display: flex !important;
  }

  .topbar-user {
    min-height: 36px;
    padding: 0 12px !important;
    font-size: 0.72rem !important;
  }

  .topbar-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
    border: 1px solid var(--qsh-line) !important;
    border-radius: 11px !important;
    background: var(--qsh-ivory) !important;
    color: var(--qsh-jade-dark) !important;
    font-size: 0 !important;
  }

  .topbar-menu::before {
    content: "\f0c9";
    font-family: "Font Awesome 6 Free";
    font-size: 1rem;
    font-weight: 900;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
    max-width: none !important;
    margin: 0 !important;
    padding: 48px 18px 38px !important;
    text-align: left !important;
  }

  .hero::before {
    grid-column: 1;
    grid-row: 2;
    min-height: 350px;
    background-position: 62% center;
  }

  .hero-badge {
    margin-bottom: 18px !important;
    font-size: 0.72rem !important;
  }

  .hero h1 {
    max-width: 12em;
    margin-bottom: 16px !important;
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.25 !important;
  }

  .hero-subtitle {
    max-width: 38em;
    margin-bottom: 24px !important;
    font-size: 0.92rem !important;
    line-height: 1.8 !important;
  }

  .hero-stats {
    margin-bottom: 26px !important;
  }

  .hero-stat {
    padding: 0 10px !important;
  }

  .hero-stat-num {
    font-size: 1.25rem !important;
  }

  .hero-stat-label {
    font-size: 0.68rem !important;
  }

  .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 0.82rem !important;
  }

  .brand-header,
  .pain-header,
  .product-header,
  .course-header,
  .agent-header,
  .section-title {
    margin-bottom: 28px !important;
    text-align: left !important;
  }

  .brand-header h2,
  .pain-header h2,
  .product-header h2,
  .course-header h2,
  .agent-header h2,
  .section-title h2,
  .knowledge-intro h2,
  .download-intro h2 {
    font-size: 1.72rem !important;
    line-height: 1.35 !important;
  }

  .brand-header p,
  .pain-header p,
  .product-header p,
  .course-header p,
  .agent-header p,
  .section-title p {
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
  }

  .brand-cards,
  .pain-grid,
  .product-grid,
  .course-grid,
  .agent-grid,
  .knowledge-grid,
  .download-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .pain-grid {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .pain-card {
    padding: 22px !important;
    border: 1px solid var(--qsh-line) !important;
    border-radius: 18px !important;
  }

  .brand-card,
  .product-card,
  .course-card,
  .agent-card,
  .knowledge-card,
  .download-card {
    border-radius: 18px !important;
  }

  .brand-card {
    padding: 18px !important;
  }

  .brand-card-icon {
    margin-bottom: 18px !important;
  }

  .brand-card p,
  .pain-card li,
  .product-card-features li,
  .course-items li,
  .agent-card li {
    font-size: 0.82rem !important;
  }

  .product-tabs {
    justify-content: flex-start;
    margin-bottom: 20px !important;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-tab {
    flex: 0 0 auto;
  }

  .product-card-body,
  .product-body,
  .course-card,
  .agent-card {
    padding: 20px !important;
  }

  .course-card h3,
  .agent-card h3,
  .product-card h3 {
    max-width: none !important;
    font-size: 1.18rem !important;
  }

  .page-header {
    padding: 48px 18px !important;
  }

  .page-header h1 {
    font-size: 2rem !important;
  }

  .knowledge-intro,
  .download-intro,
  .download-guide,
  .knowledge-flow {
    padding: 22px !important;
    border-radius: 18px !important;
  }

  .content,
  .page-content,
  .main-content {
    width: calc(100% - 32px) !important;
    margin: 30px auto !important;
    padding: 22px !important;
    border-radius: 18px !important;
  }

  .footer {
    padding: 46px 18px 30px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 26px 18px !important;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    text-align: center !important;
  }

  .footer-brand,
  .footer-desc {
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
  }

  .footer-title {
    text-align: left !important;
  }

  .footer-bottom {
    margin-top: 26px !important;
    font-size: 0.7rem !important;
  }

  .bottombar {
    position: fixed !important;
    z-index: 1001;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--qsh-line) !important;
    background: rgba(255, 253, 248, 0.96) !important;
    box-shadow: 0 -10px 34px rgba(23, 74, 58, 0.08) !important;
    backdrop-filter: blur(16px);
  }

  .bottom-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--qsh-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
  }

  .bottom-item::before {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    color: currentColor !important;
    font-family: "Font Awesome 6 Free" !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    -webkit-mask: none !important;
    mask: none !important;
  }

  .bottom-item[data-page="index"]::before {
    content: "\f015" !important;
  }

  .bottom-item[data-page="mall"]::before {
    content: "\f54e" !important;
  }

  .bottom-item[data-page="knowledge"]::before {
    content: "\f02d" !important;
  }

  .bottom-item[data-page="member"]::before {
    content: "\f007" !important;
  }

  .bottom-item.active {
    background: var(--qsh-celadon-soft) !important;
    color: var(--qsh-jade-dark) !important;
    box-shadow: none !important;
  }

  .bottom-icon,
  .bottom-item > span:first-child,
  .bottom-item > i:first-child {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .hero::before {
    min-height: 300px;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

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

  .hero-stat-num {
    font-size: 1.1rem !important;
  }

  .hero-stat-label {
    font-size: 0.62rem !important;
  }

  .product-card-img,
  .product-img {
    aspect-ratio: 4 / 3;
  }

  .footer p,
  .footer li,
  .footer a {
    font-size: 0.72rem !important;
  }
}

/* ===== Hero fusion correction: full-bleed image with overlaid copy ===== */
body > .hero {
  position: relative !important;
  display: block !important;
  min-height: 660px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-color: var(--qsh-ivory) !important;
  background-image: url("../assets/qsh-hero-storefront-original.webp") !important;
  background-position: center center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

body > .hero::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  display: block !important;
  min-height: 0 !important;
  opacity: 1 !important;
  background: linear-gradient(
    90deg,
    rgba(255, 253, 248, 0.99) 0%,
    rgba(255, 253, 248, 0.96) 28%,
    rgba(255, 253, 248, 0.78) 43%,
    rgba(255, 253, 248, 0.22) 60%,
    rgba(255, 253, 248, 0) 76%
  ) !important;
  pointer-events: none;
}

body > .hero::after {
  content: none !important;
  display: none !important;
}

body > .hero .hero-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 1480px) !important;
  min-height: 660px !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 72px 48px 150px !important;
}

body > .hero h1 {
  max-width: 9em !important;
}

body > .hero .hero-subtitle {
  max-width: 37em !important;
}

body > .hero .hero-stats {
  position: absolute !important;
  z-index: 3 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px max(48px, calc((100vw - 1380px) / 2)) !important;
  border-top: 1px solid rgba(23, 74, 58, 0.16) !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 253, 248, 0.91) !important;
  box-shadow: 0 -10px 34px rgba(23, 74, 58, 0.06) !important;
  backdrop-filter: blur(14px);
}

body > .hero .hero-stat {
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-right: 1px solid var(--qsh-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

body > .hero .hero-stat:first-child {
  padding-left: 0 !important;
}

body > .hero .hero-stat:last-child {
  padding-right: 0 !important;
  border-right: 0 !important;
}

body > .hero .hero-stat > i {
  flex: 0 0 auto;
  color: var(--qsh-jade-dark) !important;
  font-size: 1.45rem !important;
}

body > .hero .hero-stat-num {
  font-size: 1.4rem !important;
}

body > .hero .hero-stat-label {
  font-size: 0.72rem !important;
  white-space: nowrap;
}

@media (max-width: 820px) {
  body > .hero {
    min-height: 720px !important;
    background-position: 68% center !important;
  }

  body > .hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 253, 248, 0.99) 0%,
      rgba(255, 253, 248, 0.95) 38%,
      rgba(255, 253, 248, 0.46) 62%,
      rgba(255, 253, 248, 0.10) 78%
    ) !important;
  }

  body > .hero .hero-content {
    display: block !important;
    min-height: 720px !important;
    padding: 44px 18px 350px !important;
  }

  body > .hero h1 {
    max-width: 11em !important;
  }

  body > .hero .hero-stats {
    position: absolute !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 14px 8px calc(14px + env(safe-area-inset-bottom)) !important;
  }

  body > .hero .hero-stat {
    flex-direction: column;
    justify-content: center !important;
    gap: 3px !important;
    min-height: 54px !important;
    padding: 0 6px !important;
    text-align: center !important;
  }

  body > .hero .hero-stat > i {
    display: none;
  }

  body > .hero .hero-stat-num {
    font-size: 1rem !important;
  }

  body > .hero .hero-stat-label {
    font-size: 0.58rem !important;
  }
}

@media (max-width: 430px) {
  body > .hero {
    min-height: 690px !important;
    background-position: 64% center !important;
  }

  body > .hero .hero-content {
    min-height: 690px !important;
    padding-bottom: 330px !important;
  }
}

/* ===== Homepage fidelity lock: selected Product Design direction 1 ===== */
.topbar {
  display: flex !important;
  grid-template-columns: none !important;
  padding-right: max(28px, calc((100vw - 1280px) / 2)) !important;
  padding-left: max(28px, calc((100vw - 1280px) / 2)) !important;
}

.topbar-logo {
  margin-right: 38px !important;
}

.topbar-logo::before,
.topbar-logo::after {
  content: none !important;
  display: none !important;
}

.topbar-links {
  grid-column: auto !important;
  justify-self: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.nav-link,
.nav-link:hover,
.nav-link.active {
  min-height: auto !important;
  padding: 12px 11px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #304b40 !important;
  transform: none !important;
}

.nav-link::before {
  content: none !important;
  display: none !important;
}

.nav-link::after {
  right: 11px !important;
  bottom: 5px !important;
  left: 11px !important;
  background: var(--qsh-gold) !important;
}

.nav-link.active,
.nav-link:hover {
  color: var(--qsh-jade-dark) !important;
}

body > .hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important;
  min-height: 650px !important;
  height: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--qsh-ivory) !important;
  text-align: left !important;
}

body > .hero::before {
  content: "" !important;
  position: relative !important;
  z-index: 0 !important;
  inset: auto !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  min-height: 650px !important;
  opacity: 1 !important;
  background: #102f24 url("../assets/qsh-hero-storefront-original.webp") center / contain no-repeat !important;
}

body > .hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

body > .hero .hero-content {
  position: static !important;
  z-index: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 72px 58px 142px max(28px, calc((100vw - 1280px) / 2)) !important;
  text-align: left !important;
}

body > .hero .hero-content::before,
body > .hero .hero-content::after {
  content: none !important;
  display: none !important;
}

body > .hero .hero-badge,
body > .hero h1,
body > .hero .hero-subtitle,
body > .hero .hero-cta {
  position: relative;
  z-index: 2;
}

body > .hero h1 {
  width: auto !important;
  max-width: 9em !important;
  margin: 0 0 22px !important;
  color: var(--qsh-jade-dark) !important;
  font-size: clamp(3rem, 4.1vw, 4.55rem) !important;
  line-height: 1.22 !important;
  letter-spacing: 0.01em !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  white-space: nowrap;
  text-wrap: nowrap !important;
}

body > .hero h1 .highlight {
  color: var(--qsh-ink) !important;
}

body > .hero .hero-subtitle {
  max-width: 35em !important;
  color: var(--qsh-copy) !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body > .hero .hero-cta {
  gap: 14px !important;
}

body > .hero .hero-cta i {
  margin-right: 8px;
}

body > .hero .hero-stats {
  position: absolute !important;
  z-index: 3 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px max(28px, calc((100vw - 1280px) / 2)) !important;
  border-top: 1px solid var(--qsh-line) !important;
  border-bottom: 0 !important;
  background: rgba(255, 253, 248, 0.94) !important;
  box-shadow: 0 -12px 34px rgba(23, 74, 58, 0.06) !important;
  backdrop-filter: blur(14px);
}

body > .hero .hero-stat {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 0;
  padding: 0 24px !important;
  border-right: 1px solid var(--qsh-line) !important;
  text-align: left !important;
}

body > .hero .hero-stat:first-child {
  padding-left: 0 !important;
}

body > .hero .hero-stat:last-child {
  border-right: 0 !important;
}

body > .hero .hero-stat > i {
  flex: 0 0 auto;
  color: var(--qsh-jade-dark);
  font-size: 1.45rem;
}

body > .hero .hero-stat-num {
  font-size: 1.35rem !important;
  line-height: 1.15 !important;
}

body > .hero .hero-stat-label {
  margin-top: 4px !important;
  font-size: 0.72rem !important;
  white-space: nowrap;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--qsh-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-section {
  padding-top: 78px !important;
  padding-bottom: 78px !important;
  background: var(--qsh-paper) !important;
}

.brand-story-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: stretch;
  max-width: var(--qsh-max);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--qsh-line);
  border-radius: 28px;
  background: var(--qsh-ivory);
  box-shadow: 0 20px 60px rgba(23, 74, 58, 0.08);
}

.brand-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 66px);
}

.brand-story-copy h2 {
  max-width: 10em;
  margin: 0 0 20px !important;
  color: var(--qsh-jade-dark) !important;
  font-size: clamp(2rem, 3vw, 3rem) !important;
  font-weight: 900 !important;
}

.brand-story-copy > p {
  max-width: 38em;
  margin: 0 0 30px !important;
  color: var(--qsh-copy) !important;
  font-size: 0.94rem !important;
  line-height: 1.9 !important;
}

.brand-story-media {
  min-height: 470px;
  margin: 0;
  overflow: hidden;
}

.brand-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.brand-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--qsh-line);
}

.brand-proof > i {
  color: var(--qsh-jade);
  font-size: 1.1rem;
}

.brand-proof span {
  display: grid;
  gap: 2px;
}

.brand-proof strong {
  color: var(--qsh-ink);
  font-size: 0.8rem;
}

.brand-proof small {
  color: var(--qsh-muted);
  font-size: 0.68rem;
}

.brand-story-link,
.product-system-copy a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: var(--qsh-jade-dark) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.product-section {
  padding-top: 88px !important;
  padding-bottom: 88px !important;
  background: var(--qsh-ivory) !important;
}

.product-header .section-kicker {
  margin-bottom: 12px;
}

.product-system-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--qsh-max);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--qsh-line);
  border-radius: 30px;
  background: var(--qsh-celadon-soft);
}

.product-system-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 74, 58, 0.12);
  border-radius: 22px;
  background: var(--qsh-ivory);
}

.product-system-item.is-primary {
  border-color: rgba(184, 135, 54, 0.34);
  box-shadow: 0 16px 40px rgba(23, 74, 58, 0.10);
  transform: translateY(-10px);
}

.product-system-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 20px;
}

.product-system-copy > span {
  margin-bottom: 8px;
  color: var(--qsh-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.product-system-copy h3 {
  margin: 0 0 10px !important;
  color: var(--qsh-jade-dark) !important;
  font-size: 1.3rem !important;
}

.product-system-copy p {
  flex: 1;
  margin: 0 0 18px !important;
  color: var(--qsh-copy) !important;
  font-size: 0.82rem !important;
  line-height: 1.75 !important;
}

.product-system-item > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-system-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.care-steps-section {
  padding-top: 82px !important;
  padding-bottom: 0 !important;
  background: var(--qsh-paper) !important;
}

.care-steps-header {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.care-steps-header h2 {
  margin: 0 !important;
  color: var(--qsh-jade-dark) !important;
  font-size: clamp(2rem, 3vw, 2.8rem) !important;
  font-weight: 900 !important;
}

.care-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 1040px;
  margin: 0 auto;
}

.care-step {
  position: relative;
  text-align: center;
}

.care-step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border: 1px solid rgba(23, 74, 58, 0.26);
  border-radius: 50%;
  background: var(--qsh-celadon-soft);
  color: var(--qsh-jade-dark);
  font-size: 1.45rem;
}

.care-step-icon span {
  position: absolute;
  top: -8px;
  left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--qsh-jade-dark);
  color: var(--qsh-ivory);
  font-size: 0.68rem;
  font-weight: 700;
}

.care-step h3 {
  margin-bottom: 10px !important;
  color: var(--qsh-ink) !important;
  font-size: 1.2rem !important;
}

.care-step p {
  max-width: 19em;
  margin: 0 auto !important;
  color: var(--qsh-copy) !important;
  font-size: 0.82rem !important;
  line-height: 1.75 !important;
}

.care-steps-action {
  display: flex;
  justify-content: center;
  margin: 36px 0 54px;
}

.care-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  margin-right: calc(-1 * max(24px, calc((100vw - var(--qsh-max)) / 2)));
  margin-left: calc(-1 * max(24px, calc((100vw - var(--qsh-max)) / 2)));
  padding: 20px max(24px, calc((100vw - var(--qsh-max)) / 2));
  border-top: 1px solid var(--qsh-line);
  background: var(--qsh-ivory);
}

.care-benefits > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 20px;
  border-right: 1px solid var(--qsh-line);
}

.care-benefits > div:last-child {
  border-right: 0;
}

.care-benefits i {
  color: var(--qsh-jade-dark);
  font-size: 1.35rem;
}

.care-benefits span {
  display: grid;
}

.care-benefits strong {
  color: var(--qsh-ink);
  font-size: 0.8rem;
}

.care-benefits small {
  color: var(--qsh-muted);
  font-size: 0.68rem;
}

.course-section {
  background: var(--qsh-celadon-soft) !important;
}

.pain-section {
  background: var(--qsh-paper) !important;
}

@media (max-width: 1040px) {
  body > .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr) !important;
  }

  body > .hero .hero-content {
    padding-right: 34px !important;
    padding-left: 34px !important;
  }

  body > .hero h1 {
    font-size: 3.15rem !important;
  }

  .brand-story-shell {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
  }

  .product-system-stage {
    padding: 20px;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .topbar-logo {
    margin-right: auto !important;
  }

  .topbar-links {
    display: none !important;
  }

  body > .hero {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  body > .hero .hero-content {
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding: 46px 18px 34px !important;
  }

  body > .hero::before {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 330px !important;
    background-position: 67% center !important;
  }

  body > .hero h1 {
    max-width: 12em !important;
    font-size: clamp(2rem, 9vw, 3rem) !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  body > .hero .hero-stats {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 16px 12px !important;
    box-shadow: none !important;
  }

  body > .hero .hero-stat {
    gap: 8px !important;
    padding: 0 8px !important;
  }

  body > .hero .hero-stat > i {
    font-size: 1rem;
  }

  body > .hero .hero-stat-num {
    font-size: 1rem !important;
  }

  body > .hero .hero-stat-label {
    font-size: 0.58rem !important;
  }

  .brand-section,
  .product-section {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .brand-story-shell {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .brand-story-copy {
    padding: 26px 22px 30px;
  }

  .brand-story-copy h2 {
    font-size: 1.8rem !important;
  }

  .brand-proof-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .brand-proof {
    padding: 9px 0;
  }

  .brand-story-media {
    min-height: 290px;
  }

  .product-system-stage {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .product-system-item.is-primary {
    transform: none;
  }

  .product-system-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: stretch;
    border-radius: 16px;
  }

  .product-system-item > img {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }

  .product-system-copy {
    padding: 20px 16px;
  }

  .care-steps-section {
    padding-top: 54px !important;
  }

  .care-steps-header {
    margin-bottom: 30px;
    text-align: left;
  }

  .care-steps-header h2 {
    font-size: 1.8rem !important;
  }

  .care-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .care-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 4px 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--qsh-line);
    border-radius: 16px;
    background: var(--qsh-ivory);
    text-align: left;
  }

  .care-step-icon {
    grid-row: 1 / 3;
    width: 66px;
    height: 66px;
    margin: 0;
    font-size: 1.15rem;
  }

  .care-step-icon span {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }

  .care-step h3 {
    align-self: end;
    margin: 0 !important;
  }

  .care-step p {
    align-self: start;
    max-width: none;
    margin: 0 !important;
  }

  .care-steps-action {
    margin: 26px 0 34px;
  }

  .care-benefits {
    grid-template-columns: 1fr 1fr;
    margin-right: -16px;
    margin-left: -16px;
    padding: 16px;
    gap: 14px 0;
  }

  .care-benefits > div {
    justify-content: flex-start;
    padding: 4px 12px;
  }

  .care-benefits > div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 430px) {
  body > .hero .hero-cta {
    grid-template-columns: 1fr 1fr !important;
  }

  body > .hero::before {
    min-height: 280px !important;
  }

  body > .hero .hero-stat {
    flex-direction: column;
    justify-content: center !important;
    gap: 3px !important;
    text-align: center !important;
  }

  body > .hero .hero-stat > i {
    display: none;
  }

  .product-system-item {
    grid-template-columns: 1fr;
  }

  .product-system-item > img {
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .care-benefits strong {
    font-size: 0.72rem;
  }

  .care-benefits small {
    font-size: 0.62rem;
  }
}
/* Mobile composition correction: keep the hero as one integrated visual. */
@media (max-width: 768px) {
  body .hero {
    display: block !important;
    position: relative !important;
    height: clamp(700px, calc(100svh - 120px), 800px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-color: var(--qsh-ivory, #fffdf8) !important;
    background-image:
      linear-gradient(
        180deg,
        rgba(255, 253, 248, 1) 0%,
        rgba(255, 253, 248, 1) 24%,
        rgba(255, 253, 248, 0.96) 34%,
        rgba(255, 253, 248, 0.74) 45%,
        rgba(255, 253, 248, 0.18) 60%,
        rgba(255, 253, 248, 0) 72%
      ),
      url("../assets/qsh-hero-storefront-original.webp") !important;
    background-repeat: no-repeat !important;
    background-position: center, 66% bottom !important;
    background-size: 100% 100%, auto 70% !important;
  }

  body .hero::before,
  body .hero::after {
    display: none !important;
  }

  body .hero .hero-content {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 46px 20px 0 !important;
    text-align: left !important;
  }

  body .hero .hero-badge {
    margin: 0 0 20px !important;
  }

  body .hero .hero-title {
    max-width: 12em !important;
    margin: 0 !important;
    font-size: clamp(2.25rem, 7vw, 3rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.045em !important;
    text-wrap: balance !important;
  }

  body .hero .hero-desc {
    max-width: 42rem !important;
    margin: 22px 0 0 !important;
    font-size: clamp(0.94rem, 2.5vw, 1.05rem) !important;
    line-height: 1.8 !important;
  }

  body .hero .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: min(100%, 420px) !important;
    margin: 24px 0 0 !important;
  }

  body .hero .hero-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 12px !important;
    white-space: nowrap !important;
  }

  body .hero > .hero-stats {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-height: 82px !important;
    margin: 0 !important;
    padding: 11px 10px calc(11px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(23, 74, 58, 0.16) !important;
    background: rgba(255, 253, 248, 0.9) !important;
    box-shadow: 0 -12px 34px rgba(23, 37, 30, 0.06) !important;
    backdrop-filter: blur(14px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  }

  body .hero > .hero-stats .hero-stat {
    display: grid !important;
    grid-template-columns: auto auto !important;
    grid-template-rows: auto auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-content: center !important;
    align-content: center !important;
    column-gap: 7px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body .hero > .hero-stats .hero-stat:nth-child(3) {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
  }

  body .hero > .hero-stats .hero-stat + .hero-stat {
    border-left: 1px solid rgba(23, 74, 58, 0.16) !important;
  }

  body .hero > .hero-stats .hero-stat i {
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    margin: 0 !important;
    font-size: 1rem !important;
  }

  body .hero > .hero-stats .hero-stat strong {
    align-self: end !important;
    font-size: clamp(1rem, 3.5vw, 1.28rem) !important;
    line-height: 1.05 !important;
  }

  body .hero > .hero-stats .hero-stat span {
    overflow: hidden !important;
    font-size: clamp(0.62rem, 1.9vw, 0.76rem) !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .brand-story-shell img {
    display: block !important;
    width: 100% !important;
    height: clamp(280px, 52vw, 380px) !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

@media (max-width: 480px) {
  body .hero {
    height: clamp(680px, calc(100svh - 100px), 760px) !important;
    background-position: center, 66% bottom !important;
    background-size: 100% 100%, auto 66% !important;
  }

  body .hero .hero-content {
    padding: 36px 18px 0 !important;
  }

  body .hero .hero-title {
    font-size: clamp(2.05rem, 10.2vw, 2.7rem) !important;
  }

  body .hero .hero-desc {
    margin-top: 18px !important;
    line-height: 1.68 !important;
  }

  body .hero .hero-actions {
    gap: 9px !important;
    margin-top: 20px !important;
  }

  body .hero > .hero-stats {
    min-height: 74px !important;
    padding-inline: 4px !important;
  }

  body .hero > .hero-stats .hero-stat {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    row-gap: 3px !important;
    padding: 0 4px !important;
    text-align: center !important;
  }

  body .hero > .hero-stats .hero-stat i {
    display: none !important;
  }

  body .brand-story-shell img {
    height: 290px !important;
  }
}

/* Mobile content flow: compact brand story and restore readable agent cards. */
@media (max-width: 768px) {
  body #brand {
    padding-inline: 16px !important;
  }

  body #brand .brand-story-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  body #brand .brand-story-copy {
    width: 100% !important;
    min-width: 0 !important;
    padding: 28px 22px 24px !important;
  }

  body #brand .brand-story-copy h2 {
    margin: 14px 0 16px !important;
    font-size: clamp(1.75rem, 6.8vw, 2.25rem) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.035em !important;
  }

  body #brand .brand-story-copy > p {
    margin: 0 !important;
    font-size: 0.94rem !important;
    line-height: 1.8 !important;
  }

  body #brand .brand-story-copy > div {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 24px 0 0 !important;
    border-top: 1px solid rgba(23, 74, 58, 0.16) !important;
    border-bottom: 1px solid rgba(23, 74, 58, 0.16) !important;
  }

  body #brand .brand-story-copy > div > * {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
    justify-items: start !important;
    gap: 5px !important;
    min-width: 0 !important;
    padding: 14px 8px !important;
    border: 0 !important;
  }

  body #brand .brand-story-copy > div > * + * {
    border-left: 1px solid rgba(23, 74, 58, 0.14) !important;
  }

  body #brand .brand-story-copy > div i {
    margin: 0 0 2px !important;
    font-size: 0.95rem !important;
  }

  body #brand .brand-story-copy > div strong {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  body #brand .brand-story-copy > div small,
  body #brand .brand-story-copy > div span {
    min-width: 0 !important;
    font-size: 0.65rem !important;
    line-height: 1.45 !important;
  }

  body #brand .brand-story-copy > a {
    display: inline-flex !important;
    margin-top: 20px !important;
  }

  body #brand .brand-story-shell img {
    height: clamp(240px, 52vw, 320px) !important;
  }

  body #agent {
    padding-inline: 16px !important;
  }

  body #agent .agent-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  body #agent .agent-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px !important;
    overflow: hidden !important;
    border-radius: 20px !important;
  }

  body #agent .agent-card,
  body #agent .agent-card * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  body #agent .agent-card h3,
  body #agent .agent-card p,
  body #agent .agent-card .agent-price {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  body #agent .agent-card h3 {
    margin-block: 12px 8px !important;
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }

  body #agent .agent-card .agent-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 5px !important;
    margin-bottom: 12px !important;
  }

  body #agent .agent-card .agent-price strong {
    white-space: nowrap !important;
  }

  body #agent .agent-card ul,
  body #agent .agent-card .agent-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
  }

  body #agent .agent-card li,
  body #agent .agent-card .agent-features > * {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    border-bottom: 1px solid rgba(23, 74, 58, 0.12) !important;
  }

  body #agent .agent-card li > *,
  body #agent .agent-card .agent-features > * > * {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  body #agent .agent-card li i,
  body #agent .agent-card li::before,
  body #agent .agent-card .agent-features > * i {
    flex: 0 0 14px !important;
    width: 14px !important;
    margin-top: 0.28em !important;
  }

  body #agent .agent-card .btn {
    width: 100% !important;
    margin-top: auto !important;
  }
}

@media (max-width: 420px) {
  body #brand .brand-story-copy {
    padding: 24px 18px 20px !important;
  }

  body #brand .brand-story-copy > div > * {
    padding-inline: 6px !important;
  }

  body #agent {
    padding-inline: 12px !important;
  }

  body #agent .agent-card {
    padding: 16px !important;
  }
}

/* 2026-07-26: final shared mobile UI pass across all public pages. */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px !important;
    scroll-padding-bottom: 82px !important;
  }

  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    -webkit-text-size-adjust: 100% !important;
    text-rendering: optimizeLegibility !important;
  }

  body:has(> .bottombar) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  body .topbar {
    min-height: 62px !important;
    padding-inline: 16px !important;
    border-bottom-color: rgba(23, 74, 58, 0.12) !important;
    background: rgba(255, 253, 248, 0.96) !important;
    box-shadow: 0 8px 24px rgba(23, 37, 30, 0.045) !important;
    backdrop-filter: blur(16px) saturate(1.1) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  }

  body .topbar-brand {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  body .topbar-login,
  body .mobile-menu-btn {
    min-height: 40px !important;
  }

  body .page-header {
    display: grid !important;
    align-content: center !important;
    min-height: 196px !important;
    height: auto !important;
    padding: 34px 18px !important;
  }

  body .page-header h1 {
    margin-bottom: 10px !important;
    font-size: clamp(1.8rem, 7.2vw, 2.35rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.035em !important;
  }

  body .page-header p,
  body .page-header .page-subtitle {
    max-width: 32rem !important;
    margin-inline: auto !important;
    font-size: clamp(0.88rem, 2.7vw, 1rem) !important;
    line-height: 1.65 !important;
  }

  body .btn,
  body button,
  body input,
  body select,
  body textarea {
    min-height: 44px;
  }

  body .bottombar {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1200 !important;
    min-height: calc(66px + env(safe-area-inset-bottom)) !important;
    height: auto !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(23, 74, 58, 0.13) !important;
    background: rgba(255, 253, 248, 0.96) !important;
    box-shadow: 0 -10px 30px rgba(23, 37, 30, 0.08) !important;
    backdrop-filter: blur(16px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
  }

  body .bottom-item {
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 5px 4px !important;
    border-radius: 13px !important;
    font-size: 0.7rem !important;
    line-height: 1.15 !important;
  }

  body .bottom-item i {
    margin-bottom: 4px !important;
    font-size: 1rem !important;
  }

  body .bottom-item.active {
    background: rgba(47, 125, 90, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(47, 125, 90, 0.04) !important;
  }

  body .knowledge-section,
  body .member-section,
  body .download-section {
    padding: 32px 14px 44px !important;
  }

  body.knowledge-page .knowledge-intro {
    gap: 20px !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  body.knowledge-page .knowledge-kpis {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
    overflow: hidden !important;
    border: 1px solid rgba(23, 74, 58, 0.14) !important;
    border-radius: 15px !important;
    background: rgba(23, 74, 58, 0.12) !important;
  }

  body.knowledge-page .knowledge-kpis > * {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    min-height: 92px !important;
    height: auto !important;
    padding: 15px 16px !important;
    border: 0 !important;
    background: rgba(255, 253, 248, 0.97) !important;
  }

  body.knowledge-page .knowledge-kpis > * > * {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.mall-page .tabs-inner {
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 14px 8px !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain !important;
    scroll-padding-inline: 14px !important;
    scroll-snap-type: inline proximity !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.mall-page .tabs-inner::-webkit-scrollbar {
    display: none !important;
  }

  body.mall-page .tab-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 78px !important;
    padding: 10px 13px !important;
    scroll-snap-align: start !important;
  }

  body.mall-page .product-section,
  body.mall-page .course-section,
  body.mall-page .trial-section {
    overflow-x: clip !important;
  }

  body .referral-section,
  body .trace-section {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 32px 14px 44px !important;
  }

  body .referral-card + .referral-card {
    margin-top: 16px !important;
  }

  body .trace-card,
  body .referral-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 24px !important;
    border-radius: 20px !important;
  }

  body > .content {
    width: calc(100% - 28px) !important;
    max-width: 760px !important;
    margin-inline: auto !important;
    padding: 24px 20px 34px !important;
    border-radius: 20px !important;
  }

  body > .content p,
  body > .content li {
    font-size: 0.9rem !important;
    line-height: 1.82 !important;
  }

  body > .content h2 {
    margin: 30px 0 16px !important;
    font-size: 1.35rem !important;
    line-height: 1.4 !important;
  }

  body > .content h3 {
    margin: 22px 0 12px !important;
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
  }

  body > .content ul,
  body > .content ol {
    padding-left: 1.35rem !important;
  }

  body .footer {
    padding: 38px 18px calc(26px + env(safe-area-inset-bottom)) !important;
  }

  body .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 22px !important;
  }

  body .footer-brand-col {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 28rem !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  body .footer-title {
    margin-bottom: 12px !important;
    font-size: 0.9rem !important;
  }

  body .footer-text,
  body .footer-links a,
  body .footer-bottom {
    font-size: 0.76rem !important;
    line-height: 1.7 !important;
  }
}

@media (max-width: 420px) {
  body .topbar {
    padding-inline: 12px !important;
  }

  body .page-header {
    min-height: 176px !important;
    padding: 30px 16px !important;
  }

  body .knowledge-section,
  body .member-section,
  body .download-section,
  body .referral-section,
  body .trace-section {
    padding-inline: 12px !important;
  }

  body.knowledge-page .knowledge-intro {
    padding: 15px !important;
  }

  body.knowledge-page .knowledge-kpis > * {
    min-height: 86px !important;
    padding: 13px 12px !important;
  }

  body .trace-card,
  body .referral-card {
    padding: 20px 18px !important;
  }

  body > .content {
    width: calc(100% - 20px) !important;
    padding: 22px 16px 30px !important;
  }

  body .footer-grid {
    gap: 24px 16px !important;
  }
}

/* ===== Mobile full-image presentation ===== */
@media (max-width: 768px) {
  body .hero {
    background-position: center, center bottom !important;
    background-size: 100% 100%, 100% auto !important;
  }

  body .hero::before,
  body .hero::after {
    background-size: contain !important;
    background-position: center bottom !important;
  }

  #brand .brand-story-media {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    background: #10352a !important;
  }

  #brand .brand-story-media img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* ===== Product system full-image presentation ===== */
#product .product-system-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  align-self: center !important;
  background: #f7f2e7 !important;
}

@media (max-width: 768px) {
  #product .product-system-item img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* ===== Mall product full-image presentation ===== */
.mall-page .product-img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fffdf8 !important;
}

.mall-page .product-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.mall-page .trial-visual {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fffdf8 !important;
}

.mall-page .trial-visual img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 768px) {
  .mall-page .product-img,
  .mall-page .trial-visual {
    aspect-ratio: 3 / 4 !important;
  }

  .mall-page .product-img img,
  .mall-page .trial-visual img {
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* ===== Home brand editorial gallery ===== */
.brand-story-media {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  background: #0b4a3a !important;
}

.brand-story-media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center !important;
}

.home-editorial-section {
  padding: clamp(72px, 8vw, 112px) 24px;
  background: #f4efe5;
  color: #143f34;
}

.home-editorial-shell {
  width: min(100%, 1220px);
  margin: 0 auto;
}

.home-editorial-heading {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  text-align: center;
}

.home-editorial-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #a76b19;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.home-editorial-heading h2 {
  margin: 0;
  color: #0f4b3c;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.18;
  letter-spacing: 0.03em;
}

.home-editorial-heading p {
  max-width: 660px;
  margin: 18px auto 0;
  color: #5d6d66;
  font-size: 17px;
  line-height: 1.9;
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.home-editorial-card {
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(22, 84, 68, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(24, 58, 47, 0.1);
}

.home-editorial-card-copy {
  min-height: 174px;
  padding: 28px 30px 26px;
  border-bottom: 1px solid rgba(22, 84, 68, 0.14);
}

.home-editorial-card-copy > span {
  display: block;
  margin-bottom: 10px;
  color: #a76b19;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-editorial-card-copy h3 {
  margin: 0;
  color: #0f4b3c;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.3;
}

.home-editorial-card-copy p {
  margin: 12px 0 0;
  color: #61716a;
  font-size: 15px;
  line-height: 1.8;
}

.home-editorial-card figure {
  margin: 0;
  line-height: 0;
  background: #0b4a3a;
}

.home-editorial-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  .brand-story-media,
  .brand-story-media img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
  }

  .home-editorial-section {
    padding: 58px 14px 68px;
  }

  .home-editorial-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .home-editorial-eyebrow {
    font-size: 12px;
    line-height: 1.6;
  }

  .home-editorial-heading h2 {
    font-size: clamp(29px, 8.4vw, 38px);
    line-height: 1.24;
  }

  .home-editorial-heading p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.8;
  }

  .home-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .home-editorial-card {
    border-radius: 18px;
  }

  .home-editorial-card-copy {
    min-height: 0;
    padding: 22px 20px 20px;
  }

  .home-editorial-card-copy h3 {
    font-size: 25px;
  }

  .home-editorial-card-copy p {
    font-size: 14px;
    line-height: 1.75;
  }

  .home-editorial-card img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 4;
    object-fit: contain;
  }
}

/* Match the brand-story poster image to the editorial card image behavior on mobile. */
@media (max-width: 768px) {
  body #brand .brand-story-shell .brand-story-media {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    line-height: 0 !important;
    background: #0b4a3a !important;
    border-radius: 0 0 20px 20px !important;
  }

  body #brand .brand-story-shell .brand-story-media > img {
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 0 20px 20px !important;
  }
}
