/* 霓虹灯夜店风格 - 砖红色主题 */
:root {
    --neon-red: #ff2a6d;
    --dark-red: #d1003f;
    --deep-black: #0d0221;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --neon-text: #fff;
    --neon-glow: 0 0 10px rgba(255, 42, 109, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&display=swap');
}

body {
    background-color: var(--deep-black);
    color: var(--neon-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 霓虹灯边框效果 */
.neon-border {
    position: relative;
    border: 3px solid var(--neon-red);
    box-shadow: var(--neon-glow), 
                inset 0 0 10px rgba(255, 42, 109, 0.5);
    border-radius: 5px;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    animation: flicker 3s infinite alternate;
    pointer-events: none;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 0.8;
        box-shadow: 0 0 5px var(--neon-blue);
    }
    20%, 24%, 55% {
        opacity: 0.2;
        box-shadow: none;
    }
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: all 0.3s;
}

a:hover {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 霓虹灯头部样式 */
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-red);
    box-shadow: var(--neon-glow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-red), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}

nav ul li a:hover {
    background-color: var(--neon-red);
    color: var(--deep-black);
    box-shadow: 0 0 15px var(--neon-red);
}

/* 霓虹灯主要内容区域 */
.main-content {
    background-color: rgba(13, 2, 33, 0.7);
    border-radius: 5px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--neon-red), var(--neon-purple));
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--neon-red), transparent);
}

/* 网格布局 - 霓虹灯卡片 */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.neon-card {
    background: rgba(209, 0, 63, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.neon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--neon-red);
}

.neon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--neon-red);
    border-radius: 5px;
    pointer-events: none;
    opacity: 0.5;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--neon-red);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--neon-text);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--neon-blue);
    margin-top: 15px;
}

/* 分类标签 */
.category-label {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--neon-red);
    color: var(--deep-black);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--neon-text);
    text-shadow: 0 0 10px var(--neon-red);
}

.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: 5px;
    margin-bottom: 30px;
    border: 3px solid var(--neon-red);
    box-shadow: var(--neon-glow);
}

.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: 5px;
    margin: 20px 0;
    border: 2px solid var(--neon-blue);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 25px;
    border-radius: 30px;
    background-color: rgba(255, 42, 109, 0.2);
    border: 2px solid var(--neon-red);
    font-weight: 700;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--neon-red);
    color: var(--deep-black);
    box-shadow: var(--neon-glow);
}

/* 霓虹灯友情链接 */
.friend-links {
    background-color: rgba(209, 0, 63, 0.1);
    border-radius: 5px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid var(--neon-red);
    box-shadow: inset 0 0 15px rgba(255, 42, 109, 0.3);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--neon-text);
    font-size: 24px;
    text-shadow: 0 0 5px var(--neon-red);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.links-grid a {
    padding: 10px;
    background-color: rgba(5, 217, 232, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s;
    font-weight: 700;
}

.links-grid a:hover {
    background-color: var(--neon-blue);
    color: var(--deep-black);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* 霓虹灯页脚 */
footer {
    background-color: var(--deep-black);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid var(--neon-red);
    box-shadow: var(--neon-glow);
}

.copyright {
    font-size: 16px;
    color: var(--neon-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 霓虹灯动画效果 */
@keyframes neon-pulse {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 10px var(--neon-red);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 5px var(--neon-red);
    }
    100% {
        opacity: 0.8;
        text-shadow: 0 0 10px var(--neon-red);
    }
}

.neon-pulse {
    animation: neon-pulse 2s infinite;
}