/* 科幻主题全局样式 */
:root {
    --primary-color: #00f7ff;
    --secondary-color: #0099ff;
    --dark-color: #0a0a1a;
    --darker-color: #050510;
    --light-color: #e0f8ff;
    --text-color: #c0e0ff;
    --accent-color: #ff00aa;
    --neon-glow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    --section-glow: 0 0 30px rgba(0, 247, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Arial', sans-serif;
}

@font-face {
    font-family: 'Orbitron';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 247, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 153, 255, 0.05) 0%, transparent 20%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 科幻风格头部 */
header {
    background-color: rgba(10, 10, 26, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 科幻内容区域 */
.main-content {
    background-color: rgba(10, 10, 26, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--section-glow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    position: relative;
    color: var(--light-color);
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 科幻网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: rgba(5, 5, 16, 0.8);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.3);
    border-color: var(--primary-color);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--light-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--secondary-color);
    margin-top: 15px;
}

/* 科幻分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: rgba(0, 247, 255, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
}

/* 科幻文章详情 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--primary-color);
    box-shadow: var(--section-glow);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--primary-color);
}

/* 科幻分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 4px;
    background-color: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--darker-color);
    text-shadow: none;
    box-shadow: var(--neon-glow);
}

/* 科幻友情链接 */
.friend-links {
    background-color: rgba(5, 5, 16, 0.8);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(0, 247, 255, 0.2);
    box-shadow: var(--section-glow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 20px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: rgba(0, 247, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--darker-color);
    box-shadow: var(--neon-glow);
}

/* 科幻页脚 */
footer {
    background-color: var(--darker-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

.copyright {
    font-size: 14px;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* 科幻响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
}

/* 科幻动画效果 */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}