﻿:root {
  --bg: #f7f9ff;
  --panel: rgba(255, 255, 255, .84);
  --panel-solid: #fff;
  --text: #172033;
  --muted: #657086;
  --line: rgba(22, 37, 75, .10);
  --blue: #2757d4;
  --blue-2: #4f8cff;
  --navy: #1e2f78;
  --green: #21a55b;
  --orange: #f68a25;
  --pink: #db4d72;
  --gold: #f2b113;
  --shadow: 0 22px 70px rgba(24, 41, 83, .12);
  --soft-shadow: 0 12px 34px rgba(24, 41, 83, .08);
  --radius: 26px;
  --shell: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.72 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(39, 87, 212, .11), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(242, 177, 19, .13), transparent 24%),
    linear-gradient(180deg, #fcfdff 0%, var(--bg) 60%, #f5f8ff 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 32, 51, .048) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .36;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(39,87,212,.28); outline-offset: 3px; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.page-glow { position: fixed; width: 360px; height: 360px; border-radius: 50%; filter: blur(65px); opacity: .18; pointer-events: none; }
.page-glow-a { background: var(--blue-2); top: 12%; left: -160px; }
.page-glow-b { background: var(--pink); right: -190px; top: 54%; }
.app-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 249, 255, .78); border-bottom: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 48px; height: 48px; padding: 7px; flex: none; border-radius: 16px; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: var(--soft-shadow); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; min-width: 0; line-height: 1.35; }
.brand-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy span { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.library-state { --library-progress: 0%; position: relative; overflow: hidden; white-space: nowrap; color: var(--muted); font-size: .86rem; padding: 7px 11px 9px; border: 1px solid var(--line); background: rgba(255,255,255,.64); border-radius: 999px; }
.library-state::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--library-progress); height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .24s ease; }
.library-state.ready { color: #177e45; background: rgba(33,165,91,.09); border-color: rgba(33,165,91,.18); }
.soft-button, .outline-button, .ghost-button, .primary-button, .back-button { border: 0; cursor: pointer; border-radius: 999px; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; transition: .2s ease; }
.soft-button, .outline-button { background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(24,41,83,.05); }
.soft-button:hover, .outline-button:hover, .ghost-button:hover, .back-button:hover { transform: translateY(-1px); background: #fff; box-shadow: var(--soft-shadow); }
.main-layout { position: relative; padding: 34px 0 56px; }
.intro-card { overflow: hidden; position: relative; min-height: 250px; display: grid; grid-template-columns: 1fr 180px; gap: 28px; align-items: center; padding: clamp(26px, 5vw, 50px); border-radius: 34px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.76)), linear-gradient(120deg, rgba(39,87,212,.15), rgba(242,177,19,.12), rgba(219,77,114,.10)); border: 1px solid rgba(255,255,255,.94); box-shadow: var(--shadow); }
.intro-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; bottom: -190px; border-radius: 50%; background: rgba(39,87,212,.10); }
.eyebrow, .panel-kicker { color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.intro-card h1 { margin: 12px 0; line-height: 1.12; font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.045em; }
.intro-card h1 span { background: linear-gradient(90deg, var(--blue), var(--green), var(--orange), var(--pink)); color: transparent; background-clip: text; -webkit-background-clip: text; }
.intro-card p { max-width: 66ch; margin: 0; color: var(--muted); font-size: 1.04rem; }
.intro-logo { position: relative; z-index: 1; aspect-ratio: 1; padding: 18px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); border-radius: 30px; box-shadow: var(--soft-shadow); }
.intro-logo img { width: 100%; height: 100%; object-fit: contain; }
.section-tabs { position: sticky; top: 88px; z-index: 25; margin: 24px 0; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: 22px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95); backdrop-filter: blur(16px); box-shadow: var(--soft-shadow); }
.tab-button { min-height: 48px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; font-weight: 800; color: var(--muted); transition: .2s ease; }
.tab-button:hover { background: rgba(39,87,212,.06); color: var(--text); }
.tab-button.active { color: #fff; background: linear-gradient(90deg, var(--blue), var(--blue-2)); box-shadow: 0 12px 24px rgba(39,87,212,.22); }
.view-panel { display: none; padding: clamp(22px, 4vw, 34px); border-radius: 30px; background: var(--panel); border: 1px solid rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.view-panel.active { display: block; animation: reveal .28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { margin: 3px 0 2px; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; }
.panel-heading p { margin: 0; color: var(--muted); }
.content-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.content-card { position: relative; overflow: hidden; min-height: 190px; padding: 22px; border-radius: 22px; background: rgba(255,255,255,.9); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(24,41,83,.06); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.content-card:hover { transform: translateY(-3px); border-color: rgba(39,87,212,.22); box-shadow: 0 20px 40px rgba(24,41,83,.11); }
.content-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -55px; bottom: -65px; background: linear-gradient(135deg, rgba(39,87,212,.12), rgba(219,77,114,.08)); }
.card-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.type-chip { display: inline-flex; min-height: 30px; align-items: center; padding: 0 11px; border-radius: 999px; font-size: .78rem; font-weight: 900; background: rgba(39,87,212,.09); color: var(--navy); }
.card-date { color: var(--muted); font-size: .82rem; }
.content-card h3 { margin: 18px 0 8px; font-size: 1.22rem; line-height: 1.35; }
.content-card p { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .86rem; }
.card-open { color: var(--blue); font-weight: 800; }
.empty-state { grid-column: 1 / -1; padding: 44px 24px; text-align: center; color: var(--muted); border: 1px dashed rgba(39,87,212,.22); background: rgba(255,255,255,.62); border-radius: 22px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination[hidden] { display: none; }
.page-button { min-width: 42px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.88); cursor: pointer; font-weight: 800; box-shadow: 0 7px 18px rgba(24,41,83,.05); transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.page-button:hover:not(:disabled) { transform: translateY(-1px); color: var(--blue); border-color: rgba(39,87,212,.22); background: #fff; }
.page-button.active { color: #fff; border-color: transparent; background: linear-gradient(90deg, var(--blue), var(--blue-2)); box-shadow: 0 10px 22px rgba(39,87,212,.20); }
.page-button:disabled { opacity: .45; cursor: not-allowed; }
.page-ellipsis { min-width: 22px; text-align: center; color: var(--muted); font-weight: 800; }
.editor-meta-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; margin-bottom: 16px; }
.field-label { display: grid; gap: 7px; color: var(--text); font-weight: 760; }
.field-label span { font-size: .9rem; }
.summary-field { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--text); outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
input, select { height: 48px; border-radius: 14px; padding: 0 14px; }
textarea { min-height: 560px; resize: vertical; border-radius: 0 0 20px 20px; padding: 18px; line-height: 1.65; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.summary-textarea { min-height: 88px; border-radius: 14px; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: rgba(39,87,212,.42); box-shadow: 0 0 0 4px rgba(39,87,212,.08); }
.cache-badge { padding: 8px 12px; border-radius: 999px; background: rgba(33,165,91,.09); color: #177e45; border: 1px solid rgba(33,165,91,.16); font-size: .84rem; font-weight: 760; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.editor-pane, .preview-pane { min-width: 0; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.72); overflow: hidden; }
.pane-title { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(247,249,255,.78); }
.pane-title span { color: var(--muted); font-size: .84rem; }
.preview-pane { display: flex; flex-direction: column; }
.preview-paper { flex: 1; border-radius: 0 !important; box-shadow: none !important; min-height: 560px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 12px; margin: 18px 0 34px; }
.ghost-button, .back-button { background: rgba(255,255,255,.82); border: 1px solid var(--line); }
.primary-button { color: white; background: linear-gradient(90deg, var(--blue), var(--blue-2)); box-shadow: 0 12px 26px rgba(39,87,212,.22); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(39,87,212,.28); }
.local-section { padding-top: 28px; border-top: 1px solid var(--line); }
.compact-heading { margin-bottom: 18px; }
.review-notice { margin-top: 28px; padding: 20px; display: flex; align-items: flex-start; gap: 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(39,87,212,.08), rgba(242,177,19,.10)); border: 1px solid rgba(39,87,212,.12); }
.review-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 15px; color: white; background: linear-gradient(135deg, var(--blue), var(--pink)); }
.review-notice strong { display: block; margin-bottom: 4px; }
.review-notice p { margin: 0; color: var(--muted); }
.review-notice a { color: var(--blue); font-weight: 800; }
.detail-view { padding: 0; background: transparent; box-shadow: none; border: 0; backdrop-filter: none; }
.back-button { margin-bottom: 16px; }
.official-paper { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 54px); padding-bottom: clamp(92px, 12vw, 132px); border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.paper-watermark { position: absolute; z-index: 0; inset: 50% auto auto 50%; width: min(48vw, 390px); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-12deg); opacity: .042; pointer-events: none; }
.paper-watermark img { width: 100%; height: 100%; object-fit: contain; }
.paper-header, .markdown-body, .paper-signature { position: relative; z-index: 1; }
.paper-header { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.paper-header h1 { margin: 10px 0 10px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: -.04em; }
.paper-summary { color: var(--muted); margin: 0; }
.paper-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.paper-meta span { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; background: #f5f7fc; border: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.paper-signature { position: absolute; right: clamp(18px, 4vw, 44px); bottom: clamp(18px, 4vw, 36px); margin-top: 0; padding-top: 0; border-top: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; text-align: right; }
.paper-wordmark-link { display: block; box-sizing: content-box; width: var(--paper-wordmark-width, 150px); max-width: none; border-radius: 16px; overflow: hidden; background: #fff; transition: transform .18s ease, box-shadow .2s ease; }
.paper-wordmark-link:hover { transform: translateY(-1px); box-shadow: var(--soft-shadow); }
.paper-wordmark-link:focus-visible { outline: 3px solid rgba(39,87,212,.26); outline-offset: 4px; }
.paper-wordmark { width: 100%; height: auto; object-fit: contain; }
.paper-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.tool-button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.9); cursor: pointer; font-weight: 760; }
.tool-button.danger { color: #b92b45; border-color: rgba(185,43,69,.18); background: rgba(219,77,114,.06); }
.markdown-body { color: #222b3d; word-break: break-word; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { line-height: 1.28; margin: 1.7em 0 .65em; color: #172033; }
.markdown-body h1 { font-size: 2rem; }
.markdown-body h2 { font-size: 1.55rem; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.markdown-body h3 { font-size: 1.25rem; }
.markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body blockquote { margin: 1em 0; }
.markdown-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.markdown-body blockquote { padding: 12px 16px; color: var(--muted); border-left: 4px solid var(--blue-2); background: #f6f8fd; border-radius: 0 12px 12px 0; }
.markdown-body code { padding: .15em .38em; border-radius: 6px; background: #eef2fa; font: .9em/1.5 "SFMono-Regular", Consolas, monospace; }
.markdown-body pre { overflow: auto; padding: 16px; border-radius: 14px; background: #172033; color: #eef4ff; }
.markdown-body pre code { padding: 0; background: transparent; color: inherit; }
.markdown-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.markdown-body th, .markdown-body td { border: 1px solid var(--line); padding: 9px 12px; }
.markdown-body th { background: #f4f7fd; }
.markdown-body img { margin: 18px auto; border-radius: 16px; box-shadow: var(--soft-shadow); }
.markdown-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: .3em 0; }
.latex-api-fallback { display: inline-flex; align-items: center; max-width: 100%; vertical-align: middle; }
.latex-api-fallback.is-display { display: flex; justify-content: center; overflow-x: auto; overflow-y: hidden; margin: 1em 0; padding: .3em 0; }
.markdown-body .latex-api-fallback img { display: block; max-width: 100%; height: auto; margin: 0; border-radius: 0; box-shadow: none; background: transparent; }
.dialog-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(17,29,61,.32); backdrop-filter: blur(10px); }
.dialog-backdrop[hidden] { display: none; }
.dialog-card { position: relative; width: min(100%, 480px); padding: 28px; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(17,29,61,.25); }
.dialog-card h2 { margin: 4px 0 8px; }
.dialog-card p { margin: 0 0 18px; color: var(--muted); }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2f4f9; cursor: pointer; font-size: 1.3rem; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 16px 0; color: var(--muted); }
.check-row input { width: 18px; height: 18px; }
.full-button { width: 100%; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; color: #fff; background: rgba(23,32,51,.94); border-radius: 999px; box-shadow: var(--shadow); transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-footer { padding: 0 0 34px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-row div { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-row a:hover { color: var(--blue); }
@media (max-width: 900px) {
  .app-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: var(--library-progress-page, 0%); height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .24s ease; }
  .intro-card { grid-template-columns: 1fr 130px; }
  .editor-grid { grid-template-columns: 1fr; }
  textarea, .preview-paper { min-height: 470px; }
  .library-state { display: none; }
}
@media (max-width: 680px) {
  .shell { width: min(calc(100% - 20px), var(--shell)); }
  .header-row { min-height: 68px; gap: 8px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-copy strong { max-width: min(42vw, 170px); font-size: .94rem; }
  .brand-copy span { display: none; }
  .soft-button { min-height: 44px; padding-inline: 13px; font-size: .88rem; }
  .main-layout { padding-top: 20px; }
  .intro-card { grid-template-columns: 1fr; min-height: auto; padding: 24px 20px; border-radius: 26px; }
  .intro-card h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .intro-logo { display: none; }
  .section-tabs { top: 77px; border-radius: 18px; gap: 4px; }
  .tab-button { font-size: .9rem; padding: 0 6px; }
  .view-panel { border-radius: 24px; padding: 20px 16px; }
  .content-list { grid-template-columns: 1fr; }
  .content-card { min-height: 0; padding: 20px 18px; }
  .panel-heading, .publish-heading { align-items: flex-start; flex-direction: column; }
  .panel-heading .outline-button { width: 100%; }
  .editor-meta-grid { grid-template-columns: 1fr; }
  textarea { min-height: 420px; }
  .editor-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .official-paper { padding: 24px 18px 86px; border-radius: 22px; }
  .detail-view { margin-inline: -6px; }
  .detail-view .back-button { margin-left: 6px; }
  .detail-view .official-paper { padding-inline: 14px; }
  .paper-signature { right: 16px; bottom: 16px; }
  .paper-wordmark-link { border-radius: 12px; }
  .paper-header h1 { font-size: 2rem; }
  .paper-signature { align-items: flex-end; }
  .footer-row { flex-direction: column; }
}
@media (max-width: 420px) {
  .brand-copy strong { max-width: 38vw; }
  .section-tabs { position: relative; top: auto; }
  .tab-button { font-size: .82rem; }
  .pagination { gap: 6px; }
  .page-button { min-width: 40px; min-height: 44px; padding-inline: 10px; font-size: .86rem; }
  .detail-view { margin-inline: -8px; }
  .detail-view .back-button { margin-left: 8px; }
  .detail-view .official-paper { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* 2026-09 research-interface refinement: formal, light, responsive, and GPU-friendly. */
:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --text: #142033;
  --muted: #667085;
  --line: #dfe6ef;
  --blue: #2457c5;
  --blue-2: #4779df;
  --navy: #17366f;
  --shadow: 0 14px 34px rgba(26, 44, 78, .08);
  --soft-shadow: 0 7px 20px rgba(26, 44, 78, .06);
  --radius: 22px;
}
body { background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 54%, #f7f9fc 100%); }
body::before, .page-glow { display: none; }
.app-header {
  background: rgba(250, 252, 255, .96);
  border-bottom-color: #e5eaf1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand-logo { border-radius: 13px; border-color: #e2e8f0; box-shadow: 0 5px 16px rgba(23, 54, 111, .06); }
.library-state, .soft-button, .outline-button { background: #fff; }
.main-layout { padding-top: 30px; }
.intro-card {
  min-height: 238px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #e0e7f0;
  box-shadow: var(--shadow);
}
.intro-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--green), var(--gold), var(--pink));
}
.intro-card::after { width: 240px; height: 240px; right: -96px; bottom: -155px; background: rgba(36, 87, 197, .055); }
.intro-card h1 { max-width: 14ch; }
.intro-card h1 span { color: var(--blue); background: none; -webkit-text-fill-color: currentColor; }
.intro-logo { padding: 20px; border-radius: 22px; background: #f9fbfe; border-color: #e3e9f1; box-shadow: none; }
.section-tabs {
  top: 86px;
  border-radius: 16px;
  border-color: #e0e7f0;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 22px rgba(26, 44, 78, .06);
}
.tab-button { border-radius: 10px; }
.tab-button.active { background: var(--navy); box-shadow: none; }
.view-panel {
  border-radius: 24px;
  background: #fff;
  border-color: #e0e7f0;
  box-shadow: 0 12px 32px rgba(26, 44, 78, .07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.panel-heading { border-bottom: 1px solid #e7ecf2; padding-bottom: 18px; }
.panel-kicker, .eyebrow { color: var(--blue); }
.outline-button:hover, .soft-button:hover, .ghost-button:hover, .back-button:hover { box-shadow: 0 5px 14px rgba(26,44,78,.07); }
.community-search {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  background: #f8fafc;
}
.search-label { display: block; margin-bottom: 8px; color: #344054; font-size: .86rem; font-weight: 800; }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; }
.search-input-wrap { position: relative; min-width: 0; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #7b8799; font-size: 1.08rem; pointer-events: none; }
.search-input { height: 46px; padding: 0 14px 0 38px; border-radius: 11px; background: #fff; }
.search-button, .search-clear { min-height: 46px; padding: 0 17px; border-radius: 11px; font-weight: 800; cursor: pointer; }
.search-button { border: 1px solid var(--navy); color: #fff; background: var(--navy); }
.search-button:hover { background: #102d65; }
.search-clear { border: 1px solid #d6deea; color: #475467; background: #fff; }
.search-clear[hidden] { display: none; }
.search-status { min-height: 1.5em; margin: 8px 2px 0; color: var(--muted); font-size: .82rem; }
.content-list { gap: 14px; }
.content-card {
  min-height: 184px;
  border-radius: 16px;
  background: #fff;
  border-color: #e0e7f0;
  box-shadow: 0 6px 18px rgba(26, 44, 78, .045);
}
.content-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #dbe5f8; transition: background .18s ease; }
.content-card::after { display: none; }
.content-card:hover { transform: translateY(-2px); border-color: #cbd8ea; box-shadow: 0 10px 24px rgba(26, 44, 78, .075); }
.content-card:hover::before { background: var(--blue); }
.type-chip { min-height: 27px; border-radius: 7px; background: #edf3ff; color: #234d9c; letter-spacing: .03em; }
.content-card h3 { margin-top: 16px; }
.card-footer { padding-top: 12px; border-top: 1px solid #edf1f5; }
.card-author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.card-author-label { flex: none; padding: 2px 7px; border-radius: 6px; background: #f0f3f7; color: #667085; font-size: .76rem; font-weight: 800; }
.search-match { padding: .02em .18em; border-radius: 4px; color: #713b00; background: #fff0bd; box-shadow: inset 0 -1px 0 rgba(175, 112, 0, .14); }
.card-open { color: #2457c5; }
.empty-state { border-radius: 14px; background: #fafbfd; }
.pagination { margin-top: 22px; }
.page-button { border-radius: 10px; box-shadow: none; }
.page-button.active { background: var(--navy); box-shadow: none; }
input, select, textarea { background: #fff; border-color: #dce3ec; }
input:focus, select:focus, textarea:focus { border-color: rgba(36,87,197,.55); box-shadow: 0 0 0 3px rgba(36,87,197,.08); }
.editor-pane, .preview-pane { border-radius: 16px; background: #fff; }
.pane-title { background: #f8fafc; }
.primary-button { background: var(--navy); box-shadow: none; }
.primary-button:hover { box-shadow: 0 6px 16px rgba(23,54,111,.15); }
.review-notice { border-radius: 16px; background: #f7f9fc; border-color: #e1e7ef; }
.review-icon { border-radius: 11px; background: var(--navy); }
.official-paper { border-radius: 20px; border-color: #dde5ee; box-shadow: 0 12px 30px rgba(26,44,78,.07); }
.paper-watermark { opacity: .03; }
.paper-wordmark-link { box-shadow: none; }
.dialog-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17,29,61,.38); }
.dialog-card { border-radius: 20px; box-shadow: 0 24px 64px rgba(17,29,61,.22); }
.site-footer { padding-top: 6px; }
@media (max-width: 900px) {
  .intro-card { grid-template-columns: 1fr 120px; }
  .view-panel { padding: 24px; }
}
@media (max-width: 720px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .main-layout { padding-top: 18px; }
  .intro-card { grid-template-columns: 1fr; padding: 26px 22px; }
  .intro-card h1 { max-width: 15ch; }
  .intro-logo { display: none; }
  .section-tabs { top: 76px; }
  .panel-heading { align-items: flex-start; }
  .content-list { grid-template-columns: 1fr; }
  .search-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .search-clear { grid-column: 1 / -1; width: 100%; }
  .card-footer { align-items: flex-end; }
}
@media (max-width: 520px) {
  .shell { width: min(calc(100% - 16px), var(--shell)); }
  .header-row { min-height: 64px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-copy strong { max-width: 46vw; }
  .soft-button { min-height: 40px; padding-inline: 12px; }
  .section-tabs { position: relative; top: auto; margin: 14px 0; padding: 6px; border-radius: 13px; }
  .tab-button { min-height: 44px; font-size: .84rem; }
  .view-panel { padding: 18px 14px; border-radius: 18px; }
  .panel-heading { gap: 14px; margin-bottom: 16px; padding-bottom: 14px; }
  .community-search { padding: 12px; border-radius: 13px; }
  .search-controls { grid-template-columns: 1fr; }
  .search-button, .search-clear { width: 100%; }
  .content-card { padding: 18px 16px; border-radius: 14px; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .card-open { align-self: flex-end; }
  .pagination { gap: 5px; }
  .page-button { min-width: 38px; min-height: 40px; padding-inline: 9px; }
  .official-paper { border-radius: 16px; }
}


/* 2026-09 r4 visual polish: clearer research-catalog hierarchy and tuned device layouts. */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --text: #122038;
  --muted: #637087;
  --line: #dce4ef;
  --blue: #2459c7;
  --blue-2: #4778d7;
  --navy: #173a78;
  --shadow: 0 16px 38px rgba(23, 52, 98, .08);
  --soft-shadow: 0 7px 18px rgba(23, 52, 98, .06);
  --shell: 1220px;
}
body {
  background-color: #f5f8fc;
  background-image:
    linear-gradient(rgba(31, 67, 125, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 67, 125, .024) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, #f3f6fb 52%, #f8fafc 100%);
  background-size: 32px 32px, 32px 32px, auto;
}
.app-header {
  background: rgba(252, 253, 255, .97);
  border-bottom-color: #dfe6ef;
  box-shadow: 0 3px 16px rgba(29, 54, 91, .035);
}
.header-row { min-height: 78px; }
.brand-logo {
  width: 50px;
  height: 50px;
  padding: 7px;
  border-radius: 15px;
  border-color: #dbe4f0;
  background: linear-gradient(145deg, #fff, #f5f8fc);
  box-shadow: 0 7px 20px rgba(23,58,120,.08), inset 0 0 0 1px rgba(255,255,255,.82);
}
.brand-copy strong { color: #142642; font-weight: 850; }
.library-state { border-color: #dce4ee; background: #f8fafc; }
.soft-button, .outline-button { border-color: #d8e1ec; color: #30445f; }
.soft-button:hover, .outline-button:hover { color: var(--navy); border-color: #cbd7e6; background: #f8fafc; }
.main-layout { padding-top: 32px; }
.intro-card {
  min-height: 250px;
  padding: clamp(32px, 5vw, 54px);
  border-radius: 30px;
  border-color: #dce5f0;
  background:
    linear-gradient(112deg, rgba(36,89,199,.055), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(250,252,255,.98));
  box-shadow: 0 20px 48px rgba(22,51,96,.09);
}
.intro-card::before { width: 6px; background: linear-gradient(180deg, #2459c7 0 42%, #2c9a66 42% 65%, #d89d21 65% 82%, #c95479 82%); }
.intro-card::after { width: 300px; height: 300px; right: -125px; bottom: -198px; background: rgba(36,89,199,.04); border: 1px solid rgba(36,89,199,.06); }
.intro-card h1 { max-width: 15ch; font-size: clamp(2.35rem, 5vw, 4.35rem); color: #142642; }
.intro-card h1 span { color: #2459c7; }
.intro-card p { color: #5e6e84; font-size: 1.03rem; }
.intro-logo { padding: 21px; border-radius: 20px; border-color: #dae4ef; background: linear-gradient(145deg, #fff, #f5f8fc); box-shadow: 0 9px 22px rgba(23,52,98,.055); }
.eyebrow, .panel-kicker { color: #315fae; letter-spacing: .105em; }
.section-tabs {
  top: 88px;
  margin: 22px 0;
  padding: 6px;
  border-radius: 15px;
  border-color: #dce4ee;
  background: rgba(252,253,255,.98);
  box-shadow: 0 8px 22px rgba(23,52,98,.055);
}
.tab-button { min-height: 46px; border-radius: 10px; color: #647188; }
.tab-button:hover { color: var(--navy); background: #f1f5fa; }
.tab-button.active { background: linear-gradient(105deg, #173a78, #2459c7); box-shadow: 0 7px 16px rgba(23,58,120,.14); }
.view-panel {
  padding: clamp(26px, 3.5vw, 36px);
  border-radius: 24px;
  border-color: #dce4ee;
  background: rgba(255,255,255,.99);
  box-shadow: 0 14px 34px rgba(23,52,98,.07);
}
.panel-heading { margin-bottom: 20px; padding-bottom: 18px; border-bottom-color: #e4eaf2; }
.panel-heading h2 { color: #162743; letter-spacing: -.025em; }
.panel-heading p { color: #65748a; }
.community-search {
  margin-bottom: 24px;
  padding: 15px;
  border-radius: 15px;
  border-color: #dfe6ef;
  background: linear-gradient(180deg, #f8fafc, #f5f8fc);
}
.search-label { margin-bottom: 9px; color: #34465f; letter-spacing: .01em; }
.search-input { height: 47px; border-radius: 10px; border-color: #d6e0eb; }
.search-icon { color: #697991; }
.search-button, .search-clear { min-height: 47px; border-radius: 10px; }
.search-button { border-color: #173a78; background: linear-gradient(105deg, #173a78, #2459c7); box-shadow: 0 6px 14px rgba(23,58,120,.12); }
.search-button:hover { background: linear-gradient(105deg, #123268, #1f51b2); }
.search-clear { border-color: #d4deea; color: #4e5f76; }
.search-clear:hover { color: var(--navy); border-color: #c7d4e4; background: #f8fafc; }
.search-status { margin-top: 9px; color: #728097; }
.content-list { gap: 15px; }
.content-card {
  min-height: 190px;
  padding: 22px 21px;
  border-radius: 15px;
  border-color: #dfe6ef;
  background: linear-gradient(180deg, #fff, #fcfdff);
  box-shadow: 0 7px 20px rgba(23,52,98,.045);
}
.content-card::before { width: 4px; background: #d5e1f4; }
.content-card:hover { transform: translateY(-2px); border-color: #cad7e7; box-shadow: 0 12px 26px rgba(23,52,98,.075); }
.content-card:hover::before { background: linear-gradient(180deg, #2459c7, #5f88d8); }
.type-chip { border: 1px solid #dbe6f6; background: #f0f5fc; color: #2d589d; }
.content-card h3 { color: #182a46; letter-spacing: -.01em; }
.content-card p { color: #69778c; }
.card-footer { border-top-color: #e9eef4; }
.card-author-label { color: #65748a; background: #f0f3f7; }
.card-open { font-weight: 800; }
.search-match { color: #654000; background: #ffefb8; box-shadow: inset 0 -1px 0 rgba(154,104,0,.16); }
.pagination { gap: 7px; }
.page-button { min-height: 42px; border-radius: 9px; border-color: #d9e2ec; background: #fff; }
.page-button:hover:not(:disabled) { color: var(--navy); border-color: #c8d6e7; background: #f8fafc; }
.page-button.active { background: linear-gradient(105deg, #173a78, #2459c7); box-shadow: 0 6px 14px rgba(23,58,120,.12); }
.editor-meta-grid { gap: 13px; }
input, select, textarea { border-color: #d8e1eb; }
input:focus, select:focus, textarea:focus { border-color: rgba(36,89,199,.58); box-shadow: 0 0 0 3px rgba(36,89,199,.08); }
.editor-pane, .preview-pane { border-radius: 15px; border-color: #dce4ee; box-shadow: 0 6px 18px rgba(23,52,98,.035); }
.pane-title { background: #f7f9fc; border-bottom-color: #e1e7ef; }
.cache-badge { border-radius: 9px; }
.primary-button { background: linear-gradient(105deg, #173a78, #2459c7); box-shadow: 0 7px 16px rgba(23,58,120,.13); }
.review-notice { border-radius: 15px; border-color: #dbe5f1; background: #f7f9fc; }
.review-icon { border-radius: 10px; background: linear-gradient(145deg, #173a78, #285fc0); }
.official-paper {
  border-radius: 20px;
  border-color: #dbe4ee;
  background: linear-gradient(180deg, #fff 0%, #fff 92%, #fbfcfe 100%);
  box-shadow: 0 15px 34px rgba(23,52,98,.075);
}
.paper-watermark { opacity: .062; }
.paper-header { border-bottom-color: #e3e9f1; }
.paper-header h1 { color: #142642; }
.paper-meta span { border-radius: 8px; background: #f6f8fb; }
.paper-wordmark-link { border: 1px solid #e3e8ef; border-radius: 11px; }
.markdown-body { color: #26344b; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: #172942; }
.markdown-body blockquote { border-left-color: #4778d7; background: #f5f8fc; }
.site-footer { padding-top: 12px; }
.footer-row { border-top-color: #dfe6ef; }

@media (min-width: 1120px) {
  .content-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .intro-card { grid-template-columns: minmax(0, 1fr) 132px; padding: 38px; }
  .intro-card h1 { font-size: clamp(2.55rem, 6vw, 3.8rem); }
  .view-panel { padding: 26px; }
  .editor-grid { gap: 14px; }
}
@media (max-width: 820px) {
  .header-row { min-height: 70px; }
  .intro-card { grid-template-columns: 1fr; padding: 32px 28px; }
  .intro-logo { display: none; }
  .section-tabs { top: 80px; }
  .view-panel { padding: 23px; }
  .content-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: 1fr; }
  textarea, .preview-paper { min-height: 460px; }
}
@media (max-width: 640px) {
  .shell { width: min(calc(100% - 20px), var(--shell)); }
  .header-row { min-height: 66px; }
  .brand-logo { width: 44px; height: 44px; padding: 6px; }
  .brand-copy strong { max-width: 46vw; font-size: .94rem; }
  .soft-button { min-height: 40px; padding-inline: 11px; }
  .main-layout { padding-top: 18px; }
  .intro-card { padding: 27px 21px; border-radius: 21px; }
  .intro-card::before { width: 4px; }
  .intro-card h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .intro-card p { font-size: .96rem; }
  .section-tabs { position: relative; top: auto; margin: 14px 0; border-radius: 12px; }
  .tab-button { min-height: 43px; padding-inline: 5px; font-size: .86rem; }
  .view-panel { padding: 18px 15px; border-radius: 18px; }
  .panel-heading { gap: 13px; margin-bottom: 16px; padding-bottom: 14px; }
  .panel-heading .outline-button { width: 100%; }
  .community-search { padding: 12px; border-radius: 12px; }
  .search-controls { grid-template-columns: 1fr; }
  .search-button, .search-clear { width: 100%; }
  .content-list { grid-template-columns: 1fr; }
  .content-card { min-height: 0; padding: 19px 17px; border-radius: 13px; }
  .card-footer { align-items: flex-start; }
  .official-paper { padding: 24px 17px 84px; border-radius: 15px; }
  .paper-watermark { width: min(74vw, 330px); opacity: .052; }
  .paper-header h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
  .paper-meta { gap: 6px; }
  .paper-meta span { font-size: .78rem; }
  .markdown-body { font-size: .97rem; }
  .editor-meta-grid { grid-template-columns: 1fr; }
  textarea, .preview-paper { min-height: 420px; }
  .footer-row { gap: 10px; }
}
@media (max-width: 430px) {
  .shell { width: min(calc(100% - 14px), var(--shell)); }
  .brand-copy strong { max-width: 44vw; }
  .brand-copy span { display: none; }
  .intro-card { padding-inline: 18px; }
  .section-tabs { padding: 5px; gap: 4px; }
  .tab-button { font-size: .8rem; }
  .view-panel { padding: 16px 12px; }
  .community-search { padding: 10px; }
  .search-input { padding-left: 36px; }
  .page-button { min-width: 36px; min-height: 40px; padding-inline: 8px; font-size: .83rem; }
  .official-paper { padding-inline: 13px; }
  .editor-actions { grid-template-columns: 1fr; }
}


/* 2026-09 r7: keep active tab text white; clip enlarged logo artwork cleanly inside the existing frames. */
.tab-button.active,
.tab-button.active:hover {
  color: #fff;
}

.brand-logo,
.intro-logo {
  overflow: hidden;
  isolation: isolate;
}

.brand-logo img,
.intro-logo img {
  transform: scale(1.24);
  transform-origin: center;
}

/* Keep the hero decoration from reading as a border that extends beyond the logo frame. */
.intro-card::after {
  border: 0;
}
