/* 供应商弹窗样式 */
.supplier-modal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.supplier-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.supplier-modal .modal-body {
    padding: 1.5rem;
}

.supplier-modal .modal-title {
    font-weight: 600;
    margin-bottom: 0;
}

/* 基本信息样式 */
.supplier-modal dt {
    color: #6c757d;
    font-weight: 500;
}

.supplier-modal dd {
    margin-bottom: 0.5rem;
}

.supplier-modal h6 {
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.supplier-modal h6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--bs-primary);
    border-radius: 2px;
}

/* 联系方式样式 */
.supplier-modal a {
    color: var(--bs-primary);
    transition: color 0.3s ease;
}

.supplier-modal a:hover {
    color: var(--bs-primary-dark);
    text-decoration: none;
}

/* 企业相册样式 */
.supplier-modal .gallery-item {
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.supplier-modal .gallery-item img {
    transition: transform 0.3s ease;
}

.supplier-modal .gallery-item:hover img {
    transform: scale(1.05);
}

/* 公司简介样式 */
.supplier-modal .description {
    line-height: 1.6;
    color: #495057;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .supplier-modal .modal-dialog {
        margin: 0.5rem;
    }

    .supplier-modal .modal-body {
        padding: 1rem;
    }

    .supplier-modal dt,
    .supplier-modal dd {
        padding: 0.25rem 0;
    }

    .supplier-modal .gallery-item {
        margin-bottom: 1rem;
    }
}

/* 动画效果 */
.supplier-modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.3s ease-out;
}

.supplier-modal.show .modal-dialog {
    transform: none;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .supplier-modal .modal-content {
        background-color: #2b3035;
        color: #e9ecef;
    }

    .supplier-modal dt {
        color: #adb5bd;
    }

    .supplier-modal .description {
        color: #dee2e6;
    }

    .supplier-modal .bg-light {
        background-color: #343a40 !important;
    }
}