/* ========== 连云港市退役军人事务局 首页样式 ========== */
/* 全局基础与公共头部/底部样式在 public.css 中，本文件仅含首页内容区样式 */

/* ========== 4. 主展示区 ========== */
.hero-area {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

/* 左侧轮播 */
.hero-carousel {
  flex: 1;
  height: 400px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: #4a90d9;
}
.hero-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  background-size: cover;
  background-position: center;
}
.hero-carousel .swiper-slide .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 50px 20px 15px;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
}

/* 右侧新闻 */
.news-panel {
  width: 480px;
  height: 400px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-panel .tabs {
  display: flex;
  background: #fff;
  border-bottom: 2px solid #e6e6e6;
}
.news-panel .tabs a {
  flex: 1;
  text-align: center;
  height: 52px;
  line-height: 52px;
  padding: 0 4px;
  color: #333;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s;
}
.news-panel .tabs a.active {
  color: #015293;
}
.news-panel .tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #015293;
}
.news-panel .tab-content {
  flex: 1;
  padding: 15px 18px;
  overflow: hidden;
}
.news-panel .tab-pane { display: none; }
.news-panel .tab-pane.active { display: block; }
.news-panel .news-list { list-style: none; }
.news-panel .news-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-panel .news-list li:last-child { border-bottom: none; }
.news-panel .news-list li a {
  flex: 1;
  color: #333;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}
.news-panel .news-list li a:hover { color: #015293; }
.news-panel .news-list li .date {
  font-size: 17px;
  color: #999;
  flex-shrink: 0;
}
.news-panel .news-list li .tag {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 6px;
}

/* ========== 5. 通栏大横幅（1200*100，5张轮播） ========== */
.big-banner {
  margin-top: 15px;
  height: 100px;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.big-banner .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 横幅指示点靠右 */
.big-banner .swiper-pagination {
  text-align: right;
  padding-right: 20px;
}

/* ========== 6. 图片轮播横幅（小图无缝滚动） ========== */
.banner-carousel {
  margin-top: 20px;
  height: 100px;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.banner-carousel .swiper-wrapper {
  /* delay:0 连续滚动时强制匀速，避免忽快忽慢 */
  transition-timing-function: linear !important;
}
.banner-carousel .swiper-slide {
  width: 267px;
  height: 100px;
}
.banner-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* 小图横幅箭头（灰白）；各幻灯当前指示点（红色） */
.banner-carousel .swiper-button-prev,
.banner-carousel .swiper-button-next {
  color: #e0e0e0;
}
.banner-carousel .swiper-button-prev:hover,
.banner-carousel .swiper-button-next:hover {
  color: #ffffff;
}
.hero-carousel .swiper-pagination-bullet-active,
.big-banner .swiper-pagination-bullet-active,
.banner-carousel .swiper-pagination-bullet-active {
  background: #e60012;
  opacity: 1;
}

/* ========== 6. 下方内容区 ========== */
.main-content {
  margin-top: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}
.main-content .col-left { flex: 1; }
.main-content .col-right {
  width: 480px;
  display: flex;
  flex-direction: column;
}

/* 宣传图片位（预留，图片暂空；自动填满右栏底部空白） */
.img-slot {
  flex: 1 1 auto;
  min-height: 60px;
  margin-bottom: 20px;
  display: block;
  border-radius: 3px;
  overflow: hidden;
}
.img-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}

/* 通用模块 */
.module {
  background: #fff;
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}
.module-head {
  display: flex;
  align-items: center;
  /* 左深右亮的三色色阶 + 顶部一层柔和高光，渐变自然有质感 */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(90deg, #0f4c8f 0%, #015293 45%, #2f80d6 100%);
  color: #fff;
  padding: 0 20px;
  height: 52px;
}
.module-head .m-title {
  font-size: 21px;
  font-weight: 700;
  flex: 1;
}
.module-head .m-more {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}
.module-head .m-more:hover { color: #ffd700; }
.module-body { padding: 15px 20px; }

/* 通知公告 */
.notice-list { list-style: none; }
.notice-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li a {
  flex: 1;
  color: #333;
  font-size: 17px;
  font-weight: 400;
  padding-left: 14px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 15px;
}
.notice-list li a::before {
  content: '●';
  position: absolute;
  left: 0;
  color: #015293;
  font-size: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.notice-list li a:hover { color: #015293; }
.notice-list li .date {
  font-size: 17px;
  color: #999;
  flex-shrink: 0;
}

/* 政策法规/解读（带tab） */
.policy-module .module-head {
  background: #fff;
  border-bottom: 2px solid #e6e6e6;
  padding: 0;
  height: auto;
}
.policy-module .module-head .tabs {
  display: flex;
}
.policy-module .module-head .tabs a {
  padding: 0 28px;
  height: 52px;
  line-height: 52px;
  font-size: 21px;
  color: #333;
  cursor: pointer;
  position: relative;
  font-weight: 700;
}
.policy-module .module-head .tabs a.active {
  color: #015293;
  font-weight: 700;
}
.policy-module .module-head .tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #015293;
}
.policy-module .module-head .m-more {
  margin-left: auto;
  margin-right: 20px;
  color: #999;
}
.policy-module .module-head .m-more:hover { color: #015293; }
.policy-module .module-body .tab-pane { display: none; }
.policy-module .module-body .tab-pane.active { display: block; }

/* 右栏小模块 */
.right-module .module-body {
  padding: 18px;
}
.grid-buttons {
  display: grid;
  gap: 14px;
}
.grid-buttons.cols-2 { grid-template-columns: 1fr 1fr; }
.grid-buttons.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-buttons.cols-4 { grid-template-columns: repeat(2, 1fr); }

.grid-buttons .g-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f8fc;
  border: 1px solid #dce6f2;
  border-radius: 4px;
  height: 111px;
  padding: 0 8px;
  font-size: 17px;
  color: #015293;
  font-weight: 400;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}
.grid-buttons .g-btn:hover {
  background: #015293;
  color: #fff;
  border-color: #015293;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.25);
}

/* 图片型按钮（整图按原大小显示，无边框底色） */
.grid-buttons .g-btn-img {
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  overflow: hidden;
}
.grid-buttons .g-btn-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.2s;
}
.grid-buttons .g-btn-img:hover {
  background: transparent;
  border-color: transparent;
  color: inherit;
}
.grid-buttons .g-btn-img:hover img {
  transform: scale(1.03);
}

/* 带图标的按钮（互动交流）：图标在上、文字在下 */
.grid-buttons.has-icons .g-btn {
  flex-direction: column;
  gap: 10px;
  height: 130px;
}
.grid-buttons.has-icons .g-btn .g-icon {
  width: 52px;
  height: 52px;
  display: block;
  transition: transform 0.2s;
}
.grid-buttons.has-icons .g-btn:hover .g-icon {
  transform: scale(1.08);
}

/* 带图标的横排按钮（政务公开）：图标在左、文字在右，白底浅蓝边卡片 */
.grid-buttons.has-icons-row {
  gap: 16px;
}
.grid-buttons.has-icons-row .g-btn {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  height: 50px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid #b9d8f5;
  border-radius: 10px;
  color: #333;
  font-size: 18px;
  font-weight: 500;
}
.grid-buttons.has-icons-row .g-btn .g-icon {
  /* 按图片原始尺寸显示，不放大 */
  width: auto;
  height: auto;
  max-width: 40px;
  max-height: 40px;
  display: block;
  flex: none;
  transition: transform 0.2s;
}
.grid-buttons.has-icons-row .g-btn:hover {
  background: #f0f7ff;
  border-color: #1a5fb4;
  color: #015293;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.15);
}
.grid-buttons.has-icons-row .g-btn:hover .g-icon {
  transform: scale(1.08);
}

/* 公共底部导航与页脚样式已移至 public.css */
