/* 未来科技感全局样式 */
:root {
    --cyber-orange: #ff6e00;
    --neon-blue: #00f7ff;
    --matrix-green: #00ff4c;
    --dark-plasma: #0a0a1a;
    --hud-gray: #1a1a2e;
    --terminal-text: #e0e0ff;
    --glow-effect: 0 0 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

@font-face {
    font-family: 'Orbitron';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
}

body {
    background-color: var(--dark-plasma);
    color: var(--terminal-text);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 110, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 247, 255, 0.05) 0%, transparent 20%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
}

a:hover {
    color: var(--cyber-orange);
    text-shadow: var(--glow-effect) var(--cyber-orange);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-orange);
    transition: width 0.3s;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 全息投影式头部 */
header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 110, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--cyber-orange), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 110, 0, 0.5);
    font-family: 'Orbitron', sans-serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 18px;
    border: 1px solid transparent;
    border-radius: 50px;
}

nav ul li a:hover {
    border-color: var(--cyber-orange);
    background: rgba(255, 110, 0, 0.1);
}

/* 数据面板式主要内容 */
.main-content {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(0, 247, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(0, 247, 255, 0.1),
        inset 0 0 20px rgba(0, 247, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cyber-orange), var(--neon-blue));
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    position: relative;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-orange), transparent);
}

/* 全息网格文章列表 */
.article-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
}

.article-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 247, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.matrix-item {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.matrix-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(255, 110, 0, 0.3),
        0 0 20px rgba(0, 247, 255, 0.2);
    border-color: var(--cyber-orange);
}

.matrix-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    filter: grayscale(30%) contrast(110%);
    transition: filter 0.3s;
}

.matrix-item:hover .matrix-image {
    filter: grayscale(0%) contrast(120%);
}

.matrix-body {
    padding: 25px;
}

.matrix-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
}

.matrix-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--neon-blue);
    margin-top: 20px;
}

.matrix-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 247, 255, 0.2);
    color: var(--neon-blue);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 15px;
    border: 1px solid var(--neon-blue);
}

/* 终端式文章详情 */
.article-terminal {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 247, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.terminal-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    color: white;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(255, 110, 0, 0.5);
}

.terminal-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--neon-blue);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 16px;
}

.terminal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 2px solid var(--cyber-orange);
    box-shadow: 
        0 0 30px rgba(255, 110, 0, 0.3),
        inset 0 0 20px rgba(255, 110, 0, 0.2);
    filter: contrast(110%) brightness(90%);
}

.terminal-content {
    line-height: 1.9;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.terminal-content p {
    margin-bottom: 25px;
}

.terminal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--neon-blue);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--cyber-orange);
    color: var(--dark-plasma);
    border-color: var(--cyber-orange);
    box-shadow: 0 0 20px rgba(255, 110, 0, 0.5);
}

/* 网络节点式友情链接 */
.network-links {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 
        0 0 30px rgba(0, 247, 255, 0.1),
        inset 0 0 20px rgba(0, 247, 255, 0.05);
    position: relative;
}

.network-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 110, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(0, 247, 255, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.network-links h3 {
    margin-bottom: 30px;
    color: white;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}

.network-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.network-container a {
    padding: 10px 25px;
    background: rgba(0, 247, 255, 0.1);
    border-radius: 50px;
    font-size: 16px;
    border: 1px solid var(--neon-blue);
    transition: all 0.3s;
}

.network-container a:hover {
    background: var(--cyber-orange);
    color: var(--dark-plasma);
    border-color: var(--cyber-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 110, 0, 0.4);
}

/* 全息页脚 */
footer {
    background: rgba(10, 10, 26, 0.9);
    padding: 40px 0;
    text-align: center;
    margin-top: 70px;
    border-top: 1px solid rgba(255, 110, 0, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cyber-orange), var(--neon-blue));
}

.copyright {
    font-size: 16px;
    color: var(--terminal-text);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-matrix {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .terminal-title {
        font-size: 30px;
    }
    
    .terminal-meta {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .terminal-title {
        font-size: 26px;
    }
    
    .terminal-meta {
        gap: 15px;
        font-size: 14px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
    
    .network-container a {
        padding: 8px 20px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}