/* Homepage v2 is the reference, not a new theme. Loaded only outside Home/Knowledge.
 * Keep layouts, media proportions, content, arrow entries and existing JS intact.
 * !important is limited to presentation values because v2 views use inline styles.
 */
.leyi-home-aligned {
  --ha-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --ha-h1: clamp(38px, 5.4vw, 64px);
  --ha-h2: clamp(28px, 3.4vw, 40px);
  --ha-section: 96px;
  --ha-blue: #1E5BD8;
  --ha-blue-light: #8FB3FF;
  --ha-ink: #12202B;
  --ha-muted: #51606A;
  --ha-dark: #0B141B;
  --ha-paper: #F3F4F2;
}

/* Content only: neither the global navigation nor the footer inherits these. */
.leyi-home-aligned :is(main, .leyi-inquiry-page) {
  font-family: var(--ha-font);
}
.leyi-home-aligned .rd-main { font-family: var(--ha-font); }
.leyi-home-aligned :is(main, .leyi-inquiry-page) h1 {
  font-family: var(--ha-font) !important;
  font-size: var(--ha-h1) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: normal !important;
}
.leyi-home-aligned :is(main, .leyi-inquiry-page) h2 {
  font-family: var(--ha-font) !important;
  font-size: var(--ha-h2) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
}
.leyi-home-aligned :is(main, .leyi-inquiry-page) h3 {
  font-family: var(--ha-font) !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
}

/* Compact cards, technical tables and form sections are not page headlines. */
.leyi-home-aligned :is(.rd-card, .dmf03-model-card, #specs, .leyi-product-detail__parameter-groups,
  .leyi-product-detail__spec-groups, .sc-book-card, .sc-topic, .leyi-about-v2 #honor,
  .leyi-about-v2 #history, .leyi-about-v2 #news) h3,
.leyi-home-aligned :is(.sc-sidebar h2, .leyi-inquiry-section h2, .leyi-inquiry-privacy h2) {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}
.leyi-home-aligned .leyi-insight-card__title {
  font-size: 26px !important;
  line-height: 1.3 !important;
}

/* Body copy uses the homepage 17px reading size; labels and notes keep their role. */
.leyi-home-aligned :where(.leyi-dmf03-v2__root, .leyi-about-v2, .leyi-product-detail,
  .rd-main, .sc-page, .leyi-inquiry-page, .leyi-mq-page, .leyi-insight-detail,
  .leyi-solution-detail) p:where(:not(:has(a)):not([class*="eyebrow"]):not([class*="kicker"]):not([class*="label"]):not([class*="meta"]):not([class*="status"]):not([style*="letter-spacing"]):not([style*="font-size: clamp"]):not([style*="font-size: 32px"]):not([style*="font-size: 36px"]):not([style*="font-size: 48px"])) {
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}
.leyi-home-aligned :is(.leyi-product-detail__summary, .leyi-product-detail__tagline, .leyi-lead, .rd-lead, .sc-lead),
.leyi-home-aligned .leyi-dmf03-v2 #overview p[style*="font-size: 22px"],
.leyi-home-aligned .leyi-about-v2 #hero-body p:not(:first-child) {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}
.leyi-home-aligned .leyi-dmf03-v2 #workflow p[style*="clamp(26px"] {
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
.leyi-home-aligned :is(.leyi-eyebrow, .rd-eyebrow, .sc-kicker) {
  font-family: Barlow, var(--ha-font);
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  letter-spacing: .16em !important;
}
.leyi-home-aligned :is(.rd-eyebrow, .sc-kicker) { color: var(--ha-blue) !important; }
.leyi-home-aligned :is(.leyi-inquiry-intro, .leyi-product-detail__hero,
  .leyi-content-section--dark, .rd-support) .leyi-eyebrow,
.leyi-home-aligned .rd-support .rd-eyebrow { color: var(--ha-blue-light) !important; }
.leyi-home-aligned :is(.leyi-dmf03-v2, .leyi-about-v2) summary,
.leyi-home-aligned .leyi-product-detail #faq summary,
.leyi-home-aligned .sc-faq > details > summary {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}
.leyi-home-aligned :is(.dmf03-faq-answer, .leyi-about-v2 #faq details,
  .leyi-product-detail #faq details, .sc-faq details) p {
  font-size: 16px !important;
  line-height: 1.8 !important;
}
.leyi-home-aligned .leyi-dmf03-v2 :is(#specs, #sample) p[style*="font-size: 13px"],
.leyi-home-aligned .leyi-dmf03-v2 #sample p[style*="font-size: 14px"],
.leyi-home-aligned :is(.sc-note, .sc-pro-warning, .leyi-inquiry-privacy) p {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* One content edge: homepage 1120px container including 24px side gutters. */
.leyi-home-aligned :is(.leyi-content-shell, .leyi-product-detail__shell, .leyi-inquiry-shell,
  .sc-shell, .leyi-mq-shell) {
  width: min(1072px, calc(100% - 48px)) !important;
  max-width: 1072px;
  margin-inline: auto !important;
}
.leyi-home-aligned .rd-wrap {
  max-width: 1120px;
  padding-inline: 24px;
}
.leyi-home-aligned .leyi-dmf03-v2__root > section > div,
.leyi-home-aligned .leyi-about-v2 > section > div[style*="max-width: 1120px"] {
  max-width: 1120px !important;
  padding-inline: 24px !important;
}
.leyi-home-aligned .leyi-insight-detail :is(.leyi-insight-detail__body, .leyi-insight-detail__footer) {
  width: min(760px, calc(100% - 48px)) !important;
}
.leyi-home-aligned .leyi-dmf03-v2__root > section,
.leyi-home-aligned .leyi-product-detail > section:not(.leyi-product-detail__hero):not(.leyi-product-benefit-band),
.leyi-home-aligned :is(.sc-section, .leyi-content-section, .leyi-mq-overview,
  .leyi-mq-process, .leyi-mq-verification, .leyi-mq-cta) {
  padding-block: var(--ha-section) !important;
}
.leyi-home-aligned :is(.rd-hero-layout, .sc-hero, .leyi-inquiry-intro,
  .leyi-product-detail__hero, .leyi-content-archive-hero) {
  padding-block: 80px !important;
}
.leyi-home-aligned .leyi-product-detail__hero-grid {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 0 !important;
  margin-top: 40px !important;
}
.leyi-home-aligned main.leyi-product-detail .leyi-product-detail__hero {
  display: block;
  min-height: 0 !important;
  height: auto !important;
}
.leyi-home-aligned main.leyi-product-detail .leyi-product-detail__hero > .leyi-product-detail__shell {
  position: relative !important;
  inset: auto !important;
  width: min(1072px, calc(100% - 48px)) !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}
.leyi-home-aligned main.leyi-product-detail .leyi-product-detail__visuals,
.leyi-home-aligned main.leyi-product-detail .leyi-product-detail__media {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
}
.leyi-home-aligned main.leyi-product-detail .leyi-product-detail__media { aspect-ratio: 4 / 3; }
.leyi-home-aligned main.leyi-product-detail .leyi-product-detail__media::after { background: none; }
.leyi-home-aligned main.leyi-product-detail .leyi-product-detail__main-image {
  position: static;
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: contain !important;
}
.leyi-home-aligned .leyi-product-detail__hero .leyi-breadcrumbs { margin-bottom: 0; }
.leyi-home-aligned .leyi-product-detail__intro {
  position: relative !important;
  inset: auto !important;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0 !important;
  background: transparent !important;
}
.leyi-home-aligned .leyi-product-detail__visuals { grid-column: 2; grid-row: 1; }
.leyi-home-aligned .leyi-product-detail__intro h1 { max-width: none; }
.leyi-home-aligned .leyi-product-detail__actions { flex-wrap: wrap; }
.leyi-home-aligned .leyi-dmf03-v2__root > #overview { padding-block: 8px 0 !important; }
.leyi-home-aligned .leyi-dmf03-v2__root > #overview > nav {
  box-sizing: border-box;
  width: 100%;
}
.leyi-home-aligned .rd-catalog { padding-top: var(--ha-section); }
.leyi-home-aligned .rd-support { margin-block: 64px 96px; }

/* Photos and cards share homepage corner sizes. Never crop bottle cutouts or certificates. */
.leyi-home-aligned .leyi-dmf03-v2__root :is(img[style*="border-radius"], video),
.leyi-home-aligned :is(.rd-hero-art, .rd-card, .rd-support, .sc-topic, .sc-book-card,
  .sc-ticket-card, .sc-agent-card, .sc-l6, .leyi-product-detail__media,
  .leyi-product-detail__features article, .leyi-product-detail__evidence-card,
  .leyi-product-key-metrics article, .leyi-product-workflow-step,
  .leyi-insight-card, .leyi-insight-detail__image, .leyi-inquiry-types > div > label,
  .leyi-inquiry-section--business) {
  border-radius: 20px !important;
}
.leyi-home-aligned .leyi-mq-process-card__media {
  border-radius: 16px;
  overflow: hidden;
}
.leyi-home-aligned .leyi-insight-detail :is(.leyi-insight-detail__body, .leyi-insight-detail__cover) :is(img, video) { border-radius: 20px; }

/* Solid / outlined CTAs only. Text-arrow links, download rows and card arrows are excluded. */
.leyi-home-aligned :is(main .leyi-button, .leyi-inquiry-submit button, .rd-primary,
  .sc-button:not(.sc-dialog-close), .rd-search-submit, .leyi-product-sticky__button),
.leyi-home-aligned .leyi-product-detail__actions .leyi-product-detail__resource-link,
.leyi-home-aligned main .wp-block-button:not(.is-style-leyi-text) > .wp-block-button__link,
.leyi-home-aligned .leyi-dmf03-v2 :is(.dmf03-hero-actions, #sample) a[href*="inquiry_type=trial_order"],
.leyi-home-aligned .leyi-about-v2 #hero-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 54px !important;
  padding: 14px 28px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: var(--ha-blue) !important;
  color: #FFFFFF !important;
  font-family: var(--ha-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  letter-spacing: normal !important;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.leyi-home-aligned .sc-page .sc-button.sc-button-light,
.leyi-home-aligned .leyi-product-detail__actions .leyi-product-detail__resource-link,
.leyi-home-aligned main .wp-block-button.is-style-leyi-outline > .wp-block-button__link {
  background: transparent !important;
  border-color: #B8C4CE !important;
  color: var(--ha-blue) !important;
}
.leyi-home-aligned .leyi-product-detail__actions .leyi-product-detail__resource-link {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, .55) !important;
}
.leyi-home-aligned .leyi-about-v2 #hero-body a[href="#contact"] {
  border-color: rgba(255, 255, 255, .55) !important;
  background: transparent !important;
}
.leyi-home-aligned :is(main .leyi-button, .leyi-inquiry-submit button, .rd-primary,
  .sc-button, .rd-search-submit):focus-visible {
  outline: 2px solid var(--ha-blue-light);
  outline-offset: 3px;
}
@media (hover: hover) {
  .leyi-home-aligned :is(main .leyi-button, .leyi-inquiry-submit button, .rd-primary,
    .sc-button, .rd-search-submit):not(:disabled):not(.is-disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(30, 91, 216, .9);
  }
}
.leyi-home-aligned :is(main .leyi-button, .leyi-inquiry-submit button, .rd-primary,
  .sc-button, .rd-search-submit):not(:disabled):not(.is-disabled):active {
  transform: translateY(0) scale(.98);
}

/* Neutral page surfaces, blue selected controls. No redefinition of legacy link tokens. */
.leyi-home-aligned :is(.rd-hero, .sc-hero, .leyi-inquiry-page) { background: var(--ha-paper); }
.leyi-home-aligned :is(.rd-support, .leyi-inquiry-intro, .leyi-product-detail__hero,
  .leyi-product-detail__cta, .leyi-content-section--dark) { background: var(--ha-dark) !important; }
.leyi-home-aligned .rd-support h2 { color: #FFFFFF; }
.leyi-home-aligned :is(.rd-image, .sc-topic, .sc-l6) { background: var(--ha-paper); }
.leyi-home-aligned .sc-agent-card { background: #0F1B2D; }
.leyi-home-aligned :is(.rd-art-count, .rd-model, .sc-art-row b, .sc-label, .sc-topic-number) { color: var(--ha-blue); }
.leyi-home-aligned .sc-book-cover { background: #0F1B2D; border-left-color: #1E5BD8; }
.leyi-home-aligned .sc-cover-lines { border-color: var(--ha-blue-light); }
.leyi-home-aligned .leyi-inquiry-intro__trust strong { color: var(--ha-blue-light); border-color: var(--ha-blue-light); }
.leyi-home-aligned .leyi-inquiry-intro::after { background: var(--ha-blue); }
.leyi-home-aligned .leyi-inquiry-section--business { background: #FFFFFF; }
.leyi-home-aligned .leyi-inquiry-section--business::before { background: var(--ha-blue); }
.leyi-home-aligned .leyi-inquiry-consent { border-left-color: var(--ha-blue); background: var(--ha-paper); }
.leyi-home-aligned .leyi-inquiry-form .leyi-honeypot { display: none !important; }
.leyi-home-aligned .leyi-product-detail :is(#workflow, #faq) { background: var(--ha-paper); }
.leyi-home-aligned .leyi-product-detail #parameters { background: #0F1B2D; }
.leyi-home-aligned .leyi-product-key-metrics article { border-top-color: var(--ha-blue-light); }
.leyi-home-aligned .leyi-product-detail__parameter-note { background: #17283A; border-left-color: var(--ha-blue-light); }
.leyi-home-aligned .leyi-product-detail__parameter-note strong { color: var(--ha-blue-light); }
.leyi-home-aligned .wp-site-blocks > .wp-block-post-content:has(> .leyi-inquiry-page) { margin-block-start: 0; }
.leyi-home-aligned .rd-filters button {
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
}
.leyi-home-aligned .rd-filters button[aria-pressed="true"],
.leyi-home-aligned .leyi-inquiry-types label.is-active {
  background: var(--ha-blue);
  border-color: var(--ha-blue);
  color: #FFFFFF;
}
.leyi-home-aligned .leyi-inquiry-types label.is-active :is(strong, small) { color: #FFFFFF; }
.leyi-home-aligned .leyi-inquiry-types input { accent-color: var(--ha-blue); }
.leyi-home-aligned :is(.rd-search-row input, .sc-filter select, .sc-filter input,
  .leyi-inquiry-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .leyi-inquiry-field select, .leyi-inquiry-field textarea) {
  font-family: var(--ha-font);
  font-size: 16px;
  border-radius: 12px;
  border-color: #D3DCE2;
}
.leyi-home-aligned :is(.rd-search-row input, .leyi-inquiry-field input,
  .leyi-inquiry-field select, .leyi-inquiry-field textarea):focus-visible {
  outline: 2px solid var(--ha-blue);
  outline-offset: 2px;
}

/* Keep arrow-entry typography inherited from the old resin wrapper unchanged. */
.leyi-home-aligned .rd-main :is(.rd-secondary, .rd-detail, .rd-side-help a, .rd-support-links > a) {
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
.leyi-home-aligned :is(.leyi-text-link, .leyi-product-detail__faq-more, .leyi-mq-button,
  .sc-text-button, .sc-page a:not(.sc-button)) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}
.leyi-home-aligned .leyi-dmf03-v2__root > #sample > div { max-width: 760px !important; }
.leyi-home-aligned :is(.leyi-mq-overview__copy, .leyi-mq-process-card, .leyi-mq-verification, .leyi-mq-cta) p {
  font-size: 17px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .leyi-home-aligned .leyi-product-detail__hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .leyi-home-aligned .leyi-product-detail__visuals { grid-column: 1; grid-row: 1; }
  .leyi-home-aligned .leyi-product-detail__intro { grid-column: 1; grid-row: 2; }
}
@media (max-width: 800px) {
  .leyi-home-aligned { --ha-section: 64px; }
  .leyi-home-aligned :is(.rd-hero-layout, .sc-hero, .leyi-inquiry-intro,
    .leyi-product-detail__hero, .leyi-content-archive-hero) { padding-block: 48px !important; }
  .leyi-home-aligned .rd-support { margin-block: 48px 64px; }
  .leyi-home-aligned .rd-card h3 { font-size: 18px !important; }
  .leyi-home-aligned .rd-grid { gap: 16px; }
  .leyi-home-aligned .sc-book-card { gap: 20px; }
  .leyi-home-aligned .leyi-inquiry-types > div > label { padding: 20px; }
  .leyi-home-aligned .leyi-product-mobile-sample {
    box-sizing: border-box;
    min-height: 54px;
    height: auto;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--ha-blue);
    color: #FFFFFF;
    font: 700 16px/1.6 var(--ha-font);
  }
}
@media (prefers-reduced-motion: reduce) {
  .leyi-home-aligned :is(main .leyi-button, .leyi-inquiry-submit button, .rd-primary,
    .sc-button, .rd-search-submit) { transition: none; }
}

/* ===== FAQ unified to the homepage standard (2026-10-09): 18px/700 questions on
   20px rows, 16px/1.8 answers, #D5DADD rules, 20px blue plus rotating to ×. ===== */
.leyi-home-aligned .leyi-product-detail #faq .leyi-product-detail__faq-list summary,
.leyi-home-aligned .leyi-about-v2 #faq details summary,
.leyi-home-aligned .leyi-dmf03-v2 #faq summary {
	padding: 20px 0 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.6 !important;
}
.leyi-home-aligned .leyi-about-v2 #faq details summary h3 {
	font-size: 18px !important;
	font-weight: 700 !important;
}
.leyi-home-aligned .leyi-product-detail #faq details,
.leyi-home-aligned .leyi-dmf03-v2 #faq details { border-color: #D5DADD !important; }
.leyi-home-aligned .leyi-product-detail #faq .leyi-product-detail__faq-list,
.leyi-home-aligned .leyi-dmf03-v2 #faq > div > div { border-top-color: #D5DADD !important; }
.leyi-home-aligned :is(.leyi-product-detail, .leyi-dmf03-v2, .leyi-about-v2) #faq details p {
	font-size: 16px !important;
	line-height: 1.8 !important;
	color: #51606A !important;
	padding: 0 40px 22px 0 !important;
}
.leyi-home-aligned :is(.leyi-product-detail, .leyi-dmf03-v2, .leyi-about-v2) #faq summary svg {
	width: 20px;
	height: 20px;
	flex: none;
	color: #1E5BD8;
	transition: transform 180ms ease;
}
.leyi-home-aligned :is(.leyi-product-detail, .leyi-dmf03-v2, .leyi-about-v2) #faq details[open] summary svg { transform: rotate(45deg); }
/* Master product accordion motion; the template script adds .leyi-faq-motion. */
.leyi-home-aligned .leyi-product-detail #faq details.leyi-faq-motion > p {
	display: block;
	height: 0;
	opacity: 0;
	padding-bottom: 0 !important;
	overflow: hidden;
	pointer-events: none;
	transition: height 340ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
}
.leyi-home-aligned .leyi-product-detail #faq details.leyi-faq-motion.is-open > p {
	opacity: 1;
	padding-bottom: 22px !important;
	pointer-events: auto;
}
.leyi-home-aligned .leyi-product-detail #faq .leyi-product-detail__faq-grid > div:first-child > h2 { margin-top: 12px !important; }
