/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-links a {
    color: #34495e;
    text-decoration: none;
    margin-left: 30px;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* 横幅 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    opacity: 0.9;
}

/* 通用标题 */
.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin: 60px 0 40px;
}

/* 文章列表 */
.articles {
    padding: 20px 0 80px;
    background-color: #f8f9fa;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
}

.article-content h3 a:hover {
    color: #3498db;
}

.article-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    gap: 20px;
}

.article-content p {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    color: #2980b9;
    margin-left: 5px;
}

/* 关于我 */
.about {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
    color: #555;
    font-size: 16px;
}

.about-content ul {
    margin: 20px 0 20px 20px;
}

.about-content li {
    margin-bottom: 10px;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    line-height: 2;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式适配（手机端） */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .article-list {
        grid-template-columns: 1fr;
    }
}