/* 问答社区样式 */

/* 问题详情页面 */
.question-detail {
    background-color: #FFFFFF;
    padding: 0 30px 30px;
    border-radius: 4px;
}

.question-detail .question-header {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;

}
.question-detail .question-header .title{
    border-bottom: 1px solid #f0f4f5;
}
.question-content {
    min-height: 100px;
}

.question-content .content-body {
    line-height: 1.6;
    font-size: 15px;
    color: #212529;
    word-wrap: break-word;
    font-weight: 400;
}

.question-content .content-body p {
    margin-bottom: 1rem;
}

.question-meta {
    color: #bdbdbd !important;
}

.question-meta .badge {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

/* 问题标签 */
.question-tags .badge {
    font-size: 0.75em;
    /* 从 0.875em 改为 0.75em，更小 */
    padding: 0.25em 0.5em;
    /* 从 0.5em 0.75em 改为 0.25em 0.5em，更紧凑 */
    background-color: #f8f9fa !important;
    /* 浅灰色背景 */
    color: #6c757d !important;
    /* 浅色文字 */
    border: 1px solid #e9ecef;
    /* 添加浅色边框 */
}

/* 回答区域 */

.answer-item {
    border-left: 3px solid #f8f9fa;
    background-color: #fefefe;
}

.answer-item:hover {
    border-left-color: #007bff;
    background-color: #f8f9fa;
}

.answer-actions {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.question-like-btn.active {
    color: #dc3545 !important;
}

.question-like-btn.active i {
    color: #dc3545 !important;
}

/* 评论框 */
.question-box {
    background-color: #f1f3f4;
    border-top: 1px solid #dee2e6;
}

.question-box .comment-form {
    margin-bottom: 0;
}

.question-box .list-unstyled {
    max-height: 300px;
    overflow-y: auto;
}

.question-box .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.question-box .list-unstyled li:last-child {
    border-bottom: none;
}

/* 回答表单 */
.answer-form {
    border: 2px solid #e9ecef;
    background-color: #fafbfc;
}

.answer-form .card-title {
    color: #202634;
}

/* 侧边栏 */
.question-nav-widget .btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.question-stats-widget .list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    background-color: transparent;
}

.question-stats-widget .badge {
    font-size: 0.875em;
    min-width: 2rem;
}

.question-recent-widget .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    padding: .5rem 1rem;
}

.question-recent-widget .list-group-item:hover {
    border-left-color: #007bff;
}

.question-recent-widget .list-group-item a {
    text-decoration: none;
    color: inherit;
}

.question-recent-widget .list-group-item a:hover {
    color: #007bff;
}

.question-tags-widget .badge {
    margin: 0.125rem;
    padding: 0.5em 0.75em;
    transition: all 0.2s ease;
}

.question-tags-widget .badge:hover {
    background-color: #007bff !important;
    color: white !important;
    text-decoration: none;
}

/* 问题列表页面 */
.question-publish-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.question-publish-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.question-publish-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.question-publish-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.question-item {
    transition: all 0.2s ease;
}

.question-item .card-title a {
    color: #495057;
    transition: color 0.2s ease;
    display: inline-block;
    width: 100%;
}

.question-item .card-text {
    color: #888888;
    font-size: 85%;
}
.question-item .card-text a {
    display: inline-block;
    width: 100%;
}

.question-stats {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.question-stats .stat-item {
    text-align: center;
    padding: 0.75rem;
}

.question-stats .stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.question-stats .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .question-meta>span {
        margin-bottom: 0.5rem;
    }

    .question-stats .row>div {
        margin-bottom: 0.5rem;
    }

    .answer-actions {
        flex-direction: column;
    }

    .answer-actions .btn {
        margin-bottom: 0.5rem;
    }
}

/* 动画效果 */
.question-item,
.answer-item,
.question-box {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

/* 图标颜色 */
.text-success {
    color: #28a745 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* 问题列表样式 - 仿rizhuti-v2 */

/* 基础列表容器样式 */
.posts-wrapper .post-list,
.posts-wrapper .post-grid {
    background-color: #FFF;
    padding: 10px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* 问题列表基础样式 */
.post-list {
    display: block;
    margin-bottom: 30px;
}

/* 问题类型特殊样式 */
.post-list.question {
    border-radius: 0;
    margin: 0;
    padding: 15px 10px;
    border-top: 1px solid #f0f4f5;
    background-color: #FFFFFF;
}

/* 条目包装器样式 */
.entry-wrapper {
    padding: 0;
    width: 100%;
}

.post-list.question:first-child {
    border-top: none;
}

/* 问题标题样式 */
.question .entry-header .entry-title {
    letter-spacing: normal;
    display: -webkit-box;
    -webkit-line-clamp: initial;
    white-space: normal;
    height: auto;
    margin: 15px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.question .entry-title a {
    color: #212529;
    text-decoration: none;
}

.question .entry-title a:hover {
    color: #2196F3;
    transition: color 0.3s ease;
}

/* 问题摘要样式 */
.question .entry-excerpt {
    letter-spacing: normal;
    display: -webkit-box;
    -webkit-line-clamp: initial;
    white-space: normal;
    height: auto;
    margin: 10px 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 问题底部元信息区域 */
.question .entry-footer {
    position: relative;
    margin-top: 10px;
}

.question .entry-info {
    position: relative;
}
.entry-footer .entry-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #bdbdbd;
    letter-spacing: -0.2px;
    width: 100%;
}

.entry-info .entry-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #bdbdbd;
    letter-spacing: -0.2px;
    width: 100%;
}

.entry-info .entry-meta>span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}
.entry-footer .entry-meta>span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.entry-footer .entry-meta>span:last-child {
    margin-right: 0;
}

.entry-info .entry-meta>span:last-child {
    margin-right: 0;
}

.entry-footer .entry-meta a {
    color: #212529;
    text-decoration: none;
}
.entry-info .entry-meta a {
    color: #212529;
    text-decoration: none;
}

.entry-footer .entry-meta a:hover {
    color: #2196F3;
    transition: color 0.3s ease;
}

/* 作者信息样式 */
.entry-meta .meta-author {
    display: flex;
    align-items: center;
}

.entry-meta .meta-author .d-flex {
    align-items: center;
}

.entry-meta .avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

/* 时间信息样式 */
.entry-meta .meta-date {
    display: flex;
    align-items: center;
}

.entry-meta .meta-date i {
    margin-right: 4px;
}

/* 浏览量样式 */
.entry-meta .meta-views {
    display: flex;
    align-items: center;
}

.entry-meta .meta-views i {
    margin-right: 4px;
}

/* 评论数样式 */
.entry-meta .meta-comment {
    display: flex;
    align-items: center;
    color: #212529;
}

.entry-meta .meta-comment i {
    margin-right: 4px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .entry-excerpt {
        display: none;
    }

    .entry-footer .meta-author {
        display: none;
    }

    .posts-wrapper .post-list,
    .posts-wrapper .post-grid {
        padding: 5px;
    }

    .post-list.question {
        padding: 15px 10px;
    }

    .entry-footer .entry-meta>span {
        margin-right: 15px;
        font-size: 11px;
    }

    .question .entry-header .entry-title {
        font-size: 15px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {

    .posts-wrapper .post-list,
    .posts-wrapper .post-grid {
        background-color: #2a2a2a;
    }

    .post-list.question {
        border-top-color: #404040;
    }

    .question .entry-title a {
        color: #e0e0e0;
    }

    .question .entry-excerpt {
        color: #b0b0b0;
    }

    .entry-footer .entry-meta {
        color: #888;
    }

    .entry-footer .entry-meta a {
        color: #212529;
    }
}

/* 无限滚动相关样式 */
.infinite-scroll-status {
    text-align: center;
    padding: 20px 0;
}

.infinite-scroll-request {
    color: #666;
}

.infinite-scroll-action {
    padding: 20px 0;
    text-align: center;
}

.infinite-scroll-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.infinite-scroll-button:hover {
    background-color: #1976D2;
    transition: background-color 0.3s ease;
}

/* =================== rizhuti-v2 完整问答样式补充 =================== */

/* 问答区域容器样式 */
.question-area {
    position: relative;
    background: #fff;
    padding: 0 30px;
    border-radius: 4px;
}

.question-area .title {
    border-bottom: 1px solid #f0f4f5;
}

.question-area .pagination {
    margin-top: 10px;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.question-area .infinite-scroll-action {
    padding-bottom: 30px;
}

/* 问答列表样式 */
.question-list {
    position: relative;
}

.question-list .question-item {
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid #f0f4f5;
}

/* 问答项目头部样式 */
.question-item header {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    color: #bdbdbd;
    width: 100%;
}

.question-item header>span {
    margin-right: 15px;
}

.question-item .avatar {
    border-radius: 50%;
    height: 20px;
    margin-right: 3px;
    width: 20px;
}

.question-item footer>span {
    margin-right: 15px;
}

/* 问答框样式 */
.question-item .question-box {
    border: 1px solid #f0f4f5;
    border-radius: 4px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.question-item .question-box h5 {
    font-size: 14px;
    margin: 0;
    padding: 15px 20px;
}

.question-item .question-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.question-item .question-box ul>li {
    padding: 15px 20px;
    border-top: 1px solid #f6f6f6;
}

.question-item .question-box .comment-form {
    position: relative;
    padding: 15px 20px;
    border-top: 1px solid #e9e9e9;
}

/* 问答表单样式 */
.question-list .question-form {
    position: relative;
    background-color: #fff;
    padding: 20px;
    overflow: hidden;
    border-radius: 4px;
}

.question-list .question-form h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.question-list .question-form h4 {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: normal;
    color: #999;
}

/* 代码样式 */
.question-list code,
.article-content code {
    padding: 10px;
    background: #2b303b;
    border-radius: 3px;
    border: 0;
    color: #6fbb72;
    margin: 10px 0;
    width: 100%;
    display: block;
}

/* 问答表单区域样式 */
.question-form .question-form-area {
    position: relative;
}

.question-form .question-form-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e7eaf3;
    border-bottom: none;
    color: #666;
    font-size: 14px;
    background-color: #f5fafb;
}

.question-form .question-form-area li {
    line-height: 36px;
    padding: 0 15px;
    float: left;
    cursor: pointer;
}

.question-form .question-form-area li:hover {
    background-color: #f0f4f5;
}

.question-form-area .form-control {
    border-radius: 0 0 4px 4px;
}

/* 问答用户小组件样式 */
.widget.question-users .avatar {
    border: 4px solid #f0f4f5;
    border-radius: 50%;
}
.avatar-img {
    width: 20px;
    height: 20px;
 
}
.widget.question-users ul>li b {
    font-weight: normal;
}

.widget.question-users ul>li {
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #F6F6F6;
}

.widget.question-users ul>li:last-child {
    border-bottom: none;
}

/* =================== 深色模式样式 =================== */
.dark-open .question-area {
    background: #293042;
}

.dark-open .post-list.question {
    border-color: #202634;
}

.dark-open .widget.question-users ul>li {
    border-color: #202634;
}

.dark-open .question-list .question-item {
    background: #293042;
}

.dark-open .question-item footer>span {
    color: #eee;
}

.dark-open .question-list .question-form {
    background-color: #293042;
}

.dark-open .entry-comments {
    background: #293042;
}

.dark-open .comment-form {
    border-color: #384156;
    background: #202634;
}

.dark-open .comment-form-comment textarea {
    border-color: #384156;
    background: #202634;
}

/* =================== FAQ 容器样式 =================== */
.faq-container .question {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    cursor: pointer;
}

.faq-container .question:hover {
    background-color: #f8f9fa;
}

.faq-container .question:last-child {
    border-bottom: none;
}

/* =================== 移动端响应式补充 =================== */
@media (max-width: 768px) {
    .question-area {
        padding: 0 15px;
    }

    .question-list .question-item {
        padding: 15px 0;
    }

    .question-item .question-box {
        margin-top: 15px;
    }

    .question-item .question-box h5 {
        padding: 12px 15px;
        font-size: 13px;
    }

    .question-item .question-box ul>li {
        padding: 12px 15px;
    }

    .question-item .question-box .comment-form {
        padding: 12px 15px;
    }

    .question-list .question-form {
        padding: 15px;
    }

    .question-form .question-form-area li {
        line-height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* =================== 主题色彩变量 =================== */
:root {
    --question-primary-color: #2196F3;
    --question-secondary-color: #f0f4f5;
    --question-border-color: #e9ecef;
    --question-text-color: #212529;
    --question-muted-color: #6c757d;
    --question-background-color: #fff;
    --question-hover-color: #f8f9fa;
}

/* 使用CSS变量的样式 */
.question-area {
    background: var(--question-background-color);
}

.post-list.question {
    border-top-color: var(--question-secondary-color);
}

.question .entry-title a {
    color: var(--question-text-color);
}

.question .entry-title a:hover {
    color: var(--question-primary-color);
}

.question .entry-excerpt {
    color: var(--question-muted-color);
}

.entry-footer .entry-meta a:hover {
    color: var(--question-primary-color);
}

/* =================== ripro-v5 特定样式补充 =================== */

/* 问答导航小组件 */
.question-nav-widget .btn {
    margin-bottom: 0.5rem;
}

.question-nav-widget .btn:last-child {
    margin-bottom: 0;
}

/* 问答统计小组件 */
.question-stats-widget .list-group-item {
    border: none;
    background-color: transparent;
    padding: 0.75rem 0;
}

.question-stats-widget .list-group-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.question-stats-widget .badge {
    font-size: 1rem;
    padding: 0.5em 0.75em;
}

/* 问答最新小组件 */
.question-recent-widget .list-group-item {
    padding: 1rem;
}

.question-recent-widget .list-group-item:hover {
    background-color: #f8f9fa;
}

.question-recent-widget .list-group-item a {
    color: inherit;
}

.question-recent-widget .list-group-item a:hover {
    text-decoration: none;
}

/* 问答标签小组件 */
.question-tags-widget .badge {
    padding: 0.5em 0.75em;
    margin: 0.125rem;
}

.question-tags-widget .badge:hover {
    background-color: #007bff !important;
    color: white !important;
}

/* 问答发布表单增强 */
.question-publish-form {
    background: #fff;
    border-radius: 4px;
    padding: 1.5rem;
}

.question-publish-form .form-control {
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 14px;
}

.question-publish-form .form-control::placeholder {
    color: #adb5bd;
}

.question-publish-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* 问答项目卡片样式 */
.question-item {
    background: #fff;
}

.question-item .card-title a {
    color: #212529;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}
/* 问答统计样式 */
.question-stats {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
}

.question-stats .stat-item {
    text-align: center;
}

.question-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.question-stats .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 问答元信息样式 */
.question-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

.question-meta>span {
    margin-right: 1rem;
}

.question-stats .row>div {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .question-stats .row>div {
        margin-bottom: 0.5rem;
    }
}

/* 问答区域整体样式调整 */
.question-area .pagination {
    justify-content: center;
}

.question-area .pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.question-area .pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 兼容Bootstrap组件样式 */
.list-group-item.question-item {
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}


/* 回答排行小组件样式兼容 */
.ranking-badge .badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* 标签云增强样式 */
.tag-cloud .badge {
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 问答列表页面头部样式 */
.question-area h3 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* 侧边栏小组件统一间距 */
.widget+.widget {
    margin-top: 1.5rem;
}

/* 面包屑导航样式 */
.question-detail .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.question-detail .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.question-detail .breadcrumb-item a:hover {
    color: #007bff;
}

.question-detail .breadcrumb-item.active {
    color: #495057;
}

.question-detail .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #adb5bd;
    margin: 0 0.5rem;
}

.question-detail .breadcrumb-item i {
    font-size: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .question-detail .breadcrumb {
        font-size: 0.75rem;
    }
    
    .question-detail .breadcrumb-item {
        display: flex;
        align-items: center;
    }

    .question-detail .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.25rem;
    }
}

/* 问题详情页面重构样式 */
.question-detail {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 问题标题区域 */
.question-title-section {
    border-bottom: 1px solid #f0f0f0;
}

.question-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.question-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 问题内容区域 */
.question-content-section {
    padding-top: 1.5rem;
}

.question-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.question-content p {
    margin-bottom: 1rem;
}

.question-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* 问题媒体内容 */
.question-media {
    text-align: center;
}

.question-media img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.question-media img:hover {
    transform: scale(1.02);
}



/* 问题底部元信息 */
.question-footer {
    padding-top: 0;
}

.question-meta {
}

.author-info {
    font-size: 0.95rem;
}

.author-info .rounded-circle {
    border: 2px solid #f8f9fa;
}

.author-name {
    font-weight: 500;
    color: #495057;
}

.meta-stats {
    font-size: 0.875rem;
}

.meta-stats span {
    display: flex;
    align-items: center;
}

.meta-stats i {
    color: #adb5bd;
}

/* 问题标签重新设计 */
.question-tags {
    /* padding-top: 1rem; */
}

.question-tags .badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #e9ecef;
    font-weight: normal;
    transition: all 0.2s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .question-detail {
        padding: 1.5rem;
        border-radius: 0;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
    
    .question-subtitle {
        font-size: 0.9rem;
    }
    
    .author-info {
        margin-bottom: 0.75rem;
    }
    
    .meta-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .question-detail {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .question-title {
        color: #ffffff;
    }
    
    .question-subtitle {
        color: #b0b0b0;
    }
    
    .question-content {
        color: #d0d0d0;
    }
}

/* 回答卡片美化 */
.answer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s;
}
.answer-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.answer-card .entry-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 0.5rem;
}
.answer-card .entry-excerpt {
    color: #888;
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
}
.answer-card .entry-footer {
    border-top: 1px solid #f5f5f5;
    margin-top: 1rem;
    padding-top: 0.75rem;
}
.answer-card .meta-author .rounded-circle {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border: 2px solid #f0f0f0;
}
.answer-card .author-name {
    font-weight: 500;
    color: #495057;
}
.answer-card .meta-date,
.answer-card .meta-views {
    color: #bdbdbd;
    font-size: 0.95rem;
}
.answer-card .answer-actions .btn {
    border-radius: 6px;
    font-size: 0.98rem;
    padding: 0.35rem 1.1rem;
    margin-left: 0.5rem;
    background: #f7f8fa;
    color: #4a4a4a;
    border: 1px solid #e9ecef;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.answer-card .answer-actions .btn.active,
.answer-card .answer-actions .btn:active {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #90caf9;
}
.answer-card .answer-actions .btn:hover {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #90caf9;
}
.answer-card .answer-actions .fa {
    margin-right: 0.3em;
}

/* 子评论区块美化 */
.sub-comment-box {
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    padding: 1rem 1.2rem 0.5rem 1.2rem;
    margin-top: 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}
.sub-comment-box ul.list-unstyled {
    margin-bottom: 0.5rem;
}
.sub-comment-box li {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.sub-comment-box header {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.sub-comment-box .rounded-circle {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    border: 1px solid #e9ecef;
}
.sub-comment-box strong {
    font-weight: 500;
    color: #333;
}
.sub-comment-box small {
    color: #bdbdbd;
    font-size: 0.92rem;
    margin-left: 0.5em;
}
.sub-comment-box p {
    margin-bottom: 0;
    color: #444;
    font-size: 0.98rem;
}
.sub-comment-box .comment-form {
    margin-top: 0.5rem;
}
.sub-comment-box .input-group {
    display: flex;
    align-items: center;
}
.sub-comment-box input.form-control {
    border-radius: 4px 0 0 4px;
    border: 1px solid #e9ecef;
    font-size: 0.98rem;
    background: #fff;
    color: #333;
    padding: 0.5rem 0.75rem;
}
.sub-comment-box .btn-primary {
    border-radius: 0 4px 4px 0;
    font-size: 0.98rem;
    padding: 0.5rem 1.2rem;
    background: #1976d2;
    border: none;
    color: #fff;
    transition: background 0.2s;
}
.sub-comment-box .btn-primary:hover {
    background: #1565c0;
}
.sub-comment-loading {
    color: #bdbdbd;
    font-size: 0.98rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .answer-card {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    .sub-comment-box {
        padding: 0.7rem 0.5rem 0.3rem 0.5rem;
    }
}

/* 图片链接输入相关样式 */
.question-form .image-url-input {
    border-radius: 0.375rem 0 0 0.375rem;
}

.question-form .preview-image-btn {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.question-form .remove-image-btn {
    border-radius: 0 0.375rem 0.375rem 0;
    border-left: 0;
}

/* 图片预览样式 */
#image-preview-container .card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

#image-preview-container .card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

#image-preview-container .card-img-top {
    border-radius: 0.375rem 0.375rem 0 0;
}

#image-preview-container .remove-preview-btn {
    font-size: 0.75rem;
}

/* 添加图片按钮样式 */
#add-image-btn {
    border-style: dashed;
    transition: all 0.2s ease;
}

#add-image-btn:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .question-form .input-group .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .question-form .preview-image-btn .fa {
        margin-right: 0;
    }
    
    .question-form .preview-image-btn span,
    .question-form .remove-image-btn span {
        display: none;
    }
    
    #image-preview-container .col-6 {
        margin-bottom: 1rem;
    }
}

/* 图片预览网格布局 */
#image-preview-list {
    min-height: 50px;
}

#image-preview-list .card {
    margin-bottom: 0;
}

/* 表单验证样式 */
.image-url-input.is-invalid {
    border-color: #dc3545;
}

.image-url-input.is-valid {
    border-color: #28a745;
}

/* 加载状态 */
.image-loading {
    opacity: 0.6;
    pointer-events: none;
}

.image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}