/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* 顶部信息栏 */
.top-bar {
    background: #f5f5f5;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    color: #666;
    margin-right: 5px;
}

.top-links a {
    margin-left: 15px;
    color: #666;
    transition: color 0.3s;
}

.top-links a:hover {
    color: #1890ff;
}

.top-links i {
    margin-right: 5px;
}

/* 主导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #333;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1890ff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1890ff;
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 轮播图 */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
}

.slide {
    position: relative;
    height: 100%;
    display: none;
}

.slide.active {
    display: block;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.slide-content p {
    font-size: 24px;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1890ff;
}

.section-header p {
    color: #999;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.company-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .number-animation {
    font-size: 36px;
    font-weight: bold;
    color: #1890ff;
    display: block;
    margin-bottom: 10px;
}

.stat-item p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.btn-more {
    display: inline-block;
    padding: 12px 35px;
    background: #1890ff;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-more:hover {
    background: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* 产品中心 */
.products {
    padding: 100px 0;
    background: #f5f5f5;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.product-info p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-top: 15px;
}

.product-features li {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.product-features i {
    color: #1890ff;
    margin-right: 8px;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #f5f5f5;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-item {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.info-item i {
    font-size: 40px;
    color: #1890ff;
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.info-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    gap: 80px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #1890ff;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: #999;
    font-size: 14px;
    transition: all 0.3s;
}

.link-group ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .banner {
        height: 500px;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .banner {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-list,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .banner {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        padding: 15px;
    }
} 