/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 颜色变量 */
    --color-primary: #0071e3;
    --color-secondary: #7f8c8d;
    --color-success: #27ae60;
    --color-danger: #e74c3c;
    --color-warning: #f39c12;
    --color-dark: #2c3e50;
    --color-light: #f8f9fa;
    --color-gray: #95a5a6;
    
    /* 间距变量 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* 字体变量 */
    --font-size-sm: 0.8rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.5rem;
    
    /* 其他常用变量 */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.2);
}

/* 横幅插图区域样式 */
.banner-section {
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #005EA4; /* 添加默认背景色 */
}

/* 隐藏原来的图片元素 */
.banner-image {
    display: none;
}

.banner-img {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-section {
        height: 400px;
    }
}

body {
    font-family: -apple-system, Microsoft YaHei UI,BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: var(--color-light);
    font-size: var(--font-size-base);
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: bold;
    transition: color 0.2s ease;
    position: relative;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--color-dark);
}

.nav-link.active {
    color: var(--color-dark);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.user-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* 按钮样式 - 使用CSS变量简化 */
.btn {
    --bg-color: #f5f5f7;
    --border-color: #d2d2d7;
    --text-color: #333;
    --hover-bg: #e0e0e6;
    --hover-border: #c6c6cc;
    --active-bg: #d6d6dd;
    
    display: inline-block;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: normal;
    line-height: 1.3;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn--primary {
    --bg-color: var(--color-primary);
    --border-color: var(--color-primary);
    --text-color: white;
    --hover-bg: #0062c4;
    --hover-border: #0062c4;
    --active-bg: #0054a8;
}

.btn--outline {
    --bg-color: transparent;
    --border-color: var(--color-primary);
    --text-color: var(--color-primary);
    --hover-bg: rgba(0, 113, 227, 0.08);
    --hover-border: #0062c4;
    --active-bg: rgba(0, 113, 227, 0.16);
}

.btn--danger {
    --bg-color: var(--color-danger);
    --border-color: var(--color-danger);
    --text-color: white;
    --hover-bg: #ff2d20;
    --hover-border: #ff2d20;
    --active-bg: #e63020;
}

.btn--success {
    --bg-color: var(--color-success);
    --border-color: var(--color-success);
    --text-color: white;
    --hover-bg: #219653;
    --hover-border: #219653;
    --active-bg: #1e8449;
}

.btn--warning {
    --bg-color: var(--color-warning);
    --border-color: var(--color-warning);
    --text-color: white;
    --hover-bg: #e67e22;
    --hover-border: #e67e22;
    --active-bg: #d35400;
}

.btn--sm {
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 1.2rem;
    border-radius: 8px;
    gap: 0.5rem;
}

.btn--xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--hover-border);
}

.btn:active {
    background-color: var(--active-bg);
    transform: scale(0.98);
}

/* 工具栏按钮 - 使用标准按钮样式 */
.btn--toolbar {
    padding: 0.3rem 0.6rem;
    border: 1px solid #d2d2d7;
    border-radius: 5px;
    background-color: #f5f5f7;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-weight: normal;
}

.btn--toolbar:hover {
    background-color: #e0e0e6;
    border-color: #c6c6cc;
}

.main-container {
    width: 90%;
    margin: 1rem auto;
    padding: 0 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-section {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 0.2rem;
}

.section-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #f1f2f3;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--color-dark);
    margin: 0;
}

.message-form {
    padding: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafbfc;
}

.ck-editor__editable {
    min-height: 350px;
    max-width: 100%;
    min-width: 600px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    background-color: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

.ck-editor__editable:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    background-color: #ffffff;
}

.ck-editor__editable img {
    max-width: 70%;
    width: auto;
    height: auto;
    
    display: block;
    margin: 1rem auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ck-toolbar {
    border: 1px solid #e1e4e8;
    border-radius: 8px 8px 0 0;
    border-bottom: 0;
    
    max-width: 100%;
    min-width: 600px;
    background-color: #f5f5f7;
}

#replyEditor .ck-editor__editable {
    min-height: 250px;
    max-width: 100%;
    min-width: 600px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    background-color: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

#replyEditor .ck-editor__editable:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    background-color: #ffffff;
}

#replyEditor .ck-editor__editable img {
    max-width: 70%;
    width: auto;
    height: auto;
    
    display: block;
    margin: 1rem auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#replyEditor .ck-toolbar {
    border: 1px solid #e1e4e8;
    border-radius: 8px 8px 0 0;
    border-bottom: 0;
    
    max-width: 100%;
    min-width: 600px;
    background-color: #f5f5f7;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    background-color: #ffffff;
}

/* 确保搜索框和下拉列表具有相同的高度和字体大小 */
#categoryFilter.form-control,#searchInput.form-control {
    height: calc(2rem + 2px + 2px); 
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.5;
    vertical-align: middle;
    width: 18rem;  
    padding: 0.5rem 1.2rem;  
}

/* 统一搜索栏样式 */
.unified-search-bar {
    display: flex;
    align-items: center;
}

.form-actions {
    text-align: right;
    margin-top: 2rem; 
}

.floor-number {
    font-weight: normal;
    color: var(--color-danger);
    background-color: #fadbd8;
    padding: 0.3rem 0.7rem; 
    border-radius: 12px;
    font-size: 0.9rem; 
    margin-right: 0.7rem; 
}

.edit-status {
    font-weight: normal;
    color: #27ae60;
    background-color: #d5f5e3;
    padding: 0.3rem 0.7rem; 
    border-radius: 12px;
    font-size: 0.9rem; 
    margin-left: 0.7rem; 
}

.admin-actions {
    display: flex;
    gap: 0.7rem; 
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: -1;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 2rem;
    font-weight: normal;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1002;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

#editMessageContent {
    width: 100%;
    min-height: 180px; 
    padding: 1rem 1.2rem; 
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1.1rem; 
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafbfc;
}

#editMessageContent:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    background-color: #ffffff;
}

.pagination-container {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.pagination-info {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 0.3rem; 
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 30px; 
    padding: 0.3rem 0.6rem; 
    font-size: 0.8rem; 
}

.pagination-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-container {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    width: 100%;
    max-width: 650px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    position: relative;
    z-index: 1001;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f2f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: normal;
    color: var(--color-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: #f1f2f3;
}

.modal-body {
    padding: 1.5rem;
}

.topic-detail-section {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 3.5rem; 
}

.breadcrumb-nav {
    padding-bottom: 1.5rem; 
    border-bottom: 1px solid #f1f2f3;
    margin-bottom: 2rem; 
    font-size: 1rem; 
}

.breadcrumb-link {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.2s ease;
    font-size: 1rem; 
}

.breadcrumb-link:hover {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-current {
    color: var(--color-dark);
    font-weight: normal;
    font-size: 1rem; 
}

.topic-header {
    border-bottom: 1px solid #f1f2f3;
    padding-bottom: 2rem; 
    margin-bottom: 2rem; 
    text-align: center; 
}

.topic-header h2 {
    font-size: 1.5rem; 
    margin: 0 0 1rem 0; 
    color: var(--color-dark);
    word-wrap: break-word;
}

.topic-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.topic-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid #f1f2f3;
}

.topic-content img {
    max-width: 70%;
    width: auto;
    height: auto;
    
    display: block;
    margin: 1rem auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.topic-content img:hover {
    transform: scale(1.02);
}

.replies-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: normal;
    color: var(--color-dark);
}

.reply-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f2f3;
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reply-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reply-username {
    font-weight: normal;
    color: var(--color-dark);
}

.reply-timestamp {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.reply-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 1rem;
    margin-left: 3.5rem;
}

.reply-content img {
    max-width: 70%;
    width: auto;
    height: auto;
    
    display: block;
    margin: 1rem auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reply-content img:hover {
    transform: scale(1.02);
}

.reply-actions {
    margin-top: 1rem;
    text-align: right;
}

.load-more-container {
    text-align: center;
    margin: 1rem 0;
}

.reply-form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f2f3;
}

.reply-form-section h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--color-dark);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-top: 0.3rem;
}

.scroll-navigation {
    position: fixed;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 113, 227, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: rgba(0, 113, 227, 1);
    transform: scale(1.1);
}

/* 表单注释样式 */
.form-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-align: right;
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.message-info {
    background-color: var(--color-info);
}

.message-success {
    background-color: var(--color-success);
}

.message-error {
    background-color: var(--color-danger);
}

.message-warning {
    background-color: var(--color-warning);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.topics-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 0.9rem;
    table-layout: fixed;
    margin: 0;
}

.topics-table th,
.topics-table td {
    padding: 0.7rem 0.9rem; /* 减小内边距 */
    text-align: left;
    border-bottom: 1px solid #f1f2f3;
    height: 3rem;
    line-height: 1.8; /* 稍微减小行高 */
}

.topics-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.topics-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.topics-table tbody tr:hover {
    background-color: #f0f8ff;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.topics-table th {
    background-color: #edf0f1;
    font-weight: 600; 
    color: #53595f;
    font-size: 0.65rem; /* 根据用户偏好设置 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.6rem; /* 减小表头内边距 */
}

.topics-table th:first-child,
.topics-table td:first-child {
    width: 60px; /* 稍微减小宽度 */
    text-align: center;
    padding: 0.3rem 0.5rem; /* 进一步减小内边距 */
}

.topics-table th:nth-child(2),
.topics-table td:nth-child(2) {
    width: auto;
    padding: 0.3rem 0.5rem; /* 减小内边距 */
}

.topics-table th:nth-child(3),
.topics-table td:nth-child(3) {
    width: 60px; /* 减小宽度 */
    padding: 0.3rem 0.5rem; /* 减小内边距 */
}

.topics-table th:nth-child(4),
.topics-table td:nth-child(4) {
    width: 100px; /* 减小宽度 */
    padding: 0.3rem 0.5rem; /* 减小内边距 */
}

.topics-table th:nth-child(5),
.topics-table td:nth-child(5) {
    width: 60px; /* 减小宽度 */
    padding: 0.3rem 0.5rem; /* 减小内边距 */
}

.topics-table th:nth-child(6),
.topics-table td:nth-child(6) {
    width: 120px; /* 减小宽度 */
    padding: 0.3rem 0.5rem; /* 减小内边距 */
    font-size: 0.6rem; /* 根据用户偏好设置 */
}

.topics-table .topic-title {
    color: var(--color-dark);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    flex: 1;
}

.topics-table td:nth-child(2) {
    width: auto;
    max-width: none;
}

.topics-table .topic-title-bold {
    font-weight: bold;
}

.topics-table .topic-title-hidden {
    color: var(--color-gray);
}

.topics-table .topic-title:hover {
    text-decoration: none;
}

/* 表格单元格内的文字溢出处理 */
.topics-table th,
.topics-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主题标题单元格的特殊处理 */
.topics-table td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.topics-table td:nth-child(2) a {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    padding-right: 20px;
    box-sizing: border-box;
}

.topics-table td:nth-child(2) .pinned-icon,
.topics-table td:nth-child(2) .new-icon {
    flex-shrink: 0;
}

.pinned-icon {
    font-weight: bold;
    font-size: 0.6rem;
    background-color: #ff7f00; /* 橘红色 */
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-right: 3px;
    vertical-align: middle;
}

.new-icon {
    font-weight: bold;
    font-size: 0.6rem;
    background-color: #27ae60; /* 绿色 */
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-right:3px;
    vertical-align: middle;
}

.special-indicator {
    color: var(--color-danger);
    margin-right: 5px;
    font-weight: normal;
    font-size: 0.9rem;
}

.topics-table .username,
.topics-table .reply-count,
.topics-table .view-count {
    color: var(--color-secondary);
    font-size: 0.8rem; /* 稍微减小字体大小 */
}

.topics-table .last-reply {
    color: var(--color-gray);
    font-size: 0.6rem; /* 根据用户偏好设置 */
}

.topic-detail-section {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 1.5rem; 
}

.breadcrumb-nav {
    padding-bottom: 1.5rem; 
    border-bottom: 1px solid #f1f2f3;
    margin-bottom: 2rem; 
    font-size: 1rem; 
}

.breadcrumb-link {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.2s ease;
    font-size: 1rem; 
}

.breadcrumb-link:hover {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-current {
    color: var(--color-dark);
    font-weight: normal;
    font-size: 1rem; 
}

.topic-header {
    border-bottom: 1px solid #f1f2f3;
    padding-bottom: 2rem; 
    margin-bottom: 2rem; 
    text-align: center; 
}

.topic-header h2 {
    font-size: 1.5rem; 
    margin: 0 0 1rem 0; 
    color: var(--color-dark);
    word-wrap: break-word;
}

.topic-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.topic-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f2f3;
}

.topic-content img {
    max-width: 70%;
    width: auto;
    height: auto;
    
    display: block;
    margin: 1rem auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.topic-content img:hover {
    transform: scale(1.02);
}

.replies-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: normal;
    color: var(--color-dark);
}

.reply-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f2f3;
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reply-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reply-username {
    font-weight: normal;
    color: var(--color-dark);
}

.reply-timestamp {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.reply-content {
    line-height: 1.8;
    color: #34495e;
    font-size: 1rem;
    margin-left: 3.5rem;
}

.reply-content img {
    max-width: 70%;
    width: auto;
    height: auto;
    
    display: block;
    margin: 1rem auto;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reply-content img:hover {
    transform: scale(1.02);
}

.reply-actions {
    margin-top: 1rem;
    text-align: right;
}

.reply-form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f2f3;
}

.reply-form-section h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--color-dark);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-top: 0.3rem;
}

.scroll-navigation {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 113, 227, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: rgba(0, 113, 227, 1);
    transform: scale(1.1);
}

/* 权限拒绝提示样式 */
.permission-denied-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.permission-denied-message h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.permission-denied-message p {
    color: #6c757d;
    margin: 10px 0;
}

.permission-denied-message ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    padding-left: 20px;
}

.permission-denied-message li {
    margin: 8px 0;
    color: #6c757d;
}

/* 分类名称样式 */
.category-name {
    margin-right: 5px;
    font-weight: bold; /* 默认加粗显示所有分类名称 */
}

.category-name.category-restricted {
    color: #dc3545; /* 红色表示指定人员可见 */
    font-weight: bold;
}

.category-name.category-login-required {
    color: #006400; /* 深绿色表示登录可见 */
    font-weight: bold;
}

/* 分类权限类型提示样式 */
.permission-indicator {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.8em;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.permission-indicator.login-required {
    background-color: #ffc107;
    color: #212529;
}

.permission-indicator.restricted {
    background-color: #dc3545;
    color: white;
}

/* 登录可见主题的特殊样式 */
.login-required-topic {
    cursor: pointer;
}

/* 登录可见主题行的悬停效果 */
tr.login-required-row:hover {
    background-color: #f8d7da !important; /* 浅红色背景 */
}

tr.login-required-row:hover td {
    color: #dc3545 !important; /* 深红色文字 */
}
