/* 帖子列表增强样式 - 现代化设计 */

/* 帖子列表容器 */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* 帖子项目 */
.thread-item {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.thread-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thread-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.thread-item:hover::before {
    opacity: 1;
}

/* 帖子主要内容区域 */
.thread-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

/* 头像样式增强 */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thread-item:hover .avatar {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

/* 帖子内容区域 */
.thread-content {
    flex: 1;
    min-width: 0;
}

/* 帖子标题 */
.thread-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 12px;
    display: block;
    transition: all 0.3s ease;
    letter-spacing: -0.3px;
}

.thread-title:hover {
    color: #667eea;
    text-shadow: 0 1px 3px rgba(102, 126, 234, 0.2);
}

/* 帖子元信息 */
.thread-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

.thread-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.thread-meta span:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #334155;
    transform: translateY(-1px);
}

.thread-meta i {
    font-size: 11px;
    color: #667eea;
}

/* 帖子状态标签 */
.thread-status {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.hot-badge, .new-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hot-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.new-badge {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.hot-badge i, .new-badge i {
    font-size: 10px;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .thread-list {
        padding: 20px 15px;
        gap: 12px;
    }
    
    .thread-item {
        padding: 20px;
        border-radius: 16px;
    }
    
    .thread-main {
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .thread-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .thread-meta {
        gap: 12px;
        font-size: 12px;
    }
    
    .thread-meta span {
        padding: 4px 10px;
        gap: 4px;
    }
    
    .thread-status {
        position: static;
        margin-top: 12px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .thread-list {
        padding: 15px 10px;
        gap: 10px;
    }
    
    .thread-item {
        padding: 16px;
        border-radius: 12px;
    }
    
    .thread-main {
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .avatar {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .thread-title {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .thread-meta {
        gap: 8px;
        font-size: 11px;
    }
    
    .thread-meta span {
        padding: 3px 8px;
        gap: 3px;
        font-size: 10px;
    }
    
    .hot-badge, .new-badge {
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .thread-list {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .thread-item {
        background: linear-gradient(135deg, #334155 0%, #475569 100%);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    
    .thread-title {
        color: #f1f5f9;
    }
    
    .thread-title:hover {
        color: #a5b4fc;
    }
    
    .thread-meta {
        color: #94a3b8;
    }
    
    .thread-meta span {
        background: rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.3);
        color: #cbd5e1;
    }
    
    .avatar {
        border-color: rgba(102, 126, 234, 0.3);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thread-item {
    animation: fadeInUp 0.6s ease-out;
}

.thread-item:nth-child(1) { animation-delay: 0.1s; }
.thread-item:nth-child(2) { animation-delay: 0.2s; }
.thread-item:nth-child(3) { animation-delay: 0.3s; }
.thread-item:nth-child(4) { animation-delay: 0.4s; }
.thread-item:nth-child(5) { animation-delay: 0.5s; }