/* 特色内容展示区域样式 - 全宽度背景色 */
.featured-content-section {
    padding: 110px 0;
    background: #009F71;
    /* 全宽度背景色 */
    width: 100vw;
    /* 全视口宽度 */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* 内容容器 - 受80%宽度限制 */
.featured-content-container {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    /* 内容居中 */
}

.bg-green {
    /* 这个类现在不需要设置背景色，因为背景色在父容器上 */
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1536px;
    /* 当浏览器大于1920px时的固定限制 */
    padding-right: 15px;
    padding-left: 15px;
    margin: 0 auto;
    /* 内容居中 */
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    justify-content: center;
    /* 让内容居中 */
}

/* Flex样式 */
.flex-row {
    display: flex;
    width: 100%;
    justify-content: center;
    /* 主轴居中 */
    align-items: center;
    /* 交叉轴居中 */
}

.align-items-center {
    align-items: center;
}

.half-width {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
}

/* 内容文本样式 - 左对齐 */
.text-content {
    text-align: left;
    /* 改为左对齐 */
    color: white;
    padding-right: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直居中内容 */
}

.content-title {
    color: white;
    text-align: left;
    letter-spacing: 1px;
}

.content-text {
    color: white;
    margin: 10px 0 50px 0;
    text-align: left;
    font-size: 36px;
}

.details-button {
    display: inline-block;
    background: #009F71;
    color: #ffffff;
    padding: 10px 35px;
    border-radius: 30px;
    text-decoration: none;
    margin: 0;
    align-self: flex-start;
    border: 1px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.details-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
    -webkit-transform: scale(0.2, 1);
    transform: scale(0.2, 1);
}

.details-button:hover::before {
    opacity: 1;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
}

.details-button:hover {
    color: #ffffff;
}

/* 图片容器样式 */
.image-content {
    text-align: center;
    padding-left: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    /* 图片水平居中 */
    align-items: center;
    /* 图片垂直居中 */
}

.image-content .content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    /* 图片居中 */
    margin-right: 0;
}

.no-image-placeholder {
    text-align: center;
    padding: 20px;
    background-color: #ddd;
    color: #666;
    border-radius: 10px;
}

/* 过渡效果类 */
.slide-transition {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* 确保Swiper容器正确显示 */
.swiper-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
    position: sticky;
    /* Swiper容器居中 */
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
}

/* Swiper分页器样式 - 长条形 */
.featured-content-pagination {
    text-align: center;
    margin-top: 20px;
    bottom: 50px !important;
}

.featured-content-pagination .swiper-pagination-bullet {
    width: 120px;
    /* 长条宽度 */
    height: 5px;
    /* 长条高度 */
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    /* 圆角 */
    margin: 0 5px;
    opacity: 0.7;
    transition: width 0.3s ease;
    /* 平滑过渡 */
}

.featured-content-pagination .swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
    width: 140px;
    /* 活跃项稍宽 */
}

/* 大屏幕设备限制 */
@media (min-width: 1921px) {
    .featured-content-container {
        max-width: 1536px;
        /* 超大屏幕上的固定宽度 */
        margin: 0 auto;
    }
}

/* 平板响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
    .featured-content-section {
        padding: 60px 0;
    }

    .featured-content-container {
        max-width: 90%;
    }

    .half-width {
        /* flex: 0 0 100%; */
        max-width: 100%;
        margin-bottom: 20px;
    }

    .text-content {
        padding-right: 0;
        padding-bottom: 20px;
        text-align: left;
    }

    .image-content {
        padding-left: 0;
    }

    .content-title {
        font-size: 1.3em;
        text-align: left;
    }

    .content-text {
        font-size: 0.9em;
        text-align: left;
    }

    .details-button {
        padding: 7px 14px;
        font-size: 0.85em;
        margin: 0;
        align-self: flex-start;
    }

    .swiper-pagination-bullet {
        width: 40px;
        height: 3px;
    }

    .swiper-pagination-bullet-active {
        width: 50px;
    }
}

/* 手机响应式设计 */
@media (max-width: 768px) {
    .featured-content-section {
        padding: 30px 0;
        width: 100%;
        position: static;
        margin: 0;
    }

    .featured-content-container {
        max-width: 95%;
        /* 移动端更窄一些 */
    }

    .container {
        max-width: 100%;
    }

    .half-width {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 24px 0;
        padding: 0;
    }

    .flex-row {
        flex-direction: column;
    }

    .text-content {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .image-content {
        padding-left: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .image-content .content-image {
        max-width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .content-title {
        font-size: 1.5em;
        text-align: center;
    }

    .content-text {
        text-align: center;
        font-size: 24px;
        margin: 10px 0 0 0;
    }

    .details-button {
        padding: 8px 16px;
        font-size: 0.9em;
        margin: 0;
        align-self: flex-start;
        display: none;
    }

    .swiper-pagination-bullet {
        width: 20px;
        /* 移动端稍短 */
        height: 3px;
    }

    .swiper-pagination-bullet-active {
        width: 25px;
        /* 移动端活跃项稍宽 */
    }
}