/* modal.css */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 加深背景透明度 */
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px); /* 添加背景模糊效果 */
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    font-weight: 300;
    color: #8e8e93;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #ff3b30;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

#modal-body {
    padding: 20px 0;
}

.modal-content .detail-content {
    line-height: 1.7;
    color: #333;
}

.modal-content .detail-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-content .detail-content h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #007aff;
}

.modal-content .detail-content p {
    margin-bottom: 15px;
    font-size: 17px;
}

.modal-content .detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}

.modal-content .detail-content th, 
.modal-content .detail-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.modal-content .detail-content th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #5856d6;
}

.modal-content .detail-content .property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.modal-content .detail-content .property-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #34c759;
}

.modal-content .detail-content .property-item strong {
    display: block;
    margin-bottom: 8px;
    color: #1d1d1f;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 25px 20px;
    }
    
    .modal-content .detail-content .property-list {
        grid-template-columns: 1fr;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-content .detail-content h2 {
        font-size: 24px;
    }
    
    .modal-content .detail-content h3 {
        font-size: 20px;
    }
}