:root {
  --bg: #f4efe7;
  --panel: #ffffff;
  --panel-soft: #faf7f1;
  --ink: #191815;
  --muted: #6d685f;
  --line: #ddd3c2;
  --line-strong: #c9b79f;
  --accent: #a77a32;
  --accent-2: #b08a43;
  --dark: #151412;
  --dark-soft: #24211d;
  --shadow: 0 16px 42px rgba(22, 20, 18, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.eyebrow { display:inline-block; letter-spacing:.18em; text-transform:uppercase; font-size:12px; color:var(--accent); margin-bottom:10px; }
.eyebrow--hero { color:rgba(255,255,255,.78); }
.btn-primary, .btn-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 22px; border-radius:999px; border:1px solid var(--ink); font-weight:700; }
.btn-primary { background:var(--ink); color:#fff; }
.btn-secondary { background:transparent; }
.btn-secondary--light { color:#fff; border-color:rgba(255,255,255,.86); }
.btn-block { width:100%; }
.more-link { color:var(--accent); font-size:14px; font-weight:700; }
.more-link--light { color:#fff; }

/* Header / reference-site style PC mega menu */
.site-header { position: sticky; top:0; z-index:60; background:rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); }
.site-header--overlay { position: fixed; left:0; right:0; background:rgba(15,14,12,.16); border-bottom:1px solid rgba(255,255,255,.18); color:#fff; }
.site-header--overlay.is-scrolled { background:rgba(255,255,255,.96); color:var(--ink); border-bottom-color:var(--line); }
.header-inner { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:24px; min-height:86px; }
.brand { display:inline-flex; align-items:center; gap:14px; min-width:0; }
.brand-mark { width:58px; height:58px; border-radius:999px; border:2px solid currentColor; display:grid; place-items:center; font-weight:800; letter-spacing:.02em; }
.brand-logo { object-fit:contain; display:block; }
.brand-logo--desktop { max-width:220px; max-height:60px; }
.brand-logo--mobile { display:none; max-width:160px; max-height:44px; }
.brand-copy { display:grid; gap:3px; }
.brand-text { font-size:26px; line-height:1; font-weight:800; }
.brand-subtext { font-size:13px; letter-spacing:.04em; color:var(--muted); }
.site-header--overlay:not(.is-scrolled) .brand-subtext { color:rgba(255,255,255,.72); }
.site-nav { display:flex; justify-content:flex-end; align-items:center; gap:22px; }
.nav-item { position:relative; }
.nav-link { display:inline-flex; align-items:center; min-height:46px; font-size:15px; }
.nav-link:hover { color:var(--accent); }
.nav-item--has-children > .nav-link::after { content:"▾"; font-size:11px; margin-left:7px; opacity:.75; }
.nav-lang { padding-left:18px; border-left:1px solid currentColor; opacity:.85; }
.nav-dropdown--mega { position:absolute; top:calc(100% + 0px); right:0; width:min(720px,80vw); background:rgba(20,18,15,.94); color:#fff; border:1px solid rgba(255,255,255,.16); box-shadow:0 22px 60px rgba(0,0,0,.2); padding:22px; opacity:0; transform:translateY(10px); pointer-events:none; transition:.2s ease; }
.nav-item:hover .nav-dropdown--mega, .nav-item:focus-within .nav-dropdown--mega { opacity:1; transform:translateY(0); pointer-events:auto; }
.nav-dropdown__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; }
.nav-dropdown__link { display:grid; gap:5px; padding:12px 14px; border-left:2px solid transparent; background:rgba(255,255,255,.03); }
.nav-dropdown__link:hover { border-left-color:var(--accent-2); background:rgba(255,255,255,.08); }
.nav-dropdown__link small { color:rgba(255,255,255,.62); font-size:12px; }
.nav-toggle { display:none; width:48px; height:48px; border:0; background:transparent; color:currentColor; padding:0; cursor:pointer; flex-direction:column; justify-content:center; align-items:center; gap:6px; }
.nav-toggle span { width:28px; height:3px; background:currentColor; border-radius:999px; display:block; }
.site-header--overlay .nav-toggle span { background:currentColor; }

/* Mobile drawer: global first-level navigation only */
.mobile-drawer { position:fixed; inset:0 0 0 auto; width:min(88vw,430px); transform:translateX(100%); transition:transform .24s ease; z-index:90; pointer-events:none; }
.mobile-drawer.open { transform:translateX(0); pointer-events:auto; }
.mobile-drawer__panel { height:100%; background:#fff; color:var(--ink); box-shadow:-20px 0 58px rgba(0,0,0,.15); padding:24px 24px 40px; overflow-y:auto; }
.mobile-drawer__backdrop { position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.38); opacity:0; pointer-events:none; transition:opacity .2s ease; }
.mobile-drawer__backdrop.open { opacity:1; pointer-events:auto; }
.mobile-drawer__header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.mobile-drawer__eyebrow { font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.mobile-drawer__subtitle { color:var(--muted); font-size:13px; margin-top:4px; }
.mobile-drawer__close { border:0; background:transparent; font-size:28px; cursor:pointer; }
.mobile-nav { display:grid; gap:8px; }
.mobile-nav__item { border-top:1px solid var(--line); padding-top:13px; }
.mobile-nav__row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mobile-nav__link { font-size:26px; font-weight:800; line-height:1.25; padding:4px 0 8px; }
.mobile-nav__toggle { width:32px; height:32px; border-radius:999px; border:1px solid var(--line); background:#fff; cursor:pointer; font-size:18px; }
.mobile-nav__children { max-height:0; overflow:hidden; transition:max-height .22s ease; display:grid; gap:8px; }
.mobile-nav__children.open { max-height:680px; padding:4px 0 12px; }
.mobile-nav__child { display:grid; gap:2px; padding:6px 0; color:var(--ink); }
.mobile-nav__child small { color:var(--muted); font-size:12px; }
.mobile-nav__lang { margin-top:16px; padding-top:18px; border-top:1px solid var(--line); }

/* Home: full-screen H5 hero, reference-site project/front-page rhythm */
.hero-fullbleed { position:relative; min-height:100vh; background:#111; color:#fff; overflow:hidden; }
.hero-slider, .hero-slide { min-height:100vh; }
.hero-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity .5s ease; }
.hero-slide.is-active { opacity:1; z-index:1; }
.hero-slide__overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(15,14,12,.76),rgba(15,14,12,.48) 44%,rgba(15,14,12,.18)); }
.hero-slide__content { position:relative; z-index:2; min-height:100vh; display:grid; grid-template-columns:minmax(0,1.04fr) minmax(330px,.52fr); align-items:end; gap:32px; padding-top:140px; padding-bottom:118px; }
.hero-slide__copy h1 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(46px,5.4vw,84px); line-height:1.02; margin:0 0 18px; max-width:12ch; }
.hero-slide__copy p { max-width:48ch; font-size:18px; line-height:1.82; color:rgba(255,255,255,.86); }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:26px; }
.hero-slide__fact { justify-self:end; width:min(100%,386px); background:rgba(18,16,13,.58); border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(10px); padding:26px 24px; }
.hero-slide__fact h2 { font-family:Georgia,"Times New Roman",serif; font-size:34px; line-height:1.12; margin:8px 0 12px; }
.hero-slide__fact p { color:rgba(255,255,255,.82); line-height:1.72; }
.hero-kicker { font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.68); }
.hero-slider__controls { position:absolute; z-index:4; left:0; right:0; bottom:34px; display:flex; align-items:center; justify-content:space-between; }
.hero-slider__btn { width:52px; height:52px; border-radius:999px; border:1px solid rgba(255,255,255,.34); background:rgba(255,255,255,.10); color:#fff; font-size:31px; cursor:pointer; }
.hero-slider__dots { display:flex; gap:10px; }
.hero-slider__dot { width:11px; height:11px; border-radius:999px; border:0; background:rgba(255,255,255,.38); }
.hero-slider__dot.is-active { background:#fff; }
.section-block { padding:58px 0; }
.section-block--light { background:var(--bg); }
.section-block--progress-band { background:#f7f2ea; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.progress-band { display:grid; grid-template-columns:290px minmax(0,1fr); gap:28px; align-items:center; }
.progress-band__head h2 { font-family:Georgia,"Times New Roman",serif; font-size:34px; margin:0; }
.progress-band__items { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.progress-band__item { background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); padding:18px; }
.progress-band__top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.progress-bar { height:10px; border-radius:999px; background:#ece6d9; overflow:hidden; }
.progress-bar span { display:block; height:100%; background:var(--accent); }
.progress-band__item p { margin:10px 0 0; color:var(--muted); }
.quick-entry-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.quick-entry-card { display:grid; gap:10px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); padding:22px; }
.quick-entry-card strong { font-size:22px; }
.quick-entry-card span { color:var(--accent); }
.info-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:32px; align-items:start; }
.info-copy h2, .section-heading h2 { font-family:Georgia,"Times New Roman",serif; font-size:36px; margin:0; }
.info-copy p { line-height:1.82; color:var(--muted); }
.metrics-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.metric-card { background:#fff; border:1px solid var(--line); padding:24px; box-shadow:var(--shadow); }
.metric-card strong { display:block; font-family:Georgia,"Times New Roman",serif; font-size:36px; margin-bottom:6px; }
.section-dark { background:var(--dark); color:#fff; }
.section-dark--works { background:#11100e; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:24px; }
.section-heading--light h2 { color:#fff; }
.works-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.works-grid--home { grid-template-columns:repeat(2,1fr); }
.work-card, .news-card, .partner-card, .sidebar-card, .list-card, .section-block-card, .contact-panel { background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.work-card--dark { background:#1d1b18; border-color:rgba(255,255,255,.12); color:#fff; }
.work-card img { width:100%; aspect-ratio:16/10; object-fit:cover; border-bottom:1px solid rgba(255,255,255,.12); }
.work-card__body { padding:18px; }
.work-card__body h3, .list-card__body h2, .news-card h3, .news-row-card h2 { font-family:Georgia,"Times New Roman",serif; line-height:1.16; margin:0 0 10px; }
.work-meta, .work-data-line, .news-card__meta, .list-card__meta { color:var(--muted); font-size:13px; margin-bottom:8px; }
.work-card--dark .work-meta, .work-card--dark p { color:rgba(255,255,255,.68); }
.work-card__body p, .list-card__body p, .news-card p { color:var(--muted); line-height:1.72; }
.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.news-card { padding:20px; }
.partner-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.partner-card { min-height:92px; display:flex; align-items:center; justify-content:center; padding:18px; }
.partner-card img { max-height:44px; object-fit:contain; filter:grayscale(100%); }

/* H5 category/banner template: PC and mobile are same route but different shapes */
.h5-section-hero { position:relative; min-height:430px; color:#fff; background:#1f1d19; background-image:var(--section-bg); background-size:cover; background-position:center; display:flex; align-items:flex-end; overflow:hidden; }
.h5-section-hero__shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(15,14,12,.76),rgba(15,14,12,.38),rgba(15,14,12,.18)); }
.h5-section-hero__inner { position:relative; z-index:2; padding:120px 0 0; }
.h5-section-hero h1 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(44px,5vw,70px); line-height:1; margin:0 0 16px; }
.h5-section-hero p { max-width:780px; line-height:1.82; color:rgba(255,255,255,.82); margin-bottom:32px; }
.section-subnav--desktop { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); background:rgba(19,18,16,.92); border:1px solid rgba(255,255,255,.16); transform:translateY(1px); }
.section-subnav__item { min-height:74px; padding:14px 16px; display:grid; gap:4px; border-right:1px solid rgba(255,255,255,.12); border-top:3px solid transparent; }
.section-subnav__item strong { font-size:15px; }
.section-subnav__item small { font-size:11px; color:rgba(255,255,255,.58); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.section-subnav__item.active, .section-subnav__item:hover { border-top-color:var(--accent-2); background:rgba(255,255,255,.08); }
.section-mobile-switch { display:none; }
.works-list-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.works-list-grid--case { grid-template-columns:repeat(2,minmax(0,1fr)); }
.list-card { display:grid; grid-template-columns:42% minmax(0,1fr); gap:0; }
.list-card__media img { width:100%; height:100%; min-height:260px; object-fit:cover; }
.list-card__body { padding:22px; }
.list-card__body h2 { font-size:30px; }
.news-stack { display:grid; gap:22px; }
.news-row-card { display:grid; grid-template-columns:320px minmax(0,1fr); background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.news-row-card__media img { height:100%; min-height:190px; object-fit:cover; }
.news-row-card__body { padding:22px; }
.sectioned-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:28px; }
.side-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.sidebar-card { padding:22px; }
.sidebar-card h3 { margin:0 0 14px; font-family:Georgia,"Times New Roman",serif; font-size:27px; }
.side-list a { line-height:1.6; }
.section-block-card { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:22px; margin-bottom:24px; scroll-margin-top:120px; }
.section-block-card__media img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.section-block-card__copy h2 { font-family:Georgia,"Times New Roman",serif; font-size:36px; line-height:1.08; margin:8px 0 12px; }
.section-block-card__copy p { color:var(--muted); line-height:1.82; }
.section-points { padding-left:18px; margin:14px 0 0; display:grid; gap:10px; }

/* Detail and project-archive page */
.page-hero { background:#f6f2ea; border-bottom:1px solid var(--line); padding:38px 0 34px; }
.page-hero--detail { background:linear-gradient(180deg,#f5f0e6,#ece6db); }
.detail-header { display:grid; grid-template-columns:1.12fr .88fr; gap:28px; align-items:start; }
.detail-header h1 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(42px,5vw,68px); line-height:1.04; margin:0 0 16px; }
.detail-header p { color:var(--muted); line-height:1.82; }
.detail-keydata { background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); padding:20px; display:grid; gap:12px; }
.detail-keydata div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; }
.detail-keydata strong { font-size:13px; }
.detail-keydata span { color:var(--muted); }
.detail-full-image { background:#111; }
.detail-main-image--full { width:100%; max-height:84vh; object-fit:cover; }
.detail-body { background:var(--bg); }
.detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:30px; align-items:start; }
.detail-gallery-grid, .detail-evidence-grid, .detail-grid-two { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.detail-gallery-grid--large { gap:22px; }
.gallery-card { background:#fff; border:1px solid var(--line); margin:0; }
.gallery-card img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.gallery-card figcaption { padding:12px 14px; color:var(--muted); display:grid; gap:4px; }
.gallery-card figcaption strong { color:var(--ink); }
.gallery-card figcaption small { font-size:12px; }
.detail-section { background:#fff; border:1px solid var(--line); padding:22px; margin-top:22px; }
.detail-section h2, .detail-section h3 { font-family:Georgia,"Times New Roman",serif; margin:0 0 12px; }
.detail-section p { color:var(--muted); line-height:1.82; }
.sidebar-card dl { display:grid; gap:8px; margin:0; }
.sidebar-card dt { font-weight:700; }
.sidebar-card dd { margin:0 0 8px; color:var(--muted); }

/* Contact, customer service */
.contact-hero { padding:120px 0 82px; background:var(--dark); color:#fff; }
.contact-hero__grid { display:grid; grid-template-columns:minmax(0,1fr) 420px; gap:28px; align-items:end; }
.contact-hero h1 { font-family:Georgia,"Times New Roman",serif; font-size:clamp(48px,5vw,68px); line-height:1; margin:0 0 16px; }
.contact-hero p { color:rgba(255,255,255,.82); line-height:1.82; }
.contact-hero__card { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); padding:24px; backdrop-filter:blur(10px); }
.contact-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:24px; }
.contact-panel { padding:24px; }
.contact-panel h2 { font-family:Georgia,"Times New Roman",serif; font-size:34px; margin:0 0 16px; }
.contact-form { display:grid; gap:14px; }
.contact-form label { display:grid; gap:8px; font-size:14px; }
.contact-form input, .contact-form textarea { width:100%; padding:14px 16px; border:1px solid var(--line); font:inherit; background:#fff; }
.success-banner { padding:12px 14px; border:1px solid #b7d6b4; background:#edf8ec; color:#315330; margin-bottom:16px; }
.customer-service { position:fixed; right:24px; bottom:24px; z-index:66; }
.customer-service__button { display:flex; align-items:center; gap:10px; border:1px solid rgba(255,255,255,.28); background:rgba(21,20,18,.92); color:#fff; border-radius:999px; padding:10px 14px 10px 10px; cursor:pointer; box-shadow:0 16px 40px rgba(0,0,0,.22); }
.customer-service__button img, .customer-service__button span { width:38px; height:38px; border-radius:999px; object-fit:cover; background:#fff; color:var(--ink); display:grid; place-items:center; }
.customer-service__button em { font-style:normal; font-weight:700; }
.customer-service__panel { position:absolute; right:0; bottom:62px; width:min(340px,calc(100vw - 48px)); background:#fff; color:var(--ink); border:1px solid var(--line); box-shadow:0 18px 60px rgba(0,0,0,.18); padding:20px; display:none; }
.customer-service__panel.open { display:block; }
.customer-service__panel p { color:var(--muted); line-height:1.7; }
.customer-service__close { position:absolute; right:10px; top:8px; border:0; background:transparent; font-size:22px; cursor:pointer; }
.customer-service__panel small { display:block; margin-top:12px; color:var(--muted); }

.site-footer { border-top:1px solid rgba(255,255,255,.08); background:#111; color:rgba(255,255,255,.78); padding-top:42px; }
.footer-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:24px; }
.footer-grid h5, .site-footer h4 { color:#fff; margin-top:0; }
.footer-logo { max-width:220px; max-height:56px; object-fit:contain; margin-bottom:12px; }
.footer-bottom { padding:22px 0 32px; color:rgba(255,255,255,.58); font-size:14px; }

/* Admin */
.admin-shell { display:grid; grid-template-columns:280px minmax(0,1fr); min-height:100vh; background:#f4f1ea; }
.admin-sidebar { background:#161616; color:#fff; padding:24px 18px 32px; }
.admin-sidebar nav { display:grid; gap:8px; }
.admin-sidebar a { padding:10px 12px; color:rgba(255,255,255,.82); }
.admin-sidebar a:hover { background:rgba(255,255,255,.08); }
.admin-main { padding:28px; }
.admin-card, .admin-form, .admin-table-wrap { background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.admin-card { padding:22px; }
.admin-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th, .admin-table td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.admin-form { padding:24px; display:grid; gap:18px; }
.admin-form--grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.admin-form label { display:grid; gap:8px; font-weight:600; }
.admin-form input, .admin-form textarea, .admin-form select { width:100%; padding:12px 14px; border:1px solid var(--line); font:inherit; background:#fff; }
.admin-actions { display:flex; gap:12px; flex-wrap:wrap; }
.admin-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border:1px solid var(--ink); background:var(--ink); color:#fff; font-weight:700; }
.admin-button--secondary { background:#fff; color:var(--ink); }
.admin-gallery-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.admin-hint-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.admin-hint-card { background:#faf7f2; border:1px solid var(--line); padding:12px 14px; }
.admin-error { background:#fbeaea; color:#6f3434; border:1px solid #e4b9b9; padding:12px 14px; }
.admin-success { background:#edf8ec; color:#315330; border:1px solid #b7d6b4; padding:12px 14px; }
.admin-preview-image { max-width:240px; max-height:140px; object-fit:contain; border:1px solid var(--line); padding:8px; background:#fff; }
.admin-preview-image--logo { max-height:70px; }
.admin-preview-image--favicon { max-width:72px; max-height:72px; }
.help { color:var(--muted); font-size:12px; line-height:1.6; }
.full { grid-column:1 / -1; }

@media (max-width:1180px) {
  .hero-slide__content, .progress-band, .info-grid, .detail-header, .detail-layout, .sectioned-layout, .section-block-card, .contact-hero__grid, .contact-layout, .list-card, .news-row-card { grid-template-columns:1fr; }
  .hero-slide__fact { justify-self:stretch; width:auto; }
  .works-grid, .works-grid--home, .works-list-grid, .works-list-grid--case, .news-grid, .progress-band__items, .partner-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:820px) {
  .container { width:min(100%, calc(100% - 40px)); }
  .site-nav--desktop, .section-subnav--desktop, .sectioned-side--desktop { display:none; }
  .nav-toggle { display:inline-flex; }
  .header-inner { grid-template-columns:minmax(0,1fr) auto; min-height:76px; }
  .brand-logo--desktop { display:none; }
  .brand-logo--mobile { display:block; }
  .brand-mark { width:46px; height:46px; font-size:18px; }
  .brand-text { font-size:22px; }
  .brand-subtext { font-size:11px; }
  .hero-slide__content { grid-template-columns:1fr; padding-top:100px; padding-bottom:92px; gap:18px; }
  .hero-slide__copy h1 { font-size:clamp(34px,10vw,54px); max-width:12ch; }
  .hero-slide__copy p { font-size:15px; }
  .hero-slide__fact { display:none; }
  .hero-slider__controls { bottom:18px; }
  .hero-slider__btn { width:46px; height:46px; }
  .progress-band__items, .quick-entry-grid, .works-grid, .works-grid--home, .works-list-grid, .works-list-grid--case, .news-grid, .partner-grid, .metrics-grid, .detail-gallery-grid, .detail-evidence-grid, .detail-grid-two, .footer-grid, .admin-grid, .admin-form--grid, .admin-gallery-grid, .admin-hint-grid { grid-template-columns:1fr; }
  .section-block { padding:42px 0; }
  .h5-section-hero { min-height:340px; align-items:flex-end; }
  .h5-section-hero__inner { padding:120px 0 34px; }
  .h5-section-hero h1 { font-size:40px; }
  .h5-section-hero p { font-size:14px; margin-bottom:0; }
  .section-mobile-switch { display:block; background:var(--bg); position:relative; z-index:5; }
  .section-mobile-switch__bar { width:100%; display:flex; justify-content:space-between; align-items:center; border:0; background:linear-gradient(90deg,#9d6d2f,#b68847); color:#fff; min-height:56px; padding:0 22px; text-align:left; cursor:pointer; }
  .section-mobile-switch__bar span { display:grid; gap:2px; }
  .section-mobile-switch__bar small { color:rgba(255,255,255,.72); font-size:11px; }
  .section-mobile-switch__bar em { font-style:normal; font-weight:800; }
  .section-mobile-switch__panel { max-height:0; overflow:hidden; transition:max-height .22s ease; background:#1c1915; }
  .section-mobile-switch__panel.open { max-height:520px; }
  .section-mobile-switch__panel a { display:block; padding:16px 22px; color:rgba(255,255,255,.86); border-bottom:1px solid rgba(255,255,255,.08); }
  .section-mobile-switch__panel a.active { color:#fff; background:rgba(255,255,255,.08); }
  .list-card__media img, .news-row-card__media img { min-height:250px; }
  .detail-main-image--full { min-height:52vh; }
  .contact-hero { padding:92px 0 62px; }
  .customer-service { right:16px; bottom:16px; }
  .customer-service__button em { display:none; }
  .admin-shell { grid-template-columns:1fr; }
}

/* 3.2.1 acceptance fixes: reference-style footer, customer service avatar, actionable side navigation, admin login */
.side-list__link { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0; border-bottom:1px solid var(--line); line-height:1.4; }
.side-list__link span { font-weight:650; }
.side-list__link em { font-style:normal; color:var(--accent); font-size:12px; white-space:nowrap; }
.side-list__link:hover { color:var(--accent); }
.section-block-card__cta { display:inline-flex; margin:4px 0 12px; color:var(--accent); font-weight:700; }

.site-footer--reference { position:relative; overflow:hidden; background:linear-gradient(145deg,#2b3033 0%,#171a1d 42%,#0c0d0f 100%); color:rgba(255,255,255,.78); padding:70px 0 34px; border-top:0; }
.site-footer--reference::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,.07),transparent 35%,rgba(255,255,255,.04)); pointer-events:none; }
.footer-slogan { position:relative; text-align:center; margin-bottom:58px; }
.footer-slogan__zh { font-family:"Noto Serif CJK SC",serif; font-size:clamp(42px,7vw,92px); letter-spacing:.16em; color:#fff; font-weight:700; line-height:1.05; }
.footer-slogan__en { margin-top:20px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(18px,2vw,32px); letter-spacing:.22em; color:rgba(255,255,255,.9); font-weight:700; }
.footer-reference-grid { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px; text-align:center; align-items:start; }
.footer-contact-line { display:grid; justify-items:center; gap:10px; min-height:122px; }
.footer-icon { width:30px; height:30px; display:grid; place-items:center; font-size:24px; color:rgba(255,255,255,.86); }
.footer-contact-line strong { color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:22px; }
.footer-contact-line p { margin:0; line-height:1.8; color:rgba(255,255,255,.62); }
.footer-contact-line--address { grid-column:1 / -1; }
.footer-qr-block { grid-column:1 / -1; display:grid; justify-items:center; gap:16px; margin-top:6px; }
.footer-qr-placeholder { width:174px; height:174px; background:#fff; padding:16px; display:grid; place-items:center; box-shadow:0 20px 60px rgba(0,0,0,.22); }
.footer-qr-placeholder::before { content:""; width:134px; height:134px; display:block; background:
  linear-gradient(90deg,#111 12px,transparent 12px 22px,#111 22px 34px,transparent 34px 44px,#111 44px 58px,transparent 58px 74px,#111 74px 86px,transparent 86px 102px,#111 102px 114px,transparent 114px),
  linear-gradient(#111 12px,transparent 12px 22px,#111 22px 34px,transparent 34px 44px,#111 44px 58px,transparent 58px 74px,#111 74px 86px,transparent 86px 102px,#111 102px 114px,transparent 114px);
  background-blend-mode:multiply; opacity:.92; }
.footer-qr-placeholder span { display:none; }
.footer-qr-block p { margin:0; color:rgba(255,255,255,.8); }
.footer-links { grid-column:1 / -1; display:flex; justify-content:center; gap:18px; color:rgba(255,255,255,.48); margin-top:18px; }
.site-footer--reference .footer-bottom { position:relative; text-align:center; padding:28px 0 0; color:rgba(255,255,255,.42); }

.customer-service { right:30px; bottom:32px; }
.customer-service__button { padding:0; width:86px; height:86px; border-radius:999px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.25); background:rgba(20,20,18,.58); backdrop-filter:blur(12px); }
.customer-service__button img, .customer-service__button span { width:62px; height:62px; border:3px solid rgba(255,255,255,.9); box-shadow:0 8px 24px rgba(0,0,0,.22); }
.customer-service__button em { position:absolute; right:-3px; bottom:-6px; background:linear-gradient(90deg,#9d6d2f,#b68847); color:#fff; border-radius:999px; padding:6px 12px; font-size:13px; box-shadow:0 8px 20px rgba(0,0,0,.18); }
.customer-service__panel { bottom:100px; border-radius:18px; }
.customer-service__head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.customer-service__head img { width:44px; height:44px; border-radius:999px; object-fit:cover; }
.customer-service__head small { display:block; margin-top:3px; color:var(--muted); }

.admin-login-body { min-height:100vh; display:grid; place-items:center; padding:32px; background:linear-gradient(135deg,#f7f3eb,#ebe2d4); }
.login-card { width:min(520px,100%); background:#fff; border:1px solid var(--line); box-shadow:0 22px 70px rgba(22,20,18,.12); padding:38px; display:grid; gap:20px; }
.login-card h1 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:42px; line-height:1; }
.login-card .muted { margin:0; color:var(--muted); }
.login-card label { display:grid; gap:8px; font-weight:700; }
.login-card label span { font-size:14px; }
.login-card input { width:100%; min-height:48px; border:1px solid var(--line-strong); padding:0 14px; font:inherit; background:#fff; }
.login-card .btn-primary { width:100%; min-height:50px; margin-top:4px; }
.error-banner { border:1px solid #e1b3b3; background:#fff1f1; color:#743636; padding:12px 14px; }

@media (max-width:820px) {
  .site-footer--reference { padding:56px 0 28px; }
  .footer-slogan { margin-bottom:42px; }
  .footer-slogan__zh { font-size:40px; letter-spacing:.12em; }
  .footer-slogan__en { font-size:18px; letter-spacing:.16em; }
  .footer-reference-grid { grid-template-columns:1fr; gap:26px; text-align:center; }
  .footer-contact-line { min-height:auto; }
  .footer-qr-placeholder { width:154px; height:154px; }
  .footer-qr-placeholder::before { width:120px; height:120px; }
  .footer-links { flex-wrap:wrap; gap:12px; font-size:13px; }
  .customer-service { right:18px; bottom:18px; }
  .customer-service__button { width:74px; height:74px; }
  .customer-service__button img, .customer-service__button span { width:54px; height:54px; }
  .customer-service__button em { font-size:12px; padding:5px 10px; }
  .customer-service__panel { bottom:88px; }
  .section-block-card__cta { margin-bottom:14px; }
  .login-card { padding:28px; }
  .login-card h1 { font-size:34px; }
}


/* 3.2.4 public component consistency fixes */
.nav-link.active {
  color: var(--accent-2);
}
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-dropdown__link.active {
  color: var(--accent-2);
  background: rgba(176,138,67,.12);
}
.mobile-nav__link.active,
.mobile-nav__child.active {
  color: var(--accent);
  font-weight: 800;
}
.side-list__link.active {
  background: rgba(176,138,67,.10);
  border-color: rgba(176,138,67,.36);
}
.side-list__link.active span {
  color: var(--accent);
}

.site-footer--institution {
  background: linear-gradient(145deg,#161616 0%, #0e0f10 45%, #11100f 100%);
  color: rgba(255,255,255,.78);
  padding: 70px 0 32px;
  border-top: 0;
}
.footer-institution-grid {
  display: grid;
  grid-template-columns: minmax(260px,1.25fr) minmax(220px,1fr) minmax(180px,.85fr) minmax(180px,.85fr);
  gap: 42px;
  align-items: start;
}
.footer-brand-block h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 26px;
  letter-spacing: .04em;
}
.footer-brand-block h3 span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.56);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-brand-block p {
  max-width: 410px;
  color: rgba(255,255,255,.64);
  line-height: 1.9;
}
.footer-column h4 {
  margin: 0 0 18px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}
.footer-column p {
  margin: 0 0 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.62);
}
.footer-column p strong {
  color: rgba(255,255,255,.92);
}
.footer-nav,
.footer-social {
  display: grid;
  gap: 11px;
}
.footer-nav a,
.footer-social a {
  color: rgba(255,255,255,.62);
  transition: color .18s ease, transform .18s ease;
}
.footer-nav a:hover,
.footer-social a:hover,
.footer-nav a.active {
  color: var(--accent-2);
  transform: translateX(2px);
}
.footer-social span {
  color: rgba(255,255,255,.42);
  line-height: 1.75;
}
.footer-legal-row {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.44);
  font-size: 14px;
}
.footer-legal-row nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal-row a {
  color: rgba(255,255,255,.48);
}
.footer-legal-row a:hover {
  color: var(--accent-2);
}
.customer-service {
  bottom: 34px;
}
.customer-service__button {
  min-width: 56px;
  min-height: 56px;
}
.customer-service__button em {
  display: inline;
}
.detail-layout--about {
  grid-template-columns: minmax(0,1fr) 320px;
}
.detail-sidebar--about .sidebar-card {
  position: sticky;
  top: 110px;
}
.h5-section-hero--about {
  min-height: 430px;
}

@media (max-width: 860px) {
  .footer-institution-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer--institution {
    padding: 56px 0 104px;
  }
  .footer-legal-row {
    flex-direction: column;
  }
  .customer-service {
    right: 20px;
    bottom: 86px;
  }
  .customer-service__button {
    width: 60px;
    height: 60px;
    padding: 8px;
    border-radius: 999px;
  }
  .customer-service__button em {
    display: none;
  }
  .detail-layout--about {
    grid-template-columns: 1fr;
  }
  .detail-sidebar--about {
    display: none;
  }
}

/* Keep the reference-style footer override from 3.2.1 from affecting the new 3.2.4 footer. */
.site-footer--institution .footer-slogan,
.site-footer--institution .footer-reference-grid {
  display: none;
}


/* 3.2.6 stabilization: remove duplicate body navigation without collapsing grids */
.sectioned-layout--single { grid-template-columns: minmax(0, 1fr) !important; }
.sectioned-main--full, .detail-main--full { grid-column: 1 / -1; width: 100%; min-width: 0; }
.detail-layout--single, .detail-layout--about { grid-template-columns: minmax(0, 1fr) !important; }
.detail-sidebar--about, .sectioned-side--desktop { display: none !important; }

.about-rich-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-top:34px; }
.about-rich-card { background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); padding:24px; }
.about-rich-card h3 { margin:0 0 12px; font-family:Georgia,"Times New Roman",serif; font-size:26px; line-height:1.1; }
.about-rich-card p { color:var(--muted); line-height:1.82; margin:0 0 14px; }
.about-rich-card ul { margin:0; padding-left:18px; color:var(--muted); line-height:1.75; }
.about-rich-timeline { display:grid; gap:14px; margin-top:30px; }
.about-rich-timeline__item { display:grid; grid-template-columns:120px minmax(0,1fr); gap:18px; padding:18px 0; border-top:1px solid var(--line); }
.about-rich-timeline__item strong { color:var(--accent); font-family:Georgia,"Times New Roman",serif; font-size:22px; }
.about-rich-timeline__item p { margin:0; color:var(--muted); line-height:1.75; }
.empty-state { background:#fff; border:1px solid var(--line); padding:34px; box-shadow:var(--shadow); }

.customer-service__button, .customer-service__head { flex-shrink: 0; }
.customer-service__button img, .customer-service__button span, .customer-service__head img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; flex: 0 0 auto; overflow: hidden; }
.customer-service__button img, .customer-service__button span { width:62px !important; height:62px !important; max-width:62px; max-height:62px; }
.customer-service__head img { width:44px !important; height:44px !important; max-width:44px; max-height:44px; }
@media (max-width: 860px) {
  .about-rich-grid { grid-template-columns:1fr; }
  .about-rich-timeline__item { grid-template-columns:1fr; gap:6px; }
  .customer-service__button img, .customer-service__button span { width:54px !important; height:54px !important; max-width:54px; max-height:54px; }
}

/* 3.2.7 brand asset fixes: preserve full logo mode and keep logos sharp */
.brand--full_logo { gap:0; }
.brand--full_logo .brand-copy { display:none !important; }
.brand--text_only .brand-mark { display:grid; }
.brand-logo--desktop { width:auto; height:auto; max-width:320px; max-height:72px; object-fit:contain; }
.brand-logo--mobile { width:auto; height:auto; max-width:220px; max-height:56px; object-fit:contain; }
.footer-logo { width:auto; height:auto; max-width:280px; max-height:72px; object-fit:contain; }
.admin-logo-preview-stage { display:grid; gap:16px; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:10px; }
.admin-logo-preview-card { border:1px solid #ddd3c2; border-radius:12px; padding:14px; background:#fff; min-height:110px; }
.admin-logo-preview-card--dark { background:#151412; color:#fff; border-color:#3a332c; }
.admin-logo-preview-card strong { display:block; margin-bottom:10px; font-size:13px; }
.admin-logo-preview-frame { min-height:64px; display:flex; align-items:center; justify-content:flex-start; }
.admin-logo-preview-frame img { max-width:100%; max-height:72px; object-fit:contain; }
.admin-preview-image--logo { background:linear-gradient(45deg,#f8f8f8 25%,#ececec 25%,#ececec 50%,#f8f8f8 50%,#f8f8f8 75%,#ececec 75%); background-size:20px 20px; padding:10px; }
.admin-warning { display:block; margin-top:8px; color:#9b2c2c; font-size:.88rem; }
.inline-check { display:block; margin-top:8px; font-size:.88rem; color:var(--muted); }
.inline-check input { width:auto; margin-right:6px; }


/* 3.2.9 CMS and H5 usability hardening */
.admin-safe-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #d8ccb8;
  border-left: 4px solid var(--accent);
  background: #fffaf1;
  color: #3a342e;
  line-height: 1.7;
}
.admin-safe-note.is-visible { box-shadow: 0 0 0 3px rgba(167,122,50,.12); }
.admin-submit-button { font-size: 17px; min-height: 52px; }
.admin-form input, .admin-form textarea, .admin-form select { min-height: 46px; }
.admin-form textarea { line-height: 1.65; }

@media (max-width: 820px) {
  .mobile-drawer__panel { padding: 30px 24px 44px; }
  .mobile-drawer__eyebrow { font-size: 13px; letter-spacing: .18em; }
  .mobile-drawer__header strong { font-size: 22px; }
  .mobile-drawer__subtitle { font-size: 15px; }
  .mobile-nav { gap: 12px; }
  .mobile-nav__item { padding-top: 18px; }
  .mobile-nav__link { font-size: clamp(28px, 7.4vw, 36px); line-height: 1.15; font-weight: 850; }
  .mobile-nav__toggle { width: 44px; height: 44px; font-size: 26px; border-color: #d0c6b6; }
  .mobile-nav__child { padding: 12px 0; }
  .mobile-nav__child span { font-size: 18px; font-weight: 700; }
  .mobile-nav__child small { font-size: 14px; line-height: 1.35; }
  .mobile-nav__lang a { display:inline-block; font-size: 22px; font-weight: 800; padding: 8px 0; }
  .section-mobile-switch__bar { min-height: 66px; padding: 0 24px; }
  .section-mobile-switch__bar span strong { font-size: 19px; line-height: 1.2; }
  .section-mobile-switch__bar small { font-size: 13px; line-height: 1.35; }
  .section-mobile-switch__bar em { font-size: 17px; letter-spacing: .02em; }
  .section-mobile-switch__panel a { padding: 19px 24px; font-size: 18px; line-height: 1.4; }
  .contact-form button,
  .contact-form .btn-primary,
  .customer-service__panel .btn-primary { font-size: 18px; min-height: 52px; }
}

.customer-service { z-index: 86; }
.customer-service__button { position: relative; justify-content: center; }
.customer-service__button img,
.customer-service__button span,
.customer-service__head img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
}
.customer-service__button span { display: grid; place-items: center; }
@media (max-width: 820px) {
  .customer-service {
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .customer-service__button {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    min-height: 70px;
    padding: 4px !important;
    border-radius: 50%;
  }
  .customer-service__button img,
  .customer-service__button span {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }
  .customer-service__button em { display: none !important; }
  .customer-service__panel {
    position: fixed;
    right: 16px;
    left: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    border-radius: 18px;
  }
}

/* 4.0 CMS/footer/navigation usability fixes */
.footer-column h4 { font-family: inherit; letter-spacing: .08em; }
.footer-social--icons { display:flex; flex-direction:row; align-items:center; gap:10px; flex-wrap:nowrap; margin-top:4px; }
.social-icon { width:38px; height:38px; border-radius:999px; border:1px solid rgba(255,255,255,.25); display:inline-grid; place-items:center; color:#fff; background:rgba(255,255,255,.08); font-size:11px; font-weight:800; letter-spacing:.04em; }
.social-icon:hover { color:#161616; background:var(--accent-2); border-color:var(--accent-2); transform:none; }
.social-icon--disabled { opacity:.38; cursor:not-allowed; }
.footer-social-hint { margin-top:12px; color:rgba(255,255,255,.38); font-size:12px; line-height:1.6; }

.admin-help { background:#fbf7ee; border:1px solid var(--line); padding:14px 16px; margin-bottom:16px; color:var(--muted); line-height:1.7; }
.admin-nav-tree { width:100%; border-collapse:separate; border-spacing:0; }
.admin-nav-tree th, .admin-nav-tree td { padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; }
.admin-nav-tree tr.is-disabled { opacity:.52; background:#f4f4f4; color:#777; }
.nav-tree-label { display:flex; align-items:flex-start; gap:10px; }
.nav-tree-indent { display:inline-block; flex:0 0 auto; color:#b7aa98; font-family:monospace; white-space:pre; }
.nav-tree-title { display:grid; gap:3px; }
.nav-tree-title strong { color:inherit; }
.nav-tree-title small { color:var(--muted); }
.nav-status { display:inline-flex; align-items:center; justify-content:center; min-width:74px; min-height:28px; border-radius:999px; font-size:12px; font-weight:700; border:1px solid var(--line); }
.nav-status--on { background:#edf8ec; color:#315330; border-color:#b7d6b4; }
.nav-status--off { background:#eee; color:#777; }
.admin-form .inline-note { color:var(--muted); font-size:12px; line-height:1.65; }

.section-block-card__actions { display:flex; gap:12px; flex-wrap:wrap; margin:16px 0; }
.section-block-card__cta--primary { color:#fff; background:var(--ink); border-radius:999px; padding:10px 18px; font-weight:800; display:inline-flex; }
.section-detail-hero { min-height:420px; }
.section-detail-card { background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); padding:clamp(24px,4vw,54px); }
.section-detail-card .section-points { margin-top:24px; }

@media (max-width: 860px) {
  .footer-social--icons { gap:9px; }
  .social-icon { width:36px; height:36px; }
  .admin-nav-tree th:nth-child(3), .admin-nav-tree td:nth-child(3), .admin-nav-tree th:nth-child(4), .admin-nav-tree td:nth-child(4) { display:none; }
}

/* 4.1 CMS stability and footer system */
.footer-institution-grid { grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr; }
.footer-social--icons { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.social-icon { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.22); border-radius:50%; color:inherit; background:transparent; padding:0; cursor:pointer; }
.social-icon img { width:22px; height:22px; display:block; object-fit:contain; filter: invert(88%) sepia(10%) saturate(180%) hue-rotate(350deg); }
.social-icon--disabled { opacity:.35; cursor:not-allowed; }
.footer-social-hint { display:none !important; }
.footer-branches .branch-list { display:flex; flex-wrap:wrap; gap:8px; }
.branch-chip { color:#eee; border:1px solid rgba(255,255,255,.26); background:rgba(255,255,255,.05); border-radius:20px; padding:8px 14px; cursor:pointer; }
.branch-modal, .wechat-qr-panel { display:none; position:fixed; z-index:2000; left:50%; top:50%; transform:translate(-50%,-50%); width:min(420px, calc(100vw - 40px)); padding:28px; background:#fff; color:#141414; border-radius:16px; box-shadow:0 30px 120px rgba(0,0,0,.45); }
.branch-modal.is-open, .wechat-qr-panel.is-open { display:block; }
.branch-modal__close, .wechat-qr-panel button[data-qr-close] { position:absolute; right:14px; top:10px; border:0; background:transparent; font-size:26px; cursor:pointer; }
.wechat-qr-panel img { display:block; width:220px; max-width:100%; margin:18px auto; }
@media (max-width: 900px) { .footer-institution-grid { grid-template-columns:1fr; } .branch-modal, .wechat-qr-panel { top:auto; bottom:24px; transform:translateX(-50%); } }

.admin-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; border-bottom:1px solid var(--line); }
.admin-tab { border:1px solid var(--line); border-bottom:0; background:#f8f6f1; padding:10px 16px; border-radius:10px 10px 0 0; cursor:pointer; font-weight:700; }
.admin-tab.is-active { background:#fff; color:#111; }
.admin-tab-panel { display:none; }
.admin-tab-panel.is-active { display:block; }
.admin-form--tabbed { margin-top:0; }
.admin-section-title { grid-column: 1/-1; margin:12px 0 0; padding-top:16px; border-top:1px solid var(--line); font-size:18px; }
.admin-columns-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; }
.admin-column-card { background:#fff; border:1px solid var(--line); padding:16px; border-radius:14px; }
.admin-tree-kids { margin:10px 0 0 18px; padding-left:14px; border-left:2px solid var(--line); }
.admin-tree-kid { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px dashed var(--line); }
.branch-form-grid input, .branch-form-grid select { width:100%; }
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

/* 4.2 CMS-3 Works editing and ordering fixes */
.admin-page-note { margin:.4rem 0 0; color:var(--muted); line-height:1.65; }
.admin-topbar--sticky-actions { align-items:flex-start; gap:18px; }
.admin-actions--toolbar { margin:12px 0 16px; }
.admin-table-wrap { overflow-x:auto; }
.admin-table--draggable .order-input { max-width:86px; min-height:38px; padding:8px 10px; text-align:center; }
.drag-handle { width:38px; height:38px; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:grab; font-size:20px; line-height:1; }
tr.is-dragging { opacity:.48; background:#fbf4e6; }
.admin-order-form { background:transparent; }
.admin-button, .btn-primary { cursor:pointer; }
@media (max-width:720px) {
  .admin-topbar--sticky-actions { display:block; }
  .admin-actions--toolbar { display:grid; grid-template-columns:1fr; }
}


/* 4.3 CMS-4 upload preview and replacement slots */
.admin-upload-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--line);
  background: #fffaf1;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.admin-upload-preview__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.admin-preview-image--slot {
  max-width: 360px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.admin-gallery-card img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .admin-preview-image--slot { max-width: 100%; max-height: 220px; }
  .admin-gallery-card img { height: auto; max-height: 220px; }
}

/* 4.4 Evidence level CMS tabs and evidence display */
.admin-evidence-panel { border-left:4px solid var(--accent, #b08a43); }
.admin-panel-title-row { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.admin-evidence-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.admin-evidence-tab { border:1px solid var(--line, #ded6c8); background:#fff; padding:12px 14px; min-width:156px; cursor:pointer; display:grid; gap:4px; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.04); text-decoration:none; color:inherit; }
.admin-evidence-tab input { display:none; }
.admin-evidence-tab small { color:var(--muted, #6e6a61); font-size:12px; }
.admin-evidence-tab.is-active, .admin-evidence-tab:has(input:checked) { border-color:#b08a43; background:#fff8e8; box-shadow:0 0 0 2px rgba(176,138,67,.18); }
.admin-evidence-tab--add { border-style:dashed; place-content:center; color:#8b6b2e; }
.admin-evidence-current { background:#f6f1e7; border:1px solid #ded6c8; padding:12px 14px; margin:0 0 18px; }
.admin-inline-list { margin:0; padding-left:18px; display:grid; gap:4px; }
.evidence-level-label { margin:0 0 18px; color:#6e6a61; font-size:15px; }
.gallery-card--evidence figcaption { min-height:76px; }
@media (max-width: 820px) {
  .admin-panel-title-row { display:grid; }
  .admin-evidence-tab { min-width:100%; }
}


.admin-error-block, .admin-warning-block { padding:14px 16px; border:1px solid var(--line); margin-bottom:16px; }
.admin-error-block { background:#fbeaea; color:#6f3434; border-color:#e4b9b9; }
.admin-warning-block { background:#fff7e8; color:#6a5321; border-color:#ead4a1; }
.admin-grid--stats { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
.admin-stat-card { background:#fff; border:1px solid var(--line); padding:14px; border-radius:12px; display:grid; gap:8px; }
.admin-stat-card strong { font-size:28px; }

/* CMS-8: functional evidence-level slot panels */
.admin-evidence-slot-panel { display:none; }
.admin-evidence-slot-panel.is-active { display:grid; }
.admin-evidence-tab.is-active { border-color:#b08a43; background:#fff8e8; box-shadow:0 0 0 2px rgba(176,138,67,.18); }
.admin-evidence-tab:has(input:checked):not(.is-active) { border-color:var(--line, #ded6c8); background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.04); }
