/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    color: #2c3e50;
    font-size: 1.5rem;
}

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

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero {
    background: #fafbfc;
    color: #1a1a2e;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    top: 20%;
    left: 5%;
    width: 60px;
    height: 60px;
    border-top: 2px solid rgba(52, 152, 219, 0.3);
    border-left: 2px solid rgba(52, 152, 219, 0.3);
    pointer-events: none;
}

.hero-decoration-2 {
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    border-right: 2px solid rgba(52, 152, 219, 0.2);
    pointer-events: none;
}

.hero-decoration-3 {
    position: absolute;
    bottom: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(52, 152, 219, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    top: 30%;
    right: 15%;
    display: grid;
    grid-template-columns: repeat(5, 8px);
    gap: 15px;
    pointer-events: none;
}

.hero-dots span {
    width: 8px;
    height: 8px;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a2e;
    letter-spacing: 3px;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: #3498db;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content .tagline {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 2;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.hero-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    pointer-events: none;
}

.cta-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button a {
    color: white;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* 服务预览区域 */
.services-preview {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* 关于预览区域 */
.about-preview {
    padding: 80px 0;
    background-color: white;
}

.about-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.about-preview p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #666;
}

.learn-more-button {
    display: block;
    margin: 0 auto;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more-button a {
    color: white;
}

.learn-more-button:hover {
    background-color: #2980b9;
}

/* 内页通用样式 */
main {
    margin-top: 70px;
}

.about-us, .services, .contact {
    padding: 80px 0;
}

.about-us h1, .services h1, .contact h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* 关于我们页面样式 */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.company-intro h2, .team-info h2 {
    color: #3498db;
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.company-intro ul, .team-info ul {
    margin-left: 20px;
    margin-top: 10px;
}

.company-intro li, .team-info li {
    margin-bottom: 10px;
}

/* 服务页面样式 */
.service-category {
    margin-bottom: 50px;
}

.service-category h2 {
    color: #3498db;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.service-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 联系我们页面样式 */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info h2, .contact-form h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

#contactForm button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

#contactForm button:hover {
    background-color: #219a52;
}

.map-section h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.map-placeholder {
    background-color: #f1f1f1;
    padding: 40px;
    text-align: center;
    border-radius: 6px;
    border: 1px dashed #ccc;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer .container {
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .hero-content .tagline {
        font-size: 0.95rem;
    }

    .hero::before,
    .hero::after,
    .hero-decoration,
    .hero-decoration-2,
    .hero-decoration-3,
    .hero-dots,
    .hero-line {
        display: none;
    }

    .services-preview h2,
    .about-preview h2,
    .about-us h1,
    .services h1,
    .contact h1 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero {
        margin-top: 70px;
    }

    .services-grid,
    .about-content,
    .service-items,
    .contact-content {
        grid-template-columns: 1fr;
    }
}