:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #d6dde8;
  --text: #1f2a37;
  --muted: #5b6b7f;
  --brand: #0052cc;
  --brand-dark: #003f9e;
  --ok: #1f9d55;
  --warn: #d97706;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 26px;
  background: #0a2342;
  color: #fff;
  gap: 12px;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.topbar p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #d9e3f5;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text);
}

.nav-item.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.nav-structured .site-label {
  color: #334155;
  font-weight: 700;
  margin-right: 6px;
}

.nav-group {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 176px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: none;
  z-index: 30;
}

.nav-group:hover .nav-dropdown {
  display: block;
}

.sub-nav-link {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  color: #1f2a37;
  border-radius: 8px;
  padding: 7px 8px;
}

.sub-nav-link:hover {
  background: #edf4ff;
  color: #1d4fb9;
}

.container {
  max-width: 1180px;
  margin: 18px auto 26px;
  padding: 0 14px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

h2 {
  margin: 8px 0 10px;
}

.page-desc {
  margin: 0 0 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 12px;
}

.six-cols {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.result-card {
  margin-top: 12px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed #8fb2e8;
  background: #e8f0ff;
}

.home-guide {
  margin-bottom: 12px;
  background: #f8fbff;
}

.guide-title {
  margin: 0 0 8px;
  color: #2f6edb;
  font-size: 28px;
  font-weight: 700;
}

.guide-timeline {
  position: relative;
  padding-left: 36px;
}

.guide-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 12px;
  width: 2px;
  background: #d8dfeb;
}

.guide-stage {
  position: relative;
  margin-bottom: 12px;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-dot {
  position: absolute;
  left: -31px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #4f86f0;
  background: #fff;
  box-shadow: 0 0 0 3px #e9f1ff inset;
}

.stage-head h4 {
  margin: 0;
  font-size: 24px;
  color: #4f86f0;
  font-weight: 700;
}

.stage-desc {
  margin: 6px 0 4px 26px;
  font-size: 18px;
  color: #2e3a4d;
}

.stage-items {
  margin: 0 0 0 58px;
  padding-left: 0;
  list-style: none;
  font-size: 20px;
  line-height: 1.4;
}

.guide-link {
  border: none;
  background: transparent;
  font-size: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.guide-link:hover {
  color: #2f6edb;
}

.home-resources {
  margin-top: 12px;
}

.home-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-module h3 {
  margin: 0 0 6px;
  color: #1d4fb9;
}

.home-module p {
  margin: 0 0 10px;
  color: #64748b;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-link {
  border: 1px solid #cfe0ff;
  background: #f4f8ff;
  color: #224c96;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.home-link:hover {
  background: #2f6edb;
  color: #fff;
  border-color: #2f6edb;
}

.home-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-sections {
  display: grid;
  gap: 14px;
}

.home-section {
  border: 1px solid #dce5f5;
  border-radius: 12px;
  background: #f7f9ff;
  padding: 12px;
}

.home-section-head {
  font-size: 18px;
  font-weight: 700;
  color: #1d4fb9;
  margin-bottom: 10px;
}

.response-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-tile {
  background: #fff;
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tile-head h3 {
  margin: 0;
  color: #1f2a37;
  font-size: 18px;
}

.tile-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.i-policy { background: #e9dcff; color: #6b2bbf; }
.i-case { background: #d9f4ff; color: #0f766e; }
.i-expert { background: #ffe2ec; color: #b4235d; }
.i-media { background: #ffe7cc; color: #b45309; }
.i-koujing { background: #dcfce7; color: #15803d; }
.i-summary { background: #ede9fe; color: #5b21b6; }

.tile-links {
  display: grid;
  gap: 4px;
}

.tile-link {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 4px 2px;
  color: #334155;
  font-size: 13px;
}

.tile-link:hover {
  background: #f1f6ff;
  color: #1d4fb9;
}

.resource-entry {
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #19325a;
}

.resource-entry:hover {
  border-color: #8fb2e8;
  background: #eef4ff;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0 12px;
}

#caseHub .toolbar {
  grid-template-columns: 1.5fr repeat(3, 0.9fr) auto auto auto;
}

.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.simple-list li strong {
  display: block;
  margin-bottom: 2px;
}

.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.case-card .cover {
  height: 96px;
  background: linear-gradient(120deg, #d7e7ff, #eaf1fb);
}

.case-card .content {
  padding: 10px 12px;
}

.case-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.case-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.case-open {
  margin-top: 8px;
}

.case-detail {
  margin-top: 14px;
}

.case-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.case-tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #1d4fb9;
}

.detail-group {
  margin-bottom: 10px;
}

.detail-group h4 {
  margin: 0 0 6px;
}

.detail-box {
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f9fc;
  line-height: 1.7;
}

.highlight-blue {
  background: #e9f3ff;
}

.highlight-green {
  background: #e9f8ef;
}

.highlight-yellow {
  background: #f8f7e8;
}

.summary-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
}

.summary-sidebar {
  background: linear-gradient(180deg, #0f274a, #0a1c36);
  color: #dce9ff;
}

.summary-sidebar h3 {
  margin-top: 0;
  color: #fff;
}

.summary-menu-group {
  margin-bottom: 14px;
}

.summary-menu-group h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #96b4e6;
}

.summary-menu-item {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #dce9ff;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.summary-menu-item.active,
.summary-menu-item:hover {
  background: #2f6edb;
  color: #fff;
}

.summary-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}

.summary-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.summary-tab {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: #1f2a37;
  font-weight: 600;
}

.summary-tab.active {
  background: #2f6edb;
  color: #fff;
  border-color: #2f6edb;
}

.summary-title {
  margin: 0 0 10px;
  color: #1d4fb9;
}

.summary-block {
  margin-bottom: 10px;
}

.summary-block h4 {
  margin: 0 0 4px;
}

.summary-block p {
  margin: 0;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px 10px;
  color: #334155;
}

.summary-follow-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.summary-right {
  border: 1px solid #dde6f3;
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px;
}

.summary-follow-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e5eaf3;
}

.summary-follow-list span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.summary-timeline {
  display: grid;
  gap: 8px;
}

.about-block {
  margin-bottom: 12px;
}

.timeline-item {
  border-left: 3px solid #d4deee;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
}

.timeline-item.active {
  border-left-color: #5ca5ff;
  background: #e9f3ff;
}

.media-card h4 {
  margin: 0 0 8px;
}

.media-card p {
  margin: 4px 0;
  color: var(--muted);
}

.media-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
}

.media-sidebar {
  background: linear-gradient(180deg, #0f274a, #0a1c36);
  color: #dce9ff;
}

.media-sidebar h3 {
  margin-top: 0;
  color: #ffffff;
}

.media-menu-group {
  margin-bottom: 14px;
}

.media-menu-group h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #96b4e6;
}

.media-menu-item {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #dce9ff;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.media-menu-item.active,
.media-menu-item:hover {
  background: #2f6edb;
  color: #fff;
}

.media-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.media-main-head h3 {
  margin: 0;
}

.media-head-actions {
  display: flex;
  gap: 8px;
}

.media-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.media-filter select {
  max-width: 180px;
  margin-top: 0;
}

.media-status-table tbody tr:hover {
  background: #f4f8ff;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-green {
  background: #22c55e;
}

.status-yellow {
  background: #f59e0b;
}

.status-red {
  background: #ef4444;
}

.publish-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
}

.publish-sidebar {
  background: linear-gradient(180deg, #0f274a, #0a1c36);
  color: #dce9ff;
}

.publish-sidebar h3 {
  margin-top: 0;
  color: #fff;
}

.publish-menu-group {
  margin-bottom: 14px;
}

.publish-menu-group h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #96b4e6;
}

.publish-menu-btn {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #dce9ff;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.publish-menu-btn.active,
.publish-menu-btn:hover {
  background: #2f6edb;
  color: #fff;
}

.publish-main h3 {
  margin: 0 0 8px;
}

.publish-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 10px;
  padding: 14px 12px;
  background: #f2f6ff;
  border: 1px solid #dde6f3;
  border-radius: 10px;
}

.publish-step {
  text-align: center;
  position: relative;
}

.publish-step .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: linear-gradient(180deg, #b70f43, #961437);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.publish-step .label {
  font-size: 14px;
  color: #1f2a37;
  font-weight: 600;
}

.publish-tip-box {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #dce7f7;
  background: #f5f8ff;
  padding: 10px 12px;
}

.publish-tip-box h4 {
  margin: 0 0 6px;
  color: #2f6edb;
}

.publish-tip-box ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.health-tip-extra {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 10px;
}

.health-tip-left h4 {
  margin: 0 0 8px;
  color: #1d4fb9;
}

.health-core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.health-core-card {
  border: 1px solid #dbe7fa;
  border-radius: 10px;
  background: #f6f9ff;
  padding: 10px;
}

.health-core-card h5 {
  margin: 0 0 6px;
  color: #224c96;
}

.health-core-card ul {
  margin: 0;
  padding-left: 16px;
  color: #475569;
}

.faq-item {
  border: 1px solid #dde6f3;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f2a37;
}

.faq-item p {
  margin: 8px 0 2px;
  color: #475569;
}

.health-tip-right {
  display: grid;
  gap: 10px;
}

.health-side-card {
  border: 1px solid #dde6f3;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}

.health-side-card h5 {
  margin: 0 0 8px;
  color: #1d4fb9;
}

.health-side-card a {
  display: block;
  color: #1f4ea7;
  text-decoration: none;
  margin-bottom: 6px;
}

.health-side-card a:hover {
  text-decoration: underline;
}

.health-side-card.hotline p {
  margin: 6px 0;
  color: #334155;
}

.koujing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
}

.koujing-side {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.koujing-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.koujing-nav li {
  margin-bottom: 6px;
}

.koujing-nav button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1f2a37;
}

.koujing-nav .koujing-stage-btn {
  font-weight: 700;
  color: #1f2a37;
}

.koujing-nav .koujing-stage-btn.active {
  background: #e9f1ff;
  color: #1b4fb5;
}

.koujing-nav .koujing-children {
  list-style: none;
  margin: 2px 0 8px;
  padding-left: 12px;
}

.koujing-nav .koujing-child-btn {
  font-size: 14px;
  padding: 6px 8px;
  color: #334155;
}

.koujing-nav .koujing-child-btn.active {
  color: #fff;
  background: #2f6edb;
}

.koujing-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.koujing-main .toolbar {
  grid-template-columns: 1.4fr 1fr auto auto auto;
}

.empty-tip {
  color: var(--muted);
  text-align: center;
  padding: 16px 0;
}

.rank-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.monitor-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}

.topic-rank-list {
  display: grid;
  gap: 10px;
}

.topic-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  text-align: left;
}

.topic-item.active {
  border-color: #5da0ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.topic-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topic-topline h4 {
  margin: 0;
  font-size: 15px;
}

.topic-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.topic-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4fb9;
}

.sentiment-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.sentiment-positive {
  background: #e7f9ee;
  color: #12834d;
}

.sentiment-neutral {
  background: #eef2f7;
  color: #475569;
}

.sentiment-negative {
  background: #fdecec;
  color: #be123c;
}

.monitor-volume h4 {
  margin: 10px 0 8px;
}

.monitor-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.chart-box {
  height: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.chart-box.wide {
  height: 250px;
}

.monitor-form {
  display: grid;
  gap: 10px;
}

.fallback-bars {
  padding: 10px;
}

.fallback-bars .row {
  display: grid;
  grid-template-columns: 64px 1fr 56px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.fallback-bars .bar {
  height: 10px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
}

.fallback-bars .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.fallback-line {
  width: 100%;
  height: 100%;
  display: block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metrics div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  font-size: 24px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 8px;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.actions {
  margin-top: 10px;
}

button {
  cursor: pointer;
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #dde5f2;
  color: #102038;
}

.hidden {
  display: none !important;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.risk-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.risk-summary-row div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #f9fbff, #f4f8ff);
}

.risk-summary-row span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.risk-summary-row strong {
  font-size: 20px;
  color: #1e3a5f;
}

.risk-dimension-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.risk-overview-chart {
  margin-top: 12px;
}

.risk-dimension {
  background: #ffffff;
  border: 1px solid #dde6f3;
  border-radius: 12px;
  padding: 14px;
}

.risk-dim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7edf7;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.risk-dim-head h4 {
  margin: 0;
  color: #2f6edb;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.risk-weight {
  color: #dc2626;
  font-weight: 700;
  font-size: 15px;
}

.risk-item {
  display: grid;
  grid-template-columns: 160px 1fr 70px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.risk-item-name {
  font-weight: 600;
  font-size: 19px;
  color: #2f3b4e;
}

.risk-bar-wrap {
  width: 100%;
}

.risk-bar {
  height: 14px;
  border-radius: 999px;
  background: #eceff3;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5a200, #f0c85d);
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #7b8794;
  margin-top: 5px;
}

.risk-score {
  color: #f59e0b;
  font-size: 20px;
  font-weight: 700;
  text-align: right;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.28);
  z-index: 10;
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .home-module-grid {
    grid-template-columns: 1fr;
  }

  .home-tile-grid {
    grid-template-columns: 1fr;
  }

  .response-grid {
    grid-template-columns: 1fr;
  }

  .home-sub-grid {
    grid-template-columns: 1fr;
  }

  .monitor-layout {
    grid-template-columns: 1fr;
  }

  .monitor-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .risk-summary-row {
    grid-template-columns: 1fr 1fr;
  }

  .risk-item {
    grid-template-columns: 1fr;
  }

  .risk-score {
    text-align: left;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  #caseHub .toolbar {
    grid-template-columns: 1fr;
  }

  .koujing-layout {
    grid-template-columns: 1fr;
  }

  .summary-layout {
    grid-template-columns: 1fr;
  }

  .summary-main-grid {
    grid-template-columns: 1fr;
  }

  .media-layout {
    grid-template-columns: 1fr;
  }

  .publish-layout {
    grid-template-columns: 1fr;
  }

  .publish-flow {
    grid-template-columns: 1fr;
  }

  .health-tip-extra {
    grid-template-columns: 1fr;
  }

  .health-core-grid {
    grid-template-columns: 1fr;
  }

  .guide-title {
    font-size: 22px;
  }

  .stage-head h4 {
    font-size: 24px;
  }

  .stage-desc {
    margin-left: 12px;
    font-size: 16px;
  }

  .stage-items {
    margin-left: 28px;
    font-size: 26px;
  }
}

/* ============================================================
   精修覆盖层（2026-08-30）：新增 hero/页脚/品牌标，统一动效与细节
   ============================================================ */
:root {
  --bg: #f4f6fa;
  --line: #dde4ee;
  --brand: #1d5bd6;
  --brand-dark: #14439f;
  --navy-1: #0a2342;
  --navy-2: #123a6b;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 42, 84, 0.12);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 顶栏：加品牌标与渐变 */
.topbar {
  background: linear-gradient(120deg, var(--navy-1) 0%, var(--navy-2) 100%);
  padding: 16px 26px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 11px; color: #cfe0ff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.brand-mark svg { width: 24px; height: 24px; }
.topbar h1 { font-size: 20px; letter-spacing: 0.5px; }

/* 首页 hero */
.hero {
  margin: 4px 0 18px;
  border-radius: 16px;
  background:
    radial-gradient(1100px 320px at 85% -40%, rgba(76, 130, 227, 0.55), transparent 60%),
    linear-gradient(115deg, var(--navy-1) 0%, #16407a 74%, #1c4f96 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner { padding: 40px 44px 36px; max-width: 720px; }
.hero-kicker {
  margin: 0 0 10px; font-size: 13px; letter-spacing: 2px;
  color: #9fc0f5; font-weight: 600;
}
.hero-title { margin: 0 0 14px; font-size: 34px; line-height: 1.28; letter-spacing: 1px; }
.hero-sub { margin: 0 0 22px; font-size: 15px; line-height: 1.8; color: #d5e2f8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-hero {
  padding: 9px 20px; border-radius: 9px; font-size: 14.5px; cursor: pointer;
  border: none; background: #fff; color: #14439f; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-hero:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.btn-hero.ghost {
  background: transparent; color: #dbe7fb;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-hero.ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* 页面标题：左侧品牌短杠 */
.page > h2 {
  font-size: 24px; display: flex; align-items: center; gap: 10px;
}
.page > h2::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), #6fa0ef);
}
#home.page > h2::before { display: none; }

/* 卡片：悬停抬升 */
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.home-tile { cursor: default; }
.home-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #b9ccec;
}
.home-section-head {
  font-size: 17px; font-weight: 700; color: var(--navy-1);
  display: flex; align-items: center; gap: 8px;
}
.home-section-head::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
}

/* 按钮统一动效 */
.btn-primary, .btn-secondary, .nav-item {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active, .btn-secondary:active { transform: scale(0.97); }
.tile-link:hover { color: var(--brand); }

/* 表单控件焦点 */
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(29, 91, 214, 0.13);
}

/* 页脚 */
.site-footer {
  margin-top: 34px;
  background: var(--navy-1);
  color: #b9c9e2;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 26px 14px 30px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
  font-size: 13px; line-height: 1.7;
}
.footer-inner strong { color: #fff; font-size: 14.5px; }
.footer-inner p { margin: 6px 0 0; }
.footer-meta { text-align: right; }

/* 窄屏适配 */
@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .hero-inner { padding: 28px 22px 26px; }
  .hero-title { font-size: 26px; }
  .footer-meta { text-align: left; }
}
