/* Shared site chrome. Kept separate from page-specific styles. */
html { scroll-padding-top: 88px; }
body { color: var(--ink-900); font-family: var(--font-body); line-height: 1.75; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.025em; }
.nav { height: 72px; min-height: 72px; padding: 0 24px; gap: 20px; flex-wrap: nowrap; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; box-shadow: none; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-logo { gap: 8px; font-size: 15px; color: var(--brand-900); line-height: 1.25; }
.nav-logo-img { width: 40px; height: 40px; }
.logo-sub { font-size: 10px; color: var(--ink-700); }
.nav-content { flex: 1; min-width: 0; gap: clamp(10px, 1.4vw, 22px); }
.nav-links { gap: clamp(10px, 1.2vw, 20px); }
.nav-links a { position: relative; display: flex; align-items: center; height: 72px; font-size: 15px; font-weight: 500; color: var(--ink-700); text-decoration: none; }
.nav-links a:hover, .nav-links a.is-current { color: var(--brand-600); text-decoration: none; }
.nav-links a.is-current::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--brand-600); }
.nav-actions { gap: 10px; }
.nav-cta { padding: 10px 17px; border-radius: 999px; background: var(--brand-600); transition: transform var(--motion-standard) ease, box-shadow var(--motion-standard) ease, background var(--motion-standard) ease; }
.nav-cta:hover { background: var(--brand-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.language-switcher-trigger { border-radius: 999px; color: var(--brand-900); }
.language-switcher-menu { border-radius: 12px; }
.nav-toggle { background: var(--brand-600); border-radius: 12px; }
.nav-backdrop { display: none; }
body.nav-open { overflow: hidden; }
footer { border-top: 3px solid var(--accent); background: linear-gradient(125deg, var(--brand-900), var(--brand-800)); color: rgba(255,255,255,.72); }
footer .foot-inner { max-width: 1248px; padding: 72px 24px; grid-template-columns: 1.15fr .7fr 1.2fr 1fr; gap: 32px; }
footer .foot-title { color: #fff; font-size: 16px; margin-bottom: 20px; }
footer .foot-logo-img { width: 48px; height: 48px; border-radius: 10px; }
footer .foot-logo-sub { color: rgba(255,255,255,.72); }
footer .foot-desc { max-width: 34ch; }
footer .foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
footer .foot-social img { width: 22px; height: 22px; }
footer .foot-links, footer .foot-contact { display: grid; grid-template-columns: 1fr; gap: 10px; }
footer .foot-contact li { display: flex; align-items: flex-start; gap: 10px; }
footer .foot-contact svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 5px; stroke: var(--accent); fill: none; stroke-width: 1.75; }
footer .foot-contact-label { color: rgba(255,255,255,.72); }
footer a { color: rgba(255,255,255,.82); }
footer a:hover { color: #fff; text-decoration: underline; }
footer .foot-qr-list { flex-wrap: nowrap; gap: 12px; }
footer .foot-qr { width: 96px; flex: 0 1 96px; }
footer .foot-qr-frame { width: 100%; height: auto; aspect-ratio: 1; padding: 5px; border-radius: 12px; background: #fff; }
footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.15); background: transparent; }
.floating-contact-wrap { position: fixed; z-index: 90; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
.floating-contact-button { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: var(--brand-600); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); }
.floating-contact-button:hover { background: var(--brand-800); }
.floating-contact-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.floating-contact-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 250px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink-900); box-shadow: var(--shadow-lg); }
.floating-contact-panel[hidden], .floating-contact-wrap[hidden] { display: none; }
.floating-contact-panel .foot-qr-list { display: flex; justify-content: center; gap: 12px; }
.floating-contact-panel figure { width: 94px; text-align: center; font-size: 12px; line-height: 1.4; }
.floating-contact-panel img { width: 94px; height: 94px; object-fit: contain; }
@media (min-width: 992px) and (max-width: 1250px) {
 .nav.is-collapsible .nav-toggle { display: none; }
 .nav.is-collapsible .nav-content { display: flex; }
 .nav-content { flex: 1; max-height: none; overflow: visible; padding: 0; flex-direction: row; align-items: center; }
 .nav-links { flex-direction: row; align-items: center; gap: 10px; }
 .nav-links a { border: 0; padding: 0; font-size: 13px; }
 .nav-logo { font-size: 13px; } .nav { gap: 10px; padding-inline: 16px; }
 footer .foot-inner { grid-template-columns: 1.15fr .7fr 1.2fr 1fr; }
}
@media (max-width: 991px) {
 .nav.is-collapsible .nav-toggle { display: block; margin-left: auto; }
 .nav.is-collapsible .nav-content { display: none; }
 .nav.is-collapsible.is-open .nav-content { display: flex; }
 .nav-content { position: fixed; top: 72px; right: 0; bottom: 0; z-index: 102; width: min(360px, 88vw); max-height: calc(100dvh - 72px); overflow-y: auto; padding: 20px 24px 32px; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; box-shadow: var(--shadow-lg); }
 .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
 .nav-links a { display: block; height: auto; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
 .nav-links a.is-current::after { right: auto; width: 36px; }
 .nav-actions { justify-content: space-between; }
 .nav.is-open .nav-backdrop { display: block; position: fixed; inset: 72px 0 0; z-index: 101; border: 0; background: rgba(15,23,42,.45); }
 footer .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
 .nav { padding: 0 24px; }
 .nav-logo-img { width: 40px; height: 40px; }
 footer .foot-inner { grid-template-columns: 1fr; padding: 56px 24px; gap: 32px; }
 .floating-contact-button { width: 52px; height: 52px; justify-content: center; padding: 0; }
 .floating-contact-button span { display: none; }
}
footer .foot-links { display: block; }
footer .foot-links ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-cta { border-radius: var(--radius-control); }
@media (max-width: 991px) {
 .nav-content { bottom: auto; height: calc(100dvh - 72px); }
 .nav.is-open .nav-backdrop { bottom: auto; height: calc(100dvh - 72px); }
}
@media (min-width: 992px) and (max-width: 1250px) {
 html:not([lang="zh-CN"]) .nav.is-collapsible .nav-toggle { display: block; margin-left: auto; }
 html:not([lang="zh-CN"]) .nav.is-collapsible .nav-content { display: none; }
 html:not([lang="zh-CN"]) .nav.is-collapsible.is-open .nav-content { display: flex; }
 html:not([lang="zh-CN"]) .nav-content { position: fixed; top: 72px; right: 0; bottom: auto; z-index: 102; width: min(360px, 88vw); height: calc(100dvh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; padding: 20px 24px 32px; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; box-shadow: var(--shadow-lg); }
 html:not([lang="zh-CN"]) .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
 html:not([lang="zh-CN"]) .nav-links a { display: block; height: auto; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
 html:not([lang="zh-CN"]) .nav-links a.is-current::after { right: auto; width: 36px; }
 html:not([lang="zh-CN"]) .nav-actions { justify-content: space-between; }
 html:not([lang="zh-CN"]) .nav.is-open .nav-backdrop { display: block; position: fixed; inset: 72px 0 auto; height: calc(100dvh - 72px); z-index: 101; background: rgba(15,23,42,.45); }
}
footer .foot-contact li { display: block; }
footer .foot-contact-label { display: flex; align-items: center; gap: 8px; }
footer .foot-contact-label svg { margin-top: 0; }
footer .foot-contact li > a, footer .foot-contact li > span:not(.foot-contact-label) { display: block; margin-left: 26px; }
.floating-contact-wrap { opacity: 1; visibility: visible; transition: opacity 250ms ease, visibility 250ms ease; }
.floating-contact-wrap.is-contact-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.floating-contact-button { box-shadow: 0 0 0 8px rgba(55,48,201,.18), 0 8px 24px rgba(15,27,77,.2); }
@media (prefers-reduced-motion: reduce) { .floating-contact-wrap { transition: none; } }
/* Three-column footer and transparent white QR artwork. */
@media (min-width: 992px) {
 footer .foot-inner { max-width: 1248px; grid-template-columns: minmax(0,36fr) minmax(0,36fr) minmax(0,28fr); gap: 48px; align-items: start; }
}
footer .foot-contact li, footer .foot-contact li > span, footer .foot-contact li > a { min-width: 0; overflow-wrap: anywhere; }
footer .foot-qr-list { gap: 20px; }
footer .foot-qr { width: 112px; flex: 0 0 112px; }
footer .foot-qr-frame { width: 112px; height: 112px; padding: 0; border: 0; border-radius: 0; background: transparent; }
footer .foot-qr-img { display: block; width: 112px; height: 112px; object-fit: contain; opacity: 1; animation: none; }
footer .foot-qr figcaption { text-align: center; }
.floating-contact-panel { width: 268px; background: var(--brand-900); color: #fff; border-color: rgba(255,255,255,.24); }
.floating-contact-panel .foot-qr-list { gap: 20px; }
.floating-contact-panel figure { width: 106px; }
.floating-contact-panel img { width: 106px; height: 106px; object-fit: contain; opacity: 1; animation: none; }
@media (min-width: 992px) {
 footer .foot-inner { padding-top: 40px; padding-bottom: 24px; }
 footer .foot-title { font-size: 15px; margin-bottom: 12px; }
 footer .foot-desc { margin-top: 12px; font-size: 13px; line-height: 1.7; }
 footer .foot-social { margin-top: 14px; }
 footer .foot-contact { gap: 12px; }
 footer .foot-contact li { font-size: 14px; line-height: 1.45; }
 footer .foot-contact-label { font-size: 12px; line-height: 1.35; }
 footer .foot-contact-label svg { width: 16px; height: 16px; flex-basis: 16px; }
 footer .foot-contact li > a, footer .foot-contact li > span:not(.foot-contact-label) { margin-left: 24px; }
 footer .foot-qr { width: 88px; flex-basis: 88px; }
 footer .foot-qr-frame, footer .foot-qr-img { width: 88px; height: 88px; }
 footer .foot-qr figcaption { margin-top: 6px; font-size: 12px; line-height: 1.4; }
 footer .foot-bottom { padding: 14px 24px; font-size: 12px; }
}
