/* Post List 组件 - 赛博朋克风格 - 完整版，避免重复定义 */

/* 基础容器 - 只保留背景和边框样式，其他由Tailwind处理 */
.post-list {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--theme-black-light) 50%, var(--theme-black-lighter) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.post-list:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 255, 136, 0.4);
}

/* 全息背景效果 - 这是自定义的，Tailwind没有 */
.post-list::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.05) 50%, transparent 70%);
    background-size: 20px 20px;
    animation: hologramShift 4s linear infinite;
    pointer-events: none;
}

@keyframes hologramShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* 容器 - 自定义 */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* 节标题 - 自定义 */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: sectionHeaderLine 3s ease-in-out infinite;
}

@keyframes sectionHeaderLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 分类标题 - 自定义 */
.category-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

/* 分类描述 - 自定义 */
.category-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* 文章区域 - 自定义 */
.articles-area {
    position: relative;
    z-index: 1;
}

/* 文章网格 - 自定义 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 文章卡片 - 自定义 */
.article-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 255, 136, 0.4);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.05) 50%, transparent 70%);
    animation: cardHologramScan 3s linear infinite;
    pointer-events: none;
}

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

/* 文章链接 - 自定义 */
.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* 文章图片 - 自定义 */
.article-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: var(--radius) var(--radius) 0 0;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-image::before {
    opacity: 1;
}

/* 文章内容 - 自定义 */
.article-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* 文章标题 - 自定义 */
.article-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--primary);
}

/* 文章摘要 - 自定义 */
.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover .article-excerpt {
    color: var(--text-primary);
}

/* 文章日期 - 自定义 */
.article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.article-card:hover .article-date {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    color: var(--primary);
}

/* 霓虹发光效果 - 自定义 */
.post-list .neon-glow {
    animation: postListNeonGlow 2s ease-in-out infinite;
}

@keyframes postListNeonGlow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 255, 136, 0.3),
            0 0 10px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(0, 255, 136, 0.5),
            0 0 25px rgba(0, 255, 136, 0.3);
    }
}

/* 全息效果 - 自定义 */
.post-list .hologram {
    position: relative;
    overflow: hidden;
}

.post-list .hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
    animation: postListHologramScan 2s linear infinite;
    pointer-events: none;
}

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

/* 玻璃态效果 - 自定义 */
.post-list .glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 过渡效果 - 自定义 */
.post-list .transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-list .duration-300 {
    transition-duration: 300ms;
}

.post-list .duration-500 {
    transition-duration: 500ms;
}

.post-list .duration-600 {
    transition-duration: 600ms;
}

/* 悬停效果 - 自定义 */
.post-list .hover\:scale-105:hover {
    transform: scale(1.05);
}

.post-list .hover\:scale-110:hover {
    transform: scale(1.1);
}

/* 渐变文字 - 自定义 */
.post-list .bg-gradient-to-r {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* 响应式设计 - 自定义 */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .post-list {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-desc {
        font-size: 1rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .post-list {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-desc {
        font-size: 0.9rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-image {
        height: 160px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
}

/* 深色模式支持 - 自定义 */
@media (prefers-color-scheme: dark) {
    .post-list {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(0, 255, 136, 0.3);
    }
    
    .article-card {
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(0, 255, 136, 0.25);
    }
    
    .article-card:hover {
        border-color: rgba(0, 255, 136, 0.4);
    }
}

/* 加载动画 - 自定义 */
.post-list[data-widget-id] {
    animation: postListFadeIn 0.6s ease-out;
}

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