/* 全局样式 */
:root {
    --primary-color: #0078ff;
    --secondary-color: #00c9ff;
    --text-color: #333;
    --light-text: #777;
    --lightest-text: #999;
    --background: #fff;
    --light-background: #f8f9fa;
    --dark-background: #1a1a2e;
    --border-color: #e9ecef;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--background);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--light-text);
}

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

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 120, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 120, 255, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 18px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header.scrolled .nav-links a {
    color: var(--text-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    z-index: 2;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

/* 英雄部分 */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') no-repeat center center/cover;
}

.hero-content {
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-content .highlight {
    color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 关于我们 */
#about {
    background-color: var(--light-background);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    font-size: 18px;
}

/* 核心产品 */
.product-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-background);
    border-radius: 50%;
}

.product-icon i {
    font-size: 36px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--light-text);
}

/* 客户案例 */
#customers {
    background-color: var(--light-background);
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.customer-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.customer-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--light-background);
    border-radius: 50%;
}

.customer-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.customer-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 我们的服务 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: var(--light-background);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 0;
}

.service-content {
    display: flex;
    flex-direction: column;
}

/* 联系我们 */
#contact {
    background-color: var(--dark-background);
    color: #fff;
}

#contact .section-header h2 {
    color: #fff;
}

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

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: #fff;
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.contact-info a {
    color: var(--secondary-color);
}

.qr-code {
    margin-top: 40px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    background-color: #fff;
    padding: 10px;
    border-radius: var(--border-radius);
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.form-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.form-group input.error,
.form-group textarea.error {
    border: 1px solid #e74c3c;
}

/* 加载动画 */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 页脚 */
footer {
    background-color: #151525;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright p {
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.copyright a {
    color: rgba(255, 255, 255, 0.5);
}

.copyright a:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        color: var(--text-color);
        font-size: 20px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--text-color);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--text-color);
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

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

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

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

    .product-card {
        min-width: 100%;
    }

    .customer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }

    .service-icon {
        margin-right: 15px;
        margin-bottom: 0;
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .service-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .service-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
} 