/* 模板样式修复和优化 */

/* 确保轮播图背景图片正确显示 */
.slider_section {
    position: relative;
    min-height: 600px;
}

.slider_bg_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg_img_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg_img_box img.slider-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    display: block;
}

.bg_img_box img.slider-bg-img.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
}

.bg_img_box img.slider-bg-img:not(.active) {
    opacity: 0;
    z-index: 1;
    visibility: hidden;
}

/* 确保轮播内容在图片上方 */
#customCarousel {
    position: relative;
    z-index: 3;
}

/* 修复字体加载问题 */
@font-face {
    font-family: 'Octin Sports';
    src: url('/static/template/fonts/octin_sports_rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 确保响应式设计 */
@media (max-width: 768px) {
    .slider_section {
        height: 500px !important;
    }
    
    .bg_img_box img {
        height: 100%;
    }
}

/* 修复可能的样式冲突 */
body {
    overflow-x: hidden !important;
}

/* 确保header不遮挡内容 */
.header_section {
    position: relative;
    z-index: 1000;
}

/* Info section refinements */
.info_section.info-section {
    font-size: 14px;
    color: #ffffff;
    background-color: #303841;
    padding: 60px 0;
}

.info_section.info-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info_section.info-section a:hover,
.info_section.info-section a:focus {
    color: #00adb5;
    text-decoration: none;
}

.info-section__tag,
.info-section__values {
    font-weight: 600;
    color: #00adb5;
    letter-spacing: 2px;
}

.info-section__title {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
}

.info-section__summary {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.info-section__values {
    font-size: 13px;
}

.info-section__heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.info-section__list li {
    margin-bottom: 8px;
}

.info-section__contact-item {
    font-size: 14px;
}

.info-section__links {
    font-size: 13px;
}

.info-section__links span {
    color: rgba(255, 255, 255, 0.6);
}

.info-section__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.info-section__divider {
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .info_section.info-section {
        padding: 40px 0;
        font-size: 13px;
    }

    .info-section__title {
        font-size: 24px;
    }

    .info-section__summary {
        font-size: 14px;
    }
}

