/* ========== 博客页面样式 ========== */

/* 装饰性背景元素 */
.blog-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color),
                0 0 20px var(--primary-color),
                0 0 30px var(--primary-color);
    animation: float 20s infinite ease-in-out;
}

.floating-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.floating-particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color),
                0 0 20px var(--secondary-color),
                0 0 30px var(--secondary-color);
}

.floating-particle:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.floating-particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 20s;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color),
                0 0 20px var(--accent-color),
                0 0 30px var(--accent-color);
}

.floating-particle:nth-child(5) {
    top: 30%;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 17s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -50px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, -100px) scale(1.2);
        opacity: 0.8;
    }
    75% {
        transform: translate(-80px, -30px) scale(1.3);
        opacity: 0.5;
    }
}

/* 标题增强效果 */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg,
        var(--primary-color),
        var(--accent-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-color),
        var(--accent-color),
        transparent
    );
    animation: title-glow 2s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    }
}

/* 标题分隔线 */
.title-divider {
    width: 100px;
    height: 3px;
    margin: 2rem auto 3rem;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-color),
        var(--accent-color),
        var(--secondary-color),
        transparent
    );
    border-radius: 10px;
    position: relative;
}

.title-divider::before,
.title-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: divider-pulse 2s ease-in-out infinite;
}

.title-divider::before {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.title-divider::after {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

@keyframes divider-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* 博客控制区域 */
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-controls .search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* 增强搜索框样式 */
.blog-controls .search-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--accent-color),
        var(--secondary-color),
        var(--primary-color)
    );
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 200% 100%;
    animation: gradient-shift 3s linear infinite;
}

.blog-controls .search-container:focus-within::before {
    opacity: 1;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.blog-controls .search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    background: rgba(10, 10, 30, 0.8);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.blog-controls .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3),
                0 0 40px rgba(0, 243, 255, 0.1),
                inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.blog-controls .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 搜索图标 */
.blog-controls .search-container::after {
    content: '🔍';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

.blog-controls .category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 分类按钮 */
.filter-btn {
    background: linear-gradient(135deg,
        rgba(10, 10, 30, 0.8),
        rgba(20, 20, 50, 0.7)
    );
    border: 2px solid rgba(0, 243, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(0, 243, 255, 0.3),
        transparent
    );
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    border-color: rgba(0, 243, 255, 0.5);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.2),
        rgba(123, 44, 191, 0.2)
    );
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5),
                inset 0 0 15px rgba(0, 243, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 25px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 243, 255, 0.5),
        transparent
    );
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== 标签云样式 ========== */
.tag-cloud-container {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(10, 10, 30, 0.6),
        rgba(20, 20, 50, 0.5)
    );
    border: 2px solid rgba(0, 243, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tag-cloud-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        var(--accent-color),
        var(--secondary-color),
        transparent
    );
    animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tag-cloud-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-cloud-title .title-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.4));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.4));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.6));
    }
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1rem;
    position: relative;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.1),
        rgba(123, 44, 191, 0.1)
    );
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 25px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
}

/* 标签大小变体 - 根据频率 */
.tag-cloud-item.size-xs {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.tag-cloud-item.size-sm {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.tag-cloud-item.size-md {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
}

.tag-cloud-item.size-lg {
    font-size: 1.15rem;
    padding: 0.7rem 1.4rem;
}

.tag-cloud-item.size-xl {
    font-size: 1.3rem;
    padding: 0.8rem 1.6rem;
    border-width: 3px;
}

/* 标签背景发光效果 */
.tag-cloud-item::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.4),
        rgba(123, 44, 191, 0.4)
    );
    border-radius: 25px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* 标签内部光效 */
.tag-cloud-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.tag-cloud-item:hover::after {
    left: 100%;
}

.tag-cloud-item:hover::before {
    opacity: 1;
}

.tag-cloud-item:hover {
    transform: translateY(-5px) scale(1.08);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4),
                0 0 40px rgba(0, 243, 255, 0.2),
                inset 0 0 20px rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* 活动状态标签 */
.tag-cloud-item.active {
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.25),
        rgba(123, 44, 191, 0.25)
    );
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5),
                inset 0 0 15px rgba(0, 243, 255, 0.15);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}

.tag-cloud-item.active::before {
    opacity: 0.7;
}

/* 标签数量徽章 */
.tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    background: linear-gradient(135deg,
        var(--primary-color),
        var(--accent-color)
    );
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transition: all 0.3s ease;
}

.tag-cloud-item:hover .tag-count {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
}

.tag-cloud-item.active .tag-count {
    background: linear-gradient(135deg,
        var(--accent-color),
        var(--secondary-color)
    );
    animation: count-pulse 1.5s ease-in-out infinite;
}

@keyframes count-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* 标签云加载状态 */
.tag-cloud.loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-cloud.loading::before {
    content: '加载标签中...';
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 标签云空状态 */
.tag-cloud.empty {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* 标签云入场动画 */
.tag-cloud-item {
    animation: tagFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tag-cloud-item:nth-child(1) { animation-delay: 0.05s; }
.tag-cloud-item:nth-child(2) { animation-delay: 0.1s; }
.tag-cloud-item:nth-child(3) { animation-delay: 0.15s; }
.tag-cloud-item:nth-child(4) { animation-delay: 0.2s; }
.tag-cloud-item:nth-child(5) { animation-delay: 0.25s; }
.tag-cloud-item:nth-child(6) { animation-delay: 0.3s; }
.tag-cloud-item:nth-child(7) { animation-delay: 0.35s; }
.tag-cloud-item:nth-child(8) { animation-delay: 0.4s; }
.tag-cloud-item:nth-child(9) { animation-delay: 0.45s; }
.tag-cloud-item:nth-child(10) { animation-delay: 0.5s; }
.tag-cloud-item:nth-child(n+11) { animation-delay: 0.55s; }

/* 博客网格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-article {
    background: linear-gradient(135deg, 
        rgba(10, 10, 30, 0.9) 0%,
        rgba(20, 20, 50, 0.8) 100%
    );
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 卡片顶部渐变线条 */
.blog-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        var(--accent-color),
        var(--secondary-color),
        transparent
    );
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 卡片发光效果 */
.blog-article::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.2),
        rgba(123, 44, 191, 0.2)
    );
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(20px);
}

.blog-article:hover::before {
    transform: scaleX(1);
}

.blog-article:hover::after {
    opacity: 1;
}

.blog-article:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 15px 50px rgba(0, 243, 255, 0.3),
                0 5px 25px rgba(123, 44, 191, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 卡片内部光效 */
.blog-article .article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(0, 243, 255, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-article:hover .article-header::before {
    opacity: 1;
}

/* 文章头部 */
.article-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.article-category {
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.15),
        rgba(0, 243, 255, 0.05)
    );
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--primary-color);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2),
                inset 0 0 10px rgba(0, 243, 255, 0.05);
    transition: all 0.3s ease;
}

.blog-article:hover .article-category {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4),
                inset 0 0 15px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.6);
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-read-time svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.article-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.blog-article:hover .article-title {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.article-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.3));
    transition: transform 0.3s ease;
}

.blog-article:hover .article-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 文章内容 */
.article-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.blog-article:hover .article-excerpt {
    color: rgba(255, 255, 255, 0.85);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.article-tag {
    background: linear-gradient(135deg,
        rgba(123, 44, 191, 0.15),
        rgba(123, 44, 191, 0.05)
    );
    border: 1px solid rgba(123, 44, 191, 0.4);
    color: var(--secondary-color);
    padding: 0.3rem 0.85rem;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(123, 44, 191, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.article-tag:hover::before {
    width: 100%;
    height: 100%;
}

.article-tag:hover {
    border-color: rgba(123, 44, 191, 0.7);
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.4);
    transform: translateY(-2px);
}

/* 文章操作 */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color)
    );
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    transform: translateX(5px);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    filter: brightness(1.2);
}

.read-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(0, 243, 255, 0.4));
}

.read-more:hover svg {
    transform: translateX(5px);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-item svg {
    width: 14px;
    height: 14px;
}

/* 特色文章 */
.featured-article {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, 
        rgba(0, 243, 255, 0.1) 0%, 
        rgba(10, 10, 30, 0.95) 50%,
        rgba(123, 44, 191, 0.1) 100%
    );
    border: 2px solid rgba(0, 243, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.featured-article::before {
    height: 4px !important;
}

.featured-article::after {
    opacity: 0.8 !important;
}

.featured-article .article-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, 
        var(--primary-color),
        var(--accent-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-article .article-excerpt {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--accent-color)
    );
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5),
                0 0 40px rgba(0, 243, 255, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.5),
                    0 0 40px rgba(0, 243, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 243, 255, 0.8),
                    0 0 60px rgba(0, 243, 255, 0.5);
    }
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.pagination-info {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 4rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-indicator.hidden {
    display: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4),
                inset 0 0 20px rgba(0, 243, 255, 0.2);
}

.loading-spinner::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid transparent;
    border-bottom: 2px solid var(--secondary-color);
    border-left: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    grid-column: 1 / -1;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-article {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.blog-article:nth-child(1) { animation-delay: 0.1s; }
.blog-article:nth-child(2) { animation-delay: 0.2s; }
.blog-article:nth-child(3) { animation-delay: 0.3s; }
.blog-article:nth-child(4) { animation-delay: 0.4s; }
.blog-article:nth-child(5) { animation-delay: 0.5s; }
.blog-article:nth-child(6) { animation-delay: 0.6s; }
.blog-article:nth-child(n+7) { animation-delay: 0.7s; }

/* 数据粒子效果 */
.blog-grid::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 243, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.03) 0%, transparent 50%);
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-controls {
        gap: 1.5rem;
    }
    
    .blog-controls .category-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    /* 标签云响应式 */
    .tag-cloud-container {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .tag-cloud-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .tag-cloud {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .tag-cloud-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .tag-cloud-item.size-xs {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .tag-cloud-item.size-sm {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }
    
    .tag-cloud-item.size-md {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .tag-cloud-item.size-lg {
        font-size: 0.95rem;
        padding: 0.55rem 1.1rem;
    }
    
    .tag-cloud-item.size-xl {
        font-size: 1.05rem;
        padding: 0.6rem 1.2rem;
        border-width: 2px;
    }
    
    .blog-article {
        padding: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.2rem;
    }
    
    .featured-article .article-title {
        font-size: 1.5rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .featured-article .article-excerpt {
        font-size: 1rem;
    }
    
    .blog-article {
        padding: 1.25rem;
    }
    
    .search-container {
        margin: 0;
    }
    
    .blog-controls .search-input {
        font-size: 0.9rem;
        padding: 0.85rem 1rem 0.85rem 3rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* 标签云小屏幕优化 */
    .tag-cloud-container {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .tag-cloud-title {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .tag-cloud-title .title-icon {
        font-size: 1.2rem;
    }
    
    .tag-cloud {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .tag-cloud-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .tag-cloud-item.size-xs {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .tag-cloud-item.size-sm {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .tag-cloud-item.size-md {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tag-cloud-item.size-lg {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
    
    .tag-cloud-item.size-xl {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-width: 2px;
    }
    
    .tag-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        padding: 0 0.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .title-divider {
        width: 60px;
    }
    
    .floating-particle {
        display: none;
    }
}

/* ========== 文章模态框样式 ========== */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(10, 10, 30, 0.95) 0%,
        rgba(20, 20, 50, 0.9) 100%
    );
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.3),
                0 0 100px rgba(123, 44, 191, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg,
        rgba(10, 10, 30, 0.98) 0%,
        rgba(10, 10, 30, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-bottom: 2px solid rgba(0, 243, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 10;
    border-radius: 22px 22px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
    background: linear-gradient(135deg, 
        var(--primary-color),
        var(--accent-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.5);
    color: #ff3b30;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}

.modal-body {
    padding: 2rem;
    overflow: visible !important;
}

/* 确保所有内容都能显示 */
.modal-body * {
    max-width: 100%;
}

.modal-body .article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.modal-body .article-meta span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body .article-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.modal-body .article-meta span:first-child::before {
    display: none;
}

.article-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1rem;
    white-space: normal;
    word-wrap: break-word;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(0, 243, 255, 0.3);
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.article-content h3 {
    font-size: 1.3rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.article-content code {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.article-content pre {
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: rgba(0, 243, 255, 0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.article-content img {
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    min-height: 1px !important;
    border-radius: 12px;
    margin: 1.5rem auto !important;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.15);
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 滚动条样式 */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 10px;
    border: 2px solid rgba(10, 10, 30, 0.95);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        var(--accent-color),
        var(--secondary-color)
    );
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        border-radius: 14px 14px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-content h1 {
        font-size: 1.6rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
        padding-right: 2rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .article-content {
        font-size: 0.9rem;
    }
}
