/* 基础样式 */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav a:hover {
    color: #ff6b6b;
}

/* 主体样式 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 5%;
}

.feature-card {
    width: 300px;
    text-align: center;
}

.feature-card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f8f8;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
}