/* ============================================
   西北狼·狼眼世界 - 主页桌面端专用CSS
   版本: 1.0.0
   创建时间: 2026-04-22
   目标: 提供专业、紧凑、无溢出的主页桌面体验
============================================ */

/* ===== 主页基础容器 ===== */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* ===== 股票行情区域 ===== */
.stock-section {
    margin-bottom: 35px;
    padding: 25px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.stock-section h3 {
    font-size: 20px;
    color: #1a237e;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 新闻双栏区域 ===== */
.news-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    overflow: hidden;
}

/* ===== 区块卡片样式 ===== */
.section-card {
    padding: 25px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.section-card h3 {
    font-size: 20px;
    color: #1a237e;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 预览文章项 ===== */
.post-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-title {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.post-title a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.post-summary {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== 查看更多链接 ===== */
.view-more {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 24px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #1a237e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-more:hover {
    background: #e9ecef;
    border-color: #1a237e;
    color: #1a237e;
}

/* ===== 单列区块 ===== */
.single-section {
    margin-bottom: 30px;
    overflow: hidden;
}

/* ===== 平板适配 (768px-991px) ===== */
@media (max-width: 991px) {
    .site-content {
        padding: 20px 15px;
    }
    
    .stock-section {
        padding: 20px;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .news-row {
        gap: 20px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-summary {
        font-size: 14px;
    }
}

/* ===== 移动端适配 (≤767px) ===== */
@media (max-width: 767px) {
    .site-content {
        padding: 15px 10px;
    }
    
    .stock-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-card {
        padding: 15px;
    }
    
    .news-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .post-title {
        font-size: 15px;
    }
    
    .post-summary {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .view-more {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .single-section {
        margin-bottom: 20px;
    }
}