/* 民生知识大全 (www.egov.org.cn) - Modern Civic Editorial Design System */
:root {
  --blue: #165FB0;
  --blue-dark: #0E478A;
  --blue-soft: #EEF5FC;
  --orange: #E56F0C;
  --orange-soft: #FFF4EA;
  --green: #0E8A5F;
  --green-soft: #ECFDF5;
  --red: #C81E1E;
  --red-soft: #FEF2F2;
  --ink: #172130;
  --text: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--blue-dark);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-highlight {
  color: var(--orange);
  font-weight: 600;
}

.nav-highlight:hover,
.nav-highlight.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  width: 196px;
}

.header-search:focus-within {
  border-color: var(--blue);
  background: var(--white);
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}

.header-search button {
  border: none;
  background: var(--blue);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search button:hover {
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #14539B 0%, #1C6FC4 55%, #14539B 100%);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.announce-badge {
  display: inline-block;
  flex-shrink: 0;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.announce-text {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: #F8FAFC;
  line-height: 1.45;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF5FC 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #CFE3F7;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.28;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hero-subtitle {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.7;
}

.hero-search {
  display: flex;
  gap: 8px;
  background: var(--white);
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  box-shadow: var(--shadow-sm);
  max-width: 580px;
}

.hero-search:focus-within {
  border-color: var(--blue);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  border: none;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search button:hover {
  background: var(--blue-dark);
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.hot-tags-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.hot-tags a {
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
}

.hot-tags a:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* Hero Metrics Card */
.hero-card {
  background: var(--white);
  border: 1px solid #D9E5F2;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(229, 111, 12, 0.18);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-item {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
  color: var(--ink);
}

.metric-item:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.metric-alert {
  background: var(--orange-soft);
  border-color: #FBD9B8;
}

.metric-alert:hover {
  background: #FFEAD5;
  border-color: var(--orange);
}

.metric-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric-alert .metric-val {
  color: var(--orange);
}

.metric-val small {
  font-size: 12.5px;
  font-weight: 600;
  margin-left: 2px;
}

.metric-label {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.45;
}

.hero-card-cta {
  display: block;
  text-align: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 16px;
  border-radius: 10px;
}

.hero-card-cta:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-tinted {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.section-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.section-more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

/* Tool Cards Strip */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

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

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 12px;
}

.icon-blue { background: var(--blue-soft); color: var(--blue); }
.icon-orange { background: var(--orange-soft); color: var(--orange); }
.icon-green { background: var(--green-soft); color: var(--green); }
.icon-slate { background: #E2E8F0; color: var(--ink); }

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.tool-card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.6;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  border-color: #B8D2EE;
  box-shadow: var(--shadow-md);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cat-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
}

.pill-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.pill-green {
  background: var(--green-soft);
  color: var(--green);
}

.meta-date, .meta-read {
  font-size: 12.5px;
  color: var(--muted);
}

.card-title {
  margin: 0 0 10px;
  font-size: 17.5px;
  line-height: 1.45;
  font-weight: 700;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--blue);
}

.card-summary {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
  color: var(--muted);
}

.read-more {
  font-weight: 600;
  color: var(--blue);
}

/* 5-Channel Directory */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dir-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.dir-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dir-box-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.dir-box-head h3 a {
  color: var(--ink);
}

.dir-box-head h3 a:hover {
  color: var(--blue);
}

.dir-box-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.dir-more {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dir-list li {
  border-bottom: 1px dashed #DDE4EE;
}

.dir-list li:last-child {
  border-bottom: none;
}

.dir-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 14.5px;
}

.dir-list a:hover {
  color: var(--blue);
}

.dir-item-title {
  flex: 1;
  min-width: 0;
}

.dir-item-date {
  font-size: 12.5px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Prompts */
.prompt-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.prompt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.prompt-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

.prompt-scene {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.prompt-code {
  margin: 0;
  padding: 12px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}

.copy-btn {
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.copied {
  background: var(--blue);
  color: var(--white);
}

/* Hotline Panel */
.hotline-banner-section {
  padding-top: 12px;
}

.hotline-panel {
  background: var(--white);
  border: 1px solid #CFE3F7;
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.hotline-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hotline-panel-head h2 {
  margin: 0 0 4px;
  font-size: 21px;
  color: var(--ink);
}

.hotline-panel-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hotline-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hotline-chip {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.hotline-chip:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.hotline-chip strong {
  font-size: 19px;
  color: var(--blue);
  font-weight: 800;
}

.hotline-chip span {
  font-size: 13px;
  color: var(--text);
  margin-top: 2px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.btn-outline:hover {
  background: var(--blue-soft);
}

/* Sub-page Banner */
.page-banner {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF5FC 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 32px;
}

.page-banner h1 {
  margin: 8px 0 10px;
  font-size: 28px;
  color: var(--ink);
  font-weight: 800;
}

.page-banner p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

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

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

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.topic-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.topic-tab:hover,
.topic-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Article Detail */
.article-shell {
  padding: 32px 0 56px;
}

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

.article-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-header {
  padding-top: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  margin: 10px 0 12px;
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 800;
}

.article-lead {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--bg);
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--blue);
}

.toc-mobile {
  display: none;
  background: var(--blue-soft);
  border: 1px solid #CFE3F7;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.toc-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.toc-mobile ol,
.toc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
}

.toc-list a,
.toc-mobile a {
  color: var(--text);
}

.toc-list a:hover,
.toc-mobile a:hover {
  color: var(--blue);
}

/* Prose Typography */
.prose {
  font-size: 16px;
  line-height: 1.82;
  color: #243041;
  word-wrap: break-word;
}

.prose h2 {
  margin: 30px 0 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-soft);
  scroll-margin-top: 86px;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
}

.prose p {
  margin: 0 0 14px;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}

.prose th, .prose td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose th {
  background: var(--blue-soft);
  color: var(--ink);
  font-weight: 700;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose .callout {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  font-size: 14.8px;
}

.prose .callout-warn {
  background: var(--orange-soft);
  border-left-color: var(--orange);
}

.prose .callout-tip {
  background: var(--green-soft);
  border-left-color: var(--green);
}

.article-disclaimer {
  margin-top: 28px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.article-tags {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.tag-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.tag-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 86px;
}

.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.side-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.side-links,
.side-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-links li {
  margin-bottom: 9px;
  font-size: 14px;
}

.side-links li:last-child {
  margin-bottom: 0;
}

.side-article-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #E2E8F0;
}

.side-article-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-article-list a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 3px;
}

.side-article-list a:hover {
  color: var(--blue);
}

.side-article-list span {
  font-size: 12px;
  color: var(--muted);
}

/* Tools Page */
.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 86px;
}

.calc-head h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  color: var(--ink);
}

.calc-head p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--muted);
}

.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

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

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

.form-row label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.form-row input:focus,
.form-row select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 95, 176, 0.12);
}

.calc-result {
  background: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 100%);
  border: 1px solid #CFE3F7;
  border-radius: 12px;
  padding: 20px;
}

.res-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.res-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  margin: 4px 0 6px;
}

.res-sub {
  font-size: 14px;
  color: var(--text);
}

.res-divider {
  height: 1px;
  background: #DCE8F5;
  margin: 14px 0;
}

.res-accent {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  margin: 4px 0 10px;
}

.res-note {
  margin: 0;
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.6;
}

/* Hotlines Page */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.filter-bar input {
  flex: 1;
  min-width: 220px;
  max-width: 520px;
  padding: 11px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 15px;
  background: var(--white);
  outline: none;
}

.filter-bar input:focus {
  border-color: var(--blue);
}

.filter-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.hotline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hotline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.hl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hl-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.5px;
}

.hotline-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

.hotline-card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.6;
}

.portal-block {
  margin-top: 44px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.portal-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.portal-channel {
  font-size: 12.5px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.portal-card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--muted);
}

/* Search & About & Empty */
.search-page-form {
  margin-top: 14px;
}

.search-summary {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text);
}

.empty-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}

.empty-box h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.empty-box p {
  margin: 0;
  color: var(--muted);
}

.about-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 32px;
}

/* Footer */
.site-footer {
  background: #131E2E;
  color: #CBD5E1;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
  gap: 32px;
  padding-top: 42px;
  padding-bottom: 34px;
}

.footer-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13.8px;
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: #94A3B8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.beian-wrap a {
  color: #E2E8F0;
  text-decoration: underline;
}

.beian-wrap a:hover {
  color: var(--white);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header-search {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .tool-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-grid,
  .prompt-preview-grid,
  .hotline-grid,
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hotline-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .toc-desktop {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
  .calc-body {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 15px;
  }
  .brand-logo {
    height: 44px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 15px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-link {
    padding: 10px 12px;
  }
  .announce-inner {
    align-items: flex-start;
  }
  .hero-section {
    padding: 26px 0 30px;
  }
  .hero-title {
    font-size: 25px;
  }
  .hero-search {
    flex-direction: column;
    padding: 8px;
  }
  .hero-search button {
    width: 100%;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 30px 0;
  }
  .section-title {
    font-size: 20px;
  }
  .tool-cards,
  .article-grid,
  .directory-grid,
  .prompt-preview-grid,
  .hotline-grid,
  .portal-grid,
  .calc-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-main,
  .about-box,
  .calc-card {
    padding: 20px 16px;
  }
  .article-header h1,
  .page-banner h1 {
    font-size: 22px;
  }
  .prose h2 {
    font-size: 18.5px;
  }
  .prose table {
    min-width: 320px;
    font-size: 13.5px;
  }
  .hotline-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
