/* 政策信息聚合平台：轻量政务门户视觉系统 */
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --navy-950: #062a4f;
  --navy-900: #083764;
  --navy-800: #0b477f;
  --navy-700: #155b95;
  --navy-600: #216fae;
  --blue-100: #dcebf7;
  --blue-50: #f0f6fb;
  --red-700: #a61b1f;
  --red-600: #bd252a;
  --red-50: #fff3f2;
  --gold-600: #a66b12;
  --gold-100: #f8e8c9;
  --green-700: #157347;
  --green-100: #dff2e8;
  --orange-700: #98530b;
  --orange-100: #fff0d6;
  --ink-950: #172534;
  --ink-800: #2d3f50;
  --ink-700: #42566a;
  --ink-600: #5f7182;
  --ink-500: #748493;
  --line-300: #ccd6df;
  --line-200: #dce4eb;
  --line-100: #e9eef2;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --page: #f3f6f8;
  --shadow-sm: 0 2px 8px rgba(18, 46, 72, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 49, 81, 0.1);
  --shadow-lg: 0 24px 56px rgba(5, 35, 64, 0.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --content-width: 1240px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink-800);
  background: var(--page);
  font-synthesis: none;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  line-height: 1.68;
  background:
    linear-gradient(rgba(8, 55, 100, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 55, 100, 0.022) 1px, transparent 1px),
    var(--page);
  background-size: 32px 32px;
  color: var(--ink-800);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--navy-700);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-700);
  text-decoration: underline;
}

button,
a,
input,
select,
textarea,
summary {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid rgba(33, 111, 174, 0.3);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink-950);
  line-height: 1.32;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

small,
.muted {
  color: var(--ink-600);
}

code {
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.container {
  width: min(var(--content-width), calc(100% - 40px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -80px;
  padding: 10px 18px;
  color: #fff;
  background: var(--red-700);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* 顶部品牌与导航 */
.service-strip {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.service-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.service-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-notice i,
.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72d8a3;
  box-shadow: 0 0 0 4px rgba(114, 216, 163, 0.12);
}

.site-header {
  position: relative;
  z-index: 20;
  color: #fff;
  background: linear-gradient(105deg, var(--navy-900), var(--navy-800));
  box-shadow: 0 3px 16px rgba(6, 42, 79, 0.16);
}

.site-header::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.12;
  background:
    radial-gradient(circle at 82% 8%, transparent 0 36px, rgba(255, 255, 255, 0.35) 37px 38px, transparent 39px 63px, rgba(255, 255, 255, 0.2) 64px 65px, transparent 66px),
    linear-gradient(120deg, transparent 62%, rgba(255, 255, 255, 0.12) 62.1%, transparent 62.5%);
}

.brand-row {
  position: relative;
  z-index: 1;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

.brand:hover,
.brand:focus {
  color: #fff;
  text-decoration: none;
}

.brand-mark,
.footer-mark {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--red-700);
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 3px var(--red-700), 0 4px 14px rgba(0, 0, 0, 0.14);
  font-family: STKaiti, KaiTi, serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.04em;
}

.brand-copy strong {
  color: #fff;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.19em;
}

.header-facts {
  display: flex;
  align-items: center;
}

.header-facts > span {
  min-width: 140px;
  padding: 2px 20px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.header-facts b {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-facts small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.navigation-band {
  position: relative;
  z-index: 2;
  background: rgba(4, 35, 65, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrap {
  min-height: 54px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

.primary-nav {
  display: flex;
  align-items: stretch;
}

.primary-nav a {
  position: relative;
  min-width: 116px;
  padding: 14px 24px 13px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  letter-spacing: 0.05em;
}

.primary-nav a::after {
  position: absolute;
  content: "";
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.primary-nav a.active::after {
  background: #e54747;
}

.nav-search-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

.nav-search-link:hover {
  color: #fff;
  text-decoration: none;
}

.nav-search-link span {
  font-size: 1.1rem;
}

/* 主体和页脚 */
.page-main {
  min-height: 60vh;
  padding-block: 28px 64px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy-950);
  border-top: 4px solid var(--red-700);
}

.footer-grid {
  padding-block: 42px 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.55fr 1.2fr;
  gap: 60px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-mark {
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
}

.footer-brand strong,
.footer-column strong,
.footer-disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1rem;
}

.footer-brand p,
.footer-disclaimer p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column a {
  padding-block: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.83rem;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.76rem;
}

/* 通用组件 */
.panel {
  margin-top: 22px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

button,
.button {
  min-height: 42px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--navy-700);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

button:hover,
.button:hover {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(11, 71, 127, 0.18);
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy-700);
}

.button-secondary {
  color: var(--navy-800);
  background: var(--blue-50);
  border-color: #aac4d9;
}

.button-secondary:hover {
  color: #fff;
}

.button-ghost {
  color: var(--ink-700);
  background: #fff;
  border-color: var(--line-300);
}

.button-ghost:hover {
  color: var(--navy-800);
  background: var(--blue-50);
  border-color: #9bbad2;
}

.button-block {
  width: 100%;
}

.link-button {
  min-height: auto;
  padding: 2px 4px;
  color: var(--navy-700);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.link-button:hover {
  color: var(--red-700);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}

.danger-text,
.link-button.danger-text {
  color: var(--red-700);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid #bcc9d4;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #95a2ad;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #8ca7bc;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(33, 111, 174, 0.12);
}

input:disabled {
  color: var(--ink-600);
  background: var(--surface-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 600;
}

.field > span i {
  color: var(--red-700);
  font-style: normal;
}

.field > small {
  font-size: 0.75rem;
}

.alert {
  position: relative;
  margin: 0 0 18px;
  padding: 13px 16px 13px 42px;
  color: var(--navy-800);
  background: var(--blue-50);
  border: 1px solid #c9dfef;
  border-left: 4px solid var(--navy-600);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.alert::before {
  position: absolute;
  left: 16px;
  content: "i";
  font-family: Georgia, serif;
  font-weight: 700;
}

.alert.success {
  color: var(--green-700);
  background: #edf8f2;
  border-color: #bfe2cf;
  border-left-color: var(--green-700);
}

.alert.warning {
  color: var(--orange-700);
  background: #fff8e9;
  border-color: #f0d8a8;
  border-left-color: var(--orange-700);
}

.alert.error {
  color: var(--red-700);
  background: var(--red-50);
  border-color: #edc7c6;
  border-left-color: var(--red-700);
}

.section-eyebrow {
  margin-bottom: 7px;
  color: var(--navy-600);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.section-title-row,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-title-row h2,
.section-heading h2 {
  margin-bottom: 5px;
}

.section-title-row p:last-child,
.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 0.86rem;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.result-count {
  margin-left: 7px;
  padding: 2px 9px;
  vertical-align: middle;
  color: #fff;
  background: var(--red-700);
  border-radius: 12px;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
}

/* 首页 Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 408px;
  margin-top: 2px;
  padding: 50px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 58px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(5, 42, 78, 0.99) 0%, rgba(9, 61, 108, 0.96) 55%, rgba(15, 81, 137, 0.92) 100%),
    var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 510px;
  height: 510px;
  right: -165px;
  top: -210px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(255, 255, 255, 0.025),
    0 0 0 92px rgba(255, 255, 255, 0.018),
    0 0 0 138px rgba(255, 255, 255, 0.012);
}

.hero::after {
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.08) 25.2%, transparent 25.6%),
    linear-gradient(35deg, transparent 74%, rgba(255, 255, 255, 0.07) 74.2%, transparent 74.6%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bed9ee;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-kicker > span {
  width: 24px;
  height: 2px;
  background: #e94c50;
}

.hero h1 {
  margin-bottom: 17px;
  color: #fff;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.32;
}

.hero-description {
  max-width: 720px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
  line-height: 1.9;
}

.hero-search {
  max-width: 740px;
  min-height: 60px;
  padding: 6px 6px 6px 20px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hero-search input {
  min-height: 46px;
  padding-inline: 4px;
  border: 0;
  box-shadow: none;
  font-size: 0.95rem;
}

.hero-search input:focus {
  box-shadow: none;
}

.hero-search button {
  min-height: 48px;
  padding-inline: 26px;
  background: var(--red-700);
  border-color: var(--red-700);
}

.hero-search button:hover {
  background: #871418;
  border-color: #871418;
}

.search-symbol {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid #8395a4;
  border-radius: 50%;
}

.search-symbol::after {
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  content: "";
  background: #8395a4;
  transform: rotate(45deg);
}

.quick-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.quick-links a {
  color: rgba(255, 255, 255, 0.8);
}

.quick-links a:hover {
  color: #fff;
}

.hero-service {
  position: relative;
  z-index: 1;
  padding: 23px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
}

.hero-service-title {
  margin-bottom: 15px;
  padding-bottom: 10px;
  color: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.hero-service ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-service li {
  padding-block: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-service li > span {
  color: #efb6b8;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.hero-service li div {
  display: flex;
  flex-direction: column;
}

.hero-service strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-service small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
}

/* 数据卡与层级入口 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.stat-card {
  min-height: 106px;
  padding: 20px 21px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: #b6c9d8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: STKaiti, KaiTi, serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.stat-icon.blue {
  color: var(--navy-700);
  background: var(--blue-100);
}

.stat-icon.red {
  color: var(--red-700);
  background: #f9dddd;
}

.stat-icon.gold {
  color: var(--gold-600);
  background: var(--gold-100);
}

.stat-icon.green {
  color: var(--green-700);
  background: var(--green-100);
}

.stat-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stat-card strong {
  color: var(--navy-900);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.25;
  white-space: nowrap;
}

.stat-card strong.stat-date {
  font-size: clamp(0.82rem, 1.25vw, 1.03rem);
}

.stat-card span:last-child {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: 0.78rem;
}

.portal-section {
  margin-top: 42px;
}

.level-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.level-card {
  position: relative;
  min-height: 108px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid var(--line-200);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.level-card::after {
  position: absolute;
  right: -24px;
  bottom: -35px;
  width: 96px;
  height: 96px;
  content: "";
  border: 1px solid rgba(11, 71, 127, 0.08);
  border-radius: 50%;
}

.level-card:hover {
  color: var(--ink-800);
  border-color: #a8bed0;
  border-top-color: var(--red-700);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-3px);
}

.level-card.province {
  border-top-color: #426d9e;
}

.level-card.city {
  border-top-color: #6886a5;
}

.level-card.county {
  border-top-color: #8c9dad;
}

.level-number {
  color: #b9c9d6;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.level-card div {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.level-card strong {
  color: var(--navy-900);
  font-size: 1rem;
}

.level-card small {
  margin-top: 2px;
  font-size: 0.72rem;
}

.level-card i {
  position: relative;
  z-index: 1;
  color: var(--navy-600);
  font-style: normal;
}

.latest-panel {
  margin-top: 40px;
}

.trust-strip {
  margin-top: 22px;
  padding: 20px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #edf3f7;
  border: 1px solid #d6e1e9;
  border-radius: var(--radius-md);
}

.trust-strip > div {
  padding-inline: 25px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid #cedae3;
}

.trust-strip > div:first-child {
  padding-left: 0;
}

.trust-strip > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-strip > div > span {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--navy-700);
  background: #fff;
  border: 1px solid #c2d3df;
  border-radius: 50%;
  font-weight: 700;
}

.trust-strip p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.trust-strip strong {
  color: var(--ink-800);
  font-size: 0.84rem;
}

.trust-strip small {
  font-size: 0.72rem;
}

/* 表格、标签与空状态 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  scrollbar-color: #a8b7c4 #eef2f5;
}

.data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 14px 13px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-100);
  font-size: 0.82rem;
}

.data-table th {
  color: var(--ink-700);
  background: #f3f6f8;
  border-bottom-color: #d6e0e7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #f8fbfd;
}

.policy-table {
  table-layout: fixed;
}

.policy-table th:first-child,
.policy-table td:first-child {
  width: 34%;
}

.policy-table th:nth-child(2),
.policy-table td:nth-child(2) {
  width: 17%;
}

.policy-title-cell a,
.admin-policy-title a {
  display: block;
  color: var(--ink-950);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.58;
}

.policy-title-cell a:hover,
.admin-policy-title a:hover {
  color: var(--red-700);
}

.policy-title-cell small,
.admin-policy-title small,
.source-name-cell small {
  margin-top: 4px;
  display: block;
  font-size: 0.7rem;
}

.date-cell {
  white-space: nowrap;
}

.level-badge,
.type-badge,
.status-badge,
.version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.level-badge {
  padding: 3px 8px;
  color: var(--navy-700);
  background: var(--blue-50);
  border: 1px solid #c7dce9;
}

.type-badge {
  padding: 3px 9px;
  color: #5b4779;
  background: #f2eef8;
  border: 1px solid #dbd1e8;
}

.type-badge.strong {
  padding: 5px 12px;
  color: #fff;
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.status-badge {
  padding: 3px 9px;
  color: var(--ink-600);
  background: #f0f2f4;
  border: 1px solid #d9e0e5;
}

.status-effective,
.status-success,
.status-completed {
  color: var(--green-700);
  background: #eaf7f0;
  border-color: #bfe2cf;
}

.status-expired,
.status-warning,
.status-running {
  color: var(--orange-700);
  background: #fff7e6;
  border-color: #ecd4a5;
}

.status-repealed,
.status-failed,
.status-error {
  color: var(--red-700);
  background: var(--red-50);
  border-color: #edc7c6;
}

.status-draft,
.status-unknown,
.status-muted {
  color: var(--ink-600);
  background: #f1f3f5;
  border-color: #d9e0e5;
}

.inline-note {
  margin-left: 5px;
  font-size: 0.68rem;
}

.empty-state {
  min-height: 230px;
  padding: 38px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fbfcfd;
  border: 1px dashed #cbd6df;
  border-radius: var(--radius-sm);
}

.empty-state > span {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  color: var(--navy-600);
  background: var(--blue-50);
  border-radius: 50%;
  font-family: STKaiti, KaiTi, serif;
  font-size: 1.2rem;
}

.empty-state h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.empty-state p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.82rem;
}

.empty-state.compact {
  min-height: 130px;
}

.empty-inline {
  padding: 25px;
  color: var(--ink-600);
  text-align: center;
}

/* 页面标题、面包屑、检索 */
.breadcrumb {
  margin: -4px 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 0.76rem;
}

.breadcrumb a {
  color: var(--ink-600);
}

.breadcrumb a:hover {
  color: var(--red-700);
}

.page-header,
.admin-page-header {
  position: relative;
  min-height: 128px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  background: #fff;
  border-left: 4px solid var(--red-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-header::after,
.admin-page-header::after {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  height: 100%;
  content: "";
  pointer-events: none;
  opacity: 0.6;
  background: linear-gradient(125deg, transparent, var(--blue-50));
}

.page-header > *,
.admin-page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h1,
.admin-page-header h1 {
  margin-bottom: 5px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.page-header p:last-child,
.admin-page-header p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 0.86rem;
}

.page-header-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--navy-700);
  background: var(--blue-50);
  border: 1px solid #c9dce9;
  border-radius: 50%;
  font-family: STKaiti, KaiTi, serif;
  font-size: 1.4rem;
}

.page-header-mark.small {
  width: 54px;
  height: 54px;
  font-size: 1.1rem;
}

.filter-panel {
  border-top: 3px solid var(--navy-700);
}

.filter-heading {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.filter-heading h2 {
  margin-bottom: 3px;
  font-size: 1.15rem;
}

.filter-heading p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.8rem;
}

.clear-link {
  font-size: 0.78rem;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px 14px;
}

.field-span-2 {
  grid-column: span 2;
}

.filter-actions {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.filter-actions > * {
  min-width: 112px;
}

.result-panel {
  margin-top: 22px;
}

.pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-link,
.page-current {
  min-height: 38px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-700);
  background: #fff;
  border: 1px solid var(--line-300);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.page-link:hover {
  color: #fff;
  background: var(--navy-700);
  border-color: var(--navy-700);
  text-decoration: none;
}

.page-link.disabled {
  color: #a2adb7;
  background: #f4f6f7;
  cursor: not-allowed;
}

.page-current {
  color: #fff;
  background: var(--red-700);
  border-color: var(--red-700);
  font-weight: 700;
}

.page-current small {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.7);
}

/* 政策详情 */
.policy-detail-header {
  position: relative;
  margin-top: 0;
  padding: 38px 42px 30px;
  overflow: hidden;
  border-top: 4px solid var(--red-700);
}

.policy-detail-header::after {
  position: absolute;
  width: 210px;
  height: 210px;
  right: -80px;
  top: -90px;
  content: "";
  background: var(--blue-50);
  border: 1px solid #e1edf5;
  border-radius: 50%;
}

.policy-detail-header > * {
  position: relative;
  z-index: 1;
}

.policy-labels {
  margin-bottom: 17px;
  display: flex;
  gap: 8px;
}

.policy-detail-header h1 {
  max-width: 980px;
  margin-bottom: 12px;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  letter-spacing: 0.025em;
  line-height: 1.48;
}

.document-number {
  margin-bottom: 26px;
  color: var(--red-700);
  font-family: FangSong, STFangsong, serif;
  font-size: 1rem;
}

.meta-grid {
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-200);
}

.meta-grid > div {
  min-height: 56px;
  padding: 2px 17px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-200);
}

.meta-grid > div:nth-child(4n + 1) {
  padding-left: 0;
  border-left: 0;
}

.meta-grid > div:nth-child(n + 5) {
  margin-top: 18px;
}

.meta-grid span {
  margin-bottom: 3px;
  color: var(--ink-500);
  font-size: 0.72rem;
}

.meta-grid strong {
  color: var(--ink-800);
  font-size: 0.86rem;
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.article-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.article-heading {
  min-height: 86px;
  padding: 19px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f6f9fb;
  border-bottom: 1px solid var(--line-200);
}

.article-heading h2 {
  margin: 0;
  font-size: 1.28rem;
}

.article-heading > span {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.article-content {
  padding: 34px 42px 44px;
  overflow-x: auto;
  color: #283746;
  font-family: SimSun, STSong, "Microsoft YaHei", serif;
  font-size: 1rem;
  line-height: 2.05;
  word-break: break-word;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content > :last-child {
  margin-bottom: 0;
}

.article-content p {
  margin: 0 0 1.15em;
  text-align: justify;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.8em 0 0.8em;
  color: var(--ink-950);
  font-family: "Microsoft YaHei", sans-serif;
}

.article-content h1 {
  font-size: 1.55rem;
}

.article-content h2 {
  padding-left: 12px;
  border-left: 3px solid var(--red-700);
  font-size: 1.3rem;
}

.article-content h3 {
  font-size: 1.1rem;
}

.article-content img {
  height: auto !important;
  display: block;
  margin: 22px auto;
}

.article-content table {
  width: 100% !important;
  max-width: 100%;
  margin-block: 22px;
  border-collapse: collapse;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.85rem;
  line-height: 1.65;
}

.article-content th,
.article-content td {
  height: auto !important;
  padding: 9px !important;
  border: 1px solid #bfcbd5 !important;
}

.article-content th {
  background: #f0f4f7;
}

.article-content a {
  text-decoration: underline;
}

.article-content pre {
  max-width: 100%;
  padding: 14px;
  overflow: auto;
  background: #f4f6f8;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
}

.attachment-section {
  padding: 25px 30px 30px;
  border-top: 1px solid var(--line-200);
  background: #fafcfd;
}

.attachment-section h2 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.attachment-section h2 span {
  margin-left: 6px;
  padding: 2px 7px;
  color: var(--navy-700);
  background: var(--blue-100);
  border-radius: 10px;
  font-size: 0.65rem;
}

.attachments {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.attachments li {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
}

.file-icon {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--red-700);
  background: var(--red-50);
  border: 1px solid #edcfce;
  font-size: 0.72rem;
  font-weight: 700;
}

.attachments li div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.attachments strong {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.attachments small {
  font-size: 0.7rem;
}

.detail-sidebar {
  position: sticky;
  top: 20px;
}

.detail-sidebar .panel {
  padding: 22px;
}

.source-card h2,
.trace-card h2 {
  margin-bottom: 14px;
  font-size: 1.08rem;
}

.source-name {
  margin-bottom: 15px;
  color: var(--navy-900);
  font-weight: 700;
}

.source-card dl,
.trace-card dl {
  margin: 0 0 18px;
}

.source-card dl div,
.trace-card dl div {
  padding-block: 9px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px dashed var(--line-200);
}

.source-card dt,
.trace-card dt {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.source-card dd,
.trace-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-700);
  font-size: 0.75rem;
}

.source-card .button + .button {
  margin-top: 9px;
}

.notice-card {
  display: flex;
  gap: 12px;
  color: #775114;
  background: #fffaf0;
  border-color: #efdfba;
}

.notice-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gold-600);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.notice-icon.info {
  background: var(--navy-600);
}

.notice-card strong {
  font-size: 0.83rem;
}

.notice-card p {
  margin: 4px 0 0;
  font-size: 0.73rem;
  line-height: 1.7;
}

.version-panel {
  padding: 0;
  overflow: hidden;
}

.version-panel details > summary {
  padding: 19px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.version-panel details > summary::-webkit-details-marker {
  display: none;
}

.version-panel summary > span:first-child {
  display: flex;
  flex-direction: column;
}

.version-panel summary strong {
  color: var(--ink-800);
  font-size: 0.9rem;
}

.version-panel summary small {
  font-size: 0.7rem;
}

.version-panel details[open] summary > span:last-child {
  transform: rotate(45deg);
}

.version-content {
  padding: 0 24px 22px;
  border-top: 1px solid var(--line-200);
}

.version-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.version-list li {
  padding: 11px 0;
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line-100);
}

.version-number {
  color: var(--navy-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.version-list li div {
  display: flex;
  flex-direction: column;
}

.version-list strong,
.version-list code {
  font-size: 0.72rem;
}

.version-list code {
  color: var(--ink-500);
}

/* 来源详情 */
.source-hero {
  position: relative;
  margin-top: 0;
  padding: 31px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  border-top: 4px solid var(--navy-700);
}

.source-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.source-seal {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-700);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
  font-family: STKaiti, KaiTi, serif;
  font-size: 1.35rem;
}

.source-hero h1 {
  margin-bottom: 4px;
  font-size: 1.8rem;
}

.source-hero-main p:last-child {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.85rem;
}

.source-facts {
  grid-column: 1 / -1;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-200);
}

.source-facts > div {
  padding-inline: 17px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-200);
}

.source-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.source-facts span {
  color: var(--ink-500);
  font-size: 0.7rem;
}

.source-facts strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink-800);
  font-size: 0.84rem;
}

/* 后台导航与仪表盘 */
.admin-context .page-main {
  padding-top: 20px;
}

.admin-nav {
  min-height: 66px;
  margin-bottom: 22px;
  padding: 0 18px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.admin-nav-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-700);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.admin-nav-heading > span:last-child {
  display: flex;
  flex-direction: column;
}

.admin-nav-heading strong {
  color: var(--ink-800);
  font-size: 0.82rem;
}

.admin-nav-heading small {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.admin-nav-links {
  display: flex;
  align-items: stretch;
}

.admin-nav-links a {
  position: relative;
  padding: 0 17px;
  display: grid;
  place-items: center;
  color: var(--ink-700);
  font-size: 0.82rem;
}

.admin-nav-links a::after {
  position: absolute;
  content: "";
  height: 3px;
  left: 15px;
  right: 15px;
  bottom: -1px;
  background: transparent;
}

.admin-nav-links a:hover,
.admin-nav-links a.active {
  color: var(--navy-800);
  background: var(--blue-50);
  text-decoration: none;
}

.admin-nav-links a.active::after {
  background: var(--red-700);
}

.admin-nav-links a.admin-logout {
  margin-left: 6px;
  color: var(--red-700);
}

.admin-page-header {
  min-height: 118px;
}

.system-status,
.admin-total,
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-700);
  background: #edf8f2;
  border: 1px solid #bee0cd;
  border-radius: 18px;
  font-size: 0.76rem;
  font-weight: 600;
}

.system-status {
  padding: 7px 13px;
}

.system-status.offline {
  color: var(--red-700);
  background: var(--red-50);
  border-color: #edc7c6;
}

.system-status.offline i {
  background: #db5558;
  box-shadow: 0 0 0 4px rgba(219, 85, 88, 0.1);
}

.admin-total {
  padding: 9px 18px;
  flex-direction: column;
  gap: 0;
  color: var(--navy-700);
  background: var(--blue-50);
  border-color: #c7dce9;
  border-radius: var(--radius-md);
}

.admin-total strong {
  font-size: 1.4rem;
  line-height: 1.2;
}

.admin-total small {
  font-size: 0.64rem;
}

.admin-stats {
  margin-top: 20px;
}

.sync-panel {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #fff;
  background: linear-gradient(105deg, var(--navy-900), var(--navy-700));
  border-color: transparent;
}

.sync-panel-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sync-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 1.25rem;
}

.sync-panel h2 {
  margin-bottom: 3px;
  color: #fff;
  font-size: 1.05rem;
}

.sync-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.sync-panel button {
  color: var(--navy-900);
  background: #fff;
  border-color: #fff;
}

.sync-panel button:hover {
  color: #fff;
  background: var(--red-700);
  border-color: var(--red-700);
}

.admin-table {
  min-width: 900px;
}

.admin-table td {
  font-size: 0.78rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
}

.actions form {
  display: inline-flex;
  margin: 0;
}

.action-link {
  padding: 2px 3px;
  font-size: 0.78rem;
}

.source-actions {
  min-width: 190px;
}

.metric-inline {
  color: var(--navy-700);
  font-weight: 700;
}

.metric-inline.success {
  color: var(--green-700);
}

.error-text {
  max-width: 250px;
  color: var(--red-700);
  word-break: break-word;
}

.log-error {
  min-width: 240px;
}

.source-name-cell {
  min-width: 170px;
}

.source-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--blue-50);
  border-color: #cfdfeb;
}

.source-summary p {
  margin: 2px 0 0;
  color: var(--ink-700);
  font-size: 0.8rem;
}

.admin-search-panel {
  padding: 17px 20px;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 9px;
}

.current-version-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.current-version-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.current-version-card span {
  color: var(--ink-500);
  font-size: 0.72rem;
}

.current-version-card code,
.hash-code {
  color: var(--ink-700);
  font-size: 0.76rem;
}

.version-pill {
  padding: 6px 12px;
  color: var(--navy-700);
  background: var(--blue-50);
  border-color: #c7dce9;
}

.version-pill.small {
  padding: 3px 8px;
  font-size: 0.68rem;
}

.preview-text {
  min-width: 280px;
  max-width: 420px;
  color: var(--ink-600);
  line-height: 1.65;
}

/* 后台表单 */
.form-panel {
  max-width: 1020px;
  margin-inline: auto;
}

.wide-form-panel {
  max-width: 1120px;
}

.form-panel form > .field {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-panel fieldset {
  margin: 0 0 26px;
  padding: 24px;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
}

.form-panel legend {
  padding: 0 8px;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 700;
}

.fieldset-description {
  margin: -5px 0 18px;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.checkbox-card {
  margin-top: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checkbox-card input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--navy-700);
}

.checkbox-card span {
  display: flex;
  flex-direction: column;
}

.checkbox-card strong {
  color: var(--ink-800);
  font-size: 0.82rem;
}

.checkbox-card small {
  font-size: 0.7rem;
}

.code-editor {
  min-height: 310px;
  padding: 15px;
  color: #d7e5f1;
  background: #12283b;
  border-color: #12283b;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  tab-size: 2;
}

.code-editor:focus {
  border-color: #4c93c7;
  box-shadow: 0 0 0 3px rgba(76, 147, 199, 0.2);
}

.rule-example {
  margin-top: 12px;
  padding: 11px 14px;
  color: var(--ink-600);
  background: var(--surface-soft);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.rule-example summary {
  cursor: pointer;
  font-weight: 600;
}

.rule-example code {
  margin-top: 10px;
  display: block;
  color: var(--ink-700);
  line-height: 1.6;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-actions {
  position: sticky;
  z-index: 5;
  bottom: 0;
  margin: 0 -28px -26px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line-200);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  backdrop-filter: blur(7px);
}

.admin-breadcrumb {
  margin-top: 2px;
}

/* 管理员登录 */
.login-body {
  background: var(--navy-950);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(430px, 0.95fr);
  background: #fff;
}

.login-intro {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
}

.login-intro::before,
.login-intro::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.login-intro::before {
  width: 520px;
  height: 520px;
  right: -280px;
  top: -180px;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.02), 0 0 0 120px rgba(255, 255, 255, 0.015);
}

.login-intro::after {
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: -110px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.login-brand:hover {
  color: #fff;
  text-decoration: none;
}

.login-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.login-brand strong {
  font-family: STKaiti, KaiTi, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.login-brand small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.login-intro-copy {
  margin-block: auto;
  padding-block: 60px;
}

.login-intro-copy h1 {
  max-width: 580px;
  margin-bottom: 18px;
  color: #fff;
  font-family: STKaiti, KaiTi, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.45rem);
}

.login-intro-copy > p:last-child {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.66);
}

.login-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-feature-list span {
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  font-size: 0.72rem;
}

.login-disclaimer {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
}

.login-form-side {
  padding: 55px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(8, 55, 100, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 55, 100, 0.025) 1px, transparent 1px),
    #f6f8fa;
  background-size: 30px 30px;
}

.login-card {
  width: min(440px, 100%);
  padding: 42px 40px;
  background: #fff;
  border: 1px solid var(--line-200);
  border-top: 4px solid var(--red-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.login-card-heading {
  margin-bottom: 28px;
}

.login-card-heading h2 {
  margin-bottom: 6px;
  font-size: 1.75rem;
}

.login-card-heading p:last-child {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.82rem;
}

.login-card .field {
  margin-bottom: 18px;
}

.login-submit {
  margin-top: 8px;
  background: var(--navy-800);
}

.back-home {
  margin-top: 18px;
  display: block;
  color: var(--ink-600);
  text-align: center;
  font-size: 0.78rem;
}

/* 响应式 */
@media (max-width: 1080px) {
  .header-facts {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
    padding-inline: 38px;
  }

  .grid-4,
  .level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-span-2,
  .filter-actions {
    grid-column: span 1;
  }

  .source-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .source-facts > div:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.6fr 1fr;
    gap: 35px;
  }

  .admin-nav {
    padding-inline: 12px;
  }

  .admin-nav-heading {
    display: none;
  }

  .admin-nav-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--content-width));
  }

  .service-meta {
    display: none;
  }

  .service-strip-inner {
    justify-content: center;
  }

  .brand-row {
    min-height: 92px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .brand-copy strong {
    font-size: 1.48rem;
  }

  .primary-nav a {
    min-width: 96px;
    padding-inline: 16px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 40px;
  }

  .hero-service {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .detail-sidebar .panel {
    margin-top: 0;
  }

  .source-card {
    grid-row: span 2;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 17px;
  }

  .meta-grid > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .meta-grid > div:nth-child(even) {
    padding-left: 17px;
    border-left: 1px solid var(--line-200);
  }

  .meta-grid > div:nth-child(n + 3) {
    margin-top: 0;
  }

  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-span-2,
  .filter-actions {
    grid-column: span 2;
  }

  .trust-strip {
    padding-inline: 18px;
  }

  .trust-strip > div {
    padding-inline: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-disclaimer {
    grid-column: 1 / -1;
  }

  .source-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-facts > div:nth-child(3),
  .source-facts > div:nth-child(5) {
    padding-left: 0;
    border-left: 0;
  }

  .source-facts > div:nth-child(4) {
    padding-left: 17px;
    border-left: 1px solid var(--line-200);
  }

  .form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 330px;
    padding: 34px;
  }

  .login-intro-copy {
    padding: 35px 0 20px;
  }

  .login-intro-copy h1 {
    font-size: 2.2rem;
  }

  .login-feature-list,
  .login-disclaimer {
    display: none;
  }

  .login-form-side {
    min-height: 560px;
    padding: 35px 20px;
  }
}

@media (max-width: 680px) {
  .page-main {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .brand-row {
    justify-content: center;
  }

  .brand-copy small {
    letter-spacing: 0.1em;
  }

  .nav-wrap {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  .primary-nav {
    width: 100%;
  }

  .primary-nav a {
    min-width: 0;
    padding-inline: 8px;
    flex: 1;
    font-size: 0.86rem;
  }

  .nav-search-link {
    display: none;
  }

  .hero {
    margin-inline: -14px;
    padding: 35px 20px;
    border-radius: 0;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .hero-description {
    font-size: 0.86rem;
  }

  .hero-search {
    min-height: 56px;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 5px 13px;
  }

  .hero-search button {
    grid-column: 1 / -1;
    width: calc(100% + 26px);
    margin: 1px -13px -5px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .quick-links {
    line-height: 1.7;
  }

  .grid-4,
  .level-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 10px;
  }

  .stat-card {
    min-height: 88px;
    padding: 15px 17px;
  }

  .level-card {
    min-height: 88px;
  }

  .section-title-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .portal-section {
    margin-top: 34px;
  }

  .panel {
    padding: 20px 17px;
  }

  .latest-panel {
    margin-top: 32px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div,
  .trust-strip > div:first-child,
  .trust-strip > div:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid #cedae3;
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .page-header,
  .admin-page-header {
    min-height: 110px;
    padding: 22px 20px;
  }

  .page-header-mark,
  .admin-page-header .page-header-mark {
    display: none;
  }

  .filter-form,
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .field-span-2,
  .filter-actions {
    grid-column: auto;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-actions > * {
    width: 100%;
  }

  .policy-detail-header {
    padding: 27px 20px 23px;
  }

  .policy-detail-header h1 {
    font-size: 1.72rem;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid > div,
  .meta-grid > div:nth-child(even),
  .meta-grid > div:nth-child(odd) {
    min-height: auto;
    padding: 9px 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    border-left: 0;
    border-bottom: 1px dashed var(--line-200);
  }

  .article-heading {
    padding-inline: 18px;
  }

  .article-heading > span {
    display: none;
  }

  .article-content {
    padding: 26px 19px 34px;
    font-size: 0.95rem;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .source-card {
    grid-row: auto;
  }

  .source-hero {
    padding: 25px 20px;
    grid-template-columns: 1fr;
  }

  .source-hero > .button {
    width: 100%;
  }

  .source-facts {
    grid-template-columns: 1fr;
  }

  .source-facts > div,
  .source-facts > div:nth-child(n) {
    padding: 8px 0;
    display: grid;
    grid-template-columns: 85px 1fr;
    border-left: 0;
    border-bottom: 1px dashed var(--line-200);
  }

  .admin-nav {
    min-height: auto;
    padding: 0;
    overflow-x: auto;
  }

  .admin-nav-links {
    min-width: max-content;
    justify-content: flex-start;
  }

  .admin-nav-links a {
    min-height: 54px;
    padding-inline: 15px;
  }

  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .sync-panel,
  .current-version-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-search {
    grid-template-columns: 1fr;
  }

  .form-panel fieldset {
    padding: 17px;
  }

  .sticky-actions {
    position: static;
    margin: 20px -17px -20px;
    padding: 15px 17px;
    flex-direction: column;
  }

  .sticky-actions > * {
    width: 100%;
  }

  .footer-grid {
    padding-block: 35px 25px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-disclaimer {
    grid-column: auto;
  }

  .footer-bottom {
    padding-block: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .login-intro {
    min-height: 280px;
    padding: 25px 20px;
  }

  .login-brand .brand-mark {
    width: 43px;
    height: 43px;
  }

  .login-brand strong {
    font-size: 1.18rem;
  }

  .login-intro-copy {
    padding: 35px 0 0;
  }

  .login-intro-copy h1 {
    font-size: 1.8rem;
  }

  .login-form-side {
    min-height: 520px;
    padding: 24px 14px;
  }

  .login-card {
    padding: 32px 22px;
  }

  /* 移动端政策表改为信息卡，避免横向滚动 */
  .policy-table {
    min-width: 0;
    display: block;
    background: transparent;
  }

  .policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .policy-table tbody,
  .policy-table tr,
  .policy-table td {
    display: block;
    width: 100% !important;
  }

  .policy-table tbody {
    padding: 10px;
  }

  .policy-table tr {
    margin-bottom: 10px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line-200);
    border-left: 3px solid var(--navy-700);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
  }

  .policy-table tr:last-child {
    margin-bottom: 0;
  }

  .policy-table td {
    min-height: 34px;
    padding: 6px 0;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    border-bottom: 1px dashed var(--line-100);
    background: transparent !important;
  }

  .policy-table td::before {
    content: attr(data-label);
    color: var(--ink-500);
    font-size: 0.72rem;
  }

  .policy-table .policy-title-cell {
    padding: 0 0 12px;
    display: block;
  }

  .policy-table .policy-title-cell::before {
    display: none;
  }

  .policy-table .policy-title-cell a {
    font-size: 0.94rem;
  }

  .policy-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 400px) {
  .container {
    width: min(100% - 20px, var(--content-width));
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }

  .brand-copy small {
    font-size: 0.62rem;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .hero {
    margin-inline: -10px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .pagination {
    gap: 6px;
  }

  .page-link,
  .page-current {
    padding-inline: 9px;
  }

  .source-hero-main {
    align-items: flex-start;
  }

  .source-seal {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .service-strip,
  .site-header,
  .site-footer,
  .breadcrumb,
  .admin-nav,
  .detail-sidebar,
  .version-panel,
  .button,
  button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .container {
    width: 100%;
  }

  .page-main {
    padding: 0;
  }

  .panel {
    border: 0;
    box-shadow: none;
  }

  .policy-detail-header {
    padding-inline: 0;
  }

  .detail-layout {
    display: block;
  }

  .article-content {
    padding-inline: 0;
  }
}
