:root {
  --bs-accent: #bd111c;
  --bs-accent-dark: #86101a;
  --bs-ink: #333333;
  --bs-muted: #777777;
  --bs-paper: #ffffff;
  --bs-canvas: #ffffff;
  --bs-border: #dedede;
  --bs-tint: #fff5f4;
  --bs-focus: #2563a9;
  --bs-stationery: #fffdf7;
  --bs-stationery-border: #c7b99e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--bs-ink); background: var(--bs-canvas); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.6; }
.search-page { min-height: 100vh; display: flex; flex-direction: column; }
.search-page #main { flex: 1; }
.search-page .hero { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .45; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--bs-focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--bs-paper); padding: 12px; z-index: 10; }
.skip-link:focus { top: 12px; }
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hero { height: 170px; color: var(--bs-paper); background: var(--bs-accent) url("assets/search-banner.png") center 38% / cover no-repeat; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 50px; height: 55px; font-size: 16px; }
.main-nav a { color: var(--bs-paper); padding: 7px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.hero-content { width: min(740px, calc(100% - 48px)); margin: 15px auto 0; }
.search-group { display: flex; align-items: stretch; gap: 16px; }
#search-form { display: flex; flex: 1; min-width: 0; height: 40px; background: var(--bs-paper); border-radius: 3px; color: var(--bs-ink); }
.scope-select { width: 135px; position: relative; display: flex; align-items: center; border-right: 1px solid var(--bs-border); }
.scope-select select { border: 0; color: var(--bs-ink); background: transparent; appearance: none; width: 100%; height: 100%; padding: 0 35px 0 18px; border-radius: 3px 0 0 3px; font-size: 15px; cursor: pointer; }
.scope-select .icon { position: absolute; right: 13px; top: 12px; width: 16px; height: 16px; pointer-events: none; }
#query { flex: 1; width: 100%; min-width: 0; padding: 0 17px; border: 0; background: transparent; font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; color: var(--bs-ink); }
#query::placeholder { color: var(--bs-muted); }
.search-button { width: 135px; border: 0; background: var(--bs-accent-dark); color: var(--bs-paper); border-radius: 0 3px 3px 0; font-size: 19px; letter-spacing: 4px; }
.search-button:hover { background: #6e1017; }
#search-help { width: 46px; padding: 0; border: 0; border-radius: 3px; background: #f9f5ef; }
#search-help img { width: 25px; height: 25px; opacity: .8; }
.hero-motto { margin: 13px 0 0; text-align: center; font-family: "Songti SC", SimSun, serif; font-size: 24px; line-height: 1.4; font-style: italic; letter-spacing: 2px; font-weight: 600; }
.hero-motto span { margin: 0 11px; }
.stats-bar { border-bottom: 1px solid #efefef; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); width: min(880px, calc(100% - 48px)); height: 90px; align-items: center; }
.stat { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 0 16px; border: 0; background: transparent; position: relative; text-align: left; color: var(--bs-ink); }
.stat:not(:last-child)::after { content: ""; position: absolute; width: 1px; height: 42px; right: 0; top: 10px; background: var(--bs-border); }
.stat p { margin: 0; }
.stat strong { display: block; color: var(--bs-accent); font-size: 24px; font-weight: 400; line-height: 1.45; }
.stat small { font-size: 18px; margin-left: 2px; }
.stat-icon { display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bs-accent); flex-shrink: 0; }
.stat-icon .icon { width: 34px; height: 34px; filter: brightness(0) invert(1); }
.stat:hover strong { color: var(--bs-accent-dark); }
.court-navigation { padding-top: 16px; }
.section-title { text-align: center; }
.section-title h2 { display: flex; gap: 28px; justify-content: center; align-items: center; margin: 0; font-family: "Songti SC", SimSun, serif; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: 3px; }
.section-title h2::before, .section-title h2::after { content: ""; width: 68px; height: 1px; background: #cfcfcf; }
.section-title p { font-size: 14px; line-height: 1.4; color: var(--bs-muted); margin: 4px 0 0; letter-spacing: 1px; }
.court-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; margin-top: -14px; }
.map-panel { position: relative; min-width: 0; }
#china-map { display: block; width: 100%; height: auto; }
#map-hotspots { position: absolute; inset: 0; pointer-events: none; }
.map-hotspot { position: absolute; width: 40px; height: 36px; transform: translate(-50%, -50%); border: 0; border-radius: 3px; background: transparent; pointer-events: auto; }
.map-hotspot:hover { outline: 1px solid var(--bs-accent); background: #bd111c08; }
.map-hotspot:focus-visible { outline: 3px solid var(--bs-focus); background: #ffffff99; }
.court-browser { min-width: 0; padding-top: 26px; }
.region-tabs { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--bs-border); }
.region-tabs button { position: relative; flex: 1; border: 0; background: transparent; color: var(--bs-ink); padding: 9px 8px 14px; font-size: 17px; white-space: nowrap; }
.region-tabs button.selected { color: var(--bs-accent); }
.region-tabs button.selected::after { content: ""; height: 3px; position: absolute; bottom: -1px; left: 8px; right: 8px; background: var(--bs-accent); }
.region-tabs button:hover { color: var(--bs-accent); }
.court-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bs-border); }
.court-row:last-child { border-bottom: 0; }
.court-row>div { min-width: 0; }
.court-row h3 { margin: 0 0 3px; font-size: 18px; line-height: 1.4; font-weight: 500; }
.court-row p { margin: 0; color: #666666; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.court-row .case-number { font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; }
.read-link { color: var(--bs-accent); display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; font-size: 15px; }
.read-link .icon { width: 15px; height: 15px; filter: invert(17%) sepia(82%) saturate(3020%) hue-rotate(338deg) brightness(78%) contrast(98%); }
.read-link:hover, .row-title:hover, .recent-row:hover { color: var(--bs-accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.recent-documents { padding: 0 0 8px; }
.recent-heading { display: flex; align-items: center; gap: 24px; padding: 0 0 8px; }
.recent-heading h2 { margin: 0; font-family: "Songti SC", SimSun, serif; font-size: 22px; line-height: 1.3; font-weight: 500; white-space: nowrap; letter-spacing: 2px; }
.heading-rule { height: 1px; background: var(--bs-border); flex: 1; }
.recent-row { display: grid; grid-template-columns: 1.2fr 1fr 120px; gap: 20px; align-items: center; padding: 6px 0; border-top: 1px solid var(--bs-border); border-bottom: 1px solid var(--bs-border); font-size: 14px; }
.recent-row>span:nth-child(2), .recent-row time { color: var(--bs-muted); }
.recent-row time { text-align: right; font: 13px Arial, sans-serif; }
.contact { background: #f6f6f6; color: var(--bs-muted); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12px; }
.footer-inner { position: relative; display: flex; justify-content: center; align-items: center; min-height: 38px; gap: 24px; padding: 7px 0; }
.footer-contact { display: flex; align-items: center; justify-content: center; gap: 13px; flex-wrap: wrap; }
.footer-contact strong { font-weight: 400; }
.footer-date { border-left: 1px solid #c8c8c8; padding-left: 18px; }
[data-copy] { color: var(--bs-muted); border: 0; background: transparent; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.copy-status:empty { display: none; }
.copy-status { color: var(--bs-accent); }
.documents { padding: 22px 0; }
.documents-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.documents h2 { font-size: 24px; font-weight: 500; margin: 0; }
#result-count { font: 13px Arial, "PingFang SC", sans-serif; color: var(--bs-muted); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; border-bottom: 1px solid var(--bs-border); }
.filter-tabs { display: flex; gap: 20px; flex-wrap: wrap; }
.filter-tabs button, #reset { border: 0; background: transparent; padding: 8px 2px; font-size: 14px; color: var(--bs-muted); }
.filter-tabs button.selected { color: var(--bs-accent); border-bottom: 2px solid var(--bs-accent); }
#reset { color: var(--bs-accent); white-space: nowrap; }
.document-row { display: grid; grid-template-columns: 1.8fr 1.4fr 1.4fr 100px 86px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bs-border); font-size: 14px; }
.row-title { font-size: 16px; }
.row-court, .row-number, .document-row time { color: var(--bs-muted); overflow-wrap: anywhere; }
.document-row time { font: 12px Arial, sans-serif; }
.empty { text-align: center; padding: 35px 15px; }
.empty h3 { font-weight: 500; }
.empty p { color: var(--bs-muted); font-size: 14px; }
dialog { width: min(500px, calc(100% - 32px)); border: 1px solid var(--bs-border); padding: 25px 30px; color: var(--bs-ink); }
dialog::backdrop { background: #00000055; }
.dialog-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.dialog-heading h2 { margin: 0; font-size: 22px; }
.dialog-heading button { border: 1px solid var(--bs-border); background: var(--bs-paper); padding: 5px 12px; font-size: 14px; }
dialog p { font-size: 15px; }
.detail-header { background: var(--bs-accent) url("assets/search-banner.png") center 50% / cover no-repeat; color: var(--bs-paper); }
.detail-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 14px; }
.detail-main { max-width: 980px; padding-top: 28px; }
.breadcrumbs { font-size: 13px; color: var(--bs-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--bs-accent); }
.document { position: relative; isolation: isolate; border: 4px double var(--bs-stationery-border); padding: 40px 56px; background: var(--bs-stationery); }
.document::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("assets/justice-watermark.png") center 180px / 460px 460px repeat-y; opacity: .075; }
.document::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--bs-stationery-border); opacity: .45; pointer-events: none; }
.document-heading { text-align: center; border-bottom: 1px solid var(--bs-border); padding-bottom: 25px; }
.badge { color: var(--bs-accent); font-size: 13px; }
.document-heading h1 { font-size: 26px; font-weight: 500; margin: 14px 0; line-height: 1.5; }
.document-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--bs-muted); font-size: 13px; }
.document-meta p { margin: 0; }
.document-tools { display: flex; justify-content: flex-end; gap: 8px; margin: 20px 0; }
.document-tools button { border: 1px solid var(--bs-border); background: var(--bs-paper); padding: 7px 14px; font-size: 13px; }
.document-tools button:hover { color: var(--bs-accent); border-color: var(--bs-accent); }
.document-body { font-family: "Songti SC", SimSun, serif; font-size: 18px; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.document-body p { margin: 0 0 6px; text-indent: 2em; white-space: normal; }
.document-body p.source-heading { text-align: center; text-indent: 0; font-weight: 600; }
.detail-bottom { display: flex; justify-content: space-between; padding-top: 20px; margin-top: 25px; border-top: 1px solid var(--bs-border); font-size: 14px; color: var(--bs-accent); }
.detail-main>.contact { text-align: center; background: var(--bs-paper); padding: 30px 0; font-family: inherit; }
.detail-main>.contact h2 { color: var(--bs-ink); font-size: 22px; font-weight: 500; }
.qq-line { display: flex; justify-content: center; align-items: center; gap: 15px; }
.qq-line strong { font-size: 22px; font-weight: 400; color: var(--bs-ink); }
.detail-main .copy-status { display: block; min-height: 20px; }
@media (max-width: 1023px) {
  .court-grid { gap: 30px; }
  .court-browser { padding-top: 24px; }
  .region-tabs button { font-size: 15px; padding-inline: 4px; }
  .court-row { gap: 10px; flex-wrap: wrap; padding: 15px 0; }
  .court-row h3 { font-size: 16px; }
  .court-row p { font-size: 14px; }
  .court-row .case-number { font-size: 13px; }
  .document-row { grid-template-columns: 1.6fr 1fr 1fr 86px; gap: 12px; }
  .document-row .read-link { grid-column: 1/-1; justify-self: end; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 32px); }
  .hero { height: auto; min-height: 196px; }
  .main-nav { gap: 0; justify-content: space-between; height: 48px; font-size: 13px; }
  .hero-content { width: calc(100% - 32px); margin-top: 16px; padding-bottom: 22px; }
  .search-group { gap: 8px; }
  #search-form { height: 44px; flex-wrap: wrap; }
  .scope-select { width: 88px; }
  .scope-select select { padding-left: 8px; padding-right: 23px; font-size: 12px; }
  .scope-select .icon { right: 6px; width: 12px; top: 16px; height: 12px; }
  #query { padding-inline: 8px; font-size: 12px; }
  .search-button { width: 55px; font-size: 14px; letter-spacing: 1px; }
  #search-help { width: 35px; }
  #search-help img { width: 21px; height: 21px; }
  .hero-motto { font-size: 22px; margin-top: 21px; }
  .stats { height: 90px; width: calc(100% - 24px); }
  .stat { padding: 0 6px; gap: 8px; font-size: 12px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-icon .icon { width: 23px; height: 23px; }
  .stat strong { font-size: 21px; }
  .stat small { font-size: 12px; }
  .stat:not(:last-child)::after { top: 2px; height: 42px; }
  .court-navigation { padding-top: 16px; }
  .section-title h2 { font-size: 25px; gap: 18px; }
  .section-title h2::before, .section-title h2::after { width: 42px; }
  .section-title p { font-size: 12px; }
  .court-grid { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  .map-panel { max-width: 340px; width: 100%; margin-inline: auto; }
  .court-browser { padding-top: 5px; }
  .region-tabs button { padding: 10px 3px 12px; font-size: 15px; min-height: 44px; }
  .court-row { flex-wrap: nowrap; padding: 12px 0; align-items: center; }
  .court-row h3 { font-size: 17px; }
  .court-row p { font-size: 14px; }
  .court-row .read-link { font-size: 13px; gap: 3px; }
  .recent-documents { padding-top: 10px; }
  .recent-heading { gap: 16px; }
  .recent-heading h2 { font-size: 20px; }
  .recent-row { grid-template-columns: 1fr 95px; gap: 4px 10px; font-size: 13px; }
  .recent-row>span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12px; }
  .recent-row time { grid-column: 2; grid-row: 1/3; font-size: 12px; }
  .footer-inner { flex-wrap: wrap; gap: 8px; padding-block: 15px; }
  .footer-date { padding-left: 12px; }
  .documents { padding: 24px 0; }
  .filter-tabs { gap: 11px; }
  .filter-tabs button, #reset { font-size: 12px; }
  .document-row { grid-template-columns: 1fr 86px; gap: 6px 10px; }
  .row-title { grid-column: 1/-1; font-size: 16px; }
  .row-court { grid-column: 1/-1; font-size: 12px; }
  .row-number { grid-column: 1; font-size: 12px; }
  .document-row time { grid-column: 2; grid-row: 3; text-align: right; }
  .document-row .read-link { font-size: 13px; }
  .document { padding: 24px 20px; }
  .document-heading h1 { font-size: 22px; }
  .document-body { font-size: 17px; }
  .document-meta { gap: 8px; font-size: 12px; }
  .document-tools { flex-wrap: wrap; }
  .detail-main { padding-top: 20px; }
}
@media (max-width: 359px) {
  .scope-select { width: 75px; }
  .scope-select select { font-size: 11px; }
  .main-nav { font-size: 12px; }
  .stat { gap: 5px; font-size: 11px; }
  .stat-icon { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.search-page .hero { height: 310px; }
.search-page .hero-content { margin-top: 28px; width: min(820px, calc(100% - 48px)); }
.site-title { margin: 0 0 24px; text-align: center; font-family: "Songti SC", SimSun, serif; font-size: 34px; font-weight: 600; letter-spacing: 5px; line-height: 1.4; }
.search-page #search-form { height: 52px; }
.search-page .scope-select .icon { top: 18px; }
.search-page #query { font-size: 16px; }
.search-page .hero-motto { margin-top: 26px; }
.search-guide { max-width: 1040px; padding: 38px 0 48px; }
.guide-heading { text-align: center; }
.guide-heading h2 { margin: 0; font-family: "Songti SC", SimSun, serif; font-size: 27px; font-weight: 500; letter-spacing: 2px; }
.guide-heading p { margin: 8px 0 0; color: var(--bs-muted); font-size: 15px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 52px; align-items: center; margin-top: 20px; }
.guide-map img { display: block; width: 100%; height: auto; }
.guide-items { min-width: 0; }
.guide-item { display: grid; grid-template-columns: 34px 1fr; gap: 4px 20px; text-align: left; padding: 20px 0; }
.guide-item + .guide-item { border-top: 1px solid var(--bs-border); }
.guide-item img { width: 34px; height: 34px; opacity: .65; grid-row: 1 / 3; align-self: center; }
.guide-item h3 { margin: 0; font-size: 18px; font-weight: 500; }
.guide-item p { margin: 0; color: var(--bs-muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 767px) {
  .search-page .hero { height: auto; min-height: 264px; }
  .search-page .hero-content { width: calc(100% - 32px); margin-top: 22px; padding-bottom: 30px; }
  .site-title { font-size: 27px; letter-spacing: 3px; margin-bottom: 22px; }
  .document::before { background-size: 290px 290px; }
  .document::after { inset: 6px; }
  .search-page #search-form { height: 44px; }
  .search-page .scope-select .icon { top: 16px; }
  .search-page #query { font-size: 12px; }
  .search-guide { padding: 28px 0 32px; }
  .guide-heading h2 { font-size: 24px; }
  .guide-heading p { font-size: 13px; }
  .guide-grid { grid-template-columns: 1fr; margin-top: 16px; gap: 8px; }
  .guide-map { width: min(100%, 360px); margin-inline: auto; }
  .guide-item { display: grid; grid-template-columns: 32px 1fr; gap: 3px 16px; text-align: left; padding: 16px 12px; }
  .guide-item + .guide-item { border-left: 0; border-top: 1px solid var(--bs-border); }
  .guide-item img { width: 28px; height: 28px; grid-row: 1 / 3; align-self: center; }
  .guide-item h3 { margin: 0; font-size: 16px; }
  .guide-item p { font-size: 13px; }
  .guide-item br { display: none; }
}
@media print {
  body { background: white; color: black; }
  .detail-header, .breadcrumbs, .document-tools, .detail-bottom, .contact, footer, .skip-link { display: none; }
  .wrap, .detail-main { width: 100%; max-width: none; margin: 0; padding: 0; }
  .document { border: 0; padding: 0; }
  .document::before, .document::after { display: none; }
  .document-body { font-size: 12pt !important; line-height: 1.8; }
  .document-heading { border: 0; }
  .document-heading h1 { font-size: 18pt; }
  .document-meta { color: black; }
}
