img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 轮播图核心样式 */
.swiper-container {
    width: 100%;
    position: relative;
    z-index: 1;
    background: #f5f5f5;
    margin: 0 auto;
}

/* PC端轮播图设置 */
@media (min-width: 769px) {
    .swiper-container {
        max-width: 1200px;
        height: 800px;
        margin-bottom: 40px;
        border-radius: 12px;
        overflow: hidden;
    }
}

/* 移动端轮播图适配 */
@media (max-width: 768px) {
    .swiper-container {
        height: 60vw;
        max-height: 600px;
        margin: 15px 10px;
    }
}

/* 轮播图图片设置 */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 三栏容器优化 */
#ajax-more {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 图片容器留白 */
.wapost .img {
    padding: 0 5px;
    margin: 15px 0;
}

/* 图片样式 */
.wapost .img img {
    width: calc(100% - 12px);
    height: 200px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    #ajax-more {
        grid-template-columns: 1fr !important;
        padding: 0 10px;
        column-count: initial !important; 
        column-gap: initial !important;
    }
    
    .wapost {
        margin-bottom: 15px;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
}

/* 移动端单列显示 */
@media (max-width: 768px) {
    #ajax-more.three-columns {
        grid-template-columns: 1fr;
    }
}

.container.pages .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 5px !important;
}

.container.pages .content h3 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container.pages .content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container.pages .content {
        grid-template-columns: 1fr;
    }
}

#ajax-more.three-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#ajax-more.three-columns .wapost {
  width: 32%;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* 修复轮播图样式 */
.ui-banner-slides img {
  width: 100%;
  height: auto;
  display: block;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  #ajax-more.three-columns .wapost {
    width: 100%;
  }
}

.container.pages .content h3 {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 10px;
}

/* 赛区列表核心样式 */
.container.pages .content {
    display: grid;
    gap: 15px;
    padding: 20px;
}

/* PC端7列 */
@media (min-width: 1201px) {
    .container.pages .content {
        grid-template-columns: repeat(7, minmax(120px, 1fr));
    }
}

/* 中等屏幕5列 */
@media (max-width: 1200px) and (min-width: 992px) {
    .container.pages .content {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }
}

/* 平板端4列 */
@media (max-width: 991px) and (min-width: 768px) {
    .container.pages .content {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

/* 移动端自适应（4-2列） */
@media (max-width: 767px) {
    .container.pages .content {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
}

/* 按钮通用样式 */
.container.pages a {
    background: #ff0000;
    color: #fff !important;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: calc(14px + 0.2vw);
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .container.pages a {
        min-height: 50px;
        padding: 10px !important;
        font-size: 13px;
    }
}

/* 电脑端标签样式 */
@media screen and (min-width: 992px) {
    .cd_ls {
        margin: 20px auto;
        max-width: 1200px;
        position: relative;
        padding-bottom: 5px;
    }
    
    .cd_ls::before {
        content: "";
        display: block;
        height: 40px;
        background: url('/skin/tgasht.png') no-repeat center center;
        background-size: cover;
        margin-bottom: 10px;
    }
    
    .cd_ls::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 8px;
        font-size: 18px;
        font-weight: bold;
        color: #fff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
    
    .cd_ls_cnt {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px 8px;
        line-height: 1.5;
        max-height: calc(5 * (13px + 6px + 6px));
        overflow: hidden;
    }
    
    .cd_ls_cnt a {
        display: inline-block;
        padding: 4px 8px;
        background-color: #ff0000;
        color: #fff;
        border-radius: 10px;
        font-size: 12px;
        text-decoration: none;
        transition: all 0.2s ease;
        flex: 0 0 calc(6.25% - 8px);
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
        height: 24px;
    }
    
    .cd_ls_cnt a:hover {
        background-color: #c0392b;
    }
}

/* 移动端隐藏 */
@media screen and (max-width: 991px) {
    .cd_ls {
        display: none;
    }
}