﻿/* 
 * 云黄页公司详情页样式表 (company.css) - 全面优化版
 * 结合公共样式和公司详情页特定样式
 */

/* 容器 */
.container { 
    width: 1560px; 
    max-width: 100%;
    margin: 0 auto; 
    box-sizing: border-box; 
    padding: 0 20px;
}

/* 导航栏 */
.header-nav { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #ff6a00; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
}
.nav-links { 
    font-size: 14px; 
    color: #495057; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a { 

    text-decoration: none; 
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}
.nav-links a:hover { 
    color: #e62a2a; 
    background-color: rgba(0, 123, 255, 0.1);
    text-decoration: none;
}
.nav-register { }
.btn { 
    display: inline-block; 
    padding: 8px 16px; 
    font-size: 14px; 
    font-weight: 500; 
    text-align: center; 
    text-decoration: none; 
    white-space: nowrap; 
    vertical-align: middle; 
    cursor: pointer; 
    border: 1px solid transparent; 
    border-radius: 6px; 
    background: linear-gradient(135deg, #e62a2a 0%, #d11120 100%);
    color: white; 
    box-shadow: 0 2px 4px rgba(230, 42, 42, 0.2);
    transition: all 0.3s ease;
}
.btn:hover { 
    background: linear-gradient(135deg, #d11120 0%, #b70f1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 42, 42, 0.3);
}

/* 公司卡片 */
.company-card { 
    display: flex; 
    flex-wrap: wrap; 
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #dee2e6; 
    border-top: 3px solid #ff6a00; 
    padding: 25px; 
    margin: 20px 0; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.company-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.company-c1 { 
    flex: 1; 
    min-width: 0; 
    padding-right: 30px; 
}
.company-c2 { 
    flex: 0 0 150px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 公司头部 */
.company-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 20px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #e9ecef; 
}
.company-name { 
    flex: 1; 
}
.company-name h1 { 
    margin: 0 0 8px 0; 
    font-size: 1.8rem; 
    color: #212529; 
    font-weight: 700;
    letter-spacing: 0.5px;
}
.company-url { 
    color: #6c757d; 
    font-size: 0.9rem; 
    word-wrap: break-word; 
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}
.qr-section { 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
#sjd { 
    margin: 0 auto 8px; 
    width: 110px; 
    height: 110px; 
    background-color: white; 
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.qr-section a { 
    font-size: 0.85rem; 
    color: #007bff; 
    text-decoration: none; 
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.qr-section a:hover { 
    background-color: #e9f7fe;
    color: #e62a2a;
}

/* 联系信息 */
/* 优化后的 contact-info 样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 60px; /* 统一最小高度，避免错位 */
}

.contact-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    white-space: nowrap;
}

.contact-value {
    color: #333;
    line-height: 1.5;
}

/* 移动端：堆叠为单列 */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    .contact-item {
        min-height: auto;
    }
}

/* 主营产品 */
.primary-products { 
    margin: 15px 0; 
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ff6a00;
}
.primary-products strong { 
    margin-right: 8px; 
    color: #333;
    font-size: 1.1rem;
}
.keys_a { 
    display: inline-block; 
    padding: 5px 12px; 
    margin: 0 5px 5px 0; 
    background-color: #ffffff; 
    color: #007bff; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 0.875rem; 
    border: 1px solid #ced4da; 
    transition: all 0.3s ease;
}
.keys_a:hover { 
    background-color: #007bff; 
    color: white; 
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* 资质说明 */
.zyitem { 
    margin: 15px 0; 
    padding: 15px; 
    background-color: #fff3cd; 
    border-left: 3px solid #ffc107; 
    border-radius: 6px;
}
.zysm { 
    margin: 0; 
    color: #856404; 
    font-style: normal;
    line-height: 1.6;
}

/* 右侧栏按钮和标签 */
.visit-website-btn { 
    display: block; 
    width: 100%; 
    padding: 12px; 
    text-align: center; 
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); 
    color: white; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.3);
}
.visit-website-btn:hover { 
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%); 
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 123, 255, 0.4);
}
.badge-vip { 
    padding: 8px; 
    background-color: #fff3cd; 
    color: #856404; 
    border: 1px solid #ffeaa7; 
    border-radius: 6px; 
    text-align: center; 
    font-size: 0.875rem; 
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-free { 
    padding: 8px; 
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
    border-radius: 6px; 
    text-align: center; 
    font-size: 0.875rem; 
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 标题 */
.section-title { 
    font-size: 1.25rem; 
    font-weight: bold; 
    color: #343a40; 
    margin: 25px 0 15px 0; 
    padding-bottom: 8px; 
    border-bottom: 2px solid #007bff; 
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ff6a00;
}

/* 产品网格 */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
}
.product-box { 
    text-align: center; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.pimg { 
    display: block; 
    overflow: hidden;
}
.product-image { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}
.product-box:hover .product-image {
    transform: scale(1.05);
}
.product-name { 
    display: block; 
    padding: 10px; 
    color: #495057; 
    text-decoration: none; 
    font-weight: 500;
}
.product-name:hover { 
    color: #e62a2a; 
}

/* 新闻列表 */
.news-list { }
.news-item { 
    display: flex; 
    margin-bottom: 20px; 
    padding: 15px; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    transition: box-shadow 0.3s ease;
}
.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.news-image-box { 
    flex: 0 0 120px; 
    margin-right: 15px; 
}
.news-image { 
    width: 100%; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 4px;
}
.news-content { 
    flex: 1; 
}
.news-title { 
    margin: 0 0 8px 0; 
}
.news-title a { 
    color: #007bff; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.news-title a:hover { 
    color: #e62a2a; 
    text-decoration: underline; 
}
.news_des { 
    color: #6c757d; 
    font-size: 0.875rem; 
    margin-bottom: 8px; 
    line-height: 1.5;
}
.news_meta { 
    font-size: 0.75rem; 
    color: #6c757d; 
}

/* 同行业企业列表 */
.companies-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 15px; 
    margin-top: 20px;
}
.company-link-item { 
    padding: 10px; 
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.company-link-item:hover {
    border-color: #007bff;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}
.vip-badge { 
    color: #ffc107; 
    font-weight: bold; 
    margin-right: 5px; 
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 1200px) { 
    .container { 
        width: 100%; 
        padding: 0 15px; 
    } 
    .company-card { 
        flex-direction: column; 
    } 
    .company-c1 { 
        padding-right: 0; 
        margin-bottom: 20px;
    } 
    .company-c2 { 
        flex-basis: auto; 
        margin-top: 15px; 
        align-items: stretch;
    } 
    .contact-info { 
        grid-template-columns: 1fr; 
    } 
    .products-grid { 
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    } 
    .news-item { 
        flex-direction: column; 
    } 
    .news-image-box { 
        flex: 0 0 auto; 
        margin-right: 0; 
        margin-bottom: 10px; 
    } 
    .companies-list { 
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    } 
}

@media (max-width: 768px) { 
    .container { 
        padding: 0 10px; 
    } 
    .company-header { 
        flex-direction: column; 
        align-items: stretch; 
    } 
    .qr-section { 
        margin-top: 15px; 
        align-items: flex-start;
    } 
    .company-name h1 { 
        font-size: 1.4rem; 
    } 
    .products-grid { 
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    } 
    .news-item { 
        padding: 10px; 
    } 
    .news-image-box { 
        flex: 0 0 auto; 
        margin-bottom: 10px; 
    } 
    .news-image { 
        height: 100px; 
    } 
    .companies-list { 
        grid-template-columns: 1fr; 
    } 
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .contact-label {
        margin-right: 0;
    }
}