/*
Theme Name: 科技感流水线企业主题（修复新闻显示版）
Theme URI: https://example.com/pipeline-tech
Description: 修复新闻显示问题，优化产品展示
Author: 企业主题
Author URI: https://example.com
Version: 4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pipeline-tech
Tags: 企业, 流水线, 科技感, 产品展示, 响应式
*/

/* 基础样式重置（彻底清除白边） */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* 防止横向滚动白边 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #0066cc;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航菜单样式 */
.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 15px;
}

.main-navigation a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ccff;
    transition: width 0.3s ease;
}

.main-navigation a:hover:after {
    width: 100%;
}

/* 移动端菜单 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        color: #fff;
    }
    
    .main-navigation ul {
        display: none !important;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background: #0a192f;
        padding: 25px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-navigation.active ul {
        display: flex !important;
    }
}

/* 模块通用样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #0a192f;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0066cc;
}

/* 产品和新闻卡片样式 */
.product-item, .news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover, .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 25, 47, 0.15) !important;
}

/* 产品图片悬停效果 */
.product-item img, .news-item img {
    transition: transform 0.5s ease;
}

.product-item:hover img, .news-item:hover img {
    transform: scale(1.05);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .slider {
        height: 400px !important;
    }
    
    .slider h2 {
        font-size: 28px !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    /* 移动端产品图高度 */
    .product-item div:first-child {
        height: 260px !important;
    }
    
    /* 移动端网格布局 */
    .products-grid, .news-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* 页脚样式 */
.site-footer {
    background: #05101f;
    color: #a8b2d1;
    padding: 60px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #0066cc;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a:hover {
    color: #00ccff;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #64748b;
    border-top: 1px solid rgba(255,255,255,0.05);
}