/* 模块通用样式 - 响应式紧凑型设计 */

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    margin-bottom: 2px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    min-width: 0;
}

/* 推荐区域 */
.recommend-section {
    margin-bottom: 2px;
}

.recommend-section .module-header {
    margin-bottom: 2px;
}

/* 分类区域 */
.category-section {
    margin-bottom: 2px;
}

.category-section .module-header {
    margin-bottom: 2px;
}

/* 品牌网格 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2px;
}

.brand-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.brand-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-item img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

/* 求购网格 */
.buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
}

.buy-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px;
    transition: box-shadow 0.2s;
}

.buy-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.buy-title {
    margin-bottom: 2px;
}

.buy-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
}

.buy-title a:hover {
    color: #3498db;
}

.buy-price {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
}

.buy-meta {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 2px;
}

/* 企业网格 */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2px;
}

.company-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.company-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 2px;
}

.company-name {
    font-size: 12px;
    color: #2c3e50;
    margin-bottom: 2px;
}

.company-name a {
    color: inherit;
    text-decoration: none;
}

.company-name a:hover {
    color: #3498db;
}

/* 行业列表 */
.industry-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2px;
}

.industry-item {
    padding: 2px 4px;
    background: #f8f9fa;
    border-radius: 2px;
    text-align: center;
}

.industry-item a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 12px;
}

.industry-item a:hover {
    color: #3498db;
}

/* 地区列表 */
.area-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2px;
}

.area-list li {
    padding: 2px 4px;
    background: #f8f9fa;
    border-radius: 2px;
    text-align: center;
}

.area-list a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 12px;
}

.area-list a:hover {
    color: #3498db;
}

/* 分类导航 */
.category-nav {
    list-style: none;
}

.category-nav li {
    margin-bottom: 2px;
}

.category-nav li.active {
    background: #3498db;
    border-radius: 2px;
}

.category-nav li.active a {
    color: #fff;
}

.category-nav a {
    display: block;
    padding: 2px 4px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 12px;
    border-radius: 2px;
    transition: background 0.2s;
}

.category-nav a:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* 文章样式 */
.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    line-height: 1.3;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
    font-size: 12px;
    color: #7f8c8d;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.info-item i {
    font-size: 14px;
}

.article-intro {
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 13px;
    color: #2c3e50;
}

.article-content {
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 2px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2px 0;
}

.article-nav {
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.article-nav ul {
    list-style: none;
    margin: 2px 0;
}

.article-nav li {
    margin-bottom: 2px;
    font-size: 12px;
}

.article-tags {
    margin-bottom: 2px;
}

.article-tags a {
    display: inline-block;
    padding: 2px 6px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    font-size: 11px;
    margin: 1px;
}

.article-tags a:hover {
    background: #2980b9;
}

.article-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
    padding: 2px 0;
    border-top: 1px solid #e0e0e0;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    color: #7f8c8d;
    text-decoration: none;
    transition: background 0.2s;
}

.tool-item:hover {
    background: #e9ecef;
    color: #495057;
}

.tool-item i {
    font-size: 14px;
}

/* 相关区域 */
.related-section {
    margin-top: 2px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
}

.related-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px;
    transition: box-shadow 0.2s;
}

.related-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-title {
    margin-bottom: 2px;
}

.related-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
}

.related-title a:hover {
    color: #3498db;
}

.related-meta {
    font-size: 11px;
    color: #7f8c8d;
}

/* 投票区域 */
.vote-section {
    margin: 2px 0;
    padding: 2px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 筛选区域 */
.filter-section {
    margin-bottom: 2px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    padding: 2px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 内容列表 */
.content-list {
    margin-bottom: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .brand-grid,
    .buy-grid,
    .company-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .industry-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .area-list ul {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .article-info {
        flex-direction: column;
        gap: 2px;
    }
    
    .article-tools {
        flex-direction: column;
        gap: 2px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-grid,
    .buy-grid,
    .company-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-list {
        grid-template-columns: 1fr;
    }
    
    .area-list ul {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .tool-item {
        width: 100%;
        justify-content: center;
    }
} 