/**
 * XX市人民政府 — 政府综合门户网站
 * 色调：深蓝(#0B1A2E) + 国徽红(#C41A1A) + 金色(#C9A84C) + 白
 * 风格：权威、庄重、公信、亲民
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* 主色 — 深蓝基底 */
  --gov-blue: #0B1A2E;
  --gov-blue-light: #132D4A;
  --gov-blue-lighter: #1A3D63;
  --gov-blue-bg: #F0F4F8;

  /* 强调色 */
  --gov-red: #C41A1A;
  --gov-red-dark: #A01515;
  --gov-red-light: #FEF0F0;
  --gov-gold: #C9A84C;
  --gov-gold-light: #FDF6E3;

  /* 中性色 */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* 文字 */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255,255,255,0.7);

  /* 背景 */
  --bg-page: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-section-alt: #F0F4F8;

  /* 边框 */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* 间距 */
  --section-py: 60px;
  --container-max: 1200px;
  --header-h: 110px; /* 顶部工具栏 + 主导航 */

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;

  /* 字体 */
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(11, 26, 46, 0.15);
  color: var(--gov-blue);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

a { color: inherit; text-decoration: none; transition: color var(--duration-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.35;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gov-red);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 14px;
  background: var(--gov-red);
  border-radius: 1px;
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-section-alt); }
.section--dark { background: var(--gov-blue); }

/* ============================================================
   Header — 顶部工具栏 + 主导航
   ============================================================ */

/* 顶部工具栏 */
.header-top {
  background: var(--gov-blue);
  color: var(--text-inverse-muted);
  font-size: 0.78rem;
  height: 36px;
  line-height: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.header-top__links { display: flex; gap: 16px; align-items: center; }
.header-top__links a { color: var(--text-inverse-muted); transition: color var(--duration-fast); }
.header-top__links a:hover { color: var(--gov-gold); }
.header-top__links span { color: rgba(255,255,255,0.2); }

/* 主 header */
.header-main {
  background: var(--white);
  border-bottom: 2px solid var(--gov-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-main .container {
  display: flex;
  align-items: center;
  height: 74px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 32px;
}
.header-logo__emblem {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.header-logo__text { line-height: 1.3; }
.header-logo__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gov-blue);
}
.header-logo__sub {
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

/* 主导航 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.header-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 26px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 3px solid transparent;
  transition: all var(--duration-fast);
  white-space: nowrap;
  position: relative;
  margin: 0 6px;
}
.header-nav__link:hover,
.header-nav__link.active {
  color: var(--gov-red);
  border-bottom-color: var(--gov-red);
}

/* 导航下拉 */
.header-nav__item { position: relative; }
.header-nav__item:hover .header-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 140px;
  padding: 6px 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}
.header-nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  transition: all var(--duration-fast);
}
.header-nav__dropdown a:hover {
  color: var(--gov-red);
  background: var(--gov-red-light);
}

/* header 右侧图标 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 24px;
}
.header-actions__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}
.header-actions__btn:hover {
  border-color: var(--gov-blue);
  color: var(--gov-blue);
  background: var(--bg-section-alt);
}

/* ============================================================
   汉堡菜单 (移动端)
   ============================================================ */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 360px;
  background: var(--white);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__inner { padding: 24px; padding-top: 80px; }
.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-fast);
}
.mobile-nav__link:hover { color: var(--gov-red); background: var(--gov-red-light); }
.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}
.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   首页 — Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--gov-blue);
}
.hero .swiper {
  width: 100%;
  height: 100%;
}
.hero__slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,26,46,0.4) 0%,
    rgba(11,26,46,0.2) 40%,
    rgba(11,26,46,0.85) 100%
  );
  z-index: 1;
}
.hero__content {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__title .gold { color: var(--gov-gold); }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 3px;
  border-radius: 1px;
  background: rgba(255,255,255,0.35);
  opacity: 1;
  transition: all var(--duration-normal);
}
.hero-pagination .swiper-pagination-bullet-active {
  width: 56px;
  background: var(--gov-gold);
}

/* ============================================================
   首页 — 通知公告模块
   ============================================================ */
.notice-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
.notice-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.notice-bar__label {
  background: var(--gov-red);
  color: #fff;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.notice-bar__list {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.notice-bar__list a {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-right: 40px;
  transition: color var(--duration-fast);
}
.notice-bar__list a:hover { color: var(--gov-red); }
.notice-bar__more {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--duration-fast);
}
.notice-bar__more:hover { color: var(--gov-red); }

/* ============================================================
   首页 — 通知公告四列卡片
   ============================================================ */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.notice-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gov-red);
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--duration-normal);
  cursor: pointer;
}
.notice-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--gov-blue);
  border-left-width: 4px;
}
.notice-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gov-red);
  background: var(--gov-red-light);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.notice-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — 政务公开分类卡片
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--duration-normal);
  cursor: pointer;
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gov-blue);
  transform: translateY(-3px);
}
.category-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--gov-blue-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gov-blue);
  transition: all var(--duration-normal);
}
.category-card:hover .category-card__icon {
  background: var(--gov-blue);
  color: #fff;
}
.category-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.category-card__count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — 新闻中心
   ============================================================ */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.news-featured__item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-normal);
  cursor: pointer;
  padding: 16px;
}
.news-featured__item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gov-blue);
}
.news-featured__thumb {
  width: 160px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-200);
}
.news-featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-featured__info { flex: 1; min-width: 0; }
.news-featured__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.news-featured__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all var(--duration-fast);
  cursor: pointer;
}
.news-list__item:hover {
  border-color: var(--gov-blue);
  background: var(--bg-section-alt);
}
.news-list__title {
  font-size: 0.9rem;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}
.news-list__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
   首页 — 政务服务
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--duration-normal);
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--gov-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--gov-red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gov-red);
  transition: all var(--duration-normal);
}
.service-card:hover .service-card__icon {
  background: var(--gov-red);
  color: #fff;
}
.service-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   首页 — 数据统计
   ============================================================ */
.stats-section {
  background: var(--gov-blue);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gov-red), var(--gov-gold), var(--gov-red));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gov-gold);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-item__number span {
  font-size: 1.5rem;
}
.stat-item__label {
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
  font-weight: 400;
}

/* ============================================================
   首页 — 互动交流
   ============================================================ */
.interact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.interact-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--duration-normal);
  cursor: pointer;
}
.interact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gov-blue);
  transform: translateY(-3px);
}
.interact-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--gov-blue-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gov-blue);
  transition: all var(--duration-normal);
}
.interact-card:hover .interact-card__icon {
  background: var(--gov-blue);
  color: #fff;
}
.interact-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.interact-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   首页 — 专题专栏
   ============================================================ */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.topic-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-light);
}
.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.topic-card:hover img { transform: scale(1.05); }
.topic-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(11,26,46,0.85));
  color: #fff;
}
.topic-card__name {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 24px 0;
}
.friend-links__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-right: 4px;
}
.friend-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}
.friend-links a:hover {
  color: var(--gov-blue);
  border-color: var(--gov-blue);
}

/* ============================================================
   12345 热线按钮 (右下角悬浮)
   ============================================================ */
.hotline-float {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hotline-float__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gov-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(196, 26, 26, 0.4);
  cursor: pointer;
  transition: all var(--duration-normal);
  animation: hotlinePulse 2s ease-in-out infinite;
  border: none;
}
.hotline-float__btn:hover {
  background: var(--gov-red-dark);
  transform: scale(1.1);
}
.hotline-float__label {
  font-size: 0.7rem;
  color: var(--gov-red);
  font-weight: 600;
  background: var(--white);
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
@keyframes hotlinePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(196,26,26,0.4); }
  50% { box-shadow: 0 4px 28px rgba(196,26,26,0.7), 0 0 0 12px rgba(196,26,26,0.1); }
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 66px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal);
  box-shadow: var(--shadow-sm);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--gov-blue); color: #fff; border-color: var(--gov-blue); }

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gov-blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--gov-blue-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--red {
  background: var(--gov-red);
  color: #fff;
}
.btn--red:hover {
  background: var(--gov-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196,26,26,0.3);
}
.btn--outline {
  background: transparent;
  color: var(--gov-blue);
  border: 1px solid var(--gov-blue);
}
.btn--outline:hover {
  background: var(--gov-blue);
  color: #fff;
}
.btn--ghost {
  background: var(--white);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--gov-blue);
  color: var(--gov-blue);
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gov-blue);
}
.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,26,46,0.5) 0%,
    rgba(11,26,46,0.7) 100%
  );
}
.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.inner-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.inner-banner__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

/* 面包屑 */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gov-red); }
.breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ============================================================
   内页两栏布局 (侧边栏+内容)
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* 侧边栏 */
.sidebar {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.sidebar__title {
  background: var(--gov-blue);
  color: #fff;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}
.sidebar__nav a {
  display: block;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-fast);
  position: relative;
  padding-left: 28px;
}
.sidebar__nav a::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--gray-300);
  border-radius: 50%;
}
.sidebar__nav a:hover,
.sidebar__nav a.active {
  color: var(--gov-red);
  background: var(--gov-red-light);
}
.sidebar__nav a:hover::before,
.sidebar__nav a.active::before {
  background: var(--gov-red);
}

/* ============================================================
   列表页 (政务公开 / 新闻中心)
   ============================================================ */
.list-header {
  margin-bottom: 24px;
}
.list-header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.list-header p { color: var(--text-secondary); }

/* 筛选栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-bar a {
  display: inline-flex;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  background: var(--white);
  transition: all var(--duration-fast);
}
.filter-bar a:hover,
.filter-bar a.active {
  color: var(--gov-red);
  border-color: var(--gov-red);
  background: var(--gov-red-light);
}

/* 列表条目 */
.list-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all var(--duration-fast);
  cursor: pointer;
  gap: 16px;
}
.list-item:hover {
  border-color: var(--gov-blue);
  box-shadow: var(--shadow-sm);
}
.list-item__title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item__meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: all var(--duration-fast);
}
.pagination a:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.pagination .active {
  background: var(--gov-blue);
  color: #fff;
  border-color: var(--gov-blue);
  font-weight: 600;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.empty-state i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}
.empty-state p { color: var(--text-muted); }

/* ============================================================
   详情页
   ============================================================ */
.detail { max-width: 900px; }
.detail__header {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.detail__title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 16px;
  text-align: center;
}
.detail__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.detail__meta i { margin-right: 4px; color: var(--gov-blue); }

.detail__body {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--text-primary);
  line-height: 2;
  font-size: 0.95rem;
}
.detail__body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.detail__body p { margin-bottom: 14px; }
.detail__body h2, .detail__body h3 {
  color: var(--gov-blue);
  margin-top: 24px;
  margin-bottom: 12px;
  border-left: 3px solid var(--gov-red);
  padding-left: 12px;
}

/* 扩展字段参数卡 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.detail__param {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.detail__param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.detail__param-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 上下篇 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.detail__pager a:hover { color: var(--gov-red); }

/* ============================================================
   附件下载列表
   ============================================================ */
.attachment-list {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
}
.attachment-list__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.attachment-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--gov-blue);
  border-bottom: 1px dashed var(--border-light);
}
.attachment-list a:hover { color: var(--gov-red); }
.attachment-list a i { color: var(--gov-red); }

/* ============================================================
   政务服务页
   ============================================================ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.service-info-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}
.service-info-card h4 {
  font-size: 0.95rem;
  color: var(--gov-blue);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gov-blue-bg);
}
.service-info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}
.search-form-row {
  display: flex;
  gap: 10px;
}
.search-form-row input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast);
}
.search-form-row input:focus {
  outline: none;
  border-color: var(--gov-blue);
}

/* 搜索结果条目 */
.search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  margin-bottom: 10px;
  cursor: pointer;
}
.search-result-item:hover { border-color: var(--gov-blue); box-shadow: var(--shadow-sm); }
.search-result-item__thumb {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.search-result-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-item__info { flex: 1; min-width: 0; }
.search-result-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item__date { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   留言板
   ============================================================ */
.message-list {
  margin-bottom: 32px;
}
.message-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
}
.message-item__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.message-item__name {
  font-weight: 600;
  color: var(--gov-blue);
}
.message-item__date {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.message-item__content {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.message-item__reply {
  background: var(--bg-section-alt);
  border-left: 3px solid var(--gov-red);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* 表单 */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--gov-red); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--duration-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(11, 26, 46, 0.08);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ============================================================
   Footer 底部
   ============================================================ */
.footer {
  background: var(--gov-blue);
  color: var(--text-inverse-muted);
  border-top: 3px solid var(--gov-red);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 48px 0 32px;
}
.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-inverse-muted);
  line-height: 1.7;
  margin: 12px 0;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-inverse-muted);
  transition: color var(--duration-fast);
}
.footer__links a:hover { color: var(--gov-gold); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.footer__contact-item i { color: var(--gov-gold); margin-top: 4px; flex-shrink: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}
.footer__bottom a { color: var(--text-inverse-muted); }
.footer__bottom a:hover { color: var(--gov-gold); }
.footer__bottom span.separator { color: rgba(255,255,255,0.2); }

/* 政府网站标识区 */
.footer__gov-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
.footer__gov-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.footer__gov-mark span {
  font-size: 0.82rem;
  color: var(--text-inverse-muted);
}

/* ============================================================
   动画效果
   ============================================================ */

/* 渐入上移 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 渐入左移 */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 渐入右移 */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 统计数字跳入 */
@keyframes countBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* 通知列表横向滚动 */
@keyframes noticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Banner 标题动画 */
.hero__title { animation: fadeInUp 0.8s var(--ease-out) both; }
.hero__subtitle { animation: fadeInUp 0.8s var(--ease-out) 0.15s both; }
.hero-pagination { animation: fadeInUp 0.6s var(--ease-out) 0.3s both; }

/* AOS 覆盖 */
[data-aos] {
  transition-timing-function: var(--ease-out);
}

/* ============================================================
   新闻详情页 — 相关新闻
   ============================================================ */
.related-news {
  margin-top: 32px;
}
.related-news h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gov-blue-bg);
}
.related-news a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px dashed var(--border-light);
  transition: color var(--duration-fast);
}
.related-news a:hover { color: var(--gov-red); }

/* ============================================================
   响应式 — 平板 (≤1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 48px; --header-h: 68px; }

  .header-top { display: none; }
  .header-nav,
  .header-actions { display: none; }
  .hamburger { display: flex; }
  .header-main .container { height: 68px; }
  .header-logo__name { font-size: 0.95rem; }
  .header-logo__emblem { width:36px; height:36px; font-size:1.5rem; }

  .hero { height: 340px; }
  .hero__content { bottom: 40px; }
  .hero__title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .hero__subtitle { font-size: 0.9rem; }

  .inner-banner { height: 160px; }
  .inner-banner__title { font-size: clamp(1.3rem, 3vw, 1.8rem); }
  .inner-banner__subtitle { font-size: 0.82rem; }

  .notices-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .news-featured { grid-template-columns: 1fr; }
  .interact-grid { grid-template-columns: repeat(3, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }

  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-bottom: 20px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .service-detail-grid { grid-template-columns: 1fr; }

  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 140px; }

  .list-item { flex-wrap: wrap; }
  .list-item__meta { width: 100%; padding-top: 4px; }

  .hotline-float { right: 12px; bottom: 100px; }
  .hotline-float__btn { width: 48px; height: 48px; font-size: 1.1rem; }
  .back-top { right: 12px; bottom: 56px; }
}

/* ============================================================
   响应式 — 手机 (<768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 36px; }

  .hero { height: 260px; }
  .hero__content { bottom: 30px; }
  .hero__title { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .hero__subtitle { font-size: 0.82rem; display: none; }
  .hero-pagination .swiper-pagination-bullet { width: 20px; }

  .inner-banner { height: 130px; }

  .section-title { font-size: clamp(1.2rem, 3vw, 1.5rem); }
  .section-tag { font-size: 0.7rem; }

  .notices-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 18px 12px; }
  .category-card__icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 8px; }
  .category-card__name { font-size: 0.85rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .service-card { padding: 18px 10px; }
  .service-card__icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .service-card__name { font-size: 0.82rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item__number { font-size: clamp(1.5rem, 4vw, 2rem); }

  .interact-grid { grid-template-columns: 1fr; gap: 12px; }
  .interact-card { padding: 24px 18px; }
  .interact-card__icon { width: 48px; height: 48px; font-size: 1.3rem; }

  .topics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .news-featured__item { flex-direction: column; }
  .news-featured__thumb { width: 100%; height: 160px; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; padding: 16px 12px; }

  .detail__meta { flex-direction: column; gap: 6px; text-align: center; }
  .detail__body { padding: 16px; font-size: 0.9rem; }
  .detail__header { padding: 18px 16px; }
  .detail__pager { flex-direction: column; gap: 8px; text-align: center; font-size: 0.82rem; }
  .detail__params { grid-template-columns: repeat(2, 1fr); }

  .page-layout { gap: 12px; }

  .pagination a, .pagination span { min-width: 32px; height: 34px; font-size: 0.8rem; padding: 0 6px; }

  .notice-bar .container { flex-wrap: wrap; gap: 8px; }
  .notice-bar__label { font-size: 0.7rem; padding: 3px 8px; }

  .breadcrumb { font-size: 0.78rem; padding: 10px 16px; }

  .search-form-row { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 120px; }

  .contact-grid { grid-template-columns: 1fr; }

  .hotline-float { right: 8px; bottom: 80px; }
  .hotline-float__btn { width: 44px; height: 44px; font-size: 1rem; }
  .hotline-float__label { font-size: 0.65rem; padding: 2px 8px; }

  .back-top { right: 8px; bottom: 46px; width: 36px; height: 36px; }
}

/* 小手机 (<375px) */
@media (max-width: 374px) {
  body { font-size: 14px; }
  .header-logo__sub { display: none; }
  .header-logo__name { font-size: 0.85rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .filter-bar a { padding: 5px 12px; font-size: 0.78rem; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
