/* 极光蓝暗黑主题 */
:root {
    --primary: #00b4d8; /* 极光蓝 */
    --primary-dark: #0096c7;
    --primary-light: #48cae4;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #121212;
    --text: #e0e0e0;
    --text-light: #f5f5f5;
    --text-muted: #9e9e9e;
    --border: #333333;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
}

* {
    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-light);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 3D立体头部 */
.header-3d {
    background: linear-gradient(145deg, var(--darker-bg), #111);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-neon {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 180, 216, 0.3);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(0, 180, 216, 0.1);
    text-decoration: none;
}

/* 卡片式内容区 */
.content-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* 网格布局 */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 3D卡片效果 */
.card-3d {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.2);
    border-color: var(--primary-dark);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* 文章详情 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.article-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    text-decoration: none;
}

/* 友情链接 */
.friend-links {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.friend-links h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.links-grid a {
    padding: 0.5rem 1rem;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.links-grid a:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

/* 科幻风格页脚 */
.footer-futuristic {
    background: linear-gradient(to top, var(--darker-bg), #111);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
}