:root {
  --gov-red: #C8102E;
  --gov-red-deep: #9E0B22;
  --gov-blue: #16519F;
  --gov-blue-deep: #0F3B78;
  --gov-gold: #D4AF37;
  --bg-body: #F4F5F7;
  --bg-card: #FFFFFF;
  --border-line: #DCDFE6;
  --text-dark: #222222;
  --text-gray: #666666;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "SimSun", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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

img {
  max-width: 100%;
}

.container {
  width: 1200px;
  max-width: 96%;
  margin: 0 auto;
}

/* 全屏模拟恐怖叠加层（仅在交互触发越界后随滚动激活） */
#crt-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  opacity: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
  background-size: 100% 3px, 6px 100%;
  transition: opacity 0.25s ease;
}

#vignette-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9989;
  opacity: 0;
  background: radial-gradient(circle, transparent 42%, rgba(0, 0, 0, 0.94) 100%);
  transition: opacity 0.25s ease;
}

/* 右上角后台审计浮窗（初始隐藏，交互触发） */
#audit-float {
  display: none;
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 9995;
  background: #120606;
  border: 1px solid #B91C1C;
  color: #FCA5A5;
  padding: 6px 12px;
  font-family: "SimSun", "Courier New", monospace;
  font-size: 12px;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  max-width: calc(100vw - 20px);
}

.pulse-box {
  width: 8px;
  height: 8px;
  background: #EF4444;
  display: inline-block;
  flex-shrink: 0;
  animation: blinkSlow 0.8s infinite;
}

@keyframes blinkSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}

/* 顶部中国政府网联动功能条 */
.top-gov-bar {
  background: #F0F2F5;
  border-bottom: 1px solid #E0E3E8;
  min-height: 34px;
  line-height: 34px;
  font-size: 12px;
  color: #555555;
}

.top-gov-bar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left a:hover, .top-bar-left span.clickable:hover,
.top-bar-right a:hover, .top-bar-right span.clickable:hover {
  color: var(--gov-red);
}

.clickable {
  cursor: pointer;
}

/* 头部国徽与站标区 */
.portal-header {
  background: #FFFFFF;
  padding: 20px 0 18px;
  border-bottom: 1px solid #E5E7EB;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emblem-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.title-stack h1 {
  font-family: "SimSun", "STSong", serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gov-red);
  letter-spacing: 4px;
  line-height: 1.15;
}

.title-stack .domain-line {
  font-size: 12px;
  color: #666666;
  letter-spacing: 1.5px;
  margin-top: 4px;
  font-family: Arial, sans-serif;
}

.search-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.search-box-row {
  display: flex;
  border: 2px solid var(--gov-red);
  max-width: 100%;
}

.search-box-row input {
  width: 310px;
  max-width: 100%;
  height: 36px;
  border: none;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  background: #FFFFFF;
}

.search-box-row button {
  height: 36px;
  padding: 0 22px;
  background: var(--gov-red);
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.search-box-row button:hover {
  background: var(--gov-red-deep);
}

.hot-keywords {
  font-size: 12px;
  color: #777777;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-keywords a {
  color: #444444;
}

/* 七栏目主导航 */
.primary-nav {
  background: var(--gov-blue);
  border-top: 2px solid var(--gov-red);
}

.primary-nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.primary-nav li {
  flex: 1;
  min-width: 110px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.primary-nav li:last-child {
  border-right: none;
}

.primary-nav li a {
  display: block;
  height: 46px;
  line-height: 46px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
}

.primary-nav li a:hover,
.primary-nav li a.active {
  background: var(--gov-red);
  color: #FFFFFF;
}

/* 面包屑 */
.breadcrumb-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 10px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: #666666;
}

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

/* 政务要闻头条大通栏 */
.top-headline-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 18px 24px;
  margin: 14px 0;
  text-align: center;
}

.top-headline-banner .tag-badge {
  display: inline-block;
  background: var(--gov-red);
  color: #FFFFFF;
  font-size: 12px;
  padding: 1px 8px;
  vertical-align: middle;
  margin-right: 8px;
  font-weight: bold;
}

.top-headline-banner h2 {
  display: inline;
  font-family: "SimSun", serif;
  font-size: 25px;
  font-weight: 900;
  color: var(--gov-red);
  cursor: pointer;
  vertical-align: middle;
}

.top-headline-banner h2:hover {
  text-decoration: underline;
}

.sub-headline-links {
  margin-top: 10px;
  font-size: 13px;
  color: #444444;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.gov-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  padding: 16px 18px;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.hero-split > *,
.grid-3col > *,
.grid-2col > *,
.grid-split-media > *,
.grid-topics-3 > *,
.surv-3col > * {
  min-width: 0;
}

.card-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #E6E9EF;
  padding-bottom: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-title-bar h3 {
  font-size: 16px;
  font-weight: bold;
  color: var(--gov-blue);
  border-left: 4px solid var(--gov-red);
  padding-left: 10px;
}

.tab-switch-group {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tab-switch-group span {
  font-size: 15px;
  font-weight: bold;
  color: #555555;
  cursor: pointer;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  margin-bottom: -10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-switch-group span.active {
  color: var(--gov-red);
  border-bottom-color: var(--gov-red);
}

/* 首页核心两栏：左轮播图 + 右多标签要闻 */
.hero-split {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.carousel-box {
  position: relative;
  border: 1px solid #CCCCCC;
  background: #111827;
}

.carousel-box img {
  width: 100%;
  height: 325px;
  object-fit: cover;
  display: block;
  background: #1f2937;
}

.carousel-footer {
  background: rgba(15, 59, 120, 0.94);
  color: #FFFFFF;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.carousel-caption {
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.carousel-dots button {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #FFFFFF;
  font-size: 11px;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--gov-red);
  border-color: var(--gov-red);
}

.news-ul {
  list-style: none;
}

.news-ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 2px;
  border-bottom: 1px dashed #E2E5EC;
  font-size: 14px;
  gap: 10px;
}

.news-ul li:last-child {
  border-bottom: none;
}

.news-ul .n-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.news-ul .n-left a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.sq-dot {
  width: 4px;
  height: 4px;
  background: var(--gov-blue);
  flex-shrink: 0;
}

.n-date {
  font-size: 12px;
  color: #888888;
  font-family: Arial, sans-serif;
  flex-shrink: 0;
}

/* 涂黑审查词条（交互触发查看） */
.redacted-word {
  background: #141414;
  color: #141414;
  padding: 0 5px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.redacted-word:hover,
.redacted-word.revealed {
  background: #7F1D1D;
  color: #FECACA;
}

/* 三栏：领导之窗 + 政务公开 + 通知公告 */
.grid-3col {
  display: grid;
  grid-template-columns: 270px 1fr 340px;
  gap: 14px;
  margin-bottom: 14px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-split-media {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 20px;
}

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

.leader-box {
  background: #F8FAFD;
  border: 1px solid #DCE3EE;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.leader-box img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border: 1px solid #CBD5E1;
  flex-shrink: 0;
}

.leader-role {
  font-size: 12px;
  color: var(--gov-blue);
  font-weight: bold;
}

.leader-name {
  font-size: 16px;
  font-weight: bold;
  color: #111111;
  margin: 2px 0 6px;
}

.leader-links {
  font-size: 12px;
  color: #555555;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leader-links a {
  color: var(--gov-blue);
}

.deputy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
}

.deputy-grid a {
  background: #F4F6FA;
  border: 1px solid #E2E6EE;
  padding: 5px 8px;
  text-align: center;
  display: block;
}

.open-gov-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.og-tile {
  border: 1px solid #D8E0EC;
  background: #F7F9FC;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  color: var(--gov-blue);
  cursor: pointer;
  display: block;
}

.og-tile:hover {
  background: var(--gov-blue);
  color: #FFFFFF;
  text-decoration: none;
}

/* 一网通办服务大厅横栏 */
.service-hall-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hall-item {
  border: 1px solid #DCE2EC;
  background: #FAFBFD;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  display: block;
}

.hall-item:hover {
  border-color: var(--gov-red);
  background: #FFF8F8;
  text-decoration: none;
}

.hall-item svg {
  width: 28px;
  height: 28px;
  stroke: var(--gov-blue);
  margin-bottom: 6px;
}

.hall-item .h-name {
  font-weight: bold;
  font-size: 14px;
}

.hall-item .h-desc {
  font-size: 11px;
  color: #777777;
  margin-top: 2px;
}

.gov-links-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gov-links-bar select {
  width: 100%;
  height: 34px;
  border: 1px solid #CCCCCC;
  padding: 0 8px;
  font-size: 13px;
  background: #FAFAFA;
}

/* 数据表格样式 */
.gov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.gov-table th, .gov-table td {
  border: 1px solid #DCDFE6;
  padding: 9px 12px;
  text-align: left;
}

.gov-table th {
  background: #F4F6FA;
  color: var(--gov-blue);
  font-weight: bold;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.doc-container {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 36px 52px;
  margin-top: 14px;
  margin-bottom: 20px;
  max-width: 100%;
  overflow-x: auto;
}

/* 标准党政机关页脚 */
.official-footer {
  background: #2C313A;
  color: #C4C9D4;
  border-top: 4px solid var(--gov-red);
  padding: 24px 0;
  font-size: 12px;
  margin-top: 16px;
}

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

.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 找错交互小面板（位于页脚下方，点击后展开，绝不自动弹出） */
#find-error-panel {
  display: none;
  background: #1B1E24;
  color: #E5E7EB;
  border-top: 1px solid #374151;
  padding: 18px 0;
  font-size: 13px;
}

/* ================= 隐藏深层越界区域（模拟恐怖：官方应急广播接管风格） ================= */
#hidden-breach-zone {
  display: none;
  background: #030304;
  color: #D4D4D8;
  border-top: 6px solid #990000;
  padding: 28px 0 56px;
  font-family: "SimSun", "FangSong", "STSong", serif;
}

.breach-banner {
  background: #140303;
  border: 2px solid #990000;
  color: #F3F4F6;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.breach-banner .gov-takeover-tag {
  background: #990000;
  color: #FFFFFF;
  padding: 2px 8px;
  font-weight: bold;
  margin-right: 8px;
  font-size: 12px;
}

.surv-4col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.surv-4col > * {
  min-width: 0;
}

@media (max-width: 768px) {
  .surv-4col {
    grid-template-columns: 1fr;
  }
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dossier-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-card {
  background: #070709;
  border: 1px solid #3F3F46;
  padding: 16px;
  font-size: 13px;
  line-height: 1.85;
}

.dossier-card .d-head {
  color: #EF4444;
  font-weight: bold;
  border-bottom: 1px solid #27272A;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.dossier-card .d-meta {
  font-size: 11px;
  color: #71717A;
  margin-bottom: 10px;
  font-family: "Courier New", monospace;
}

.dossier-card p {
  margin-bottom: 8px;
  color: #D4D4D8;
}

.evidence-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.evidence-row > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .evidence-row {
    grid-template-columns: 1fr;
  }
}

.feed-frame {
  border: 1px solid #27272A;
  background: #000000;
  position: relative;
}

.feed-osd {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #E4E4E7;
  text-shadow: 1px 1px 0 #000000;
  pointer-events: none;
}

.rec-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #DC2626;
  margin-right: 4px;
  animation: blinkSlow 1s infinite;
}

.img-placeholder-box {
  border: 1px dashed #64748B;
  background: #F8FAFC;
  color: #334155;
  padding: 18px 16px;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
  font-family: "Courier New", "Microsoft YaHei", monospace;
}

.feed-frame .img-placeholder-box {
  height: 220px;
  background: #090D14;
  border: 1px dashed #475569;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}

.feed-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #090d16;
  filter: blur(0.8px) contrast(1.18) brightness(0.86);
}

.feed-meta {
  padding: 8px 10px;
  background: #09090B;
  border-top: 1px solid #27272A;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.telemetry-box {
  border: 1px solid #3F3F46;
  background: #050507;
  padding: 14px;
}

.t-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #27272A;
  gap: 8px;
}

.t-val {
  color: #E5E7EB;
  font-family: "Courier New", monospace;
  text-align: right;
}

.secret-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}

.secret-table th, .secret-table td {
  border: 1px solid #27272A;
  padding: 9px 12px;
  text-align: left;
}

.secret-table th {
  background: #111114;
  color: #E4E4E7;
}

.target-flash {
  background: rgba(153, 0, 0, 0.22);
  color: #FECACA;
}

/* 终局：国家/市政应急广播强制接管画面 */
.abyss-climax {
  background: #000000;
  border: 2px solid #990000;
  padding: 32px 28px;
  color: #E5E5E5;
}

.emergency-header {
  text-align: center;
  border-bottom: 2px solid #990000;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.emergency-header .em-org {
  font-size: 22px;
  font-weight: bold;
  color: #DC2626;
  letter-spacing: 4px;
}

.emergency-header .em-sub {
  font-size: 13px;
  color: #A1A1AA;
  margin-top: 6px;
  letter-spacing: 2px;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.emergency-rules {
  background: #08080A;
  border: 1px solid #3F3F46;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.95;
}

.emergency-rules h4 {
  color: #EF4444;
  font-size: 15px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #3F3F46;
  padding-bottom: 6px;
}

.emergency-rules ol {
  padding-left: 20px;
}

.emergency-rules li {
  margin-bottom: 8px;
}

.sample-box {
  border: 1px solid #52525B;
  background: #050505;
}

.sample-box img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  filter: blur(1px) grayscale(35%) contrast(1.28) brightness(0.76);
}

.sample-box .sample-cap {
  padding: 8px 10px;
  font-size: 11px;
  color: #A1A1AA;
  border-top: 1px solid #27272A;
  line-height: 1.5;
}

.lock-directive {
  background: #080202;
  border: 1px solid #990000;
  padding: 20px;
  text-align: left;
  color: #E5E7EB;
}

.clock-big {
  font-size: 36px;
  color: #DC2626;
  text-align: center;
  font-weight: bold;
  letter-spacing: 6px;
  margin: 12px 0;
  font-family: "Courier New", monospace;
}

/* 文章详情与红头文件样式 */
.doc-container {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 36px 52px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.red-doc-head {
  text-align: center;
  border-bottom: 3px solid var(--gov-red);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.red-doc-head .org-title {
  font-family: "SimSun", serif;
  font-size: 30px;
  font-weight: bold;
  color: var(--gov-red);
  letter-spacing: 8px;
}

.red-doc-head .doc-code {
  font-family: "SimSun", serif;
  font-size: 14px;
  color: #333333;
  margin-top: 8px;
}

.doc-body-text {
  font-size: 16px;
  line-height: 2;
  font-family: "SimSun", "Microsoft YaHei", serif;
}

.doc-body-text p {
  text-indent: 2em;
  margin-bottom: 16px;
}

.doc-img-caption {
  font-size: 12px;
  color: #666666;
  margin-top: 6px;
}

.stamp-area {
  margin-top: 36px;
  text-align: right;
  padding-right: 45px;
  position: relative;
  font-family: "SimSun", serif;
  font-size: 16px;
}

#final-lock-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #040000;
  color: #FF1E1E;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  font-family: "SimSun", monospace;
}

#final-lock-modal.active {
  display: flex;
}

/* 响应式：平板与手机端适配 */
@media (max-width: 1024px) {
  .grid-3col {
    grid-template-columns: 1fr;
  }
  .gov-links-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .grid-split-media {
    grid-template-columns: 1fr;
  }
  .grid-topics-3 {
    grid-template-columns: 1fr 1fr;
  }
  .surv-3col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-gov-bar {
    padding: 4px 0;
    line-height: 1.6;
  }
  .portal-header {
    padding: 14px 0;
  }
  .emblem-img {
    width: 52px;
    height: 52px;
  }
  .title-stack h1 {
    font-size: 22px;
    letter-spacing: 2px;
  }
  .search-area {
    width: 100%;
    align-items: stretch;
  }
  .search-box-row {
    width: 100%;
  }
  .search-box-row input {
    width: 100%;
    flex: 1;
  }
  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .primary-nav li {
    min-width: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .primary-nav li a {
    font-size: 13px;
    letter-spacing: 0;
    height: 40px;
    line-height: 40px;
  }
  .top-headline-banner {
    padding: 14px 12px;
  }
  .top-headline-banner h2 {
    font-size: 18px;
  }
  .carousel-box img {
    height: 220px;
  }
  .open-gov-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-hall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2col,
  .grid-topics-3,
  .gov-links-bar {
    grid-template-columns: 1fr;
  }
  .doc-container {
    padding: 18px 16px;
  }
  .red-doc-head .org-title {
    font-size: 22px;
    letter-spacing: 4px;
  }
  .stamp-area {
    padding-right: 10px;
  }
  .abyss-title {
    font-size: 22px;
    letter-spacing: 4px;
  }
}

/* ================= 人物档案页样式 ================= */
.prof-card {
  padding: 24px 28px;
}

.prof-card-archive {
  border-top: 4px solid var(--gov-red);
}

.prof-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 2px solid var(--gov-blue);
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.prof-card-archive .prof-header-bar {
  border-bottom-color: var(--gov-red);
}

.prof-kicker {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 4px;
  font-family: "Courier New", "Microsoft YaHei", monospace;
}

.prof-header-bar h2 {
  font-size: 24px;
  color: #111827;
  margin-bottom: 4px;
}

.prof-role-line {
  font-size: 14px;
  color: var(--gov-blue);
  font-weight: bold;
}

.prof-card-archive .prof-role-line {
  color: #991B1B;
}

.prof-status-tag {
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
}

.prof-status-alert {
  border-color: #DC2626;
  background: #FEF2F2;
  color: #991B1B;
}

.prof-main-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  margin-bottom: 20px;
  align-items: start;
}

.prof-photo-frame {
  width: 190px;
  height: 240px;
  border: 1px solid #CBD5E1;
  background: #F1F5F9;
  overflow: hidden;
}

.prof-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prof-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #E2E8F0;
  color: #334155;
  text-align: center;
  padding: 12px;
  gap: 6px;
}

.prof-photo-fallback .fb-code {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #64748B;
}

.prof-photo-fallback .fb-name {
  font-size: 18px;
  font-weight: bold;
}

.prof-photo-fallback .fb-note {
  font-size: 11px;
  color: #991B1B;
  border: 1px dashed #94A3B8;
  padding: 2px 6px;
}

.prof-photo-cap {
  font-size: 11px;
  color: #64748B;
  text-align: center;
  margin-top: 6px;
  font-family: "Courier New", "Microsoft YaHei", monospace;
}

.prof-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.prof-meta-table th, .prof-meta-table td {
  border: 1px solid #DCE2EC;
  padding: 9px 12px;
  text-align: left;
}

.prof-meta-table th {
  width: 120px;
  background: #F4F6FA;
  color: var(--gov-blue);
  font-weight: bold;
}

.prof-section-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--gov-blue);
  border-left: 4px solid var(--gov-blue);
  padding-left: 10px;
  margin: 18px 0 10px;
}

.prof-card-archive .prof-section-title {
  color: #991B1B;
  border-left-color: #991B1B;
}

.prof-resume-body p {
  margin-bottom: 10px;
  line-height: 1.9;
  font-size: 14px;
  color: #222222;
  text-indent: 2em;
}

.prof-memo-box {
  margin-top: 16px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
}

.prof-memo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13px;
  font-weight: bold;
  color: #334155;
  gap: 10px;
  flex-wrap: wrap;
}

.prof-memo-btn {
  background: var(--gov-blue);
  color: #FFFFFF;
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}

.prof-memo-body {
  padding: 14px;
  font-size: 13px;
  line-height: 1.85;
  color: #1F2937;
  background: #FFFDF7;
}

.prof-breach-btn {
  background: #991B1B;
  color: #FFFFFF;
  border: 1px solid #7F1D1D;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
}

.profile-roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.roster-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #DCE2EC;
  background: #F8FAFD;
  text-decoration: none;
}

.roster-chip:hover {
  border-color: var(--gov-blue);
  background: #EFF6FF;
  text-decoration: none;
}

.roster-chip.active {
  border-color: var(--gov-blue);
  background: var(--gov-blue);
  color: #FFFFFF;
}

.roster-chip.is-archive {
  border-left: 3px solid #991B1B;
}

.roster-chip .rc-name {
  font-size: 14px;
  font-weight: bold;
}

.roster-chip .rc-role {
  font-size: 11px;
  color: #64748B;
}

.roster-chip.active .rc-role {
  color: #DBEAFE;
}

@media (max-width: 768px) {
  .prof-card {
    padding: 16px;
  }
  .prof-main-grid {
    grid-template-columns: 1fr;
  }
  .prof-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .profile-roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= 人物大图与按下鬼图反演弹窗 ================= */
.prof-photo-frame.is-clickable {
  cursor: zoom-in;
  position: relative;
}

.prof-photo-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.78);
  color: #F8FAFC;
  font-size: 11px;
  text-align: center;
  padding: 4px 6px;
}

#photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(2, 6, 12, 0.9);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#photo-lightbox.open {
  display: flex;
}

.lb-dialog {
  width: 100%;
  max-width: 420px;
  background: #0F172A;
  border: 1px solid #334155;
  color: #E2E8F0;
}

.lb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #1E293B;
  font-size: 13px;
  font-weight: bold;
}

.lb-close {
  background: transparent;
  color: #94A3B8;
  border: 1px solid #334155;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.lb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 62vh;
  background: #020617;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.lb-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.12s linear, transform 0.12s linear;
}

.lb-stage.ghost-active img {
  filter: invert(1) contrast(1.6) brightness(0.82) grayscale(0.72);
  transform: scale(1.03);
}

.ghost-eye-shadow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s linear;
  background:
    radial-gradient(ellipse 14% 7% at 40% 39%, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.72) 55%, transparent 100%),
    radial-gradient(ellipse 14% 7% at 60% 39%, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.72) 55%, transparent 100%),
    radial-gradient(ellipse 42% 14% at 50% 40%, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.lb-stage.ghost-active .ghost-eye-shadow {
  opacity: 1;
}

.ghost-scanline {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.28) 0px,
    rgba(0, 0, 0, 0.28) 1px,
    transparent 1px,
    transparent 3px
  );
}

.lb-stage.ghost-active .ghost-scanline {
  opacity: 1;
}

.lb-foot {
  padding: 12px 14px;
  border-top: 1px solid #1E293B;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-cap {
  color: #94A3B8;
  line-height: 1.5;
}

.lb-cap.is-ghost {
  color: #F87171;
  font-weight: bold;
}

.lb-hold-btn {
  width: 100%;
  padding: 9px 12px;
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #475569;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.lb-hold-btn.active {
  background: #7F1D1D;
  border-color: #DC2626;
}

/* ================= 12345 政务在线真人客服浮窗 ================= */
#gov-chat-dock {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 8200;
  background: var(--gov-blue);
  color: #FFFFFF;
  border: 1px solid #0B3A75;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

#gov-chat-dock.is-breach {
  background: #7F1D1D;
  border-color: #DC2626;
}

#gov-chat-dock .sb-dot {
  display: none;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid #FFFFFF;
}

#gov-chat-win {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 68px;
  width: 350px;
  max-width: calc(100vw - 24px);
  height: 470px;
  max-height: calc(100vh - 96px);
  z-index: 8300;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  flex-direction: column;
}

#gov-chat-win.open {
  display: flex;
}

#gov-chat-win.is-breach {
  background: #09090B;
  border-color: #991B1B;
  color: #E4E4E7;
}

.gc-head {
  background: var(--gov-blue);
  color: #FFFFFF;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#gov-chat-win.is-breach .gc-head {
  background: #450A0A;
  border-bottom: 1px solid #991B1B;
}

.gc-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gc-av-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.gc-av-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gc-av-wrap.ghost-avatar img {
  filter: invert(1) contrast(1.55) grayscale(0.7);
}

.gc-av-wrap.ghost-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 18% 9% at 38% 40%, rgba(0, 0, 0, 0.95), transparent 100%),
    radial-gradient(ellipse 18% 9% at 62% 40%, rgba(0, 0, 0, 0.95), transparent 100%);
}

.gc-name {
  font-size: 13px;
  font-weight: bold;
}

.gc-status {
  font-size: 11px;
  color: #DBEAFE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#gov-chat-win.is-breach .gc-status {
  color: #FCA5A5;
}

.gc-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.gc-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#gov-chat-win.is-breach .gc-body {
  background: #050507;
}

.gc-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.gc-msg.me {
  justify-content: flex-end;
}

.gc-msg.sys {
  justify-content: center;
  font-size: 11px;
  color: #64748B;
}

.gc-msg .bub {
  max-width: 78%;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1E293B;
}

#gov-chat-win.is-breach .gc-msg .bub {
  background: #141418;
  border-color: #3F3F46;
  color: #E4E4E7;
}

.gc-msg.me .bub {
  background: var(--gov-blue);
  border-color: var(--gov-blue);
  color: #FFFFFF;
}

#gov-chat-win.is-breach .gc-msg.me .bub {
  background: #7F1D1D;
  border-color: #991B1B;
}

.gc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
}

#gov-chat-win.is-breach .gc-quick {
  background: #0B0B0E;
  border-top-color: #27272A;
}

.gc-quick span {
  font-size: 11px;
  padding: 4px 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--gov-blue);
  cursor: pointer;
}

#gov-chat-win.is-breach .gc-quick span {
  background: #18181B;
  border-color: #52525B;
  color: #FCA5A5;
}

.gc-foot {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
}

#gov-chat-win.is-breach .gc-foot {
  background: #09090B;
  border-top-color: #27272A;
}

.gc-foot input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 1px solid #CBD5E1;
  padding: 0 8px;
  font-size: 12px;
}

#gov-chat-win.is-breach .gc-foot input {
  background: #18181B;
  border-color: #3F3F46;
  color: #F4F4F5;
}

.gc-foot button {
  height: 32px;
  padding: 0 12px;
  background: var(--gov-blue);
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
}

#gov-chat-win.is-breach .gc-foot button {
  background: #991B1B;
}

.gov-chat-bar {
  position: fixed;
  top: 12px;
  right: 12px;
  left: 12px;
  max-width: 420px;
  margin-left: auto;
  z-index: 8400;
  background: #FFFFFF;
  border: 1px solid var(--gov-blue);
  border-left: 4px solid var(--gov-red);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.gov-chat-bar .gcb-txt {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.gov-chat-bar .gcb-txt b {
  display: block;
  color: var(--gov-blue);
  margin-bottom: 2px;
}

.gov-chat-bar .gcb-txt p {
  margin: 0;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gov-chat-bar .gcb-x {
  color: #64748B;
  font-size: 16px;
  padding: 0 4px;
}

/* ================= 4步核验追问弹窗 ================= */
#gov-verify-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(2, 6, 12, 0.82);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#gov-verify-modal.open {
  display: flex;
}

.gv-box {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 2px solid var(--gov-blue);
  padding: 20px;
}

.gv-head {
  font-size: 15px;
  font-weight: bold;
  color: var(--gov-blue);
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.gv-q {
  font-size: 16px;
  color: #111827;
  line-height: 1.7;
  margin-bottom: 16px;
}

.gv-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gv-opts button {
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
}

.gv-opts button:hover {
  border-color: var(--gov-blue);
  background: #EFF6FF;
}

@media (max-width: 768px) {
  #gov-chat-dock {
    right: 10px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }
  #gov-chat-win {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 76vh;
    max-height: 76vh;
  }
}
