:root {
    --champagne: #f3e5d0;
    --champagne-dark: #d4c4a8;
    --champagne-light: #fff5e6;
    --tech-blue: #6ac7ff;
    --tech-purple: #a68eff;
    --panel-bg: rgba(36, 39, 43, 0.85);
    --panel-border: 1px solid rgba(255, 255, 255, 0.08);
    --glow: 0 0 15px rgba(170, 157, 255, 0.6);
    --text-gradient: linear-gradient(135deg, var(--champagne), #ffeca6);
}

/* 未来科技感基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-Medium.ttf') format('truetype');
}

body {
    background-color: #1a1d21;
    color: var(--champagne);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(106, 199, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(166, 142, 255, 0.05) 0%, transparent 30%);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 霓虹文字效果 */
.neon-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(243, 229, 208, 0.3);
}

/* 悬浮面板 */
.panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    border: var(--panel-border);
    border-radius: 16px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.4),
        var(--glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* 头部 - 太空舱控制台风格 */
header {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--panel-border);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-gradient);
    box-shadow: var(--glow);
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--tech-blue);
}

nav ul li a:hover::before {
    left: 100%;
}

/* 主要内容区 - 全息投影风格 */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.main-content {
    padding: 40px;
    margin: 40px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 3px;
    background: var(--text-gradient);
    border-radius: 3px;
}

/* 文章网格 - 数据矩阵风格 */
.article-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-cell {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.article-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.article-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: var(--champagne-dark);
}

.article-cell:hover .article-image {
    transform: scale(1.08);
}

/* 分类标签 - 芯片风格 */
.category-chip {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(106, 199, 255, 0.15);
    color: var(--tech-blue);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border: 1px solid rgba(106, 199, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* 文章详情 - 全息显示屏风格 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--glow);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

/* 分页器 - 控制按钮风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(166, 142, 255, 0.1);
    border: 1px solid rgba(166, 142, 255, 0.3);
    transition: all 0.4s;
}

.pagination a:hover {
    background: rgba(166, 142, 255, 0.3);
    color: white;
    box-shadow: var(--glow);
}

/* 友情链接 - 网络节点风格 */
.friend-links {
    margin: 60px 0;
}

.friend-links h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(243, 229, 208, 0.05);
    border: 1px solid rgba(243, 229, 208, 0.1);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background: rgba(243, 229, 208, 0.1);
    color: var(--tech-purple);
    border-color: var(--tech-purple);
}

/* 页脚 - 控制台底部风格 */
footer {
    background: var(--panel-bg);
    padding: 40px 0;
    margin-top: 80px;
    border-top: var(--panel-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--champagne-dark);
}

/* 数据线装饰元素 */
.decor-line {
    position: absolute;
    background: var(--tech-blue);
    z-index: -1;
}

.decor-line.horizontal {
    height: 1px;
    width: 100%;
    box-shadow: 0 0 10px var(--tech-blue);
}

.decor-line.vertical {
    width: 1px;
    height: 100%;
    box-shadow: 0 0 10px var(--tech-blue);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 30px 20px;
    }
    
    .article-matrix {
        grid-template-columns: 1fr;
    }
    
    .article-cell {
        height: 300px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        gap: 15px;
    }
}