/* 霓虹朋克风格 - 主色调：电光粉(#ff00ff) */
:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00f0ff;
    --neon-purple: #9600ff;
    --dark-bg: #0d0d0d;
    --text-glow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink);
    --box-glow: 0 0 15px var(--neon-pink), 0 0 30px rgba(255, 0, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 20%);
}

/* 霓虹文字效果 */
.neon-text {
    text-shadow: var(--text-glow);
    color: white;
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

a:hover {
    color: var(--neon-pink);
    text-shadow: var(--text-glow);
}

/* 不对称容器 */
.container {
    width: 94%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3%;
    position: relative;
}

/* 斜角头部 */
header {
    background: rgba(13, 13, 13, 0.9);
    padding: 25px 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    border-bottom: 1px solid var(--neon-pink);
    box-shadow: var(--box-glow);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(-5deg);
    text-shadow: var(--text-glow);
}

/* 非主流导航 */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    transform: skewX(-15deg);
    background: rgba(0, 0, 0, 0.7);
    border-left: 2px solid var(--neon-pink);
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    transform: skewX(15deg);
    font-weight: bold;
}

nav ul li:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

/* 锯齿形内容区 */
.main-content {
    background: rgba(20, 20, 20, 0.8);
    padding: 40px;
    margin: 50px 0;
    clip-path: polygon(
        0 0, 100% 3%, 100% 97%, 0 100%
    );
    border: 1px solid var(--neon-blue);
    box-shadow: var(--box-glow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 255, 0.05),
        transparent
    );
    transform: rotate(-2deg);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--neon-blue);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--neon-pink);
}

/* 网格布局 - 非对称 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    grid-auto-flow: dense;
}

/* 不同大小的网格项 */
.article-card:nth-child(3n+1) {
    grid-column: span 1;
}

.article-card:nth-child(5n+2) {
    grid-column: span 2;
}

.article-card {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid var(--neon-purple);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 0 10px rgba(150, 0, 255, 0.3);
}

.article-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(255, 0, 255, 0.4);
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(30%) contrast(120%);
    border-bottom: 2px solid var(--neon-pink);
}

.article-card:hover .card-image {
    filter: grayscale(0%) contrast(100%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}

.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 3px;
    background: var(--neon-blue);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 15px;
    border-top: 1px dotted #333;
    padding-top: 10px;
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: var(--text-glow);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--neon-blue);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 120%;
    margin-left: -10%;
    max-height: 400px;
    object-fit: cover;
    border: 3px solid var(--neon-pink);
    box-shadow: var(--box-glow);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-pink);
    font-size: 0.8rem;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 */
.friend-links {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    margin: 60px 0;
    border: 1px dashed var(--neon-blue);
    position: relative;
}

.friend-links::before, .friend-links::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--neon-pink);
}

.friend-links::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.friend-links::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.friend-links h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.friend-links-container a {
    padding: 8px 20px;
    background: rgba(150, 0, 255, 0.2);
    border: 1px solid var(--neon-purple);
    transition: all 0.3s;
    transform: skewX(-10deg);
}

.friend-links-container a:hover {
    background: var(--neon-purple);
    transform: skewX(0deg);
    box-shadow: 0 0 15px var(--neon-purple);
}

/* 页脚 */
footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        var(--neon-pink),
        var(--neon-blue),
        transparent
    );
}

.copyright {
    font-size: 0.9rem;
    margin-top: 30px;
    color: #777;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 30px;
    }
    
    nav ul {
        width: 100%;
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card:nth-child(n) {
        grid-column: span 1;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 30px 20px;
        clip-path: none;
    }
}

/* 动画效果 */
@keyframes neon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.neon-pulse {
    animation: neon-pulse 2s infinite;
}