/* ===== 详细信息模态框样式 ===== */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.detail-modal.show {
    opacity: 1;
    visibility: visible;
}

.detail-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.detail-modal.show .detail-modal-content {
    transform: scale(1) translateY(0);
}

.detail-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.detail-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.detail-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.detail-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    padding-right: 40px;
}

.detail-modal-subtitle {
    margin: 8px 0 0;
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.detail-modal-body {
    padding: 24px;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-icon {
    font-size: 20px;
    color: #007bff;
}

/* 图片展示区域 */
.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
/* 如果图片模块是最后一个区块，去掉底部间距，避免模态底部出现空白 */
.detail-section:last-child .detail-images {
    margin-bottom: 0;
}

.detail-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-image-placeholder {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

/* 基本信息 */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-info-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.detail-info-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

/* 评分显示 */
.detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-rating-score {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.detail-rating-stars {
    font-size: 20px;
    color: #ffc107;
}

.detail-rating-text {
    font-size: 14px;
    color: #6c757d;
    margin-left: 4px;
}

/* 联系方式 */
.detail-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.detail-contact-icon {
    font-size: 18px;
    color: #007bff;
    width: 24px;
    text-align: center;
}

.detail-contact-info {
    flex: 1;
}

.detail-contact-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 2px;
}

.detail-contact-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 描述文本 */
.detail-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .detail-modal-header {
        padding: 20px 20px 12px;
    }
    
    .detail-modal-body {
        padding: 20px;
    }
    
    .detail-modal-title {
        font-size: 20px;
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .detail-images {
        grid-template-columns: 1fr;
    }
    
    .detail-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
        max-height: 100vh;
    }
}