/* 撸撸社论坛页面样式 */

.forum-content {
    padding: 40px 0;
}

.forum-nav {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.forum-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.forum-tabs .tab {
    padding: 8px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.forum-tabs .tab.active,
.forum-tabs .tab:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.forum-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.topic-item.pinned {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6, #ffffff);
}

.topic-item.hot {
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(135deg, #ffe6e6, #ffffff);
}

.topic-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.topic-info {
    flex: 1;
}

.topic-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.topic-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.topic-meta .author {
    color: #667eea;
    font-weight: 500;
}

.topic-meta .category {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.topic-info p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.topic-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 80px;
    text-align: center;
}

.topic-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topic-stats .number {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.topic-stats .label {
    font-size: 12px;
    color: #999;
}

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: #666;
    font-size: 14px;
}

.stat-row span:last-child {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .forum-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-tabs {
        justify-content: center;
    }
    
    .forum-main {
        grid-template-columns: 1fr;
    }
    
    .topic-item {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-stats {
        flex-direction: row;
        justify-content: center;
    }
}
.forum-content {
    padding: 40px 0;
}

.forum-nav {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.forum-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.forum-tabs .tab {
    padding: 8px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.forum-tabs .tab.active,
.forum-tabs .tab:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.forum-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.topic-item.pinned {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6, #ffffff);
}

.topic-item.hot {
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(135deg, #ffe6e6, #ffffff);
}

.topic-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.topic-info {
    flex: 1;
}

.topic-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.topic-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.topic-meta .author {
    color: #667eea;
    font-weight: 500;
}

.topic-meta .category {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.topic-info p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.topic-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 80px;
    text-align: center;
}

.topic-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topic-stats .number {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.topic-stats .label {
    font-size: 12px;
    color: #999;
}

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: #666;
    font-size: 14px;
}

.stat-row span:last-child {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .forum-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-tabs {
        justify-content: center;
    }
    
    .forum-main {
        grid-template-columns: 1fr;
    }
    
    .topic-item {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-stats {
        flex-direction: row;
        justify-content: center;
    }
}