.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);
}

.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; 
}

.scroll-navigation {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

/* 权限拒绝提示样式 */
.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; /* 深红色文字 */
}

@media (max-width: 800px) {
    .scroll-navigation {
        position: fixed;
        right: 20px;
        bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 100;
    }
    
    .reply-content {
        margin-left: 0;
    }
    
    .topic-detail-section {
        padding: 1.5rem;
    }
    
    /* 面包屑导航在移动端的优化 */
    .breadcrumb-nav {
        font-size: 0.9rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 0.9rem;
    }
}

/* 移动端适配 - 面包屑导航在极小屏幕上的优化 */
@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
        padding-bottom: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 0.8rem;
    }
    
    .topic-detail-section {
        padding: 1rem;
    }
    
    .topic-header h2 {
        font-size: 1.3rem;
    }
    
    .topic-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

.topic-title-text {
    color: var(--color-dark);
}