/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    color: #3a7bd5;
    border: 1px solid #3a7bd5;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #3a7bd5;
    color: white;
}

/* 标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%);
}

.section-header h2 span {
    color: #3a7bd5;
}

.section-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 导航栏样式 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    max-height: 50px;
}

.main-nav .nav-links {
    display: flex;
}

.main-nav .nav-links li {
    margin-left: 30px;
}

.main-nav .nav-links li a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav .nav-links li a:hover,
.main-nav .nav-links li.active a {
    color: #3a7bd5;
}

.main-nav .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3a7bd5;
    transition: width 0.3s ease;
}

.main-nav .nav-links li a:hover::after,
.main-nav .nav-links li.active a::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 英雄区域样式 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    margin-top: 0;
    padding-top: 0;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #3a7bd5;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

/* 产品中心样式 */
.products-section {
    padding: 100px 0;
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #3a7bd5;
    margin-bottom: 15px;
}

/* 产品特色样式 */
.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-content p {
    color: #666;
}

/* 新闻资讯样式 */
.news-section {
    padding: 100px 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #3a7bd5;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #3a6073;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 用户评价样式 */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-content p {
    color: #666;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    color: #3a7bd5;
    font-size: 24px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.author-info p {
    color: #999;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.author-info p::before {
    display: none;
}

/* 友情链接样式 */
.links-section {
    padding: 50px 0;
    background-color: #fff;
}

.links-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.links-content a {
    color: #666;
    transition: color 0.3s ease;
}

.links-content a:hover {
    color: #3a7bd5;
}

/* 页脚样式 */
.site-footer {
    background-color: #2d3436;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-info p {
    margin-bottom: 20px;
    color: #b2bec3;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #b2bec3;
}

.footer-contact i {
    margin-right: 10px;
    color: #3a7bd5;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3a7bd5;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #b2bec3;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #3a7bd5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #343a40;
}

.footer-bottom p {
    color: #b2bec3;
    font-size: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #343a40;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #3a7bd5;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
    }

    .main-nav .nav-links li {
        margin: 15px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    .products-section, .features-section, .news-section, .testimonials-section {
        padding: 60px 0;
    }
}