/* 蒸汽波风格主题 */
:root {
    --neon-pink: #ff2ced;
    --neon-blue: #0ff0fc;
    --neon-purple: #9600ff;
    --dark-bg: #0d0221;
    --grid-color: rgba(255, 44, 237, 0.1);
    --text-color: #ffffff;
    --text-glow: 0 0 10px var(--neon-pink);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: all 0.3s ease;
    text-shadow: var(--text-glow);
}

a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 蒸汽波风格 */
header {
    background-color: rgba(13, 2, 33, 0.8);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px var(--neon-purple);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid var(--neon-blue);
}

nav ul li a:hover {
    background-color: var(--neon-purple);
    color: white;
    box-shadow: 0 0 15px var(--neon-purple);
}

/* 主要内容区域 */
.main-content {
    background-color: rgba(13, 2, 33, 0.7);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-purple);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 48%, 
        var(--neon-pink) 50%, 
        transparent 52%);
    background-size: 10px 10px;
    opacity: 0.1;
    pointer-events: none;
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--neon-blue);
    color: var(--neon-pink);
    text-shadow: var(--text-glow);
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
}

/* 3D卡片式文章列表 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-card {
    background: rgba(13, 2, 33, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 5px 15px rgba(0, 242, 252, 0.2);
    transform-style: preserve-3d;
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px var(--neon-purple);
    border-color: var(--neon-pink);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--neon-blue);
    filter: saturate(150%) contrast(120%);
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
    text-shadow: 0 0 5px var(--neon-pink);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--neon-blue);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--neon-purple);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    text-shadow: none;
    box-shadow: 0 0 10px var(--neon-purple);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--neon-blue);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-purple);
    filter: saturate(150%) contrast(120%);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-purple);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 25px;
    border-radius: 30px;
    background-color: rgba(150, 0, 255, 0.3);
    border: 1px solid var(--neon-purple);
    transition: all 0.3s;
    text-shadow: none;
}

.pagination a:hover {
    background-color: var(--neon-purple);
    color: white;
    box-shadow: 0 0 20px var(--neon-purple);
}

/* 友情链接 - 霓虹风格 */
.friend-links {
    background: rgba(13, 2, 33, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0;
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-purple);
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        var(--neon-pink) 50%,
        transparent 55%
    );
    background-size: 10px 10px;
    opacity: 0.1;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--neon-blue);
    font-size: 22px;
    text-shadow: 0 0 10px var(--neon-blue);
    position: relative;
    z-index: 1;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.friend-links-container a {
    padding: 8px 20px;
    background-color: rgba(255, 44, 237, 0.2);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--neon-pink);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--neon-pink);
    color: white;
    box-shadow: 0 0 15px var(--neon-pink);
}

/* 页脚样式 - 带动画 */
footer {
    background-color: rgba(13, 2, 33, 0.9);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--neon-purple);
    box-shadow: 0 0 30px var(--neon-purple);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.copyright {
    font-size: 14px;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .friend-links-container {
        justify-content: center;
    }
}