/* 喜庆霓虹主题 */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --neon-green: #00ff87;
    --dark-bg: #0d0221;
    --light-text: #ffffff;
    --dark-text: #0d0221;
    --shadow-glow: 0 0 10px currentColor;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 霓虹光晕动画 */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px, 0 0 20px; }
    50% { text-shadow: 0 0 15px, 0 0 30px; }
}

/* 头部样式 - 霓虹边框效果 */
header {
    background-color: rgba(13, 2, 33, 0.9);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
}

.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: bold;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--light-text);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    transition: 0.5s;
}

nav ul li a:hover {
    color: var(--dark-text);
    background-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

nav ul li a:hover::before {
    left: 100%;
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    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(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.article-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 30px rgba(255, 0, 119, 0.3);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .card-image {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    position: relative;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--neon-pink);
    transition: all 0.3s;
}

.article-card:hover .card-title {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--neon-green);
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--neon-purple);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    box-shadow: 0 0 8px var(--neon-purple);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    line-height: 1.3;
}

.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: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}

/* 分页导航 - 霓虹按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 12px 24px;
    border-radius: 30px;
    background-color: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pagination a:hover {
    background-color: var(--neon-pink);
    color: var(--dark-text);
    box-shadow: 0 0 15px var(--neon-pink);
}

/* 友情链接 - 霓虹效果 */
.friend-links {
    background-color: rgba(5, 217, 232, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--neon-blue);
    font-size: 22px;
    text-shadow: 0 0 10px var(--neon-blue);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 16px;
    background-color: transparent;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--neon-green);
    color: var(--dark-text);
    box-shadow: 0 0 10px var(--neon-green);
}

/* 页脚样式 - 霓虹边框 */
footer {
    background-color: var(--dark-bg);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
}

.copyright {
    font-size: 14px;
    color: var(--neon-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}

/* 背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 42, 109, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(5, 217, 232, 0.1) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}