/* ============================================
 * Header 方案 A：简洁横排
 * ============================================ */

:root {
  --gov-blue: #1e4a8c;
  --gov-blue-dark: #143063;
  --gov-blue-light: #2d6fc4;
  --gov-blue-deep: #0d1f44;
  --gov-gold: #d4a347;
  --gov-gold-dark: #a07a2a;
  --gov-cream: #f7f3ea;
  --text-primary: #1a2540;
  --text-muted: #8a94a8;
  --bg-page: #fafbfc;
  --border-light: #e5e9f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* === 顶部细信息条 === */
.top-bar {
  background: var(--gov-blue-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 32px;
  border-bottom: 1px solid rgba(212, 163, 71, 0.3);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.top-bar-left { display: flex; align-items: center; gap: 12px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-item::before { content: "☎"; font-size: 11px; }
.top-bar-sep { color: rgba(255, 255, 255, 0.3); }
.top-bar-right { color: rgba(255, 255, 255, 0.7); }
.top-bar-right::before { content: "◷"; margin-right: 4px; }

/* === Header 居中布局 === */
.header-a {
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 70%, var(--gov-cream) 100%);
  padding: 36px 0 28px;
  text-align: center;
  position: relative;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 8px 24px;
  position: relative;
}

/* 双环徽章 */
.logo-badge {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--gov-blue);
}
.logo-ring-outer {
  inset: 0;
  border-color: var(--gov-blue);
  animation: ring-rotate 20s linear infinite;
  border-style: dashed;
  border-width: 1px;
  opacity: 0.4;
}
.logo-ring-inner {
  inset: 6px;
  background: linear-gradient(135deg, var(--gov-blue), var(--gov-blue-dark));
  border: 3px solid var(--gov-gold);
  box-shadow: 0 4px 16px rgba(30, 74, 140, 0.3);
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-text {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
}

.site-title-wrap {
  text-align: left;
}
.site-title-wrap h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--gov-blue-dark);
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.site-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.site-slogan {
  display: inline-block;
  font-size: 12px;
  color: var(--gov-gold-dark);
  letter-spacing: 3px;
  padding: 2px 10px;
  border: 1px solid rgba(212, 163, 71, 0.4);
  border-radius: 2px;
}

/* 底部装饰双线 */
.header-decorator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.decorator-line {
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
}
.decorator-blue {
  bottom: 2px;
  background: linear-gradient(to right, transparent 0%, var(--gov-blue) 20%, var(--gov-blue) 80%, transparent 100%);
}
.decorator-gold {
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--gov-gold) 30%, var(--gov-gold) 70%, transparent 100%);
}

/* === 居中导航 === */
.main-nav {
  background: var(--gov-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(13, 31, 68, 0.15);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 52px;
  flex-wrap: wrap;
}

.nav-list li {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
  letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--gov-blue-dark);
  color: #fff;
}

/* 当前项左侧金色竖条 */
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--gov-gold);
  border-radius: 2px 2px 0 0;
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gov-gold);
  border-radius: 2px 2px 0 0;
  animation: hover-line 0.3s forwards;
}

@keyframes hover-line {
  to { width: 60%; }
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 4px;
  margin: 8px auto;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 主内容 === */
.main-content { min-height: 60vh; padding: 0px 0; }
.main-content h2 { font-size: 28px; font-weight: 700; }

/* === 响应式 === */
@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-a { padding: 20px 0 16px; }
  .logo-wrap { gap: 14px; padding: 4px; }
  .logo-badge { width: 56px; height: 56px; }
  .logo-text { font-size: 16px; }
  .site-title-wrap h1 { font-size: 18px; }
  .site-subtitle { font-size: 8px; }
  .site-slogan { font-size: 10px; letter-spacing: 1px; }

  .mobile-menu-toggle { display: flex; }
  .nav-list {
    display: none;
    flex-direction: column;
    height: auto;
    background: var(--gov-blue);
    padding: 4px 0;
  }
  .nav-list.show { display: flex; }
  .nav-list li { width: 100%; }
  .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
  }
  .nav-link.active::before { display: none; }
}

@media (max-width: 480px) {
  .logo-badge { width: 48px; height: 48px; }
  .logo-text { font-size: 14px; }
  .site-title-wrap h1 { font-size: 15px; }
  .site-subtitle { display: none; }
  .site-slogan { display: none; }
}
