/* 行业企业页面专用样式 */

/* 免费入住横幅 */
.free-listing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
}

.listing-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.listing-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.listing-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.listing-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.listing-benefits span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.listing-action .btn {
    font-size: 18px;
    padding: 15px 30px;
    min-width: 150px;
}

/* 企业筛选 */
.company-filters {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.filter-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: white;
    color: #495057;
    font-size: 14px;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* 企业网格 */
.companies-grid-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 企业卡片 */
.company-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.company-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.company-logo {
    flex-shrink: 0;
}

.company-logo img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #f8f9fa;
}

.company-basic h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.company-location,
.company-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.company-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-description p {
    color: #495057;
    line-height: 1.6;
    font-size: 15px;
}

.company-products h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.company-contact {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 50px;
}

.contact-value {
    color: #495057;
    font-size: 14px;
}

/* 加载更多 */
.load-more-companies {
    text-align: center;
}

.load-more-companies .btn {
    padding: 12px 30px;
    font-size: 16px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

/* 表单样式 */
.listing-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions .btn {
    padding: 12px 25px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .listing-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .companies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 20px;
    }

    .listing-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .listing-content h2 {
        font-size: 24px;
    }

    .listing-benefits {
        justify-content: center;
    }

    .company-card {
        padding: 20px;
    }

    .company-basic h3 {
        font-size: 18px;
    }
}

/* 筛选动画效果 */
.company-card.hidden {
    display: none;
}

.company-card.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}