/* ============== 设计基底 ============== */
:root {
  --gov-blue: #0d2d5e;
  --gov-blue-dark: #061a3a;
  --gov-blue-light: #1e4583;
  --gov-blue-accent: #2c5aa0;
  --gold: #c9a961;
  --gold-light: #e8c878;
  --gold-dark: #a8893f;
  --red: #c44848;
  --red-dark: #9a2e2e;
  --paper: #fdfdfa;
  --paper-warm: #f7f4ec;
  --ink: #1a1a22;
  --ink-soft: #3a3a44;
  --ink-mute: #707078;
  --border: #d8d2c0;
  --border-strong: #b8ad8a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  /* 微妙的纸张纹理 */
  background-image: 
    radial-gradient(rgba(201, 169, 97, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(13, 45, 94, 0.02) 1px, transparent 1px);
  background-size: 30px 30px, 50px 50px;
  background-position: 0 0, 15px 15px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--gov-blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============== 顶部二创声明条 ============== */
.top-strip {
  background: var(--gov-blue-dark);
  color: var(--gold-light);
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gold-dark);
}

/* ============== 头部 ============== */
.site-header {
  background: 
    linear-gradient(180deg, rgba(13, 45, 94, 0.03) 0%, transparent 100%),
    var(--paper);
  border-bottom: 3px solid var(--gov-blue);
  padding: 28px 0 22px;
  position: relative;
}

.site-header::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

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

.emblem-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.emblem {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 
    0 0 0 2px var(--gold),
    0 4px 16px rgba(13, 45, 94, 0.15);
}

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

.emblem svg {
  width: 100%;
  height: 100%;
}

.title-block .cn-title {
  font-size: 32px;
  color: var(--gov-blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.title-block .en-title {
  font-size: 11px;
  color: var(--gov-blue-light);
  letter-spacing: 0.3em;
  margin-top: 4px;
  font-family: "Georgia", serif;
}

.title-block .sub-line {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.search-block {
  text-align: right;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--gov-blue);
  background: white;
}

.search-box input {
  width: 240px;
  padding: 9px 12px;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
}

.search-box button {
  padding: 9px 18px;
  background: var(--gov-blue);
  color: white;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.search-box button:hover {
  background: var(--gov-blue-light);
}

.quick-links {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-mute);
}

.quick-links a {
  color: var(--ink-mute);
}

.quick-links span {
  margin: 0 6px;
}

/* ============== 主导航 ============== */
.main-nav {
  background: var(--gov-blue);
  border-bottom: 1px solid var(--gold);
}

.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
}

.main-nav li {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

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

.main-nav a {
  display: block;
  padding: 14px 0;
  color: white;
  font-size: 15px;
  letter-spacing: 0.1em;
  font-weight: 500;
  position: relative;
  transition: all 0.25s;
}

.main-nav a:hover {
  background: var(--gov-blue-light);
  color: var(--gold-light);
  text-decoration: none;
}

.main-nav li.active a {
  background: var(--gov-blue-dark);
  color: var(--gold-light);
}

.main-nav li.active a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--gold);
}

/* ============== 滚动通告条 ============== */
.ticker-bar {
  background: linear-gradient(to right, #fff3e0, #fef5e7, #fff3e0);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  color: var(--red-dark);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: 0.1em;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content span {
  display: inline-block;
  animation: scroll-left 35s linear infinite;
  padding-left: 100%;
  color: var(--ink-soft);
  font-size: 13px;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============== 主内容区 ============== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--gov-blue);
  padding-bottom: 8px;
  position: relative;
}

.section-head::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.section-head h2 {
  font-size: 20px;
  color: var(--gov-blue);
  letter-spacing: 0.08em;
}

.more-link {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* === 头条要闻 === */
.featured-news {
  background: var(--paper-warm);
  padding: 22px 24px;
  border-left: 4px solid var(--gov-blue);
  margin-bottom: 18px;
  position: relative;
}

.news-tag {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 11px;
  padding: 2px 10px;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.featured-news h3 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.featured-news p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.news-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  gap: 16px;
}

.news-meta .dept {
  color: var(--gov-blue);
}

/* === 新闻列表 === */
.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}

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

.news-list .dot {
  color: var(--gold);
  font-size: 8px;
  flex-shrink: 0;
}

.news-list a {
  flex: 1;
  color: var(--ink);
}

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

.news-list .date {
  color: var(--ink-mute);
  font-size: 12px;
  font-family: "Georgia", serif;
  flex-shrink: 0;
}

/* === 侧边栏 === */
.info-card, .service-card {
  background: white;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.info-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--gov-blue);
  color: white;
  padding: 12px 18px;
}

.info-card h2 {
  font-size: 16px;
  color: white;
  letter-spacing: 0.1em;
}

.info-card .more-link {
  color: var(--gold-light);
}

.notice-list {
  list-style: none;
  padding: 12px 18px;
}

.notice-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

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

.notice-num {
  font-size: 11px;
  color: var(--red);
  font-family: "Georgia", serif;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.notice-list a {
  font-size: 14px;
  color: var(--ink);
  display: block;
  line-height: 1.5;
}

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

.notice-date {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 4px;
  font-family: "Georgia", serif;
}

/* === 办事服务 === */
.service-card {
  padding: 18px;
}

.service-card h2 {
  font-size: 16px;
  color: var(--gov-blue);
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--gov-blue);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

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

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
  transition: all 0.2s;
}

.service-item:hover {
  background: var(--gov-blue);
  color: white;
  border-color: var(--gov-blue);
  text-decoration: none;
  transform: translateY(-2px);
}

.service-item .icon {
  font-size: 24px;
  margin-bottom: 6px;
}

/* === 数据公示 === */
.data-strip {
  background: var(--gov-blue);
  background-image: 
    linear-gradient(135deg, var(--gov-blue-dark) 0%, var(--gov-blue) 50%, var(--gov-blue-dark) 100%);
  padding: 36px 0;
  color: white;
  margin: 40px 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.data-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.data-item {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid rgba(201, 169, 97, 0.3);
}

.data-item:last-child {
  border-right: none;
}

.data-num {
  font-size: 38px;
  font-weight: 700;
  color: var(--gold-light);
  font-family: "Georgia", serif;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.data-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* === 法规速览 === */
.reg-section {
  margin-bottom: 50px;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.reg-item {
  display: block;
  padding: 22px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  color: var(--ink);
  transition: all 0.25s;
  position: relative;
}

.reg-item:hover {
  background: white;
  border-left-color: var(--gov-blue);
  box-shadow: 0 4px 12px rgba(13, 45, 94, 0.08);
  transform: translateX(4px);
  text-decoration: none;
}

.reg-num {
  font-size: 13px;
  color: var(--gov-blue);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.reg-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.reg-excerpt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* === 友情链接 === */
.links-section {
  border-top: 1px solid var(--border);
  padding: 24px 24px 40px;
}

.links-section h2 {
  font-size: 15px;
  color: var(--gov-blue);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.links-row a {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  border-right: 1px solid var(--border);
}

.links-row a:first-child {
  padding-left: 0;
}

.links-row a:last-child {
  border-right: none;
}

.links-row a:hover {
  color: var(--red-dark);
}

/* === 页脚 === */
.site-footer {
  background: var(--gov-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 40px;
  border-top: 3px solid var(--gold);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px;
}

.footer-title {
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.footer-en {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-top: 4px;
  font-family: "Georgia", serif;
}

.footer-info {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
  line-height: 1.9;
}

.seal-mini {
  width: 120px;
  height: 120px;
  opacity: 0.9;
}

.seal-mini svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  background: #04122b;
  padding: 14px 0;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* === 文章页 === */
.article-page {
  background: white;
  padding: 40px 60px;
  margin: 32px auto;
  max-width: 880px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.article-page .breadcrumb {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

.article-page .breadcrumb a {
  color: var(--ink-mute);
}

.article-page h1 {
  font-size: 30px;
  color: var(--gov-blue);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-page .article-meta {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-mute);
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gov-blue);
  margin-bottom: 32px;
}

.article-page .article-meta span {
  margin: 0 12px;
}

.article-page .article-body {
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}

.article-page .article-body p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.article-page .article-body h2 {
  font-size: 19px;
  color: var(--gov-blue);
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.article-page .article-body .article-section-num {
  display: block;
  font-size: 14px;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  margin: 24px 0 6px;
  font-weight: 700;
}

.article-page .signature {
  text-align: right;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
}

/* === 通告详情页：徽章 === */
.notice-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.notice-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 12px;
  padding: 4px 14px;
  letter-spacing: 0.3em;
  font-weight: 700;
}

.notice-id {
  font-size: 13px;
  color: var(--red-dark);
  font-family: "Georgia", serif;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* === 通告详情页：分享区 === */
.article-actions {
  margin-top: 40px;
  padding: 18px 24px;
  background: var(--paper-warm);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.action-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.action-label {
  font-size: 14px;
  color: var(--ink-soft);
}

.share-btn {
  padding: 7px 16px;
  background: var(--gov-blue);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}

.share-btn:hover {
  background: var(--gov-blue-light);
}

.copy-tip {
  font-size: 13px;
  color: var(--gov-blue);
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

/* === 通告详情页：相关通告 === */
.related-notices {
  margin-top: 30px;
  padding: 24px 28px;
  background: white;
  border-left: 4px solid var(--gov-blue);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.related-notices h3 {
  font-size: 16px;
  color: var(--gov-blue);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.related-notices ul {
  list-style: none;
}

.related-notices li {
  padding: 6px 0;
  font-size: 14px;
}

.related-notices a {
  color: var(--ink-soft);
}

.related-notices a:hover {
  color: var(--red-dark);
}

/* === 公告列表页 === */
.list-page {
  background: white;
  padding: 36px 50px;
  margin: 32px auto;
  max-width: 1000px;
  border: 1px solid var(--border);
}

.list-page .page-title {
  font-size: 24px;
  color: var(--gov-blue);
  border-bottom: 2px solid var(--gov-blue);
  padding-bottom: 14px;
  margin-bottom: 24px;
  position: relative;
}

.list-page .page-title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.list-items {
  list-style: none;
}

.list-items li {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}

.list-items .item-num {
  font-size: 12px;
  color: var(--red);
  font-family: "Georgia", serif;
  letter-spacing: 0.1em;
}

.list-items .item-title {
  font-size: 15px;
  color: var(--ink);
}

.list-items .item-title:hover {
  color: var(--gov-blue);
}

.list-items .item-date {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: "Georgia", serif;
  text-align: right;
}

/* === 响应式 === */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  
  .search-block {
    width: 100%;
    text-align: left;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
  }
  
  .main-nav li {
    flex-basis: 33.33%;
  }
  
  .title-block .cn-title {
    font-size: 24px;
  }
  
  .data-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  .data-item {
    border-right: none;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    padding-bottom: 16px;
  }
  
  .reg-grid {
    grid-template-columns: 1fr;
  }
  
  .article-page, .list-page {
    padding: 24px 20px;
    margin: 16px;
  }
  
  .footer-flex {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  
  .list-items li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .list-items .item-date {
    text-align: left;
  }
}
