/* ============================================
 * Header 方案 C：呼吸流动版
 * 含 7 大动效：呼吸光晕、流光描边、旋转轨道、
 *             浮动光斑、导航涟漪、顶部流动、底部光带
 * ============================================ */

:root {
  --gov-blue: #1e4a8c;
  --gov-blue-dark: #143063;
  --gov-blue-light: #2d6fc4;
  --gov-blue-deep: #0d1f44;
  --gov-gold: #d4a347;
  --gov-gold-dark: #a07a2a;
  --gov-gold-light: #f5d878;
  --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;
}

/* ============================================
 * 动效 1：顶部信息条流动渐变背景
 * ============================================ */
.top-bar {
  position: relative;
  background: var(--gov-blue-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 36px;
  overflow: hidden;
}
.top-bar-flow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 163, 71, 0.15) 25%,
    transparent 50%,
    rgba(45, 111, 196, 0.2) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: flow-bg 8s linear infinite;
  pointer-events: none;
}
@keyframes flow-bg {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.top-bar .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  z-index: 1;
}
.top-bar-left { display: flex; align-items: center; gap: 12px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-item:first-child::before { content: ""; font-size: 11px; color: var(--gov-gold); }
.top-bar-right::before { content: ""; margin-right: 4px; color: var(--gov-gold); }
.top-bar-sep { color: rgba(255, 255, 255, 0.3); }

/* ============================================
 * 主头部容器
 * ============================================ */
.header-c {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fbfaf6 50%, var(--gov-cream) 100%);
  padding: 40px 0 32px;
  overflow: hidden;
  isolation: isolate;
}

/* ============================================
 * 动效 2：浮动光斑背景（3 个漂移大圆）
 * ============================================ */
.bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.orb-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(30, 74, 140, 0.4) 0%, transparent 70%);
  top: -80px;
  left: -60px;
  animation: orb-float-1 12s ease-in-out infinite;
}
.orb-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(212, 163, 71, 0.5) 0%, transparent 70%);
  top: 20px;
  right: -40px;
  animation: orb-float-2 15s ease-in-out infinite;
}
.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45, 111, 196, 0.3) 0%, transparent 70%);
  bottom: -60px;
  left: 40%;
  animation: orb-float-3 10s ease-in-out infinite;
}
@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 30px) scale(1.1); }
  66% { transform: translate(30px, 60px) scale(0.95); }
}
@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.15); }
}
@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

/* 网格背景 */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 74, 140, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 74, 140, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============================================
 * Logo 区
 * ============================================ */
.header-c .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ============================================
 * 动效 3：呼吸光晕徽章
 * ============================================ */
.logo-badge {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 外层呼吸光晕 */
.logo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 71, 0.4) 0%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* 脉冲圆环 */
.logo-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gov-gold);
  animation: pulse-ring 3s ease-out infinite;
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 核心徽章 */
.logo-core {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 20px rgba(30, 74, 140, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--gov-gold);
  animation: core-breathe 4s ease-in-out infinite;
}
@keyframes core-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 8px 20px rgba(30, 74, 140, 0.35),
      0 0 0 0 rgba(212, 163, 71, 0.4),
      inset 0 2px 4px rgba(255, 255, 255, 0.15),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 10px 24px rgba(30, 74, 140, 0.45),
      0 0 0 8px rgba(212, 163, 71, 0.08),
      inset 0 2px 4px rgba(255, 255, 255, 0.2),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  }
}
.logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
 * 动效 4：旋转轨道（3 个光点公转）
 * ============================================ */
.logo-orbit {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  animation: orbit-rotate 8s linear infinite;
}
@keyframes orbit-rotate {
  to { transform: rotate(360deg); }
}
.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gov-gold);
  box-shadow: 0 0 8px var(--gov-gold), 0 0 16px rgba(212, 163, 71, 0.6);
}
.dot-1 {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}
.dot-2 {
  bottom: 8px;
  left: 8px;
}
.dot-3 {
  bottom: 8px;
  right: 8px;
}

/* ============================================
 * 动效 5：站名流光描边
 * ============================================ */
.site-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-title-shimmer {
  position: relative;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  overflow: hidden;
}
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gov-blue-dark) 0%,
    var(--gov-blue-dark) 40%,
    var(--gov-gold-light) 50%,
    var(--gov-gold) 55%,
    var(--gov-blue-dark) 65%,
    var(--gov-blue-dark) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-flow 5s linear infinite;
  display: inline-block;
}
@keyframes shimmer-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.site-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

/* 标语带闪烁圆点 */
.slogan-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.slogan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gov-gold);
  animation: dot-blink 2s ease-in-out infinite;
}
.slogan-dot:last-child {
  animation-delay: 1s;
}
@keyframes dot-blink {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.title-slogan {
  font-size: 12px;
  color: var(--gov-gold-dark);
  letter-spacing: 3px;
}

/* 移动菜单按钮 */
.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;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gov-blue-dark);
  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); }

/* ============================================
 * 动效 6：底部流光线
 * ============================================ */
.header-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--gov-blue) 20%,
    var(--gov-blue) 80%,
    transparent 100%
  );
  overflow: hidden;
}
.flow-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gov-gold-light) 30%,
    var(--gov-gold) 50%,
    var(--gov-gold-light) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: flow-line 4s linear infinite;
  box-shadow: 0 0 12px var(--gov-gold);
}
@keyframes flow-line {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
 * 动效 7：导航涟漪
 * ============================================ */
.main-nav {
  background: var(--gov-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(13, 31, 68, 0.15);
}
.main-nav .container {
  position: relative;
}
.nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 54px;
  flex-wrap: wrap;
}
.nav-list li {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 0 26px;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s, background 0.25s;
  position: relative;
  letter-spacing: 1px;
  overflow: hidden;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--gov-blue-dark);
}

/* 当前项底部金色光条 */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gov-gold);
  box-shadow: 0 0 8px var(--gov-gold);
  animation: nav-active-glow 2s ease-in-out infinite;
}
@keyframes nav-active-glow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 12px var(--gov-gold), 0 0 4px var(--gov-gold-light); }
}

/* 悬浮时涟漪扩散 */
.nav-ripple {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 163, 71, 0.4);
  transform: translate(-50%, 50%);
  pointer-events: none;
  opacity: 0;
}
.nav-link:hover .nav-ripple {
  animation: ripple-out 0.6s ease-out;
}
@keyframes ripple-out {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* 导航底部呼吸光带 */
.nav-bottom-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gov-gold) 30%,
    var(--gov-gold-light) 50%,
    var(--gov-gold) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0.7;
  animation: flow-line 6s linear infinite;
  pointer-events: none;
}

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

/* ============================================
 * 响应式
 * ============================================ */
@media (max-width: 768px) {
  .top-bar { font-size: 11px; }
  .top-bar .container { justify-content: center; }
  .top-bar-left span:last-child,
  .top-bar-sep { display: none; }

  .header-c { padding: 24px 0 20px; }
  .logo-wrap { gap: 14px; }
  .logo-badge { width: 64px; height: 64px; }
  .logo-core { width: 50px; height: 50px; }
  .logo-text { font-size: 16px; }
  .site-title-shimmer { font-size: 18px; }
  .site-subtitle { font-size: 8px; }
  .title-slogan { font-size: 10px; letter-spacing: 1px; }
  .slogan-dot { width: 4px; height: 4px; }

  .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::after { display: none; }

  /* 移动端减少动画（性能优化） */
  .orb-1, .orb-2, .orb-3 { animation: none; opacity: 0.3; }
  .logo-pulse { animation: none; opacity: 0; }
  .logo-orbit { animation: none; opacity: 0.5; }
}

@media (max-width: 480px) {
  .logo-badge { width: 56px; height: 56px; }
  .logo-core { width: 44px; height: 44px; }
  .logo-text { font-size: 14px; }
  .site-title-shimmer { font-size: 15px; }
  .site-subtitle { display: none; }
  .title-slogan { display: none; }
  .slogan-dot { display: none; }
}

/* ============================================
 * 尊重用户偏好：减少动画
 * ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logo-glow, .logo-pulse, .logo-orbit, .orb,
  .top-bar-flow, .flow-line, .nav-bottom-glow,
  .shimmer-text, .slogan-dot, .nav-link.active::after {
    animation: none !important;
  }
}
