/* 青金石蓝暗黑主题 */
:root {
    --primary: #3a5f8f; /* 青金石蓝 */
    --primary-dark: #2a4a75;
    --primary-light: #4b7ab8;
    --secondary: #8f6b3a; /* 互补色 */
    --dark: #121a26;
    --darker: #0d121b;
    --light: #e0e6f0;
    --lighter: #f0f4fa;
    --text: #c7d1dd;
    --text-light: #e0e6f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --radius-large: 16px;
    --radius-medium: 12px;
    --radius-small: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D立体头部 */
header {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-medium);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

/* 内容卡片 */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.content-card {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border-radius: var(--radius-large);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--light);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), transparent);
}

/* 网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: rgba(18, 26, 38, 0.7);
    border-radius: var(--radius-medium);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--primary-light);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 文章详情 */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--light);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--primary-light);
    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-medium);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: var(--radius-medium);
    background: rgba(58, 95, 143, 0.2);
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

/* 友情链接 */
.friend-links {
    margin: 30px 0;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-link {
    padding: 8px 16px;
    background: rgba(58, 95, 143, 0.2);
    border-radius: 20px;
    border: 1px solid var(--primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.friend-link:hover {
    background: var(--primary);
    color: white;
}

/* 页脚 */
footer {
    background: var(--darker);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 14px;
    color: var(--primary-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 10px;
    }
}