* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: 
        radial-gradient(ellipse at 20% 10%, #1a1a3a 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, #16213e 0%, transparent 60%),
        radial-gradient(ellipse at 40% 80%, #0f1419 0%, transparent 40%),
        linear-gradient(180deg, #0a0a1a 0%, #0d1117 40%, #000 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 60%;
    background: 
        radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.02) 50%, transparent 70%),
        radial-gradient(ellipse at 70% 25%, rgba(173, 216, 230, 0.08) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
}

.star.size-1 { width: 1px; height: 1px; }
.star.size-2 { width: 2px; height: 2px; }
.star.size-3 { width: 3px; height: 3px; }

.star.bright { 
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); 
    animation-duration: 2s;
}

.star.dim { 
    opacity: 0.6; 
    animation-duration: 6s;
}

.star.medium { 
    opacity: 0.8; 
    animation-duration: 4s;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes shooting {
    0% {
        transform: translateX(-100px) translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh);
        opacity: 0;
    }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, -20px -20px 0 -2px rgba(255, 255, 255, 0.5);
    animation: shooting 3s linear;
    z-index: -1;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4), rgba(255,255,255,0.8));
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.breadcrumb {
    padding: 20px 0 12px 0;
    margin-bottom: 20px;
    position: relative;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 14px;
    color: #bbb;
    background: rgba(13, 17, 23, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    position: relative;
}

.main-content {
    flex: 1;
    background: rgba(13, 17, 23, 0.88);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6e6e6;
}

.main-content .posts-header {
    background: rgba(10, 10, 26, 0.92);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-content .post-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e6e6e6;
}

.main-content .post-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.main-content .post-title {
    color: #fff;
}

.main-content .post-title:hover {
    color: #f0f0f0;
}

.main-content .post-excerpt {
    color: #ccc;
}

.main-content .post-meta,
.main-content .post-stats {
    color: #999;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: rgba(13, 17, 23, 0.88);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6e6e6;
}

.widget-title {
    padding: 15px 20px;
    background: rgba(10, 10, 26, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.widget-content {
    padding: 20px;
    color: #ccc;
}

.widget-content a {
    color: #e6e6e6;
}

.widget-content a:hover {
    color: #fff;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.moon {
    position: fixed;
    top: 6%;
    right: 6%;
    width: 90px;
    height: 90px;
    background: 
        radial-gradient(circle at 35% 35%, #ffffff 0%, #f8f8f8 20%, #f0f0f0 40%, #e8e8e8 60%, #d8d8d8 80%, #c8c8c8 100%);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.25),
        0 0 80px rgba(255, 255, 255, 0.15),
        0 0 120px rgba(255, 255, 255, 0.08),
        inset -15px -15px 0 rgba(0, 0, 0, 0.08);
    animation: moonPhase 30s ease-in-out infinite;
}

.moon::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 30%;
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    box-shadow: 
        15px 10px 0 -1px rgba(0, 0, 0, 0.06),
        -5px 20px 0 -2px rgba(0, 0, 0, 0.05);
}

@keyframes moonPhase {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 0.2),
            0 0 60px rgba(255, 255, 255, 0.12),
            0 0 100px rgba(255, 255, 255, 0.06),
            inset -15px -15px 0 rgba(0, 0, 0, 0.08);
    }
    50% { 
        box-shadow: 
            0 0 60px rgba(255, 255, 255, 0.35),
            0 0 120px rgba(255, 255, 255, 0.2),
            0 0 180px rgba(255, 255, 255, 0.1),
            inset -15px -15px 0 rgba(0, 0, 0, 0.08);
    }
}

.milky-way {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 55%, transparent 60%);
    opacity: 0.6;
    animation: milkyWayShift 60s linear infinite;
}

@keyframes milkyWayShift {
    0% { transform: translateX(-100px) translateY(-50px); }
    100% { transform: translateX(100px) translateY(50px); }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0 15px;
    }

    .breadcrumb-inner {
        margin: 0 15px;
        padding: 12px 15px;
    }

    .sidebar {
        width: 100%;
    }
    
    .moon {
        width: 70px;
        height: 70px;
        top: 2%;
        right: 2%;
    }
    
    .milky-way {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .moon,
    .milky-way,
    .star,
    .shooting-star {
        animation: none;
    }
}
