/* 发帖页面样式 */
.thread-create-container {
    max-width: 900px;
    margin: 0 auto;
}

.thread-create-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 40px;
}

.thread-create-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.thread-create-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.thread-create-title i {
    color: #1890ff;
    font-size: 32px;
}

.thread-create-subtitle {
    color: #8c8c8c;
    font-size: 15px;
}

.thread-create-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 28px;
}

.form-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.form-section-label i {
    color: #1890ff;
    font-size: 18px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

.form-input-lg {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-input-lg:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

.form-textarea-lg {
    width: 100%;
    min-height: 280px;
    padding: 16px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s;
}

.form-textarea-lg:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

.attach-upload-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.attach-hint {
    color: #999;
    font-size: 13px;
}

.attach-list {
    width: 100%;
    margin-top: 12px;
}

.form-actions-center {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* 帖子详情页样式 */
.post-author-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.post-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-details {
    flex: 1;
    min-width: 0;
}

.post-author-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-author-name a {
    color: #1a1a1a;
}

.post-author-name a:hover {
    color: #1890ff;
}

.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #8c8c8c;
}

.post-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-meta-info .meta-item i {
    font-size: 14px;
}

.post-content-section {
    padding: 20px 0;
}

.post-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

/* 帖子底部时间样式 */
.post-footer-meta {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.post-footer-meta .footer-meta-item {
    margin-left: 15px;
}

.post-footer-meta .footer-meta-item.edited {
    color: #bbb;
}

/* 附件列表样式 */
.thread-attach-list {
    margin-top: 24px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 8px;
}

.thread-attach-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.thread-attach-title i {
    color: #1890ff;
}

.thread-attach-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thread-attach-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.thread-attach-item:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.thread-attach-item i {
    font-size: 16px;
}

.thread-attach-filename {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-attach-size {
    color: #999;
    font-size: 12px;
}

/* 回复区域样式 */
.replies-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.replies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.replies-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.reply-sort-controls {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    transition: all 0.2s;
}

.sort-btn:hover,
.sort-btn.active {
    background: #1890ff;
    color: #fff;
}

/* 单个回复样式 */
.reply-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-meta {
    flex: 1;
}

.reply-author {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.reply-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.reply-content {
    padding-left: 52px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.reply-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-left: 52px;
}

.reply-actions button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.reply-actions button:hover {
    background: #f5f5f5;
    color: #666;
}

.reply-actions button.active {
    color: #1890ff;
}

/* 引用样式 */
.quote-box {
    background: #f6f8fa;
    border-left: 3px solid #1890ff;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
}

.quote-author {
    font-size: 13px;
    font-weight: 500;
    color: #1890ff;
    margin-bottom: 6px;
}

.quote-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 管理下拉菜单 */
.post-admin-dropdown {
    position: relative;
}

.admin-dropdown-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s;
}

.admin-dropdown-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.admin-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 140px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.admin-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #333;
}

.dropdown-item.danger {
    color: #ff4d4f;
}

.dropdown-item.danger:hover {
    background: #fff1f0;
}

/* 回复框样式 */
.reply-form-section {
    margin-top: 30px;
    padding: 24px;
    background: #fafbfc;
    border-radius: 8px;
}

.reply-form-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}

.reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s;
}

.reply-textarea:focus {
    border-color: #1890ff;
    outline: none;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    color: #666;
    background: #f5f5f5;
}

.pagination a:hover {
    background: #e8e8e8;
}

.pagination .current {
    color: #fff;
    background: #1890ff;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}
