/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* 通用导航栏 */
nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.logo img {
    height: 60px;
}

.nav-links {
    float: right;
    list-style: none;
    margin-top: 10px;
}

.nav-links li {
    display: inline-block;
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: #ff7f50;
}

/* 移动端导航 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    right: 20px;
    top: 20px;
    background: #ff7f50;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 6px auto;
    transition: all 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding: 80px 20px;
    transition: right 0.3s;
    z-index: 1000;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav li {
    display: block;
    margin: 20px 0;
}

.mobile-nav a {
    font-size: 1.1rem;
    color: #333;
}

/* 通用页脚 */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    background: #ff7f50;
    color: #fff;
    padding: 12px 35px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: #ff6b3a;
    transform: translateY(-2px);
}

/* 首页样式 */
.home-page main {
    padding-top: 100px;
}

.home-page .hero-banner {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
                url('../images/banner.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
}

.home-page h1 {
    font-size: 3rem;
    color: #ff7f50;
    margin-bottom: 20px;
    text-align: center;
}

/* 服务项目页样式 */
.services-page main {
    padding: 100px 0 60px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
}

.service-card img {
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .home-page h1 {
        font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav.active + .mobile-menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-nav.active + .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav.active + .mobile-menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}

@media (max-width: 480px) {
    .mobile-menu-btn {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
    
    .mobile-nav {
        width: 85%;
    }
    
    .home-page h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 10px 25px;
    }
}

