/* 星空背景样式 */
.stars-background {
    background: url('/static/images/default.png') center/cover no-repeat;
    /* background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); */
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 星星动画 */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 打字机效果 */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor {
    animation: blink 1s infinite;
    color: #60a5fa;
    font-weight: bold;
}

/* 圆点动画延迟 */
.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }
.dot-4 { animation-delay: 0.6s; }
.dot-5 { animation-delay: 0.8s; }

.article-tags{
    min-height: 1rem;
}

/* 画廊样式 */
.gallery-container {
    padding: 1rem 0;
    position: relative;
}

.article-gallery {
    transition: all 0.8s ease;
    opacity: 1;
    min-height: 200px; /* 确保有最小高度避免闪烁 */
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 100;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-nav-left {
    left: 5px;
}

.gallery-nav-right {
    right: 5px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .gallery-container {
        padding: 1rem;
    }
    
    .gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .gallery-nav-left {
        left: 5px;
    }
    
    .gallery-nav-right {
        right: 5px;
    }
    
    .article-card {
        margin: 0.5rem;
    }
    
    .article-card:hover {
        transform: none;
    }
}

.gallery-pagination {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.article-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 20;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 50;
}