.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://oss.allintrip.cn/shanwentou/upfiles/onepage/bannerdj.png?x-oss-process=image/quality,q_85/format,jpg");
}

/* ===== Web端默认样式 ===== */
body {
  background-image: url(https://oss.allintrip.cn/shanwentou/upfiles/onepage/bg4.jpg?x-oss-process=image/quality,q_85/format,jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== 顶部左右布局 ===== */

section:nth-child(even) {
  background-color: transparent;
}

.top-banner {
  padding-bottom: 0;
}

.top-banner .container {
  gap: 4rem;
  align-items: stretch;
}

.banner-left,
.banner-right {
  flex: 1;
  max-width: 50%;
  min-width: 50%;
}

.banner-left {
  min-height: 420px;
}

/* 轮播 */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.slides {
  width: 100%;
  height: 100%;
  min-height: 420px;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}
.slide.zIndex {
  z-index: 2;
}

.carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 6;
}

.carousel .nav.prev {
  left: 12px;
}

.carousel .nav.next {
  right: 12px;
}
.arrow-icon {
  width: 20px;
  height: 20px;
}
.arrow-left {
  transform: rotate(-180deg);
}

.carousel .nav:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.02);
}

.carousel .dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  z-index: 6;
}

.carousel .dot {
  width: 12px;
  max-width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 0;
  margin: 0;
  cursor: pointer;
}

.carousel .dot.active {
  background: #d81e06;
}

/* 热门新闻 */
.hot-news {
  /* overflow: hidden; */
}

.hot-news .tab-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  background-image: url("https://oss.allintrip.cn/shanwentou/upfiles/onepage/tab_line.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  height: 3.3rem;
  padding-top: 1.4rem;
  padding-left: 13%;
  position: relative;
}
.hot-news .tab-nav::after {
  position: absolute;
  content: "";
  left: -0.5rem;
  top: -0.5rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 4.5rem;
  height: 5rem;
  background-image: url("https://oss.allintrip.cn/shanwentou/upfiles/party/djtb-jj1.png");
}

.hot-news .tab-nav .tab {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  line-height: 53px;
  margin-right: 2px;
  border-radius: 4px 4px 0 0;
  padding: 0 2.5rem;
  height: 3.3rem;
  margin-top: -1.4rem;
}

.hot-news .tab-nav .tab.active {
  color: #fff;
  position: relative;
  background-color: transparent;
  background-image: url("https://oss.allintrip.cn/shanwentou/upfiles/party/dj_tab_on.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.hot-news .tab-nav .tab.active::after {
  display: none;
}

.hot-news .tab-nav .more {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.hot-news .tab-nav .more:hover {
  opacity: 1;
}

.tab-content {
  padding: 12px 18px 6px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.news-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
  animation: slideInUp 0.5s ease forwards;
  transform: translateY(20px);
}

.news-list li:nth-child(1) {
  animation-delay: 0.1s;
}

.news-list li:nth-child(2) {
  animation-delay: 0.2s;
}

.news-list li:nth-child(3) {
  animation-delay: 0.3s;
}

.news-list li:nth-child(4) {
  animation-delay: 0.4s;
}

.news-list li:nth-child(5) {
  animation-delay: 0.5s;
}

.news-list li:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
  }
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list li a {
  color: #222;
  text-decoration: none;
  flex: 1;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list li a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d81e06;
  margin-right: 10px;
  vertical-align: 2px;
}

.news-list li a:hover {
  color: #d81e06;
}

.news-list .date {
  color: #999;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* 标签切换动画 */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 新闻容器 */
.news-container {
  margin-top: 30px;
}

/* 加载状态 */
.news-list.loading {
  pointer-events: none;
}

.news-list.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(209, 30, 6, 0.3);
  border-top: 2px solid #d81e06;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 992px) {
  .top-banner .container {
    flex-direction: column;
  }

  .banner-left {
    min-height: 220px;
  }

  .carousel {
    min-height: 220px;
    border-radius: 12px;
  }

  .hot-news {
    border-radius: 12px;
  }
}

section {
  height: auto;
  /* min-height: 50vh; */
  flex-direction: column;
  align-items: start;
}

/* ===== 布局组件 ===== */
.content-wrapper {
  flex-direction: column;
  width: 100%;
}

.content-wrapper-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
  margin-bottom: 3rem;
}

.content-wrapper-bottom {
  display: flex;
  align-items: stretch;
  gap: 3rem;
  width: 100%;
  min-height: 0;
}

.content-wrapper-bottom .section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content-wrapper-bottom #theory-container {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-wrapper-bottom .theory-content {
  flex: 1;
  height: 100%;
  overflow: auto;
}

.content-wrapper-bottom-right {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.content-wrapper-bottom-right #theme-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content-wrapper-bottom-right .theme-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content-wrapper-bottom-right .theme-image img {
  width: 100%;
  height: 100%;
  /* aspect-ratio: 1.56/1; */
  object-fit: cover;
  object-position: center;
}

.content-wrapper-top .section {
  width: 100%;
  overflow: hidden;
}

/* 栏目标题与更多链接 */
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.section-title-box {
  white-space: nowrap;
  align-items: center;
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 700;
  color: #c12b20;
}

.between {
  justify-content: space-between;
}

.section-title-box img {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 1rem;
}

#mass .section-title-box img,
#union .section-title-box img {
  width: 2.5rem;
  height: 3rem;
  margin-bottom: -0.4rem;
}

.section-title .more {
  white-space: nowrap;
  color: #999;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-title .more:hover {
  color: #0066ff;
}

.works-hot {
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.works-hot-left {
  width: 33%;
  max-width: 33%;
  min-width: 33%;
}

.works-hot-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.works-hot-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  gap: 0.5rem;
}

.works-hot-right-title {
  font-size: 1.3rem;
  color: #c00707;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.works-hot-right-date {
  color: #a2a1a2;
  text-align: right;
  width: 100%;
}

.works-list {
  display: flex;
  flex-direction: column;
}

.works-bottom-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.works-bottom-item:last-child {
  border: none;
}

.works-bottom-item-title {
  font-size: 1.2rem;
  color: #d41414;
}

.works-bottom-item-date {
  color: #a2a1a2;
}

.works-bottom-item-content {
  font-size: 1rem;
}

/* ========= 响应式优化 ========= */

/* ===== 平板端 (768px以下) ===== */
@media (max-width: 1024px) {
  section {
    padding: 40px 6vw;
  }

  /* 布局调整 */
  .content-wrapper-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .content-wrapper-bottom {
    flex-direction: column;
    gap: 2rem;
  }

  .top-banner .container {
    gap: 2rem;
  }

  /* 轮播图调整 */
  .banner-left {
    min-height: 250px;
  }

  .carousel {
    min-height: 250px;
  }

  /* 标题调整 */
  .section-title-box {
    font-size: 1.5rem;
  }

  /* 内容区域调整 */
  .works-hot-left {
    width: 40%;
    max-width: 40%;
    min-width: 40%;
  }

  .works-hot-right-title {
    font-size: 1.1rem;
  }

  .news-list li {
    padding: 10px 0;
  }

  /* 理论学习区域调整 */
  .theory-content {
    padding: 1.25rem;
  }

  .theory-card {
    padding: 1.25rem;
  }

  .theory-list {
    gap: 0.5rem;
  }

  .theory-item {
    padding: 0.75rem;
  }
  .hot-news .tab-nav {
    height: 3rem;
  }
  .hot-news .tab-nav .tab {
    padding: 0 1rem;
    height: 3rem;
    margin-top: -1.4rem;
    line-height: 3rem;
  }
  .hot-news .tab-nav .more {
    line-height: 3rem;
    height: 3rem;
    padding: 0 1rem;
    margin-top: -1rem;
  }
  .hot-news .tab-nav::after {
    width: 3.5rem;
    height: 4rem;
    left: -1rem;
  }
}

/* ===== 移动端 (576px以下) ===== */
@media (max-width: 576px) {
  /* 布局调整为单列 */
  .content-wrapper-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .top-banner .container {
    gap: 1.5rem;
  }

  /* 轮播图移动端优化 */
  .banner-left {
    min-height: 200px;
  }

  .carousel {
    min-height: 200px;
    border-radius: 10px;
  }

  .slides {
    min-height: 200px;
  }

  .slide {
    min-height: 200px;
  }
  .slide a {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
  }

  /* 热门新闻移动端样式 */
  .hot-news {
    border-radius: 10px;
  }

  .hot-news .tab-nav .tab {
    /* padding: 12px 16px; */
    font-size: 0.95rem;
  }

  .section-title-box {
    white-space: normal;
    font-size: 1.3rem;
  }

  /* 新闻列表移动端优化 */
  .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .news-list .date {
    font-size: 0.9rem;
  }

  /* 工作内容移动端优化 */
  .works-hot-left {
    width: 35%;
    max-width: 35%;
    min-width: 35%;
  }

  .works-bottom-item-title {
    font-size: 1.05rem;
  }

  /* 理论学习移动端优化 */
  .theory-content {
    padding: 1rem;
  }

  .theory-card {
    padding: 1rem;
  }

  .theory-item {
    padding: 0.75rem;
  }

  .theory-item-content h4 {
    font-size: 0.95rem;
  }

  .theory-item-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }

  /* 图片移动端优化 */
  .content-wrapper-bottom-right .theme-image {
    height: auto;
    min-height: 200px;
  }

  .content-wrapper-bottom-right .theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ===== 大屏幕优化 (1200px以上) ===== */
@media (min-width: 1200px) {
  .top-banner .container {
    gap: 4rem;
  }

  .content-wrapper-top {
    gap: 4rem;
    margin-bottom: 4rem;
  }

  .content-wrapper-bottom {
    gap: 4rem;
  }

  .section-title-box {
    font-size: 2rem;
  }

  /* 大屏幕下增加内容密度 */
  .theory-list {
    gap: 1rem;
  }

  .theory-item {
    padding: 1.25rem;
  }

  .works-featured {
    margin-bottom: 1.5rem;
  }

  .featured-content {
    padding: 1.5rem;
  }
}

/* ===== 党建主题横幅 ===== */

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(220, 20, 20, 0.1),
    rgba(0, 0, 0, 0.3)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.party-logo {
  margin-bottom: 2rem;
}

.party-star {
  font-size: 4rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: star-glow 2s ease-in-out infinite alternate;
}

@keyframes star-glow {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 轮播图优化 ===== */
.slide-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 2rem;
}

.slide-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.slide-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* ===== 标签页优化 ===== */
.tab-icon {
  margin-right: 0.5rem;
  width: 1.1rem;
}

.news-item-featured {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-left: 4px solid #dc1414;
  padding: 1rem 0.1rem 1rem 1rem !important;
  border-radius: 0 8px 8px 0;
  border-bottom: none !important;
}

.news-item-featured a {
  color: #dc1414 !important;
  font-weight: 600;
}

/* ===== 主要内容区域 ===== */
.main-content {
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.title-icon {
  display: flex;
  align-items: center;
  line-height: 1;
}

.title-icon img {
  width: 2.5rem;
  height: 3rem;
  margin-right: 1rem;
}

/* ===== 特色内容区域 ===== */
.works-featured {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.works-featured:hover {
  transform: translateY(-4px);
}

.featured-image {
  position: relative;
  aspect-ratio: 2/1;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.works-featured:hover .featured-image img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.featured-tag {
  background: #dc1414;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-content {
  padding: 1.25rem;
}

.featured-title {
  color: #dc1414;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.featured-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.featured-meta .date {
  color: #999;
}

.featured-meta .category {
  background: #f0f0f0;
  color: #666;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* ===== 工作列表优化 ===== */
.works-list {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.works-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  transition: all 0.2s ease;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.works-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.works-item:last-child {
  border-bottom: none;
}

.works-item:hover {
  background: #f8f9fa;
  padding-left: 0.5rem;
  border-radius: 8px;
}

.item-bullet {
  color: #dc1414;
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* ===== 理论学习区域 ===== */
.theory-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.theory-featured {
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.theory-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 1px solid #ffe0e0;
  border-radius: 12px;
  padding: 1.5rem;
}

.theory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.theory-title {
  color: #dc1414;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.theory-date {
  color: #999;
  font-size: 1rem;
  white-space: nowrap;
  margin-left: 1rem;
}

.theory-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.theory-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  background: #dc1414;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.theory-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  max-height: 100%;
}

.theory-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.theory-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(220, 20, 20, 0.1);
}

.theory-item:hover .theory-item-content h4 {
  color: #b01014;
}

.theory-item-content h4 {
  color: #dc1414;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease;
}

.theory-item-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.theory-item-date {
  color: #999;
  font-size: 1rem;
  line-height: 1;
  display: block;
  text-align: right;
}

/* ===== 党建专题区域 ===== */
.party-theme-section {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  width: 100%;
  max-height: 100%;
}

.theme-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #dc1414 0%, #b91c1c 100%);
  color: #fff;
  white-space: nowrap;
}

.theme-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.theme-header p {
  margin: 0;
  opacity: 0.9;
}

.theme-image {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.theme-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.theme-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.theme-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.theme-btn {
  display: inline-block;
  background: #dc1414;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  color: #fff;
}

/* ===== 党建数据统计 ===== */
.party-stats-section {
  background: linear-gradient(135deg, #dc1414 0%, #b91c1c 100%);
  color: #fff;
  text-align: center;
}

#stats-container {
  width: 100%;
  align-items: center;
  justify-content: space-around;
}

.stats-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.stats-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ===== 响应式优化 ===== */
@media (max-width: 1024px) {
  section {
    padding: 40px 6vw;
  }

  .party-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .party-nav-item {
    padding: 1.5rem;
  }

  .nav-icon {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .theory-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .theory-date {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .banner-left,
  .banner-right {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .party-nav-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero.party-hero {
    min-height: 50vh;
  }

  .party-star {
    font-size: 3rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-header h2 {
    font-size: 2rem;
  }

  .theory-content {
    padding: 1.5rem;
  }

  .theory-card {
    padding: 1.5rem;
  }
}

/* ===== 右下角飘窗样式 ===== */
.floating-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: block;
  transition: all 0.3s ease;
  overflow: hidden;
}

.floating-window:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.floating-content {
  padding: 16px 20px;
  position: relative;
  min-height: 60px;
}

.floating-title {
  font-size: 14px;
  font-weight: 600;
  color: #d32f2f;
  line-height: 1.4;
  margin-bottom: 8px;
  border-left: 3px solid #d32f2f;
  padding-left: 8px;
  padding-right: 32px; /* 为关闭按钮留出空间 */
}

.floating-text {
  font-size: 13px;
  color: #333333;
  line-height: 1.5;
  font-weight: 500;
  padding-right: 32px; /* 为关闭按钮留出空间 */
}

.floating-hint {
  font-size: 12px;
  color: #666666;
  margin-top: 8px;
  font-style: italic;
  padding-right: 32px; /* 为关闭按钮留出空间 */
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
  transform: scale(1.1);
}

/* 移动端适配 */
@media (max-width: 1024px) {
  .floating-window {
    bottom: 15px;
    right: 15px;
    left: 15px;
    width: auto;
    max-width: calc(100vw - 30px);
  }

  .floating-content {
    padding: 14px 16px;
    min-height: 50px;
  }

  .floating-title {
    font-size: 13px;
    padding-right: 28px; /* 为关闭按钮留出空间 */
  }

  .floating-text {
    font-size: 12px;
    padding-right: 28px; /* 为关闭按钮留出空间 */
  }

  .floating-hint {
    font-size: 11px;
    padding-right: 28px; /* 为关闭按钮留出空间 */
  }

  .close-btn {
    width: 20px;
    height: 20px;
    font-size: 14px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .floating-window {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
  }

  .floating-content {
    padding: 12px 14px;
    min-height: 45px;
  }

  .floating-title {
    font-size: 12px;
    border-left-width: 2px;
    padding-left: 6px;
    padding-right: 26px; /* 为关闭按钮留出空间 */
  }

  .floating-text {
    font-size: 11px;
    padding-right: 26px; /* 为关闭按钮留出空间 */
  }

  .floating-hint {
    font-size: 10px;
    padding-right: 26px; /* 为关闭按钮留出空间 */
  }

  .close-btn {
    width: 18px;
    height: 18px;
    font-size: 12px;
    top: 8px;
    right: 8px;
  }
}