/* Design tokens and shared primitives. Accent comes from the existing 伽乐彩 logo. */
:root {
    --color-text: #222930;
    --color-muted: #626c76;
    --color-bg: #fff;
    --color-surface: #f4f5f5;
    --color-border: #dfe3e6;
    --color-accent: #274581;
    --color-accent-hover: #1e3767;
    --color-brand-detail: #efa614;
    --container: 1240px;
    --radius: 2px;
    --space: 8px;
    --section-space: 88px;
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; font-size: 16px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--color-accent); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.35; }
p { margin-bottom: 1em; }
ul, ol { padding-left: 1.4em; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; }
.site-container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 100; padding: 10px 18px; color: white; background: var(--color-accent); transform: translateY(-150%); }
.skip-link:focus { transform: none; color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 600; line-height: 1.6; transition: background-color .16s, border-color .16s; }
.button--accent { color: #fff; background: var(--color-accent); border-color: var(--color-accent); }
.button--accent:hover { color: #fff; background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.button--outline { background: transparent; border-color: #aeb5bb; }
.button--outline:hover { background: var(--color-surface); border-color: var(--color-accent); }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 14px; font-weight: 600; color: var(--color-accent); line-height: 1.6; }
.text-link > [aria-hidden] { font-size: 20px; }
.eyebrow { display: block; margin-bottom: 15px; color: var(--color-accent); font-size: 12px; font-weight: 650; letter-spacing: .14em; line-height: 1.6; }
.brand-line { display: inline-block; width: 22px; height: 2px; margin: 0 10px 4px 0; background: var(--color-brand-detail); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 2.7vw, 34px); letter-spacing: -.02em; }
.section-heading > .text-link { flex-shrink: 0; margin-bottom: 5px; }
.section-heading__description { max-width: 400px; margin: 0 0 4px; font-size: 16px; line-height: 1.8; color: var(--color-muted); }

/* Shared header and recursive navigation. */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 79px; }
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 12px; }
.site-header .site-brand { min-width: 0; flex-shrink: 1; }
.site-header .site-brand__mark { flex-shrink: 0; }
.site-header .site-brand__copy { min-width: 0; }
.site-header .site-brand__copy strong { line-height: 1.2; }
.site-brand__mark { position: relative; display: block; width: 66px; height: 52px; overflow: hidden; background: #fff; }
.site-brand__mark img { position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; max-width: none; transform: translate(-50%, -50%); object-fit: contain; }
.site-brand__copy { display: grid; line-height: 1.4; gap: 4px; }
.site-brand__copy strong { font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.site-brand__copy small { color: var(--color-muted); font-size: 10px; letter-spacing: .07em; }
.site-navigation { margin-left: auto; }
.nav-list, .nav-submenu { list-style: none; padding: 0; margin: 0; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-item { position: relative; }
.nav-home, .nav-row { display: flex; align-items: center; min-height: 79px; }
.nav-row a, .nav-home { white-space: nowrap; font-size: 16px; font-weight: 550; }
.nav-row { gap: 2px; }
.nav-row button { display: none; place-items: center; width: 22px; height: 32px; padding: 0; border: 0; color: var(--color-muted); background: transparent; }
.js .nav-row button { display: grid; }
.nav-row [aria-current], .nav-home[aria-current] { color: var(--color-accent); }
.nav-submenu { display: none; position: absolute; top: 100%; left: -20px; width: 252px; padding: 10px; border: 1px solid var(--color-border); background: #fff; }
.nav-submenu .nav-row { min-height: 44px; }
.nav-submenu a { display: block; flex: 1; padding: 9px 10px; white-space: normal; font-size: 13px; }
.nav-submenu .nav-row:hover { background: var(--color-surface); }
.nav-submenu .nav-submenu { position: static; width: auto; margin: 0 8px 8px 16px; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--color-border); }
.nav-item:hover > .nav-submenu, .nav-item:focus-within > .nav-submenu, .nav-item.is-open > .nav-submenu { display: block; }
.js .nav-item:not(.is-open) > .nav-submenu { display: none; }
.site-header__actions { display: flex; flex-shrink: 0; align-items: center; gap: 22px; }
.site-header__contact { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border: 1px solid rgb(39 69 129 / .16); border-radius: var(--radius); background: rgb(39 69 129 / .035); font-size: 14px; font-weight: 600; color: var(--color-accent); }
.site-search { position: relative; }
.site-search summary { display: grid; place-items: center; width: 38px; height: 42px; cursor: pointer; list-style: none; }
.site-search summary::-webkit-details-marker { display: none; }
.site-search form { position: absolute; right: 0; top: calc(100% + 24px); width: 340px; padding: 22px; border: 1px solid var(--color-border); background: #fff; }
.site-search label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.site-search__fields { display: flex; gap: 8px; }
.site-search input { width: 0; min-width: 0; flex: 1; height: 42px; padding: 8px 10px; border: 1px solid #b5bec7; border-radius: var(--radius); font-size: 14px; }
.site-search .button { min-height: 42px; padding-inline: 15px; }
.site-menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--color-border); background: white; }
.site-menu-toggle span { display: block; height: 1.5px; margin: 4px 0; background: var(--color-text); }

/* Cards, breadcrumbs, pagination and contact conversion. */
.content-grid, .scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 30px; }
.content-card { min-width: 0; border-bottom: 1px solid var(--color-border); padding-bottom: 24px; }
.content-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface); }
.content-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.content-card__image:hover img { transform: scale(1.025); }
.content-card__body { padding-top: 19px; }
.content-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--color-muted); font-size: 13px; }
.content-card h3 { margin-bottom: 11px; font-size: 20px; overflow-wrap: anywhere; }
.content-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: 16px; font-size: 15px; line-height: 1.85; color: var(--color-muted); }
.content-card--text { padding: 22px 0; border-top: 1px solid var(--color-border); }
.breadcrumbs { margin-bottom: 38px; font-size: 13px; color: var(--color-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 0; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li { overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: "/"; color: #a4aab0; margin-inline: 10px; }
.breadcrumbs [aria-current] { max-width: 100%; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.pagination > a, .pagination > span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--color-border); font-size: 13px; }
.pagination [aria-current] { color: #fff; background: var(--color-accent); border-color: var(--color-accent); }
.pagination .pagination__direction { padding-inline: 14px; }
.pagination .pagination__ellipsis { border-color: transparent; min-width: 22px; }
.pagination .is-disabled { color: #8b939b; }
.contact-cta { padding: 76px 0; background: #eef1f5; border-top: 1px solid var(--color-border); }
.contact-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-cta h2 { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 34px); }
.contact-cta p:last-child { margin-bottom: 0; color: var(--color-muted); font-size: 16px; }
.contact-cta__actions { display: grid; flex-shrink: 0; gap: 10px; text-align: center; }
.contact-cta__phone { font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.contact-cta__actions .button { min-height: 48px; padding-inline: 26px; font-size: 15px; }

/* Footer. Contact fields are the existing Site Config values. */
.site-footer { background: #222b36; color: #e7eaee; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.1fr 112px; gap: 44px; padding-bottom: 50px; }
.site-footer .site-brand { color: #fff; }
.site-footer .site-brand__mark { width: 62px; height: 48px; }
.site-footer .site-brand__mark img { width: 112px; height: 112px; }
.site-footer .site-brand__copy strong { font-size: 22px; }
.site-footer .site-brand__copy small { color: #bec5cd; }
.footer-brand > p { max-width: 280px; margin: 22px 0; color: #bec5cd; font-size: 14px; }
.site-footer .text-link { color: #e7eaee; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer h2 { margin-bottom: 18px; font-size: 15px; }
.footer-navigation ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-navigation li { margin-bottom: 9px; }
.footer-contact { display: flex; flex-direction: column; align-items: start; gap: 8px; font-size: 14px; overflow-wrap: anywhere; }
.footer-contact h2 { margin-bottom: 8px; }
.footer-contact .footer-phone { margin-bottom: 4px; font-size: 25px; font-weight: 650; letter-spacing: .01em; }
.footer-contact p { margin-bottom: 0; color: #bec5cd; }
.footer-qr { padding-top: 4px; }
.footer-qr img { width: 112px; height: 112px; object-fit: contain; background: #fff; padding: 5px; }
.footer-qr figcaption { margin-top: 12px; text-align: center; color: #bec5cd; font-size: 12px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 22px; border-top: 1px solid #424952; font-size: 11px; color: #bec5cd; }
.footer-bottom p { margin: 0; }
.footer-bottom > div { display: flex; gap: 22px; }

/* The existing search and contact pages inherit shared typography only. */
.contact-page, .search-page { padding-block: 40px 80px; }
.contact-page h1, .search-page h1 { margin-bottom: 32px; font-size: 36px; }
.contact-page__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-page__layout h2 { margin-bottom: 20px; font-size: 23px; }
.contact-page__details dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; margin: 0; font-size: 14px; }
.contact-page__details dt { color: var(--color-muted); }
.contact-page__details dd { margin: 0; overflow-wrap: anywhere; }
.contact-page__wechat { display: grid; justify-items: start; gap: 12px; margin-top: 30px; font-size: 14px; }
.contact-page__wechat img { width: 150px; height: 150px; object-fit: contain; }
.contact-page__map { margin-top: 25px; }
.contact-page__map h3 { font-size: 17px; }
.contact-page__map iframe { display: block; width: 100%; height: 300px; border: 1px solid var(--color-border); }
.contact-page__form-section { padding: 30px; background: var(--color-surface); }
.contact-page__form-section form { display: grid; gap: 8px; font-size: 14px; }
.contact-page__form-section input, .contact-page__form-section textarea { width: 100%; padding: 10px 12px; border: 1px solid #b5bec7; border-radius: var(--radius); background: #fff; }
.contact-page__form-section label:not(:first-child) { margin-top: 8px; }
.contact-page__form-section button { justify-self: start; margin-top: 12px; padding: 10px 22px; border: 1px solid var(--color-accent); color: #fff; background: var(--color-accent); }
.contact-page__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-page__error, .search-page__error { color: #a4262c; }
.contact-page__success { padding: 10px 12px; background: #e9f6ec; color: #217346; }
.search-page__results { max-width: 860px; list-style: none; padding: 0; margin-block: 32px; }
.search-page__results li { padding: 25px 0; border-bottom: 1px solid var(--color-border); }
.search-page__results h2 { font-size: 22px; }
.search-page__results p, .search-page__results time { color: var(--color-muted); font-size: 14px; overflow-wrap: anywhere; }
.search-highlight { color: #b8212b; background: transparent; font-weight: 700; }

@media (max-width: 1279px) {
    .site-header__inner { gap: 18px; }
    .nav-list { gap: 16px; }
    .site-brand__copy strong { font-size: 20px; }
    .nav-row a, .nav-home { font-size: 15px; }
    .site-header__actions { gap: 14px; }
    .site-header__contact { padding-inline: 10px; gap: 10px; }
}
@media (max-width: 1079px) {
    .site-container { width: calc(100% - 56px); }
    .site-header__inner { flex-wrap: wrap; min-height: 76px; gap: 0 16px; }
    .site-navigation { order: 3; width: 100%; margin: 0; }
    .nav-list { display: block; }
    .nav-home, .nav-row { min-height: 48px; padding-inline: 10px; border-bottom: 1px solid var(--color-border); }
    .nav-row a { flex: 1; }
    .nav-row button { width: 42px; height: 42px; }
    .nav-submenu { display: block; position: static; width: auto; padding: 0 0 0 18px; border: 0; background: transparent; }
    .nav-submenu .nav-submenu { margin: 0; }
    .js .site-navigation { display: none; position: absolute; inset: 76px 0 auto; max-height: calc(100dvh - 76px); overflow-y: auto; padding: 12px 28px 24px; border-bottom: 1px solid var(--color-border); background: #fff; }
    .js .site-navigation.is-open { display: block; }
    .js .site-menu-toggle { display: block; }
    .site-header__actions { margin-left: auto; }
    .site-header__contact { margin-right: 10px; border: 0; }
    .site-search form { top: calc(100% + 18px); }
    .content-grid, .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.15fr .8fr 1fr; gap: 32px; }
    .footer-qr { grid-column: 3; }
    .contact-page__layout { gap: 32px; }
}
@media (max-width: 767px) {
    :root { --section-space: 56px; }
    .site-container { width: calc(100% - 40px); }
    .site-header__inner { min-height: 70px; }
    .site-brand { gap: 8px; }
    .site-brand__mark { width: 43px; height: 40px; }
    .site-brand__mark img { width: 82px; height: 82px; }
    .site-brand__copy strong { font-size: 18px; }
    .site-header .site-brand__copy strong { font-size: clamp(16px, 4.5vw, 18px); }
    .site-brand__copy small { font-size: 9px; }
    .nav-row a, .nav-home { font-size: 14px; }
    .site-header__actions { gap: 4px; }
    .site-header__contact { display: none; }
    .js .site-navigation { top: 70px; max-height: calc(100dvh - 70px); padding-inline: 20px; }
    .site-search form { position: fixed; top: 69px; left: 20px; right: 20px; width: auto; padding: 20px; }
    .section-heading { align-items: start; gap: 18px; margin-bottom: 25px; }
    .section-heading > .text-link { font-size: 12px; gap: 8px; margin-top: 29px; }
    .section-heading__description { display: none; }
    .content-grid, .scene-grid { gap: 28px 18px; }
    .content-card h3 { font-size: 18px; }
    .content-card p { font-size: 14px; line-height: 1.8; }
    .content-card__meta { font-size: 12px; }
    .breadcrumbs { margin-bottom: 26px; font-size: 11px; }
    .contact-cta { padding-block: 38px; }
    .contact-cta__inner { align-items: start; flex-direction: column; gap: 25px; }
    .contact-cta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
    .contact-cta h2 { max-width: 340px; }
    .contact-cta p:last-child { font-size: 14px; }
    .contact-cta__phone { font-size: 17px; }
    .contact-cta__actions .button { min-height: 46px; padding-inline: 22px; font-size: 14px; }
    .site-footer { padding-top: 42px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; padding-bottom: 34px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-qr { grid-column: 2; grid-row: 2; justify-self: end; }
    .footer-bottom { align-items: start; flex-direction: column; gap: 9px; padding-block: 20px; }
    .footer-contact .footer-phone { font-size: 24px; }
    .site-footer .site-brand__mark { width: 43px; height: 40px; }
    .site-footer .site-brand__mark img { width: 82px; height: 82px; }
    .site-footer .site-brand__copy strong { font-size: 18px; }
    .footer-brand > p, .footer-navigation ul, .footer-contact { font-size: 13px; }
    .site-footer h2 { font-size: 14px; }
    .contact-page, .search-page { padding-block: 28px 50px; }
    .contact-page__layout { grid-template-columns: 1fr; gap: 38px; }
    .contact-page__form-section { padding: 22px; }
    .contact-page h1, .search-page h1 { font-size: 29px; }
    .pagination { gap: 5px; margin-top: 34px; }
    .pagination > a, .pagination > span { min-width: 35px; min-height: 38px; }
    .pagination .pagination__direction { padding-inline: 9px; }
}
@media (max-width: 599px) {
    .content-grid, .scene-grid { grid-template-columns: 1fr; }
    .section-heading { flex-wrap: wrap; }
    .section-heading > .text-link { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
