/* 未来科技感主题 */
:root {
    --neon-blue: #0ff0fc;
    --neon-purple: #bc13fe;
    --dark-space: #0a0a1a;
    --cyber-gray: #1e1e2e;
    --hacker-green: #00ff41;
    --text-glow: 0 0 10px var(--neon-blue);
    --box-glow: 0 0 15px rgba(0, 255, 65, 0.7);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Rajdhani', 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-space);
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(11, 227, 242, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(188, 19, 254, 0.05) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--hacker-green);
    text-shadow: var(--text-glow);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 赛博朋克风格头部 */
header {
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(11, 227, 242, 0.5);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 未来感导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: 0.5s;
}

nav ul li a:hover::before {
    left: 100%;
}

/* 主要内容区域 - 全息投影效果 */
.main-content {
    background: rgba(30, 30, 46, 0.7);
    border-radius: 10px;
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(188, 19, 254, 0.3);
    box-shadow: 0 0 30px rgba(11, 227, 242, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--hacker-green), var(--neon-blue));
    background-size: 400%;
    z-index: -1;
    border-radius: 12px;
    animation: hologram 20s linear infinite;
    opacity: 0.3;
}

@keyframes hologram {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    color: var(--neon-blue);
    text-shadow: var(--text-glow);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

/* 网格布局 - 未来科技卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(188, 19, 254, 0.3);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-glow);
    border-color: var(--hacker-green);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 255, 65, 0.1) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: scan 4s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover::before {
    opacity: 1;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 200% 200%; }
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(188, 19, 254, 0.3);
    transition: var(--transition);
}

.article-card:hover .card-image {
    filter: brightness(1.1) contrast(1.1);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: white;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover .card-title {
    color: var(--neon-blue);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--neon-purple);
    margin-top: 15px;
    font-family: 'Rajdhani', sans-serif;
}

.card-meta span:first-child {
    color: var(--neon-blue);
}

/* 分类标签 - 芯片样式 */
.category-chip {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(0, 255, 65, 0.1);
    color: var(--hacker-green);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--hacker-green);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    transition: var(--transition);
}

.article-card:hover .category-chip {
    background-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* 文章详情页 - 全息投影效果 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: white;
    text-shadow: 0 0 15px rgba(11, 227, 242, 0.5);
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 3px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--neon-purple);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-family: 'Rajdhani', sans-serif;
}

.article-meta a {
    color: var(--neon-blue);
    transition: var(--transition);
}

.article-meta a:hover {
    color: var(--hacker-green);
    text-shadow: var(--text-glow);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 1px solid rgba(188, 19, 254, 0.5);
    box-shadow: 0 0 30px rgba(11, 227, 242, 0.2);
    transition: var(--transition);
}

.article-image:hover {
    transform: scale(1.01);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
    font-family: 'Rajdhani', sans-serif;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
}

.article-content p::before {
    content: '>';
    color: var(--hacker-green);
    margin-right: 10px;
    font-family: 'Orbitron', sans-serif;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid rgba(188, 19, 254, 0.3);
    box-shadow: 0 0 20px rgba(11, 227, 242, 0.1);
}

/* 分页导航 - 未来感按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 6px;
    background-color: rgba(11, 227, 242, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: rgba(0, 255, 65, 0.2);
    color: var(--hacker-green);
    border-color: var(--hacker-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.4), transparent);
    transition: 0.5s;
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 网络节点样式 */
.friend-links {
    background: rgba(30, 30, 46, 0.7);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(188, 19, 254, 0.3);
    box-shadow: 0 0 30px rgba(11, 227, 242, 0.1);
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--neon-blue);
    font-size: 24px;
    text-shadow: var(--text-glow);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: rgba(11, 227, 242, 0.1);
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid var(--neon-blue);
    font-family: 'Rajdhani', sans-serif;
    transition: var(--transition);
}

.friend-links-container a:hover {
    background-color: rgba(188, 19, 254, 0.2);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

/* 页脚样式 - 终端效果 */
footer {
    background-color: rgba(10, 10, 26, 0.9);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.2);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--hacker-green));
    animation: footerGlow 3s linear infinite;
}

@keyframes footerGlow {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

.copyright {
    font-size: 14px;
    color: var(--neon-blue);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .article-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination a {
        width: 100%;
        text-align: center;
    }
}