/* 赛博朋克风格全局样式 */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --dark-bg: #0d0221;
    --darker-bg: #010015;
    --text-primary: #ffffff;
    --text-secondary: #b8c4ff;
    --glow: 0 0 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(210, 0, 197, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(5, 217, 232, 0.1) 0%, transparent 20%);
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px var(--neon-blue),
            0 0 10px var(--neon-blue),
            0 0 20px var(--neon-blue),
            0 0 40px var(--neon-purple);
    }
    20%, 24%, 55% {  
        text-shadow: none;
    }
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: all 0.3s;
    position: relative;
}

a:hover {
    color: var(--neon-pink);
    text-shadow: var(--glow) var(--neon-pink);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 斜切设计 */
header {
    background-color: rgba(13, 2, 33, 0.9);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    border-bottom: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(210, 0, 197, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: skewX(-10deg);
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
    animation: flicker 3s infinite alternate;
    margin-left: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

nav ul li a:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

/* 主要内容区域 - 不对称网格 */
.main-content {
    background: rgba(1, 0, 21, 0.7);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(210, 0, 197, 0.3);
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-right: 2px solid var(--neon-blue);
    border-top: 2px solid var(--neon-blue);
    opacity: 0.5;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-blue);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
}

/* 文章网格 - 不规则布局 */
.article-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    grid-auto-flow: dense;
}

.article-cell {
    background: rgba(5, 217, 232, 0.05);
    border: 1px solid rgba(5, 217, 232, 0.3);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.article-cell:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 20px rgba(255, 42, 109, 0.3);
    border-color: var(--neon-pink);
    background: rgba(255, 42, 109, 0.05);
}

.article-cell:nth-child(3n) {
    grid-column: span 1;
}

.article-cell:nth-child(5n) {
    grid-column: span 1;
    transform: rotate(-1deg);
}

.article-cell:nth-child(7n) {
    grid-column: span 1;
    transform: rotate(1deg);
}

.cell-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(30%) contrast(120%);
    border-bottom: 1px solid var(--neon-purple);
}

.cell-image:hover {
    filter: grayscale(0%) contrast(100%);
}

.cell-body {
    padding: 20px;
}

.cell-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.cell-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 15px;
}

.cell-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    background-color: var(--neon-purple);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--neon-purple);
}

/* 文章详情页 - 全息投影风格 */
.article-holo {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-holo::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--neon-blue);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.holo-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.holo-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--neon-pink), transparent);
}

.holo-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.holo-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 16px;
}

.holo-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.holo-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(5, 217, 232, 0.3);
}

.holo-content {
    line-height: 1.8;
    font-size: 18px;
    color: var(--text-secondary);
}

.holo-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.holo-content p::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
}

.holo-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 15px rgba(210, 0, 197, 0.3);
}

/* 分页导航 - 数字终端风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 24px;
    background-color: rgba(5, 217, 232, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pagination a:hover {
    background-color: rgba(255, 42, 109, 0.2);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.3);
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 42, 109, 0.4), transparent);
    transition: 0.5s;
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 霓虹灯牌风格 */
.link-grid {
    background: rgba(13, 2, 33, 0.7);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(210, 0, 197, 0.2);
    position: relative;
}

.link-grid::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--neon-blue);
    pointer-events: none;
    opacity: 0.5;
}

.link-grid h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--neon-blue);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.link-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.link-container a {
    padding: 12px;
    text-align: center;
    background-color: rgba(255, 42, 109, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s;
}

.link-container a:hover {
    background-color: rgba(255, 42, 109, 0.3);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.5);
    transform: translateY(-3px);
}

/* 页脚样式 - 数据流效果 */
footer {
    background-color: var(--darker-bg);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    position: relative;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        transform: none;
        gap: 25px;
    }
    
    .logo {
        margin-left: 0;
        animation: none;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-cell:nth-child(n) {
        transform: none !important;
    }
    
    .holo-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .holo-meta {
        gap: 15px;
        font-size: 14px;
    }
    
    .link-container {
        grid-template-columns: 1fr 1fr;
    }
}