/* 未来主义科幻风格 - 高级灰主题 */
:root {
    --primary-color: #00c7ff;
    --secondary-color: #6c757d;
    --dark-color: #121212;
    --medium-color: #2a2a2a;
    --light-color: #e0e0e0;
    --text-color: #f0f0f0;
    --accent-color: #00ffcc;
    --glow-effect: 0 0 10px rgba(0, 199, 255, 0.7);
    --tech-font: 'Orbitron', 'Arial', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--tech-font);
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow-effect);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 科技感头部 */
header {
    background-color: rgba(18, 18, 18, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--medium-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::before {
    content: '';
    
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
}

/* 主要内容区域 - 科技面板效果 */
.main-content {
    background-color: var(--medium-color);
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    letter-spacing: 1px;
    color: var(--light-color);
}

.section-title::after {
    content: '';
    
    bottom: -1px;
    left: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 网格布局 - 科技卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background-color: rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-effect);
    border-color: var(--primary-color);
}

.tech-card::before {
    content: '';
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 199, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--light-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 15px;
}

/* 分类标签 - 科技感 */
.tech-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: rgba(0, 199, 255, 0.2);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
    letter-spacing: 1px;
}

/* 文章详情页 - 科技感布局 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--light-color);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 199, 255, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 分页导航 - 科技感 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: rgba(42, 42, 42, 0.8);
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    letter-spacing: 1px;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--glow-effect);
}

/* 友情链接 - 科技面板 */
.tech-links {
    background-color: var(--medium-color);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.tech-links h3 {
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 22px;
    letter-spacing: 1px;
}

.tech-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-links-container a {
    padding: 8px 20px;
    background-color: rgba(42, 42, 42, 0.8);
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
    letter-spacing: 1px;
}

.tech-links-container a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--glow-effect);
}

/* 页脚 - 科技感 */
footer {
    background-color: #0a0a0a;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--medium-color);
    position: relative;
}

footer::before {
    content: '';
    
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.copyright {
    font-size: 14px;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@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: 28px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .tech-links-container a {
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}