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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

nav a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #007bff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* 首页部分 */
#home {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 150px 20px 100px;
    margin-top: 70px;
}

#home h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#home h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: normal;
}

#home p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 通用章节样式 */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #fff;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

/* 关于我们 */
#about {
    background-color: #f8f9fa;
}

#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

#about h3 {
    text-align: center;
    font-size: 1.5rem;
    margin: 50px 0 30px;
}

#about ul {
    max-width: 800px;
    margin: 0 auto;
    list-style-type: none;
}

#about li {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

#about li:hover {
    transform: translateY(-5px);
}

#about li strong {
    color: #007bff;
}

/* 专业服务 */
.service-category {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-category h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 师资团队 */
.team-member {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.team-member h4 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 联系我们 */
#contact {
    background-color: #f8f9fa;
}

#contact p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#contact > p {
    text-align: center;
}

#map-placeholder {
    max-width: 800px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
}

#contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#contact-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

#contact-form button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #0069d9;
}

.qrcode-area {
    text-align: center;
    margin-top: 40px;
}

.qrcode-area p {
    margin-top: 15px;
    font-weight: bold;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 5px 10px;
        font-size: 0.9rem;
    }
    
    #home {
        padding: 120px 20px 80px;
    }
    
    #home h1 {
        font-size: 2rem;
    }
    
    #home h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 1.7rem;
    }
    
    .service-category,
    .team-member {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #home {
        padding: 100px 15px 60px;
    }
    
    #home h1 {
        font-size: 1.7rem;
    }
    
    #home h2 {
        font-size: 1.3rem;
    }
    
    #home p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}