* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 20% 30%, #0a0c15, #03050b);
    font-family: 'Share Tech Mono', 'Courier New', 'Fira Code', monospace;
    color: #ccd6f6;
    line-height: 1.45;
    letter-spacing: 0.01em;
    scroll-behavior: smooth;
}

/* 霓虹扫描线 overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.02) 0px, rgba(255, 0, 255, 0.02) 2px, transparent 2px, transparent 6px);
    z-index: 999;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    background: #10131f;
}
::-webkit-scrollbar-thumb {
    background: #0ff5b3;
    border-radius: 4px;
    box-shadow: 0 0 6px #0ff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部 —— 赛博战甲 */
.cyber-header {
    padding: 1.5rem 0 1rem;
    border-bottom: 2px solid #0ff3b0;
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.3);
    margin-bottom: 2rem;
    backdrop-filter: blur(2px);
    background: rgba(8, 12, 25, 0.65);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-glow {
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0ef, #f0f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px #0ef, 0 0 2px #f0f;
    letter-spacing: -0.02em;
}
.logo-glow span {
    font-size: 1.2rem;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #9ef;
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}
.cyber-nav {
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0rem;
    color: #b0f0ff;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cyber-nav:hover {
    color: #0ff;
    border-bottom-color: #f0f;
    text-shadow: 0 0 5px #0ff;
    transform: skewX(-2deg);
}

/* 切换动画 */
.view {
    transition: opacity 0.25s ease;
}
.hidden {
    display: none;
}

/* 网格布局：主内容 + 侧边广告 */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin: 1.5rem 0 3rem;
}

/* 博客卡片区（首页） */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.blog-card {
    background: rgba(12, 16, 30, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid #2c2f4e;
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0ef, #f0f);
    opacity: 0.6;
}
.blog-card:hover {
    border-color: #0ef;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}
.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #8f9bb5;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #eef5ff, #aad0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.7rem;
}
.card-excerpt {
    color: #b9c7dd;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: #0ff;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 1px dashed #0ff;
    width: fit-content;
    transition: gap 0.2s;
}
.read-more:hover {
    gap: 0.7rem;
    text-shadow: 0 0 4px #0ff;
}

/* 详情页文章区域 */
.detail-article {
    background: rgba(6, 8, 18, 0.7);
    backdrop-filter: blur(3px);
    border: 1px solid #2a2f4a;
    border-radius: 28px;
    padding: 2rem;
}
.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0f, #0ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.8rem;
}
.detail-date {
    font-size: 0.85rem;
    color: #8f9bb5;
    border-left: 3px solid #0ef;
    padding-left: 1rem;
    margin-bottom: 2rem;
}
.detail-content p {
    margin-bottom: 1.3rem;
    font-size: 1.02rem;
    line-height: 1.6;
}
.detail-content h3 {
    color: #0ef;
    margin: 1.8rem 0 0.8rem;
    font-size: 1.5rem;
}
.detail-content blockquote {
    border-left: 3px solid #f0f;
    background: #0f0f1f;
    padding: 0.8rem 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #cbd5ff;
}

/* 广告侧边栏 - 赛博朋克霓虹广告位 */
.ad-sidebar {
    background: rgba(0, 2, 12, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    border: 1px solid #00ffe180;
    padding: 1.2rem 1rem;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
    height: fit-content;
}
.ad-title {
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 3px;
    color: #ff44ee;
    border-bottom: 1px solid #ff44ee;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.3rem;
    padding-bottom: 0.4rem;
    text-transform: uppercase;
    font-weight: 700;
}
.ad-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ad-item {
    background: #0b0e1a;
    border-radius: 18px;
    padding: 0.8rem 1rem;
    border-left: 4px solid #0ef;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.ad-item:hover {
    background: #11172b;
    border-left-color: #f0f;
    transform: translateX(3px);
}
.ad-item .ad-brand {
    font-weight: 800;
    color: #ffcb77;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.ad-item .ad-text {
    font-size: 0.8rem;
    color: #bbd1ff;
    margin-top: 5px;
    font-family: monospace;
}
.ad-glow {
    text-align: right;
    font-size: 0.7rem;
    color: #0ef;
}

/* 返回按钮 */
.back-button {
    background: none;
    border: 1px solid #0ef;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    color: #0ef;
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.back-button:hover {
    background: #0ef11a20;
    box-shadow: 0 0 8px #0ef;
    color: #fff;
}

/* 页脚 */
.cyber-footer {
    margin-top: 3rem;
    border-top: 1px solid #0ef44a;
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    color: #6b7b9e;
}

/* 响应式 */
@media (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ad-sidebar {
        order: 2;
    }
    .container {
        padding: 0 18px;
    }
    .detail-title {
        font-size: 1.8rem;
    }
}

/* 一些小故障glitch */
.glitch-text {
    animation: glitch 3s infinite;
}
@keyframes glitch {
    0%, 100% { text-shadow: 2px 0 #0ef, -2px 0 #f0f; }
    25% { text-shadow: -2px 0 #0ef, 2px 0 #f0f; }
    50% { text-shadow: 1px 0 #0ef, -1px 0 #f0f; }
}
.badge-neon {
    font-size: 0.7rem;
    background: #00000070;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    border: 0.5px solid #0ef;
}
