/* Details Container Styles
   ========================================================================== */
a {
    color: #1f72ce;
}
   
.bigTitle {
    color: #030933;
    font-size: 36px;
}

.smallTitle {
    color: #030933;
    font-size: 24px;
}

.p {
    font-size: 15px;
}

.m24 {
    margin-bottom: 24px;
}

.details_container {
    color: #030933;
    max-width: 1026px;
    margin: 0 auto;
    padding: 100px 20px 20px 20px;
    line-height: 1.6;
}

.details_container h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.details_container h3 {
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.details_container p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.details_container .text-align-center img {
    display: block;
    margin: 2rem auto;
}

.details_container ul.list-style-disc {
    font-size: 16px;
    list-style-type: disc;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.details_container ul.list-style-disc li {
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.details_container ul.list-style-disc li::marker {
    color: #666;
}

/* Details Container 增强样式 */
.details_container .text-align-center {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}


.details_container h3 {
    position: relative;
}

.detail_text {
    max-width: 48rem;
    margin: 0 auto;
}

.bigImg {
    margin: 0 auto;
}

.imgBox {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.imgBox img {
    width: 27%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imgBox img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 图片预览弹窗 */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.image-preview-overlay.active {
    display: flex;
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.image-preview-content img {
    max-width: calc(100% - 160px);
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.image-preview-close:hover {
    opacity: 0.7;
}

/* 导航箭头 */
.image-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.image-preview-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.image-preview-prev {
    left: 20px;
}

.image-preview-next {
    right: 20px;
}

/* 图片计数器 */
.image-preview-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .details_container {
        padding: 2rem 1rem;
    }

    .details_container h2 {
        font-size: 2rem;
    }

    .details_container h3 {
        font-size: 1.5rem;
    }

    .details_container p,
    .details_container ul.list-style-disc li {
        font-size: 1rem;
    }

    .details_container img {
        margin: 1.5rem 0;
    }

    .imgBox img {
        width: 48%;
    }

    .image-preview-content img {
        max-width: calc(100% - 120px);
    }

    .image-preview-nav {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        padding: 0;
    }

    .image-preview-prev {
        left: 10px;
    }

    .image-preview-next {
        right: 10px;
    }
}

@media (max-width: 480px) {

    .details_container {
        padding: 6rem 1rem;
    }

    .details_container h2 {
        font-size: 1.8rem;
    }

    .details_container h3 {
        font-size: 1.3rem;
    }

    .imgBox {
        flex-direction: column;
    }

    .imgBox img {
        width: 100%;
    }

    .image-preview-content {
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }

    .image-preview-content img {
        max-width: 100%;
        max-height: calc(100% - 140px);
    }

    .image-preview-nav {
        position: fixed;
        bottom: 120px;
        top: auto;
        transform: none;
        font-size: 1.2rem;
        width: 45px;
        height: 45px;
        padding: 0;
    }

    .image-preview-nav:hover {
        transform: scale(1.1);
    }

    .image-preview-prev {
        left: 20px;
        right: auto;
    }

    .image-preview-next {
        right: 20px;
        left: auto;
    }

    .image-preview-counter {
        position: fixed;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }
}