/* Approved card A: scoped to the catalog and one representative detail page. */
@font-face {
  font-family: XiangxiSansPreview400;
  src: url('/assets/fonts/ui-phase2/zh-sans.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: XiangxiSansPreview500;
  src: url('/assets/fonts/ui-phase2/zh-sans-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

body.ui-phase2, body.ui-phase2 * {
  font-family: XiangxiSansPreview400, 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
  font-synthesis: none;
}
body.ui-phase2 { font-size: 1rem; line-height: 1.65; }
body.ui-phase2 :is(h1, h2, h3), body.ui-phase2 :is(h1, h2, h3) * {
  font-family: XiangxiSongWeb, 'Source Han Serif SC', 'Songti SC', serif !important;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body.ui-phase2 :is(button, .button, .nav-links, .eyebrow, .product-category, .detail-category, .product-link, .wechat-copy),
body.ui-phase2 :is(button, .button, .nav-links, .eyebrow, .product-category, .detail-category, .product-link, .wechat-copy) * {
  font-family: XiangxiSansPreview500, 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
  font-weight: 500;
}
body.ui-phase2 :is(p, address, .breadcrumb, .footer-wrap) { overflow-wrap: anywhere; }
body.ui-phase2 :is(.nav-wrap, .hero-grid, .products-section, .contact-section, .footer-wrap, .detail-main > .container) {
  width: min(1184px, calc(100% - 64px));
}
body.ui-phase2 .site-header { background: var(--cream); border-bottom: 0; backdrop-filter: none; }
body.ui-phase2 .brand { min-height: 44px; }
body.ui-phase2 .nav-wrap { min-height: 94px; gap: 18px; padding-block: 20px; flex-wrap: wrap; }
body.ui-phase2 .brand { flex: 0 1 285px; min-width: 0; }
body.ui-phase2 .brand-logo { width: 100%; }
body.ui-phase2 .nav-links { min-width: 0; gap: 18px; flex-wrap: wrap; }
body.ui-phase2 .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: .875rem;
  white-space: normal;
}
body.ui-phase2 .nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
body.ui-phase2 .nav-contact span { margin-left: 0; }
body.ui-phase2 .bgm-toggle { border-radius: 4px; font-size: .75rem; }
body.ui-phase2 .ui-icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
body.ui-phase2 :is(a, button):focus-visible { outline: 3px solid var(--rust-dark); outline-offset: 4px; }

/* Leave the sticky depth gallery's geometry and scroll transforms unchanged. */
body.ui-phase2 .hero { overflow: visible; }
body.ui-phase2 .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 64px; padding: 20px 0 50px; }
body.ui-phase2 .hero-grid > * { min-width: 0; }
body.ui-phase2 .eyebrow { font-size: .8125rem; letter-spacing: .1em; margin-bottom: 14px; }
body.ui-phase2 .hero-copy h1 {
  font-weight: 600;
  font-size: clamp(3.3rem, 6.4vw, 5.6rem);
  line-height: 1.2;
  letter-spacing: -.045em;
  max-width: 100%;
}
body.ui-phase2 .hero-actions { gap: 12px; margin-top: 28px; }
body.ui-phase2 .button {
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 4px;
  font-size: .9375rem;
  line-height: 1.5;
  text-align: center;
  gap: 12px;
}
body.ui-phase2 .service-list { gap: 12px 20px; margin-top: 28px; font-size: .875rem; font-weight: 400; }
body.ui-phase2 .service-list span { display: inline-flex; align-items: center; gap: 7px; }
body.ui-phase2 .service-list .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
body.ui-phase2 .hero-address { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); margin-top: 26px; padding-top: 18px; }
body.ui-phase2 .hero-art { width: 100%; aspect-ratio: 1.06; border: 0; border-radius: 5px; box-shadow: none; }
body.ui-phase2 .storefront-caption {
  right: 0;
  bottom: 0;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 0;
  background: #373430e8;
  font-size: .8125rem;
}

body.ui-phase2 .products-section { padding-block: 40px; }
body.ui-phase2 .section-heading { margin-bottom: 12px; }
body.ui-phase2 h2 { font-size: clamp(2rem, 3.3vw, 3rem); letter-spacing: -.03em; }
body.ui-phase2 .product-image-note { font-size: .875rem; line-height: 1.7; }
body.ui-phase2 .product-controls { grid-template-columns: minmax(0, 1fr) 245px; gap: 20px; margin: 26px 0 28px; }
body.ui-phase2 .filters { gap: 6px; }
body.ui-phase2 .filter-button { min-width: 44px; min-height: 44px; border-radius: 4px; padding: 9px 13px; font-size: .875rem; }
body.ui-phase2 .search-box { min-height: 46px; border-color: var(--muted); border-radius: 4px; padding-inline: 12px; }
body.ui-phase2 .search-box input { min-height: 44px; padding-block: 10px; font-size: .875rem; }
body.ui-phase2 .search-box input::placeholder { color: var(--muted); opacity: 1; }
body.ui-phase2 .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
body.ui-phase2 .product-card {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.ui-phase2 .product-card.is-revealed:hover { box-shadow: none; }
body.ui-phase2 .product-card .product-visual {
  min-height: 0;
  aspect-ratio: 1.16;
  background: #ede9e1;
  font-size: 2.5rem;
}
body.ui-phase2 .product-card .product-visual.has-image { padding: 0; background: #fff; }
body.ui-phase2 .product-card .product-visual > .product-image {
  position: absolute;
  inset: 6% 6.5%;
  width: 87%;
  height: 88%;
  object-fit: contain;
}
body.ui-phase2 .product-no-image { color: var(--ink); font-size: .875rem; padding: 24px; text-align: center; }
body.ui-phase2 .product-info { padding: 18px 0 10px; align-items: flex-start; }
body.ui-phase2 .product-category { margin-bottom: 7px; font-size: .8125rem; }
body.ui-phase2 .product-name { font-size: 1.5rem; line-height: 1.45; letter-spacing: -.025em; }
body.ui-phase2 .product-meta { margin-block: 9px 12px; font-size: .875rem; line-height: 1.6; }
body.ui-phase2 .product-link { min-height: 44px; gap: 8px; padding-top: 0; font-size: .8125rem; text-decoration: underline; text-underline-offset: 5px; }

body.ui-phase2 .contact-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-block: 40px 55px; }
body.ui-phase2 .contact-section > * { min-width: 0; }
body.ui-phase2 .contact-copy h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.3; }
body.ui-phase2 .contact-method, body.ui-phase2 .contact-wechat { border-radius: 4px; }
body.ui-phase2 .contact-method strong, body.ui-phase2 .contact-wechat strong { font-size: 1.5rem; font-weight: 400; }
body.ui-phase2 .contact-method small, body.ui-phase2 .contact-wechat small { font-size: .8125rem; }
body.ui-phase2 .wechat-copy { border-radius: 4px; font-size: .8125rem; }
body.ui-phase2 .inquiry-form { background: #e9e4dc; border-radius: 5px; }
body.ui-phase2 .form-note { color: var(--ink); font-size: .875rem; }
body.ui-phase2 .inquiry-form label { font-size: .875rem; font-weight: 400; }
body.ui-phase2 .inquiry-form :is(input, select, textarea) { min-width: 0; border-radius: 4px; }
body.ui-phase2 .inquiry-form select { height: max(44px, 2.75em); line-height: 1.5; }
/* Contain native selected-text painting; keep the complete name readable below. */
body.ui-phase2 .product-select-wrap { display: block; width: 100%; min-width: 0; overflow: hidden; border-radius: 4px; }
body.ui-phase2 .product-select-wrap:focus-within { outline: 2px solid var(--muted); outline-offset: 4px; }
body.ui-phase2 .selected-product-name { margin: -12px 0 18px; font-size: .875rem; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
body.ui-phase2 .site-footer { color: var(--cream); background: var(--ink); }
body.ui-phase2 .site-footer .footer-wrap { min-height: 84px; font-size: 1rem; font-weight: 400; }

body.ui-phase2 .detail-main { padding-block: 15px 45px; }
body.ui-phase2 .breadcrumb { font-size: .875rem; margin-bottom: 28px; }
body.ui-phase2 .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
body.ui-phase2 .detail-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 70px; }
body.ui-phase2 .gallery-main { min-height: 0; aspect-ratio: 1; border: 0; border-radius: 0; box-shadow: none; max-height: none; }
body.ui-phase2 .gallery-main > img { inset: 5%; width: 90%; height: 90%; object-fit: contain; }
body.ui-phase2 .gallery-placeholder { background: #ede9e1; color: var(--ink); font-size: 1rem; }
body.ui-phase2 .image-fallback-message { color: var(--ink); }
body.ui-phase2 .gallery-caption { font-size: .8125rem; margin-top: 12px; }
body.ui-phase2 .gallery-thumbs { padding: 10px 4px; overscroll-behavior-x: contain; }
body.ui-phase2 .gallery-thumb { flex-basis: 82px; width: 82px; height: 82px; border-radius: 3px; }
body.ui-phase2 .gallery-thumb.active { border: 2px solid var(--rust); box-shadow: none; }
body.ui-phase2 .detail-summary { padding-top: 20px; }
body.ui-phase2 .detail-category { font-size: .8125rem; font-weight: 400; }
body.ui-phase2 .detail-summary h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.3; letter-spacing: -.03em; }
body.ui-phase2 .detail-meta { display: grid; gap: 0; margin-block: 26px 24px; border-top: 1px solid var(--line); }
body.ui-phase2 .detail-meta span { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 400; }
body.ui-phase2 .detail-lead { color: var(--ink); line-height: 1.8; }
body.ui-phase2 .purchase-panel { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
body.ui-phase2 .purchase-panel strong { font-size: 1rem; font-weight: 400; }
body.ui-phase2 .related-section { margin-top: 44px; }
body.ui-phase2 .related-heading h2 { font-size: 2rem; }
body.ui-phase2 .related-heading a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
body.ui-phase2 .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 920px; gap: 30px 24px; }
body.ui-phase2 .related-card { min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; overflow: visible; box-shadow: none; }
body.ui-phase2 .related-card:hover { box-shadow: none; }
body.ui-phase2 .related-card > img { height: auto; aspect-ratio: 1.16; padding: 6%; object-fit: contain; }
body.ui-phase2 .related-copy { padding: 18px 0 10px; }
body.ui-phase2 .related-copy small { font-size: .8125rem; font-weight: 400; }
body.ui-phase2 .related-copy h3 { font-size: 1.5rem; line-height: 1.45; }

@media (max-width: 1120px) {
  body.ui-phase2 .brand { flex-basis: 235px; }
  body.ui-phase2 .nav-wrap, body.ui-phase2 .nav-links { gap: 12px; }
  body.ui-phase2 .hero-grid { gap: 38px; }
  body.ui-phase2 .hero-copy h1 { font-size: clamp(3.2rem, 6.4vw, 4.7rem); }
  body.ui-phase2 .product-grid { gap: 24px 18px; }
  body.ui-phase2 .detail-grid { gap: 40px; }
  body.ui-phase2 .contact-section { gap: 44px; }
}
@media (max-width: 900px) {
  body.ui-phase2 .product-controls { grid-template-columns: minmax(0, 1fr); }
  body.ui-phase2 .search-row { width: 100%; min-width: 0; margin-left: 0; }
}
@media (max-width: 760px) {
  body.ui-phase2 :is(.nav-wrap, .hero-grid, .products-section, .contact-section, .footer-wrap, .detail-main > .container) { width: calc(100% - 40px); }
  body.ui-phase2 .nav-wrap { flex-direction: row; gap: 8px 12px; padding-block: 16px; }
  body.ui-phase2 .brand { flex: 1 1 180px; max-width: 265px; }
  body.ui-phase2 .nav-links { width: 100%; gap: 18px; }
  body.ui-phase2 .nav-links .nav-home:first-child { display: inline-flex; }
  body.ui-phase2 .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 16px 32px; }
  body.ui-phase2 .hero-copy h1 { font-size: clamp(2.8rem, 9.5vw, 4.4rem); }
  body.ui-phase2 .hero-art { aspect-ratio: 1.35; }
  body.ui-phase2 .products-section { padding-block: 28px 32px; }
  body.ui-phase2 .search-row { width: 100%; margin-left: 0; }
  body.ui-phase2 .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  body.ui-phase2 .product-name { font-size: 1.3rem; }
  body.ui-phase2 .product-meta { font-size: .8125rem; }
  body.ui-phase2 .contact-section { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 40px; }
  body.ui-phase2 .contact-copy h2 { font-size: 2.5rem; }
  body.ui-phase2 .site-footer .footer-wrap { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding-block: 20px; }
  body.ui-phase2 .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.ui-phase2 .detail-summary { padding-top: 0; }
  body.ui-phase2 .detail-summary h1 { font-size: 2.5rem; }
  body.ui-phase2 .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  body.ui-phase2 :is(.nav-wrap, .hero-grid, .products-section, .contact-section, .footer-wrap, .detail-main > .container) { width: calc(100% - 32px); }
  body.ui-phase2 .brand { max-width: 200px; flex-basis: 145px; }
  body.ui-phase2 .nav-links { gap: 10px 14px; }
  body.ui-phase2 .nav-links a { font-size: .8125rem; }
  body.ui-phase2 .hero-copy h1 { font-size: 2.7rem; letter-spacing: -.04em; }
  body.ui-phase2 .service-list { gap: 10px 16px; font-size: .8125rem; }
  body.ui-phase2 .button { padding-inline: 15px; font-size: .875rem; }
  body.ui-phase2 .storefront-caption { font-size: .75rem; padding: 9px 12px; }
  body.ui-phase2 .product-grid, body.ui-phase2 .related-grid { grid-template-columns: minmax(0, 1fr); }
  body.ui-phase2 .product-card .product-visual, body.ui-phase2 .related-card > img { aspect-ratio: 1.35; }
  body.ui-phase2 .product-name { font-size: 1.5rem; }
  body.ui-phase2 .contact-copy h2 { font-size: 2.2rem; }
  body.ui-phase2 .inquiry-form { padding: 20px; }
  body.ui-phase2 .detail-summary h1 { font-size: 2.25rem; }
  body.ui-phase2 .gallery-thumb { flex-basis: 76px; width: 76px; height: 76px; }
}
