:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --page: #f5f7fa;
  --orange: #f97316;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--page); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
img { max-width: 100%; }
.shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-topbar { background: #fff; border-bottom: 1px solid #edf2f7; }
.topbar-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { color: #1d4ed8; font-size: 22px; line-height: 1.2; }
.brand-copy small { margin-top: 3px; color: #64748b; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.plain-action, .primary-action { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.plain-action { border: 1px solid #cbd5e1; color: #475569; }
.primary-action { background: var(--blue); color: #fff; }

.search-hero { background: linear-gradient(135deg, #173a8f, #1d4ed8 58%, #3b82f6); color: #fff; }
.search-inner { padding: 20px 16px 25px; text-align: center; }
.search-inner h2 { margin: 0 0 13px; font-size: 28px; line-height: 1.3; }
.site-search { width: min(700px, 100%); margin: 0 auto; display: flex; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .22); }
.site-search input { min-width: 0; flex: 1; height: 48px; border: 0; padding: 0 18px; outline: 0; color: var(--ink); }
.site-search input:focus { box-shadow: inset 0 0 0 2px #93c5fd; }
.site-search button { width: 110px; border: 0; background: var(--orange); color: #fff; font-weight: 700; cursor: pointer; }
.site-search button:hover { background: #ea580c; }
.hot-searches { min-height: 20px; margin-top: 9px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.72); font-size: 12px; }
.hot-searches a:hover { color: #fff; text-decoration: underline; }

.main-nav { position: relative; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.nav-inner { min-height: 50px; display: flex; align-items: center; gap: 18px; overflow-x: auto; }
.category-label { flex: 0 0 auto; padding: 8px 14px; border: 1px solid #bfdbfe; border-radius: 7px; background: #eff6ff; color: #1e40af; font-size: 14px; font-weight: 800; }
.nav-links { display: flex; align-items: stretch; gap: 5px; }
.nav-links a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-bottom: 2px solid transparent; color: #475569; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); background: #f8fbff; }

.page-main { flex: 1; padding: 22px 0 54px; }
.breadcrumb { margin-bottom: 14px; color: #64748b; font-size: 13px; }
.breadcrumb a:hover { color: var(--blue); }
.panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 7px 22px rgba(15,23,42,.04); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading a { color: var(--blue); font-size: 13px; }

.home-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 240px; gap: 16px; }
.category-panel { padding: 10px 0; }
.category-panel h1 { margin: 0; padding: 8px 16px 12px; font-size: 17px; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 8px 16px; color: #334155; font-size: 14px; border-top: 1px solid #f1f5f9; }
.category-list a:hover { color: var(--blue); background: #eff6ff; }
.category-list em { color: #94a3b8; font-size: 12px; font-style: normal; }
.home-poster { min-height: 338px; position: relative; overflow: hidden; border-radius: 8px; background: #173a8f; }
.home-poster img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.poster-overlay { position: relative; z-index: 1; min-height: 338px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; background: linear-gradient(180deg, transparent 38%, rgba(5,20,58,.86)); }
.poster-overlay h1 { max-width: 600px; margin: 0 0 8px; font-size: 28px; line-height: 1.35; }
.poster-overlay p { margin: 0; color: #dbeafe; line-height: 1.7; }
.entry-panel { padding: 16px; }
.entry-panel h2 { margin: 0 0 12px; font-size: 17px; }
.entry-list { display: grid; gap: 9px; }
.entry-link { min-height: 62px; display: flex; flex-direction: column; justify-content: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.entry-link strong { font-size: 14px; }
.entry-link span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.entry-link:hover { border-color: #93c5fd; background: #eff6ff; color: var(--blue); }

.home-content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 18px; }
.latest-panel, .stats-panel { padding: 20px; }
.compact-notices { margin: 0; padding: 0; list-style: none; }
.compact-notice { display: grid; grid-template-columns: 92px minmax(0,1fr) 92px; align-items: center; gap: 13px; min-height: 54px; border-top: 1px solid #edf2f7; }
.compact-notice:first-child { border-top: 0; }
.compact-notice .badge { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2563eb; font-size: 12px; }
.compact-notice a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e293b; font-size: 14px; }
.compact-notice a:hover { color: var(--blue); }
.compact-notice time { text-align: right; color: #94a3b8; font-size: 12px; }
.stats-hero { padding: 16px; border-radius: 7px; background: #eff6ff; }
.stats-hero strong { display: block; color: #1d4ed8; font-size: 30px; }
.stats-hero span { color: #64748b; font-size: 12px; }
.facet-title { margin: 18px 0 8px; font-size: 14px; }
.facet-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.facet-cloud a { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: #475569; font-size: 12px; }
.facet-cloud a:hover { border-color: #93c5fd; color: var(--blue); background: #eff6ff; }

.filter-panel { padding: 18px 20px; margin-bottom: 18px; }
.filter-row { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 12px; align-items: start; padding: 9px 0; }
.filter-label { padding-top: 7px; color: #64748b; font-size: 13px; text-align: right; }
.filter-options { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 30px; display: inline-flex; align-items: center; padding: 4px 11px; border: 1px solid #d7dce3; border-radius: 6px; color: #334155; font-size: 13px; }
.filter-chip:hover, .filter-chip.active { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.current-query { margin: 0 0 16px; color: #475569; font-size: 14px; }
.current-query strong { color: #1d4ed8; }
.result-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.result-head h1 { margin: 0; font-size: 20px; }
.result-head span { color: #64748b; font-size: 13px; }
.notice-list { overflow: hidden; margin: 0; padding: 0; list-style: none; }
.notice-card { padding: 20px 22px; border-top: 1px solid var(--line); }
.notice-card:first-child { border-top: 0; }
.notice-card:hover { background: #fbfdff; box-shadow: inset 3px 0 var(--blue); }
.notice-card h2 { margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.notice-card h2 a:hover { color: var(--blue); }
.notice-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.tag { min-height: 25px; display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid #bfdbfe; border-radius: 5px; background: #eff6ff; color: #2563eb; font-size: 12px; }
.tag.city { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; color: #64748b; font-size: 13px; line-height: 1.7; }
.notice-meta strong { color: #334155; font-weight: 400; }
.empty-state { padding: 64px 20px; text-align: center; color: #64748b; }
.empty-state strong { display: block; margin-bottom: 7px; color: #334155; font-size: 18px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; }
.page-link, .page-status { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 5px 14px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #475569; font-size: 13px; }
.page-link:hover { border-color: #93c5fd; color: var(--blue); }

.notice-head { padding: 25px 28px; border-left: 4px solid var(--blue); }
.notice-head h1 { margin: 0; font-size: 27px; line-height: 1.5; }
.notice-summary { margin: 15px 0 0; color: #52677f; font-size: 14px; line-height: 1.8; }
.detail-section { margin-top: 17px; padding: 22px 28px; }
.detail-section h2 { margin: 0 0 16px; font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; margin: 0; }
.fact { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf2f7; }
.fact dt { color: #64748b; }
.fact dd { min-width: 0; margin: 0; color: #253b55; overflow-wrap: anywhere; }
.detail-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-actions span { color: #64748b; font-size: 13px; }
.detail-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 17px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; white-space: nowrap; }
.excerpt { margin: 0; color: #455b73; line-height: 1.9; white-space: pre-line; }
.related-list { margin: 0; padding: 0; list-style: none; }
.related-list li { border-top: 1px solid #edf2f7; }
.related-list li:first-child { border-top: 0; }
.related-list a { min-height: 48px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; color: #27496d; }
.related-list a:hover { color: var(--blue); }
.related-list time { color: #94a3b8; font-size: 12px; }

.not-found { max-width: 680px; margin: 56px auto; padding: 48px 24px; text-align: center; }
.not-found strong { display: block; color: #cbd5e1; font-size: 72px; }
.not-found h1 { margin: 4px 0 10px; font-size: 24px; }
.not-found p { margin: 0 0 22px; color: #64748b; }
.not-found a { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 18px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; }

.site-footer { margin-top: auto; padding: 24px 16px; background: #050505; color: #64748b; font-size: 12px; text-align: center; }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.site-footer a:hover { color: #38bdf8; }
.footer-sep { color: #334155; }

@media (max-width: 980px) {
  .home-grid { grid-template-columns: 210px minmax(0,1fr); }
  .entry-panel { grid-column: 1 / -1; }
  .entry-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-content { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1280px); }
  .topbar-inner { min-height: 58px; }
  .brand img { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { display: none; }
  .plain-action, .primary-action { min-height: 32px; padding: 0 11px; }
  .search-inner { padding: 19px 5px 22px; }
  .search-inner h2 { font-size: 21px; }
  .site-search input { height: 44px; padding: 0 12px; font-size: 13px; }
  .site-search button { width: 76px; }
  .nav-inner { width: 100%; padding: 0 10px; gap: 8px; }
  .category-label { display: none; }
  .nav-links a { padding: 0 12px; }
  .page-main { padding-top: 14px; }
  .home-grid { grid-template-columns: 1fr; }
  .category-panel { order: 2; }
  .category-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-list li:nth-child(n+7) { display: none; }
  .home-poster { min-height: 248px; }
  .poster-overlay { min-height: 248px; padding: 20px; }
  .poster-overlay h1 { font-size: 22px; }
  .entry-panel { grid-column: auto; }
  .entry-list { grid-template-columns: 1fr; }
  .compact-notice { grid-template-columns: minmax(0,1fr) 82px; padding: 9px 0; }
  .compact-notice .badge { grid-column: 1 / -1; }
  .latest-panel, .stats-panel { padding: 16px; }
  .filter-panel { padding: 13px; }
  .filter-row { grid-template-columns: 1fr; gap: 7px; }
  .filter-label { padding: 0; text-align: left; font-weight: 700; }
  .notice-card { padding: 17px 16px; }
  .notice-card h2 { font-size: 16px; }
  .notice-head, .detail-section { padding: 19px 17px; }
  .notice-head h1 { font-size: 21px; }
  .facts { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 86px minmax(0,1fr); }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .related-list a { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .footer-sep { display: none; }
  .footer-inner { flex-direction: column; }
}
