/* 极光蓝暗黑主题 */
:root {
    --primary-color: #4cc9f0;
    --secondary-color: #4895ef;
    --dark-bg: #0d1b2a;
    --darker-bg: #0a1422;
    --light-text: #e2eafc;
    --muted-text: #a2a8bd;
    --accent-color: #4361ee;
    --card-bg: #1b263b;
    --card-border: #415a77;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(72, 149, 239, 0.4);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D立体头部 */
header {
    background: linear-gradient(145deg, var(--darker-bg), #0f172a);
    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 rgba(72, 149, 239, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* 霓虹效果导航 */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

nav ul li a:hover::before {
    transform: translateX(100%);
}

/* 科幻风格内容区 */
.main-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(72, 149, 239, 0.1) 0%, transparent 70%);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

/* 网格卡片布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.article-card {
    background: linear-gradient(145deg, #1f2d4a, #1a2438);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 201, 240, 0.1);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(76, 201, 240, 0.2);
    border-color: rgba(76, 201, 240, 0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--light-text);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 1rem;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(76, 201, 240, 0.15);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--light-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--card-border);
}

/* 科幻风格分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.5);
}

/* 霓虹灯效果友情链接 */
.friend-links {
    background: linear-gradient(145deg, #0f172a, #0a1422);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(76, 201, 240, 0.1);
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 400%;
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: 0.5s;
}

.friend-links:hover::before {
    opacity: 0.3;
    animation: neon-glow 8s linear infinite;
}

@keyframes neon-glow {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.friend-links h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.friend-links-container a {
    padding: 0.6rem 1.2rem;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* 科幻风格页脚 */
footer {
    background: linear-gradient(145deg, #0a1422, #070d17);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(76, 201, 240, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.copyright {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .friend-links-container a {
        padding: 0.5rem 1rem;
    }
}