/* 在文件开头添加这些样式 */
.qa-section-title {
    line-height: 40px; /* 与输入框高度一致 */
    white-space: nowrap; /* 防止文字换行 */
    font-size: 1.2rem; /* 调整标题大小 */
}

/* 搜索框和问题输入框的通用样式 */
.search-input,
.question-input {
    border-radius: 20px 0 0 20px !important;
    border: 2px solid #e0e0e0;
    padding: 8px 15px;
    transition: all 0.3s ease;
    height: 40px;
}

.search-input:focus,
.question-input:focus {
    border-color: #1e88e5;
    box-shadow: none;
}

/* 按钮通用样式 */
.btn-search,
.btn-ask {
    border-radius: 0 20px 20px 0 !important;
    background-color: #1e88e5;
    color: white;
    padding: 8px 15px;
    border: 2px solid #1e88e5;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-search:hover,
.btn-ask:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    color: white;
}

/* 图标样式 */
.btn-search i,
.btn-ask i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* 输入组样式调整 */
.search-group,
.question-group {
    height: 40px;
}

/* 深色主题适配 */
body.dark-theme .search-input,
body.dark-theme .question-input {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-theme .search-input:focus,
body.dark-theme .question-input:focus {
    border-color: #1e88e5;
}

body.dark-theme .search-input::placeholder,
body.dark-theme .question-input::placeholder {
    color: #888;
}

/* 深色主题下的按钮样式 */
body.dark-theme .btn-search,
body.dark-theme .btn-ask {
    background-color: #1e88e5;
    border-color: #1e88e5;
}

body.dark-theme .btn-search:hover,
body.dark-theme .btn-ask:hover {
    background-color: #1976d2;
    border-color: #1976d2;
}

/* 在文件末尾添加这些样式 */

/* 问答卡片样式 */
.qa-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.qa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-card-body {
    padding: 15px;
}

/* 问题编号样式 */
.qa-number {
    background: #1e88e5;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* 日期样式 */
.qa-date {
    color: #666;
    font-size: 0.9rem;
}

/* 问题标题样式 */
.qa-title-link {
    text-decoration: none;
    color: inherit;
}

.qa-title {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.4;
}

.qa-title-link:hover .qa-title {
    color: #1e88e5;
}

/* 评论数样式 */
.qa-comments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #666;
    font-size: 0.9rem;
}

.qa-comments i {
    margin-right: 5px;
}

/* 深色主题适配 */
body.dark-theme .qa-card {
    background: #242424;
    border-color: #333;
}

body.dark-theme .qa-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .qa-title {
    color: #e0e0e0;
}

body.dark-theme .qa-date,
body.dark-theme .qa-comments {
    color: #888;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .qa-comments {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .qa-title {
        margin: 10px 0;
    }
}

/* 在文件中添加问答详情页样式 */

/* 详情卡片样式 */
.qa-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top: 20px;
}

/* 答标签样式 */
.qa-label {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #1e88e5;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

.answer-label {
    background: #2e7d32;
}

/* 标题样式 */
.qa-detail-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.qa-detail-title h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* 分隔线样式 */
.qa-divider {
    margin: 25px 0;
    border-color: #eee;
}

/* 内容样式 */
.qa-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    padding-left: 55px;
}

/* 侧边栏样式 */
.qa-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

/* 侧边栏标题样式 */
.sidebar-header {
    padding: 15px 20px;
    border-bottom: 2px solid #eee;
    background: #fff;
    color: #333;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    font-size: 1.2rem;
    color: #1e88e5;
}

.sidebar-title h4 {
    font-weight: 500;
    color: #333;
}

/* 内容区域样式 */
.sidebar-content {
    padding: 15px;
}

/* 相关问题项样式 */
.qa-sidebar-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.qa-sidebar-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.qa-sidebar-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 问题标签样式 */
.qa-mini-label {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #1e88e5;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 8px;
}

.qa-sidebar-question {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.qa-sidebar-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
    color: #333;
}

/* 元信息样式 */
.qa-sidebar-meta {
    padding-left: 32px;
    font-size: 0.85rem;
    color: #666;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 更多按钮样式 */
.btn-more {
    width: 100%;
    background: transparent;
    border: 2px solid #1e88e5;
    color: #1e88e5;
    padding: 8px;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-more:hover {
    background: #1e88e5;
    color: white;
}

/* 深色主题适配 */
body.dark-theme .qa-sidebar {
    background: #242424;
}

body.dark-theme .sidebar-header {
    background: #242424;
    border-bottom-color: #333;
    color: #e0e0e0;
}

body.dark-theme .sidebar-title h4 {
    color: #e0e0e0;
}

body.dark-theme .sidebar-title i {
    color: #1e88e5;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .qa-detail-card {
        padding: 15px;
    }
    
    .qa-detail-content {
        padding-left: 0;
    }
}

/* 修改回答部分的样式 */
.qa-answer-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.answer-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* 移除之前的内容padding */
.qa-detail-content {
    padding-left: 0;
}

/* 确保深色主题下的样式正确 */
body.dark-theme .answer-text {
    color: #bbb;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .qa-answer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .answer-text {
        padding-left: 0;
    }
} 