.brand-theme {
  --brand: #176b49;
  --brand-heading: #125b3c;
  --brand-ink: #1d392d;
  --brand-muted: #4f675a;
  --brand-paper: #f4faf5;
  --brand-tint: #e5f2e7;
  --brand-line: #d4e6d8;
  --brand-radius: 20px;
  --brand-title-weight: 700;
  --brand-title-size: clamp(30px, 3.5vw, 55px);
  --brand-section-size: clamp(28px, 3vw, 50px);
  --brand-copy-size: 16px;
  --brand-sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --brand-serif: "Songti SC", "Noto Serif CJK SC", STSong, "SimSun", serif;
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --line: var(--brand-line);
  --paper: var(--brand-paper);
  font-family: var(--brand-sans);
  font-size: 16px;
}

html[lang="en"] .brand-theme {
  --brand-serif: Georgia, "Times New Roman", serif;
  --brand-title-size: clamp(27px, 2.85vw, 42px);
}

.brand-theme .site-shell { width: min(1280px, calc(100% - 84px)); }
.brand-theme .site-announcement { display: none; }
.brand-theme .site-header { height: 72px; border-color: var(--brand-line); background: rgb(249 253 249 / 96%); }
.brand-theme .site-header.is-scrolled { height: 68px; }
.brand-theme .header-inner { gap: clamp(12px, 1.75vw, 24px); }
.brand-theme .brand-logo img { filter: brightness(0) saturate(100%) invert(26%) sepia(55%) saturate(861%) hue-rotate(104deg) brightness(87%) contrast(94%); }
.brand-theme .main-navigation { gap: clamp(10px, 1.35vw, 22px); }
.brand-theme .nav-dropdown-intro h2 { font-family: var(--brand-sans); }
.brand-theme.is-home .site-header,
.brand-theme.is-home .search-panel:not(.is-open) { border-bottom: 0; }
.brand-theme .main-navigation > a, .brand-theme .nav-product-trigger > a { font-size: 16px; letter-spacing: 0; }
.brand-theme .header-actions { flex-basis: auto; gap: 12px; margin: 0; margin-left: auto; }
.brand-theme .header-icon { width: 36px; height: 36px; padding: 6px; }
.brand-theme .language-link { padding: 5px; font-size: 12px; }
.brand-theme .nav-product-trigger > a.active::after { left: 0; width: 100%; }

.brand-theme .brand-pill,
.brand-theme .brand-outline {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-theme .brand-pill:hover, .brand-theme .brand-pill:focus-visible { color: #fff; background: #105537; }
.brand-theme .brand-outline { border-color: var(--brand-line); background: #fff; color: var(--brand-heading); }
.brand-theme .brand-outline:hover { background: var(--brand-tint); }
.brand-theme .brand-label {
  display: inline-flex;
  align-items: center;
  background: var(--brand-tint);
  color: var(--brand-heading);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.brand-theme .brand-label[href] { padding-block: 7px; }
.brand-theme .brand-label[href]:hover { background: #d7eadb; }
.brand-theme :focus-visible { outline: 2px solid #125b3c; outline-offset: 4px; }
.brand-theme .site-footer :focus-visible, .brand-theme .video-modal :focus-visible { outline-color: #fff; }
.brand-theme [id] { scroll-margin-top: 86px; }
.brand-theme .back-to-top { border-color: var(--brand-line); border-radius: 50%; color: var(--brand); }

.brand-theme .site-footer {
  position: relative;
  isolation: isolate;
  padding-top: 63px;
  color: #fff;
  background: none;
}

.brand-theme .site-footer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(112deg, #1a7550, #176b49 60%, #1b7350);
  clip-path: polygon(0 27px, 4% 21px, 9% 20px, 15% 22px, 23% 27px, 33% 32px, 43% 33px, 57% 31px, 70% 28px, 85% 26px, 92% 24px, 96% 19px, 98% 11px, 100% 0, 100% 100%, 0 100%);
  clip-path: shape(from 0 27px, curve to 16% 23px with 6% 16px / 11% 20px, curve to 47% 33px with 27% 31px / 34% 35px, curve to 87% 26px with 66% 32px / 75% 25px, curve to 100% 0 with 94% 26px / 97% 19px, line to 100% 100%, line to 0 100%, close);
}

.brand-theme .site-footer .footer-main { grid-template-columns: minmax(0, .9fr) minmax(0, 2.2fr); gap: clamp(25px, 4vw, 65px); padding-bottom: 24px; }
.brand-theme .site-footer .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 43px); }
.brand-theme .site-footer .footer-links > div { min-width: 0; padding-left: clamp(12px, 2.3vw, 36px); border-left: 1px solid rgb(255 255 255 / 35%); }
.brand-theme .site-footer .footer-links h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; }
.brand-theme .site-footer :is(.footer-links a, .footer-links div > span, .footer-description) { color: #f0faf1; font-size: 14px; }
.brand-theme .site-footer .footer-links a:hover { text-decoration: underline; }
.brand-theme .footer-wechat { white-space: nowrap; }
.brand-theme .footer-wechat strong { font-weight: 700; }
.brand-theme .site-footer .footer-bottom { gap: 10px; color: #f0faf1; border-color: rgb(255 255 255 / 40%); font-size: 12px; letter-spacing: 0; }

.brand-theme .site-footer .footer-icp-link { color: inherit; text-decoration: underline; white-space: nowrap; }

/* Apply the homepage's palette and shapes to the existing page templates. */
.brand-theme .button,
.brand-theme .btn,
.brand-theme .bym-button,
.brand-theme .product-center-actions a,
.brand-theme .catalog-filter a,
.brand-theme .story-link,
.brand-theme .search-field button { border-radius: 999px; }

.brand-theme .button-dark,
.brand-theme .oem-contact .button-light,
.brand-theme .search-field button { background: var(--brand); color: #fff; border-color: var(--brand); }

.brand-theme .button-dark:hover, .brand-theme .oem-contact .button-light:hover { background: #105537; border-color: #105537; }

.brand-theme.is-inner main :is(h1, h2, h3) { font-family: var(--brand-sans); }

.brand-theme.is-inner main :is(h1, h2) {
  font-weight: var(--brand-title-weight);
  letter-spacing: 0;
}

.brand-theme.is-inner main h1 { color: var(--brand-heading); font-size: var(--brand-title-size); line-height: 1.24; }
.brand-theme.is-inner main h2 { font-size: var(--brand-section-size); line-height: 1.24; }
.brand-theme.is-inner main .journal-list-copy h2 { font-size: 16px; line-height: 1.4; }
.brand-theme.is-inner main :is(p:not([class]), .article-content, .journal-heading-note, .product-description, .product-rich-content, .li-story .sub, .li-story .txt) {
  font-size: var(--brand-copy-size);
  line-height: 1.65;
}

.brand-theme :is(.product-detail-hero, .product-center-hero-v2, .catalog-hero, .article-header, .oem-facts, .oem-contact, .career-hero) { background-color: var(--brand-paper); }

.brand-theme :is(.product-center-copy, .catalog-hero-copy, .product-summary, .article-header-inner, .oem-hero-copy, .career-hero) > .eyebrow,
.brand-theme .research-intro > .bym-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--brand-heading);
  background: var(--brand-tint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
}

.brand-theme .product-center-hero-grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }

.brand-theme .product-center-ritual { padding: 0 0 clamp(28px, 4vw, 52px); background: transparent; }
.brand-theme .product-center-ritual .skin-ritual-grid { gap: clamp(12px, 1.5vw, 26px); }
.brand-theme .product-center-ritual .skin-ritual-grid > div {
  min-width: 0;
  padding: clamp(18px, 2.15vw, 32px);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  background: var(--brand-paper);
}

.brand-theme .product-center-ritual h3 {
  margin: 0 0 8px;
  color: var(--brand-heading);
  font: var(--brand-title-weight) clamp(20px, 1.55vw, 24px)/1.3 var(--brand-sans);
}

.brand-theme .product-center-ritual p { color: var(--brand-ink); }

.brand-theme :is(.catalog-card, .journal-list-card, .bym-card, .research-card, .bym-center-entry, .product-main-image, .product-benefits, .verified-product-card, .series-product-card, .oem-factory-media, .oem-value-card, .group, .job, .culture-card, .contact-card) {
  border-radius: var(--brand-radius);
}

.brand-theme :is(.catalog-card, .journal-list-card) {
  overflow: hidden;
  background: white;
  border: 1px solid var(--brand-line);
  box-shadow: 0 7px 19px rgb(18 76 47 / 5%);
}

.brand-theme :is(.catalog-card-copy, .journal-list-copy) { padding-inline: 16px; }
.brand-theme :is(.catalog-card-copy p, .journal-meta) { font-size: 13px; }
.brand-theme .product-main-image { overflow: hidden; }
.brand-theme :is(.oem-value-grid, .oem-model-grid) { gap: 12px; border: 0; }
.brand-theme :is(.oem-value-card, .oem-model-grid article) { overflow: hidden; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); }
.brand-theme .contact-card { background: var(--brand); }
.brand-theme .li-story .story-photo { overflow: hidden; border-radius: 44% 41% 14% 22% / 33% 31% 14% 15%; }
.brand-theme.is-home { background: var(--brand-paper); }

@media (min-width: 981px) {
  .brand-theme {
    --brand-radius: 17px;
    --brand-title-weight: 500;
    --brand-title-size: clamp(28px, 2.8vw, 43px);
    --brand-section-size: clamp(27px, 2.45vw, 37px);
    --brand-copy-size: 15px;
    font-size: 15px;
  }
  .brand-theme .site-shell { width: min(1120px, calc(100% - 72px)); }
  .brand-theme .footer-logo img { width: 178px; }
  .brand-theme .site-header { height: 64px; }
  .brand-theme .site-header.is-scrolled { height: 60px; }
  .brand-theme .header-inner { gap: clamp(10px, 1.2vw, 18px); }
  .brand-theme .brand-logo { flex-basis: 150px; }
  .brand-theme .main-navigation { gap: clamp(10px, 1.12vw, 17px); }
  .brand-theme .main-navigation > a, .brand-theme .nav-product-trigger > a { padding-block: 21px; }
  .brand-theme .main-navigation > a::after, .brand-theme .nav-product-trigger > a::after { bottom: 14px; }
  .brand-theme .header-actions { gap: 8px; }
  .brand-theme .brand-pill, .brand-theme .brand-outline { min-height: 38px; padding: 6px 16px; font-size: 13px; font-weight: 500; }
  .brand-theme .site-footer { padding-top: 50px; }
  .brand-theme .site-footer .footer-links h3 { font-size: 14px; }
  .brand-theme .site-footer :is(.footer-links a, .footer-links div > span) { margin-block: 7px; font-size: 13px; }

  .brand-theme.is-home .site-header,
  .brand-theme.is-home .site-header.is-scrolled {
    position: absolute;
    inset: 0 0 auto;
    height: 64px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
  }

  .brand-theme .product-center-hero-v2 { padding-block: 62px; }
  .brand-theme .product-center-hero-grid { gap: 36px; }
  .brand-theme .product-center-visual { min-height: clamp(320px, 31vw, 420px); }
  .brand-theme .product-center-actions { margin-top: 25px; }
  .brand-theme .catalog-hero { height: 425px; }
  .brand-theme .catalog-hero-copy { padding-top: 94px; }
  .brand-theme .product-detail-hero { padding-block: 56px 74px; }
  .brand-theme .article-header { padding-block: 58px 45px; }
  .brand-theme :is(.catalog-section, .product-story, .product-solution-section, .featured-product-center, .product-category-section, .bym-section, .oem-categories, .oem-models, .oem-contact) { padding-block: clamp(48px, 5vw, 72px); }
  .brand-theme .research-hero .research-intro { padding-block: 33px 54px; }
  .brand-theme .oem-hero { min-height: clamp(430px, 38vw, 545px); }
  .brand-theme .oem-hero-copy { padding-block: 58px; }
  .brand-theme .career-hero { padding-block: 63px 48px; }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .brand-theme .header-inner, .brand-theme .main-navigation { gap: 10px; }
  .brand-theme .header-actions { gap: 7px; }
}

@media (min-width: 1450px) {
  .brand-theme {
    --brand-wide-shell: clamp(1120px, 78vw, 2240px);
    --brand-title-size: clamp(34px, 1.9vw, 38px);
    --brand-section-size: clamp(29px, 1.72vw, 34px);
    --brand-copy-size: 14px;
  }
  html[lang="en"] .brand-theme { --brand-title-size: clamp(32px, 1.9vw, 38px); }
  .brand-theme :is(.site-header, .site-footer, .product-center-ritual) .site-shell { width: var(--brand-wide-shell); }
  .brand-theme .main-navigation { gap: clamp(16px, 1.35vw, 30px); }
}

@media (max-width: 980px) {
  .brand-theme .site-shell { width: calc(100% - 44px); }
  .brand-theme .site-header, .brand-theme .site-header.is-scrolled { height: 64px; }
  .brand-theme .main-navigation { background: #f9fdf9; }
  .brand-theme .header-actions { gap: 7px; }
  .brand-theme .header-actions > .brand-pill { display: none; }
  .brand-theme .header-icon { width: 44px; height: 44px; padding: 10px; }
  .brand-theme .mobile-menu-toggle { width: 44px; height: 44px; align-items: center; }
  .brand-theme .mobile-menu-toggle span { background: var(--brand-ink); }
  .brand-theme .product-center-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 641px) {
  .brand-theme .site-footer .footer-links:has(.footer-wechat) { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(max-content, 1fr); }
}

@media (max-width: 640px) {
  .brand-theme { --brand-copy-size: 15px; }
  .brand-theme .site-shell { width: calc(100% - 36px); }
  .brand-theme .site-footer .footer-main { display: block; }
  .brand-theme .site-footer .footer-links { margin-top: 23px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-theme .footer-links > div:has(.footer-wechat) { grid-column: 1 / -1; }
  .brand-theme .site-footer .footer-bottom { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.brand-theme) { scroll-behavior: auto; }
}
