﻿:root {
  --brand-blue: #2563eb;
  --soft-blue: #60a5fa;
  --bg-blue: #f5f9ff;
  --card-white: #ffffff;
  --text-blue: #1d3557;
  --champagne: #d8b76a;
  --shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
  --shadow-hover: 0 32px 80px rgba(37, 99, 235, 0.18);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: min(1600px, calc(100% - 40px));
  --custom-scale: 1; /* 自定义缩放比例 */
}

/* ============================================
   缩放控制专用样式 - 中间内容缩放，大门和底部固定
   ============================================ */

/* 中间内容区域应用缩放 */
.page-main {
  zoom: 1; /* 默认值，JS会修改这个 */
}

/* 确保大门和底部导航栏始终保持固定大小，不受zoom影响 */
.gate-section,
.site-footer {
  zoom: 1 !important;
  transform: none !important;
  position: relative;
  z-index: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-blue);
  color: var(--text-blue);
  line-height: 1.7;
  font-size: 16px;
}

body[data-font-scale="0.92"] {
  --font-scale: 0.92;
}

body[data-font-scale="1"] {
  --font-scale: 1;
}

body[data-font-scale="1.08"] {
  --font-scale: 1.08;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unified-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 74, 158, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.unified-nav.scrolled {
  background: rgba(26, 74, 158, 0.75);
  box-shadow: 0 8px 32px rgba(26, 74, 158, 0.3);
}

.topbar {
  position: relative;
  background: transparent;
  border-bottom: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 128px;
  height: 128px;
  position: relative;
  z-index: 2;
}

.topbar-inner-fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 128px;
  height: 128px;
  position: relative;
  z-index: 2;
  width: min(1600px, calc(100% - 40px));
  margin: 0 auto;
}

/* 顶部导航栏内部元素使用固定px单位 */
.brand-logo {
  height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
  display: block;
}

.brand-text strong {
  font-size: 23.2px !important; /* 1.45rem = 23.2px at 16px base */
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 240px !important;
  width: 240px !important;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(26, 74, 158, 0.08);
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 128px !important;
  height: 128px !important;
  padding: 0 14px !important;
  color: #fff;
  font-weight: 600;
  font-size: 14.72px !important; /* 0.92rem = 14.72px at 16px base */
  position: relative;
  white-space: nowrap;
}

/* 原来的topbar高度72px + main-nav高度56px = 128px，保持总高度不变 */

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), var(--soft-blue));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.45rem;
}

.brand-text small {
  margin-top: 8px;
  color: rgba(29, 53, 87, 0.72);
  letter-spacing: 0.08em;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-page-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.home-page-btn:hover {
  background: rgba(216, 183, 106, 0.2);
  border-color: var(--champagne);
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(26, 74, 158, 0.08);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  color: #fff;
  outline: none;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  color: var(--text-blue);
  outline: none;
}

.search-form button,
.primary-btn,
.secondary-btn {
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.search-form button {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
}

.search-form button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.pagination button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 70%, #d8b76a 100%);
  border-color: rgba(216, 183, 106, 0.95);
  color: #fff;
}

.font-controls {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.font-btn {
  min-width: 44px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 999px;
}

.font-btn.active,
.font-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

.main-nav {
  position: relative;
  background: transparent;
  box-shadow: none;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 128px;
  padding: 0 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  white-space: nowrap;
}

.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 20px;
  height: 4px;
  border-radius: 2px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  color: var(--champagne);
}

.nav-list > li > a:hover::after,
.nav-list > li > a:focus-visible::after,
.nav-list > li > a.active::after {
  transform: scaleX(1);
}

/* 仅隐藏顶部导航中的“党建思政”子栏目 */
.party-nav-item .submenu {
  display: none !important;
}

/* 仅隐藏顶部导航中的“服务指南”子栏目 */
.service-nav-item .submenu {
  display: none !important;
}

.submenu {
  position: absolute;
  top: calc(100% - 20px);
  left: 0;
  min-width: 196px;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(29, 53, 87, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-blue);
}

.submenu a:hover {
  color: var(--brand-blue);
  background: var(--bg-blue);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: transparent;
}



.hero-inner {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
  height: 100%;
  margin: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 900px;
  max-height: 1200px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* 左右箭头 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(216, 183, 106, 0.4);
  color: var(--champagne);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.hero:hover .slider-arrow {
  opacity: 1;
  visibility: visible;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--champagne);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: 30px;
}

.slider-arrow-right {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dot.active {
  background: var(--champagne);
  border-color: var(--champagne);
  transform: scale(1.2);
}

.page-main {
  padding: 40px 0 80px;
}

.module + .module {
  margin-top: 32px;
}

.module-card {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  border: 1px solid rgba(96, 165, 250, 0.1);
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(216, 183, 106, 0.3);
}

.compact-card {
  padding-bottom: 40px;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--champagne);
}

.module-head h2 {
  margin: 0;
  color: var(--text-blue);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.module-head h2::before {
  content: "";
  display: block;
  width: 6px;
  height: 32px;
  background: linear-gradient(180deg, var(--brand-blue), var(--champagne));
  border-radius: 3px;
}

.module-line {
  display: none;
}

.more-link {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: all 0.25s ease;
}

.more-link:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.more-link::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.25s ease;
}

.more-link:hover::after {
  transform: translateX(4px);
}

.info-item:hover h3,
.news-copy a:hover,
.news-text a:hover,
.platform-link:hover,
.topic-card:hover h3,
.rule-item:hover h3,
.footer-links a:hover {
  color: var(--brand-blue);
}

.ideology-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 24px;
}

.featured-panel {
  padding: 34px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.1), rgba(216, 183, 106, 0.14)),
    #fff;
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.featured-kicker,
.news-type {
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.featured-panel h3,
.topic-card h3,
.rule-item h3 {
  margin: 14px 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.list-panel {
  display: grid;
  gap: 16px;
}

.info-item {
  display: block;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(96, 165, 250, 0.14);
  transition: all 0.25s ease;
}

.info-item:hover {
  background: var(--bg-blue);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.info-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(29, 53, 87, 0.66);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-gold {
  background: rgba(216, 183, 106, 0.22);
  color: #8d6711;
}

.info-item h3,
.news-copy a,
.news-text a {
  margin: 0;
  font-size: 1.12rem;
  transition: color 0.2s ease;
  font-weight: 600;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

.news-feature,
.news-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(96, 165, 250, 0.16);
  overflow: hidden;
  background: #fff;
  transition: all 0.25s ease;
}

.news-feature:hover,
.news-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.thumb {
  overflow: hidden;
}

.thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumb:hover img {
  transform: scale(1.08);
}

.thumb-large {
  aspect-ratio: 16 / 10;
}

.news-copy {
  padding: 28px;
}

.news-copy a {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.news-list {
  display: grid;
  gap: 20px;
}

.news-item {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.news-item .thumb {
  height: 100%;
}

.news-text {
  padding: 22px;
}

.news-text time {
  display: inline-block;
  margin-top: 12px;
  color: rgba(29, 53, 87, 0.62);
  font-size: 0.95rem;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination button,
.secondary-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #fff;
  color: var(--brand-blue);
}

.pagination .current {
  background: var(--brand-blue);
  color: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.85), #fff);
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.media-card:hover {
  transform: translateY(-10px);
  border-color: rgba(216, 183, 106, 0.9);
  box-shadow: 0 24px 56px rgba(96, 165, 250, 0.22);
}

.media-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.media-logo {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--soft-blue));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.qr-image {
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 20px auto;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.18);
  transition: box-shadow 0.32s ease, transform 0.32s ease;
}

.media-card:hover .qr-image {
  box-shadow: 0 0 32px rgba(96, 165, 250, 0.25);
  transform: scale(1.02);
}

.media-card strong,
.media-card small {
  display: block;
}

.media-card strong {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.media-card small {
  color: rgba(29, 53, 87, 0.72);
  min-height: 48px;
  font-size: 0.98rem;
}

.platform-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 1rem;
}

.media-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  display: block;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff, rgba(245, 249, 255, 0.96));
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: all 0.32s ease;
}

.topic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(216, 183, 106, 0.7);
  box-shadow:
    0 20px 48px rgba(96, 165, 250, 0.22),
    0 0 32px rgba(96, 165, 250, 0.15);
}

.rule-list {
  display: grid;
  gap: 18px;
}

.rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: linear-gradient(90deg, #fff, rgba(245, 249, 255, 0.6));
  transition: all 0.25s ease;
}

.rule-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(90deg, var(--bg-blue), #fff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.download-icon {
  font-size: 1.5rem;
  color: var(--brand-blue);
  transition: color 0.2s ease, transform 0.2s ease;
}

.rule-item:hover .download-icon {
  color: var(--champagne);
  transform: translateY(-2px);
}

.gate-section {
  width: 100%;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.gate-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--bg-blue), transparent);
  z-index: 1;
  pointer-events: none;
}

.gate-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, #1a4a9e, transparent);
  z-index: 1;
  pointer-events: none;
}

.gate-image {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: fill;
  position: relative;
  z-index: 0;
  opacity: 0.9;
}

.site-footer {
  margin-top: 0;
}

.footer-main {
      position: relative;
      background: #1a4a9e;
      padding: 40px 0 24px;
      overflow: hidden;
    }

    .footer-bg-pattern {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image: none;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      background-position: center;
      opacity: 0;
      pointer-events: none;
    }

    .footer-content {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
    }

    .footer-content-fixed {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      width: min(1600px, calc(100% - 40px));
      margin: 0 auto;
    }

    .footer-left {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .footer-text h2 {
      white-space: nowrap;
    }

    .footer-logo {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      object-fit: contain;
      filter: brightness(0) invert(1);
    }

    .footer-text h2 {
      color: #fff;
      font-size: 1.2rem;
      margin: 0 0 6px;
      font-weight: 700;
    }

    .footer-text p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.85rem;
      margin: 0;
      letter-spacing: 0.05em;
    }

    .footer-divider {
      width: 2px;
      height: 70px;
      background: var(--champagne);
      opacity: 0.5;
    }

    .footer-center {
      flex: 1;
    }

    .footer-buttons {
      display: flex;
      gap: 20px;
      justify-content: center;
    }

    .footer-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 20px;
      background: transparent;
      border: 2px dashed rgba(255, 255, 255, 0.6);
      border-radius: 12px;
      color: #fff;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .footer-btn:hover {
      border-color: var(--champagne);
      background: rgba(216, 183, 106, 0.1);
    }

    .btn-arrow {
      font-size: 0.8rem;
      opacity: 0.8;
    }

    .footer-right {
      display: flex;
      align-items: center;
    }

    .footer-brand-center {
      justify-content: center;
    }

    .footer-contact-center {
      justify-content: center;
    }

    .footer-motto {
      height: 70px;
      width: auto;
      object-fit: contain;
    }

    .footer-contact {
      position: relative;
      z-index: 1;
      padding: 20px 0;
      border-top: 1px solid rgba(216, 183, 106, 0.3);
      margin-top: 20px;
    }

    .contact-items {
      display: flex;
      justify-content: center;
      gap: 40px;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #fff;
      font-size: 0.85rem;
    }

    .contact-icon {
      font-size: 1.2rem;
    }

    .footer-copyright {
      background: #1a3a6b;
      padding: 12px 0;
    }

    .footer-copyright .footer-content-fixed {
      justify-content: center;
    }

    .footer-copyright p {
      margin: 0;
      text-align: center;
      color: rgba(255, 255, 255, 0.85);
      font-size: 0.8rem;
      line-height: 1.6;
    }

.floating-sidebar {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  cursor: move;
  user-select: none;
}

.sidebar-trigger {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--soft-blue));
  border: 4px solid var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.sidebar-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.sidebar-trigger:hover {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.5);
  animation-play-state: paused;
}

.sidebar-trigger:hover .sidebar-logo {
  transform: rotate(10deg) scale(1.1);
}

.sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: 16px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.floating-sidebar:hover .sidebar-buttons {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.sidebar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--brand-blue), var(--soft-blue));
  border: 2px solid var(--champagne);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 120px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.sidebar-button:hover {
  background: linear-gradient(135deg, var(--soft-blue), var(--brand-blue));
  transform: translateY(-4px) scale(1.02);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}



.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand-blue), var(--soft-blue), var(--champagne));
  color: #fff;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.4);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 51, 90, 0.6);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 540px);
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 32px 80px rgba(9, 30, 66, 0.35);
  border: 1px solid rgba(216, 183, 106, 0.25);
}

.modal-content img {
  width: min(100%, 380px);
  margin: 20px auto 24px;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.modal-close {
  position: absolute;
  right: 28px;
  bottom: 28px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid rgba(216, 183, 106, 0.9);
  background: var(--champagne);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.modal-content a {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 1.05rem;
}

.search-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(29, 53, 87, 0.92);
  color: #fff;
  box-shadow: 0 14px 40px rgba(29, 53, 87, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
}

.search-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.is-hidden {
  display: none !important;
}











/* ============================================
   新通栏模块样式系统
   ============================================ */

/* 通栏模块容器 */
.full-width-module {
  width: 100%;
  background: var(--bg-blue);
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

.full-width-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  right: 60px;
  bottom: 0;
  background-image: url('t_k_/s_y_/t_s_g_j_z_a_w_x_g_b_j_t__y_j_d_c_z_s__.png');
  background-size: 400px;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* 四大模块滚动入场动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 各模块延迟设置 */
#ideology {
  transition-delay: 0ms;
}

#news {
  transition-delay: 120ms;
}

#media {
  transition-delay: 240ms;
}

#topics {
  transition-delay: 360ms;
}

/* 新闻动态模块特殊背景 */
#news::before {
  left: 0;
  right: 0;
  background-image: url('t_k_/s_y_/x_w_d_t_b_j_t_.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
}

/* 党建思政模块特殊背景 */
#ideology::before {
  left: 0;
  right: 0;
  background-image: url('t_k_/s_y_/d_j_s_z_b_j_t_2.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
}

/* 融媒体中心模块特殊背景 */
#media::before {
  left: 0;
  right: 0;
  background-image: url('t_k_/s_y_/r_m_t_z_x_b_j_t_.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%; /* Moved down */
  opacity: 0.2;
}

/* 党建思政模块内容区域 - 增加留白，缩小卡片 */
#ideology .full-width-module-inner {
  max-width: 1300px;
  padding-left: 60px;
  padding-right: 100px;
}

/* 党建思政模块调整左右比例 */
#ideology .full-width-module-content {
  grid-template-columns: 52fr 48fr;
  gap: 40px;
}

/* 党建思政模块缩小左侧大图卡片 */
#ideology .featured-card {
  min-height: 360px;
}

#ideology .featured-card-content {
  padding: 28px;
}

#ideology .featured-card-title {
  font-size: 1.45rem;
}

#ideology .featured-card-desc {
  font-size: 0.95rem;
}

/* 党建思政模块右侧新闻卡片网格 - 竖着排列 */
#ideology .news-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 取消新闻动态和融媒体中心的金线 */
#news .full-width-module-header,
#media .full-width-module-header {
  border-bottom: none;
}

#ideology .news-card {
  padding: 14px 18px;
  border-radius: 12px;
  min-height: 80px;
}

#ideology .news-card-meta {
  margin-bottom: 8px;
}

#ideology .news-card-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

#ideology .news-card-desc {
  font-size: 0.82rem;
}

.full-width-module-inner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px 0;
}

/* 通栏模块标题栏 */
.full-width-module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--champagne);
}

.full-width-module-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.full-width-module-title h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-blue);
  letter-spacing: 0.02em;
}

.full-width-module-title::before {
  content: "";
  display: block;
  width: 8px;
  height: 48px;
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--champagne) 100%);
  border-radius: 4px;
}

.full-width-module-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 50px;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: transparent;
}

.full-width-module-more:hover {
  background: var(--brand-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.full-width-module-more::after {
  content: "→";
  font-weight: 800;
}

/* 通栏模块内容 - 左右分栏布局 */
.full-width-module-content {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 48px;
  align-items: stretch;
}

/* 左侧重点大图卡片 */
.featured-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--brand-blue);
  min-height: 440px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.featured-card::before {
  content: none;
  display: none;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

.featured-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(29, 53, 87, 0.95) 100%);
  z-index: 1;
}

.featured-card-content {
  position: relative;
  z-index: 3;
  padding: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.featured-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(216, 183, 106, 0.25);
  border: 1px solid rgba(216, 183, 106, 0.6);
  border-radius: 50px;
  color: var(--champagne);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
  width: fit-content;
}

.featured-card-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.featured-card-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.featured-card-link::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-card-link::after {
  transform: translateX(6px);
}

/* 三个模块特殊样式：党建思政、新闻动态、融媒体中心 */
.ideology-card,
.news-card-special,
.media-card-featured {
  background: transparent;
}

.ideology-card .featured-card-image,
.news-card-special .featured-card-image,
.media-card-featured .featured-card-image {
  opacity: 1;
}

.ideology-card .featured-card-overlay,
.news-card-special .featured-card-overlay,
.media-card-featured .featured-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
}

.ideology-card .featured-card-tag,
.news-card-special .featured-card-tag,
.media-card-featured .featured-card-tag {
  background: rgba(216, 183, 106, 0.9);
  border: none;
  color: #fff;
  font-weight: 700;
}

.ideology-card .featured-card-title,
.ideology-card .featured-card-desc,
.ideology-card .featured-card-link,
.news-card-special .featured-card-title,
.news-card-special .featured-card-desc,
.news-card-special .featured-card-link,
.media-card-featured .featured-card-title,
.media-card-featured .featured-card-desc,
.media-card-featured .featured-card-link {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 右侧四格新闻卡片网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--card-white);
  border-radius: 20px;
  padding: 26px;
  transition: all 0.3s ease;
  border: 1px solid rgba(96, 165, 250, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.3);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.news-card-tag {
  padding: 5px 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

.news-card-date {
  color: rgba(29, 53, 87, 0.6);
  font-size: 0.85rem;
}
#ideology .news-card-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#ideology .news-card-title::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

#ideology .news-card-date {
  margin-top: 12px;
  align-self: flex-end;
  text-align: right;
  color: rgba(29, 53, 87, 0.55);
}

#ideology .news-card-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a4abe;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-blue);
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
  color: var(--brand-blue);
}

.news-card-desc {
  font-size: 0.9rem;
  color: rgba(29, 53, 87, 0.7);
  line-height: 1.7;
}

/* 专题卡片特殊样式 */
.topic-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(29, 53, 87, 0.08) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-blue), var(--champagne));
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.topic-card-desc {
  color: rgba(29, 53, 87, 0.75);
}

/* 新闻轮播容器 */
.news-carousel-container {
  position: relative;
  margin-top: 40px;
}

.news-carousel-wrapper {
  overflow: hidden;
  padding: 0 20px;
}

.news-carousel {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

/* 轮播卡片 */
.news-carousel-card {
  flex-shrink: 0;
  width: calc((100% - 72px) / 4);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.18);
}

/* 卡片图片区域 */
.news-carousel-card-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.news-carousel-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-carousel-card-corner {
  display: none;
}

/* 卡片内容区域 */
.news-carousel-card-content {
  padding: 20px;
}

.news-carousel-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1D3557;
  line-height: 1.4;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-carousel-card-summary {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-carousel-card-divider {
  height: 1px;
  background: var(--champagne);
  margin-bottom: 16px;
}

.news-carousel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-carousel-card-date {
  font-size: 0.85rem;
  color: #666666;
}

.news-carousel-card-arrow {
  font-size: 1.3rem;
  color: var(--champagne);
  transition: color 0.3s ease, transform 0.3s ease;
}

.news-carousel-card:hover .news-carousel-card-arrow {
  color: #c09c42;
  transform: translateX(4px);
}

/* 轮播箭头按钮 */
.news-carousel-arrow-left,
.news-carousel-arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(37, 99, 235, 0.2);
  color: var(--brand-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.news-carousel-arrow-left {
  left: 0;
}

.news-carousel-arrow-right {
  right: 0;
}

.news-carousel-arrow-left:hover,
.news-carousel-arrow-right:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.news-carousel-arrow-left:disabled,
.news-carousel-arrow-right:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-carousel-arrow-left:disabled:hover,
.news-carousel-arrow-right:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--brand-blue);
  transform: translateY(-50%);
}



/* 响应式调整 */










  .font-controls {
    order: 1;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .slide h1 {
    font-size: 1.8rem;
  }

  .slide p {
    font-size: 0.96rem;
  }

  .module-head {
    flex-direction: column;
  }

  .pagination,
  .media-actions,
  .footer-bottom-inner {
    justify-content: flex-start;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ============================================
   专题专栏新样式
   ============================================ */

/* 专题专栏模块容器 - 恢复原样 */
.topics-module {
  background: var(--bg-blue);
  position: relative;
}

/* 专题专栏标题栏 */
.topics-module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.topics-title-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-right: 24px;
}

.topics-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-blue);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.topics-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--champagne);
  letter-spacing: 0.2em;
  margin-top: 4px;
  text-transform: uppercase;
}

.topics-divider-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--champagne) 20%, var(--champagne) 80%, transparent 100%);
  margin-top: 16px;
}

.topics-view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 50px;
  border: 2px solid var(--champagne);
  color: var(--text-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.topics-view-more:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.topics-view-more::after {
  content: "→";
  font-weight: 800;
}

/* 专题专栏容器 - 轮播 */
.topics-carousel-container {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  position: relative;
}

/* 轮播箭头 */
.topics-carousel-arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(37, 99, 235, 0.2);
  color: var(--brand-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.topics-carousel-arrow:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.topics-carousel-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.topics-carousel-arrow:disabled:hover {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--brand-blue);
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 轮播容器 */
.topics-carousel-wrapper {
  flex: 1;
  overflow: hidden;
  padding: 40px 0;
}

.topics-carousel {
  display: flex;
  gap: 40px;
  transition: transform 0.4s ease;
  justify-content: center; /* Center the items */
}

/* 竖版海报卡片 */
.topic-poster-card {
  flex-shrink: 0;
  width: 260px; /* 进一步缩小卡片尺寸 */
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  /* 更强的透视效果 */
  perspective: 800px;
  transform-style: preserve-3d;
}

.poster-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 0;
  overflow: hidden;
  /* 柔和的阴影 */
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  /* 确保3D变换生效 */
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* 左右轻微倾斜 - 明显的3D效果 */
.topic-poster-card:nth-child(odd) .poster-card-inner {
  transform: rotateY(-8deg) rotateX(3deg) translateZ(10px);
}

.topic-poster-card:nth-child(even) .poster-card-inner {
  transform: rotateY(8deg) rotateX(3deg) translateZ(10px);
}

.topic-poster-card:hover .poster-card-inner {
  /* hover 时上浮 + 阴影稍微加深 + 回正 */
  transform: rotateY(0deg) rotateX(0deg) translateZ(20px) translateY(-6px);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.16);
}

/* 卡片单边添加细香槟金渐变伪元素，模拟折页反光 */
.poster-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(216, 183, 106, 0) 0%,
    rgba(216, 183, 106, 0.4) 30%,
    rgba(216, 183, 106, 0.6) 50%,
    rgba(216, 183, 106, 0.4) 70%,
    rgba(216, 183, 106, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

/* 另一侧折页反光 */
.poster-card-inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(216, 183, 106, 0) 0%,
    rgba(216, 183, 106, 0.3) 50%,
    rgba(216, 183, 106, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

/* hover 时金边提亮 */
.topic-poster-card:hover .poster-card-inner::before {
  opacity: 1;
}

.topic-poster-card:hover .poster-card-inner::after {
  opacity: 0.9;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.topic-poster-card:hover .poster-image {
  transform: scale(1.02);
}

/* 响应式调整 */












/* =========== 融媒体中心正方形小卡片样式 =========== */

.media-square-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.media-square-card {
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
}

.media-square-card-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
  transition: all 0.4s ease;
}

.media-square-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.media-square-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-square-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-blue);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.media-square-desc {
  font-size: 0.95rem;
  color: rgba(29, 53, 87, 0.65);
}

.media-square-card:hover .media-square-card-inner {
  /* Remove background change when qr-popup covers */
  border-color: rgba(216, 183, 106, 0.9);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35);
  transform: translateY(-8px);
}

.media-square-card:hover .media-square-icon {
  transform: scale(1.15);
}

.media-square-card:hover .media-square-title {
  color: #ffffff;
}

.media-square-card:hover .media-square-desc {
  color: rgba(255, 255, 255, 0.9);
}





/* =========== 二维码悬停效果 =========== */
.qr-card {
  position: relative;
  z-index: 10;
}

.qr-popup {
  position: absolute;
  inset: 0; /* Covers the entire parent qr-card */
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); /* Blue gradient background */
  border-radius: 24px; /* Match parent border-radius */
  /* Removed padding for full coverage */
  box-shadow: 0 12px 36px rgba(29, 53, 87, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%); /* Start from below for slide-up */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  /* Removed border for full coverage */
  display: flex; /* Use flexbox for centering content */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-popup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.qr-popup img {
  /* Removed fixed width, height, and margin for full coverage */
  max-width: 100%; /* Allow image to grow to fill the parent width */
  max-height: 100%; /* Allow image to grow to fill the parent height */
  object-fit: contain !important; /* Keep aspect ratio */
  /* display: block !important; Removed as flexbox handles centering */
  /* margin: 0 auto !important; Removed as flexbox handles centering */
}

.qr-label,
.qr-click-hint {
  display: none; /* Hide text as requested */
}

.qr-label {
  color: #1d3557;
}

.qr-click-hint {
  color: #2563eb;
  opacity: 0.9;
}

.qr-popup[onclick] {
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-popup[onclick]:hover {
  transform: translateX(-50%) translateY(-50%) scale(1.05);
  box-shadow: 0 16px 48px rgba(29, 53, 87, 0.35);
}

.qr-card:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* Slide up to original position */
}