/* 未来科技感主题 - 数字虚拟色调 */
:root {
    --primary: #4d00ff; /* 数字蓝 */
    --secondary: #00ffcc; /* 赛博青 */
    --dark: #0a0a1a; /* 深空黑 */
    --light: #e0e0ff; /* 数字光 */
    --accent: #ff00aa; /* 霓虹粉 */
    --text: #ffffff;
    --glow: 0 0 15px rgba(77, 0, 255, 0.7);
    --grid-line: 1px solid rgba(0, 255, 204, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Arial Narrow', 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: var(--text);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(10, 10, 26, 0.9), rgba(10, 10, 26, 0.9)),
        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="50" height="50" x="0" y="0" fill="none" stroke="%2300ffcc" stroke-width="0.5"/></svg>');
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: var(--glow);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 50%, var(--primary) 50%);
    background-size: 2px 2px;
    opacity: 0.05;
    pointer-events: none;
}

/* 未来科技头部 */
header {
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(77, 0, 255, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.logo::after {
    content: '◢';
    position: absolute;
    right: -20px;
    bottom: -5px;
    color: var(--accent);
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--glow);
}

/* 主要内容区 - 全息投影效果 */
.main-content {
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid var(--primary);
    border-radius: 0;
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 65%, rgba(0, 255, 204, 0.1) 100%);
    pointer-events: none;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--primary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
}

/* 未来科技网格布局 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background: rgba(13, 13, 33, 0.7);
    border: 1px solid var(--primary);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(77, 0, 255, 0.5);
    border-color: var(--accent);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 255, 204, 0.1) 100%);
    pointer-events: none;
}

.tech-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary);
    filter: grayscale(30%) contrast(120%);
    transition: all 0.4s ease;
}

.tech-card:hover .tech-image {
    filter: grayscale(0%) contrast(100%);
}

.tech-body {
    padding: 25px;
}

.tech-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary);
    margin-top: 20px;
    font-family: 'Courier New', monospace;
}

/* 分类标签 - 数字徽章 */
.tech-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--dark);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* 文章详情页 - 全息投影 */
.tech-article {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.tech-article::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--primary);
    pointer-events: none;
    z-index: -1;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-family: 'Courier New', monospace;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
    border: 1px solid var(--primary);
    filter: contrast(110%) saturate(120%);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
    font-family: 'Arial', sans-serif;
}

.article-content p {
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border: 1px solid var(--primary);
}

/* 分页导航 - 数字按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border: 1px solid var(--primary);
    border-radius: 0;
    background-color: transparent;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination a:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--glow);
}

.pagination a::before {
    content: '>';
    position: absolute;
    left: -20px;
    transition: all 0.3s ease;
}

.pagination a:hover::before {
    left: 10px;
}

/* 友情链接 - 数字面板 */
.tech-links {
    background: rgba(13, 13, 33, 0.7);
    border: 1px solid var(--primary);
    padding: 30px;
    margin: 40px 0;
}

.tech-links h3 {
    margin-bottom: 25px;
    font-size: 24px;
    letter-spacing: 2px;
}

.tech-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-links-container a {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tech-links-container a:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--glow);
}

/* 页脚 - 数字终端风格 */
footer {
    background-color: rgba(10, 10, 26, 0.9);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--primary);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 50%, var(--primary) 50%);
    background-size: 3px 3px;
    opacity: 0.05;
    pointer-events: none;
}

.copyright {
    font-size: 14px;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .tech-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
        flex-direction: column;
    }
}