:root {
  --ink: #192d4d;
  --muted: #6c788c;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eaf1ff;
  --paper: #f3f6fb;
  --card: #ffffff;
  --line: #dfe5ef;
  --gold: #a97822;
  --gold-soft: #fff5dc;
  --shadow: 0 14px 45px rgba(30, 64, 175, 0.10);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}
button { -webkit-tap-highlight-color: transparent; }
.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;
}

.site-header {
  position: absolute;
  z-index: 2;
  width: 100%;
  color: #fff;
}
.header-inner {
  max-width: 1240px;
  height: 82px;
  padding: 0 28px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
}
.brand-mark svg { width: 25px; height: 25px; }
.header-note { color: rgba(255,255,255,.56); font-size: 13px; letter-spacing: .12em; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: #fff;
  background: #173d75;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 40%, rgba(80, 137, 220, .28), transparent 33%),
    linear-gradient(115deg, rgba(255,255,255,.025), transparent 45%);
}
.hero::after {
  content: "分区";
  position: absolute;
  right: max(4vw, calc((100vw - 1240px) / 2));
  top: 82px;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(140px, 17vw, 240px);
  line-height: 1;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.035);
  pointer-events: none;
}
.hero-inner { max-width: 1240px; padding: 130px 28px 100px; margin: auto; position: relative; z-index: 1; }
.hero-copy { max-width: 700px; }
.eyebrow { margin: 0 0 18px; color: #9dbcf0; font-size: 11px; font-weight: 700; letter-spacing: .23em; }
h1 { margin: 0; font-size: clamp(40px, 5vw, 62px); font-weight: 650; line-height: 1.17; letter-spacing: .02em; }
h1 span { color: #bed5f6; }
.hero-description { margin: 20px 0 0; color: rgba(255,255,255,.67); font-size: 16px; line-height: 1.8; }
.hero-stats { display: flex; gap: 0; margin-top: 30px; }
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 0 32px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.hero-stats span { font-size: 11px; color: rgba(255,255,255,.47); }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 420px; height: 420px; right: 7%; top: -80px; }
.orbit-two { width: 290px; height: 290px; right: 12%; top: -15px; }

.workspace { max-width: 1240px; padding: 0 28px 40px; margin: auto; }
.search-card {
  position: relative;
  z-index: 3;
  margin-top: -43px;
  padding: 22px 24px 15px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.search-form { display: flex; align-items: center; position: relative; }
.search-icon { position: absolute; left: 17px; width: 23px; height: 23px; color: #6e837e; pointer-events: none; }
.search-form input {
  width: 100%;
  height: 58px;
  padding: 0 180px 0 52px;
  color: var(--ink);
  background: #f7f9f6;
  border: 1px solid #e2e9e4;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-form input:focus { background: #fff; border-color: #7ea5e8; box-shadow: 0 0 0 4px rgba(37,99,235,.09); outline: none; }
.search-form input::placeholder { color: #95a29f; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-button {
  position: absolute;
  right: 6px;
  height: 46px;
  padding: 0 27px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.search-button:hover { background: var(--accent-dark); }
.search-button:active { transform: translateY(1px); }
.clear-search {
  position: absolute;
  right: 139px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e4eae6;
  color: #6f7d79;
  font-size: 20px;
  line-height: 1;
}
.search-examples { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: #96a19e; font-size: 12px; }
.search-examples button { padding: 2px 7px; border: 0; background: transparent; color: #70817d; font-size: 12px; }
.search-examples button:hover { color: var(--accent); text-decoration: underline; }

.filter-card { margin-top: 20px; padding: 21px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.filter-topline { display: flex; align-items: flex-end; gap: 27px; }
.filter-group { display: flex; flex-direction: column; gap: 9px; }
.filter-label { color: #7b8986; font-size: 12px; font-weight: 500; white-space: nowrap; }
.segmented { display: flex; padding: 3px; background: #f0f3ef; border-radius: 8px; }
.segmented button { min-width: 84px; height: 34px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: #6c7b78; font-size: 13px; transition: .2s; }
.segmented button.active { color: var(--accent); background: #fff; box-shadow: 0 2px 7px rgba(22,54,47,.09); font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap select {
  height: 40px;
  min-width: 130px;
  padding: 0 35px 0 13px;
  appearance: none;
  color: #344b47;
  background: #fff;
  border: 1px solid #dce4df;
  border-radius: 7px;
  font-size: 13px;
}
.select-wrap svg { position: absolute; right: 11px; top: 12px; width: 16px; height: 16px; color: #7d8b88; pointer-events: none; }
.subject-group { flex: 1; }
.subject-group select { width: 100%; max-width: 290px; }
.top-toggle { display: flex; align-items: center; gap: 9px; min-height: 40px; margin-left: auto; color: #50625e; font-size: 13px; cursor: pointer; white-space: nowrap; }
.top-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { display: block; width: 35px; height: 20px; padding: 3px; border-radius: 12px; background: #d9e0dc; transition: .2s; }
.toggle-track span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s; }
.top-toggle input:checked + .toggle-track { background: var(--accent); }
.top-toggle input:checked + .toggle-track span { transform: translateX(15px); }
.top-toggle input:focus-visible + .toggle-track { outline: 3px solid rgba(37,99,235,.25); outline-offset: 3px; }
.filter-bottomline { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; padding-top: 17px; border-top: 1px solid #edf0ed; }
.zone-filter { display: flex; align-items: center; gap: 7px; }
.zone-filter .filter-label { margin-right: 8px; }
.zone-filter button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #6a7976; font-size: 12px; }
.zone-filter button:hover { background: #f3f6f3; }
.zone-filter button.active { color: var(--accent); background: var(--accent-soft); border-color: #d5e2fa; font-weight: 600; }
.zone-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.zone-dot-1 { background: #bb5c52; }
.zone-dot-2 { background: #c28b3f; }
.zone-dot-3 { background: #528b77; }
.zone-dot-4 { background: #82908e; }
.reset-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0 5px 10px; border: 0; background: transparent; color: #86928f; font-size: 12px; }
.reset-button:hover { color: var(--accent); }
.reset-button svg { width: 15px; height: 15px; }

.results-section { margin-top: 31px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.title-with-context { display: flex; align-items: center; gap: 12px; }
.results-heading h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: .02em; }
.context-badge { padding: 4px 9px; border-radius: 5px; color: #4c6591; background: #e7eef9; font-size: 11px; }
#resultMeta { margin: 7px 0 0; color: #87938f; font-size: 12px; }
.export-button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid #d8e1db; border-radius: 7px; background: #fff; color: #526a64; font-size: 12px; }
.export-button svg { width: 17px; height: 17px; }
.export-button:hover:not(:disabled) { border-color: #9ebaae; color: var(--accent); }
.export-button:disabled { opacity: .45; cursor: not-allowed; }
.table-shell { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.results-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results-table th { padding: 13px 17px; text-align: left; color: #82908c; background: #f8faf7; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 550; letter-spacing: .03em; }
.results-table th:nth-child(1) { width: 29%; }
.results-table th:nth-child(2) { width: 12%; }
.results-table th:nth-child(3) { width: 15%; }
.results-table th:nth-child(4) { width: 11%; }
.results-table th:nth-child(5) { width: 23%; }
.results-table th:nth-child(6) { width: 10%; }
.results-table td { padding: 17px; vertical-align: middle; border-bottom: 1px solid #edf1ed; font-size: 13px; }
.results-table tr:last-child td { border-bottom: 0; }
.results-table tbody tr { transition: background .15s; }
.results-table tbody tr:hover { background: #fbfcfa; }
.journal-button { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: #213b63; font-size: 13px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.journal-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.journal-abbr { display: block; margin-top: 4px; color: #99a39f; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.issn-code { color: #586b66; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; white-space: nowrap; }
.subject-list, .zone-list, .minor-list, .flag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.subject-name { color: #526863; line-height: 1.6; font-size: 12px; }
.zone-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 37px; height: 24px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.zone-1 { color: #a4463f; background: #faece9; }
.zone-2 { color: #9a6b29; background: #fcf2e2; }
.zone-3 { color: #34705e; background: #e8f3ee; }
.zone-4 { color: #687774; background: #eef1ef; }
.minor-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 6px; border: 1px solid #e6ebe7; border-radius: 5px; color: #667873; background: #fafbfa; font-size: 10px; line-height: 1.4; }
.minor-chip strong { color: #3c5b53; font-weight: 600; }
.more-chip { color: #8b9793; font-size: 10px; align-self: center; }
.top-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid #eedcaf; border-radius: 5px; color: var(--gold); background: var(--gold-soft); font-size: 10px; font-weight: 650; }
.review-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 5px; color: #61736e; background: #edf1ee; font-size: 10px; }
.muted-dash { color: #b0b8b5; }
.no-minor { color: #a0aaa7; font-size: 11px; }

.state-card { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.state-card h3 { margin: 14px 0 6px; font-size: 16px; }
.state-card p { margin: 5px 0; color: #7f8e89; font-size: 13px; }
.state-card > span:not(.spinner) { color: #a0aaa7; font-size: 11px; }
.spinner { width: 29px; height: 29px; margin-bottom: 13px; border: 2px solid #dfe9e4; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #faece9; color: #a4463f; font-size: 22px; }
.empty-illustration { width: 62px; height: 62px; color: #9bafa8; }
.secondary-button { height: 35px; margin-top: 15px; padding: 0 15px; border: 1px solid #d7e1db; border-radius: 7px; background: #fff; color: var(--accent); font-size: 12px; }
.secondary-button:hover { background: #f2f7f4; border-color: #aac5b9; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; }
.pagination button, .pagination span { display: grid; place-items: center; min-width: 33px; height: 33px; padding: 0 8px; border-radius: 6px; font-size: 12px; }
.pagination button { border: 1px solid #dce4df; background: #fff; color: #60726c; }
.pagination button:hover:not(:disabled) { border-color: #9ebaae; color: var(--accent); }
.pagination button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination span { color: #9aa5a1; }
.page-summary { margin-right: 12px; color: #8a9692; font-size: 11px; }
.data-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 27px; color: #929d99; font-size: 11px; line-height: 1.7; }
.data-note svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; }
.data-note p { margin: 0; }
.site-footer { max-width: 1240px; margin: auto; padding: 22px 28px 28px; border-top: 1px solid #e1e6e1; display: flex; justify-content: space-between; color: #9aa4a0; font-size: 11px; }

.detail-dialog { width: min(780px, calc(100vw - 36px)); max-height: min(84vh, 850px); padding: 0; border: 0; border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(9,36,30,.25); }
.detail-dialog::backdrop { background: rgba(12,35,31,.52); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 25px; border-bottom: 1px solid #e8ede9; }
.dialog-kicker { color: #788983; font-size: 12px; letter-spacing: .08em; }
.dialog-close { width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; background: #f0f3f0; color: #6b7c77; font-size: 23px; line-height: 1; }
.dialog-close:hover { background: #e5ebe7; }
.dialog-content { padding: 25px; overflow-y: auto; max-height: calc(84vh - 140px); }
.detail-title { margin: 0; color: #193b34; font-size: 23px; line-height: 1.45; overflow-wrap: anywhere; }
.detail-flags { margin-top: 12px; }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 22px 0; padding: 8px 18px; border-radius: 9px; background: #f6f8f5; }
.detail-meta > div { display: flex; gap: 12px; padding: 10px 0; font-size: 12px; }
.detail-meta dt { min-width: 66px; color: #8b9793; }
.detail-meta dd { margin: 0; color: #425b54; overflow-wrap: anywhere; }
.detail-section { margin-top: 24px; }
.detail-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; font-size: 14px; }
.detail-section h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }
.detail-table { width: 100%; border-collapse: collapse; border: 1px solid #e4eae5; border-radius: 8px; overflow: hidden; font-size: 12px; }
.detail-table th { padding: 10px 12px; text-align: left; background: #f7f9f6; color: #84918d; font-size: 11px; font-weight: 500; }
.detail-table td { padding: 11px 12px; border-top: 1px solid #e9eeea; color: #4e645e; line-height: 1.5; }
.detail-table td:last-child { width: 85px; }
.detail-empty { padding: 17px; border-radius: 8px; background: #f7f9f6; color: #899691; font-size: 12px; line-height: 1.7; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 25px; border-top: 1px solid #e8ede9; color: #929d99; font-size: 11px; }
.dialog-footer .secondary-button { margin: 0; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 11px 18px; border-radius: 8px; color: #fff; background: #234a42; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 13px; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 900px) {
  .filter-topline { flex-wrap: wrap; gap: 18px 24px; }
  .subject-group { min-width: 220px; }
  .top-toggle { margin-left: 0; }
  .results-table th:nth-child(1) { width: 27%; }
  .results-table th:nth-child(5) { width: 25%; }
  .results-table td, .results-table th { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 700px) {
  .header-inner { height: 67px; padding: 0 18px; }
  .header-note { display: none; }
  .brand { font-size: 14px; }
  .brand-mark { width: 33px; height: 33px; }
  .hero { min-height: 424px; }
  .hero-inner { padding: 110px 20px 90px; }
  .hero::after { right: -10px; top: 130px; font-size: 150px; }
  h1 { font-size: 40px; }
  .hero-description { max-width: 320px; font-size: 14px; }
  .hero-stats { margin-top: 27px; }
  .hero-stats > div { padding: 0 15px; }
  .hero-stats strong { font-size: 15px; }
  .hero-stats span { font-size: 9px; }
  .workspace { padding: 0 14px 30px; }
  .search-card { margin-top: -39px; padding: 15px 13px 12px; border-radius: 12px; }
  .search-form { flex-wrap: wrap; gap: 9px; }
  .search-form input { height: 50px; padding: 0 39px 0 43px; font-size: 13px; }
  .search-icon { left: 13px; top: 14px; width: 21px; height: 21px; }
  .clear-search { right: 9px; top: 11px; }
  .search-button { position: static; width: 100%; height: 42px; }
  .search-examples { margin-top: 9px; }
  .filter-card { padding: 17px 15px; }
  .filter-topline { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 12px; }
  .edition-group { grid-column: 1 / -1; }
  .segmented button { flex: 1; }
  .year-group select { width: 100%; }
  .subject-group { min-width: 0; }
  .subject-group select { max-width: none; }
  .top-toggle { grid-column: 1 / -1; }
  .filter-bottomline { align-items: flex-start; gap: 10px; }
  .zone-filter { flex-wrap: wrap; gap: 4px; }
  .zone-filter .filter-label { width: 100%; margin: 0 0 4px; }
  .zone-filter button { padding: 0 9px; }
  .reset-button { margin-top: 25px; white-space: nowrap; }
  .results-section { margin-top: 25px; }
  .results-heading { align-items: flex-end; }
  .results-heading h2 { font-size: 18px; }
  .context-badge { font-size: 10px; }
  .export-button { padding: 0 10px; }
  .table-shell { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  .results-table, .results-table tbody, .results-table tr, .results-table td { display: block; width: 100%; }
  .results-table thead { display: none; }
  .results-table tr { position: relative; margin-bottom: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .results-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 7px 0; border: 0; font-size: 12px; }
  .results-table td::before { content: attr(data-label); flex: 0 0 63px; padding-top: 2px; color: #94a09c; font-size: 10px; }
  .results-table td:first-child { display: block; padding: 0 0 11px; margin-bottom: 6px; border-bottom: 1px solid #edf1ed; }
  .results-table td:first-child::before { display: none; }
  .results-table td > * { text-align: right; }
  .results-table td:first-child > * { text-align: left; }
  .journal-button { font-size: 14px; }
  .subject-list, .zone-list, .minor-list, .flag-list { justify-content: flex-end; }
  .pagination { flex-wrap: wrap; gap: 5px; }
  .page-summary { width: 100%; margin: 0 0 4px; text-align: center; }
  .site-footer { margin: 0 14px; padding: 20px 0; flex-direction: column; gap: 7px; }
  .detail-dialog { width: calc(100vw - 22px); max-height: 90vh; }
  .dialog-header, .dialog-content, .dialog-footer { padding-left: 18px; padding-right: 18px; }
  .dialog-content { max-height: calc(90vh - 138px); }
  .detail-title { font-size: 19px; }
  .detail-meta { grid-template-columns: 1fr; padding: 7px 14px; }
  .detail-meta > div { padding: 7px 0; }
  .detail-table th, .detail-table td { padding: 9px 8px; }
}

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