/* 霓虹灯奶油白主题 */
:root {
    --cream-white: #fffef0;
    --neon-pink: #ff6ec7;
    --neon-blue: #5d8aff;
    --neon-green: #7bff8f;
    --dark-bg: #1a1a1a;
    --text-dark: #333;
    --glass-effect: rgba(255, 254, 240, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'PingFang SC', sans-serif;
}

body {
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, var(--neon-pink) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, var(--neon-blue) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, var(--neon-green) 0%, transparent 30%);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

/* 霓虹灯文字效果 */
.neon-text {
    text-shadow: 
        0 0 5px #fff,
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink);
}

/* 头部样式 - 奶油白玻璃效果 */
header {
    background: var(--glass-effect);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cream-white);
    letter-spacing: 2px;
    position: relative;
    padding: 0 15px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: calc(100% - 30px);
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--cream-white);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

nav ul li a:hover {
    background: var(--glass-effect);
    box-shadow: 0 0 10px var(--neon-pink);
}

nav ul li a:hover::before {
    left: 100%;
}

/* 主要内容区域 */
.main-content {
    background: var(--glass-effect);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    color: var(--cream-white);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
}

/* 霓虹灯卡片效果 */
.neon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.neon-card {
    background: var(--glass-effect);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 0 20px var(--neon-pink);
}

.neon-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--cream-white);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 254, 240, 0.8);
    margin-top: 15px;
}

/* 分类标签 */
.neon-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(255, 110, 199, 0.5);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--cream-white);
    line-height: 1.3;
    text-shadow: 0 0 10px var(--neon-pink);
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 254, 240, 0.8);
    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 0 20px var(--neon-blue);
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: rgba(255, 254, 240, 0.9);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 分页导航 */
.neon-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.neon-pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background: var(--glass-effect);
    color: var(--cream-white);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.neon-pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.neon-pagination a:hover {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    box-shadow: 0 0 15px var(--neon-pink);
    transform: translateY(-3px);
}

.neon-pagination a:hover::before {
    left: 100%;
}

/* 强化版友情链接 */
.neon-links {
    background: var(--glass-effect);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.neon-links h3 {
    margin-bottom: 25px;
    color: var(--cream-white);
    font-size: 1.5rem;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.link-item {
    background: rgba(255, 254, 240, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item:hover {
    background: linear-gradient(135deg, rgba(255,110,199,0.2), rgba(93,138,255,0.2));
    box-shadow: 0 0 15px var(--neon-pink);
    transform: translateY(-5px);
}

.link-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.link-item span {
    display: block;
    color: var(--cream-white);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 页脚样式 */
footer {
    background: rgba(26, 26, 26, 0.8);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 254, 240, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .neon-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 霓虹灯动画 */
@keyframes neon-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.neon-pulse {
    animation: neon-pulse 2s infinite alternate;
}