/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #0366d6;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0256b6;
    text-decoration: underline;
}

/* ===== 导航栏 ===== */
.header {
    background: #2c3e50;
    color: #fff;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-right: 40px;
}

.logo:hover {
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
}

.nav-menu a {
    color: #ecf0f1;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #3498db;
    text-decoration: none;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 250px;
    padding: 8px 35px 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

/* ===== 页脚 ===== */
.footer {
    background: #2c3e50;
    color: #95a5a6;
    text-align: center;
    padding: 15px 20px;
    margin-top: 40px;
}

.footer a {
    color: #3498db;
}

/* ===== 容器 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== 首页模块卡片 ===== */
.module-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.module-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.module-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.module-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.module-card .card-link {
    display: inline-block;
    padding: 6px 16px;
    background: #3498db;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.module-card .card-link:hover {
    background: #2980b9;
    text-decoration: none;
}

/* ===== 文章列表 ===== */
.article-list {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-item h3 a {
    color: #2c3e50;
}

.article-item h3 a:hover {
    color: #3498db;
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ===== 搜索结果显示 ===== */
.search-results {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-result-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.search-result-item p {
    font-size: 14px;
    color: #666;
}

/* ===== 关于页面 ===== */
.about-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.about-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.about-content h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #34495e;
}

.about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.about-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.about-content li {
    font-size: 15px;
    line-height: 2;
    color: #555;
}
