:root {
  --primary: #0d6efd;
  --primary-dark: #0958cf;
  --ink: #172033;
  --muted: #667085;
  --line: #e2e8f0;
  --surface: #fff;
  --canvas: #f6f7fb;
}

* { box-sizing: border-box; }
body { background: var(--canvas); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; min-height: 100vh; }
a { color: inherit; }

.main-nav { align-items: center; background: var(--primary); color: #fff; display: flex; gap: 16px; height: 52px; padding: 0 16px; position: relative; }
.main-nav__brand { align-items: center; display: flex; flex: 0 0 auto; gap: 8px; text-decoration: none; }
.main-nav__mark { align-items: center; background: rgba(255,255,255,.16); border-radius: 8px; display: inline-flex; font-size: 1.05rem; height: 32px; justify-content: center; width: 32px; }
.main-nav__brand-text { font-size: 1rem; font-weight: 750; white-space: nowrap; }
.main-nav__links { align-items: center; display: flex; gap: 16px; height: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav__links::-webkit-scrollbar { display: none; }
.main-nav__links a { align-items: center; border-bottom: 2px solid transparent; display: inline-flex; flex: 0 0 auto; gap: 4px; line-height: 1.5; opacity: .88; padding: 0; text-decoration: none; white-space: nowrap; }
.main-nav__links a > i { font-size: .9rem; }
.main-nav__links a:hover, .main-nav__links a.active { border-bottom-color: #fff; opacity: 1; }
.main-nav__links a.active { font-weight: 600; }
.main-nav__region-switch { flex: 0 0 auto; margin-left: auto; position: relative; z-index: 20; }
.main-nav__region-switch details, .main-nav__region-switch summary { margin: 0; }
.main-nav__region-switch summary { align-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 6px; color: #fff; cursor: pointer; display: flex; font-size: .78rem; font-weight: 600; gap: 4px; min-height: 30px; padding: 4px 7px; user-select: none; white-space: nowrap; }
.main-nav__region-switch summary::-webkit-details-marker { display: none; }
.main-nav__region-switch summary::marker { content: ""; }
.main-nav__region-switch summary:hover, .main-nav__region-switch details[open] summary { background: rgba(255,255,255,.12); }
.main-nav__region-switch summary:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.28); outline: none; }
.main-nav__region-chevron { font-size: .68rem; transition: transform .16s ease; }
.main-nav__region-switch details[open] .main-nav__region-chevron { transform: rotate(180deg); }
.main-nav__region-short { display: none; }
.main-nav__region-menu { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(15,23,42,.16); color: var(--ink); min-width: 136px; padding: 5px; position: absolute; right: 0; top: calc(100% + 5px); }
.main-nav__region-menu a, .main-nav__region-current { align-items: center; border-radius: 5px; color: #344054; display: flex; font-size: .82rem; gap: 8px; min-height: 34px; padding: 6px 8px; text-decoration: none; white-space: nowrap; }
.main-nav__region-current { background: #eef4ff; color: var(--primary); font-weight: 700; }
.main-nav__region-menu a:hover { background: #f5f7fa; color: var(--primary); }
.main-nav__region-external { font-size: .72rem; margin-left: auto; opacity: .72; }
.short-label { display: none; }

.page-shell { margin: 0 auto; max-width: 1680px; padding: 18px 24px 30px; }
.page-header { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 14px; }
.page-header h1 { font-size: 1.32rem; font-weight: 800; margin: 0; }
.page-header p { color: var(--muted); font-size: .88rem; font-weight: 550; margin: 5px 0 0; }
.page-header p strong { color: var(--primary); }
.region-chip { background: #eaf2ff; border: 1px solid #c7dcff; border-radius: 999px; color: var(--primary-dark); font-size: .82rem; font-weight: 700; padding: 8px 13px; }
.surface { background: var(--surface); border: 1px solid #e1e6ee; border-radius: 10px; }

.dashboard-section-head { align-items: center; display: flex; justify-content: space-between; margin: 18px 0 10px; }
.dashboard-section-head h2 { font-size: .98rem; font-weight: 800; margin: 0; }
.dashboard-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-card { background: #fff; border: 1px solid #e1e6ee; border-radius: 8px; display: block; min-height: 132px; padding: 14px 16px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dashboard-card:hover { border-color: #a9c9fb; box-shadow: 0 8px 20px rgba(13,110,253,.08); transform: translateY(-1px); }
.dashboard-card__head { align-items: center; color: var(--muted); display: flex; font-size: .78rem; font-weight: 700; justify-content: space-between; line-height: 1.35; }
.dashboard-card__head i { align-items: center; background: #eef5ff; border-radius: 6px; color: var(--primary); display: inline-flex; font-size: .82rem; padding: 6px; }
.dashboard-card__total { align-items: baseline; display: flex; gap: 5px; margin-top: 8px; }
.dashboard-card__total strong { color: var(--ink); font-size: 1.38rem; font-weight: 800; line-height: 1.2; }
.dashboard-card__total small { align-items: center; color: var(--muted); display: inline-flex; font-size: .78rem; gap: 4px; }
.dashboard-new-badge { animation: dashboardNewPulse 1.2s ease-in-out infinite; background: #dc3545; border-radius: 999px; color: #fff; font-size: 9px; font-style: normal; font-weight: 750; line-height: 1; padding: 2px 5px; }
@keyframes dashboardNewPulse { 0%,100% { opacity:.95; transform:scale(.98); } 50% { opacity:1; transform:scale(1.05); } }
.dashboard-card__sub { color: #475467; display: block; font-size: .76rem; font-weight: 600; line-height: 1.4; margin-top: 5px; }
.dashboard-card__sub strong { color: var(--primary-dark); font-weight: 800; }
.dashboard-card__latest { color: var(--muted); white-space: nowrap; }
.latest-surface { margin-top: 16px; padding: 16px; }
.surface-header h2, .notice-content h2 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.surface-header p { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }
.latest-list { margin-top: 12px; }
.latest-item { align-items: center; border-top: 1px solid #edf1f5; display: grid; gap: 12px; grid-template-columns: auto minmax(0, 1fr) 90px 100px; padding: 12px 4px; text-decoration: none; }
.latest-item:first-child { border-top: 0; }
.latest-item:hover .latest-item__title { color: var(--primary-dark); text-decoration: underline; }
.latest-item__title { font-size: .88rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-item__city, .latest-item time { color: var(--muted); font-size: .78rem; text-align: right; }

.module-badge { background: #eaf2ff; border-radius: 5px; color: #175ab2; display: inline-flex; font-size: .7rem; font-weight: 700; padding: 4px 7px; white-space: nowrap; }
.module-badge--publicity { background: #f3edff; color: #6b3ec1; }
.module-badge--winning { background: #e9f8ef; color: #168148; }
.module-badge--zfcg { background: #fff4df; color: #a25a00; }
.module-badge--zfcg_result { background: #e9f7f8; color: #14737b; }

.query-summary { display: flex; gap: 8px; }
.query-summary span { align-items: baseline; background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; color: var(--muted); display: flex; font-size: .78rem; font-weight: 700; min-width: 110px; padding: 10px 12px; }
.query-summary strong { color: var(--ink); font-size: 1rem; margin-left: auto; }
.query-surface { padding: 14px; }
.filter-panel { align-items: end; background: #f8fafc; border: 1px solid #e3e9f1; border-radius: 8px; display: grid; gap: 10px; grid-template-columns: minmax(280px, 2fr) minmax(210px, 1fr) auto auto; margin-bottom: 12px; padding: 12px; }
.filter-field label { color: #526079; display: block; font-size: .72rem; font-weight: 700; margin: 0 0 5px 2px; }
.filter-field input, .filter-field select { background: #fff; border: 1px solid #d8e0ec; border-radius: 7px; color: var(--ink); font: inherit; font-size: .86rem; height: 39px; padding: 0 10px; width: 100%; }
.filter-field input:focus, .filter-field select:focus { border-color: #86b7fe; box-shadow: 0 0 0 3px rgba(13,110,253,.12); outline: 0; }
.filter-more { position: relative; }
.filter-more summary { align-items: center; border: 1px solid #d8e0ec; border-radius: 7px; color: #526079; cursor: pointer; display: flex; font-size: .84rem; font-weight: 650; gap: 6px; height: 39px; list-style: none; padding: 0 12px; white-space: nowrap; }
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more__grid { background: #fff; border: 1px solid #d8e0ec; border-radius: 9px; box-shadow: 0 12px 30px rgba(16,24,40,.14); display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(170px,1fr)); padding: 12px; position: absolute; right: 0; top: 44px; width: 520px; z-index: 20; }
.filter-actions { display: flex; gap: 7px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 7px; display: inline-flex; font-size: .84rem; font-weight: 650; gap: 6px; height: 39px; justify-content: center; padding: 0 13px; text-decoration: none; white-space: nowrap; }
.button--primary { background: var(--primary); color: #fff; }
.button--primary:hover { background: var(--primary-dark); color: #fff; }
.button--secondary { background: #fff; border-color: #cfd8e5; color: #526079; }
.button--secondary:hover { background: #f3f6fa; color: var(--ink); }

.result-table-wrap { border: 1px solid #e8edf5; border-radius: 10px; overflow-x: auto; }
.result-table { border-collapse: separate; border-spacing: 0; font-size: .84rem; table-layout: fixed; width: 100%; }
.result-table th { background: #f8fafc; border-bottom: 2px solid #343a40; color: var(--muted); font-size: .76rem; padding: 11px 8px; text-align: center; white-space: nowrap; }
.result-table td { border-bottom: 1px solid #edf1f5; border-right: 1px solid #edf1f5; color: #2f394b; font-weight: 500; line-height: 1.45; overflow: hidden; padding: 9px 8px; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.result-table td:last-child { border-right: 0; }
.result-table tr:nth-child(even) td { background: #fafcff; }
.result-table tbody tr:hover td { background: #f3f7ff; }
.result-table th:first-child, .result-table td:first-child { text-align: center; width: 9%; }
.result-table th:nth-child(2), .result-table td:nth-child(2) { width: 35%; }
.result-table--tender th:nth-child(2), .result-table--tender td:nth-child(2) { width: 44%; }
.result-table--tender th:nth-child(3), .result-table--tender td:nth-child(3) { width: 25%; }
.result-table--tender th:nth-child(4), .result-table--tender td:nth-child(4) { width: 10%; }
.result-table--tender th:nth-child(5), .result-table--tender td:nth-child(5) { width: 12%; }
.result-table--publicity th:nth-child(2), .result-table--publicity td:nth-child(2),
.result-table--winning th:nth-child(2), .result-table--winning td:nth-child(2) { width: 45%; }
.result-table--publicity th:nth-child(3), .result-table--publicity td:nth-child(3),
.result-table--winning th:nth-child(3), .result-table--winning td:nth-child(3) { width: 26%; }
.result-table--publicity th:nth-child(4), .result-table--publicity td:nth-child(4),
.result-table--winning th:nth-child(4), .result-table--winning td:nth-child(4) { width: 11%; }
.result-table--publicity th:nth-child(5), .result-table--publicity td:nth-child(5),
.result-table--winning th:nth-child(5), .result-table--winning td:nth-child(5) { width: 9%; }
.result-table--zfcg th:nth-child(2), .result-table--zfcg td:nth-child(2) { width: 39%; }
.result-table--zfcg th:nth-child(3), .result-table--zfcg td:nth-child(3) { width: 22%; }
.result-table--zfcg th:nth-child(4), .result-table--zfcg td:nth-child(4) { width: 10%; }
.result-table--zfcg th:nth-child(5), .result-table--zfcg td:nth-child(5) { width: 10%; }
.result-table--zfcg th:nth-child(6), .result-table--zfcg td:nth-child(6) { width: 10%; }
.result-table--zfcg_result th:nth-child(2), .result-table--zfcg_result td:nth-child(2) { width: 33%; }
.result-table--zfcg_result th:nth-child(3), .result-table--zfcg_result td:nth-child(3) { width: 19%; }
.result-table--zfcg_result th:nth-child(4), .result-table--zfcg_result td:nth-child(4) { width: 20%; }
.result-table--zfcg_result th:nth-child(5), .result-table--zfcg_result td:nth-child(5) { width: 10%; }
.result-table--zfcg_result th:nth-child(6), .result-table--zfcg_result td:nth-child(6) { width: 9%; }
.result-table .result-title a { color: #263449; font-weight: 650; text-decoration: none; }
.result-table .result-title a:hover { text-decoration: underline; }
.soft-badge { background: #f2f4f7; border-radius: 5px; color: #344054; display: inline-block; font-size: .72rem; padding: 5px 7px; }
.number-cell { text-align: right; }
.empty-cell, .empty-state { color: var(--muted); padding: 28px !important; text-align: center; }
.pagination-wrap { align-items: center; display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.pagination-wrap span { color: var(--muted); font-size: .78rem; }
.page-link-custom { border: 1px solid #d8e0ec; border-radius: 6px; color: #344054; font-size: .8rem; padding: 7px 11px; text-decoration: none; }
.page-link-custom:hover { background: #eef5ff; color: var(--primary); }
.page-link-custom.disabled { opacity: .45; pointer-events: none; }

.detail-surface { padding: 22px; }
.detail-header { align-items: flex-start; border-bottom: 1px solid #e8edf3; display: flex; gap: 20px; justify-content: space-between; padding-bottom: 18px; }
.detail-header h1 { font-size: 1.42rem; font-weight: 800; line-height: 1.5; margin: 10px 0 0; }
.detail-original-title { color: var(--muted); font-size: .82rem; margin: 8px 0 0; }
.detail-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.detail-summary { display: grid; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 18px 0; }
.detail-summary div { background: #f8fafc; border: 1px solid #e6ebf2; border-radius: 8px; min-height: 78px; padding: 12px; }
.detail-summary span, .detail-summary strong { display: block; }
.detail-summary span { color: var(--muted); font-size: .72rem; font-weight: 650; }
.detail-summary strong { font-size: .88rem; line-height: 1.5; margin-top: 7px; overflow-wrap: anywhere; }
.notice-content { border: 1px solid #e3e8ef; border-radius: 9px; overflow: hidden; }
.notice-content > header { align-items: center; background: #f4f7fb; border-bottom: 1px solid #e3e8ef; display: flex; justify-content: space-between; padding: 13px 16px; }
.notice-content > header span { color: var(--muted); font-size: .74rem; }
.notice-content__body { line-height: 1.8; padding: 18px; }
.notice-content__body p { font-size: .9rem; margin: 0 0 10px; overflow-wrap: anywhere; }
.official-document { color: #344054; font-size: .9rem; line-height: 1.8; overflow-wrap: anywhere; }
.official-document > :first-child { margin-top: 0; }
.official-document > :last-child { margin-bottom: 0; }
.official-document div, .official-document p { max-width: 100%; }
.official-document h1, .official-document h2, .official-document h3,
.official-document h4, .official-document h5, .official-document h6 {
  color: #24324a; font-size: 1rem; font-weight: 750; line-height: 1.6; margin: 22px 0 12px;
}
.official-document ul, .official-document ol { margin: 10px 0; padding-left: 1.8rem; }
.official-document blockquote { border-left: 4px solid #d7e6fb; color: #526176; margin: 14px 0; padding: 4px 14px; }
.official-document img { display: block; height: auto; margin: 14px auto; max-width: 100%; }
.official-document a { color: var(--primary); overflow-wrap: anywhere; }
.official-document__table-wrap { margin: 14px 0 18px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.official-document__table { border-collapse: collapse; color: #344054; font-size: .82rem; min-width: 680px; width: 100%; }
.official-document__table .official-document__table { margin: 0; min-width: 100%; }
.official-document__table th, .official-document__table td { border: 1px solid #e2e7ef; line-height: 1.55; min-width: 110px; padding: 8px 10px; vertical-align: top; }
.official-document__table th { background: #f2f6fb; color: #263449; font-weight: 700; }
.document-heading { border-left: 4px solid var(--primary); color: #24324a; font-size: 1rem; font-weight: 750; margin: 22px 0 12px; padding-left: 10px; }
.document-heading:first-child { margin-top: 0; }
.document-list-item { display: flex; gap: 8px; padding-left: 8px; }
.document-list-item > span { color: var(--primary); flex: 0 0 auto; }
.document-table-wrap { border: 1px solid #dfe5ee; border-radius: 7px; margin: 14px 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.document-table { border-collapse: collapse; color: #344054; font-size: .82rem; min-width: 680px; width: 100%; }
.document-table th, .document-table td { border: 1px solid #e2e7ef; line-height: 1.55; min-width: 110px; padding: 8px 10px; text-align: left; vertical-align: top; }
.document-table th { background: #f2f6fb; color: #263449; font-weight: 700; }
.document-table tr:nth-child(even) td { background: #fbfcfe; }
.detail-source { color: var(--muted); display: flex; font-size: .72rem; gap: 18px; justify-content: space-between; padding: 14px 4px 0; }
.site-footer { color: #8b96a8; display: flex; font-size: .7rem; gap: 18px; justify-content: center; padding: 0 20px 22px; }

@media (max-width: 1199.98px) {
  .dashboard-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .dashboard-card { grid-column: span 2; }
  .dashboard-card:nth-child(n+4) { grid-column: span 3; }
  .filter-panel { grid-template-columns: minmax(240px,2fr) minmax(190px,1fr) auto; }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .detail-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  .main-nav { gap: 14px; padding: 0 14px; }
  .main-nav__links { gap: 14px; }
  .full-label { display: none; }
  .short-label { display: inline; }
  .main-nav__region-full { display: none; }
  .main-nav__region-short { display: inline; }
  .page-shell { padding-left: 14px; padding-right: 14px; }
  .filter-panel { grid-template-columns: 1fr 1fr auto; }
  .detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
  .main-nav { display: block; height: auto; padding: 9px 12px 0; }
  .main-nav__brand { height: 38px; max-width: calc(100% - 80px); }
  .main-nav__region-switch { margin: 0; position: absolute; right: 12px; top: 10px; }
  .main-nav__region-switch summary { min-height: 30px; padding: 4px 6px; }
  .main-nav__region-menu { top: calc(100% + 49px); }
  .main-nav__mark { height: 31px; width: 31px; }
  .main-nav__links { height: 46px; margin-top: 3px; }
  .main-nav__links a { font-size: .78rem; gap: 4px; }
  .main-nav__links .full-label { display: inline; }
  .main-nav__links .short-label { display: none; }
  .page-shell { padding: 13px 10px 22px; }
  .page-header { align-items: flex-start; }
  .page-header h1 { font-size: 1.14rem; }
  .page-header p { font-size: .78rem; line-height: 1.55; }
  .region-chip { display: none; }
  .dashboard-grid { gap: 8px; grid-template-columns: repeat(6,minmax(0,1fr)); }
  .dashboard-card { grid-column: span 2; min-height: 126px; padding: 11px; }
  .dashboard-card:nth-child(n+4) { grid-column: span 3; }
  .dashboard-card__head, .dashboard-card__sub { font-size: .7rem; }
  .dashboard-card__head { align-items: flex-start; gap: 4px; }
  .dashboard-card__head strong { min-width: 0; }
  .dashboard-card__head i { flex: 0 0 auto; font-size: .72rem; padding: 5px; }
  .dashboard-card__total { flex-wrap: nowrap; gap: 3px; }
  .dashboard-card__total strong { font-size: clamp(1.05rem,4.7vw,1.22rem); }
  .dashboard-card__total small { flex: 0 0 auto; font-size: .68rem; gap: 3px; }
  .dashboard-mobile-label { font-size: 0; }
  .dashboard-mobile-label::after { content: attr(data-mobile-label); font-size: .7rem; }
  .dashboard-card__latest { font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-new-badge { font-size: 0; min-height: 14px; min-width: 16px; padding: 2px 4px; }
  .dashboard-new-badge::after { content: "新"; font-size: 9px; }
  .latest-surface { padding: 12px; }
  .latest-item { grid-template-columns: auto minmax(0,1fr) 76px; padding: 11px 0; }
  .latest-item__city { display: none; }
  .latest-item time { font-size: .7rem; }
  .query-header { display: block; }
  .query-summary { margin-top: 10px; }
  .query-summary span { flex: 1; min-width: 0; }
  .query-surface { padding: 10px; }
  .filter-panel { display: grid; grid-template-columns: 1fr; }
  .filter-more__grid { box-shadow: none; grid-template-columns: 1fr; margin-top: 8px; position: static; width: 100%; }
  .filter-actions { grid-column: auto; }
  .filter-actions .button { flex: 1; }
  .result-table-wrap { border: 0; overflow: visible; }
  .result-table, .result-table tbody { display: block; }
  .result-table thead { display: none; }
  .result-table tr { background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; display: grid; gap: 7px 10px; grid-template-columns: 88px minmax(0,1fr); margin-bottom: 9px; overflow: hidden; padding: 11px 12px; }
  .result-table tr:nth-child(even) td, .result-table tbody tr:hover td { background: transparent; }
  .result-table td, .result-table th:first-child, .result-table td:first-child, .result-table th:nth-child(2), .result-table td:nth-child(2) { border: 0; display: block; font-size: .78rem; overflow: visible; padding: 0; text-align: left; text-overflow: clip; white-space: normal; width: auto; }
  .result-table td::before { color: var(--muted); content: attr(data-label); display: block; font-size: .67rem; font-weight: 650; }
  .result-table .result-title { grid-column: 1 / -1; grid-row: 1; }
  .result-table .result-title::before { display: none; }
  .result-table .result-title a { font-size: .88rem; line-height: 1.5; }
  .result-table .empty-cell { grid-column: 1 / -1; padding: 26px !important; }
  .number-cell { text-align: left; }
  .detail-surface { padding: 14px; }
  .detail-header { display: block; }
  .detail-header h1 { font-size: 1.16rem; }
  .detail-actions { margin-top: 13px; }
  .detail-actions .button { flex: 1; }
  .detail-summary { grid-template-columns: 1fr; gap: 8px; }
  .detail-summary div { min-height: 0; }
  .notice-content > header { align-items: flex-start; display: block; }
  .notice-content > header span { display: block; margin-top: 4px; }
  .notice-content__body { padding: 14px; }
  .detail-source, .site-footer { align-items: center; flex-direction: column; gap: 5px; text-align: center; }
}
