/* 企业信息页面样式 */

/* 企业检索区样式 */
.search-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-box {
    margin-top: 15px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-buttons {
    display: flex;
    gap: 10px;
    align-self: flex-end;
    margin-top: 24px;
}

.btn-primary {
    background-color: #4a6bdf;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3a56b4;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

/* 企业展示区样式 */
.enterprise-showcase h2 {
    margin-bottom: 20px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-group span {
    margin-right: 10px;
    color: #666;
}

.filter-group a {
    margin-right: 15px;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 15px;
    transition: background-color 0.3s;
}

.filter-group a.active {
    background-color: #4a6bdf;
    color: white;
}

.filter-group a:hover:not(.active) {
    background-color: #f0f0f0;
}

.view-toggle button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 5px;
    border-radius: 4px;
}

.view-toggle button.active {
    background-color: #4a6bdf;
    color: white;
    border-color: #4a6bdf;
}

/* 企业列表样式 */
.enterprise-list {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* 网格视图样式 */
.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* 列表视图样式 */
.list-view {
    grid-template-columns: 1fr;
}

.list-view .enterprise-card {
    display: flex;
    gap: 20px;
}

.list-view .enterprise-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.list-view .enterprise-info {
    flex: 1;
}

/* 企业卡片样式 */
.enterprise-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.enterprise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.enterprise-logo {
    height: 150px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.enterprise-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.enterprise-info {
    padding: 20px;
}

.enterprise-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.enterprise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.tag.type {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tag.scale {
    background-color: #e8f5e9;
    color: #388e3c;
}

.tag.cert {
    background-color: #fff8e1;
    color: #ff8f00;
}

.enterprise-brief {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enterprise-contact {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.enterprise-contact p {
    margin: 5px 0;
}

.enterprise-contact i {
    margin-right: 5px;
    color: #4a6bdf;
}

.enterprise-actions {
    display: flex;
    gap: 10px;
}

.btn-outline {
    border: 1px solid #4a6bdf;
    color: #4a6bdf;
    background: none;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    flex: 1;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
    background-color: #4a6bdf;
    color: white;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a, .pagination span {
    color: #333;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover:not(.disabled) {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #4a6bdf;
    color: white;
}

.pagination a.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .prev, .pagination .next {
    font-weight: bold;
}

/* 企业认证介绍样式已移除 */

/* 响应式设计 */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-buttons {
        margin-top: 10px;
    }
    
    .grid-view {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .list-view .enterprise-card {
        flex-direction: column;
    }
    
    .list-view .enterprise-logo {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
} 