/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: #3498db;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    padding: 5px 0;
    position: relative;
}

nav ul li a.active,
nav ul li a:hover {
    color: #3498db;
}

nav ul li a.active:after,
nav ul li a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
}

/* 轮播图样式 */
.banner {
    margin-top: 70px;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider {
    position: relative;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.caption {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 5px;
}

.caption h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
}

.caption p {
    font-size: 18px;
    margin-bottom: 20px;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev, .next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    margin: 0 20px;
}

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.indicators span.active {
    background-color: white;
}

/* 内容区域样式 */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.intro p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature .icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* 产品展示样式 */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product {
    flex: 1;
    min-width: 300px;
    margin: 15px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product picture {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #eef3f7;
}

.product img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product h3 {
    padding: 15px;
    font-size: 18px;
}

.product p {
    padding: 0 15px 15px;
    color: #666;
}

/* 新闻动态样式 */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

article {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.date {
    background-color: #3498db;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 80px;
}

.date .day {
    display: block;
    font-size: 28px;
    font-weight: bold;
}

.date .month {
    font-size: 14px;
}

.content {
    padding: 20px;
}

.content h3 {
    margin-bottom: 10px;
}

.content h3 a:hover {
    color: #3498db;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 15px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .banner {
        height: 300px;
    }
    
    .caption {
        left: 5%;
        right: 5%;
        max-width: none;
        padding: 15px;
    }

    .controls {
        display: none;
    }
    
    .caption h2 {
        font-size: 24px;
    }
    
    .caption p {
        font-size: 16px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .product-grid {
        flex-direction: column;
    }

    .product {
        min-width: 0;
        margin: 15px 0;
    }
}
