﻿/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 颜色变量 */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --dark-color: #0a0a0a;
    --dark-gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --text-light: #f0f0f0;
    --text-gray: #aaa;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    }

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

    .btn-secondary:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* 标题样式 */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    /*color: white;*/
    color:#0a0a0a;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background-color: var(--primary-color);
    }

/* 导航栏 */
.header {
    /*background-color: rgba(10, 10, 10, 0.95);*/
    background:#343434;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.logo-highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary-color);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease;
}

/* 英雄区域 */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('https://images.unsplash.com/photo-1486496572940-2bb2341fdbdf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
        opacity: 0.2;
        z-index: -1;
    }

    .hero .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.hero-image {
    flex: 1;
    text-align: right;
}

    .hero-image img {
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }

/* 特色服务 */
.features {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--dark-gray);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-desc {
    color: var(--text-gray);
}

/* 产品区域 */
.products {
    padding: 80px 0;
    /*background-color: var(--dark-gray);*/
    background-color: white;
}

.products-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: transparent;
    background-color: #ffffff;
    color: var(--text-gray);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .filter-btn:hover, .filter-btn.active {
        background-color: var(--primary-color);

        color: white;
        border-color: var(--primary-color);
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    /*background-color: var(--dark-color);*/
    background:#8f8f8f;
    border-radius: 8px;
    overflow: hidden;
    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.4);
    }

.product-img {
    height: 200px;
    overflow: hidden;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.product-desc {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 服务区域 */
.services {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.services-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--dark-gray);
    transition: transform 0.3s ease;
}

    .service-item:hover {
        transform: translateX(10px);
    }

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 60px;
}

.service-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.service-text p {
    color: var(--text-gray);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: var(--dark-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

    .about-text p {
        margin-bottom: 20px;
        color: var(--text-gray);
        font-size: 1.1rem;
    }

.about-image {
    flex: 1;
}

    .about-image img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    color: var(--text-gray);
    font-size: 1rem;
}

/* 联系区域 */
.contact {
    padding: 80px 0;
    /*background-color: var(--dark-color);*/
    background-color: #2e2e2e;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

    .contact-detail i {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-right: 15px;
        margin-top: 5px;
    }

    .contact-detail h4 {
        font-size: 1.2rem;
        margin-bottom: 5px;
        color: white;
    }

    .contact-detail p {
        color: var(--text-gray);
    }

.contact-form {
    background-color: var(--dark-gray);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group input, .form-group textarea {
        width: 100%;
        padding: 15px;
        background-color: #1a1a1a;
        border: 1px solid var(--light-gray);
        border-radius: 4px;
        color: white;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

        .form-group input:focus, .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

/* 页脚 */
.footer {
    background-color: #050505;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 10px;
    }

        .footer-section ul li a {
            color: var(--text-gray);
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: var(--primary-color);
            }

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: var(--dark-gray);
        border-radius: 50%;
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

    .subscribe-form input {
        flex: 1;
        padding: 12px;
        background-color: var(--dark-gray);
        border: 1px solid var(--light-gray);
        border-radius: 4px 0 0 4px;
        color: white;
    }

    .subscribe-form .btn {
        border-radius: 0 4px 4px 0;
    }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
    }

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: column;
    }

    .stats {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

        .nav-menu.active {
            left: 0;
        }

    .nav-item {
        margin: 15px 0;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font
