/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimSun', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

a:hover {
    color: #1e50a2;
}

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

/* 头部样式 */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: auto;
}

.main-nav {
    flex: 1;
    margin-left: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item.active a,
.nav-item a:hover {
    background: #1e50a2;
    color: #fff;
}

/* 轮播图样式 */
.banner-section {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.banner-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slideshow {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播控制按钮 */
.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.prev-btn,
.next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
    pointer-events: all;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 轮播指示器 */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #fff;
}

/* 产品分类区域 */
.products-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 36px;
    font-weight: bold;
    color: #1e50a2;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-item {
    text-align: center;
    padding: 20px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: #1e50a2;
    box-shadow: 0 5px 15px rgba(30, 80, 162, 0.1);
}

.product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.product-link i {
    font-size: 24px;
    color: #1e50a2;
    margin-bottom: 5px;
}

.product-link span {
    font-size: 14px;
    font-weight: 500;
}

/* 品牌展示区域 */
.brands-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brands-section .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.brands-section .section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-item {
    text-align: center;
    padding: 15px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    background: #f8f9fa;
    border-color: #1e50a2;
}

.brand-item a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.brand-item:hover a {
    color: #1e50a2;
}

/* 关于我们区域 */
.about-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-section .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    text-align: center;
}

.company-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 新闻资讯区域 */
.news-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-section .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.news-section .section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.news-date .date {
    font-size: 16px;
    font-weight: bold;
    color: #1e50a2;
}

.news-date .year {
    font-size: 12px;
    color: #666;
}

.news-content {
    flex: 1;
}

.news-title {
    margin-bottom: 10px;
}

.news-title a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.news-title a:hover {
    color: #1e50a2;
}

.news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 联系我们区域 */
.contact-section {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-section .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.contact-section .section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item i {
    font-size: 18px;
    color: #1e50a2;
    margin-top: 2px;
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 14px;
    color: #555;
    margin-bottom: 3px;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e50a2;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #1e50a2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #16437a;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-left p {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid,
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        margin-left: 0;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-item a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .slideshow {
        height: 300px;
    }
    
    .product-grid,
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .news-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-date {
        flex-direction: row;
        min-width: auto;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid,
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .slideshow {
        height: 250px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e50a2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16437a;
}