﻿/* 主要内容区域 */
.main-content {
    width: 1200px;
    margin: 1rem auto 0; /* 头部高度48px + 导航条高度50px + 间隙55px = 153px/16 = 9.5625rem */
    padding: 1rem 0;
    display: flex;
}

/* 左边内容区域 - 修改为公司详细内容 */
.content-left {
    width: 58.125rem; /* 930px */
    margin-right: 0.625rem; /* 10px */
    background-color: white;
    padding: 1.25rem;
    border: 1px solid #e8e8e8;
    overflow:hidden;
}

/* 公司详细内容样式 */
.company-container {
    width: 100%;
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}

.company-logo {
    width: 8rem;
    height: 8rem;
    flex-shrink: 0;
    border: 1px solid #eee;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
}

    .company-logo img {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

.company-title {
    flex: 1;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3687d9;
    margin-bottom: 0.5rem;
}

.company-vip {
    display: inline-block;
    font-size: 0.75rem;
    color: #fff;
    background-color: #ff9900;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    margin-right: 0.5rem;
}

    .company-vip.diamond {
        background-color: #3687d9;
    }
.shop-link {
    display: inline-block;
    background-color: #f60;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

    .shop-link:hover {
        background-color: #e55c00;
        color:#fff;
    }
.company-products {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.company-industry {
    font-size: 0.875rem;
    color: #999;
}

/* 公司信息区块 */
.company-info-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    font-size: 0.875rem;
    line-height: 1.6;
}

.info-label {
    width: 6rem;
    color: #666;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #333;
}

    .info-value a {
        color: #3687d9;
        text-decoration: none;
    }

        .info-value a:hover {
            text-decoration: underline;
        }

/* 公司产品列表 */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    width: 58.125rem; /* 930px */
}

.product-item {
    border: 1px solid #e8e8e8;
    padding: 0.75rem;
    transition: all 0.3s;
    max-width: 16rem;
}

    .product-item:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

.product-image {
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    background-color: #f9f9f9;
}

    .product-image img {
        max-width: 100%;
        max-height: 100%;
    }

.product-name {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    

}

    .product-name a {
        color: #333;
        text-decoration: none;
    }

        .product-name a:hover {
            color: #3687d9;
        }

.product-price {
    font-size: 0.875rem;
    color: #f60;
    font-weight: bold;
}

/* 友情链接 */
.friend-links {
    border: 1px solid #e8e8e8;
    padding: 0.625rem;
    margin-top: 1.25rem;
}

.friend-links-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0.625rem;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
}

.friend-links-item {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

    .friend-links-item a {
        color: #3687d9;
        text-decoration: none;
        font-size: 0.875rem;
    }

        .friend-links-item a:hover {
            text-decoration: underline;
        }

/* 右边内容区域 */
.content-right {
    width: 16.25rem; /* 260px */
}

.right-section {
    border: 1px solid #e8e8e8;
    margin-bottom: 0.625rem; /* 10px */
    padding: 0.625rem; /* 10px */
}

.right-section-title {
    font-size: 1rem; /* 16px */
    font-weight: bold;
    color: #3687d9;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0.5rem;
}

    .right-section-title a {
        color: inherit;
        text-decoration: none;
    }

        .right-section-title a:hover {
            text-decoration: underline;
        }

.right-section-list {
    list-style: none;
}

.right-section-item {
    padding: 0.25rem 0;
    font-size: 0.875rem; /* 14px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .right-section-item a {
        color: #333;
        text-decoration: none;
    }

        .right-section-item a:hover {
            color: #3687d9;
            text-decoration: underline;
        }



/* 响应式设计 */
@media (max-width: 1200px) {
    body {
        min-width: auto;
    }

    .header-inner, .nav-container, .main-content, .footer-container {
        width: 100%;
        padding: 0 0.9375rem; /* 15px */
    }

    .content-left {
        width: calc(100% - 16.875rem); /* 减去右边栏宽度+间隙 */
    }
}

@media (max-width: 992px) {
    .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
    }

        .nav-menu::-webkit-scrollbar {
            display: none;
        }

    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-logo {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .header-outer {
        height: auto;
        padding: 0.5rem 0;
        position: relative;
    }

    .nav-bar {
        margin-top: 0;
    }

    .header-left, .header-right {
        width: 100%;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.625rem;
    }

    .header-left {
        margin-bottom: 0.625rem;
        justify-content: center;
    }

        .header-left a {
            margin: 0 0.625rem 0.3125rem;
        }

    .header-right {
        justify-content: center;
    }

    .search-input {
        width: 12.5rem;
    }

    .nav-logo {
        display: none;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-around;
        margin-left: 0;
    }

        .nav-menu a {
            padding: 0 0.5rem;
            font-size: 0.875rem;
        }

    .main-content {
        flex-direction: column;
        margin-top: 0;
    }

    .content-left, .content-right {
        width: 100%;
        margin-right: 0;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-link {
        margin: 0 0.5rem 0.5rem;
    }

    .footer-qrcodes {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .search-form {
        width: 100%;
    }

    .search-input {
        width: 70%;
    }

    .search-button {
        width: 30%;
    }

    .header-left a span {
        display: none;
    }

    .header-left a i {
        margin-right: 0;
        font-size: 1rem;
    }

    .nav-menu a span {
        display: none;
    }

    .nav-menu a:before {
        content: attr(data-short);
    }

    .footer-info, .footer-cert {
        text-align: left;
    }
}
