   /* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #c62828;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 18px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.navbar a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar a:hover:before,
.navbar a[aria-current="page"]:before {
    width: 100%;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* 菜单按钮 */
.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
    padding: 10px;
    transition: transform 0.3s;
}

.menu-button:hover {
    transform: scale(1.1);
}

/* 服务区域样式 */
.services-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 20px;
}

.services-section h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #c62828, #e53935);
    border-radius: 2px;
}

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

.service-box {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #c62828, #e53935);
}

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

.service-icon {
    font-size: 60px;
    margin-bottom: 25px;
    color: #c62828;
    transition: transform 0.4s ease;
}

.service-box:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.service-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 20px 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.box {
    padding: 0 20px;
}

.box h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.box h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #c62828;
}

.box iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.spaced-lines {
    margin-bottom: 15px;
    display: block;
}

.underline-link {
    color: #ecf0f1;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.underline-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #c62828;
    transition: width 0.3s;
}

.underline-link:hover, .underline-link.active {
    color: white;
}

.underline-link:hover:after, .underline-link.active:after {
    width: 100%;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #c62828;
    transform: translateY(-5px);
}

.social-icon i {
    font-size: 1.3rem;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 新增图标样式 */
.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-icon {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c62828;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: #c62828;
    color: white;
    transform: scale(1.1);
}

.service-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #555;
}

.benefit-icon {
    color: #c62828;
    font-size: 1.1rem;
}

.feature-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: rgba(198, 40, 40, 0.1);
    transition: all 0.3s ease;
}

.service-box:hover .feature-icon {
    color: rgba(198, 40, 40, 0.3);
    transform: scale(1.2);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px;
    }
    
    .menu-button {
        display: block;
        align-self: flex-start;
        margin-bottom: 10px;
    }
    
    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .navbar.show {
        display: flex;
    }
    
    .navbar a {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .services-section {
        padding: 50px 15px;
    }
    
    .services-section h1 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .box {
        padding: 0 10px;
    }
    
    .contact-icons {
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .services-section h1 {
        font-size: 1.8rem;
    }
    
    .service-box {
        padding: 30px 20px;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
}