:root {
  color-scheme: light;
  --ink: #182729;
  --muted: #536467;
  --quiet: #617275;
  --teal: #126861;
  --teal-dark: #144c48;
  --line: #e0e8e7;
  --paper: #fff;
  --surface: #f8faf9;
  --nav: #f5f8f7;
  --sidebar-width: 242px;
  --bar: 66px;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #258d7f; outline-offset: 3px; }
main:focus, .article h2:focus { outline: none; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 10px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 0 16px; border-right: 1px solid var(--line); background: var(--nav); z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 84px; padding: 8px 7px; border-bottom: 1px solid var(--line); }
.brand img { flex: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: var(--quiet); font-size: 11px; letter-spacing: .08em; }
.sidebar-body { padding-top: 21px; flex: 1; overflow: auto; scrollbar-width: thin; }
.sidebar-label { margin: 0 0 10px 12px; font-size: 11px; font-weight: 700; color: var(--quiet); letter-spacing: .12em; }
#nav { display: grid; gap: 4px; padding-bottom: 15px; }
.nav-row { display: flex; align-items: center; border-radius: 7px; }
.nav-row .nav-link { flex: 1; min-width: 0; }
.nav-row .nav-link[aria-current] { background: transparent; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 11px; min-height: 43px; border-radius: 7px; color: #425457; font-size: 13px; font-weight: 600; }
.nav-link svg { width: 17px; height: 17px; color: #506e70; }
.nav-link:hover, .nav-row:hover, .nav-toggle:hover { background: #eaf1ef; color: var(--teal-dark); }
.nav-link[aria-current], .nav-row.active-group { background: #e1eeea; color: #14564f; }
.nav-link[aria-current] svg, .active-group svg { color: var(--teal); }
.nav-operations > svg:last-child { width: 13px; height: 13px; margin-left: auto; }
.nav-toggle { display: grid; place-items: center; margin-right: 4px; width: 31px; height: 31px; background: transparent; border: 0; border-radius: 5px; color: var(--quiet); }
.nav-toggle svg { width: 13px; height: 13px; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-children { display: grid; gap: 2px; margin: 5px 0 5px 20px; padding-left: 10px; border-left: 1px solid #d4e1de; }
.nav-children a { display: block; padding: 7px 6px; font-size: 12px; line-height: 1.5; color: var(--muted); border-radius: 4px; }
.nav-children a:hover, .nav-children a[aria-current] { color: var(--teal-dark); background: #e8f1ee; }
.nav-children a[aria-current] { font-weight: 700; }
.sidebar-footer { margin-top: auto; padding: 11px 0 15px; border-top: 1px solid var(--line); }
.sidebar-footer .nav-link { min-height: 35px; padding-block: 8px; font-size: 12px; }
.sidebar-footer svg { opacity: .88; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { position: sticky; top: 0; height: var(--bar); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 clamp(19px, 3vw, 44px); background: #fdfefedb; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-leading { display: flex; align-items: center; min-width: 0; gap: 8px; }
.breadcrumbs { display: flex; align-items: center; min-width: 0; gap: 9px; font-size: 13px; white-space: nowrap; color: var(--quiet); }
.breadcrumbs a { flex-shrink: 0; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs svg { width: 13px; height: 13px; color: #81918e; }
.breadcrumbs span { min-width: 0; color: #263638; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.search-button { display: flex; align-items: center; gap: 8px; flex-shrink: 0; width: 210px; height: 36px; padding: 0 9px 0 12px; border: 1px solid #dce6e3; border-radius: 7px; color: var(--muted); background: #f6f9f8; font-size: 12px; text-align: left; }
.search-button:hover { background: #eef5f1; border-color: #c5d9d2; }
.search-symbol { display: inline-flex; color: #506971; }
.search-symbol svg { width: 17px; height: 17px; }
kbd { display: inline-block; padding: 2px 5px; border: 1px solid #dce6e3; border-radius: 4px; background: var(--paper); color: #556963; font: 10px/1.3 var(--key-font, monospace); white-space: nowrap; }
.search-button kbd { margin-left: auto; font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); flex: none; }
.menu-button { display: none; }

.page { max-width: 1220px; margin: 0 auto; padding: 31px clamp(22px, 3vw, 44px) 26px; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 306px; display: flex; align-items: center; padding: 37px 39px; border: 1px solid #233d45; border-radius: 14px; color: #fff; background: #0d2028; }
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: center 53% / cover no-repeat url('assets/studio.webp'); }
.hero::after { background: linear-gradient(90deg, #0a1821 0%, #0b1b24ed 30%, #0d26327a 65%, #08182016 100%); }
.hero-copy { max-width: 525px; }
.hero-org { color: #c3ede5; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.hero-org i { display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; background: #65dabf; border-radius: 50%; box-shadow: 0 0 11px #65dabf95; }
.hero h1 { margin: 10px 0 12px; font-size: clamp(35px, 4.2vw, 56px); line-height: 1.19; letter-spacing: -.045em; }
.hero p { max-width: 30em; margin: 0; color: #dae7e8; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.action { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 41px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; transition: background-color .15s; }
.action svg { width: 16px; height: 16px; }
.action-primary { color: #123b36; background: #adedda; }
.action-primary:hover { background: #d1f8e8; }
.action-secondary { color: #edf7f5; border-color: #90afaf80; background: #101f2d80; }
.action-secondary:hover { background: #263b48; }
.action-solid { color: white; background: var(--teal); margin-top: 10px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(215px, 1fr); column-gap: 25px; row-gap: 27px; margin-top: 29px; }
.section-title { margin: 0 0 13px; font-size: 20px; letter-spacing: -.025em; line-height: 1.35; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.category-card { position: relative; display: grid; justify-items: start; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s, background-color .15s, transform .15s; }
.category-card:hover { border-color: #9bc7bd; background: #fbfefd; transform: translateY(-2px); }
.category-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; }
.theme-nas { color: #15665e; background: #e3f3ed; }
.theme-rules { color: #305e97; background: #eaf0fa; }
.theme-equipment { color: #89551e; background: #f8f0e2; }
.theme-network { color: #615294; background: #efedf8; }
.theme-ops { color: #9a3b52; background: #fbeaee; }
.category-card strong { margin-top: 9px; font-size: 16px; line-height: 1.4; }
.category-summary { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.doc-count { margin-top: 9px; color: var(--quiet); font-size: 11px; }
.card-arrow { position: absolute; top: 17px; right: 14px; color: #6e8987; }
.card-arrow svg { width: 16px; }
.quick-list { display: grid; padding: 4px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.quick-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; min-height: 55px; margin: 0 12px; padding: 7px 3px; font-size: 13px; font-weight: 600; }
.quick-list a + a { border-top: 1px solid var(--line); }
.quick-list a:hover { color: var(--teal); }
.quick-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: #426f6c; background: #eff5f3; }
.quick-list svg { width: 15px; height: 15px; }
.quick-list a > svg { color: #688482; }
.notice { display: flex; align-items: flex-start; gap: 11px; padding: 15px 16px; border-radius: 8px; border: 1px solid #dcebe4; background: #edf6f2; color: #284c45; }
.notice > svg { margin-top: 2px; color: #327569; width: 17px; height: 17px; }
.notice strong { display: inline-block; font-size: 13px; }
.notice p { margin: 4px 0 0; color: #42655c; font-size: 12px; line-height: 1.65; }
.notice a { margin: auto 0 auto auto; display: flex; gap: 6px; align-items: center; flex: none; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.notice a:hover { text-decoration: underline; }
.notice a svg { width: 14px; height: 14px; }
.home-notice { margin-top: 22px; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; }
.page-footer a:hover { color: var(--teal); }
.page-footer svg { width: 13px; height: 13px; }

.index-page, .article-page { padding-top: 44px; padding-bottom: 55px; }
.index-page { max-width: 995px; }
.heading-icon { width: 43px; height: 43px; margin-bottom: 14px; }
.index-page h1, .article h1 { margin: 0; font-size: clamp(30px, 3.6vw, 43px); line-height: 1.27; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-description { margin: 11px 0 22px; max-width: 60ch; color: var(--muted); font-size: 15px; line-height: 1.75; }
.document-list { display: grid; gap: 10px; }
.document-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 15px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.document-card:hover { border-color: #a5c9c0; }
.document-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; color: #44776f; background: #eff6f4; }
.document-icon svg, .document-card > svg { width: 17px; height: 17px; color: #507f77; }
.document-card h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.document-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #ebe1ca; border-radius: 5px; background: #faf4e7; color: #735221; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 5px; height: 5px; background: #9d7133; border-radius: 50%; }
.article-grid { display: grid; grid-template-columns: minmax(0, 812px) minmax(145px, 180px); justify-content: space-between; gap: 38px; }
.article-category { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 13px; color: var(--teal); font-size: 13px; font-weight: 700; }
.article-category svg { width: 16px; height: 16px; }
.article-category:hover { text-decoration: underline; }
.article-status { display: flex; margin-bottom: 22px; }
.article-content { border-top: 1px solid var(--line); overflow-wrap: anywhere; color: #304345; font-size: 15px; line-height: 1.84; }
.article-content section { padding-top: 24px; scroll-margin-top: calc(var(--bar) + 9px); }
.article-content section + section { padding-top: 25px; margin-top: 13px; border-top: 1px solid var(--line); }
.article-content h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.45; }
.article-content h3 { margin: 17px 0 8px; color: var(--ink); font-size: 16px; }
.article-content p { margin: 0 0 10px; }
.article-content ul, .article-content ol { padding-inline-start: 1.6em; margin: 9px 0 14px; }
.article-content li + li { margin-top: 6px; }
.article-content li::marker { color: #36796e; }
.article-content a { color: var(--teal); text-decoration: underline; text-decoration-color: #90b8b0; text-underline-offset: 3px; }
.article-content a:hover { color: #164744; }
.article-content code { padding: 2px 4px; border: 1px solid #e0ebe6; border-radius: 4px; color: #245751; background: #eff6f3; font-size: .88em; }
.article-content pre { padding: 13px; white-space: pre-wrap; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #eff6f3; }
.article-content pre code { padding: 0; border: 0; }
.article-content blockquote { margin: 13px 0; padding: 11px 15px; border-left: 3px solid #7aad9e; background: #f0f7f4; }
.article-content blockquote p:last-child { margin: 0; }
.table-wrap { max-width: 100%; overflow: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.article-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.article-content caption { padding: 9px 11px; font-weight: 700; }
.article-content th, .article-content td { min-width: 6ch; padding: 8px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-content th { background: #eef5f2; }
.article-content tr:last-child td { border-bottom: 0; }
.toc { align-self: start; position: sticky; top: calc(var(--bar) + 30px); margin-top: 5px; }
.toc h2 { display: flex; align-items: center; gap: 6px; padding: 0 0 8px; margin: 0; font-size: 13px; }
.toc h2 svg { width: 15px; height: 15px; color: #4f736f; }
.toc a, .mobile-toc a { display: block; padding: 6px 0 6px 10px; border-left: 1px solid #dce5e1; color: var(--muted); font-size: 12px; line-height: 1.55; }
.toc a:hover, .toc a.selected, .mobile-toc a:hover, .mobile-toc a.selected { color: var(--teal); border-color: var(--teal); }
.mobile-toc { display: none; }
.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 29px; }
.adjacent a { border: 1px solid var(--line); border-radius: 8px; padding: 11px; background: var(--paper); }
.adjacent a:hover { border-color: #a5c9c0; }
.adjacent a span { display: flex; align-items: center; gap: 5px; color: var(--teal); font-size: 11px; }
.adjacent a svg { width: 14px; height: 14px; }
.adjacent a strong { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; }

.topology { margin: 14px 0 5px; overflow: hidden; border: 1px solid #d6e5df; border-radius: 10px; background: var(--paper); }
.topology figcaption { display: flex; gap: 7px; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.topology figcaption span { font-size: 11px; font-weight: 400; color: var(--muted); }
.topology-chart { padding: 15px 3% 17px; color: #245450; background-color: #f8fbfa; background-image: radial-gradient(#d6e4df 1px, transparent 1px); background-size: 14px 14px; }
.topology-trunk, .topology-branch { display: flex; align-items: center; flex-direction: column; }
.topology-node { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; width: min(146px, 99%); min-height: 35px; padding: 6px; border: 1px solid #b5d0c8; border-radius: 7px; color: #30524e; background: var(--paper); font-size: 12px; line-height: 1.4; }
.topology-node svg { width: 16px; height: 16px; color: var(--teal); }
.topology-node:hover, .topology-node[aria-pressed="true"] { border-color: #529789; color: var(--teal-dark); background: #e5f3ed; }
.topology-chart i { height: 13px; width: 1px; background: #81ab9f; }
.topology-branches { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topology-branches::before { content: ''; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); border-top: 1px solid #81ab9f; }
.topology-branch::before { content: ''; height: 13px; width: 1px; background: #81ab9f; }
.node-details { padding: 11px 14px; min-height: 78px; background: #eef6f2; border-top: 1px solid var(--line); font-size: 13px; }
.node-details p { margin: 2px 0 0; color: #3b5b55; }

.search-dialog { width: min(610px, calc(100% - 24px)); max-height: min(70vh, 585px); margin: min(15vh, 112px) auto auto; padding: 0; border: 1px solid #cdded7; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 15px 60px #0e30294d; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: #182e36a0; backdrop-filter: blur(2px); }
.search-field { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-field input { width: 100%; min-width: 0; height: 35px; background: transparent; border: none; color: var(--ink); font-size: 15px; outline: none; }
.close-search { border: 1px solid var(--line); border-radius: 5px; background: var(--nav); color: var(--muted); padding: 4px 5px; font-size: 11px; }
.search-results { overflow: auto; min-height: 100px; padding: 11px; }
.search-group-label { margin: 2px 7px 6px; color: var(--quiet); font-size: 11px; }
.search-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border-radius: 7px; }
.search-result:hover, .search-result.chosen { background: #edf5f2; }
.search-result-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 6px; }
.search-result svg { width: 16px; height: 16px; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 13px; }
.search-result small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.search-empty { padding: 17px 9px; text-align: center; }
.search-empty p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.search-help { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 9px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.search-help kbd { margin-right: 3px; }

@media (max-width: 1050px) {
  :root { --sidebar-width: 214px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .mobile-toc { display: block; margin-bottom: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
  .mobile-toc summary { cursor: pointer; font-size: 13px; font-weight: 700; }
  .mobile-toc a:first-of-type { margin-top: 8px; }
}

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .quick-list { grid-template-columns: 1fr 1fr; }
  .quick-list a + a { border: 0; }
  .quick-list a:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  :root { --bar: 58px; }
  .sidebar { width: min(260px, 84vw); transform: translateX(-100%); transition: transform .16s ease; }
  .menu-open .sidebar { transform: none; }
  .menu-open { overflow: hidden; }
  .scrim { position: fixed; inset: 0; width: 100%; background: #172d3777; border: 0; z-index: 4; }
  .workspace { margin: 0; }
  .menu-button { display: grid; }
  .topbar { padding-inline: 14px; }
}

@media (max-width: 510px) {
  .search-button { width: auto; gap: 5px; padding: 0 7px; }
  .search-button kbd { display: none; }
  .breadcrumbs { gap: 4px; }
  .breadcrumbs a { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumbs span { flex-shrink: 2; }
  .page { padding: 19px 14px 25px; }
  .hero { min-height: 255px; padding: 24px 18px; border-radius: 11px; }
  .hero::before { background-position: 60% center; }
  .hero::after { background: linear-gradient(90deg, #0a1821 0%, #0b1b24dd 45%, #0d263275 100%); }
  .hero-org { font-size: 11px; letter-spacing: 0; }
  .hero h1 { margin-block: 8px 9px; }
  .hero p { font-size: 13px; }
  .hero-actions { margin-top: 19px; }
  .home-grid { margin-top: 22px; }
  .category-card { padding: 11px 10px; }
  .category-grid { gap: 8px; }
  .category-card strong { font-size: 15px; }
  .quick-list { grid-template-columns: 1fr; }
  .quick-list a + a { border-top: 1px solid var(--line); }
  .notice { flex-wrap: wrap; }
  .notice div { flex: 1; }
  .notice a { padding-left: 28px; width: 100%; }
  .index-page, .article-page { padding-top: 26px; }
  .document-card { gap: 7px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px; }
  .document-card > svg { display: none; }
  .document-card h2 { font-size: 14px; }
  .document-card .status { padding-inline: 4px; font-size: 10px; }
  .document-icon { width: 24px; height: 27px; }
  .article-content { font-size: 14px; }
  .topology-node { flex-direction: column; gap: 3px; }
  .topology-trunk .topology-node { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
