/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #34495e;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
}

.cta-buttons {
    margin-top: 2rem;
}

/* 功能介绍区域样式 */
.features {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.features h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.features > .container > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 2rem;
}

.feature-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 内容页面样式 */
.content {
    background-color: white;
    border-radius: 8px;
    margin: 2rem auto;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.content h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 内容页面列表样式 */
.content ul {
    margin: 1rem 0;
    padding-left: 3rem;
    border-radius: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #555;
}

.content li:last-child {
    margin-bottom: 0;
}

/* 404错误页面 */
.error-page {
    text-align: center;
    background-color: white;
    border-radius: 8px;
    margin: 2rem auto;
    padding: 4rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.error-page h2 {
    color: #e74c3c;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .content ul {
        padding-left: 2rem;
        margin: 1rem 0;
    }
    
    /* 移动端内容文本优化 */
    .content h2 {
        font-size: 1.5rem;
    }
    
    .content h3 {
        font-size: 1.2rem;
    }
    
    .content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .content li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 移动端功能介绍区域优化 */
    .features {
        padding: 2rem 0;
    }
    
    .features h2 {
        font-size: 1.8rem;
    }
    
    .features > .container > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-content {
        padding: 1.5rem;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-image {
        height: 180px;
    }
} 