/* 主容器样式 */
.containerBase {
    width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* 顶部搜索框样式 */
.search-bar {
    background-color: #f8f8f8;
    padding: 15px 20px;
    border-bottom: 1px solid #e6e6e6;
    text-align: center;
}

.search-input {
    width: 80%;
    max-width: 600px;
    height: 40px;
    padding: 0 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* 导航栏样式 */
.nav-bar {
    padding: 0 20px;
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
}

.nav-tab {
    padding: 15px 20px;
    cursor: pointer;
    white-space: nowrap;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-tab:hover {
    color: #009688;
}

.nav-tab.active {
    color: #009688;
    border-bottom-color: #009688;
    font-weight: 500;
}

/* 内容区域样式 */
.content-area {
    padding: 20px;
}

/* 帖子列表样式 */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    border-radius: 8px;
}

.post-item:hover {
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.post-item:last-child {
    border-bottom: none;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.post-meta {
    font-size: 12px;
    color: #999;
}

.post-content {
    margin-left: 52px;
    margin-bottom: 10px;
}

.post-content img{
    max-width: 1000px;
    max-height: 565px;
}

.post-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-image {
    margin: 10px 0;
    max-width: 100%;
    max-height: 565px;
    border-radius: 4px;
}

.post-footer {
    display: flex;
    align-items: center;
    margin-left: 52px;
    font-size: 12px;
    color: #999;
}

.post-footer .item {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.post-footer .item i {
    margin-right: 4px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    margin-left: 10px;
}

.tag-homework {
    background-color: #f0f9ff;
    color: #1890ff;
}

.tag-ai {
    background-color: #fff2e8;
    color: #fa8c16;
}

/* 响应式设计 */
@media (max-width: 1240px) {
    .container {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }
}

@media (max-width: 768px) {
    .search-input {
        width: 90%;
    }

    .post-title {
        font-size: 15px;
    }

    .post-excerpt {
        font-size: 13px;
    }
}

.action-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    margin-left: 10px;
}

.action-btn:hover {
    border-color: #009688;
    color: #009688;
}

.action-btn-primary {
    background-color: #009688;
    color: #fff;
    border-color: #009688;
}

.action-btn-primary:hover {
    background-color: #008678;
    border-color: #008678;
    color: #fff;
}

.no-results{
    text-align: center;
    height: 300px;
    font-size: 20px;
    font-weight: bold;
    line-height: 300px;
}

/* 自定义发帖按钮样式 */
.custom-post-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.custom-post-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.custom-post-btn:active {
    transform: translateY(0);
}

.custom-post-btn i {
    font-size: 16px;
}
