/* 赛博朋克风格全局样式 */
:root {
    --primary-color: #e63946; /* 砖红色 */
    --secondary-color: #f1faee;
    --dark-color: #1d3557;
    --light-color: #a8dadc;
    --neon-glow: 0 0 10px rgba(230, 57, 70, 0.8);
    --text-color: #f1faee;
    --bg-pattern: linear-gradient(135deg, #1d3557 25%, transparent 25%) -50px 0,
                  linear-gradient(225deg, #1d3557 25%, transparent 25%) -50px 0,
                  linear-gradient(315deg, #1d3557 25%, transparent 25%),
                  linear-gradient(45deg, #1d3557 25%, transparent 25%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
}

body {
    background-color: #1d3557;
    background-image: var(--bg-pattern);
    background-size: 100px 100px;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

@keyframes neon-glow {
    0%, 100% { text-shadow: var(--neon-glow); }
    50% { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

/* 头部样式 - 赛博朋克风格 */
header {
    background-color: rgba(29, 53, 87, 0.9);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
    animation: neon-glow 2s infinite alternate;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--neon-glow);
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.main-content {
    background-color: rgba(29, 53, 87, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 赛博朋克卡片 */
.cyber-card {
    background-color: rgba(29, 53, 87, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

.cyber-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary-color);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--light-color);
    margin-top: 15px;
}

/* 分类标签 */
.cyber-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--light-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 30px;
    box-shadow: var(--neon-glow);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
}

/* 分页导航 */
.cyber-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.cyber-pagination a {
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.cyber-pagination a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--neon-glow);
}

/* 友情链接 */
.cyber-links {
    background-color: rgba(29, 53, 87, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 30px;
    margin: 40px 0;
}

.cyber-links h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
    text-shadow: var(--neon-glow);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.links-grid a {
    padding: 10px 15px;
    background-color: rgba(230, 57, 70, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.links-grid a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: var(--neon-glow);
}

/* 页脚样式 */
.cyber-footer {
    background-color: rgba(29, 53, 87, 0.9);
    border-top: 3px solid var(--primary-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

.copyright {
    font-size: 14px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* 赛博朋克装饰元素 */
.decor-line {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 30px 0;
    box-shadow: var(--neon-glow);
}