/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e63946;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #e63946;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e63946;
}

.btn-secondary:hover {
    background-color: #e63946;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e63946;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 头部导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 24px;
    color: #2c3e50;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e63946;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #e63946;
}

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #2c3e50;
}

/* 移动导航菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: all 0.3s ease;
    padding: 80px 20px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: #e63946;
}

/* 主页横幅样式 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    text-align: right;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

/* 核心业务样式 */
.business {
    padding: 80px 0;
    background-color: #fff;
}

.business .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.business-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px;
    margin: 0 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.business-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.business-item i {
    font-size: 40px;
    color: #e63946;
    margin-bottom: 20px;
}

.business-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.business-item p {
    color: #666;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    max-width: 500px;
    margin-right: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    margin-right: 20px;
    text-align: center;
}

.stat-item span {
    font-size: 36px;
    font-weight: 700;
    color: #e63946;
    display: block;
}

.stat-item p {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

/* 产品特色样式 */
.features {
    padding: 100px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #e63946;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-item p {
    color: #666;
}

/* 我们的优势样式 */
.advantages {
    padding: 100px 0;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-item {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.advantage-item p {
    color: #666;
}

/* 产品中心样式 */
.products {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 客户评价样式 */
.testimonials {
    padding: 100px 0;
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 30px;
    color: #e63946;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-item p {
    font-size: 16px;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 40px;
}

.footer-logo {
    flex: 0 0 200px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links,
.footer-contact,
.footer-friendlinks {
    flex: 1;
    min-width: 200px;
    margin-right: 0;
    padding: 0 15px;
}

.footer-links h4,
.footer-contact h4,
.footer-friendlinks h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-friendlinks h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-links ul,
.footer-contact ul,
.footer-friendlinks ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li,
.footer-contact ul li,
.footer-friendlinks ul li {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-links ul li a,
.footer-friendlinks ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-friendlinks ul li a:hover {
    color: #3498db;
    padding-left: 5px;
}

.footer-contact ul li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式布局 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 50px;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 100%;
        text-align: center;
    }

    .business .container {
        flex-direction: column;
    }

    .business-item {
        margin-bottom: 20px;
        margin-right: 0;
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo,
    .footer-links,
    .footer-contact,
    .footer-friendlinks {
        flex: 0 0 100%;
        padding: 0;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .advantages,
    .products,
    .testimonials,
    .contact {
        padding: 80px 0;
    }

    .advantages-grid,
    .products-grid,
    .testimonials-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
}