/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* 导航栏 */
.navbar {
    background: #333;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 24px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

.nav-links a:hover {
    background: #555;
    border-radius: 5px;
}

/* 轮播图 */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    height: auto;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* 产品卡片 */
.products {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    gap: 20px;
}

.product-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-btn {
    background: #007ACC;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
}

/* 新闻动态 */
.news {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.news-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
}

.news-btn {
    background: #007ACC;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
}

/* 底部导航 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}