/* 详情页样式 */
@media screen and (min-width: 1400px) {
    .layui-container {
        width: 1200px;
    }
}

.detail-container {
    max-width: 1200px;
    margin: 10px auto 40px;
    padding: 40px 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body {
    padding-top: 0 !important;
    background: #edeff1;
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background: #edeff1;
    margin-top: 60px;
}
.breadcrumb {
    padding-top: 20px;
    padding-bottom: 5px;
    font-size: 14px;
    color: #666;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #ff6b35;
}
.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}
.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 文章标题区 */
.article-header {
    margin-bottom: 30px;
}
.article-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 20px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 14px;
}
.article-meta .category-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #fff5f2;
    color: #ff6b35;
    font-size: 12px;
    border-radius: 4px;
}
.article-meta .author-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-meta .author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.article-meta .author-name {
    color: #666;
    font-size: 14px;
}
.article-meta .dot {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}
.article-meta .publish-time {
    color: #999;
}
.article-meta .view-count {
    color: #999;
}

/* 文章内容区 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.article-content h1,
.article-content h2,
.article-content h3 {
    margin: 30px 0 15px;
    color: #1a1a1a;
}
.article-content p {
    margin-bottom: 15px;
}
.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}
.article-content li {
    margin-bottom: 8px;
}

/* 文章操作按钮 */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}
.article-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}
.article-actions .action-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
}
.article-actions .action-btn.active {
    background: #fff5f2;
    border-color: #ff6b35;
    color: #ff6b35;
}
.article-actions .action-btn i {
    font-size: 24px;
}
.article-actions .action-btn span {
    font-size: 14px;
}

/* 评论区域 */
.comment-section {
    margin-top: 40px;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.comment-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.comment-header .comment-count {
    color: #999;
    font-weight: normal;
}
.comment-sort {
    display: flex;
    gap: 15px;
}
.comment-sort .sort-item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}
.comment-sort .sort-item:hover,
.comment-sort .sort-item.active {
    color: #ff6b35;
    background: #fff5f2;
}

/* 评论列表 */
.comment-list {
    margin-bottom: 20px;
    min-height: 10px;
}
.comment-item {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
}
.comment-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comment-user {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}
.comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #FFF7D6;
    color: #9b500f;
    font-size: 12px;
    border-radius: 4px;
}
.comment-badge i {
    font-size: 12px;
}
.comment-time {
    font-size: 13px;
    color: #999;
}
.comment-content {
    color: #444;
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 14px;
}
.comment-footer {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}
.comment-footer .reply-btn,
.comment-footer .like-btn {
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.comment-footer .reply-btn:hover,
.comment-footer .like-btn:hover {
    color: #ff6b35;
}
.comment-footer .like-btn.liked {
    color: #ff6b35;
}

/* 回复列表 */
.reply-list {
    margin-top: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.reply-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.reply-item:last-child {
    border-bottom: none;
}
.reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.reply-body {
    flex: 1;
}
.reply-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.reply-user {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}
.reply-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    background: #fff5f2;
    color: #ff6b35;
    font-size: 11px;
    border-radius: 3px;
}
.reply-badge i {
    font-size: 11px;
}
.reply-content {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
}
.reply-content .at-user {
    color: #ff6b35;
}
.reply-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}
.reply-footer .reply-btn,
.reply-footer .like-btn {
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 3px;
}
.reply-footer .reply-btn:hover,
.reply-footer .like-btn:hover {
    color: #ff6b35;
}

/* 发布评论区域 */
.comment-form {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}
.comment-form-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.comment-form textarea:focus {
    outline: none;
    border-color: #ff6b35;
}
.comment-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
.comment-form .form-tips {
    font-size: 13px;
    color: #999;
}
.comment-form .submit-btn {
    padding: 10px 30px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.comment-form .submit-btn:hover {
    background: #e55a2b;
}

/* 加载更多按钮 */
.comment-loadmore {
    text-align: center;
    padding: 20px;
}
.comment-loadmore .loadmore-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.comment-loadmore .loadmore-btn:hover {
    background: #ff6b35;
    color: #fff;
}
.comment-loadmore .loadmore-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}
.comment-loadmore .no-more {
    color: #999;
    font-size: 14px;
}

/* ==================== 排序下拉菜单（公共样式） ==================== */
.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}

.sort-dropdown-trigger:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 100px;
    z-index: 100;
    display: none;
    text-align: center;
}

.sort-dropdown.open .sort-dropdown-menu {
    display: block;
}

.sort-dropdown-item {
    padding: 6px 12px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

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

.sort-dropdown-item.active {
    color: #ff6b35;
    font-weight: 500;
}

/* ==================== 评论/回答区域头部（公共样式） ==================== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header-row h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-header-row .count {
    color: #999;
    font-weight: normal;
    margin-left: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        margin-top: 50px;
    }
    .detail-container {
        margin: 10px;
        padding: 20px;
    }
    .article-title {
        font-size: 22px;
    }
    .article-actions {
        gap: 15px;
    }
    .article-actions .action-btn {
        padding: 10px 20px;
    }
}
