.shell { overflow: clip; }
.site-header-shell { position: sticky; top: 0; z-index: 50; background: #f6f8fd; border-bottom: 1px solid #dce5f4; }
.template-header-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-header-shell > .page-nav { width: 100%; }
.site-header { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.header-controls { display: flex; align-items: center; flex: 1; min-width: 0; gap: 6px; }
.site-header .site-tabs { flex: 1; }
.site-header-shell + main section[id], .template-header-shell ~ .layout main[id], .template-header-shell ~ .layout section[id] { scroll-margin-top: var(--site-header-offset, 120px); }
.site-header-shell + main .news-intro { margin-top: 12px; }
.template-header-shell ~ .layout { margin-top: 10px; }
.template-header-shell ~ .layout .sidebar { top: var(--site-header-offset, 120px); max-height: calc(100dvh - var(--site-header-offset, 120px)); }
.skip-link { z-index: 100; }
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 12px; margin: 0; color: inherit; text-decoration: none; letter-spacing: 0; }
.site-brand img { display: block; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid #dce5f4; border-radius: 13px; object-fit: contain; box-shadow: none; }
.site-brand-copy { display: block; }
.site-brand .b-name { display: block; font: 800 17px/1.4 Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; white-space: nowrap; background: linear-gradient(90deg, #E84393 0%, #FF6B6B 12%, #FF9F43 25%, #FECA57 38%, #55E6C1 52%, #00D4FF 68%, #5F27CD 85%, #E84393 100%); }
.site-brand .b-author { display: block; margin-top: 3px; color: #73849d; font: 500 13px/1.5 Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
.site-brand .b-author b { font-weight: 700; background: linear-gradient(90deg, #E84393 0%, #FF9F43 25%, #FECA57 38%, #55E6C1 52%, #00D4FF 68%, #5F27CD 85%, #E84393 100%); }
.site-brand .b-name, .site-brand .b-author b { background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: holographic-shift 5s ease infinite; }
@keyframes holographic-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.site-tabs { display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.site-tabs > a, .site-tabs > button, .site-header .contact-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 40px; margin: 0; padding: 9px 10px; border: 1px solid #dce5f4; border-radius: 10px; color: #405474; background: #fff; font: 650 13px/1.4 Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; white-space: nowrap; text-decoration: none; box-shadow: none; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.site-tabs > a:hover, .site-tabs > button:hover { color: #245eca; border-color: #a7c6ff; background: #edf3ff; transform: none; box-shadow: none; }
.site-tabs > a[aria-current="page"], .site-tabs > a[aria-current="page"]:hover { color: #fff; border-color: #2864d4; background: #2864d4; }
.site-brand:focus-visible, .site-tabs > a:focus-visible, .site-tabs > button:focus-visible { outline: 3px solid #77a9ff; outline-offset: 3px; }
.site-header .contact-actions { display: flex; align-items: center; flex-shrink: 0; gap: 6px; padding: 0; }
.site-header .contact-actions > span { display: none; }
.contact-button { border: 1px solid #cedddf; border-radius: 10px; padding: 7px 13px; color: #087c70; background: #fff; font: 650 13px/1.4 Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; cursor: pointer; }
.contact-button:hover { border-color: #7ab8b1; background: #edf8f6; }
.contact-button:focus-visible, .qr-close:focus-visible { outline: 3px solid #77a9ff; outline-offset: 3px; }
.qr-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 20px; border: 0; border-radius: 20px; color: #172747; background: #fff; box-shadow: 0 24px 80px #0004; }
.qr-dialog:not([open]) { display: none; }
.qr-dialog::backdrop { background: #111b2dd9; }
.qr-dialog h2 { margin: 0 42px 18px 0; font-size: 19px; }
.qr-dialog img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 220px); margin: 0 auto; object-fit: contain; }
.qr-dialog p { margin: 16px 0 0; color: #56647a; font-size: 13px; line-height: 1.7; }
.qr-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #405474; background: #f0f3f7; font-size: 23px; cursor: pointer; }
.template-header-shell ~ .layout .sidebar { padding: 10px 14px; line-height: 1.4; }
.sidebar .sb-title { margin-bottom: 0; }
.sidebar .sb-title .eyebrow { margin-bottom: 4px; font-size: 10px; }
.sidebar .sb-title h1 { font-size: 16px; }
.sidebar .sb-title .meta-chips { margin-top: 6px; }
.sidebar .sb-row { gap: 8px; margin-bottom: 0; }
.sidebar .sb-usage summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.sidebar .sb-usage .hero-sub { margin: 6px 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.sidebar .sb-usage ol { margin-top: 6px; }
.sidebar .sb-usage li { font-size: 11px; line-height: 1.5; }
.sidebar .sb-label { font-size: 10px; margin-bottom: 4px; padding-bottom: 3px; }
.sidebar .sb-nav { gap: 2px 4px; }
.sidebar .sb-nav a { padding: 4px 2px; min-height: 26px; font-size: 11px; line-height: 1.4; }
.sidebar .sb-nav .sb-label { margin-bottom: 2px; }
.sidebar .sb-country { margin-bottom: 0; }
.sidebar .sb-country .country-tip { margin-bottom: 4px; font-size: 10px; line-height: 1.4; }
.sidebar .sb-country .country-btns { grid-template-columns: repeat(7, 1fr); gap: 3px; }
.sidebar .country-btn { min-height: 24px; padding: 2px; font-size: 10px; }
.sidebar .country-btn.reset { grid-column: auto; }
.sidebar-qr-section { margin-top: 0; }
.sidebar-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sidebar-qr-button { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 5px; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); background: var(--bg2); font: 500 10px/1.4 var(--font-body); cursor: pointer; }
.sidebar-qr-button img { width: 100%; height: 130px; object-fit: contain; }
.sidebar .sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; padding-top: 6px; font-size: 10px; line-height: 1.4; }
.sidebar .theme-toggle { margin: 0; padding: 5px 8px; font-size: 10px; min-height: 28px; }
.template-header-shell ~ .layout .content { padding-top: 16px; }
.template-header-shell ~ .layout section.grp { padding-top: 24px; }
.template-status:empty { min-height: 0; margin-top: 0; }
body:not(.light) .template-header-shell { background: var(--bg); border-color: var(--rule); }
body:not(.light) .page-nav .site-tabs > a, body:not(.light) .page-nav .site-tabs > button { color: var(--muted); border-color: var(--rule); background: var(--bg2); }
body:not(.light) .page-nav .site-tabs > a:hover, body:not(.light) .page-nav .site-tabs > button:hover { color: var(--accent); border-color: var(--accent); background: var(--bg3); }
body:not(.light) .page-nav .site-tabs > a[aria-current="page"] { color: #fff; border-color: #2864d4; background: #2864d4; }
@media (min-width: 901px) { .template-header-shell ~ .layout { flex-direction: row; } .template-header-shell ~ .layout .sidebar { display: flex; flex-direction: column; gap: 6px; position: sticky; width: 280px; height: calc(100dvh - var(--site-header-offset, 80px) - 8px); max-height: calc(100dvh - var(--site-header-offset, 80px) - 8px); border-radius: 22px 0 0 22px; } .template-header-shell ~ .layout .content { flex: 1; width: calc(100% - 280px); min-width: 0; } }
@media (min-width: 901px) and (max-height: 760px) { .template-header-shell ~ .layout .sidebar { gap: 4px; padding: 8px 14px; } .sidebar .sb-row { gap: 4px; } .sidebar-qr-button img { height: 100px; } }
@media (max-width: 900px) { .template-header-shell ~ .layout .sidebar { position: static; height: auto; max-height: none; display: flex; flex-direction: column; gap: 10px; } .sidebar-qr-section { max-width: 300px; margin-top: 0; } .sidebar-qr-button img { height: 170px; } }
@media (max-width: 980px) { .site-header { flex-wrap: wrap; gap: 6px; } .site-header .header-controls { flex-basis: 100%; width: 100%; } .site-header .site-tabs { padding-bottom: 2px; } }
@media (max-width: 650px) { .template-header-shell { width: calc(100% - 36px); } .site-header { padding: 6px 0; } .site-brand { gap: 8px; } .site-brand img { width: 36px; height: 36px; } .site-brand .b-name { font-size: 15px; } .site-brand .b-author { font-size: 11px; margin-top: 0; } .site-tabs > a, .site-header .contact-button { min-height: 36px; padding: 8px 9px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .site-brand .b-name, .site-brand .b-author b { animation: none; } .site-tabs > a, .site-tabs > button { transition: none; } }
@media print { .site-header-shell { display: none; } }
