

/* ==================== 一体化新闻区 ==================== */
.integrated-section {
  background: #fff;
  overflow: hidden;
  padding: 20px;
}
.news-section {
  padding-left: 20px;
}
.integrated-section .row {
  margin: 0;
}


/* 左侧图片轮播 */
.integrated-section .carousel-image {
  height: 408px;
  background: var(--primary-color);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.integrated-section .carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date-circle {
  width: 80px;
  height: 80px;
  background: var(--gradient-red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  position: absolute;
  top: -20px;
  left: 15px;
  z-index: 3;
}

.date-number {
  font-size: 22px;
  line-height: 1;
}

.date-month {
  font-size: 12px;
  line-height: 1;
  margin-top: 3px;
}

.img-info {
  min-height: 60px;
  position: relative;
  padding: 8px 15px 8px 110px;
  background: #fff;
  display: flex;
  align-items: center;
}

.img-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-title);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.integrated-section .carousel-indicators {
  bottom: 10px;
  right: 15px;
  justify-content: flex-end;
  margin: 0;
}

.integrated-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
  border: none;
  margin: 0 5px;
  opacity: 0.6;
}

.integrated-section .carousel-indicators button.active {
  background-color: var(--primary-color);
  opacity: 1;
}

/* 自定义轮播显隐（不依赖 Bootstrap JS） */
.lgs-carousel {
  position: relative;
}

.lgs-carousel-inner {
  position: relative;
  width: 100%;
  min-height: 408px; /* 与 .carousel-image 高度一致，防止 JS 未加载时塌陷 */
}

.lgs-carousel .carousel-item {
  display: none;
  position: relative;
}

.lgs-carousel .carousel-item.active {
  display: block;
}

/* 右侧新闻 tab */
.news-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  margin-bottom: 12px;
}

.news-tabs .tab-link {
  display: flex;
  align-items: center;
  color: #333;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.news-tabs .tab-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.news-tabs .tab-icon {
  margin-right: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

/* 新闻列表 */
.news-content {
  position: relative;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  position: relative;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px dashed #ddd;
}

.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  flex-shrink: 0;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}

.news-date {
  color: var(--primary-color);
  font-size: 14px;
  margin-right: 14px;
  flex-shrink: 0;
  margin-bottom: 10px;
  line-height: 2.0;
}

.news-title {
  color: #333;
  font-size: 16px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  min-width: 0;
  line-height: 1.5;
  height: 48px;
}

.news-item:hover .news-title,
.news-list .active .news-title {
  color: var(--primary-color);
}

.news-item:hover .news-dot,
.news-list .active .news-dot {
  background: var(--primary-color);
}

.more-link {
  color: var(--primary-color);
  font-size: 12px;
  display: inline-block;
  margin-top: 10px;
}

/* ==================== 两列列表（通知公告 + 下载中心） ==================== */
.two-col-section {
  padding: 30px 0;
}

.two-col-section .col-lg-6 {
  background: #fff;
  padding: 20px;
}

.two-col-list {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.list-row:last-child {
  border-bottom: none;
}

.list-date {
  color: var(--primary-color);
  font-size: 14px;
  flex-shrink: 0;
  margin-right: 16px;
  font-weight: 500;
}

.list-text {
  color: #333;
  font-size: 16px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.list-text:hover {
  color: var(--primary-color);
}

/* ==================== 专题聚焦 (3列卡片) ==================== */
.party-section {
  padding: 40px 20px;
  background: #fff;
}

.party-grid {
  row-gap: 20px;
}

.party-item {
  display: block;
}

.party-img-wrapper {
  height: 210px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.party-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.party-item:hover .party-img-wrapper img {
  transform: scale(1.06);
}

.party-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.party-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.5;
  margin-top: 12px;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.party-item:hover .party-title {
  color: var(--primary-color);
}

/* ==================== 业务管理 Tab 卡片 ==================== */
.biz-section {
  padding: 20px 20px 40px;
  background: #fff;
}

.biz-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.biz-tabs::-webkit-scrollbar {
  display: none;
}

.biz-tab {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  padding: 14px 20px;
  text-align: center;
  transition: all 0.25s ease;
}

.biz-tab:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.biz-tab.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.biz-tab.active::after {
  display: none;
}

/* 静态 Tab 内容切换：默认隐藏，active 显示 */
.biz-tab-content {
  display: none;
}

.biz-tab-content.active {
  display: block;
}

.biz-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  transition: all 0.2s ease;
}

.biz-card:hover {
  padding-left: 4px;
}

.biz-card:hover .biz-card-title {
  color: var(--primary-color);
}

.biz-date-badge {
  flex-shrink: 0;
  width: 60px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  line-height: 1;
  border-radius: 4px;
}

.biz-date-day {
  font-size: 24px;
  font-weight: 700;
}

.biz-date-month {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}

.biz-card-title {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

/* ==================== 下载中心 Tab 切换（左侧竖排） ==================== */
.download-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  overflow: hidden;
  min-height: 280px;
}

.download-tab-nav {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 48px;
  border-right: 1px solid var(--border-line);
  background: var(--bg-page);
}

.download-tab-btn {
  flex: 1;
  min-height: 120px;
  background: var(--bg-page);
  border: none;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 600;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 4px;
  cursor: pointer;
  padding: 12px 0;
  transition: all 0.25s ease;
}

.download-tab-btn:last-child {
  border-bottom: none;
}

.download-tab-btn:hover {
  color: var(--primary-color);
  background: #fff;
}

.download-tab-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.download-tab-body {
  flex: 1;
  padding: 16px 20px;
}

.download-tab-panel {
  display: none;
}

.download-tab-panel.active {
  display: block;
}

/* ==================== 响应式（首页主体） ==================== */
@media screen and (max-width: 1200px) {
  .news-section {
    padding-left: 0;
  }
  .integrated-section .carousel-image {
    height: 300px;
  }
  .lgs-carousel-inner {
    min-height: 300px;
  }
  .pl-36 {
    padding-left: 15px;
    margin-top: 20px;
  }
  .party-grid .col-lg-4 {
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 768px) {
  .party-section .integrated-section, .party-section, .biz-section {
    padding: 20px 10px;
  }
  .two-col-section .col-lg-6 {
    padding: 10px;
  }
  .lgs-main {
    padding: 20px 0;
  }
  .policy-title {
    font-size: 17px;
  }
  .integrated-section .carousel-image {
    height: 200px;
  }
  .lgs-carousel-inner {
    min-height: 200px;
  }
  .img-info {
    min-height: 50px;
    padding: 6px 12px 6px 90px;
  }
  .img-title {
    font-size: 15px;
  }
  .date-circle {
    width: 60px;
    height: 60px;
    top: -15px;
  }
  .date-number {
    font-size: 18px;
  }
  .news-tabs .tab-link {
    font-size: 15px;
  }
  .party-img-wrapper {
    height: 160px;
  }
}
