/* 基础样式 */
* {
    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;
}

/* 导航菜单 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    display: block;
    padding: 20px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 特色功能 */
.features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* 内容展示 */
.content-showcase {
    padding: 80px 0;
}

.content-showcase h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.content-item h3 {
    padding: 15px 20px 5px;
}

.content-item p {
    padding: 0 20px 20px;
    color: #666;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 36px;
}

/* 关于页面内容 */
.about-content {
    padding: 60px 0;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #007bff;
}

.about-section ul {
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 10px;
}

/* 联系页面内容 */
.contact-content {
    padding: 60px 0;
}

.contact-info,
.contact-form {
    margin-bottom: 40px;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #007bff;
}

.info-item {
    margin-bottom: 15px;
}

.info-item strong {
    display: inline-block;
    width: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .features-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        display: flex;
        flex-direction: column;
    }
    
    .info-item strong {
        width: auto;
        margin-bottom: 5px;
    }
}
