/* 科幻主题全局样式 */
:root {
    --primary-color: #00f0ff;
    --secondary-color: #7b2dff;
    --dark-color: #0a0a1a;
    --darker-color: #050510;
    --light-color: #e0f8ff;
    --text-color: #c7e8ff;
    --accent-color: #ff2d7b;
    --neon-glow: 0 0 10px var(--primary-color);
    --section-glow: 0 0 20px rgba(0, 240, 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(123, 45, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 20%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-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, 240, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    position: relative;
}

.logo::after {
    content: '✦';
    position: absolute;
    right: -20px;
    top: 0;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: 100%;
}

/* 科幻主要内容区域 */
.main-content {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: var(--section-glow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, transparent 50%, rgba(123, 45, 255, 0.05) 100%);
    pointer-events: none;
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 240, 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: rgba(15, 15, 35, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 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, 240, 255, 0.05) 0%, transparent 50%, rgba(123, 45, 255, 0.05) 100%);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.article-card:hover .card-image {
    filter: grayscale(0%);
}

.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, 240, 255, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
    letter-spacing: 1px;
}

/* 科幻文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.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 rgba(0, 240, 255, 0.3);
}

/* 科幻分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 4px;
    background-color: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    font-size: 14px;
    letter-spacing: 1px;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--neon-glow);
}

/* 科幻友情链接 */
.friend-links {
    background: rgba(15, 15, 35, 0.8);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: var(--section-glow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 20px;
    letter-spacing: 1px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    letter-spacing: 1px;
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--dark-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 rgba(0, 240, 255, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.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;
    }
    
    .article-detail::before {
        display: none;
    }
}