/* 复古霓虹主题 */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --neon-green: #00ff85;
    --dark-bg: #0d0221;
    --light-text: #f1f1f1;
    --retro-orange: #ff7b25;
    --retro-yellow: #ffd319;
    --grid-line: rgba(255, 255, 255, 0.05);
    --glow-effect: 0 0 10px currentColor;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: all 0.3s ease;
    text-shadow: var(--glow-effect);
}

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.9);
    border-bottom: 3px solid var(--neon-purple);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.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;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border: 1px solid var(--neon-blue);
    border-radius: 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

nav ul li a:hover {
    background-color: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* 复古内容区域 */
.main-content {
    background-color: rgba(13, 2, 33, 0.8);
    border: 2px solid var(--neon-green);
    margin: 40px 0;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 133, 0.2);
    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-pink), var(--neon-blue), var(--neon-green));
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--neon-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--neon-pink), transparent);
}

/* 复古网格布局 */
.retro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.retro-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-purple);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.retro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(210, 0, 197, 0.3);
    border-color: var(--neon-green);
}

.retro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 42, 109, 0.1) 0%,
        rgba(5, 217, 232, 0.1) 50%,
        rgba(0, 255, 133, 0.1) 100%
    );
    z-index: -1;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 2px solid var(--neon-blue);
    margin-bottom: 15px;
    filter: grayscale(30%) contrast(120%);
    transition: all 0.3s ease;
}

.retro-card:hover .card-image {
    filter: none;
    border-color: var(--neon-pink);
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--neon-blue);
    margin-top: 15px;
    border-top: 1px dashed var(--neon-purple);
    padding-top: 10px;
}

/* 复古分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--neon-purple);
    color: white;
    font-size: 12px;
    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;
    border-bottom: 3px solid var(--neon-pink);
    padding-bottom: 20px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--neon-blue);
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border: 3px solid var(--neon-blue);
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(5, 217, 232, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
    border-left: 2px solid var(--neon-pink);
    padding-left: 20px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--neon-purple);
    margin: 20px 0;
}

/* 复古分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border: 2px solid var(--neon-blue);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* 复古友情链接 */
.friend-links {
    background-color: rgba(255, 42, 109, 0.1);
    border: 2px solid var(--neon-pink);
    padding: 25px;
    margin: 40px 0;
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--neon-green);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: rgba(5, 217, 232, 0.2);
    border: 1px solid var(--neon-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* 复古页脚 */
footer {
    background-color: rgba(13, 2, 33, 0.9);
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--neon-green);
    margin-top: 50px;
}

.copyright {
    font-size: 14px;
    color: var(--neon-blue);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .retro-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* 复古装饰元素 */
.corner-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--neon-blue);
}

.corner-decoration.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-decoration.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-decoration.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}