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

/* 确保轮播图背景图片正确显示 */
.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.info-section .info-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

@media (min-width: 992px) {
    .info_section.info-section .info-section__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.info-section__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.info-section__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.26);
    border-color: rgba(255, 255, 255, 0.18);
}

.info-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-section__list li {
    margin: 0;
}

.info-section__list a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-section__list a::before {
    content: "›";
    font-size: 16px;
    color: rgba(0, 173, 181, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
}

.info-section__list a:hover {
    color: #00adb5;
    transform: translateX(3px);
}

.info-section__list a:hover::before {
    color: #00adb5;
    transform: translateX(2px);
}

.info-section__list--contact {
    gap: 10px;
}

.info-section__list--contact li {
    line-height: 1.6;
    white-space: nowrap;
}

.info-section__list--contact a {
    font-size: 12px;
    display: inline-block;
    white-space: nowrap;
    padding-left: 0;
}

.info-section__list--contact a::before {
    content: none;
}

@media (max-width: 1200px) {
    .info-section__card {
        padding: 24px 22px;
    }

    .info-section__heading {
        font-size: 15px;
    }

    .info-section__list a {
        font-size: 12px;
    }

    .info-section__list--contact li,
    .info-section__list--contact a {
        white-space: normal;
    }

    .info-section__copyright {
        font-size: 9px;
    }
}

.info-section__legal-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.info-section__legal-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-section__legal-links a:hover {
    color: #00adb5;
}

.info-section__legal-links span {
    color: rgba(255, 255, 255, 0.45);
}

.info-section__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.info-section__links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

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

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

.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;
    }

    .info_section.info-section .info-section__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-section__card {
        padding: 24px 22px;
        border-radius: 16px;
    }
    
    .info-section__copyright {
        white-space: normal;
    }
}

