:root {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #182033; background: #f8fafc; font-synthesis: none; }
* {box-sizing: border-box;}
body {margin: 0; min-height: 100vh;}
.wrap {max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px;}
a {color: #195db0; text-decoration: none;}
a:hover {text-decoration: underline;}
.site-header {background: #fff; border-bottom: 1px solid #e8edf3;}
.nav {display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 24px;}
.nav nav {display: flex; gap: 30px; align-items: center; white-space: nowrap;}
.nav nav a {color: #4d596b; font-size: 14px;}
.nav nav a:hover {color: #1355a1;}
.brand {display: flex; align-items: center; gap: 10px; color: #182033; font-size: 19px; font-weight: 750; letter-spacing: -.4px;}
.brand:hover {text-decoration: none;}
.brand-icon {display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: #2459c5; font-size: 23px; font-weight: normal;}
.hero {padding: 76px 0 64px; border-bottom: 1px solid #e4e8f0;}
.eyebrow {text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 750; color: #2459c5;}
h1 {font-size: clamp(30px, 5vw, 44px); letter-spacing: -1.2px; line-height: 1.2; margin: 14px 0 14px;}
.hero > p, .page-heading p {color: #647084; margin: 0; line-height: 1.8;}
.search-box {display: flex; align-items: stretch; gap: 10px; margin-top: 30px; max-width: 1000px;}
.search-box input {min-width: 0; flex: 1; font-size: 15px;}
input, textarea, select {border: 1px solid #d8dfea; border-radius: 9px; background: #fff; font: inherit; color: #19243a; padding: 12px 14px; outline: none;}
input:focus, textarea:focus, select:focus {border-color: #3973d3; box-shadow: 0 0 0 3px rgba(45, 102, 209, .1);}
.search-box select {min-width: 135px;}
.button {display: inline-flex; justify-content: center; align-items: center; gap: 6px; border-radius: 9px; padding: 12px 19px; font: inherit; font-size: 14px; font-weight: 680; cursor: pointer; white-space: nowrap; border: 1px solid transparent;}
.button:hover {text-decoration: none;}
.button.primary {color: #fff; background: #2459c5; border-color: #2459c5;}
.button.primary:hover {background: #1a4ba9;}
.button.secondary {background: #fff; border-color: #d8dfea; color: #334155;}
.button.secondary:hover {border-color: #9bb4e7; background: #f8fbff;}
.button.download {color: #1955ad; background: #eaf1ff; border-color: #d9e5fc; align-self: center;}
.button.download:hover {background: #dfeaff;}
.button.danger {background: #fff; border-color: #efcaca; color: #b52d36;}
.button.danger:hover {background: #fff2f2;}
.button.small {font-size: 13px; padding: 8px 12px;}
.search-hint {margin-top: 11px; color: #7a8698; font-size: 12px;}
.results {padding: 28px 0 72px;}
.results-head {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px;}
h2 {font-size: 19px; margin: 0 0 5px;}
h3 {font-size: 17px; margin: 0; line-height: 1.45;}
.subtle {color: #8190a0;}
.results-head .subtle {font-size: 13px;}
.document-list {display: grid; gap: 12px;}
.document {background: #fff; border: 1px solid #e3e9f0; border-radius: 13px; padding: 25px 28px; box-shadow: 0 2px 8px rgba(26, 38, 72, .025);}
.doc-top {display: flex; gap: 22px; align-items: flex-start; justify-content: space-between;}
.doc-content {flex: 1; min-width: 0;}
.doc-title-row {display: flex; flex-wrap: wrap; gap: 12px; align-items: center;}
.type-label {display: inline-flex; font-size: 11px; font-weight: 800; color: #4d628e; background: #edf2fb; border-radius: 5px; padding: 5px 7px; line-height: 1; letter-spacing: .3px;}
.summary {font-size: 14px; line-height: 1.85; color: #647084; white-space: pre-line; margin: 13px 0 13px; overflow-wrap: anywhere;}
.tags {display: flex; flex-wrap: wrap; gap: 6px;}
.tag {font-size: 12px; line-height: 1.5; color: #3567a8; background: #eff5fc; border-radius: 5px; padding: 3px 9px;}
.meta {display: flex; flex-wrap: wrap; gap: 7px 18px; color: #95a0b0; font-size: 12px; margin-top: 16px; overflow-wrap: anywhere;}
.pagination {display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 25px; font-size: 13px; color: #647084;}
.empty {text-align: center; border: 1px dashed #cbd6e4; background: #fff; padding: 72px 24px; border-radius: 12px;}
.empty-symbol {font-size: 45px; line-height: 1; color: #9aadc9; margin-bottom: 18px;}
.empty p {color: #8793a4; font-size: 14px;}
.empty .button {margin-top: 10px;}
.page-heading {padding: 56px 0 32px;}
.page-heading h1 {font-size: 34px;}
.toolbar {display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; font-size: 14px;}
.table-scroll {overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;}
.admin-table {width: 100%; border-collapse: collapse; font-size: 14px;}
.admin-table thead {background: #f5f7fb; color: #627185; text-align: left;}
.admin-table th, .admin-table td {border-bottom: 1px solid #eef1f6; padding: 18px; vertical-align: middle;}
.admin-table tr:last-child td {border-bottom: 0;}
.admin-table td:first-child {min-width: 260px;}
.admin-table .smallprint {font-size: 12px; margin-top: 5px; overflow-wrap: anywhere;}
.admin-table td.actions {display: flex; gap: 6px; white-space: nowrap;}
.inline-form {display: inline;}
.form-card {max-width: 760px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 32px; margin-bottom: 56px;}
.edit-form {display: grid; gap: 23px;}
.field {display: grid; gap: 9px;}
.field label {font-weight: 680; font-size: 14px;}
.field input, .field textarea {width: 100%;}
.field textarea {resize: vertical; min-height: 132px; line-height: 1.6;}
.field input[type="file"] {background: #fafbfe; border-style: dashed; padding: 16px;}
.required {color: #cb3651;}
.help {color: #9aA4b0; font-size: 12px;}
.form-actions {display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #edf0f6; margin-top: 2px; padding-top: 24px;}
.alert {padding: 13px 16px; border-radius: 9px; margin-bottom: 24px; font-size: 14px;}
.alert.error {background: #fff1f0; color: #983a39; border: 1px solid #ffccc7;}
.alert.success {background: #eefbf4; color: #236f4b; border: 1px solid #c7e8d5;}
.file-brief {display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; padding: 14px; background: #f7f9fc; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere;}
.file-brief a {margin-left: auto; white-space: nowrap;}
.footer {padding-top: 18px; padding-bottom: 34px; color: #9ba6b5; border-top: 1px solid #e9edf3; font-size: 12px;}
.sr-only {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;}
@media(max-width: 720px){.wrap {padding-left: 16px; padding-right: 16px;} .nav {min-height: 66px; gap: 15px;} .brand {font-size: 16px;} .brand-icon {width: 30px; height: 30px; font-size: 19px;} .nav nav {gap: 12px;} .nav nav a {font-size: 12px;} .hero {padding: 48px 0 45px;} .search-box {flex-wrap: wrap;} .search-box input {flex-basis: 100%;} .search-box select {flex: 1;} .doc-top {display: block;} .document {padding: 20px 17px;} .document .button.download {margin-top: 18px; width: 100%;} .results-head {align-items: flex-start;} .page-heading {padding-top: 34px;} .form-card {padding: 21px 17px;} .admin-table td.actions {display: table-cell;} .admin-table td.actions .button {margin: 2px;} }
/* Lightweight language selector, responsive for English and Chinese labels. */
.nav-tools {display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; column-gap:20px; row-gap:9px;}
.language-switch {display:inline-flex; align-items:center; gap:2px; padding:3px; border-radius:9px; background:#f1f5fb; white-space:nowrap;}
.language-switch a {border-radius:6px; color:#647084; font-size:12px; padding:6px 9px;}
.language-switch a[aria-current="true"] {background:#fff; color:#164b96; box-shadow:0 1px 3px rgba(25,40,68,.12); font-weight:750;}
.language-switch a:hover {text-decoration:none; color:#134e91;}
@media(max-width:900px){.nav {flex-wrap:wrap; justify-content:center; padding-top:14px; padding-bottom:14px;}.nav-tools {justify-content:center;}}
@media(max-width:480px){.nav-tools {gap:10px 12px;}.nav-tools nav {gap:14px;}.nav-tools nav a {font-size:12px;}.language-switch a {padding:6px 9px;}}

/* Small neutral explanation for semantic candidates. */
.search-match{display:inline-block;margin-top:4px;margin-bottom:4px;color:var(--muted, #64748b);font-size:.75rem}
