/* 企业目录页面样式 */

/* 页面头部 */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 搜索筛选区域 */
.search-filter {
    background: white;
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #2980b9;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: transparent;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.filter-tab.active,
.filter-tab:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.region-filter select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* 企业列表 */
.companies-list {
    padding: 60px 0;
    background: #f8f9fa;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.company-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.company-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.company-logo {
    flex-shrink: 0;
}

.company-logo img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.company-info {
    flex: 1;
}

.company-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

.company-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.company-type {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.company-region {
    color: #7f8c8d;
    font-size: 14px;
}

.company-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #f39c12;
    font-size: 16px;
}

.rating-text {
    color: #7f8c8d;
    font-size: 14px;
}

.company-content {
    margin-bottom: 25px;
}

.company-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.company-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid #ddd;
}

.company-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.contact-icon {
    font-size: 16px;
}

.company-actions {
    display: flex;
    gap: 15px;
}

.company-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
}

/* 加载更多 */
.load-more {
    text-align: center;
}

.load-more .btn {
    padding: 15px 40px;
    font-size: 16px;
}

/* 免费入驻 */
.join-us {
    padding: 80px 0;
    background: white;
}

.join-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.join-text h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.join-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.join-benefits {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-icon {
    font-size: 32px;
    margin-top: 5px;
}

.benefit-content h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 20px;
}

.benefit-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

.join-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.join-form h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

.join-form .form-group {
    margin-bottom: 20px;
}

.join-form input,
.join-form select,
.join-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.join-form textarea {
    resize: vertical;
    min-height: 100px;
}

.join-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .join-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .company-header {
        flex-direction: column;
        text-align: center;
    }
    
    .company-meta {
        justify-content: center;
    }
    
    .company-actions {
        flex-direction: column;
    }
    
    .search-filter {
        position: static;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .company-card {
        padding: 20px;
    }
    
    .join-form {
        padding: 30px 20px;
    }
    
    .filter-tabs {
        gap: 5px;
    }
    
    .filter-tab {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-card {
    animation: fadeInUp 0.6s ease forwards;
}

.company-card:nth-child(even) {
    animation-delay: 0.1s;
}

.company-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.6;
}