/* Shared tokens, reset, header, search and footer for every page. */
:root {
    --paper: #ffffff;
    --canvas: #eef4f0;
    --footer-bg: #f7f8f6;
    --ink: #222;
    --muted: #5c5c5c;
    --line: #e4e3e8;
    --red: #C9413A;
    --red-text: #dc2732;
    --red-dark: #aa342e;
    --secondary-ink: #444;
    --soft: var(--canvas);
    --shadow: 0 18px 42px rgba(34, 34, 34, .08);
    --body: Arial, "Microsoft YaHei", "Helvetica Neue", "PingFang SC", Helvetica, "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html {scroll-behavior: smooth;}
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body);
    -webkit-font-smoothing: auto;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
::selection { background: #f7e1df; color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[id] { scroll-margin-top: 16px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.container { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }

/* Shared breadcrumb row for inner pages. */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 60px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.breadcrumb a:hover { color: var(--red-text); }

/* Shared site header and search. */
.site-header { position: relative; z-index: 20; height: 82px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { width: min(1200px, calc(100% - 72px)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img, .footer-identity > img { width: 153px; height: auto; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 2.25vw, 34px); flex: 1 1 auto; height: 100%; white-space: nowrap; }
.desktop-nav > a, .nav-dropdown-trigger { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; transition: color .2s; }
.desktop-nav > a:hover, .desktop-nav > a[aria-current="page"], .nav-dropdown-trigger:hover, .nav-dropdown-trigger[aria-current="location"], .nav-dropdown.is-open .nav-dropdown-trigger { color: var(--red-text); }
.desktop-nav > a[aria-current="page"]::after, .nav-dropdown-trigger[aria-current="location"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 21px; height: 2px; background: var(--red); }
.nav-dropdown { position: relative; height: 100%; }
.nav-dropdown-trigger { gap: 6px; }
.nav-dropdown-trigger svg { width: 11px; height: 11px; transition: transform .2s; }
.nav-dropdown.is-open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; z-index: 3; top: calc(100% - 2px); left: 50%; width: 184px; padding: 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: 0 14px 30px rgba(34, 34, 34, .11); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 7px); transition: opacity .18s, transform .18s; }
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.nav-dropdown-menu a { display: block; padding: 11px 12px; border-radius: 3px; font-size: 15px; font-weight: 600; line-height: 1.4; transition: color .2s, background .2s; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: var(--canvas); color: var(--red-text); }
.nav-dropdown-menu a[aria-current] { background: #fff2f1; color: var(--red-text); }
.header-search { position: relative; flex: 0 1 150px; min-width: 100px; margin-left: auto; }
.search-form { display: flex; align-items: center; height: 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); transition: border-color .2s, background .2s; }
.search-form:focus-within { border-color: var(--secondary-ink); background: var(--paper); }
.search-form input { width: 100%; min-width: 0; height: 100%; padding: 0 0 0 10px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 12px var(--body); }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form button { display: grid; flex: 0 0 30px; place-items: center; height: 100%; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.search-form button:hover { color: var(--red-text); }
.search-form button svg { width: 15px; height: 15px; }
.search-results { position: absolute; z-index: 4; top: calc(100% + 9px); right: 0; width: min(315px, calc(100vw - 36px)); max-height: min(420px, 70vh); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); }
.search-results-heading { margin: 3px 8px 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.search-results a { display: block; padding: 10px 9px; border-radius: 3px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--canvas); }
.search-results a strong, .search-results a small { display: block; }
.search-results a strong { font-size: 13px; font-weight: 600; line-height: 1.45; }
.search-results a small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.search-results-empty { margin: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.header-cta { display: inline-flex; align-items: center; gap: 15px; padding: 13px 17px 13px 19px; border: 1px solid var(--red); border-radius: 3px; color: var(--red-text); font-size: 15px; font-weight: 700; white-space: nowrap; transition: color .2s, background .2s; }
.header-cta:hover { background: var(--red); color: #fff; }
.header-cta span { font-size: 17px; line-height: 1; }
.mobile-menu { display: none; }

/* Shared site footer. */
.site-footer { padding: 58px 0 26px; background: var(--footer-bg); }
.footer-main { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 7%; padding-bottom: 42px; }
.footer-identity > img { margin-bottom: 24px; }
.footer-info { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; max-width: 530px; }
.footer-info div:last-child { grid-column: 1 / -1; }
.footer-info span, .footer-links .footer-title { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.footer-info strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.6; }
.footer-links { padding-left: 46px; border-left: 1px solid var(--line); }
.footer-links .footer-title { margin: 0 0 21px; }
.footer-link-grid { display: grid; grid-template-columns: .95fr 1.25fr .95fr .9fr; gap: 18px; }
.footer-link-group { display: grid; align-content: start; gap: 12px; }
.footer-link-group .footer-title { margin: 0 0 3px; color: var(--ink); font-size: 13px; font-weight: 700; }
.footer-link-group a { width: fit-content; color: var(--muted); font-size: 12px; line-height: 1.45; transition: color .2s; }
.footer-link-group a:hover { color: var(--red-text); }
.footer-extra { padding: 30px 0 34px; border-top: 1px solid var(--line); }
.footer-extra .footer-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.footer-qr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.footer-qr-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.footer-qr-card img { flex: 0 0 100px; width: 100px; height: 100px; padding: 4px; border: 1px solid var(--line); border-radius: 3px; image-rendering: pixelated; }
.footer-qr-card strong { display: block; margin-bottom: 6px; font-size: 14px; line-height: 1.4; }
.footer-qr-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.footer-legal { padding-left: 30px; border-left: 1px solid var(--line); }
.footer-legal nav { display: grid; gap: 12px; margin-top: 20px; }
.footer-legal a { width: fit-content; color: var(--muted); font-size: 12px; line-height: 1.45; transition: color .2s; }
.footer-legal a:hover { color: var(--red-text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }

/* Shared responsive layout. */
@media (max-width: 1180px) {
    .header-inner { gap: 14px; }
    .desktop-nav { gap: 24px; }
    .desktop-nav > a, .nav-dropdown-trigger { font-size: 15px; }
    .brand img, .footer-identity > img { width: 138px; }
    .header-search { flex-basis: 132px; }
    .header-cta { padding-inline: 13px; }
}
@media (max-width: 1000px) {
    .footer-main { grid-template-columns: 1fr; gap: 50px; }
    .footer-links { padding: 0; border: 0; }
    .footer-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-legal { padding: 0; border: 0; }
    .footer-legal nav { display: flex; flex-wrap: wrap; gap: 13px 26px; margin-top: 14px; }
}
@media (max-width: 1080px) {
    .site-header { height: 72px; }
    .header-inner { justify-content: space-between; }
    .desktop-nav, .header-cta { display: none; }
    .header-search { flex: 0 1 170px; margin-left: auto; }
    .search-form { height: 38px; border-color: var(--line); background: var(--canvas); }
    .search-form:focus-within { background: var(--paper); }
    .search-form input { padding-left: 11px; font-size: 13px; }
    .search-form button { flex-basis: 34px; color: var(--secondary-ink); }
    .search-form button svg { width: 17px; height: 17px; }
    .mobile-menu { display: block; position: relative; flex: 0 0 auto; }
    .mobile-menu > summary { display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; list-style: none; }
    .mobile-menu > summary::-webkit-details-marker { display: none; }
    .hamburger { display: block; position: relative; width: 22px; height: 2px; background: var(--ink); }
    .hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); }
    .hamburger::before { top: -7px; }
    .hamburger::after { top: 7px; }
    .mobile-menu[open] .hamburger { background: transparent; }
    .mobile-menu[open] .hamburger::before { top: 0; transform: rotate(45deg); }
    .mobile-menu[open] .hamburger::after { top: 0; transform: rotate(-45deg); }
    .mobile-menu nav { position: absolute; top: 51px; right: 0; width: min(248px, calc(100vw - 36px)); display: grid; gap: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: var(--shadow); }
    .mobile-menu nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
    .mobile-menu nav > a:last-child { border-bottom: 0; }
    .mobile-menu nav > a[aria-current] { color: var(--red-text); }
    .mobile-submenu summary { position: relative; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
    .mobile-submenu summary[aria-current="location"], .mobile-menu nav .mobile-submenu-links a[aria-current] { color: var(--red-text); }
    .mobile-submenu summary::-webkit-details-marker { display: none; }
    .mobile-submenu summary::after { content: ""; position: absolute; top: 17px; right: 7px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
    .mobile-submenu[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
    .mobile-submenu-links { display: grid; padding-left: 13px; background: var(--canvas); }
    .mobile-menu nav .mobile-submenu-links a { font-size: 13px; }
    .mobile-submenu-links a:last-child { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .container, .header-inner { width: min(100% - 36px, 600px); }
    .breadcrumb { align-items: baseline; gap: 6px 8px; min-height: 54px; padding-block: 14px; font-size: 14px; line-height: 1.6; }
    .breadcrumb > * { min-width: 0; overflow-wrap: anywhere; }
    .breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
    .search-form input { font-size: 16px; }
    .mobile-menu nav a, .mobile-submenu summary { font-size: 15px; }
    .mobile-menu nav .mobile-submenu-links a { font-size: 14px; }
    .search-results-heading, .search-results a small, .search-results-empty { font-size: 12px; }
    .search-results a strong { font-size: 15px; }
    .footer-info span, .footer-qr-card span, .footer-bottom { font-size: 12px; }
    .footer-link-group a, .footer-legal a { font-size: 13px; }
}
@media (max-width: 600px) {
    .footer-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .footer-qr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .brand img, .footer-identity > img { width: 137px; }
    .header-inner { gap: 10px; }
    .header-search { flex-basis: 130px; }
    .footer-info { grid-template-columns: 1fr; }
    .footer-info div:last-child { grid-column: auto; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-bottom: 8px; }
}
@media (max-width: 360px) {
    .brand img, .footer-identity > img { width: 118px; }
    .header-inner { gap: 8px; }
    .header-search { flex-basis: 110px; }
    .search-results { right: -48px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
