/* 东川市卫健委官网样式 —— 一比一复刻中国政府网站风格 */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei","微软雅黑","PingFang SC","Helvetica Neue",Arial,sans-serif;
  color: #333; background: #f5f5f5; font-size: 16px; line-height: 1.7;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
a { color: #1a4b8c; text-decoration: none; }
a:hover { color: #a51c30; text-decoration: underline; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* 顶部红条 */
.top-bar { background: #a51c30; color: #fff; font-size: 13px; padding: 6px 0; }
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #fde4e8; text-decoration: none; }
.top-bar a:hover { color: #fff; text-decoration: underline; }
.top-bar-left { font-weight: 500; }
.top-bar-center { display: flex; align-items: center; gap: 4px; }
.top-bar-center .divider { margin: 0 4px; opacity: 0.5; }
.top-bar-week { margin-left: 8px; }
.top-bar-weather { margin-left: 12px; }
.top-bar-air { margin-left: 12px; }
.top-bar-right a { margin: 0; }
.top-bar-right .sep { margin: 0 4px; opacity: 0.5; }

/* 滚动通知条 */
.notice-bar { background: #fff9e6; border-bottom: 1px solid #f0e0a0; padding: 6px 0; }
.notice-inner { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.notice-tag { color: #d48806; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.notice-scroll {
  flex: 1; overflow: hidden; position: relative; height: 22px; line-height: 22px;
}
.notice-track {
  display: inline-flex;
  white-space: nowrap;
  animation: noticeScroll 60s linear infinite;
}
.notice-track span {
  color: #666;
  padding-right: 30px;
}
.notice-track .sep {
  color: #d48806;
  padding: 0 20px;
  font-size: 10px;
}
@keyframes noticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 头部 */
.site-header { background: #fff; border-bottom: 3px solid #a51c30; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px; flex-wrap: wrap; gap: 12px; }
.logo-block { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-emblem { flex-shrink: 0; }
.title-block h1 { font-size: 26px; color: #a51c30; font-weight: 700; letter-spacing: 1px; }
.title-block p { font-size: 11px; color: #999; letter-spacing: 0.5px; }
.search-block { display: flex; gap: 4px; }
.search-block input {
  border: 1px solid #ccc; padding: 8px 12px; width: 220px; font-size: 14px; outline: none;
}
.search-block input:focus { border-color: #a51c30; }
.search-block button {
  background: #a51c30; color: #fff; border: none; padding: 8px 16px; cursor: pointer; font-size: 14px;
}
.search-block button:hover { background: #8a1726; }
.advanced-search { background: #eee !important; color: #666 !important; }

/* 主导航 */
.main-nav { background: #1a4b8c; }
.nav-inner { display: flex; flex-wrap: wrap; }
.nav-item {
  color: #fff; padding: 14px 22px; cursor: pointer; font-size: 16px; font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.12); transition: background .2s;
}
.nav-item:hover, .nav-item.active { background: #a51c30; text-decoration: none; color: #fff; }

/* 内容主区 */
.content { background: #fff; padding: 24px 16px; min-height: 60vh; }

/* 通用栏目标题 */
.col-title {
  border-bottom: 2px solid #a51c30; padding-bottom: 8px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.col-title h2 { font-size: 20px; color: #333; }
.col-title .more { font-size: 13px; color: #999; }
.col-title .more:hover { color: #a51c30; }

/* 首页布局 */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.home-banner {
  grid-column: 1 / -1; background: linear-gradient(135deg,#1a4b8c,#2a6bc6);
  color: #fff; padding: 40px 32px; border-radius: 4px; position: relative; overflow: hidden;
}
.home-banner h2 { font-size: 28px; margin-bottom: 12px; }
.home-banner p { font-size: 15px; opacity: 0.9; }
.home-banner .banner-deco {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  font-size: 64px; opacity: 0.15;
}

/* 新闻列表 */
.news-list { list-style: none; }
.news-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 15px;
}
.news-list li:hover { background: #fafafa; }
.news-list .news-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; cursor: pointer; }
.news-list .news-title:hover { color: #a51c30; text-decoration: underline; }
.news-list .news-date { color: #999; font-size: 13px; flex-shrink: 0; }
.news-dot { color: #a51c30; margin-right: 6px; }

/* 新首页样式 */
.home-hero { margin-bottom: 24px; }
.hero-breadcrumb {
  font-size: 13px; color: #666; padding: 8px 0;
  background: #f8f9fa; border-bottom: 1px solid #eee;
  padding: 10px 16px; margin-bottom: 0;
}
.hero-breadcrumb a { color: #1a4b8c; }
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a4b8c 0%, #2a6bc6 50%, #3d7dd9 100%);
  color: #fff;
  padding: 40px 32px;
  min-height: 220px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,215,122,0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(165,28,48,0.1) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.03) 30px,
      rgba(255,255,255,0.03) 31px
    );
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
}
.hero-tag-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 16px;
  width: fit-content;
}
.hero-tag {
  background: #a51c30;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-tag-text {
  font-size: 13px;
  color: #fff;
  opacity: 0.95;
}
.hero-content h2 {
  font-size: 32px; font-weight: 700; letter-spacing: 4px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-deco-circle {
  position: absolute;
  width: 320px; height: 320px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -80px; right: -60px;
}
.hero-deco-circle2 {
  position: absolute;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,215,122,0.15);
  border-radius: 50%;
  bottom: -40px; right: 100px;
}
.bc-sep {
  color: #999;
  margin: 0 4px;
}

/* 便民服务大厅 */
.home-service-hall {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-left: 4px solid #a51c30;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hall-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.hall-header h3 {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 700;
}
.hall-sub {
  font-size: 13px;
  color: #888;
}
.hall-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.hall-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e0e4e8;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.hall-item:hover {
  background: #f5f5f5;
  border-color: #a51c30;
}
.hall-item-primary {
  background: #a51c30;
  border-color: #8a1726;
  color: #fff;
  grid-column: span 2;
}
.hall-item-primary:hover {
  background: #8a1726;
  color: #fff;
  border-color: #701020;
}
.hall-icon {
  font-weight: 600;
  font-size: 13px;
  color: #a51c30;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e4e8;
}
.hall-item-primary .hall-icon {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hall-info strong {
  display: block;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.hall-item-primary .hall-info strong { color: #fff; }
.hall-info span {
  display: block;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-arrow {
  color: #ccc;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hall-grid { grid-template-columns: repeat(2, 1fr); }
  .hall-item-primary { grid-column: span 2; }
  .hall-header { flex-direction: column; gap: 4px; }
  .hero-deco-circle, .hero-deco-circle2 { display: none; }
}

/* home-grid-3 — 三栏布局 */
.home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* 媒体查询 */
.hero-content > p {
  font-size: 15px; opacity: 0.9; margin-bottom: 24px;
  letter-spacing: 2px;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 16px 24px;
  max-width: 720px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-stat {
  flex: 1; text-align: center;
  padding: 0 16px;
}
.hero-stat .stat-num {
  font-size: 28px; font-weight: 700;
  color: #ffd47a;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero-stat .stat-label {
  font-size: 12px; opacity: 0.9; margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.3);
}

.home-main { background: #fff; }

.home-grid-2 {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
  margin-top: 24px;
}

/* 健康科普卡片 */
.science-items {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.science-item {
  background: #fff; border: 1px solid #eee;
  cursor: pointer; transition: all 0.2s;
  overflow: hidden;
}
.science-item:hover { border-color: #1a4b8c; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.science-item-img {
  height: 120px; background: linear-gradient(135deg, #e8f0fa, #d0e0f0);
  position: relative;
}
.science-img-1 {
  background: linear-gradient(135deg, #e8f0fa 0%, #b8d4e8 100%);
}
.science-img-1::after {
  content: "🦠"; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 40px;
}
.science-img-2 {
  background: linear-gradient(135deg, #f0e8ff 0%, #d4c8f0 100%);
}
.science-img-2::after {
  content: "❤️"; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 40px;
}
.science-img-3 {
  background: linear-gradient(135deg, #e8f8e8 0%, #c8e8c8 100%);
}
.science-img-3::after {
  content: "🩺"; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 40px;
}
.science-item-info { padding: 10px 12px; }
.science-item-info h4 { font-size: 13px; color: #333; margin-bottom: 4px; }
.science-item-info span { font-size: 11px; color: #999; }

/* 便民服务网格 */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.svc-grid-item {
  background: #f8f9fc; border: 1px solid #eee;
  padding: 16px 8px; text-align: center;
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border-radius: 4px;
}
.svc-grid-item:hover {
  background: #1a4b8c; color: #fff;
  border-color: #1a4b8c; transform: translateY(-2px);
}
.svc-grid-item:hover .sgi-icon { color: #fff; }
.sgi-icon { font-size: 24px; color: #1a4b8c; }
.svc-grid-item span:last-child { font-size: 12px; }

/* 热门服务按钮 */
.hot-btns {
  display: flex; gap: 10px; margin-top: 16px;
  padding-top: 12px; border-top: 1px dashed #eee;
}
.hot-btn {
  flex: 1; padding: 8px;
  background: #fff; border: 1px solid #1a4b8c;
  color: #1a4b8c; font-size: 12px;
  cursor: pointer; transition: all 0.2s;
  border-radius: 3px;
}
.hot-btn:hover {
  background: #1a4b8c; color: #fff;
}

/* 信息列表 */
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px; background: #f8f9fc; border-radius: 4px;
}
.info-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #1a4b8c; color: #fff;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 14px;
}
.info-row strong { font-size: 14px; color: #333; display: block; margin-bottom: 2px; }
.info-row p { font-size: 12px; color: #666; }

/* 热门列表 */
.hot-list { list-style: none; }
.hot-list li {
  padding: 10px 8px 10px 32px;
  border-bottom: 1px dashed #eee;
  cursor: pointer; position: relative;
  font-size: 13px; transition: all 0.15s;
}
.hot-list li:hover { color: #a51c30; background: #fff8f0; }
.hot-list li::before {
  content: attr(data-num);
  position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px;
  background: #e0e0e0; color: #666;
  border-radius: 3px; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.hot-list li:nth-child(1)::before { background: #d9534f; color: #fff; }
.hot-list li:nth-child(2)::before { background: #f0ad4e; color: #fff; }
.hot-list li:nth-child(3)::before { background: #5cb85c; color: #fff; }

/* 文字谷 */
.valley-section {
  background: #fafafa; padding: 24px 16px; text-align: center; color: #888;
  border: 1px solid #eee; margin: 16px 0;
}
.valley-title {
  font-size: 16px; color: #666; margin-bottom: 16px;
  font-weight: 500;
}
.valley-news { font-size: 14px; margin: 8px 0; }
.valley-note { font-size: 12px; color: #bbb; margin-top: 16px; font-style: italic; }

/* 栏目卡片 */
.col-card {
  background: #fff; border: 1px solid #eee; padding: 16px;
}
.col-card .card-icon { color: #a51c30; font-size: 28px; margin-bottom: 8px; }
.col-card h3 { font-size: 17px; margin-bottom: 6px; }
.col-card p { font-size: 13px; color: #777; }

/* 快捷服务 */
.quick-services {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 24px 0;
}
.quick-item {
  background: #f9f9f9; border: 1px solid #eee; padding: 20px 12px; text-align: center;
  cursor: pointer; transition: all .2s;
}
.quick-item:hover { background: #a51c30; color: #fff; border-color: #a51c30; }
.quick-item:hover .qi-icon { color: #fff; }
.qi-icon { font-size: 32px; color: #a51c30; margin-bottom: 8px; display: block; }
.quick-item p { font-size: 14px; }

/* 政务公开表格 */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.data-table th, .data-table td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; }
.data-table th { background: #f0f4f9; color: #1a4b8c; font-weight: 600; }
.data-table tr:hover { background: #fafcfe; }
.data-table .download-link { color: #a51c30; cursor: pointer; }
.data-table .download-link:hover { text-decoration: underline; }

/* 领导信息卡 */
.leader-card {
  display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee;
}
.leader-photo {
  width: 120px; height: 150px; background: #ddd; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px;
  border: 1px solid #ccc;
}
.leader-info h3 { font-size: 18px; color: #333; margin-bottom: 6px; }
.leader-info .leader-title { color: #a51c30; font-size: 14px; margin-bottom: 8px; }
.leader-info p { font-size: 14px; color: #666; margin-bottom: 4px; }
.leader-info .leader-bio { font-size: 14px; color: #555; margin-top: 8px; line-height: 1.8; }

/* 档案袋悬浮按钮 — 机密文件袋造型 */
.archive-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 64px; height: 80px;
  cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.55));
}
.archive-fab svg { width: 100%; height: 100%; pointer-events: none; }
.archive-fab:hover {
  transform: scale(1.08) translateY(-6px);
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.65));
}
.archive-fab:active { transform: scale(0.95); }
.archive-fab .fab-badge {
  position: absolute; top: -2px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: #d9534f; color: #fff; border-radius: 11px;
  font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
  border: 2px solid #fff;
  font-family: "Microsoft YaHei", sans-serif;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(217,83,79,0.5);
}
.fab-badge.fab-pulse {
  animation: fabPulse 0.5s ease;
}
@keyframes fabPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); background: #ffd47a; color: #a51c30; }
  100% { transform: scale(1); }
}

/* 档案袋浮窗 — 机密档案风格 */
.archive-panel {
  position: fixed; bottom: 110px; right: 24px; width: 420px;
  max-height: calc(100vh - 180px);
  background: #f5efe0;
  color: #333; z-index: 9998;
  border-radius: 2px; overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.55),
    0 0 0 2px #8b6028,
    0 0 0 6px #5a3f1a,
    0 0 0 8px #3d2b0f,
    inset 0 0 40px rgba(139,96,40,0.08);
  font-family: "Microsoft YaHei","微软雅黑",sans-serif;
  transform-origin: bottom right;
  animation: archiveIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.archive-paper-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(139,96,40,0.035) 28px,
      rgba(139,96,40,0.035) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(139,96,40,0.018) 48px,
      rgba(139,96,40,0.018) 49px
    );
  opacity: 0.9;
}
.archive-paper-stains {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(139,96,40,0.06) 0%, transparent 35%),
    radial-gradient(ellipse at 85% 70%, rgba(139,96,40,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 90%, rgba(139,96,40,0.04) 0%, transparent 30%);
  opacity: 0.8;
}
@keyframes archiveIn {
  from { opacity: 0; transform: scale(0.88) translateY(36px) rotate(-2deg); }
  to   { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}
@keyframes archiveOut {
  from { opacity: 1; transform: scale(1) rotate(0); }
  to   { opacity: 0; transform: scale(0.9) translateY(20px) rotate(-2deg); }
}
.archive-no {
  position: absolute; top: 6px; left: 12px;
  font-size: 10px; color: #8b6028; font-family: "Consolas",monospace;
  letter-spacing: 1.5px; z-index: 3;
  background: rgba(245,239,224,0.7);
  padding: 2px 6px;
  border-radius: 2px;
}

/* 机密条带 */
.archive-classified-bar {
  position: relative; z-index: 3;
  background: #8b1a2b;
  color: #f5efe0;
  font-family: "STSong","SimSun","宋体",serif;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 2px solid #5a1020;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
}
.archive-classified-bar .bar-star { color: #f0c75e; }
.archive-classified-bar .bar-divider { opacity: 0.4; }

.archive-head {
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, #a51c30 0%, #8b1a2b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 3px solid #5a1020;
  font-family: "STSong","SimSun","宋体",serif;
  position: relative;
  z-index: 2;
}
.archive-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #f0c75e 0px, #f0c75e 8px,
    #a51c30 8px, #a51c30 16px
  );
}
.archive-head .head-deco {
  flex-shrink: 0;
}
.archive-head .head-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.archive-head .head-title {
  font-size: 18px; font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.archive-head .head-sub {
  font-size: 12px; opacity: 0.85; margin-top: 3px;
  letter-spacing: 1.5px;
  font-family: "Microsoft YaHei","微软雅黑",sans-serif;
}
.archive-head button {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-size: 16px; cursor: pointer; line-height: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  z-index: 3;
  font-family: "Microsoft YaHei","微软雅黑",sans-serif;
}
.archive-head button:hover { background: rgba(255,255,255,0.3); }
.archive-body {
  padding: 16px 18px; max-height: calc(100vh - 380px); overflow-y: auto;
  background: #faf6eb;
  position: relative; z-index: 2;
}
.archive-body h4 {
  color: #8b1a2b; font-size: 12px; margin: 18px 0 10px;
  letter-spacing: 3px; font-weight: 700;
  border-bottom: 2px solid #c9a962;
  padding-bottom: 6px;
  font-family: "STSong","SimSun","宋体",serif;
  display: flex; align-items: center; gap: 10px;
}
.archive-body h4::before {
  content: "▌"; color: #a51c30;
}
.archive-body h4:first-child { margin-top: 0; }
.clue-item {
  padding: 10px 14px; margin-bottom: 6px;
  background: #fff;
  font-size: 13px;
  border-left: 4px solid #d0c4a0;
  color: #888;
  transition: all 0.2s;
  position: relative;
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.clue-item:hover { background: #fffbe8; transform: translateX(2px); }
.clue-item.unlocked {
  border-left-color: #a51c30;
  color: #333;
  background: linear-gradient(to right, #fff5f5 0%, #fff 80%);
}
.clue-item.unlocked::before {
  content: "✓"; position: absolute;
  left: -14px; top: 50%; transform: translateY(-50%);
  color: #fff; background: #a51c30;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #f5efe0;
}
.clue-item.unlocked::after {
  content: "★"; position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  color: #d4a574; font-size: 12px;
}
.clue-item.unlocked .clue-name { color: #8b1a2b; font-weight: 600; }
.clue-item.locked .clue-name { color: #bbb; }
.clue-name { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.clue-id {
  color: #aaa; font-size: 11px; font-family: "Consolas",monospace;
  background: #f5efe0; padding: 1px 6px; border-radius: 2px;
}
.day-counter {
  background: #fff;
  padding: 14px 16px; margin-bottom: 16px;
  border: 2px solid #c9a962;
  border-radius: 2px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.day-counter::before {
  content: "档"; position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: #a51c30; color: #fff;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  font-family: "STSong","SimSun","宋体",serif;
  border: 2px solid #f5efe0;
  box-shadow: 0 2px 4px rgba(165,28,48,0.3);
}
.day-counter .day-num {
  font-size: 22px; color: #8b1a2b; font-weight: 700;
  font-family: "STSong","SimSun","宋体",serif;
  margin-top: 6px;
}
.day-counter .day-label { font-size: 12px; color: #999; margin-top: 4px; }
.day-counter .day-progress {
  margin-top: 10px;
  height: 6px; background: #f0e6d2; border-radius: 3px; overflow: hidden;
}
.day-counter .day-progress-bar {
  height: 100%; background: linear-gradient(to right, #a51c30, #c72f48);
  border-radius: 3px; transition: width 0.5s;
}
.archive-letter {
  margin-top: 16px; padding: 14px 16px;
  background: #fff8f0;
  border: 1px dashed #c9a962;
  border-left: 4px solid #d4a574;
  font-size: 12px; color: #666; line-height: 2;
  font-style: italic; border-radius: 2px;
  position: relative;
  box-shadow: inset 0 0 20px rgba(212,165,116,0.08);
}
.archive-letter::before {
  content: "手迹"; position: absolute;
  top: -10px; left: 16px;
  background: #fff; padding: 0 8px;
  font-size: 10px; color: #d4a574;
  font-weight: 600; letter-spacing: 1px;
  border: 1px solid #c9a962;
  border-radius: 2px;
}
.archive-letter.locked { color: #ccc; font-style: normal; }
.archive-warning {
  font-size: 11px; color: #999; margin-top: 16px;
  padding-top: 12px; border-top: 1px dashed #c9a962;
  line-height: 1.8;
  text-align: center;
}
.archive-disclaimer {
  margin-top: 4px;
  padding-top: 6px;
  font-size: 10px;
  color: #b8a070;
  border-top: 1px dotted #c9a962;
}
.archive-progress {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #c9a962;
  border-radius: 2px;
  font-size: 12px;
}
.archive-progress-bar {
  height: 8px; background: #f0e6d2; border-radius: 4px; overflow: hidden;
  margin-top: 6px;
}
.archive-progress-fill {
  height: 100%; background: linear-gradient(to right, #a51c30, #c72f48, #d9534f);
  border-radius: 4px; transition: width 0.5s;
}
.archive-footer {
  padding: 10px 18px;
  background: linear-gradient(180deg, #5a3f1a 0%, #3d2b0f 100%);
  color: #d4a574;
  font-size: 11px;
  text-align: center;
  letter-spacing: 1px;
  border-top: 3px solid #8b6028;
  position: relative; z-index: 2;
  font-family: "Microsoft YaHei","微软雅黑",sans-serif;
}
.archive-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #f0c75e 0px, #f0c75e 10px,
    #5a3f1a 10px, #5a3f1a 20px
  );
}
.archive-footer .footer-stamp-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.archive-footer .footer-stamp-line .footer-dash {
  opacity: 0.4;
}
.archive-footer .footer-sign {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(212,165,116,0.7);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(212,165,116,0.2);
}

/* 机密印章效果 */
.classified-stamp {
  position: absolute; top: 60px; right: 14px;
  width: 72px; height: 72px;
  border: 2px solid #a51c30;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #a51c30; font-weight: 700;
  font-size: 14px; text-align: center; line-height: 1.2;
  transform: rotate(-12deg);
  opacity: 0.5;
  pointer-events: none;
  font-family: "STSong","SimSun","宋体",serif;
  z-index: 3;
  background: rgba(255,255,255,0.2);
  box-shadow:
    inset 0 0 0 1px rgba(165,28,48,0.2),
    inset 0 0 12px rgba(165,28,48,0.08);
}

/* 解密弹窗 */
.cipher-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.cipher-box {
  background: #fff; padding: 24px; width: 90%; max-width: 420px; border-top: 4px solid #a51c30;
}
.cipher-prompt { font-size: 14px; margin-bottom: 12px; color: #333; }
.cipher-box input {
  width: 100%; padding: 12px; border: 1px solid #ccc; font-size: 15px;
  font-family: "Consolas",monospace; letter-spacing: 1px; outline: none;
}
.cipher-box input:focus { border-color: #a51c30; }
.cipher-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.cipher-actions button { padding: 8px 20px; border: none; cursor: pointer; font-size: 14px; }
.cipher-actions button:first-child { background: #a51c30; color: #fff; }
.link-btn { background: #eee; color: #666; }
.cipher-hint { font-size: 12px; color: #999; margin-top: 10px; min-height: 16px; }

/* toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff; padding: 12px 24px;
  border-radius: 4px; font-size: 14px; z-index: 10001; max-width: 80%;
}

/* 隐藏注释线索的"残片"弹窗（移动端长按） */
.fragment-popup {
  position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a1a; color: #ffd47a;
  padding: 16px; font-family: "Consolas",monospace; font-size: 13px; z-index: 9998;
  border-top: 2px solid #a51c30; max-height: 40vh; overflow-y: auto;
}
.fragment-popup .frag-close { float: right; color: #999; cursor: pointer; font-size: 18px; }
.fragment-popup .frag-label { color: #888; font-size: 11px; margin-bottom: 6px; }
.fragment-popup .frag-content { word-break: break-all; line-height: 1.6; }

/* 文字谷：日常到不能再日常 */
.valley-section {
  background: #fafafa; padding: 32px 16px; text-align: center; color: #888;
  border: 1px solid #eee; margin: 16px 0;
}
.valley-section .valley-news { font-size: 15px; margin: 8px 0; }
.valley-section .valley-note { font-size: 12px; color: #bbb; margin-top: 16px; }

/* 名字消失动画（恐怖细节） */
.redacted { background: #000; color: transparent; user-select: none; }

/* 结局画面 */
.ending-screen {
  position: fixed; inset: 0; background: #0a0a0a; color: #ddd; z-index: 10002;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; text-align: center; overflow-y: auto;
}
.ending-screen .ending-title {
  font-size: 42px; color: #a51c30; letter-spacing: 12px; margin-bottom: 24px;
  font-family: "STSong","SimSun",serif;
}
.ending-screen .ending-body { max-width: 640px; font-size: 16px; line-height: 2; color: #bbb; }
.ending-screen .ending-body p { margin-bottom: 16px; }
.ending-screen .ending-restart {
  margin-top: 32px; padding: 12px 32px; background: #a51c30; color: #fff; border: none;
  cursor: pointer; font-size: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
  .wrap { padding: 0 12px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .search-block { width: 100%; }
  .search-block input { width: 100%; flex: 1; }
  .title-block h1 { font-size: 20px; }
  .nav-inner { flex-wrap: nowrap; overflow-x: auto; }
  .nav-item { padding: 12px 14px; font-size: 14px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.08); }
  .home-grid { grid-template-columns: 1fr; }
  .home-grid-2 { grid-template-columns: 1fr; }
  .home-grid-3 { grid-template-columns: 1fr; }
  .home-service-hall { padding: 14px; }
  .quick-services { grid-template-columns: repeat(2,1fr); }
  .science-items { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .leader-card { flex-direction: column; }
  .leader-photo { width: 100px; height: 125px; }
  .archive-fab { width: 54px; height: 68px; bottom: 16px; right: 16px; }
  .archive-panel {
    width: calc(100vw - 32px); right: 16px; bottom: 88px;
    max-height: calc(100vh - 140px);
  }
  .archive-body { max-height: calc(100vh - 400px); }
  .hall-grid { grid-template-columns: repeat(2, 1fr); }
  .hall-item-primary { grid-column: span 2; }
  .hall-header { flex-direction: column; gap: 4px; }
  .hero-deco-circle, .hero-deco-circle2 { display: none; }
  .hero-content h2 { font-size: 24px; }
  .hero-stats { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .hero-stat { flex: none; width: calc(50% - 12px); padding: 8px 0; }
  .stat-divider { display: none; }
  .stat-num { font-size: 22px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 6px 8px; }
  .ending-screen .ending-title { font-size: 28px; letter-spacing: 6px; }
  .top-bar-center { display: none; }
  .top-bar-right a:not(:last-child) { display: none; }
  /* 移动端隐藏"开发者工具"提示，显示"长按"提示 */
  .pc-only { display: none; }
  .top-bar { font-size: 12px; }
  .hot-list li::before { width: 18px; height: 18px; font-size: 10px; }
}
@media (min-width: 769px) {
  .mobile-only { display: none; }
}

/* 长按提示标记 */
.longpress-hint {
  position: relative;
}
.longpress-hint::after {
  content: ""; display: none;
}

/* 图片相关 */
.news-img-thumb {
  width: 100%; height: 180px; object-fit: cover; background: #eee;
}
.science-img { width: 100%; max-height: 320px; object-fit: cover; background: #e8eef5; }

/* 排版细节 */
.breadcrumb { font-size: 13px; color: #999; padding: 8px 0; margin-bottom: 16px; border-bottom: 1px solid #eee; }
.breadcrumb a { color: #1a4b8c; }
.article-body { font-size: 16px; line-height: 2; color: #333; }
.article-body p { margin-bottom: 16px; text-indent: 2em; }
.article-meta { font-size: 13px; color: #999; margin-bottom: 16px; }
.article-meta span { margin-right: 16px; }

/* 高亮当前可交互元素（解密提示，不直接泄露） */
.interactive-glow {
  cursor: pointer; transition: background .15s;
}
.interactive-glow:hover { background: #fff8f0; }

/* 桌面端调查模式：低调暗示，单击触发 */
.investigate {
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
  border-radius: 1px;
}
.investigate:hover {
  box-shadow: inset 0 0 0 1px rgba(165,28,48,0.6);
}
.investigate::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px dashed rgba(165,28,48,0);
  border-radius: 3px;
  pointer-events: none;
  transition: all 0.3s ease;
}
.investigate:hover::before {
  border-color: rgba(165,28,48,0.5);
  animation: dashMove 1.5s linear infinite;
}
@keyframes dashMove {
  to { background-position: 100% 0; }
}
.investigate::after {
  content: "⌕";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: #a51c30;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
  z-index: 1;
}
.investigate:hover::after {
  opacity: 1;
  transform: scale(1);
}
.investigate-clicked {
  animation: investigatePulse 0.5s ease;
}
@keyframes investigatePulse {
  0% { box-shadow: 0 0 0 0 rgba(165,28,48,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(165,28,48,0); }
}

/* 源代码视图（保留给 robots.txt 页面和已解锁的页面） */
.source-view {
  background: #1a1a1a; color: #8ae234; font-family: "Consolas",monospace;
  font-size: 13px; padding: 16px; margin: 12px 0; white-space: pre-wrap; word-break: break-all;
  border: 1px solid #333; max-height: 320px; overflow-y: auto;
}
.source-view .src-comment { color: #888; }
.source-view .src-key { color: #ffd47a; }

/* ========== 办事服务详情页 ========== */
.service-detail-header {
  display: flex; align-items: center; gap: 20px;
  padding: 20px; background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
  border-left: 4px solid #1a4b8c; margin-bottom: 24px;
}
.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #1a4b8c;
  box-shadow: 0 2px 8px rgba(26,75,140,0.15);
}
.service-title-area h2 { font-size: 22px; color: #1a1a1a; margin: 0 0 6px; }
.service-meta { display: flex; gap: 16px; font-size: 13px; color: #666; flex-wrap: wrap; }
.service-meta .tag {
  display: inline-block; padding: 2px 10px; border-radius: 3px;
  font-size: 12px; margin-right: 4px;
}
.service-meta .tag-blue { background: #e8f0fa; color: #1a4b8c; }

.service-section { margin-bottom: 24px; }
.service-section h3 {
  font-size: 16px; color: #1a1a1a; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid #f0f0f0;
}
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 8px 12px 8px 28px; position: relative;
  font-size: 14px; color: #333; border-bottom: 1px solid #f5f5f5;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓'; position: absolute; left: 8px;
  color: #1a4b8c; font-weight: 600;
}

/* 流程步骤 */
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: flex; gap: 16px; padding: 12px 0;
  border-left: 2px solid #e0e0e0; margin-left: 16px; position: relative;
}
.flow-step:last-child { border-left-color: transparent; }
.flow-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1a4b8c; color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  flex-shrink: 0; position: absolute; left: -17px;
  border: 3px solid #fff; box-shadow: 0 0 0 2px #1a4b8c;
}
.flow-body { padding-left: 24px; }
.flow-body strong { font-size: 15px; color: #1a1a1a; }
.flow-body p { margin: 4px 0 0; font-size: 13px; color: #666; }

/* 信息网格 */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 16px; background: #f8f9fc; border-radius: 8px;
}
.info-grid > div { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 12px; color: #888; }
.info-value { font-size: 14px; color: #1a1a1a; font-weight: 500; }
.service-note {
  margin-top: 12px; padding: 10px 14px; background: #fffbe8;
  border-left: 3px solid #ffd47a; font-size: 13px; color: #666; line-height: 1.8;
}

/* ========== 办事服务表单样式 ========== */
.service-form { max-width: 720px; }
.form-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px dashed #eee;
}
.form-row:last-of-type { border-bottom: none; }
.form-row > label {
  flex: 0 0 140px; padding-top: 8px;
  font-size: 14px; color: #333; text-align: right;
}
.form-row input[type="text"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  flex: 1; padding: 8px 12px; border: 1px solid #d0d0d0;
  border-radius: 3px; font-size: 14px; color: #333;
  background: #fff; transition: border-color 0.15s;
  font-family: inherit;
}
.form-row input[type="text"]:focus,
.form-row input[type="date"]:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: #1a4b8c;
  box-shadow: 0 0 0 2px rgba(26,75,140,0.15);
}
.form-row input:invalid:not(:placeholder-shown) { border-color: #d9534f; }
.form-row textarea { resize: vertical; min-height: 72px; }
.form-row .req { color: #d9534f; margin-left: 2px; }
.form-row .form-radios,
.form-row .form-checks {
  flex: 1; padding-top: 6px;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
}
.radio-label, .check-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: #333; cursor: pointer;
  padding: 4px 8px; border: 1px solid #e0e0e0; border-radius: 3px;
  transition: background 0.15s, border-color 0.15s;
}
.radio-label:hover, .check-label:hover { background: #f5f7fa; border-color: #1a4b8c; }
.radio-label input, .check-label input { margin: 0; }
.radio-label input:checked + span,
.check-label input:checked ~ .check-label { background: #e8f0fa; }

.form-actions {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}
.btn-submit {
  padding: 10px 32px; background: #1a4b8c; color: #fff;
  border: none; cursor: pointer; font-size: 14px; border-radius: 3px;
  transition: background 0.15s;
}
.btn-submit:hover { background: #163d74; }
.btn-reset {
  padding: 10px 32px; background: #fff; color: #666;
  border: 1px solid #ccc; cursor: pointer; font-size: 14px; border-radius: 3px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-reset:hover { background: #f5f5f5; border-color: #999; }

/* 成功提交页面 */
.form-success {
  text-align: center; padding: 40px 24px;
  background: #f8f9fc; border-radius: 8px; border: 1px solid #e0e7f0;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #5cb85c; color: #fff; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 20px; color: #1a1a1a; margin: 0 0 8px; }
.form-success p { color: #666; margin: 0 0 16px; }
.app-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 400px; margin: 16px auto;
}
.app-info > div {
  padding: 10px 16px; background: #fff;
  border: 1px solid #e0e7f0; border-radius: 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.app-info span { font-size: 12px; color: #888; }
.app-info strong { font-size: 14px; color: #1a4b8c; font-family: "Consolas", monospace; }
.success-tip {
  margin: 20px auto 0; padding: 12px 16px;
  background: #fffbe8; border-left: 3px solid #ffd47a;
  max-width: 400px; text-align: left;
}
.success-tip p { margin: 4px 0; font-size: 13px; color: #666; }

@media (max-width: 768px) {
  .form-row { flex-direction: column; gap: 4px; }
  .form-row > label { flex: none; text-align: left; padding-top: 0; }
  .form-row input[type="text"],
  .form-row input[type="date"],
  .form-row select,
  .form-row textarea { width: 100%; }
  .app-info { grid-template-columns: 1fr; }
}

/* ========== 办事服务卡片交互 ========== */
.quick-item { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.quick-item:hover {
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: #1a4b8c;
}

/* ========== 页脚样式 ========== */
.site-footer {
  background: #2c3e50; color: #bbb; font-size: 13px;
  margin-top: 48px;
}
.footer-inner { padding: 32px 20px 0; }
.footer-cols {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  padding-bottom: 24px; border-bottom: 1px solid #3d5166;
}
.footer-cols h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.footer-cols p { margin: 6px 0; line-height: 1.6; }
.footer-cols a { color: #bbb; text-decoration: none; transition: color 0.15s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  padding: 16px 0; text-align: center; border-top: 1px solid #3d5166;
}
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #bbb; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-meta { font-size: 12px; color: #888; }
.footer-meta a { margin: 0 4px; }

.qr-codes { display: flex; gap: 16px; }
.qr {
  width: auto; text-align: center; font-size: 12px; color: #bbb;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.qr img {
  width: 100px; height: 100px;
  border-radius: 4px;
  display: block;
  border: 2px solid #3d5166;
  background: #fff;
  padding: 2px;
}
.qr-label {
  font-size: 11px; color: #d9534f;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .service-detail-header { flex-direction: column; align-items: flex-start; }
}
