/* ===== 首页 ===== */

/* ---- 大轮播 ---- */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #0e3266;
}
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease-in-out;
  display: flex; align-items: flex-end;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide .hero-content {
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.65) 100%);
  color: #fff;
  padding: 80px 0 32px;
}
.hero-slide h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  font-family: var(--font-serif);
}
.hero-slide p {
  font-size: 17px;
  opacity: .92;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 32px; height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  transition: background .2s;
}
.hero-dots button.active { background: #ffeb99; }
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px;
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: 28px;
  z-index: 10;
  transition: background .2s;
  display: none;
}
.hero:hover .hero-arrow { display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: rgba(0,0,0,.6); }
.hero-arrow.prev { left: 0; }
.hero-arrow.next { right: 0; }

/* ---- 新闻 + 通知 区 ---- */
.news-tabs-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-xl); }

.news-tabs { background: #fff; border: 1px solid var(--border-1); padding: var(--space-lg); }
.news-tabs-head {
  display: flex; gap: var(--space-md);
  border-bottom: 2px solid var(--gov-red);
  margin-bottom: var(--space-md);
  padding-bottom: 8px;
}
.news-tabs-head button {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-3);
  padding: 4px 8px;
  position: relative;
}
.news-tabs-head button.active {
  color: var(--gov-red);
}
.news-tabs-head button.active::after {
  content: ""; position: absolute;
  bottom: -10px; left: 0; right: 0;
  height: 3px; background: var(--gov-red);
}
.news-tabs-head .more {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
}
.news-tabs-head .more:hover { color: var(--gov-red); }

.news-headline {
  text-align: center;
  border-bottom: 1px dashed var(--border-2);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}
.news-headline a {
  font-size: 24px;
  font-weight: 700;
  color: var(--gov-red);
  font-family: var(--font-serif);
  display: block;
  margin-bottom: 6px;
}
.news-headline a:hover { color: var(--gov-red-deep); }
.news-headline p {
  font-size: 13px;
  color: var(--text-3);
}

.news-list { list-style: none; }
.news-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-1);
}
.news-list li:last-child { border-bottom: 0; }
.news-list li::before {
  content: ""; width: 5px; height: 5px;
  background: var(--gov-red); border-radius: 50%;
  flex-shrink: 0;
}
.news-list li a {
  flex: 1;
  font-size: 15px;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list li a:hover { color: var(--gov-red); }
.news-list li time {
  color: var(--text-3);
  font-size: 13px;
  flex-shrink: 0;
}

/* ---- 政务公开矩阵 ---- */
.open-matrix-section { background: linear-gradient(180deg, #fff 0%, #fdf3f3 100%); }
.open-matrix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}
.open-cell {
  background: #fff;
  border: 1px solid var(--border-1);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  text-decoration: none;
  color: var(--text-1);
  transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.open-cell:hover {
  border-color: var(--gov-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192,0,0,.12);
  text-decoration: none;
  color: var(--gov-red);
}
.open-cell svg { width: 44px; height: 44px; }
.open-cell span { font-size: 14px; }

/* ---- 专题专栏轮播 ---- */
.topics-strip {
  position: relative;
  overflow: hidden;
}
.topics-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.topic-card {
  position: relative;
  height: 180px;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.topic-card-bg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  transition: transform .3s;
}
.topic-card:hover .topic-card-bg { transform: scale(1.04); }
.topic-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.6) 100%);
  z-index: 1;
}
.topic-card-bg > * { position: relative; z-index: 2; }
.topic-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.topic-card p { font-size: 13px; opacity: .9; }
.topic-card:hover { text-decoration: none; color: #fff; }

/* ---- 服务区 + 互动区 ---- */
.dual-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.svc-block { background: #fff; border: 1px solid var(--border-1); padding: var(--space-lg); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.svc-cell {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-section);
  border-left: 3px solid var(--gov-red);
  text-decoration: none;
  color: var(--text-1);
  transition: all .2s;
}
.svc-cell:hover {
  background: #fff5f5;
  transform: translateX(4px);
  text-decoration: none;
}
.svc-cell svg { width: 36px; height: 36px; flex-shrink: 0; }
.svc-cell .svc-text strong { display: block; font-size: 16px; margin-bottom: 2px; }
.svc-cell .svc-text small { font-size: 12px; color: var(--text-3); }

.interactive-block .svc-cell { border-left-color: var(--gov-blue); }
.interactive-block .svc-cell:hover { background: #f0f5fc; }

/* ---- 数据中心快览 ---- */
.data-strip {
  background: linear-gradient(135deg, var(--gov-blue-deep) 0%, var(--gov-blue) 100%);
  color: #fff;
  padding: var(--space-xl) 0;
}
.data-strip .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; }
.data-strip h2 { font-size: 24px; font-weight: 700; }
.data-strip .sub { opacity: .8; font-size: 14px; margin-top: 4px; }
.data-stats { display: flex; gap: var(--space-2xl); flex-wrap: wrap; }
.data-stat { text-align: center; }
.data-stat .num { font-size: 36px; font-weight: 700; color: #ffeb99; font-family: var(--font-serif); }
.data-stat .label { font-size: 13px; opacity: .85; margin-top: 4px; }
.data-strip-link {
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.3);
  font-size: 14px;
  transition: all .2s;
}
.data-strip-link:hover { background: #fff; color: var(--gov-blue); text-decoration: none; }

/* ---- 响应式 ---- */
@media (max-width: 1199px) {
  .open-matrix { grid-template-columns: repeat(4, 1fr); }
  .hero { height: 380px; }
  .hero-slide h2 { font-size: 30px; }
}
@media (max-width: 768px) {
  .hero { height: 240px; }
  .hero-slide .hero-content { padding: 40px 0 24px; }
  .hero-slide h2 { font-size: 20px; }
  .hero-slide p { font-size: 13px; }

  /* —— 要闻 / 通知 区移动端适配 —— */
  .news-tabs-wrap { grid-template-columns: 1fr; gap: var(--space-md); }
  .news-tabs { padding: var(--space-md); min-width: 0; overflow: hidden; }
  .news-tabs-head { gap: var(--space-sm); padding-bottom: 6px; flex-wrap: wrap; }
  .news-tabs-head button { font-size: 15px; padding: 4px 4px; }
  .news-tabs-head button.active::after { bottom: -8px; height: 2px; }
  .news-tabs-head .more { font-size: 12px; }
  .news-headline { padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); }
  .news-headline a { font-size: 17px; line-height: 1.4; }
  .news-headline p { font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .news-list li { padding: 8px 0; gap: var(--space-sm); }
  .news-list li a { font-size: 14px; min-width: 0; }
  .news-list li time { font-size: 12px; }

  .open-matrix { grid-template-columns: repeat(3, 1fr); }
  .open-cell { padding: var(--space-md) 8px; }
  .open-cell svg { width: 36px; height: 36px; }
  .open-cell span { font-size: 13px; }
  .topics-track { grid-template-columns: 1fr; }
  .dual-section { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .data-strip .container { flex-direction: column; align-items: flex-start; }
  .data-stats { gap: var(--space-lg); }
  .data-stat .num { font-size: 28px; }
}

/* —— 防止溢出的全局保护 —— */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .container { max-width: 100%; }
}
