/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--gray-color);
    font-size: 18px;
}

/* 导航栏 */
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 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 主横幅 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 20px;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 解决方案 */
.solutions {
    padding: 100px 0;
    background-color: white;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-card .icon {
    width: 70px;
    height: 70px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.solution-card .icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.solution-card p {
    color: var(--gray-color);
}

/* 产品特点 */
.features {
    padding: 100px 0;
    background-color: #f8fafc;
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content, .feature-image {
    flex: 1;
}

.feature-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.feature-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 16px;
}

.feature-content ul {
    margin-left: 20px;
}

.feature-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.feature-content ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.feature-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* 数据统计 */
.stats {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* 客户评价 */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonial-item {
    min-width: 350px;
    flex: 1;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    scroll-snap-align: start;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray-color);
    font-size: 14px;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: #f8fafc;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image, .about-text {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.company-values {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.value-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.value-item p {
    font-size: 14px;
    margin-bottom: 0;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.info-item {
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-item p {
    color: var(--gray-color);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-media a {
    width: 40px;
    height: 40px;
    background-color: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo p {
    color: #a1a1aa;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.link-group h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #a1a1aa;
    transition: color 0.3s ease;
}

.link-group ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #a1a1aa;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #a1a1aa;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .feature-item, .feature-item.reverse {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0 0 15px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .company-values {
        flex-direction: column;
    }

    .testimonial-slider {
        padding: 0;
    }

    .testimonial-item {
        min-width: 280px;
    }
}