:root {
  color-scheme: light;
  --page: #f5f7fa;
  --surface: #fff;
  --text: #162840;
  --muted: #4d6078;
  --line: #dce5f0;
  --accent: #185c9a;
  --accent-dark: #123e68;
  --pale: #eaf2fc;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", "Microsoft Yahei", sans-serif;
  font: 16px/1.6 var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
input, select, textarea, button { font: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
:focus-visible { outline: 2px solid #2c6fba; outline-offset: 4px; }
.shell { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }
.section { margin-top: 36px; }
.site-header { background: #fff; }
.header-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; gap: 12px; align-items: center; min-width: 0; font-size: 1.23rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.brand-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: var(--accent-dark); border-radius: 12px; color: #eef8ff; }
.brand-icon svg { width: 26px; height: 26px; }
.public-header { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(0, 1.6fr) minmax(135px, auto); gap: clamp(14px, 2.1vw, 26px); max-width: 1000px; min-height: 104px; padding-block: 10px; }
.public-header > .brand { grid-column: 1; }
.header-badges { grid-column: 2; display: flex; justify-content: space-evenly; gap: clamp(6px, 1.6vw, 20px); padding: 0; margin: 0; list-style: none; }
.header-badges li { display: grid; flex: 1; justify-items: center; align-content: start; gap: 5px; min-width: 0; max-width: 10em; color: #3c5470; font-size: .875rem; font-weight: 650; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.header-badge-icon, .header-contact-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: var(--accent); background: var(--pale); }
.header-badge-icon svg, .header-contact-icon svg { width: 21px; height: 21px; }
.header-contact { grid-column: 3; display: flex; align-items: center; gap: 8px; min-width: 0; padding-inline-start: 15px; border-inline-start: 1px solid var(--line); }
.header-contact:hover strong { color: var(--accent); }
.header-contact-icon { flex: 0 0 auto; background: #deebf8; }
.header-contact-text { min-width: 0; display: grid; line-height: 1.35; overflow-wrap: anywhere; }
.header-contact small { font-size: .8125rem; }
.header-contact strong { color: var(--accent-dark); font-variant-numeric: tabular-nums; font-size: clamp(1.06rem, 1.85vw, 1.38rem); }
.header-contact .header-contact-empty { color: var(--muted); font-size: .9rem; }
.nav-band { background: #173653; color: #fff; }
.desktop-nav { display: grid; grid-template-columns: repeat(7, 1fr); align-items: stretch; font-size: .9375rem; }
.desktop-nav a { display: grid; place-items: center; min-height: 48px; padding: 4px 7px; text-align: center; position: relative; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { background: #274e71; }
.desktop-nav a[aria-current] { font-weight: 700; box-shadow: inset 0 -3px #87b7e4; }
.desktop-nav a:focus-visible { outline: 2px solid #b3dbff; outline-offset: -4px; }
.mobile-nav { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: var(--accent); cursor: pointer; font-size: .9375rem; font-weight: 700; text-align: center; }
.button svg { width: 18px; height: 18px; }
.button:hover { background: var(--accent-dark); }
.button.small { min-height: 42px; border-radius: 9px; padding: 8px 14px; font-size: .875rem; }
.button.secondary { color: var(--accent-dark); background: var(--surface); border-color: #cbd8e8; }
.button.secondary:hover { background: var(--pale); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { color: var(--accent); font-weight: 700; }
.text-link:hover, .breadcrumb a:hover { text-decoration: underline; text-underline-offset: .22em; }

.hero { background: linear-gradient(112deg, #eaf2fc, #f0f5fc 55%, #ddeaf7); border-bottom: 1px solid #dbe6f3; }
.hero-layout { min-height: 352px; display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(20px, 4vw, 54px); align-items: center; padding-block: 24px; }
.hero-copy { padding-block: 16px; }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .9375rem; margin-bottom: 11px; }
.hero h1 { font-size: clamp(2.25rem, 4.15vw, 3.5rem); font-weight: 800; line-height: 1.19; letter-spacing: -.056em; overflow-wrap: anywhere; }
.hero h1 span { color: var(--accent); display: inline-block; }
.hero-description { max-width: 27em; margin-top: 15px; color: #435973; overflow-wrap: anywhere; }
.hero .actions { margin-top: 21px; }
.hero-image { min-width: 0; aspect-ratio: 1.69; border-radius: 17px; overflow: hidden; background: #d8e5f3; box-shadow: 0 14px 27px #193a621b; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.portal { max-width: 1080px; padding-top: 34px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section h2 { font-size: 1.65rem; line-height: 1.35; letter-spacing: -.035em; }
.section-title .text-link { font-size: .9rem; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.topic { --topic-ink: #234e86; --topic-wash: #e9f1fc; --topic-line: #c5d7ee; display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid var(--topic-line); border-radius: 15px; background: linear-gradient(160deg, #fff, var(--topic-wash)); }
.topic:nth-child(2) { --topic-ink: #22605e; --topic-wash: #e3f2ef; --topic-line: #c4ddd8; }
.topic:nth-child(3) { --topic-ink: #804329; --topic-wash: #faeee5; --topic-line: #edd4c3; }
.topic:nth-child(4) { --topic-ink: #5f477f; --topic-wash: #f0eaf8; --topic-line: #dccee9; }
.topic h2 { display: flex; align-items: center; gap: 10px; min-height: 54px; padding-bottom: 10px; border-bottom: 1px solid var(--topic-line); color: var(--topic-ink); font-size: 1.13rem; line-height: 1.3; }
.topic h2 span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 10px; color: #fff; background: var(--topic-ink); }
.topic h2 svg { width: 21px; height: 21px; }
.entry-links, .shortcut-links, .feed-list { list-style: none; margin: 0; padding: 0; }
.entry-links a, .shortcut-links a { display: inline-block; color: #354b63; overflow-wrap: anywhere; }
.entry-links a:hover, .shortcut-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.topic .entry-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding-block: 8px 10px; font-size: .875rem; }
.topic .entry-links a { display: block; padding-block: 5px; }
.topic-action { display: block; align-self: flex-start; margin-top: auto; padding: 5px 11px; border: 1px solid var(--topic-line); border-radius: 7px; background: #fff; color: var(--topic-ink); font-size: .875rem; font-weight: 700; }
.topic-action:hover { border-color: var(--topic-ink); }
.topic-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; color: var(--accent); background: var(--pale); }
.category { display: inline-block; border-radius: 5px; padding: 2px 7px; color: var(--accent-dark); background: var(--pale); white-space: nowrap; font-size: .8125rem; font-weight: 700; }
.category-types { background: #edf0fa; color: #475d83; }
.category-examinations { background: #e5f0f3; color: #325e6b; }
.category-diet { background: #edf4e9; color: #3d6234; }
.category-treatment { background: #f1eee4; color: #6b5b30; }
.category-groups { background: #f0edf7; color: #64517b; }
.category-first-aid { background: #f9ede5; color: #86472c; }
.focus-strip { display: flex; gap: 16px; align-items: center; margin-block: 19px; padding: 8px 0; }
.focus-strip h2 { display: flex; align-items: center; gap: 6px; color: var(--accent-dark); font-size: .9375rem; white-space: nowrap; }
.focus-strip h2 svg { width: 17px; height: 17px; }
.focus-strip ul { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; }
.portal-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.care-promo { display: flex; align-items: flex-end; position: relative; isolation: isolate; min-width: 0; min-height: 310px; overflow: hidden; border-radius: 12px; background: #15314b; color: #fff; }
.care-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.care-promo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(12deg, #0b2036f2 0%, #102d46b5 22%, transparent 69%); }
.care-promo-copy { position: relative; z-index: 2; padding: 21px; }
.care-promo h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); line-height: 1.25; }
.care-promo p { color: #f1f6fc; margin-top: 6px; font-size: .9375rem; }
.care-promo-copy span { display: inline-block; margin-top: 10px; padding: 4px 11px; border: 1px solid #ffffff7a; border-radius: 6px; color: #fff; font-size: .875rem; font-weight: 700; }
.care-promo:hover .care-promo-copy span { background: #ffffff27; }
.article-feed, .shortcuts, .knowledge-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.article-feed { scroll-margin-top: 12px; }
.feed-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; background: #f2f5fa; }
.feed-tabs a { min-height: 44px; display: grid; place-items: center; padding: 7px 2px; box-shadow: inset 0 -2px transparent; text-align: center; font-size: .875rem; font-weight: 700; color: var(--muted); }
.feed-tabs a:hover, .feed-tabs a[aria-current] { color: var(--accent-dark); background: #e3eefb; box-shadow: inset 0 -2px var(--accent); }
.feed-tabs a:first-child { border-radius: 9px 0 0 0; }
.feed-tabs a:last-child { border-radius: 0 9px 0 0; }
.feed-content { padding: 13px 15px 14px; }
.feed-content > .text-link { display: inline-block; margin-top: 10px; font-size: .875rem; }
.feed-content > .empty { padding-inline: 0; }
.feed-lead { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); align-items: center; gap: 12px; }
.feed-lead img { width: 100%; height: auto; aspect-ratio: 1.62; object-fit: cover; border-radius: 7px; }
.feed-lead h3 { margin: 4px 0; line-height: 1.35; font-size: 1.07rem; overflow-wrap: anywhere; }
.feed-lead p, .knowledge-content p { color: var(--muted); font-size: .875rem; }
.feed-lead p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.feed-list { margin-top: 9px; border-top: 1px solid var(--line); }
.feed-list li { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; padding: 5px 0; font-size: .875rem; }
.feed-list li + li { border-top: 1px solid #edf1f6; }
.feed-list a { overflow-wrap: anywhere; }
.feed-list a:hover, .feed-lead a:hover, .knowledge-content a:hover, .article-card h2 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.shortcuts { margin-top: 23px; }
.shortcut-links { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.shortcut-links li + li { border-inline-start: 1px solid var(--line); }
.shortcut-links a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 86px; padding: 8px; text-align: center; font-size: .875rem; }
.shortcut-links a:hover { background: var(--pale); }
.shortcut-links svg { width: 27px; height: 27px; color: var(--accent); }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.knowledge .section-title { align-items: center; margin-bottom: 18px; }
.knowledge .section-title h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.42rem, 3.3vw, 2.05rem); }
.knowledge .section-title h2 span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--accent-dark); color: #fff; }
.knowledge .section-title h2 svg { width: 25px; height: 25px; }
.knowledge-card { display: flex; flex-direction: column; }
.knowledge-heading { display: flex; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; background: #edf3fb; }
.knowledge-heading h3 { padding: 10px 15px; border-radius: 9px 0 0 0; font-size: 1.02rem; color: #fff; background: #264e78; }
.knowledge-heading .text-link { margin-inline: auto 14px; font-size: .875rem; white-space: nowrap; }
.knowledge-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 15px; }
.knowledge-content { display: grid; grid-template-columns: minmax(0, 37%) minmax(0, 1fr); align-items: center; gap: 14px; overflow-wrap: anywhere; }
.knowledge-content img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: 7px; background: var(--pale); }
.knowledge-illustration { display: grid; place-items: center; aspect-ratio: 1.55; border-radius: 7px; color: #3d6234; background: #edf4e9; }
.knowledge-illustration svg { width: 33px; height: 33px; }
.knowledge-content h4 { margin: 0 0 6px; color: var(--accent-dark); line-height: 1.45; font-size: 1.05rem; }
.knowledge-content p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.knowledge-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; margin: 0; padding: 0; list-style: none; }
.knowledge-links li { display: flex; align-items: baseline; gap: 7px; min-width: 0; color: var(--text); font-size: .875rem; }
.knowledge-links li::before { content: ""; flex: 0 0 4px; height: 4px; background: var(--accent); border-radius: 50%; transform: translateY(-.26em); }
.knowledge-links a { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-block: 4px; }
.knowledge-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.knowledge-action { width: 100%; min-height: 40px; margin-top: auto; border-radius: 6px; background: #a34c34; }
.knowledge-action:hover { background: #813c28; }
.resources { margin-top: 28px; }
.resources h2 { padding-bottom: 6px; border-bottom: 1px solid #b5cce2; color: var(--accent-dark); font-size: 1.12rem; }
.resources .entry-links { display: flex; flex-wrap: wrap; gap: 4px 21px; margin-top: 8px; font-size: .875rem; }
.resources .entry-links a { padding-block: 4px; }
time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.site-footer { margin-top: 33px; background: #153554; color: #f7fbff; }
.footer-bar { background: #214a73; }
.footer-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.footer-nav a { display: grid; place-items: center; min-height: 46px; padding: 6px 4px; text-align: center; font-size: .9375rem; }
.footer-nav a:hover, .footer-nav a[aria-current] { background: #2e5a87; }
.site-footer a:focus-visible { outline-color: #b6ddff; outline-offset: -3px; }
.footer-main {
  display: grid;
  grid-template-columns: 200px minmax(0, 520px);
  justify-content: center;
  align-items: center;
  padding-block: 33px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 0 18px 0 0; text-align: center; }
.footer-brand .brand { flex-direction: column; gap: 7px; font-size: 1.1rem; }
.footer-brand .brand-icon { background: #f1f7ff; color: #1a4f82; }
.footer-brand p { font-size: .875rem; color: #c5d9ec; }
.footer-brand p span { color: #f7fbff; }
.footer-details { padding-inline-start: clamp(19px, 4vw, 50px); border-inline-start: 1px solid #3a5673; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }
.footer-contact dl { display: grid; gap: 6px; min-width: 0; margin: 0; font-size: .9375rem; }
.footer-contact dl > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; }
.footer-contact dt { color: #c5d9ec; }
.footer-contact dd { margin: 0; overflow-wrap: anywhere; }
.footer-contact dd a:hover, .footer-meta a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-actions a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border: 1px solid #7898b6; border-radius: 6px; font-size: .875rem; }
.footer-actions a:first-child { color: #142e48; background: #edf5ff; border-color: #edf5ff; font-weight: 700; }
.footer-actions a:hover { box-shadow: 0 0 0 1px #b3cee7; }
.footer-notice { margin-top: 14px; color: #d6e5f2; max-width: 48em; font-size: .875rem; overflow-wrap: anywhere; white-space: pre-line; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 9px; color: #b8cde1; font-size: .8125rem; overflow-wrap: anywhere; }

.page-section { padding-block: 38px 24px; min-height: 52vh; }
.page-title { border: 1px solid var(--line); border-radius: 13px; background: #eaf2fc; padding: clamp(22px, 4vw, 44px); margin-bottom: 24px; }
.page-title h1, .reading h1, .admin-main h1, .info-card h1 { font-size: clamp(1.75rem, 3.6vw, 3rem); letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; }
.page-title p, .admin-title p { margin-top: 10px; color: var(--muted); }
.search-form { display: flex; gap: 9px; max-width: 565px; margin-bottom: 18px; }
.search-input { display: flex; align-items: center; gap: 10px; padding-inline: 13px; flex: 1; min-width: 0; border: 1px solid #cbd8e8; border-radius: 8px; background: #fff; color: var(--muted); }
.search-input input { border: 0; background: transparent; padding-block: 9px; width: 100%; min-width: 0; color: var(--text); }
.search-input:focus-within { outline: 2px solid #2c6fba; outline-offset: 3px; }
.search-input input:focus { outline: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { padding: 8px 13px; background: #fff; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 700; text-align: center; }
.filters a:hover { border-color: #8caccd; }
.filters a[aria-current] { background: var(--pale); color: var(--accent-dark); border-color: #acc9e9; }
.article-grid { margin-top: 18px; display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card, .info-card { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: #fff; padding: 22px; overflow-wrap: anywhere; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; }
.article-card h2 { margin-block: 10px 6px; font-size: 1.18rem; line-height: 1.45; }
.article-card p { margin-bottom: 15px; color: var(--muted); }
.card-meta { width: 100%; display: flex; gap: 10px; justify-content: space-between; margin-top: auto; font-size: .875rem; }
.library-questions { display: inline-block; margin-top: 8px; }
.question-index { margin-bottom: 18px; }
.questions-list { display: grid; gap: 14px; }
.question-card { scroll-margin-top: 14px; }
.question-card p { line-height: 1.8; }
.question-links { margin-top: 12px; font-size: .875rem; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 20px; }
.reading { max-width: 820px; margin: auto; }
.breadcrumb { color: var(--muted); margin-bottom: 15px; font-size: .875rem; overflow-wrap: anywhere; }
.breadcrumb a { color: var(--accent); }
.reading-paper { padding: clamp(20px, 4vw, 52px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow-wrap: anywhere; }
.reading-paper h1 { margin: 12px 0 8px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 9px; color: var(--muted); font-size: .875rem; }
.article-byline a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.article-byline time { font-size: inherit; }
.article-questions { margin-top: 16px; font-size: .9375rem; }
.lead { margin: 15px 0 24px; color: var(--muted); padding: 13px 15px; background: var(--page); border-inline-start: 3px solid #76a3cc; }
.lead strong { display: block; color: var(--accent-dark); margin-bottom: 3px; }
.prose { line-height: 1.9; }
.prose p + p, .prose h2 + p, .prose p + h2 { margin-top: 14px; }
.preserve { white-space: pre-line; }
.article-prose { overflow-wrap: anywhere; }
.article-prose > * + * { margin-top: .7em; }
.article-prose h2, .article-prose h3, .article-prose h4 { margin-bottom: 0; line-height: 1.4; }
.article-prose h4 { font-size: 1.05rem; }
.article-prose ol, .article-prose ul { padding-inline-start: 1.55em; }
.article-prose blockquote { margin-inline: 0; padding: 9px 14px; border-inline-start: 3px solid #9bb8da; background: var(--pale); }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.article-prose img { max-width: 100%; height: auto; border-radius: 5px; }
.article-prose .align-left { text-align: left; }
.article-prose .align-center { text-align: center; }
.article-prose .align-right { text-align: right; }
.article-prose .align-justify { text-align: justify; }
.article-prose .align-center img, .article-prose .align-right img { display: inline-block; }
.info-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-overview { margin-top: 18px; }
.info-card h2 { margin-block: 8px; font-size: 1.35rem; }
.info-card p, .info-card dd, .info-card ul { color: var(--muted); }
.info-card ul { padding-inline-start: 1.25em; margin-block: 8px; }
.info-card li + li { margin-top: 6px; }
.info-card dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; }
.info-card dd { margin: 0; }
.info-card dd a { color: var(--accent); text-decoration: underline; }
.info-card .actions, .info-card h1 + a, .info-actions { margin-top: 16px; }
.info-card .entry-links a { padding-block: 4px; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; padding: 9px 14px; clip-path: none; top: 8px; left: 10px; z-index: 99; background: white; }

.admin-main { padding-bottom: 35px; }
.admin-shell { max-width: 900px; }
.admin-nav, .admin-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.admin-nav { margin-bottom: 24px; }
.admin-title { margin-bottom: 18px; }
.admin-list, .admin-form, .auth-card { background: white; border: 1px solid var(--line); border-radius: 17px; }
.admin-form { padding: clamp(15px, 3vw, 25px); }
.admin-row { padding: 12px 15px; display: grid; grid-template-columns: minmax(0, 1fr) 74px auto auto; align-items: center; gap: 13px; overflow-wrap: anywhere; }
.admin-row + .admin-row { border-top: 1px solid var(--line); }
.admin-row small { display: block; color: var(--muted); margin-top: 2px; }
.state { justify-self: start; background: #edf2f0; color: #495c55; border-radius: 6px; padding: 3px 8px; font-size: .8125rem; white-space: nowrap; }
.state.live { background: var(--pale); color: var(--accent-dark); }
.form-stack { display: grid; gap: 16px; }
.form-stack label { display: grid; gap: 5px; font-weight: 700; }
.form-stack small { font-weight: 400; color: var(--muted); }
.form-stack input, .form-stack textarea, .form-stack select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #cbd8e8; border-radius: 8px; color: var(--text); background: #fff; font-weight: 400; }
.form-stack textarea { resize: vertical; }
.form-stack input[readonly] { background: var(--page); }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.rich-editor, .editor-frame { min-width: 0; }
.rich-editor [hidden], .editor-dialog [hidden] { display: none !important; }
.rich-editor > label { margin-bottom: 5px; }
.editor-frame { border: 1px solid #bbcbdc; border-radius: 8px; background: #fff; }
.editor-toolbar { padding: 5px 7px; display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid #cbd8e8; border-radius: 7px 7px 0 0; background: #eef2f6; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 3px; padding-inline-end: 6px; border-inline-end: 1px solid #cbd8e8; }
.editor-tools:last-child { border: 0; padding-inline-end: 0; }
.editor-tools button, .form-stack .editor-tools select { width: auto; min-height: 33px; padding: 4px 8px; border: 1px solid #c8d5e2; border-radius: 4px; background: #fff; color: var(--text); font-size: .875rem; cursor: pointer; }
.editor-tools button:hover, .editor-tools button[aria-pressed="true"] { background: var(--pale); border-color: #a7bddd; }
.editor-tools button:disabled, .editor-tools select:disabled { opacity: .55; cursor: default; }
.editor-tools .tool-bold { min-width: 33px; font-weight: 800; }
.editor-tools .tool-italic { min-width: 32px; font-style: italic; }
.editor-tools .tool-underlined { min-width: 32px; text-decoration: underline; }
.editor-surface, .form-stack .editor-frame textarea { min-height: 310px; padding: 13px 15px; line-height: 1.75; overflow-wrap: anywhere; }
.editor-surface:focus-visible { outline-offset: -2px; }
.form-stack .editor-frame textarea { display: block; border: 0; font-family: Consolas, "Microsoft YaHei", monospace; font-size: .9375rem; }
.editor-message { color: #8a3727; font-size: .875rem; }
.editor-message:not(:empty) { margin-top: 7px; }
.editor-dialog { width: min(calc(100% - 28px), 540px); max-height: calc(100% - 28px); overflow: auto; padding: 19px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; }
.editor-dialog::backdrop { background: #132d47a6; }
.editor-dialog h2 { font-size: 1.27rem; }
.editor-preview { width: min(calc(100% - 28px), 770px); }
.editor-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.settings-jumps { margin-bottom: 18px; }
.settings-group { min-width: 0; margin: 0; padding: 12px 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-margin-top: 14px; }
.settings-group legend { padding-inline: 6px; color: var(--accent-dark); font-size: 1.05rem; font-weight: 750; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings-wide, .settings-meta { grid-column: 1 / -1; }
.settings-fields small { line-height: 1.45; }
.settings-meta { padding: 9px 11px; border-radius: 7px; color: var(--muted); background: var(--pale); overflow-wrap: anywhere; font-size: .875rem; }
.settings-meta a { color: var(--accent-dark); text-decoration: underline; }
.article-seo-help { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.settings-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 10px 0; border-top: 1px solid var(--line); background: var(--page); }
.bulk-seo-filter { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; align-items: end; margin-bottom: 13px; gap: 10px; }
.bulk-seo-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: .875rem; }
.bulk-seo-row legend a { overflow-wrap: anywhere; }
.bulk-seo-row legend a:hover { text-decoration: underline; }
.bulk-seo-meta { margin-bottom: 8px; color: var(--muted); font-size: .875rem; }
.bulk-seo-hint { margin-bottom: 14px; }
.bulk-seo-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 12px; align-items: start; }
.auth-card { width: min(calc(100% - 32px), 470px); margin: clamp(25px, 8vw, 90px) auto; padding: clamp(21px, 4vw, 35px); }
.auth-card h1 { margin: 12px 0; font-size: clamp(1.65rem, 4vw, 2.15rem); }
.auth-card .form-stack { margin-top: 16px; }
.notice { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.notice.success { background: var(--pale); color: var(--accent-dark); }
.notice.danger { background: #fff0eb; color: #793223; border-color: #f0d5cc; }

@media (max-width: 1030px) {
  .shell { width: calc(100% - 48px); }
  .hero-layout { min-height: 300px; }
}
@media (max-width: 800px) {
  .header-wrap { gap: 12px; min-height: 66px; }
  .nav-band { display: none; }
  .public-header { grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto; gap: 9px 10px; }
  .header-badges { grid-column: 1 / -1; grid-row: 2; justify-content: center; flex-wrap: nowrap; gap: 4px; padding-top: 7px; border-top: 1px solid var(--line); }
  .header-badges li { flex: 1; gap: 4px; min-width: 0; max-width: none; padding-inline: 3px; }
  .header-badges li + li { border-inline-start: 1px solid #ecf1f6; }
  .header-badge-icon { width: 29px; height: 29px; }
  .header-badge-icon svg { width: 17px; height: 17px; }
  .header-contact { grid-column: 2; grid-row: 1; max-width: min(40vw, 180px); padding-inline-start: 0; border: 0; }
  .header-contact-icon { width: 28px; height: 28px; }
  .header-contact-icon svg { width: 16px; height: 16px; }
  .mobile-nav { grid-column: 3; grid-row: 1; display: block; position: relative; }
  .mobile-nav summary { list-style: none; height: 42px; width: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { display: grid; position: absolute; top: 50px; right: 0; z-index: 2; width: 169px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 8px 22px #15345423; }
  .mobile-nav a { padding: 10px 13px; border-radius: 6px; }
  .mobile-nav a[aria-current], .mobile-nav a:hover { color: var(--accent); background: var(--pale); }
  .hero .actions .button { padding-inline: 11px; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-editorial { gap: 12px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .header-wrap { gap: 8px; }
  .brand { gap: 8px; font-size: .9375rem; }
  .brand-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
  .brand-icon svg { width: 21px; height: 21px; }
  .header-badges li { font-size: .8125rem; }
  .header-contact { gap: 4px; }
  .header-contact strong { font-size: .875rem; }
  .section { margin-top: 26px; }
  .hero-layout { grid-template-columns: 1fr; gap: 15px; min-height: auto; padding-block: 23px 16px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(1.92rem, 8.55vw, 2.8rem); }
  .eyebrow { margin-bottom: 6px; }
  .hero-description { margin-top: 8px; }
  .hero .actions { margin-top: 17px; }
  .hero-image { aspect-ratio: 1.95; border-radius: 12px; }
  .portal { padding-top: 15px; }
  .section h2 { font-size: 1.34rem; }
  .topics, .knowledge-grid { gap: 8px; }
  .topic { padding: 9px; border-radius: 10px; }
  .topic h2 { min-height: 43px; padding: 3px 0 8px; gap: 6px; font-size: .9375rem; }
  .topic h2 span { flex-basis: 30px; height: 30px; border-radius: 7px; }
  .topic h2 svg { width: 18px; height: 18px; }
  .topic .entry-links { gap: 0 5px; padding: 5px 0 8px; }
  .topic .entry-links a { padding-block: 7px; }
  .topic-action { padding-inline: 6px; }
  .focus-strip { gap: 4px; flex-direction: column; align-items: flex-start; margin-block: 10px 13px; }
  .focus-strip a { padding-block: 3px; }
  .portal-editorial, .knowledge-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-editorial { gap: 10px; }
  .care-promo { min-height: 0; aspect-ratio: 1.62; }
  .care-promo-copy { padding: 14px; }
  .feed-content { padding-inline: 10px; }
  .feed-lead { gap: 8px; }
  .feed-lead h3 { font-size: .975rem; }
  .shortcuts { margin-top: 13px; }
  .shortcut-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shortcut-links li:nth-child(n+5) { border-block-start: 1px solid var(--line); }
  .shortcut-links li:nth-child(5) { border-inline-start: 0; }
  .shortcut-links a { min-height: 67px; padding: 4px; }
  .shortcut-links svg { width: 22px; height: 22px; }
  .knowledge-grid { gap: 12px; }
  .knowledge .section-title { gap: 9px; }
  .knowledge .section-title h2 { gap: 7px; }
  .knowledge .section-title h2 span { width: 33px; height: 33px; border-radius: 8px; }
  .knowledge .section-title h2 svg { width: 18px; height: 18px; }
  .knowledge .section-title .button { min-height: 38px; padding-inline: 8px; white-space: nowrap; }
  .knowledge-body { gap: 11px; padding: 10px; }
  .knowledge-content { gap: 9px; }
  .knowledge-content h4 { font-size: .95rem; }
  .knowledge-links { gap: 4px 9px; }
  .resources { margin-top: 19px; }
  .resources .entry-links { row-gap: 0; }
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 4px; }
  .footer-nav a { min-height: 40px; font-size: .875rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 19px; }
  .footer-brand { align-items: flex-start; padding: 0; text-align: start; }
  .footer-brand .brand { flex-direction: row; }
  .footer-details { padding: 12px 0 0; border: 0; border-top: 1px solid #3a5673; }
  .page-section { padding-top: 20px; }
  .page-title { margin-bottom: 17px; }
  .article-grid, .info-grid, .form-columns { grid-template-columns: 1fr; }
  .settings-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .settings-group { padding: 10px 12px 13px; }
  .bulk-seo-filter, .bulk-seo-fields { grid-template-columns: minmax(0, 1fr); }
  .bulk-seo-filter .button { justify-self: start; }
  .editor-surface, .form-stack .editor-frame textarea { min-height: 230px; padding-inline: 9px; }
  .editor-tools { border-inline-end: 0; padding-inline-end: 0; }
  .editor-tools button, .form-stack .editor-tools select { min-height: 37px; padding-inline: 6px; }
  .article-card, .info-card { padding: 17px; }
  .admin-row { padding-inline: 9px; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; font-size: .875rem; }
  .admin-row .state { padding-inline: 5px; }
  .admin-title { align-items: flex-start; }
  .admin-title .button { padding-inline: 9px; white-space: nowrap; }
  .site-footer { margin-top: 24px; }
}
@media (max-width: 360px) {
  .header-contact-icon { display: none; }
}
