/* 未来科技感主题 - 数字虚拟色调 */
:root {
    --primary-glowing: #00f2ff;
    --secondary-matrix: #00ff88;
    --dark-void: #0a0a14;
    --darker-space: #050510;
    --text-holo: #e0f8ff;
    --accent-pulse: #ff00aa;
    --grid-line: rgba(0, 255, 255, 0.1);
    --neon-glow: 0 0 10px var(--primary-glowing);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
}

body {
    background-color: var(--darker-space);
    color: var(--text-holo);
    line-height: 1.8;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden;
}

/* 头部 - 全息投影风格 */
header {
    background: rgba(10, 10, 20, 0.7);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-glowing);
    box-shadow: var(--neon-glow);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-glowing), var(--secondary-matrix));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
    letter-spacing: 2px;
}

.logo::after {
    content: '◢';
    color: var(--accent-pulse);
    margin-left: 8px;
    animation: pulse 2s infinite;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 16px;
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-matrix);
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: 100%;
}

/* 主要内容区域 - 悬浮面板 */
.main-content {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 0;
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 255, 0.1),
        transparent
    );
    animation: scan 8s linear infinite;
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '▮';
    color: var(--primary-glowing);
    position: absolute;
    right: -20px;
    animation: blink 1s step-end infinite;
}

/* 文章网格 - 数据块风格 */
.article-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.matrix-card {
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.matrix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.3);
    border-color: var(--primary-glowing);
}

.matrix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-glowing), var(--secondary-matrix));
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.matrix-card:hover .card-image {
    filter: grayscale(0%) contrast(110%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
}

.card-title a {
    color: var(--text-holo);
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary-glowing);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(224, 248, 255, 0.7);
    margin-top: 15px;
}

/* 分类标签 - 芯片风格 */
.category-chip {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--secondary-matrix);
    border: 1px solid var(--secondary-matrix);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
}

/* 文章详情页 - 全息投影风格 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--text-holo), var(--primary-glowing));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(0, 242, 255, 0.8);
    margin-bottom: 30px;
    font-size: 15px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: var(--neon-glow);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
}

.article-content p::before {
    content: '>';
    color: var(--secondary-matrix);
    position: absolute;
    left: -25px;
}

/* 分页导航 - 终端按钮风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 24px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary-glowing);
    color: var(--primary-glowing);
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.pagination a:hover {
    background: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 255, 0.4),
        transparent
    );
    transition: left 0.7s;
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 网络节点风格 */
.friend-links {
    background: rgba(15, 15, 25, 0.7);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
}

.friend-links h3 {
    margin-bottom: 25px;
    color: var(--primary-glowing);
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-container a {
    padding: 8px 16px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary-glowing);
    color: var(--text-holo);
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
}

.friend-links-container a:hover {
    background: rgba(0, 242, 255, 0.3);
    transform: translateY(-3px);
}

.friend-links-container a::after {
    content: '↗';
    margin-left: 5px;
    color: var(--secondary-matrix);
}

/* 页脚 - 终端风格 */
footer {
    background: rgba(10, 10, 20, 0.9);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 242, 255, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glowing), transparent);
}

.copyright {
    font-size: 14px;
    color: rgba(0, 242, 255, 0.7);
}

/* 动画效果 */
@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-matrix {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
}