:root {
    --site-gutter: 56px;
    --brand: #a22d6d;
    --brand-dark: #762451;
    --plum: #351326;
    --blush: #ebc7d7;
    --powder: #f8edf2;
    --champagne: #c8a66a;
    --ivory: #fff9f7;
    --tint: #f8edf2;
    --paper: #ffffff;
    --ink: #242126;
    --muted: #665d64;
    --line: #e8dde3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.65; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: 58px; line-height: 1.1; }
h2 { font-size: 44px; line-height: 1.18; margin: 0 0 24px; }
h3 { font-size: 22px; line-height: 1.36; font-weight: 500; margin: 0 0 12px; }
p { margin: 0 0 24px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, .button { transition: background .2s, color .2s, border-color .2s; }
button:disabled, .button[aria-disabled="true"] { pointer-events: none; cursor: default; background: var(--line); color: var(--muted); }
[hidden] { display: none !important; }
.container { width: calc(100% - 2 * var(--site-gutter)); max-width: none; margin-inline: auto; min-width: 0; }
.section { padding-block: 72px; scroll-margin-top: 110px; }
.eyebrow { color: var(--brand); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.lead { color: var(--muted); max-width: 620px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 24px; }
.section-heading > div > :last-child { margin-bottom: 0; }
.section-heading h2 { max-width: 760px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 11px 24px; border: 1px solid var(--brand); border-radius: 4px; background: var(--brand); color: var(--paper); font-size: 16px; line-height: 1.5; }
.button:hover, .button:active { background: var(--brand-dark); color: var(--paper); border-color: var(--brand-dark); }
.button:active { box-shadow: inset 0 0 0 1px var(--paper); }
.button.secondary { color: var(--ink); border-color: var(--ink); background: transparent; }
.button.secondary:hover { background: var(--tint); }
.button.secondary:active { border-color: var(--brand-dark); }
.text-link { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; font-size: 16px; }
.text-link:hover { color: var(--brand-dark); }
.icon-button { width: 44px; height: 44px; padding: 10px; display: inline-grid; place-items: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.icon-button svg { width: 22px; height: 22px; }
.icon-button:hover { background: var(--tint); border-color: var(--brand); }
.icon-button:active { background: var(--brand); color: var(--paper); }
.brand-logo { display: block; width: 188px; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 76px; object-fit: contain; object-position: left center; }
.brand-logo:hover { opacity: .9; }
/* Fluid desktop masthead. */
.masthead { background: #fff9f7; }
.masthead-inner { width: 100%; height: 140px; margin-inline: auto; padding-inline: 50px; background: #fff; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 24px; }
.masthead-contact { display: grid; gap: 8px; font: 400 16px/1.5 Arial, Helvetica, sans-serif; }
.masthead-contact a { display: flex; align-items: center; gap: 12px; width: fit-content; }
.masthead-contact svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--brand); stroke-width: 1.5; }
.masthead-logo { display: block; width: 88px; }
.masthead-logo img { display: block; width: 88px; height: 112px; object-fit: contain; }
.masthead-social { display: flex; justify-self: end; gap: 15px; align-items: center; }
.masthead-social-icon, .masthead-social-icon svg { display: block; width: 30px; height: 30px; flex-shrink: 0; }
.masthead-social-image { display: block; width: 30px; height: 30px; object-fit: contain; }
.masthead-social a:hover { opacity: .75; }
.site-header { background: #fff9f7; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(162, 45, 109, .14); backdrop-filter: blur(14px); }
.site-header .brand-logo img { mix-blend-mode: normal; }
.site-header [data-panel="site-search"] { border-color: transparent; background: transparent; }
.site-header [data-panel="site-search"]:hover { border-color: transparent; background: transparent; color: var(--brand); }
.admin-bar .site-header { top: 32px; }
.header-row { min-height: 88px; display: flex; align-items: center; justify-content: flex-start; gap: 28px; }
.primary-nav { display: flex; gap: 62px; align-items: center; }
.nav-link { font-size: 16px; font-weight: 400; }
.nav-link span { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-language { position: relative; display: flex; min-height: 44px; align-items: center; color: var(--ink); font-size: 16px; }
.language-toggle { display: flex; min-height: 44px; padding: 8px 0; align-items: center; border: 0; background: transparent; color: var(--ink); }
.header-language img { display: inline-block; width: 20px !important; height: auto !important; margin-right: 8px; }
.language-chevron { width: 10px; height: 10px; margin-left: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.language-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 180px; padding: 8px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 32px rgba(53, 19, 38, .12); }
.language-panel a { display: flex; padding: 8px; align-items: center; color: var(--ink); }
.language-panel a:hover { background: var(--powder); }
.menu-button { display: none; }
.mobile-header-logo { display: none; }
.header-panel { padding-block: 24px; }
.mobile-nav .nav-link { display: block; padding: 12px 0; }
.search-form { display: flex; gap: 16px; }
.search-form label { flex: 1; }
.search-field { width: 100%; }
input, textarea { max-width: 100%; min-height: 48px; border: 1px solid var(--muted); background: var(--paper); border-radius: 4px; padding: 12px; }
.search-submit { background: var(--brand); color: var(--paper); border: 0; padding: 12px 24px; cursor: pointer; }
.search-submit:hover { background: var(--brand-dark); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 16px; }
.site-footer { padding: 64px 0 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: 36px; }
.footer-brand p { max-width: 310px; margin-top: 24px; color: var(--muted); }
.site-footer .brand-logo img { height: 100px; mix-blend-mode: normal; }
.site-footer .footer-heading { font: 400 18px Arial, sans-serif; margin: 16px 0 24px; }
.footer-link-group a, .footer-contact a { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 400; }
.footer-contact { min-width: 0; overflow-wrap: anywhere; }
.footer-contact p { margin: 0; font-size: 16px; }
.footer-contact .footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item svg { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 3px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.contact-rail { position: fixed; right: 0; top: 50%; z-index: 90; display: grid; gap: 1px; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 4px; background: var(--line); box-shadow: 0 8px 30px rgba(36, 33, 38, .12); }
.contact-rail a, .contact-rail button { position: relative; display: grid; width: 48px; height: 48px; padding: 12px; place-items: center; border: 0; background: var(--paper); color: var(--brand); }
.contact-rail a:first-child { border-radius: 3px 3px 0 0; }
.contact-rail button:last-child { border-radius: 0 0 3px 3px; }
.contact-rail svg { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.contact-rail a:hover, .contact-rail button:hover { background: var(--brand); color: var(--paper); }
.contact-rail [data-label]::before { content: attr(data-label); position: absolute; right: 58px; top: 50%; padding: 5px 9px; transform: translateY(-50%); border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.4; opacity: 0; pointer-events: none; }
.contact-rail [data-label]:hover::before, .contact-rail [data-label]:focus-visible::before { opacity: 1; }
.mobile-quick-nav { display: none; }
.record-card { min-width: 0; }
.record-card__image { display: block; aspect-ratio: 1; background: var(--powder); margin-bottom: 24px; overflow: hidden; }
.record-card__image img { width: 100%; height: 100%; object-fit: contain; }
.record-card p { color: var(--muted); font-size: 16px; }
.record-card h3 { font-size: 22px; }
.record-card:focus-within h3 { color: var(--brand); }
.editor-empty { background: var(--tint); padding: 24px; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 24px 0; font: 400 16px/1.65 Arial, Helvetica, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.breadcrumb > * { min-width: 0; }

.prose { max-width: 820px; margin-inline: auto; }
.prose a { text-decoration: underline; }
@media (max-width: 1199px) {
    .contact-rail { display: none; }
    body { --mobile-quick-nav-row: 60px; padding-bottom: calc(var(--mobile-quick-nav-row) + 1px + env(safe-area-inset-bottom)); }
    .site-footer { display: none; }
    .mobile-quick-nav { position: fixed; inset: auto 0 0; z-index: 90; display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--paper); color: var(--brand); }
    .mobile-quick-nav a { display: grid; flex: 1; max-width: 100px; align-content: center; justify-items: center; gap: 4px; min-height: var(--mobile-quick-nav-row); }
    .mobile-quick-nav a::after { content: attr(aria-label); font-size: 11px; line-height: 1.25; text-align: center; }
    .mobile-quick-nav a:focus-visible { outline-offset: -3px; }
    .mobile-quick-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    :root { --site-gutter: 32px; }
    .masthead { display: none; }
    .mobile-header-logo { display: block; width: 72px; margin-right: auto; }
    .mobile-header-logo img { width: 100%; height: 64px; object-fit: contain; object-position: left center; }
    .primary-nav { display: none; }
    .menu-button { display: inline-grid; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .footer-brand p { max-width: 520px; }
}
@media (max-width: 767px) {
    body { font-size: 16px; line-height: 1.625; }
    h1 { font-size: 36px; line-height: 1.17; }
    h2 { font-size: 30px; line-height: 1.2; }
    :root { --site-gutter: 20px; --section-space: 50px; }
    .section { padding-block: var(--section-space); scroll-margin-top: 88px; }
    .section-heading { display: block; margin-bottom: 24px; }
    .section-heading .text-link { display: inline-block; margin-top: 8px; }
    .masthead-inner { width: calc(100% - 40px); height: auto; min-height: 140px; padding: 18px 12px; grid-template-columns: minmax(0,1fr) auto; gap: 16px 10px; }
    .masthead-logo { grid-column: 2; grid-row: 1; width: 52px; }
    .masthead-logo img { width: 52px; height: 66px; }
    .masthead-contact { font-size: 12px; gap: 8px; }
    .masthead-contact a { gap: 6px; overflow-wrap: anywhere; }
    .masthead-contact svg { width: 16px; height: 16px; }
    .masthead-social { grid-column: 1 / -1; justify-self: center; }
    .header-row { min-height: 72px; gap: 16px; }
    .brand-logo { width: 145px; }
    .brand-logo img { height: 56px; }
    .header-actions { gap: 8px; }
    .admin-bar .site-header { top: 46px; }
    .footer-grid { gap: 28px; }
    .footer-bottom { flex-wrap: wrap; }
    .site-footer { padding-bottom: 48px; }
    .record-card h3 { font-size: 18px; }
    .record-card__image { margin-bottom: 16px; }
    .search-form { flex-wrap: wrap; }
}
@media (768px <= width <= 1024px) {
    :root { --site-gutter: 50px; --section-space: 80px; }
    .section { padding-block: var(--section-space); }
}
@media (width <= 1024px) {
    .home .xiancai-product-showcase:has(+ .xiancai-customization),
    .home .xiancai-customization:has(+ .xiancai-credentials) { padding-bottom: calc(var(--section-space) / 2); }
    .home .xiancai-product-showcase + .xiancai-customization,
    .home .xiancai-customization + .xiancai-credentials { padding-top: calc(var(--section-space) / 2); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.nav-dropdown { position: relative; }
.nav-dropdown summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-dropdown[open] summary svg { transform: rotate(180deg); }
.nav-submenu { position: absolute; top: 100%; left: -16px; min-width: 160px; padding: 12px 0; background: #fff9f7; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(53,19,38,.1); z-index: 102; }
.nav-submenu .nav-link { display: block; padding: 10px 16px; white-space: nowrap; }
.nav-submenu .nav-link:hover { background: var(--powder); }
.mobile-nav .nav-submenu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 20px; }

@media (min-width: 1440px) {
    :root { --site-gutter: 32px; }
    body { font-size: 18px; }
    h1 { font-size: clamp(62px, 3.4vw, 72px); }
    h2 { font-size: clamp(48px, 2.6vw, 56px); }
    h3, .record-card h3 { font-size: 24px; }
    .lead { max-width: 720px; }
    .section-heading h2 { max-width: 900px; }
    .button, .text-link, .nav-link { font-size: 18px; }
    .record-card p { font-size: 18px; }
}

.footer-social { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.footer-social .masthead-social-icon { display: grid; place-items: center; width: 42px; height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; }
.footer-social .masthead-social-icon svg,.footer-social .masthead-social-image { width: 24px; height: 24px; }
.footer-social a:hover { border-color: var(--brand); background: var(--powder); }
.footer-social a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
