/* 未来科技感主题 */
:root {
    --neon-blue: #0ff0fc;
    --neon-pink: #ff00ff;
    --neon-purple: #9d00ff;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --glow-effect: 0 0 10px;
    --tech-line: linear-gradient(90deg, transparent, rgba(0, 255, 252, 0.5), transparent);
}

@font-face {
    font-family: 'Digital';
    src: url('digital.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 0, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 252, 0.05) 0%, transparent 20%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(10, 10, 26, 0.9), rgba(10, 10, 26, 0.95)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="1" height="1" x="99" y="99" fill="%23ffffff" opacity="0.05"/></svg>');
    z-index: -1;
}

/* 科技感头部 */
header {
    background-color: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.3);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Digital', sans-serif;
    font-size: 28px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px var(--neon-blue);
    letter-spacing: 2px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-blue);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--neon-blue);
}

nav ul li a:hover::before {
    width: 100%;
}

/* 主要内容区 - 全息投影效果 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    background: rgba(5, 5, 16, 0.6);
    border: 1px solid rgba(0, 255, 252, 0.2);
    border-radius: 0;
    margin: 30px 0;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 240, 252, 0.1);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--tech-line);
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--neon-blue), transparent);
}

/* 网格布局 - 未来科技卡片 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tech-card {
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid rgba(0, 240, 252, 0.2);
    border-radius: 0;
    padding-bottom: 20px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 240, 252, 0.3);
    border-color: var(--neon-blue);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 240, 252, 0.2);
    filter: grayscale(30%) contrast(110%);
    transition: filter 0.4s;
}

.tech-card:hover .card-image {
    filter: grayscale(0%) contrast(120%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--neon-blue);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--neon-purple);
    border-top: 1px dashed rgba(0, 240, 252, 0.3);
    padding-top: 15px;
}

/* 分类标签 */
.tech-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(157, 0, 255, 0.2);
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.tech-tag:hover {
    background: rgba(157, 0, 255, 0.4);
    box-shadow: 0 0 10px var(--neon-purple);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 240, 252, 0.5);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--neon-purple);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 240, 252, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 252, 0.1);
    filter: contrast(110%) saturate(120%);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-content h2,
.article-content h3 {
    color: var(--neon-blue);
    margin: 30px 0 15px;
    position: relative;
    padding-left: 15px;
}

.article-content h2::before,
.article-content h3::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
}

/* 分页导航 - 未来感按钮 */
.tech-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.tech-pagination a {
    padding: 12px 25px;
    background: rgba(0, 240, 252, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.tech-pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 252, 0.2), transparent);
    transition: all 0.6s;
}

.tech-pagination a:hover {
    background: rgba(0, 240, 252, 0.2);
    box-shadow: 0 0 15px var(--neon-blue);
}

.tech-pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 霓虹效果 */
.tech-links {
    background: rgba(5, 5, 16, 0.8);
    border: 1px solid rgba(255, 0, 255, 0.2);
    margin: 30px 0;
    padding: 25px;
    position: relative;
}

.tech-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    box-shadow: 0 0 10px var(--neon-pink);
}

.tech-links h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-links-container a {
    padding: 8px 15px;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 14px;
    transition: all 0.3s;
}

.tech-links-container a:hover {
    background: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 10px var(--neon-pink);
}

/* 页脚 - 科技感底部 */
footer {
    background-color: rgba(5, 5, 16, 0.9);
    border-top: 1px solid var(--neon-purple);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    box-shadow: 0 0 15px var(--neon-purple);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
}