/* 极光蓝暗黑主题 */
:root {
    --primary: #4fc3f7;  /* 极光蓝 */
    --primary-dark: #3da5d8;
    --dark-bg: #121a21;
    --darker-bg: #0d141a;
    --card-bg: #1a252f;
    --text: #e0f7fa;
    --text-secondary: #b0bec5;
    --accent: #00e5ff;
    --border: rgba(79, 195, 247, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D立体头部 */
header {
    background: var(--darker-bg);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* 内容卡片 */
.content-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 网格布局 */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* 文章图片 */
.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.article-body {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(79, 195, 247, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

/* 详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.detail-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.detail-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.detail-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.detail-content p {
    margin-bottom: 1.5rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination a {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--darker-bg);
    border-color: var(--primary);
}

/* 友情链接 */
.friend-links {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.friend-links h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.friend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.friend-link {
    padding: 0.5rem 1rem;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.friend-link:hover {
    background: var(--primary);
    color: var(--darker-bg);
}

/* 页脚 */
footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid var(--border);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
}