/* 默认可点击状态：白色背景 */
.prev-btn,
.next-btn {
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* 取消聚焦黑框 */
.prev-btn:focus,
.next-btn:focus {
    outline: none;
}
.buttons svg:focus {
    outline: 0;
}

/* 禁用状态（无页面可翻）：还原原本浅灰底色 */
.prev-btn.swiper-button-disabled,
.next-btn.swiper-button-disabled {
    background-color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    pointer-events: none; /* 禁用后彻底无法点击 */
    opacity: 1; /* 不要默认透明 */
}

/* 右上角双下拉按钮 */
.tab-actions {
    display: flex;
    gap: 12px;
    position: relative;
}
.dropdown-wrap {
    position: relative;
}
.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px  40px;
    border-radius: 40px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
}
.theme-btn {
    background: #25E2CC;
    color: #003D5C;
}
.sort-btn {
    background: #ffffff;
    color: #003D5C;
    border: 1px solid #E6E6E6;
}
.dropdown-menu {
  position: absolute;
  top: 64px;
  padding: 12px;
  z-index: 999;
  display: none;
  /* right: -100px; */
  left: 50%;
  transform: translateX(-50%);
    
}
.dropdown-menu ul {
  padding: 24px 40px 12px;
  background: #FFFFFFF0;
  box-shadow: 0px 4px 50px 0px #003D5C1A;
  backdrop-filter: blur(10px);
  width: max-content;
  border-radius: 24px;
}

.dropdown-menu li {
    font-size: 16px;
    color: #003D5C;
    cursor: pointer;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 12px;
}

.dropdown-wrap:hover .dropdown-menu {
    display: block;
}

/* 卡片行间距 */
.cards-grid-second {
    margin-top: 18px;
}



/* 原有样式保留，下面是原有css不变 */
.banner-img-custom {
    height: 680px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('/assets/imgs/media-center/banner-background.png');
}
.tab-card-container{
    display: block;
    color: var(--theme-color);
    padding: 88px 0 76px;
    background: url('../imgs/tab-swiper-bg.webp');
    background-size: 100% 100%;
    width: 100%;
    overflow: hidden
}
.tab-card-container .buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

  /* header 行 */
  .tab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }
  .tab-title {
    font-size: 48px;
    color: #003d5b;
    font-weight: 700;
    line-height: 72px;
  }
  
  /* swiper slide 内网格 */
  .media-swiper-container {
    position: relative;
  }
  

  
  /* 单张卡片 */
  .media-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 15px 16px 32px;
    border-radius: 40px;
    cursor: pointer;
  }
  .media-card:hover {
    background:#FFFFFFB2;
  }
  .media-thumb{
      padding-top: 16px;
  }
  .media-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
  }
  .media-body {
    padding: 12px;
  }
  .media-tag {
    display: inline-block;
    color: #003D5C;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 28px;
    border: 1px solid #003D5C;
  }
  .media-title {
    font-size: 24px;
    color: #003D5C ;
    margin: 0 0 16px 0;
    line-height: 36px;
    overflow: hidden;
  }
  .media-meta {
    display:flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #003D5C;
    font-weight: 400;
  }
  .media-more {
    font-weight: 700;
    text-decoration: none;
  }
  
  /* Swiper 控件样式微调 */
  .swiper-button-prev, .swiper-button-next {
    color: #003d5b;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(3,61,91,0.06);
  }
  .swiper-pagination-bullet {
    background: #cfdfe0;
    opacity: 1;
  }
  .swiper-pagination-bullet-active {
    background: #003d5b;
  }
  .case-insight{
    background: linear-gradient(314.74deg, #003D5C 7.08%, #0A1B2E 84.98%);
}
.case-insight-header{
    padding-top: 80px;
    padding-bottom: 40px;
    font-size: 48px;
    line-height: 72px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* 第一行网格：左窄 右宽 */
.case-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    /* 关键：两行之间的间距 = 内部列间距 = 24px */
    margin-bottom: 24px;
}

/* 第二行网格：左宽 右窄 */
.case-grid-two{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    padding-bottom: 100px;
}

/* 卡片通用样式 */
.case-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    height: 420px;
}
.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-card-text {
    position: absolute;
    left: 40px;
    bottom: 24px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* 响应式移动端：单列铺满 */
@media (max-width: 1024px) {
    .case-grid,
    .case-grid-two {
        display: flex;
        gap: 9px;
    }
    .case-grid-two {
        padding-bottom: 60px;
        margin-bottom: 0;
    }

}
.events-seminars .title {
  margin-bottom: 40px;
}
/* 外层网格：左右两列 1:1，保证图1总面积 = 右侧2+3+4总面积 */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 120px;
}

/* 右侧内部网格：2列布局，上下间隙24px */
.events-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  height: 100%;
}

/* 4号图 跨两列通栏 */
.event-card-wide {
  grid-column: 1 / -1;
}

/* 卡片通用样式（和洞察案例风格统一） */
.event-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
}
.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-text {
  position: absolute;
  left: 40px;
  bottom: 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

/* 左侧大图强制等高 */
.event-card-large {
  height: 100%;
}

/* 响应式：移动端单列排布 */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 80px;
  }
  /* 右侧内部网格：2列布局，2张小图并排 */
  .events-right-grid {
      grid-template-columns: 1fr 1fr;
      gap: 16px;
  }
  /* 第4张往期回放保持通栏跨两列 */
  .event-card-wide {
      grid-column: 1 / -1;
  }
  /* 卡片高度适配 */
  .event-card-large {
      height: 320px;
  }
  .event-card {
      height: 160px;
  }
  .event-card-wide {
      height: 240px;
  }
}
  /* 响应式 */
  @media (max-width: 1024px) {
    .media-thumb img { height: 130px; }

  }
  @media (max-width: 768px) {

    .gap-16{
      gap: 16px;
    }
    /* 网格改为单列，卡片纵向排列 */
    /* .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cards-grid-second {
        margin-top: 16px;
    } */

    /* 卡片核心：左图右文横向布局 */
    .media-card {
        flex-direction: row;
        align-items: flex-start;
        border-radius: 24px;
        background: #fff;
        gap: 9px;
        padding: 12px;
    }

    /* 左侧缩略图固定尺寸 */
    .media-thumb {
        padding-top: 0;
        flex-shrink: 0;
        width: 140px;
    }
    .media-thumb img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

    /* 右侧文字区域自适应 */
    .media-body {
        padding: 0;
        flex: 1;
        min-width: 0;
    }

    /* 文字样式微调 */
    .media-tag {
        font-size: 10px;
        line-height: 16px;
        padding: 2px 10px;
        margin-bottom: 8px;
    }
    .media-title {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 8px;
        /* 标题最多显示2行，超出省略 */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .media-date {
        font-size: 12px;
        line-height: 18px;
    }
    .media-more {
        display: none;
    }

    /* 以下原有移动端样式保持不变 */
    .tab-select { min-width: 120px; }
    .tab-actions {gap:8px;}
    .dropdown-btn {padding:13px 16px;font-size:14px;line-height: 22px;}
    .dropdown-menu{
      left: 0;
      transform: none;
      padding: 0;
      top: 56px;
    }
    .dropdown-menu ul{
      padding: 24px 24px 12px;
    }
    .dropdown-menu li{
      font-size: 14px;
      line-height: 22px;
      font-weight: 400;
    }
    .banner-img-custom{
      background-image: 
        linear-gradient(331.71deg, rgba(57, 98, 127, 0) 52%, #174264 78%),
        url('/assets/imgs/media-center/banner-background-mob.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      display: block;
    }
    .tab-card-container{
      padding-top: 40px;
    }
    .tab-card-header{
      display: block;
    }
    .tab-title{
      font-size: 32px;
      line-height: 48px;
      margin-bottom: 16px;
    }
    .case-insight-header{
      padding-top: 60px;
      padding-bottom: 40px;
    }
    .case-card {
      height: 128px;
      margin-bottom: 9px;
    }
    .case-insight-header{
      font-size: 32px;
      line-height: 48px;
    }
    .case-card-text{
      font-size: 16px;
      line-height: 24px;
      left: 8px;
      bottom:6px;
    }
    .events-grid {
      gap: 9px;
      margin-bottom: 60px;
    }
    .events-right-grid {
        gap: 9px;
    }
    .event-card-large {
        height: 280px;
    }
    .event-card {
        height: auto;
    }
    .event-card-wide {
        height: 200px;
    }
    .event-card-text {
        left: 20px;
        bottom: 16px;
        font-size: 16px;
    }
}