:root {
    --bg: #e7e8ea;
    --surface: rgba(245, 245, 246, 0.78);
    --surface-strong: #f5f5f6;
    --text: #181a1f;
    --muted: #656972;
    --subtle: #8d9199;
    --line: rgba(24, 26, 31, 0.12);
    --brand: #181a1f;
    --brand-dark: #181a1f;
    --cyan: #c1c4ca;
    --pink: #b5b8be;
    --glass-border: rgba(255, 255, 255, 0.58);
    --glass-blur: 18px;
    --shadow: 0 14px 32px rgba(24, 26, 31, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(circle, #c1c4ca 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(245, 245, 246, 0.34), rgba(231, 232, 234, 0.06));
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
button, input { font: inherit; }
.site-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 16px 24px;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 8px 0;
    z-index: -1;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}
.site-header.is-scrolled::before {
    border-color: var(--glass-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(233, 236, 241, 0.2));
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
}
.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.brand-logo {
    display: block;
    width: auto;
    height: 25px;
    object-fit: contain;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-nav a {
    position: relative;
    padding: 10px 8px;
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    opacity: 0;
    transition: left 0.18s ease, right 0.18s ease, opacity 0.18s ease;
}
.site-nav a:hover::after,
.site-nav .nav-pill::after {
    left: 8px;
    right: 8px;
    opacity: 1;
}
.nav-toggle { display: none; }
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
main {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px 88px;
    flex: 1;
}
.site-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(162, 169, 177, 0.9);
    background: rgba(248, 249, 250, 0.82);
}
.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    color: var(--muted);
}
.footer-brand {
    display: grid;
    gap: 6px;
    min-width: 240px;
}
.footer-brand strong {
    color: var(--text);
    font-size: 17px;
    font-weight: 850;
}
.footer-brand sup {
    margin-left: 1px;
    font-size: 10px;
}
.footer-brand span,
.footer-legal span,
.footer-legal a {
    font-size: 13px;
    line-height: 1.7;
}
.footer-columns {
    display: grid;
    justify-items: end;
    gap: 8px;
}
.footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    font-weight: 700;
}
.footer-nav a {
    color: var(--text);
}
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--muted);
}
.footer-legal a {
    color: var(--muted);
}
.footer-icp {
    max-width: 1220px;
    margin: -10px auto 0;
    padding: 0 24px 18px;
    color: var(--muted);
    font-size: 13px;
}
.footer-icp a {
    color: var(--muted);
}
.admin-terminal { max-height: 260px; overflow: auto; margin-top: 12px; border: 1px solid #30343b; border-radius: 8px; background: #111318; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.admin-terminal pre { min-height: 180px; margin: 0; padding: 16px; overflow: visible; color: #b8f7c1; font: 12px/1.65 Consolas, "Cascadia Mono", monospace; white-space: pre-wrap; }
.admin-pool-log { margin-top: 12px; }
.admin-pool-log pre { max-height: 220px; overflow: auto; }
.admin-pool-panel,
.admin-queue-panel { min-width: 0; }
.admin-scroll-panel { max-height: 360px; overflow-y: auto; overflow-x: hidden; padding-right: 8px; }
.admin-scroll-panel::-webkit-scrollbar { width: 8px; }
.admin-scroll-panel::-webkit-scrollbar-thumb { border-radius: 999px; background: #a2a9b1; }
.admin-scroll-panel::-webkit-scrollbar-track { background: rgba(162, 169, 177, .2); }
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - 74px);
    padding: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: min(760px, 100%);
    transform: translateY(-5vh);
}
.eyebrow {
    margin: 0 0 13px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: #111827; }
.hero-section h1 {
    margin: 0 0 72px;
    font-size: clamp(44px, 8vw, 92px);
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
}
.search-panel {
    position: relative;
    display: block;
    width: min(680px, 100%);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}
.search-panel input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border: 1px solid var(--glass-border);
    outline: 0;
    padding: 0 100px 0 24px;
    border-radius: 999px;
    color: var(--text);
    font-size: 17px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(233, 236, 241, 0.2));
    box-shadow: none;
    backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-panel input:focus {
    border-color: rgba(24, 26, 31, 0.5);
    box-shadow: 0 0 0 3px rgba(24, 26, 31, 0.12);
}
.search-buttons {
    position: absolute;
    top: 7px;
    right: 7px;
    bottom: 7px;
    display: flex;
    gap: 8px;
}
.search-panel button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.3s ease;
}
.search-panel button,
.button.primary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}
.search-panel button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.wiki-portal-card {
    position: relative;
    margin: 0 0 56px;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid #a2a9b1;
    border-radius: 10px;
    background: rgba(248, 249, 250, 0.92);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}
.portal-masthead,
.portal-category-list,
.portal-watermark {
    position: relative;
    z-index: 1;
}
.portal-masthead {
    display: grid;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid #a2a9b1;
}
.portal-masthead strong {
    color: #202122;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.portal-subhead {
    margin-top: 18px;
}
.portal-category-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 18px;
    border-top: 1px solid #a2a9b1;
    border-left: 1px solid #a2a9b1;
}
.portal-category-list a {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 104px;
    padding: 16px 14px;
    border-right: 1px solid #a2a9b1;
    border-bottom: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
    transition: background 0.18s ease, color 0.18s ease;
}
.portal-category-list a:hover {
    color: #3366cc;
    background: rgba(255, 255, 255, 0.86);
}
.portal-category-list strong {
    color: #0645ad;
    font-size: 19px;
    font-weight: 800;
}
.portal-category-list span {
    color: #54595d;
    font-size: 13px;
    font-weight: 700;
}
.portal-category-list em {
    color: #54595d;
    font-size: 12px;
    font-style: normal;
    line-height: 1.55;
}
.popular-category-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.portal-document {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin-top: 18px;
    color: #202122;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    line-height: 1.9;
}
.portal-document h3 {
    margin: 0 0 10px;
    color: #202122;
    font-size: 24px;
    font-weight: 700;
}
.portal-document h4 {
    margin: 18px 0 8px;
    color: #202122;
    font-size: 18px;
    font-weight: 700;
}
.portal-document p {
    margin: 0;
}
.portal-document br {
    display: block;
    content: "";
    margin-top: 4px;
}
.portal-document ul {
    margin: 0;
    padding-left: 1.35em;
}
.portal-document li {
    margin: 4px 0;
}
.portal-watermark {
    margin-top: -22px;
    color: rgba(51, 102, 204, 0.12);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5.8vw, 78px);
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
    pointer-events: none;
}
.category-page {
    margin: 92px 0 56px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #a2a9b1;
    border-radius: 10px;
    background: rgba(248, 249, 250, 0.92);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}
.category-page-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #a2a9b1;
}
.category-page-head a {
    color: #0645ad;
    font-size: 14px;
    font-weight: 800;
}
.category-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #a2a9b1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #0645ad;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}
.category-page-head h1 {
    margin: 18px 0 14px;
    color: #202122;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.category-page-head p {
    max-width: 880px;
    margin: 5px 0;
    color: #54595d;
    line-height: 1.75;
}
.category-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    border-top: 1px solid #a2a9b1;
    border-left: 1px solid #a2a9b1;
}
.category-page-card {
    padding: 18px;
    border-right: 1px solid #a2a9b1;
    border-bottom: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
}
.category-page-card h2 {
    margin: 0 0 3px;
    color: #0645ad;
    font-size: 22px;
    line-height: 1.25;
}
.category-page-card > span {
    display: block;
    margin-bottom: 14px;
    color: #54595d;
    font-size: 13px;
    font-weight: 800;
}
.category-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.44);
}
.category-sort span {
    margin-right: 4px;
    color: #54595d;
    font-size: 13px;
    font-weight: 800;
}
.category-sort button {
    border: 1px solid #a2a9b1;
    border-radius: 999px;
    padding: 7px 13px;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}
.category-sort button.is-active {
    color: #fff;
    border-color: #0645ad;
    background: #0645ad;
}
.category-page-count {
    margin-top: 12px;
    color: #54595d;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}
.category-article-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}
.category-article-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 18px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.52);
    transition: background 0.18s, border-color 0.18s;
}
.category-article-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #0645ad;
}
.article-item-zh {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #181a1f;
}
.article-item-en {
    color: #54595d;
    font-size: 14px;
    font-weight: 600;
}
.article-item-ja {
    color: #72777d;
    font-size: 13px;
    font-weight: 500;
}
.category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px 0;
}
.category-pagination a,
.category-pagination .pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #a2a9b1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.15s, color 0.15s;
}
.category-pagination a:hover {
    background: #0645ad;
    color: #fff;
    border-color: #0645ad;
}
.category-pagination .pagination-current {
    background: #0645ad;
    color: #fff;
    border-color: #0645ad;
}
.subcategory-list {
    display: grid;
    margin-top: 18px;
    border-top: 1px solid #a2a9b1;
    border-left: 1px solid #a2a9b1;
}
.subcategory-entry {
    display: grid;
    gap: 4px;
    padding: 17px 18px;
    border-right: 1px solid #a2a9b1;
    border-bottom: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
}
.subcategory-entry:hover {
    background: rgba(255, 255, 255, 0.86);
}
.subcategory-entry strong {
    color: #0645ad;
    font-size: 20px;
    line-height: 1.25;
}
.subcategory-entry span {
    color: #54595d;
    font-size: 13px;
    font-weight: 800;
}
.friend-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.friend-link-card { display: grid; gap: 8px; min-height: 120px; align-content: center; padding: 20px; border: 1px solid #a2a9b1; border-radius: 12px; background: rgba(255,255,255,.58); }
.friend-link-card:hover { background: rgba(255,255,255,.86); }
.friend-link-card img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.friend-link-card strong { color: #0645ad; font-size: 18px; }
.friend-link-card span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-links-panel { margin-top: 24px; padding: 20px; border: 1px solid #a2a9b1; background: rgba(255,255,255,.58); }
.admin-links-panel h2 { margin-bottom: 16px; }
.admin-link-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.article-title-list {
    grid-template-columns: 1fr;
}
.article-title-entry {
    position: relative;
}
.article-title-entry::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 18px;
    color: #a2a9b1;
    font-size: 20px;
    font-weight: 900;
    transform: translateY(-50%);
}
.language-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 26, 31, 0.28);
    backdrop-filter: blur(5px);
}
.language-dialog.is-open {
    display: flex;
}
.language-dialog-panel {
    position: relative;
    width: min(460px, 100%);
    padding: 28px;
    border: 1px solid #a2a9b1;
    border-radius: 10px;
    background: rgba(248, 249, 250, 0.96);
    box-shadow: 0 18px 48px rgba(24, 26, 31, 0.18), inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}
.language-dialog-panel h2 {
    margin: 0 34px 12px 0;
    color: #202122;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: 28px;
    line-height: 1.2;
}
.language-dialog-panel p {
    margin: 5px 0;
    color: #54595d;
    line-height: 1.6;
}
.language-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #a2a9b1;
    border-radius: 50%;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}
.language-dialog-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.language-dialog-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid #a2a9b1;
    border-radius: 999px;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 900;
}
.language-dialog-actions a:hover {
    color: #fff;
    border-color: #0645ad;
    background: #0645ad;
}
.article-page {
    position: relative;
    margin: 92px 0 56px;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid #a2a9b1;
    border-radius: 10px;
    background: rgba(248, 249, 250, 0.92);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}
.article-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #a2a9b1;
}
.article-head .eyebrow {
    margin-top: 16px;
}
.article-head h1 {
    margin: 0 0 14px;
    color: #202122;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.article-head p {
    max-width: 880px;
    margin: 5px 0;
    color: #54595d;
    line-height: 1.75;
}
.article-subtitle {
    color: #202122;
    font-size: 18px;
    font-weight: 800;
}
.article-language-switch {
    position: absolute;
    top: clamp(24px, 4vw, 42px);
    right: clamp(24px, 4vw, 42px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}
.article-language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #a2a9b1;
    border-radius: 999px;
    padding: 0 14px;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 900;
}
.article-language-switch a.is-active {
    color: #fff;
    border-color: #0645ad;
    background: #0645ad;
}
.article-language-switch button {
    min-height: 36px;
    border: 1px solid #a2a9b1;
    border-radius: 999px;
    padding: 0 14px;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.disambiguation-dialog { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 24px; background: rgba(24, 26, 31, 0.35); }
.disambiguation-dialog.is-open { display: grid; }
.disambiguation-dialog-panel { position: relative; width: min(560px, 100%); max-height: min(680px, 90vh); overflow: auto; padding: 28px; border: 1px solid #a2a9b1; border-radius: 18px; background: #f5f5f6; box-shadow: var(--shadow); }
.disambiguation-dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.disambiguation-dialog-panel ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.disambiguation-dialog-panel li a { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.disambiguation-dialog-panel li span { color: var(--muted); font-size: 13px; }
.article-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    margin-top: 22px;
}
.article-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
}
.article-infobox {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 16px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
}
.article-infobox strong {
    color: #202122;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: 24px;
}
.article-infobox span {
    color: #54595d;
    font-size: 13px;
    font-weight: 800;
}
.article-infobox dl {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
}
.article-infobox dt {
    color: #202122;
    font-size: 13px;
    font-weight: 900;
}
.article-infobox dd {
    margin: 0 0 6px;
    color: #54595d;
    font-size: 13px;
    line-height: 1.6;
}
.article-body {
    color: #202122;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    line-height: 1.85;
}
.article-toc {
    display: grid;
    gap: 0;
    padding: 16px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
    font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.article-toc strong,
.article-toc a,
.article-toc li {
    font-size: 13px;
}
.article-toc strong {
    margin-bottom: 12px;
    color: #202122;
    font-weight: 900;
}
.article-toc ol {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-toc ol ol {
    margin: 2px 0 6px 14px;
}
.article-toc a {
    display: block;
    padding: 0 0 0 12px;
    border-left: 3px solid rgba(6, 69, 173, 0.22);
    color: #0645ad;
    font-weight: 800;
    line-height: 1.9;
}
.article-toc a:hover {
    border-left-color: #0645ad;
}
.article-toc .toc-level-3 {
    margin-left: 12px;
}
.article-toc .toc-level-4 {
    margin-left: 24px;
    font-size: 12px;
}
.article-gallery,
.article-edit-history {
    padding: 16px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
}
.article-gallery h2,
.article-edit-history h2 {
    margin: 0 0 12px;
    color: #202122;
    font-size: 18px;
}
.article-gallery-cover {
    display: grid;
    justify-items: start;
    width: 100%;
    border: 1px solid rgba(162, 169, 177, 0.68);
    padding: 16px;
    color: #202122;
    background: rgba(248, 249, 250, 0.78);
    cursor: pointer;
    text-align: left;
}
.article-gallery-cover > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 10px;
    border: 1px solid rgba(162, 169, 177, 0.45);
    color: rgba(6, 69, 173, 0.78);
    background: rgba(255, 255, 255, 0.62);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: 42px;
    font-weight: 900;
}
.article-gallery-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 10px;
    border: 1px solid rgba(162, 169, 177, 0.45);
    object-fit: cover;
}
.article-gallery-cover strong {
    color: #202122;
    font-size: 14px;
}
.article-gallery-cover em {
    margin-top: 2px;
    color: #54595d;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}
.article-edit-history ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-edit-history li {
    display: grid;
    gap: 2px;
    padding-left: 12px;
    border-left: 3px solid rgba(6, 69, 173, 0.22);
}
.article-edit-history time {
    color: #54595d;
    font-size: 12px;
    font-weight: 800;
}
.article-edit-history span {
    color: #202122;
    font-size: 13px;
    line-height: 1.5;
}
.article-history-link {
    display: inline-flex;
    margin-top: 12px;
    color: #0645ad;
    font-size: 13px;
    font-weight: 900;
}
.gallery-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 26, 31, 0.28);
    backdrop-filter: blur(5px);
}
.gallery-dialog.is-open {
    display: flex;
}
.gallery-dialog-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: min(780px, calc(100vh - 48px));
    padding: 58px 28px 28px;
    overflow: auto;
    border: 1px solid #a2a9b1;
    background: rgba(248, 249, 250, 0.96);
    box-shadow: 0 18px 48px rgba(24, 26, 31, 0.18), inset 0 0 0 4px rgba(255, 255, 255, 0.52);
}
.gallery-dialog-grid input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.gallery-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #a2a9b1;
    border-radius: 50%;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}
.gallery-dialog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 12px;
}
.gallery-dialog-grid figure {
    position: relative;
    margin: 0;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
}
.gallery-dialog-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.gallery-upload-card,
.gallery-review-card {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    aspect-ratio: 1;
    border: 1px dashed #a2a9b1;
    padding: 14px;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    text-align: center;
}
.gallery-pending-details {
    display: grid;
    grid-column: 1 / -1;
    gap: 12px;
}
.gallery-review-detail {
    aspect-ratio: auto;
    min-height: 128px;
    align-content: start;
    justify-items: stretch;
    text-align: left;
}
.gallery-review-detail[hidden] {
    display: none;
}
.gallery-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: 0;
}
.gallery-compare span {
    min-height: 72px;
    padding: 10px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.62);
}
.gallery-upload-card label {
    display: grid;
    justify-items: center;
    width: 100%;
    cursor: pointer;
}
.gallery-upload-card label > span {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}
.gallery-upload-card strong,
.gallery-review-card strong {
    color: #202122;
    font-size: 14px;
}
.gallery-upload-card em,
.gallery-review-card span {
    margin-top: 4px;
    color: #54595d;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.5;
}
.gallery-dialog-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    color: rgba(6, 69, 173, 0.78);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: 34px;
    font-weight: 900;
}
.gallery-dialog-grid figcaption {
    padding: 10px;
    border-top: 1px solid #a2a9b1;
    color: #54595d;
    font-size: 13px;
    font-weight: 800;
}
.gallery-pending-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #d33;
    cursor: pointer;
}
.gallery-dialog-grid figure div,
.gallery-review-card div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #a2a9b1;
}
.gallery-dialog-grid figure button,
.gallery-dialog-grid figure label,
.gallery-review-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 0;
    border-right: 1px solid #a2a9b1;
    color: #0645ad;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}
.gallery-dialog-grid figure button:last-child,
.gallery-dialog-grid figure form:last-child button,
.gallery-review-card button:last-child {
    border-right: 0;
}
.gallery-dialog-grid figure form {
    display: contents;
}
.history-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.history-summary article,
.history-timeline article {
    padding: 16px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.58);
}
.history-summary strong,
.history-timeline strong {
    display: block;
    color: #202122;
    font-size: 16px;
}
.history-summary span,
.history-timeline span,
.history-timeline time {
    color: #54595d;
    font-size: 13px;
    font-weight: 800;
}
.history-timeline {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.history-timeline article {
    border-left: 4px solid rgba(6, 69, 173, 0.24);
}
.history-timeline p {
    margin: 8px 0 0;
    color: #54595d;
    line-height: 1.7;
}
.user-profile-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.user-profile-pagination button {
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.72);
    color: #0645ad;
    font-weight: 800;
    cursor: pointer;
}
.user-profile-pagination button:disabled {
    color: #72777d;
    cursor: not-allowed;
}
.editor-form {
    display: grid;
    gap: 16px;
    max-width: 920px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.62);
}
.editor-form label {
    display: grid;
    gap: 8px;
    color: #202122;
    font-weight: 800;
}
.editor-form input,
.editor-form select,
.editor-form textarea {
    width: 100%;
    border: 1px solid #a2a9b1;
    background: rgba(255, 255, 255, 0.86);
    color: #202122;
    font: inherit;
}
.editor-form textarea {
    min-height: 420px;
    resize: vertical;
    font-family: Consolas, "Liberation Mono", monospace;
}
.editor-form button,
.admin-logout button,
.admin-queue-item button {
    width: fit-content;
    border: 1px solid #0645ad;
    background: #0645ad;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.admin-logout {
    margin: 12px 0;
}
.admin-queue-item {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(162, 169, 177, 0.55);
}
.admin-queue-item pre {
    overflow: auto;
    max-height: 220px;
    padding: 12px;
    background: rgba(234, 236, 240, 0.7);
    white-space: pre-wrap;
}
.admin-queue-item form {
    display: flex;
    gap: 10px;
}
.article-body section {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(162, 169, 177, 0.55);
}
.article-body section + section {
    margin-top: 18px;
}
.article-body h2 {
    margin-top: 0;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(162, 169, 177, 0.55);
    color: #202122;
    font-size: 25px;
}
.article-body h2:not(:first-child) {
    margin-top: 24px;
}
.article-body h3 {
    margin: 16px 0 6px;
    color: #202122;
    font-size: 18px;
}
.article-body p {
    margin: 8px 0;
    color: #54595d;
}
.article-body ul {
    margin: 8px 0 12px;
    padding-left: 22px;
    color: #54595d;
}
.article-body li + li {
    margin-top: 4px;
}
.article-body a,
.article-infobox a {
    color: #0645ad;
    font-weight: 800;
}
.category-page-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-page-card li {
    display: grid;
    gap: 2px;
    padding-left: 12px;
    border-left: 3px solid rgba(6, 69, 173, 0.22);
}
.category-page-card strong {
    color: #202122;
    font-size: 15px;
}
.category-page-card em {
    color: #54595d;
    font-size: 13px;
    font-style: normal;
}
.button.secondary {
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(99, 102, 241, 0.18);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.hero-visual {
    min-height: 390px;
}
.wiki-card {
    position: absolute;
    display: grid;
    gap: 9px;
    width: 250px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 64px rgba(49, 46, 129, 0.16);
    backdrop-filter: blur(16px);
}
.wiki-card span { color: var(--subtle); font-size: 13px; font-weight: 850; }
.wiki-card strong { color: #111827; font-size: 30px; letter-spacing: -0.05em; }
.wiki-card em { color: var(--brand); font-style: normal; font-weight: 800; }
.card-main { top: 54px; left: 18px; transform: rotate(-6deg); }
.card-ai { right: 20px; bottom: 48px; transform: rotate(8deg); }
.orbit {
    position: absolute;
    border: 1px solid rgba(99, 91, 255, 0.28);
    border-radius: 50%;
}
.orbit-one { width: 340px; height: 340px; top: 18px; right: 28px; }
.orbit-two { width: 420px; height: 180px; right: -4px; top: 124px; transform: rotate(-24deg); border-color: rgba(6, 182, 212, 0.28); }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 46px 0 18px;
}
.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}
.section-heading a {
    color: var(--brand);
    font-weight: 850;
}
.section-heading.compact {
    display: block;
    margin-top: 0;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.category-card {
    position: relative;
    display: grid;
    min-height: 210px;
    align-content: space-between;
    gap: 13px;
    overflow: hidden;
    padding: 23px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--tone);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.13);
}
.category-index { color: var(--brand); font-weight: 950; }
.category-card strong { font-size: 26px; letter-spacing: -0.04em; }
.category-card span, .category-card em { position: relative; z-index: 1; }
.category-card span:not(.category-index) { color: var(--muted); line-height: 1.65; }
.category-card em { color: var(--subtle); font-size: 13px; font-style: normal; font-weight: 750; }
.tone-1 { --tone: rgba(245, 158, 11, 0.2); }
.tone-2 { --tone: rgba(34, 197, 94, 0.2); }
.tone-3 { --tone: rgba(59, 130, 246, 0.2); }
.tone-4 { --tone: rgba(139, 92, 246, 0.2); }
.tone-5 { --tone: rgba(244, 63, 94, 0.18); }
.tone-6 { --tone: rgba(6, 182, 212, 0.2); }
.tone-7 { --tone: rgba(249, 115, 22, 0.2); }
.tone-8 { --tone: rgba(236, 72, 153, 0.18); }
.flow-section,
.activity-panel,
.placeholder-page {
    margin-top: 26px;
    padding: clamp(26px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}
.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.flow-steps article,
.capability-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.64);
}
.flow-steps span {
    color: var(--brand);
    font-weight: 950;
}
.flow-steps strong {
    display: block;
    margin-top: 12px;
    color: #111827;
    font-size: 20px;
}
.flow-steps p,
.capability-card p { margin-bottom: 0; line-height: 1.7; }
.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.capability-card h3 {
    margin-bottom: 12px;
    font-size: 21px;
    letter-spacing: -0.04em;
}
.activity-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: center;
}
.activity-panel h2 { font-size: 34px; letter-spacing: -0.05em; }
.activity-panel ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.activity-panel li {
    padding: 15px 17px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
}
.placeholder-page {
    display: grid;
    min-height: 520px;
    align-content: center;
    justify-items: start;
}
.placeholder-page h1 {
    margin-bottom: 16px;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}
.placeholder-page p {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.8;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 980px) {
    .activity-panel {
        grid-template-columns: 1fr;
    }
    .portal-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .category-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .category-grid,
    .flow-steps,
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .site-header {
        align-items: flex-start;
    }
    .nav-toggle {
        display: inline-flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 0;
        padding: 0;
        color: var(--brand-dark);
        background: transparent;
    }
    .site-nav {
        position: absolute;
        top: 68px;
        right: 24px;
        display: none;
        width: min(300px, calc(100vw - 48px));
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: var(--shadow);
        backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
    }
    .site-nav.is-open { display: flex; }
}
@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 28px);
        padding: 14px;
    }
    .site-header::before { inset: 6px; }
    main { padding: 0 14px 64px; }
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 14px;
    }
    .footer-columns {
        justify-items: start;
    }
    .footer-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 14px;
    }
    .footer-legal {
        justify-content: flex-start;
    }
    .footer-icp {
        margin-top: -8px;
        padding: 0 14px 16px;
    }
    .hero-section { min-height: calc(100svh - 66px); }
    .hero-section h1 { font-size: clamp(40px, 14vw, 58px); }
    .search-panel { border-radius: 999px; }
    .search-panel input {
        min-height: 52px;
        padding: 0 84px 0 18px;
        font-size: 15px;
    }
    .search-buttons {
        right: 4px;
        top: 4px;
        bottom: 4px;
        gap: 4px;
    }
    .search-panel button {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 18px;
    }
    .section-heading { display: block; }
    .portal-category-list {
        grid-template-columns: 1fr;
    }
    .category-page {
        margin-top: 42px;
        padding: 22px;
    }
    .category-page-grid {
        grid-template-columns: 1fr;
    }
    .category-sort {
        align-items: flex-start;
        flex-direction: column;
    }
    .category-sort button {
        width: 100%;
    }
    .article-page {
        margin-top: 42px;
        padding: 22px;
    }
    .article-language-switch {
        position: static;
        margin-top: 16px;
    }
    .portal-footerline {
        align-items: flex-start;
        flex-direction: column;
    }
    .category-grid,
    .flow-steps,
    .capability-grid {
        grid-template-columns: 1fr;
    }
    .placeholder-page { min-height: 430px; }
}
