/* 只添加弹窗相关样式，其他样式保持不变 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: rgba(20, 20, 35, 0.95);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-image {
    width: 100%;
    height: 60vh;
    max-height: 60vh;
    object-fit: contain;
}

.modal-details {
    padding: 1.5rem;
    color: #fff;
    overflow-y: auto;
    max-height: 30vh;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.modal-medium {
    font-size: 1rem;
    color: #ff7b00;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 123, 0, 0.7);
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .modal-image {
        height: 50vh;
        max-height: 50vh;
    }

    .modal-details {
        max-height: 40vh;
    }
}