:root {
  color-scheme: light;
  --ink: #18212d;
  --muted: #667085;
  --paper: #fff;
  --soft: #f5f7fa;
  --line: #e3e8ee;
  --green: #087853;
  --green-bright: #14a673;
  --blue: #3478f6;
  --amber: #c68114;
  --violet: #7557e8;
  --shadow: 0 18px 50px rgba(25, 42, 64, .09);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #f8fafc; font-size: 16px; line-height: 1.75; }
button, input { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } a { color: inherit; text-decoration: none; } [hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 10px 16px; color: #fff; background: var(--green); }.skip-link:focus { top: 12px; }
body.knowledge-page .portal-header { border-color: rgba(255,255,255,.08); background: rgba(8, 18, 29, .97); }
body.knowledge-page main { width: min(1880px, calc(100% - 40px)); margin: 0 auto; padding-top: 76px; }
.category-section > header span { color: #27d8a0; font: 700 12px Consolas, monospace; letter-spacing: .18em; }
.knowledge-status { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 13px; color: #bed0dd; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.055); font-size: 13px; }
.knowledge-status i { width: 8px; height: 8px; border-radius: 50%; background: #f2a323; box-shadow: 0 0 0 5px rgba(242,163,35,.1); }
.knowledge-status.is-online i { background: var(--green-bright); box-shadow: 0 0 0 5px rgba(20,166,115,.1); }.knowledge-status.is-error i { background: #d92d20; }
.category-section { margin-top: 18px; padding: 24px 28px 27px; overflow: hidden; border: 1px solid rgba(117, 157, 184, .2); border-radius: 24px; background: radial-gradient(circle at 90% 0, rgba(52,120,246,.18), transparent 31%), linear-gradient(145deg, #071522 0%, #0b2130 56%, #0d1825 100%); box-shadow: 0 26px 70px rgba(9, 25, 40, .2); }
.category-section > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 17px; }
.category-section h1 { margin: 5px 0 0; color: #fff; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; letter-spacing: -.035em; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { --tone: #20d49b; --glow: rgba(32,212,155,.23); position: relative; isolation: isolate; display: flex; min-height: 134px; overflow: hidden; flex-direction: column; padding: 13px 16px; color: #f4fbff; text-align: left; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035)); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.category-card::before { position: absolute; z-index: -1; width: 170px; height: 170px; right: -65px; top: -75px; border-radius: 50%; background: var(--glow); filter: blur(2px); content: ""; transition: transform 260ms ease; }
.category-card::after { position: absolute; z-index: -1; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom left, #000, transparent 62%); content: ""; }
.category-card:nth-child(2) { --tone: #6194ff; --glow: rgba(52,120,246,.25); }.category-card:nth-child(3) { --tone: #ffb43c; --glow: rgba(230,145,18,.25); }.category-card:nth-child(4) { --tone: #a98cff; --glow: rgba(117,87,232,.27); }
.category-card:hover, .category-card.is-active { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 65%, white 15%); box-shadow: 0 18px 38px rgba(0,0,0,.24), 0 0 0 1px color-mix(in srgb, var(--tone) 28%, transparent); }
.category-card:hover::before, .category-card.is-active::before { transform: scale(1.22); }
.category-card__top, .category-card__footer { display: flex; align-items: center; justify-content: space-between; }
.category-card__top b { color: var(--tone); font: 800 25px Consolas, monospace; }.category-card__top i { color: rgba(230,242,250,.5); font: normal 700 10px Consolas, monospace; letter-spacing: .18em; }
.category-card__copy { display: block; flex: 1; padding-top: 7px; }.category-card h3 { margin: 0 0 7px; color: #fff; font-size: 20px; line-height: 1.35; }.category-card p { margin: 0; color: #b9cbd8; font-size: 14px; line-height: 1.65; }
.category-card__footer { margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.11); }.category-card small { color: var(--tone); font-size: 13px; }.category-card__footer b { color: #dceaf2; font-size: 12px; font-weight: 600; transition: transform 180ms ease; }.category-card:hover .category-card__footer b { transform: translateX(3px); }
.knowledge-workspace { display: grid; grid-template-columns: var(--directory-width, 300px) 22px minmax(0, 1fr); gap: 0; align-items: start; padding: 26px 0 90px; border-top: 1px solid var(--line); }
.knowledge-splitter { position: relative; align-self: stretch; min-height: 100px; cursor: col-resize; touch-action: none; outline: none; }
.knowledge-splitter::before { position: absolute; top: 12px; bottom: 12px; left: 10px; width: 2px; border-radius: 2px; background: #e0e7e5; content: ""; transition: background 160ms ease; }
.knowledge-splitter::after { position: absolute; top: 48%; left: 7px; width: 8px; height: 38px; border: 2px solid #f8fafc; border-radius: 8px; background: #a6b9b1; content: ""; }
.knowledge-splitter:focus-visible::before, .is-resizing-knowledge .knowledge-splitter::before { background: #14a673; }
.knowledge-splitter:focus-visible::after, .is-resizing-knowledge .knowledge-splitter::after { background: var(--green); }
.knowledge-splitter:focus-visible { border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(8,120,83,.3); }
.is-resizing-knowledge, .is-resizing-knowledge * { cursor: col-resize !important; user-select: none !important; }
.article-sidebar { position: sticky; top: 95px; max-height: calc(100vh - 116px); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.sidebar-heading { display: grid; grid-template-columns: 52px 1fr; gap: 13px; align-items: center; padding: 19px 17px; border-bottom: 1px solid #dce6e2; background: linear-gradient(135deg, #f5fbf8, #eef7f4); }
.sidebar-heading > span { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(145deg, #0a8b62, #14b17b); box-shadow: 0 8px 18px rgba(8,120,83,.2); font: 800 14px Consolas, monospace; }
.sidebar-heading strong, .sidebar-heading small { display: block; }.sidebar-heading strong { color: #17362d; font-size: 18px; line-height: 1.35; }.sidebar-heading small { margin-top: 2px; color: #688078; font-size: 12px; }
.article-search { display: grid; grid-template-columns: 24px 1fr; align-items: center; margin: 13px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }.article-search span { color: #98a2b3; }.article-search input { min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; }
.article-list { max-height: calc(100vh - 275px); overflow-y: auto; padding: 0 9px 13px; scrollbar-width: thin; }
.article-list button { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; width: 100%; min-height: 78px; align-items: center; margin: 4px 0; padding: 10px 9px; color: #3e4d5c; text-align: left; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.article-list button:hover { color: #17362d; border-color: #dceae4; background: #f6faf8; transform: translateX(2px); }.article-list button.is-active { color: #075e43; border-color: rgba(8,120,83,.2); background: linear-gradient(90deg, rgba(20,166,115,.13), rgba(20,166,115,.045)); box-shadow: inset 3px 0 0 var(--green); }
.article-list__number { display: grid; width: 34px; height: 34px; place-items: center; color: #718096; border: 1px solid #dce3e8; border-radius: 10px; background: #fff; font: 800 12px Consolas, monospace; }.article-list button.is-active .article-list__number { color: #fff; border-color: transparent; background: var(--green); box-shadow: 0 5px 12px rgba(8,120,83,.2); }
.article-list__copy { min-width: 0; }.article-list strong { display: block; color: inherit; font-size: 15px; line-height: 1.4; }.article-list small { display: -webkit-box; overflow: hidden; margin-top: 3px; color: #778596; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
@media (max-width: 760px) { .knowledge-splitter { display: none; }.knowledge-workspace { row-gap: 22px; } }
.article-view { min-width: 0; min-height: 680px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 14px 42px rgba(25,42,64,.055); }
.article-placeholder { display: grid; min-height: 680px; place-items: center; align-content: center; color: var(--muted); text-align: center; }.article-placeholder i { width: 50px; height: 50px; border: 2px solid #d7e6df; border-top-color: var(--green-bright); border-radius: 50%; animation: spin .85s linear infinite; }.article-placeholder h2 { margin: 18px 0 2px; color: var(--ink); }.article-placeholder p { margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.article-header { padding: 38px clamp(24px, 5vw, 56px) 32px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fbfefd, #f5faf8); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }.article-meta span { padding: 4px 9px; color: #667085; border: 1px solid #dfe6e2; border-radius: 999px; background: #fff; font-size: 12px; }.article-meta span:first-child { color: var(--green); border-color: rgba(8,120,83,.25); }
.article-header h1 { margin: 0; font-size: clamp(28px, 4vw, 43px); line-height: 1.3; letter-spacing: -.03em; }.article-header > p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }.article-prerequisite { margin-top: 16px !important; padding-top: 14px; border-top: 1px dashed #dce5e1; font-size: 14px !important; }
.article-content { padding: 12px clamp(24px, 5vw, 56px) 55px; }.article-section { padding: 29px 0 5px; scroll-margin-top: 98px; }.article-section + .article-section { border-top: 1px solid #edf0f3; }.article-section > h2 { margin: 0 0 18px; font-size: 23px; line-height: 1.4; }
.content-block { margin: 16px 0; color: #344054; }.content-block p { margin: 0; white-space: pre-wrap; }.content-block h3 { margin: 26px 0 8px; color: var(--ink); font-size: 18px; }.content-block ul, .content-block ol { margin: 0; padding-left: 24px; }.content-block li { margin: 7px 0; }
.content-note { padding: 15px 17px; border-left: 4px solid var(--green-bright); border-radius: 4px 10px 10px 4px; background: rgba(20,166,115,.065); }.content-note strong { display: block; margin-bottom: 3px; color: var(--green); }
.content-code { position: relative; overflow: hidden; border-radius: 11px; background: #10231d; }.content-code > span { display: block; padding: 9px 16px; color: #85b7a4; border-bottom: 1px solid #284239; font: 12px Consolas, monospace; }.content-code pre { overflow-x: auto; margin: 0; padding: 18px; color: #dcebe5; font: 15px/1.75 Consolas, "Cascadia Code", monospace; tab-size: 4; }.content-code__source { font: inherit; white-space: pre; }.code-token--comment { color: #83958e; font-style: italic; }.code-token--preprocessor { color: #c7a0df; }.code-token--keyword { color: #7dcff0; font-weight: 650; }.code-token--type { color: #f0c66f; }.code-token--string { color: #a9dc76; }.code-token--number { color: #f29d72; }.code-token--literal { color: #ef92b2; font-weight: 650; }.code-token--function { color: #83dbc0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; }.table-wrap th, .table-wrap td { padding: 11px 13px; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }.table-wrap th { background: #f5f7fa; }.table-wrap tr:last-child td { border-bottom: 0; }.table-wrap th:last-child, .table-wrap td:last-child { border-right: 0; }
.content-image { margin: 22px 0; text-align: center; }.content-image img { max-width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.content-image figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; }
.article-tips { margin: 28px 0 0; padding: 20px; border-radius: 11px; background: #f6f8fb; }.article-tips h2 { margin: 0 0 10px; font-size: 18px; }.article-tips ul { margin: 0; padding-left: 22px; }.article-tips li { margin: 6px 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; padding-top: 21px; border-top: 1px solid var(--line); }.article-tags span { padding: 5px 9px; color: #475467; border-radius: 999px; background: var(--soft); font-size: 12px; }
.knowledge-footer { display: flex; width: min(1880px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 30px; margin: 0 auto; padding: 35px 0 42px; color: #667085; border-top: 1px solid var(--line); font-size: 13px; }.knowledge-footer > div { display: flex; flex-direction: column; }.knowledge-footer strong { color: #344054; }.knowledge-footer p { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; margin: 0; }.knowledge-footer a:hover { color: var(--green); }
.knowledge-toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: min(420px, calc(100% - 48px)); padding: 13px 17px; color: #fff; border-radius: 9px; background: #17202c; box-shadow: 0 15px 45px rgba(16,24,40,.25); }
@media (max-width: 980px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { body.knowledge-page main { width: calc(100% - 28px); padding-top: 66px; }.category-section { margin-top: 14px; padding: 20px 16px 21px; }.category-section > header { align-items: flex-start; flex-direction: column; gap: 11px; }.knowledge-workspace { grid-template-columns: 1fr; }.article-sidebar { position: static; max-height: none; }.article-list { display: flex; max-height: none; overflow-x: auto; padding-bottom: 14px; }.article-list button { min-width: 245px; }.article-view { min-height: 500px; }.article-placeholder { min-height: 500px; }.knowledge-footer { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; }.knowledge-footer p { justify-content: flex-start; } }
@media (max-width: 520px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.category-card { min-height: 124px; }.article-header, .article-content { padding-right: 19px; padding-left: 19px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.knowledge-search-bar { display:flex; align-items:center; gap:16px; margin:20px 0 0; padding:12px 16px; border:1px solid #b9d9d1; border-radius:14px; background:linear-gradient(110deg,#e7f4ee,#f0f5fa); box-shadow:0 4px 14px rgba(29,74,65,.06); }
.knowledge-search-bar .article-search { flex:1; max-width:none; margin:0; grid-template-columns:30px 1fr; padding:0 13px; border-color:#b8d2c9; border-radius:10px; background:rgba(255,255,255,.85); }
.knowledge-search-bar .article-search svg { display:block; width:20px; height:20px; color:#087853; }
.knowledge-search-bar .article-search input { height:44px; font:inherit; font-size:15px; color:#214c42; }
.knowledge-search-bar .article-search input::placeholder { color:#6a817b; }
.knowledge-search-bar > span { flex:none; padding:5px 9px; border-radius:7px; color:#347864; background:rgba(8,120,83,.06); font-size:12px; font-weight:600; }
.article-search:focus-within { border-color:var(--green); box-shadow:0 0 0 3px rgba(8,120,83,.1); }
.article-list__category { display:inline-block; margin-top:5px; padding:1px 6px; color:#087853; border-radius:5px; background:#e9f5ef; font-size:11px; font-style:normal; }
.article-view { user-select:none; -webkit-user-select:none; }
.content-code__source, .content-code__source * { user-select:text; -webkit-user-select:text; }
.content-code__toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 15px; border-bottom:1px solid #344054; color:#b8c7d6; font:12px Consolas,monospace; }
.content-code__copy { min-height:36px; padding:4px 12px; border:1px solid #637084; border-radius:7px; background:#253448; color:#fff; cursor:pointer; font:13px inherit; }
.content-code__copy:hover { background:#364b65; }
.content-code__copy:focus-visible { outline:2px solid #7de1ba; outline-offset:3px; }
@media(max-width:520px) { .knowledge-search-bar { flex-direction:column; align-items:stretch; gap:5px; }.category-card__top i { display:none; }.category-card p { font-size:12px; }.category-card h3 { font-size:17px; }.category-section h1 { font-size:26px; } }
