
/* 基础样式 */
:root {
    --primary: #0a192f;
    --secondary: #172a45;
    --accent: #64ffda;
    --text: #e6f1ff;
    --text-muted: #8892b0;
    --card-bg: #112240;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: var(--secondary);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid var(--accent);
}

header h1 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 导航栏 */
nav {
    background: var(--secondary);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

nav a:hover {
    background: var(--accent);
    color: var(--primary);
}

/* 统计栏 */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 20px;
    background: var(--secondary);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 文章列表 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.article-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-meta .source {
    color: var(--accent);
}

.article-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
}

.article-card .summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-card .tags {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tag {
    background: var(--secondary);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-detail header {
    text-align: left;
    background: none;
    padding: 0 0 30px 0;
    border-bottom: 1px solid var(--secondary);
    margin-bottom: 30px;
}

.article-detail h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-detail .meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.article-detail .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-detail .content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.article-detail .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-detail .back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--accent);
    text-decoration: none;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a, .pagination span {
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--accent);
    color: var(--primary);
}

.pagination .current {
    background: var(--accent);
    color: var(--primary);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--secondary);
    color: var(--text-muted);
    margin-top: 60px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail .content {
        padding: 20px;
        font-size: 1rem;
    }
    
    nav {
        gap: 10px;
    }
    
    .stats-bar {
        gap: 20px;
    }
}
