/* 霓虹赛博朋克风格 */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --dark-bg: #0d0221;
    --darker-bg: #05010e;
    --text-primary: #d1f7ff;
    --text-secondary: #a5b3c9;
    --glow: 0 0 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Courier New', monospace;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&display=swap');
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 42, 109, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(5, 217, 232, 0.1) 0%, transparent 20%);
}

/* 不对称头部设计 */
header {
    background-color: rgba(13, 2, 33, 0.9);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--neon-blue);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px var(--neon-pink), 
                 0 0 10px var(--neon-blue);
    transform: skewX(-10deg);
}

/* 不规则导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li {
    position: relative;
    transform: rotate(-5deg);
}

nav ul li:nth-child(even) {
    transform: rotate(5deg);
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--neon-pink);
}

nav ul li a:hover::after {
    width: 100%;
}

/* 不对称内容容器 */
.main-content {
    background: rgba(5, 1, 14, 0.7);
    margin: 3rem 5%;
    padding: 3rem;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(211, 0, 197, 0.3);
    position: relative;
    clip-path: polygon(
        0% 0%, 
        100% 0%, 
        95% 95%, 
        90% 100%, 
        5% 100%, 
        0% 95%
    );
}

.main-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
    background-size: 200% 200%;
    animation: gradientGlow 3s ease infinite;
    clip-path: inherit;
}

@keyframes gradientGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 5px var(--neon-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
}

/* 蜂窝式文章网格 */
.article-honeycomb {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.article-cell {
    width: calc(33.333% - 1rem);
    min-height: 250px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neon-blue);
    transition: all 0.4s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.article-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--neon-blue);
    z-index: 10;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(70%) contrast(120%);
    transition: filter 0.3s;
}

.article-cell:hover .article-image {
    filter: grayscale(0%) contrast(100%);
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 1, 14, 0.9), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.article-cell:hover .article-overlay {
    transform: translateY(0);
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--neon-pink);
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

/* 斜切分类标题 */
.category-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    transform: skewX(-15deg);
    display: inline-block;
    background: rgba(255, 42, 109, 0.2);
    padding: 0.5rem 1.5rem;
    border-left: 3px solid var(--neon-pink);
}

/* 文章详情页 - 终端风格 */
.article-terminal {
    background: rgba(5, 1, 14, 0.9);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(5, 217, 232, 0.2);
    padding: 2rem;
    position: relative;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--neon-purple);
}

.terminal-title {
    font-size: 2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 5px currentColor;
}

.terminal-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-meta span {
    display: flex;
    align-items: center;
}

.terminal-meta span::before {
    content: '>';
    color: var(--neon-pink);
    margin-right: 0.5rem;
}

.terminal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 1.5rem 0;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 15px rgba(211, 0, 197, 0.3);
}

.terminal-content {
    line-height: 1.9;
}

.terminal-content p {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.terminal-content p::before {
    content: '$';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
}

/* 分页按钮 - 霓虹开关风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.pagination a:hover {
    color: var(--dark-bg);
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    transition: left 0.3s;
    z-index: -1;
}

.pagination a:hover::before {
    left: 0;
}

/* 友情链接 - 霓虹标签云 */
.link-cloud {
    background: rgba(13, 2, 33, 0.7);
    border: 1px solid var(--neon-purple);
    padding: 2rem;
    margin: 3rem 5%;
}

.cloud-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 5px var(--neon-pink);
}

.cloud-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cloud-tag {
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-image: linear-gradient(45deg, var(--neon-pink), var(--neon-blue)) 1;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cloud-tag:hover {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* 科幻风格页脚 */
footer {
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
    position: relative;
    margin-top: 5rem;
    clip-path: polygon(0% 20%, 10% 0%, 90% 0%, 100% 20%, 100% 100%, 0% 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        var(--neon-blue), 
        var(--neon-purple), 
        var(--neon-blue), 
        transparent);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.copyright span {
    color: var(--neon-blue);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .article-cell {
        width: calc(50% - 1rem);
        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        margin: 2rem 3%;
        padding: 2rem;
    }
    
    .article-cell {
        width: 100%;
        clip-path: none;
        min-height: 200px;
    }
    
    .terminal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .terminal-meta {
        flex-wrap: wrap;
        justify-content: center;
    }
}