﻿/* 主要内容区域 */
.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 */
}

/* 厂商动态列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-item {
    display: flex;
    background-color: white;
    border: 1px solid #e8e8e8;
    padding: 1.25rem;
    gap: 1.25rem;
}

.news-image {
    width: 12rem; /* 192px */
    height: 8rem;
    flex-shrink: 0;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .news-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

    .news-title a {
        color: #3687d9;
        text-decoration: none;
        font-weight: bold;
    }

        .news-title a:hover {
            text-decoration: underline;
        }

.news-desc {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-company {
    font-size: 0.875rem;
    color: #999;
}

    .news-company a {
        color: #3687d9;
        text-decoration: none;
    }

        .news-company a:hover {
            text-decoration: underline;
        }

.news-date {
    font-size: 0.75rem;
    color: #999;
}

/* 分类标题 */
.category-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 1.25rem;
}

/* 友情链接 */
.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: 768px) {
    .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
    }

        .nav-menu::-webkit-scrollbar {
            display: none;
        }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: auto;
        max-height: 12rem;
    }
}

@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;
    }

    .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;
    }
}