/* 文章详情页样式 - 简约风格版（左右分栏布局） */
.qm-article-detail {
    min-height: 100vh;
    background: transparent;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 确保背景延伸到页脚 */
main.qm-article-detail {
    background: transparent;
    min-height: 100vh;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 确保主内容区背景延伸到页脚，移除底部间距 */
.qm-article-detail .qm-article-detail-container {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 确保背景完全覆盖到页脚 */
.qm-article-detail {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 移除文章详情页和页脚之间的间距 */
body.single .site-footer.mt-5 {
    margin-top: 0 !important;
}

.qm-article-sticky-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    max-width: calc(100% - 80px); 
    width: auto;
}

.qm-article-sticky-wrapper.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.qm-header-fixed .qm-article-sticky-wrapper {
    top: calc(var(--qm-header-height, 60px) + 20px);
}

.qm-article-sticky-header {
    width: auto;
    max-width: none; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex: 1; 
    min-width: 0; 
}

.qm-sticky-header-content {
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.qm-sticky-header-title {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    text-align: center;
    word-wrap: break-word; 
    word-break: break-word; 
    overflow-wrap: break-word; 
    line-height: 1.4; 
    max-width: 100%;
}

.qm-article-back-to-top {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #2563eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.qm-article-back-to-top:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.qm-sidebar-author-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.qm-sidebar-author-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qm-sidebar-author-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.qm-sidebar-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qm-sidebar-author-info {
    flex: 1;
    min-width: 0;
}

.qm-sidebar-author-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.qm-sidebar-author-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.qm-sidebar-author-name a:hover {
    color: #2563eb;
}

.qm-sidebar-author-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qm-sidebar-author-posts {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.qm-sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.qm-sidebar-section-title i {
    color: #2563eb;
    font-size: 14px;
}

.qm-sidebar-author-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qm-sidebar-author-post-item {
    margin-bottom: 12px;
}

.qm-sidebar-author-post-item:last-child {
    margin-bottom: 0;
}

.qm-sidebar-author-post-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    background: #f9fafb;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.qm-sidebar-author-post-link:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.qm-sidebar-author-post-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qm-sidebar-author-post-link:hover .qm-sidebar-author-post-title {
    color: #2563eb;
}

.qm-sidebar-author-post-date {
    font-size: 12px;
    color: #9ca3af;
}

.qm-article-hero-banner {
    position: relative;
    width: 100%;
    min-height: auto;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: 60px 20px 40px;
}

.qm-article-hero-banner > .qm-article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    display: block;
    opacity: 1;
    visibility: visible;
    background-color: transparent;
    background-attachment: scroll;
    transform: scale(1.06);
    transform-origin: center center;
    filter: blur(22px);
    -webkit-filter: blur(22px);
    opacity: 0.92;
    pointer-events: none;
}

.qm-article-hero-bg-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.qm-article-hero-banner > .qm-article-hero-bg.qm-article-hero-bg-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.qm-article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.44) 0%, rgba(15, 23, 42, 0.56) 48%, rgba(15, 23, 42, 0.72) 100%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: normal;
}

.qm-article-hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bootstrap容器类在hero中的调整 */
.qm-article-hero-content-wrapper.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 767.98px) {
    .qm-article-hero-banner {
        padding: 40px 15px 30px;
    }

    .qm-article-hero-content-wrapper {
        padding: 0;
    }

    .qm-article-hero-content-inner {
        padding: 24px 16px;
    }

}

.qm-article-hero-content-inner {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.72) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    max-width: 1200px;
    width: 100%;
}

.qm-article-hero-main {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
}

/* 移动端响应式调整 */
@media (max-width: 991.98px) {
    .qm-article-hero-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .qm-article-hero-right {
        width: 100%;
        justify-content: center !important;
    }

}

.qm-article-hero-left {
    flex: 1;
    min-width: 0;
}

.qm-article-hero-right {
    flex-shrink: 0;
}

.qm-article-hero-thumbnail {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-article-hero-thumbnail img:not(.qm-mockup-image):not(.qm-mockup-frame) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 电脑样机样式 */
.qm-article-hero-thumbnail.qm-mockup-thumbnail {
    overflow: visible;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    min-width: 160px;
    min-height: 160px;
    max-width: 200px;
    max-height: 200px;
}

.qm-article-hero-thumbnail .qm-mockup-image {
    width: 100%;
    height: auto;
    max-width: 200px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    display: block;
}

.qm-article-hero-thumbnail .qm-mockup-screen {
    position: absolute;
    top: 22%;
    left: 20%;
    width: 60%;
    height: 38%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qm-article-hero-thumbnail .qm-mockup-screen.loaded {
    opacity: 1;
}

.qm-article-hero-thumbnail .qm-mockup-frame {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 200px;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    display: block;
}

.qm-article-hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff !important;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qm-article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 24px;
    color: #ffffff;
}

.qm-article-hero-meta .qm-meta-item {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.qm-article-hero-meta .qm-meta-item i {
    color: rgba(255, 255, 255, 0.8);
}

.qm-article-hero-meta .qm-meta-item span {
    color: rgba(255, 255, 255, 0.9);
}

.qm-article-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-article-hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    transition: all 0.2s;
}

.qm-article-hero-tag:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qm-article-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.qm-article-hero-banner .qm-article-tags-row {
    margin-bottom: 20px;
}

.qm-article-hero-banner .qm-article-tag-category {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.qm-article-hero-banner .qm-article-tag-item {
    background: transparent;
    color: #ffffff;
    border: none;
}

.qm-article-hero-banner .qm-article-tag-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.qm-article-hero-banner .qm-article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qm-article-hero-banner .qm-article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    border-bottom: none;
    padding-bottom: 0;
    color: #ffffff;
}

.qm-article-hero-banner .qm-meta-item {
    color: rgba(255, 255, 255, 0.9);
}

.qm-article-hero-banner .qm-meta-item i {
    color: rgba(255, 255, 255, 0.8);
}

.qm-article-hero-banner .qm-meta-item span {
    color: rgba(255, 255, 255, 0.9);
}

.qm-price-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.qm-article-hero-banner .qm-price-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.qm-price-badge-main {
    color: #0f172a;
    background: rgba(248, 250, 252, 0.9);
}

.qm-price-badge-vip {
    color: #b45309;
    background: rgba(254, 243, 199, 0.9);
}

.dark .qm-price-badge-main,
body.dark .qm-price-badge-main {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
}

.dark .qm-price-badge-vip,
body.dark .qm-price-badge-vip {
    color: #facc15;
    background: rgba(24, 20, 11, 0.9);
}

.qm-article-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    align-items: center;
}

.qm-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qm-download-btn i {
    font-size: 14px;
}

.qm-download-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.qm-download-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.qm-download-btn.qm-download-btn-primary.qm-download-btn-pan {
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}

.qm-download-btn.qm-download-btn-primary.qm-download-btn-pan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.32);
}

.qm-download-btn.qm-download-btn-primary.qm-download-btn-pan-baidu {
    background: linear-gradient(135deg, #1677ff 0%, #0ea5e9 100%);
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.30);
}

.qm-download-btn.qm-download-btn-primary.qm-download-btn-pan-baidu:hover {
    box-shadow: 0 10px 22px rgba(22, 119, 255, 0.36);
}

.qm-download-btn.qm-download-btn-primary.qm-download-btn-pan-quark {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.qm-download-btn.qm-download-btn-primary.qm-download-btn-pan-aliyun {
    background: linear-gradient(135deg, #ff6a00 0%, #ffb000 100%);
}

.qm-download-btn.qm-download-btn-primary.qm-download-btn-pan-lanzou {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

.qm-download-btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.qm-download-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.qm-download-btn-vip {
    background: linear-gradient(0deg, hsla(0, 0%, 100%, .1), hsla(0, 0%, 100%, .1)), linear-gradient(95.9deg, #ffeec3 3.14%, #ffe5ba 23.99%, #ffd8aa 43.77%, #ffd4a2 62.06%, #ffc896 79.86%, #fcb4ba 97.91%);
    color: #6b2d00;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qm-download-btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 204, 150, 0.4);
}

.qm-download-btn-vip i {
    color: #6b2d00;
}

@media (max-width: 768px) {
    .qm-article-download-actions {
        flex-direction: column;
        width: 100%;
    }

    .qm-download-btn {
        width: 100%;
        justify-content: center;
    }

}

.qm-article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Bootstrap容器类覆盖 */
.qm-article-detail-container.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* 确保移动端容器与浏览器边缘保持适当距离 */
@media (max-width: 767.98px) {
    .qm-article-detail-container.container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .qm-article-detail-container {
        padding-left: 15px;
        padding-right: 15px;
    }

}

@media (max-width: 991.98px) {
    .qm-article-detail-container {
        flex-direction: column;
        padding: 20px 15px 0;
    }

    .qm-article-detail-container .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* 确保移动端内容与浏览器边缘保持距离 */
    .qm-article-detail-container.container {
        padding-left: 15px;
        padding-right: 15px;
    }

}

.qm-article-main-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 移动端文章内容内边距 */
@media (max-width: 767.98px) {
    .qm-article-main-content {
        padding: 20px 16px;
        border-radius: 0;
        margin: 0;
    }

    .qm-article-content {
        padding: 0;
    }

    /* 确保文章内容与容器边缘保持距离 */
    .qm-article-body {
        padding: 0;
    }

}

.qm-article-sidebar {
    width: 80px;
    flex-shrink: 0;
}

.qm-post-actions-float {
    position: sticky;
    top: calc(var(--qm-header-height, 60px) + 16px);
    right: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 40;
}

.qm-author-float-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qm-author-avatar-link {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qm-author-avatar-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.qm-author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-author-follow-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #ef4444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(248, 113, 113, 0.7);
    font-size: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    margin-top: -18px;
}

.qm-author-follow-btn:hover {
    background: #dc2626;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 16px rgba(248, 113, 113, 0.8);
}

.qm-author-follow-btn:active {
    transform: scale(0.96);
}

.qm-post-actions-float .qm-action-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qm-text-muted);
    transition: transform 0.15s ease, color 0.15s ease;
}

.qm-post-actions-float .qm-action-btn:hover {
    transform: translateY(-2px);
}

.qm-post-actions-float .qm-action-btn:active {
    transform: translateY(0) scale(0.96);
}

.qm-post-actions-float .qm-action-btn i {
    font-size: 18px;
    margin-bottom: 2px;
    color: currentColor;
}

.qm-post-actions-float .qm-action-like {
    color: #f97373;
}

.qm-post-actions-float .qm-action-like.active,
.qm-post-actions-float .qm-action-like.liked {
    color: #ef4444;
}

.qm-post-actions-float .qm-action-collect {
    color: #f59e0b;
}

.qm-post-actions-float .qm-action-collect.active {
    color: #f97316;
}

.qm-post-actions-float .qm-action-share {
    color: #3b82f6;
}

.qm-post-actions-float .qm-action-btn {
    flex-direction: column;
}

.qm-post-actions-float .qm-action-count {
    font-size: 12px;
    line-height: 1.2;
    color: currentColor;
}

@media (max-width: 1024px) {
    .qm-article-sidebar,
    .qm-post-actions-float {
        display: none;
    }

}

/* Bootstrap lg断点 (≥992px) 响应式调整 */
@media (max-width: 991.98px) {
    .qm-article-hero-actions {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
        padding-top: 20px;
    }

    .qm-download-btn {
        flex: 0 1 auto;
        min-width: auto;
        padding: 8px 16px;
        font-size: 13px;
    }

    .qm-download-btn i {
        font-size: 14px;
        margin-right: 4px;
    }

    .qm-download-btn-label {
        font-size: 13px;
    }

    .qm-download-btn-wrapper {
        flex: 0 1 auto;
    }

}

.qm-article-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.qm-article-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.qm-article-tag-category {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.qm-article-tag-item {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.qm-article-tag-item:hover {
    background: #e5e7eb;
    color: #374151;
}

.qm-article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 20px 0;
}

.qm-article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.qm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qm-meta-item i {
    font-size: 14px;
    color: #9ca3af;
}

.qm-meta-item span {
    color: #6b7280;
}

.qm-article-summary {
    margin-bottom: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.qm-article-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.qm-article-summary-header i {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.qm-article-summary-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.qm-article-summary-content p {
    margin: 0;
}

.qm-ai-summary-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    padding: 8px 0;
}

.qm-ai-summary-loading i {
    color: #2563eb;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

.qm-ai-summary-text {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
    min-height: 1.5em; 
}

.qm-article-excerpt-fallback {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.qm-ai-summary-text::after {
    content: '|';
    color: #2563eb;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.qm-ai-summary-text.typewriter-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }

}

.qm-download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.qm-download-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.qm-download-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(229, 231, 235, 0.8);
    max-width: 560px;
    width: 100%;
    max-height: min(82vh, 760px);
    overflow: hidden;
    z-index: 1;
}

.qm-download-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.qm-download-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.2px;
}

.qm-download-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
}

.qm-download-modal-close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.qm-download-modal-body {
    padding: 18px 20px 20px;
    overflow: auto;
    max-height: calc(min(82vh, 760px) - 64px);
}

.qm-download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qm-download-option {
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
    transition: all 0.2s;
}

.qm-download-option:hover {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.qm-download-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qm-download-option-header i {
    font-size: 18px;
    color: #2563eb;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.10);
}

.qm-download-option-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
}

.qm-vip-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.qm-download-option-content {
    margin-top: 10px;
}

.qm-download-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.qm-download-option-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.30);
}

.qm-download-option-free .qm-download-option-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.qm-download-option-free .qm-download-option-btn:hover {
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.25);
}

.qm-download-option-btn.qm-pan-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
}

.qm-download-option-btn.qm-pan-btn:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
}

.qm-download-option-btn.qm-pan-btn-baidu {
    background: linear-gradient(135deg, #1677ff 0%, #0ea5e9 100%);
}

.qm-download-option-btn.qm-pan-btn-baidu:hover {
    box-shadow: 0 14px 30px rgba(22, 119, 255, 0.30);
}

.qm-download-option-btn.qm-pan-btn-quark {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.qm-download-option-btn.qm-pan-btn-quark:hover {
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.qm-download-option-btn.qm-pan-btn-aliyun {
    background: linear-gradient(135deg, #ff6a00 0%, #ffb000 100%);
}

.qm-download-option-btn.qm-pan-btn-aliyun:hover {
    box-shadow: 0 14px 30px rgba(255, 106, 0, 0.25);
}

.qm-download-option-btn.qm-pan-btn-lanzou {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

.qm-download-option-btn.qm-pan-btn-lanzou:hover {
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.25);
}

.qm-download-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.qm-download-link-item {
    display: flex;
    flex-direction: row;
}

.qm-download-link-item .qm-download-option-btn {
    width: auto;
}

.qm-download-tabs-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qm-download-tabs-wrap .qm-download-tab-panels {
    width: 100%;
}

.qm-download-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-download-tab {
    appearance: none;
    border: 1px solid rgba(203, 213, 225, 1);
    background: rgba(248, 250, 252, 1);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-download-tab:hover {
    border-color: rgba(37, 99, 235, 0.45);
}

.qm-download-tab.is-active {
    border-color: rgba(37, 99, 235, 0.6);
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
}

.qm-download-tab-panels {
    display: block;
}

.qm-download-tab-panel {
    display: none;
}

.qm-download-tab-panel.is-active {
    display: block;
}

.dark .qm-download-tab {
    border-color: rgba(51, 65, 85, 0.85);
    background: rgba(2, 6, 23, 0.55);
    color: rgba(226, 232, 240, 0.92);
}

.dark .qm-download-tab.is-active {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.qm-pan-link-wrapper,
.qm-pan-code-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.qm-pan-link-input,
.qm-pan-code-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(203, 213, 225, 1);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(248, 250, 252, 1);
}

.qm-pan-link-input-editable {
    background: #ffffff !important;
    cursor: text;
}

.qm-pan-link-input-editable:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.qm-pan-code-display {
    flex: 1;
    padding: 8px 12px;
    background: rgba(248, 250, 252, 1);
    border: 1px solid rgba(203, 213, 225, 1);
    border-radius: 12px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.qm-pan-code-wrapper label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    min-width: 60px;
}

.qm-copy-btn {
    padding: 8px 16px;
    background: rgba(241, 245, 249, 1);
    border: 1px solid rgba(203, 213, 225, 1);
    border-radius: 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.qm-inline-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 4px 10px;
    font-size: 12px;
}

.qm-copy-btn:hover {
    background: rgba(226, 232, 240, 1);
    border-color: rgba(148, 163, 184, 1);
}

.qm-download-coupons {
    margin-top: 12px;
}

.qm-download-coupons-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.qm-download-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qm-download-coupon-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(244, 114, 182, 0.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 241, 246, 0.92) 0%, rgba(255, 250, 252, 0.98) 100%);
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.qm-download-coupon-btn:hover {
    border-color: rgba(244, 114, 182, 0.45);
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.12);
    transform: translateY(-1px);
}

.qm-download-coupon-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.qm-download-coupon-btn__main,
.qm-download-coupon-btn__side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.qm-download-coupon-btn__main {
    flex: 1;
}

.qm-download-coupon-btn__label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.qm-download-coupon-btn__scope,
.qm-download-coupon-btn__note,
.qm-download-coupon-btn__count {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.qm-download-coupon-btn__side {
    align-items: flex-end;
    flex-shrink: 0;
}

.qm-download-coupon-btn__action {
    font-size: 13px;
    font-weight: 700;
    color: #ec4899;
}

.qm-download-coupon-btn.is-loading .qm-download-coupon-btn__action {
    color: #be185d;
}

.qm-payment-coupons {
    margin-top: 12px;
}

.qm-payment-coupons-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.qm-payment-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qm-payment-coupon-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 12px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.qm-payment-coupon-btn:hover {
    border-color: rgba(244, 114, 182, 0.4);
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
}

.qm-payment-coupon-btn.is-active {
    border-color: rgba(236, 72, 153, 0.5);
    background: linear-gradient(135deg, rgba(255, 241, 246, 0.92) 0%, rgba(255, 250, 252, 0.98) 100%);
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.12);
}

.qm-payment-coupon-btn.is-disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.qm-payment-coupon-btn__main,
.qm-payment-coupon-btn__side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.qm-payment-coupon-btn__main {
    flex: 1;
}

.qm-payment-coupon-btn__label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.qm-payment-coupon-btn__desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.qm-payment-coupon-btn__side {
    flex-shrink: 0;
    align-items: flex-end;
    font-size: 12px;
    font-weight: 700;
    color: #ec4899;
}

.qm-payment-methods {
    margin-top: 12px;
}

.qm-payment-methods-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.qm-payment-methods-list {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.qm-payment-methods-list::-webkit-scrollbar {
    display: none;
}

.qm-payment-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.qm-payment-method-btn--icon {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 12px 10px 10px;
    flex-direction: column;
    gap: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.qm-payment-method-btn__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    color: #475569;
    line-height: 1;
}

.qm-payment-method-btn__icon i {
    font-size: 22px;
}

.qm-payment-method-btn__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.qm-payment-method-btn__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.qm-payment-method-btn:hover {
    background: rgba(248, 250, 252, 1);
    border-color: rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.qm-payment-method-btn i {
    font-size: 18px;
}

.qm-payment-method-btn[data-tone="alipay"] .qm-payment-method-btn__icon {
    color: #1677ff;
    background: rgba(22, 119, 255, 0.10);
}

.qm-payment-method-btn[data-tone="wechat"] .qm-payment-method-btn__icon {
    color: #07c160;
    background: rgba(7, 193, 96, 0.12);
}

.qm-payment-method-btn[data-tone="balance"] .qm-payment-method-btn__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

.qm-payment-method-btn[data-tone="codepay"] .qm-payment-method-btn__icon {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
}

.qm-payment-method-btn[data-tone="alipay"]:hover {
    border-color: rgba(22, 119, 255, 0.42);
}

.qm-payment-method-btn[data-tone="wechat"]:hover {
    border-color: rgba(7, 193, 96, 0.42);
}

.qm-payment-method-btn[data-tone="balance"]:hover {
    border-color: rgba(245, 158, 11, 0.42);
}

.qm-payment-method-btn[data-tone="codepay"]:hover {
    border-color: rgba(139, 92, 246, 0.42);
}

body.qm-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .qm-download-modal {
        padding: 14px;
    }

    .qm-download-modal-header {
        padding: 16px 16px;
    }

    .qm-download-modal-body {
        padding: 14px 16px 16px;
    }

    .qm-pan-link-wrapper,
    .qm-pan-code-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .qm-pan-code-wrapper label {
        min-width: 0;
    }

    .qm-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .qm-payment-methods-list {
        gap: 8px;
    }

    .qm-download-coupon-btn {
        flex-direction: column;
        align-items: stretch;
    }

    .qm-download-coupon-btn__side {
        align-items: flex-start;
    }

    .qm-payment-method-btn--icon {
        flex: 0 0 80px;
        padding: 10px 8px 9px;
    }

    .qm-payment-method-btn__icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .qm-payment-method-btn__icon i {
        font-size: 20px;
    }

    .qm-payment-method-btn__icon img {
        width: 20px;
        height: 20px;
    }

    .qm-payment-method-btn__label {
        font-size: 10px;
    }

}

.dark .qm-download-modal-content {
    background: rgba(2, 6, 23, 0.92);
    border-color: rgba(51, 65, 85, 0.8);
}

.dark .qm-download-modal-header {
    border-bottom-color: rgba(51, 65, 85, 0.8);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.92) 100%);
}

.dark .qm-download-modal-header h3 {
    color: #e5e7eb;
}

.dark .qm-download-modal-close {
    color: rgba(226, 232, 240, 0.75);
}

.dark .qm-download-modal-close:hover {
    background: rgba(226, 232, 240, 0.08);
    color: #e5e7eb;
}

.dark .qm-download-option {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.8);
}

.dark .qm-download-option-header h4 {
    color: #e5e7eb;
}

.dark .qm-pan-link-input,
.dark .qm-pan-code-display,
.dark .qm-payment-method-btn {
    background: rgba(2, 6, 23, 0.6);
    border-color: rgba(51, 65, 85, 0.85);
    color: #e5e7eb;
}

.dark .qm-copy-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.85);
    color: rgba(226, 232, 240, 0.9);
}

.dark .qm-payment-methods-title,
.dark .qm-download-coupons-title,
.dark .qm-pan-code-wrapper label {
    color: rgba(226, 232, 240, 0.9);
}

.dark .qm-download-coupon-btn {
    background: linear-gradient(135deg, rgba(76, 5, 25, 0.42) 0%, rgba(30, 41, 59, 0.72) 100%);
    border-color: rgba(244, 114, 182, 0.22);
    color: #e5e7eb;
}

.dark .qm-download-coupon-btn__label {
    color: #f8fafc;
}

.dark .qm-download-coupon-btn__scope,
.dark .qm-download-coupon-btn__note,
.dark .qm-download-coupon-btn__count {
    color: rgba(226, 232, 240, 0.72);
}

.dark .qm-download-coupon-btn__action {
    color: #f9a8d4;
}

.dark .qm-payment-method-btn--icon {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.72) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.dark .qm-payment-method-btn__icon {
    background: rgba(255, 255, 255, 0.06);
}

.qm-article-body {
    margin-bottom: 32px;
}

.qm-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    padding: 0;
}

/* Bootstrap响应式类覆盖 */
.qm-article-content.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.qm-article-content.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.qm-article-content.px-md-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.qm-article-content.px-lg-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* 确保文章内容在移动端有适当的内边距，不贴近边缘 */
@media (max-width: 767.98px) {
    .qm-article-content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .qm-article-content.container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* 确保内容不会贴近容器边缘 */
    .qm-article-content > * {
        max-width: 100%;
    }

    .qm-article-content img,
    .qm-article-content iframe,
    .qm-article-content video {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 确保表格等元素可以横向滚动 */
    .qm-article-content table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

}

@media (min-width: 768px) and (max-width: 991.98px) {
    .qm-article-content {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

}

@media (min-width: 992px) {
    .qm-article-content {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

}

.qm-article-comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    max-width: 1200px;
    margin-left: auto;
}

/* Bootstrap响应式类覆盖 */
.qm-article-comments-section.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.qm-article-comments-section.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.qm-article-comments-section.px-md-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.qm-article-comments-section.px-lg-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* 移动端缩小评论区所有元素 */
@media (max-width: 767.98px) {
    .qm-article-comments-section {
        margin-top: 24px;
        padding-top: 20px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 移除评论项内边距 */
    .qm-comment-item,
    .qm-single-post-comments .qm-comment-item,
    .qm-single-post-comments li.comment {
        padding: 0 !important;
    }

    .qm-single-post-comments .qm-comment-body {
        padding: 0 !important;
    }

    /* 缩小评论标题 */
    .qm-comments-header {
        margin-bottom: 12px !important;
    }

    .qm-comments-title {
        font-size: 12px !important;
    }

    .qm-comments-title i {
        width: 3px !important;
        height: 18px !important;
        font-size: 0 !important;
    }

    .qm-comments-title > span:not(.qm-comments-count) {
        font-size: 10px !important;
    }

    .qm-comments-title span.qm-comments-count {
        font-size: 10px !important;
    }

    /* 缩小排序按钮 */
    .qm-comments-sort {
        gap: 4px !important;
    }

    .qm-sort-label {
        font-size: 12px !important;
    }

    .qm-comment-sort-btn {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    /* 缩小评论表单 */
    .qm-comment-form {
        margin-bottom: 16px !important;
    }

    .qm-comment-input-wrapper {
        gap: 6px !important;
    }

    .qm-comment-attach-btn,
    .qm-comment-emoji-toggle,
    .qm-comment-send-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .qm-comment-form textarea {
        font-size: 14px !important;
        padding: 8px 10px !important;
        min-height: 36px !important;
    }

    /* 缩小评论项 */
    .qm-comment-item {
        margin-bottom: 16px !important;
        padding: 0 !important;
    }

    .qm-comment-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .qm-comment-avatar img {
        width: 36px !important;
        height: 36px !important;
    }

    .qm-comment-author-name {
        font-size: 13px !important;
    }

    .qm-comment-level-badge {
        width: 28px !important;
        height: 28px !important;
    }

    .qm-comment-level-badge img {
        width: 28px !important;
        height: 28px !important;
    }

    .qm-comment-date {
        font-size: 11px !important;
    }

    .qm-comment-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .qm-comment-actions {
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .qm-comment-reply-btn,
    .qm-comment-like-btn {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    .qm-comment-like-btn i {
        font-size: 12px !important;
    }

    .qm-like-count {
        font-size: 11px !important;
    }

    /* 缩小快速回复按钮 */
    .qm-comment-quick-reply-btn {
        font-size: 11px !important;
        padding: 4px 8px !important;
        margin: 2px !important;
    }

}

.qm-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.qm-comments-count {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .qm-article-sticky-wrapper {
        top: 16px;
        max-width: calc(100% - 32px);
    }

    body.qm-header-fixed .qm-article-sticky-wrapper {
        top: calc(var(--qm-header-height, 60px) + 16px);
    }

    .qm-sticky-header-content {
        padding: 8px 20px;
    }

    .qm-sticky-header-title {
        font-size: 14px;
    }

    .qm-article-back-to-top {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .qm-article-hero-banner {
        min-height: auto;
        height: auto;
        padding: 30px 16px;
    }

    .qm-article-hero-content-wrapper {
        padding: 0;
    }

    .qm-article-hero-content-inner {
        padding: 24px 20px;
    }

    .qm-article-hero-main {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
    }

    .qm-article-hero-left {
        width: 100%;
        text-align: center;
    }

    .qm-article-hero-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .qm-article-hero-thumbnail {
        width: 120px;
        height: 120px;
    }

    .qm-article-hero-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .qm-article-hero-meta {
        gap: 12px 16px;
        font-size: 12px;
        margin-bottom: 16px;
        justify-content: center;
    }

    .qm-article-hero-tags {
        gap: 6px;
        justify-content: center;
    }

    .qm-article-hero-tag {
        padding: 4px 10px;
        font-size: 12px;
    }

    .qm-article-hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
    }

    .qm-article-hero-actions .qm-download-btn {
        width: auto;
        flex: 0 1 auto;
        padding: 8px 14px;
        font-size: 13px;
    }

    .qm-article-hero-actions .qm-download-btn i {
        font-size: 13px;
        margin-right: 4px;
    }

    .qm-article-hero-actions .qm-download-btn-label {
        font-size: 12px;
    }

    .qm-article-hero-actions .qm-download-btn-wrapper {
        flex: 0 1 auto;
    }

    .qm-article-detail-container {
        flex-direction: column;
        padding: 20px 15px 0;
    }

    /* 确保移动端容器与浏览器边缘保持距离 */
    .qm-article-detail-container.container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .qm-article-sidebar {
        width: 100%;
    }

    .qm-article-main-content {
        padding: 20px 16px;
    }

    .qm-article-title {
        font-size: 24px;
    }

    .qm-sidebar-author-card,
    .qm-sidebar-author-posts {
        padding: 16px;
    }

}

@media (max-width: 640px) {
    .qm-article-hero-banner {
        min-height: auto;
        height: auto;
        padding: 30px 15px 20px;
    }

    .qm-article-hero-content-wrapper {
        padding: 0;
    }

    .qm-article-hero-content-wrapper.container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .qm-article-hero-banner .qm-article-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .qm-article-hero-banner .qm-article-meta-info {
        font-size: 12px;
        gap: 12px 16px;
    }

    .qm-article-hero-thumbnail:not(.qm-mockup-thumbnail) {
        width: 120px;
        height: 120px;
    }

    .qm-article-hero-thumbnail.qm-mockup-thumbnail {
        min-width: 120px;
        min-height: 120px;
        max-width: 150px;
        max-height: 150px;
    }

    .qm-article-hero-thumbnail .qm-mockup-image,
    .qm-article-hero-thumbnail .qm-mockup-frame {
        max-width: 150px;
    }

    .qm-article-main-content {
        padding: 20px 16px;
        margin: 0;
    }

    .qm-article-content {
        padding: 0;
    }

    /* 确保文章内容不会贴近边缘 */
    .qm-article-body {
        padding: 0;
    }

    /* 确保文章内容元素与容器边缘保持距离 */
    .qm-article-content p,
    .qm-article-content ul,
    .qm-article-content ol,
    .qm-article-content h1,
    .qm-article-content h2,
    .qm-article-content h3,
    .qm-article-content h4,
    .qm-article-content h5,
    .qm-article-content h6 {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .qm-article-comments-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .qm-article-title {
        font-size: 20px;
    }

    .qm-article-meta-info {
        font-size: 12px;
        gap: 12px 16px;
    }

    .qm-article-content {
        font-size: 15px;
        padding: 0;
    }

    /* 确保文章内容元素不会贴近边缘，保持适当间距 */
    .qm-article-content > *:first-child {
        margin-top: 0;
    }

    .qm-article-content > *:last-child {
        margin-bottom: 0;
    }

    /* 确保图片等元素不会超出容器 */
    .qm-article-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .qm-article-sticky-wrapper {
        top: 12px;
        max-width: calc(100% - 24px);
    }

    body.qm-header-fixed .qm-article-sticky-wrapper {
        top: calc(var(--qm-header-height, 60px) + 12px);
    }

    .qm-sticky-header-content {
        padding: 8px 16px;
    }

    .qm-sticky-header-title {
        font-size: 13px;
    }

    .qm-article-back-to-top {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .qm-sidebar-author-card,
    .qm-sidebar-author-posts {
        padding: 16px;
    }

    .qm-sidebar-author-avatar {
        width: 48px;
        height: 48px;
    }

    .qm-sidebar-author-name {
        font-size: 15px;
    }

    .qm-sidebar-author-desc {
        font-size: 12px;
    }

}

.qm-article-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 80px 0 60px;
    overflow: visible;
}

.qm-article-hero-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 380px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #f5d0fe 45%, #fee2e2 100%);
    box-shadow: 0 18px 50px rgba(148, 163, 184, 0.35);
}

.qm-article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    opacity: 0.3;
    z-index: 1;
}

.qm-article-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.qm-article-hero-image {
    position: relative;
    flex-shrink: 0;
    width: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-hero-mockup-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 960;
    overflow: visible;
}

.qm-hero-mockup-screen {
    position: absolute;
    left: 7.33%;
    top: 8.88%;
    width: 85.33%;
    height: 58.78%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    z-index: 0;
    border-radius: 4px;
    overflow: hidden;
}

.qm-hero-mockup-screen.qm-hero-mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.qm-hero-mockup-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.qm-hero-mockup-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

.qm-hero-mockup-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

.qm-hero-image-decoration {
    display: none; 
}

.qm-hero-image-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

}

.qm-article-hero-main {
    flex: 1;
    color: #111827;
}

.qm-article-breadcrumb--on-hero {
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(55, 65, 81, 0.75);
}

.qm-article-breadcrumb--on-hero a {
    color: #2563eb;
}

.qm-article-hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #111827;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(148, 163, 184, 0.5);
}

.qm-article-hero-tagline {
    margin-bottom: 18px;
}

.qm-hero-tagline-text {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.qm-article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    color: rgba(55, 65, 81, 0.85);
    margin-bottom: 18px;
}

.qm-article-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qm-article-meta-row i {
    font-size: 13px;
}

body.dark .qm-article-hero-main,
.dark .qm-article-hero-main,
html.dark .qm-article-hero-main {
    color: #ffffff !important;
}

body.dark .qm-article-breadcrumb--on-hero,
.dark .qm-article-breadcrumb--on-hero,
html.dark .qm-article-breadcrumb--on-hero {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark .qm-article-hero-title,
.dark .qm-article-hero-title,
html.dark .qm-article-hero-title {
    color: #f8fafc !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

body.dark .qm-hero-tagline-text,
.dark .qm-hero-tagline-text,
html.dark .qm-hero-tagline-text {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.dark .qm-article-meta-row,
.dark .qm-article-meta-row,
html.dark .qm-article-meta-row,
body.dark .qm-article-hero-meta,
.dark .qm-article-hero-meta,
html.dark .qm-article-hero-meta {
    color: #b4b6bb !important;
}

body.dark .qm-article-meta-row span,
.dark .qm-article-meta-row span,
html.dark .qm-article-meta-row span,
body.dark .qm-article-hero-meta .qm-meta-item,
.dark .qm-article-hero-meta .qm-meta-item,
html.dark .qm-article-hero-meta .qm-meta-item,
body.dark .qm-article-hero-meta .qm-meta-item span,
.dark .qm-article-hero-meta .qm-meta-item span,
html.dark .qm-article-hero-meta .qm-meta-item span {
    color: #b4b6bb !important;
}

body.dark .qm-article-meta-row i,
.dark .qm-article-meta-row i,
html.dark .qm-article-meta-row i,
body.dark .qm-article-hero-meta .qm-meta-item i,
.dark .qm-article-hero-meta .qm-meta-item i,
html.dark .qm-article-hero-meta .qm-meta-item i {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.dark .qm-article-hero-tag,
.dark .qm-article-hero-tag,
html.dark .qm-article-hero-tag,
body.dark .qm-article-hero-banner .qm-article-tag-category,
.dark .qm-article-hero-banner .qm-article-tag-category,
html.dark .qm-article-hero-banner .qm-article-tag-category,
body.dark .qm-article-hero-banner .qm-article-tag-item,
.dark .qm-article-hero-banner .qm-article-tag-item,
html.dark .qm-article-hero-banner .qm-article-tag-item {
    color: #ffffff !important;
}

.qm-article-hero-actions-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

.qm-article-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #111827;
}

.qm-article-price-label {
    font-size: 13px;
    opacity: 0.8;
}

.qm-article-price-value {
    font-size: 30px;
    font-weight: 700;
}

.qm-article-price-unit {
    font-size: 14px;
    margin-left: 2px;
}

.qm-article-price-tip {
    font-size: 12px;
    opacity: 0.8;
}

.qm-article-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qm-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.qm-hero-btn i {
    font-size: 14px;
}

.qm-hero-btn--primary {
    background: #f97316;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.4);
}

.qm-hero-btn--primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.qm-hero-btn--secondary {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(248, 250, 252, 0.4);
}

.qm-hero-btn--secondary:hover {
    background: rgba(15, 23, 42, 0.45);
}

.qm-hero-btn--outline {
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.5);
}

.qm-hero-btn--outline:hover {
    background: rgba(15, 23, 42, 0.3);
}

.qm-article-hero-description {
    font-size: 14px;
    line-height: 1.9;
    color: #4b5563;
    max-width: 520px;
    margin-bottom: 18px;
}

.qm-article-hero-stats {
    position: fixed;
    right: 32px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qm-hero-stat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    overflow: visible; 
    background: #e5e7eb;
    position: relative;
    margin-bottom: 26px;
}

.qm-hero-stat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; 
}

.qm-hero-stat-follow {
    position: absolute;
    left: 50%;
    bottom: -10px; 
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: linear-gradient(135deg, #fb7185, #f97316);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qm-hero-stat-follow:hover {
    transform: translateX(-50%) translateY(-1px) scale(1.03);
    box-shadow: 0 14px 30px rgba(248, 113, 113, 0.6);
}

.qm-hero-stat-item {
    width: auto;
    padding: 4px 0;
    border-radius: 0;
    background: transparent; 
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.qm-hero-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: transparent;
}

.qm-hero-stat-number {
    font-size: 11px;
    color: #4b5563;
}

@media (max-width: 992px) {
    .qm-article-hero-stats {
        display: none;
    }

}

.qm-hero-stat-item i {
    font-size: 13px;
    color: #6b7280; 
}

.qm-hero-stat-like i {
    background-image: linear-gradient(135deg, #fb7185, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-hero-stat-like.active i {
    background-image: none;   
    color: #ef4444;           
    transform: scale(1.3);
    filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.8));
}

.qm-hero-stat-comment i {
    background-image: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-hero-stat-fav i {
    background-image: linear-gradient(135deg, #facc15, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-hero-stat-fav.active i {
    background-image: none;
    color: #f97316;
    transform: scale(1.25);
    filter: drop-shadow(0 0 5px rgba(251, 146, 60, 0.8));
}

.qm-hero-stat-share i {
    background-image: linear-gradient(135deg, #22c55e, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-article-content-wrapper {
    background: white;
    padding: 32px 0 50px;
}

.qm-article-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .qm-post-tabs {
        display: flex;
        max-width: 100%;
        padding: 4px 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(129, 140, 248, 0.2);
    }

    .qm-post-tabs::-webkit-scrollbar {
        display: none;
    }

    .qm-tab-btn {
        flex: 0 0 auto;
        padding: 6px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .qm-article-content-container {
        max-width: 100%;
        padding: 0;
    }

}

.qm-post-tabs {
    display: inline-flex;
    padding: 4px;
    background: #f3f4ff;
    border-radius: 999px;
    margin-bottom: 24px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(129, 140, 248, 0.25);
}

.qm-tab-btn {
    position: relative;
    border: none;
    background: transparent;
    padding: 8px 18px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.18s ease;
}

.qm-tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(129, 140, 248, 0.5);
    transform: translateY(-1px);
}

.qm-tab-btn.active::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
}

.qm-tab-content {
    display: none;
}

.qm-tab-content.active {
    display: block;
}

.qm-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.qm-article-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.qm-article-breadcrumb a:hover {
    color: #2563eb;
}

.qm-breadcrumb-sep {
    color: #999;
}

.qm-breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.qm-article-author-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px;
    margin-bottom: 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.qm-article-hero-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.45);
}

.qm-article-hero-author .qm-author-avatar {
    width: 48px;
    height: 48px;
    border-width: 2px;
}

.qm-article-hero-author .qm-author-name {
    font-size: 18px;
}

.qm-article-hero-author .qm-author-update-time {
    font-size: 12px;
}

.qm-article-hero-author .qm-author-actions {
    gap: 10px;
}

.qm-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qm-author-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: visible;
    background: #e5e7eb;
    flex-shrink: 0;
    border: 3px solid #60a5fa;
    padding: 2px;
}

.qm-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.qm-author-details {
    flex: 1;
}

.qm-author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.qm-author-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 28px;
}

.qm-author-name:hover {
    color: #3b82f6;
}

.qm-author-name-row .qm-level-badge-inline {
    flex-shrink: 0;
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
}

.qm-author-update-time {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.qm-author-bio {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.qm-author-actions {
    display: flex;
    gap: 12px;
}

.qm-author-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    justify-content: center;
}

.qm-author-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.qm-author-btn.qm-author-follow:hover {
    border-color: #ec4899;
    color: #ec4899;
    background: #fdf2f8;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.qm-author-btn i {
    font-size: 16px;
}

.qm-article-body {
    margin-bottom: 36px;
}

.qm-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.qm-article-body-title {
    display: none;
    margin-bottom: 18px;
}

.qm-article-content h1,
.qm-article-content h2,
.qm-article-content h3,
.qm-article-content h4,
.qm-article-content h5,
.qm-article-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
}

.qm-article-content h2 {
    font-size: 28px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.qm-article-content h3 {
    font-size: 24px;
}

.qm-article-content p {
    margin-bottom: 16px;
}

.qm-article-content ul,
.qm-article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.qm-article-content li {
    margin-bottom: 8px;
}

.qm-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 视频容器样式 */
.qm-article-content .qm-video-wrapper {
    position: relative;
    max-width: 100%;
    margin: 24px 0;
}

.qm-article-content .qm-video-wrapper video {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qm-article-content .qm-video-wrapper iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qm-article-content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qm-article-content .qm-block-remove,
.qm-article-content [data-qm-code-action="remove"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.qm-article-content img:not(.qm-hero-mockup-frame) {
    border: none;
    background: transparent;
}

.qm-article-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f9fafb;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    color: #6b7280;
    font-style: italic;
}

.qm-article-content code {
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #dc2626;
}

.qm-article-content pre {
    margin: 24px 0;
    padding: 16px;
    background: #1f2937;
    border-radius: 8px;
    overflow-x: auto;
}

.qm-article-content pre code {
    background: transparent;
    color: #e5e7eb;
    padding: 0;
}

.qm-article-actions {
    display: flex;
    gap: 16px;
    margin: 40px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.qm-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.qm-action-download {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}

.qm-action-download:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.qm-action-preview {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.qm-action-preview:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.qm-action-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.qm-action-vip:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.qm-action-share {
    background: transparent;
    color: #3b82f6;
    border: none;
}

.qm-action-share:hover {
    color: #1d4ed8;
    box-shadow: none;
}

.qm-article-tags {
    margin: 40px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.qm-tags-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.qm-tags-header i {
    color: #3b82f6;
}

.qm-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qm-tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.qm-tag-item:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.qm-article-related {
    margin: 40px 0;
}

.qm-related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.qm-related-title i {
    color: #3b82f6;
}

.qm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.qm-related-item {
    position: relative;
    display: block;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qm-related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.25) 55%, transparent 100%);
}

.qm-related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
}

.qm-related-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 64px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.95);
    color: #111827;
    text-align: center;
    padding: 4px 0 6px;
    font-size: 11px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.qm-related-date-top {
    font-weight: 700;
    font-size: 12px;
}

.qm-related-date-mid {
    margin: 2px 0;
    color: #6b7280;
}

.qm-related-date-bottom {
    font-size: 10px;
    color: #111827;
}

.qm-related-item-title-wrap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
}

.qm-related-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qm-share-poster-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.qm-share-poster-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
}

.qm-share-poster-dialog {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 900px;
    max-height: 90vh;
    background: #f9fafb;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
    padding: 20px 24px 18px;
    display: flex;
    flex-direction: column;
}

.qm-share-poster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.qm-share-poster-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.qm-share-poster-close {
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

.qm-share-poster-close:hover {
    color: #111827;
}

.qm-share-poster-tabs {
    display: inline-flex;
    padding: 4px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-bottom: 14px;
    gap: 4px;
}

.qm-share-poster-tab {
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
}

.qm-share-poster-tab.is-active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.5);
}

.qm-share-poster-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 8px 0 10px;
}

.qm-share-poster {
    display: none;
    width: 320px;
    height: 540px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.4);
    overflow: hidden;
    position: relative;
}

.qm-share-poster.is-active {
    display: block;
}

.qm-share-poster-cover {
    height: 54%;
    background-size: cover;
    background-position: center;
}

.qm-share-poster-content {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 46%;
}

.qm-share-poster-tagline span {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.qm-share-poster-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0 6px;
    line-height: 1.35;
}

.qm-share-poster-desc {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 6px;
}

.qm-share-poster-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.qm-share-poster-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: #6b7280;
}

.qm-share-poster-qr,
.qm-share-poster-qr-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qm-share-poster-qr img,
.qm-share-poster-qr-small img {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    background: #ffffff;
    padding: 4px;
}

.qm-share-poster-qr span {
    font-size: 11px;
    color: #6b7280;
}

.qm-share-poster-row {
    display: flex;
    height: 100%;
}

.qm-share-poster-row-left {
    width: 48%;
    background-size: cover;
    background-position: center;
}

.qm-share-poster-row-right {
    width: 52%;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#qm-poster-2 {
    background: radial-gradient(circle at top, #6366f1 0%, #7c3aed 35%, #4c1d95 100%);
    color: #f9fafb;
}

.qm-poster2-inner {
    position: relative;
    margin: 14px 12px 14px;
    min-height: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qm-poster2-tagbar {
    text-align: center;
    margin-bottom: 10px;
}

.qm-poster2-tag {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 11px;
    background: #f5f3ff;
    color: #2563eb;
    border: 1px solid #e0e7ff;
}

.qm-poster2-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    color: #111827;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.qm-poster2-subtitle {
    font-size: 12px;
    text-align: center;
    color: #6b7280;
    margin-bottom: 10px;
}

.qm-poster2-time {
    font-size: 11px;
    text-align: center;
    color: #6b7280;
    margin-bottom: 12px;
}

.qm-poster2-feature-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f5f3ff;
    margin-bottom: 10px;
}

.qm-poster2-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #3b82f6;
}

.qm-poster2-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qm-poster2-feature-text p {
    font-size: 11px;
    color: #4b5563;
    margin: 0;
}

.qm-poster2-points {
    background: #f9fafb;
    border-radius: 14px;
    padding: 8px 10px 6px;
    margin-bottom: 8px;
}

.qm-poster2-points-header {
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.qm-poster2-points-list {
    padding-left: 16px;
    margin: 0;
}

.qm-poster2-points-list li {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
}

.qm-poster2-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #4f46e5;
    border-radius: 14px;
    padding: 10px 12px;
    color: #e5e7eb;
}

.qm-poster2-price-label {
    font-size: 11px;
    opacity: 0.85;
}

.qm-poster2-price-value {
    font-size: 18px;
    font-weight: 800;
}

.qm-poster2-price-value span {
    font-size: 12px;
    margin-left: 2px;
}

.qm-poster2-price-tip {
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.9;
}

.qm-poster2-bottom-right img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #ffffff;
    padding: 4px;
}

.qm-poster2-bottom-right span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
}

.qm-share-poster-simple {
    padding: 16px 18px 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#qm-poster-3 {
    background: #f97316;
    background-image: linear-gradient(180deg, #fde68a 0%, #f97316 60%, #7c2d12 100%);
}

.qm-poster3-inner {
    margin: 14px 14px 16px;
    background: #fff7ed;
    border-radius: 18px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    box-shadow: 0 18px 40px rgba(124, 45, 18, 0.45);
}

.qm-poster3-calendar {
    border-bottom: 1px solid #fed7aa;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.qm-poster3-week {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #9a3412;
    margin-bottom: 4px;
}

.qm-poster3-week .is-active {
    font-weight: 700;
    color: #b91c1c;
}

.qm-poster3-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qm-poster3-side-text {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    color: #9a3412;
}

.qm-poster3-day {
    font-size: 40px;
    font-weight: 800;
    color: #b91c1c;
}

.qm-poster3-photo {
    margin: 10px 0 8px;
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.qm-poster3-quote-label {
    display: inline-block;
    margin: 4px auto;
    padding: 3px 14px;
    font-size: 11px;
    border-radius: 999px;
    background: #fed7aa;
    color: #9a3412;
}

.qm-poster3-quote-text {
    font-size: 12px;
    color: #7c2d12;
    line-height: 1.7;
    margin: 4px 0 8px;
    text-align: left;
}

.qm-poster3-footer {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #fed7aa;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.qm-poster3-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: #9a3412;
}

.qm-poster3-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.qm-poster3-qr img {
    width: 74px;
    height: 74px;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.qm-poster3-qr span {
    font-size: 10px;
    color: #7c2d12;
}

.qm-share-poster-simple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.qm-share-poster-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    color: #ffffff;
}

.qm-share-poster-simple-date {
    font-size: 11px;
    color: #6b7280;
}

.qm-share-poster-simple-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.qm-share-poster-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.qm-share-save,
.qm-share-copy-link {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.qm-share-save {
    background: #111827;
    color: #ffffff;
}

.qm-share-copy-link {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.qm-share-copy-link:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .qm-share-poster-dialog {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

}

.dark .qm-article-detail {
    background: transparent;
}

/* 暗色模式确保背景延伸到页脚 */
.dark main.qm-article-detail {
    background: transparent;
    min-height: 100vh;
}

.dark .qm-article-content-wrapper {
    background: #020617;
}

.dark .qm-article-breadcrumb {
    color: #9ca3af;
}

.dark .qm-article-breadcrumb a {
    color: #60a5fa;
}

.dark .qm-breadcrumb-current {
    color: #f3f4f6;
}

.dark .qm-article-author-section {
    border-color: #1f2937;
    background: #020617;
}

.dark .qm-author-name {
    color: #f3f4f6;
}

.dark .qm-author-avatar {
    border-color: #3b82f6;
}

.dark .qm-author-update-time {
    color: #9ca3af;
}

.dark .qm-author-btn {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

.dark .qm-author-btn:hover {
    background: #4b5563;
    border-color: #60a5fa;
    color: #60a5fa;
}

.dark .qm-article-content {
    color: #d1d5db;
}

.dark .qm-article-content h1,
.dark .qm-article-content h2,
.dark .qm-article-content h3,
.dark .qm-article-content h4,
.dark .qm-article-content h5,
.dark .qm-article-content h6 {
    color: #f3f4f6;
}

.dark .qm-article-content h2 {
    border-bottom-color: #374151;
}

.dark .qm-article-content blockquote {
    background: #374151;
    color: #9ca3af;
}

.dark .qm-article-content code {
    background: #374151;
    color: #fca5a5;
}

.dark .qm-article-content pre {
    background: #111827;
}

.dark .qm-article-actions {
    background: #374151;
    border-color: #4b5563;
}

.dark .qm-article-tags {
    background: #374151;
    border-color: #4b5563;
}

.dark .qm-tags-header {
    color: #f3f4f6;
}

.dark .qm-tag-item {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.dark .qm-tag-item:hover {
    border-color: rgba(129, 140, 248, 0.22);
    color: #334155;
    background: #eef2ff;
}

.dark .qm-related-title {
    color: #f3f4f6;
}

.dark .qm-related-item {
    background: #374151;
    border-color: #4b5563;
}

.dark .qm-related-item:hover {
    border-color: #60a5fa;
}

.dark .qm-related-thumb {
    background: #4b5563;
}

.dark .qm-related-item-title {
    color: #f3f4f6;
}

@media (max-width: 1200px) {
    .qm-article-hero {
        overflow-x: hidden;
    }

    .qm-article-hero-wrapper {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }

    .qm-article-hero-content {
        padding: 24px 18px;
        gap: 26px;
    }

    .qm-article-hero-image {
        width: min(36vw, 320px);
    }

    .qm-article-hero-title {
        font-size: clamp(20px, 2.3vw, 26px);
        margin-bottom: 14px;
    }

    .qm-article-hero-tagline {
        margin-bottom: 12px;
    }

    .qm-hero-tagline-text {
        font-size: 12px;
        padding: 4px 12px;
    }

    .qm-article-meta-row {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .qm-article-price-value {
        font-size: 22px;
    }

    .qm-article-price-unit {
        font-size: 11px;
    }

    .qm-article-price-tip {
        font-size: 11px;
    }

    .qm-hero-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .qm-article-hero-description {
        font-size: 12px;
        line-height: 1.8;
    }

    .qm-author-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .qm-author-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }

    .qm-article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .qm-article-content h2 {
        font-size: 22px;
        margin-top: 24px;
    }

    .qm-article-content h3 {
        font-size: 20px;
    }

    .qm-article-actions {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }

    .qm-action-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .qm-article-tags {
        padding: 20px;
    }

    .qm-tags-header {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .qm-tag-item {
        font-size: 13px;
        padding: 5px 12px;
    }

    .qm-related-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .qm-related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .qm-related-thumb {
        height: 120px;
    }

}

@media (max-width: 640px) {
    .qm-article-hero {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 18px;
    }

    .qm-article-hero-wrapper {
        min-height: auto;
    }

    .qm-article-hero-content {
        padding: 18px 10px;
        gap: 16px;
    }

    .qm-article-hero-title {
        font-size: 18px;
        display: none; 
    }

    .qm-article-body-title {
        display: block;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.3;
        letter-spacing: 0;
        color: #111827;
        margin-bottom: 14px;
    }

    .qm-article-meta-row {
        display: none;
    }

    .qm-article-hero-actions-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 0;
    }

    .qm-article-price-box {
        width: 100%;
        justify-content: flex-start;
    }

    .qm-article-hero-tagline,
    .qm-hero-tagline-text {
        font-size: 12px;
        display: none;
    }

    .qm-article-meta-row {
        font-size: 11px;
        gap: 8px 12px;
    }

    .qm-article-price-value {
        font-size: 20px;
    }

    .qm-article-price-unit {
        font-size: 11px;
    }

    .qm-hero-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .qm-article-hero-description {
        font-size: 12px;
        display: none;
    }

    .qm-single-post-comments .qm-comment-item .qm-comment-item {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .qm-single-post-comments .qm-comment-body {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0 !important;
    }

    .qm-single-post-comments .qm-comment-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .qm-single-post-comments .qm-comment-author-block {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    #comments.qm-single-post-comments {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

}

.qm-single-post-comments .qm-comment-author-name,
.qm-single-post-comments .qm-comment-date {
    background: transparent !important;
}

.qm-single-post-comments .qm-vip-badge,
.qm-single-post-comments .qm-vip-badge-inline {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
}

.qm-single-post-comments .qm-comment-meta {
    position: relative;
}

@media (max-width: 767.98px) {
    .qm-single-post-comments .qm-comment-author {
        flex-wrap: wrap !important;
        gap: 2px !important;
    }

    .qm-single-post-comments .qm-comment-author-name {
        flex: 0 1 auto !important;
        min-width: 0;
    }

    .qm-single-post-comments .qm-vip-badge,
    .qm-single-post-comments .qm-vip-badge-inline {
        background: transparent;
        padding: 0;
        border-radius: 0;
        color: inherit;
        width: var(--qm-vip-badge-size, 18px);
        height: var(--qm-vip-badge-size, 18px);
        object-fit: contain;
        display: inline-block;
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    .qm-single-post-comments .qm-vip-badge-inline {
        margin-left: 0;
    }

    .qm-single-post-comments .qm-comment-level-badge {
        background: transparent;
        padding: 0;
        border-radius: 0;
        flex: 0 0 auto;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .qm-single-post-comments .qm-comment-level-image {
        height: 24px;
        width: auto;
        max-width: none;
        object-fit: contain;
        flex-shrink: 0;
    }

}

.qm-single-post-comments .qm-comment-featured-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 80px;   
    height: 80px;  
    opacity: 0.65; 
    pointer-events: none; 
    filter: drop-shadow(0 6px 10px rgba(216, 30, 6, 0.18));
    margin-top: 0;
    transform: rotate(12deg);
}

.qm-single-post-comments .qm-comment-featured-badge .qm-featured-icon {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 1023px) {
    .qm-single-post-comments .qm-comment-featured-badge {
        width: 64px;
        height: 64px;
        opacity: 0.6;
        top: -6px;
        right: -6px;
    }

    .qm-single-post-comments .qm-comment-author-block {
        flex: 1;
        min-width: 0; 
    }

    .qm-single-post-comments .qm-comment-author {
        display: flex;
        align-items: center;
        gap: 2px;
        flex-wrap: wrap;
        min-width: 0;
    }

    .qm-single-post-comments .qm-vip-badge-inline {
        margin-left: 0;
    }

    .qm-single-post-comments .qm-comment-author-name {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap; 
    }

    .qm-single-post-comments .qm-comment-level-badge {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .qm-single-post-comments .qm-comment-meta {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        position: relative; 
        min-width: 76px;
    }

}

.qm-single-post-comments .qm-comment-admin-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.qm-single-post-comments .qm-comment-admin-menu-toggle {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 10px;
}

.qm-single-post-comments .qm-comment-admin-menu-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: #111827;
}

.qm-single-post-comments .qm-comment-admin-menu-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 120px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 6px;
    z-index: 20;
}

.qm-single-post-comments .qm-comment-admin-menu.is-open .qm-comment-admin-menu-panel {
    display: block;
}

.qm-single-post-comments .qm-comment-admin-menu-panel .qm-comment-admin-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 8px 10px;
    border-radius: 10px;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
}

.qm-single-post-comments .qm-comment-admin-menu-panel .qm-comment-admin-btn:hover {
    background: rgba(0,0,0,0.06);
}

.qm-single-post-comments .qm-comment-admin-menu-panel .qm-comment-spam-btn:hover {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

.qm-single-post-comments .comment-list .children {
    margin-top: 10px;
}

.qm-comments-error {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #991b1b;
    font-size: 13px;
    line-height: 1.35;
}

.qm-comment-form-error {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    max-width: 900px;
    margin: 0 auto;
    z-index: 9992; 
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .qm-comment-form-error {
        bottom: calc(60px + 3.5rem + env(safe-area-inset-bottom, 0px));
        padding-left: 12px;
        padding-right: 12px;
    }

    body.has-bottom-nav .qm-comment-form-error {
        bottom: calc(60px + 3.5rem + env(safe-area-inset-bottom, 0px));
    }

}

@media (min-width: 1024px) {
    .qm-single-post-comments li.depth-2,
    .qm-single-post-comments li.depth-3,
    .qm-single-post-comments li.depth-4,
    .qm-single-post-comments li.depth-5 {
        margin-left: 56px;
    }

}

/* 移除所有评论项的内边距 */
.qm-single-post-comments .qm-comment-item,
.qm-single-post-comments li.comment,
.qm-single-post-comments .comment-list li,
.qm-single-post-comments .qm-comment-body {
    padding: 0 !important;
}

.qm-single-post-comments li.depth-2 > .qm-comment-body,
.qm-single-post-comments li.depth-3 > .qm-comment-body,
.qm-single-post-comments li.depth-4 > .qm-comment-body,
.qm-single-post-comments li.depth-5 > .qm-comment-body {
    background: rgba(17, 24, 39, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    padding: 0;
}

.qm-single-post-comments li.depth-2 .qm-comment-avatar img,
.qm-single-post-comments li.depth-3 .qm-comment-avatar img,
.qm-single-post-comments li.depth-4 .qm-comment-avatar img,
.qm-single-post-comments li.depth-5 .qm-comment-avatar img {
    width: 40px !important;
    height: 40px !important;
}

.qm-single-post-comments li.depth-2 .qm-comment-actions,
.qm-single-post-comments li.depth-3 .qm-comment-actions,
.qm-single-post-comments li.depth-4 .qm-comment-actions,
.qm-single-post-comments li.depth-5 .qm-comment-actions {
    margin-top: 8px;
}

.qm-comment-form-wrapper:not(.qm-comment-form-float) {
    display: none;
}

.qm-article-detail #back-to-top,
.qm-article-detail .qm-back-to-top {
    z-index: 9989 !important; 
    bottom: 80px !important;
    right: 2rem !important; 
}

@media (max-width: 1023px) {
    .qm-comment-form.qm-comment-form-float {
        bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-bottom-nav .qm-comment-form.qm-comment-form-float {
        bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    }

    .qm-article-detail #back-to-top,
    .qm-article-detail .qm-back-to-top {
        bottom: calc(3.5rem + 60px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.has-bottom-nav .qm-article-detail #back-to-top,
    body.has-bottom-nav .qm-article-detail .qm-back-to-top {
        bottom: calc(3.5rem + 60px + env(safe-area-inset-bottom, 0px)) !important;
    }

}

.qm-comment-form.qm-comment-form-float {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    max-width: 100%;
    margin: 16px 0 12px 0;
    padding: 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.qm-comment-form.qm-comment-form-float.is-inline-reply {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    z-index: auto !important;
}

.qm-reply-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}

.qm-reply-cancel-btn:hover {
    border-color: #cbd5e1;
    color: #374151;
}

@supports (backdrop-filter: blur(10px)) {
.qm-comment-form-float .qm-comment-form {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

}

.qm-comment-field-hidden {
    display: none !important;
}

.comment-form-cookies-consent,
.comment-form-cookies-consent * {
    display: none !important;
}

.qm-comment-field-float {
    flex: 1;
    margin: 0;
    padding: 0;
}

.qm-comment-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 24px;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#f3f4f6, #f3f4f6),
        linear-gradient(135deg, #7c3aed, #ec4899, #f97316);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    transition: all 0.2s ease;
}

.qm-comment-input-wrapper:focus-within {
    background: #ffffff;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(135deg, #7c3aed, #ec4899, #f97316);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.qm-comment-image-preview {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: visible; 
    padding: 6px 6px 2px 6px; 
}

.qm-comment-image-item {
    position: relative;
    flex: 0 0 auto;
    overflow: visible; 
}

.qm-comment-image-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: #fff;
}

.qm-comment-image-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: none;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
}

.qm-comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.qm-comment-image-link {
    display: inline-block;
}

.qm-comment-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: #fff;
}

.qm-comment-attach-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.qm-comment-attach-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.qm-comment-attach-btn i {
    font-size: 16px;
}

.qm-comment-field-float textarea {
    flex: 1;
    min-height: 44px;
    max-height: 200px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    font-family: inherit;
    overflow-y: auto;
}

.qm-comment-field-float textarea::placeholder {
    color: #9ca3af;
}

.qm-comment-send-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.qm-comment-send-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.qm-comment-send-btn:active {
    transform: scale(0.95);
}

.qm-comment-send-btn i {
    font-size: 16px;
}

.qm-comment-form-float .qm-comment-submit-btn {
    display: none;
}

.qm-comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.qm-comment-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qm-comment-quick-reply-btn {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.qm-comment-quick-reply-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.qm-comment-toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.qm-comment-emoji-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    transition: background .15s ease;
}

.qm-comment-emoji-toggle:hover {
    background: rgba(148, 163, 184, 0.2);
}

.qm-comment-emoji-panel {
    display: none;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    max-width: 100%;
    max-height: 160px;
    overflow-y: auto;
}

.qm-comment-emoji-panel.is-open {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.qm-comment-emoji-item {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background .15s ease, transform .1s ease;
}

.qm-comment-emoji-item:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: scale(1.05);
}

.dark .qm-comment-emoji-panel {
    background: #020617;
    border-color: #1e293b;
}

.dark .qm-comment-quick-reply-btn {
    background: #020617;
    border-color: #1e293b;
    color: #9ca3af;
}

.dark .qm-comment-quick-reply-btn:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: #1d4ed8;
    color: #e5e7eb;
}

@media (max-width: 640px) {
    .qm-comment-form-float .qm-comment-form {
        padding: 10px 12px;
    }

    .qm-comment-input-wrapper {
        padding: 6px 12px;
        gap: 8px;
    }

    .qm-comment-attach-btn,
    .qm-comment-send-btn {
        width: 28px;
        height: 28px;
    }

    .qm-comment-attach-btn i,
    .qm-comment-send-btn i {
        font-size: 14px;
    }

    .qm-comment-field-float textarea {
        font-size: 14px;
    }

}

.dark .qm-comment-form-float .qm-comment-form {
    background: rgba(30, 41, 59, 0.95);
    border-top-color: #334155;
}

@supports (backdrop-filter: blur(10px)) {
    .dark .qm-comment-form-float .qm-comment-form {
        background: rgba(30, 41, 59, 0.85);
    }

}

.dark .qm-comment-input-wrapper {
    background: #1f2937;
    border-color: #374151;
}

.dark .qm-comment-input-wrapper:focus-within {
    background: #111827;
    border-color: #2563eb;
}

.dark .qm-comment-field-float textarea {
    color: #f3f4f6;
}

.dark .qm-comment-field-float textarea::placeholder {
    color: #6b7280;
}

.dark .qm-comment-attach-btn,
.dark .qm-comment-send-btn {
    color: #9ca3af;
}

.dark .qm-comment-attach-btn:hover,
.dark .qm-comment-send-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

.qm-paywall {
    position: relative;
    border-radius: 14px;
}

.qm-paywall-content {
    position: relative;
    overflow: hidden;
    transition: max-height .2s ease;
}

.qm-paywall.is-locked .qm-paywall-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.92) 55%, rgba(255,255,255,1));
    pointer-events: none;
}

body.dark .qm-paywall.is-locked .qm-paywall-mask,
.dark .qm-paywall.is-locked .qm-paywall-mask {
    background: linear-gradient(to bottom, rgba(17,24,39,0), rgba(17,24,39,.92) 55%, rgba(17,24,39,1));
}

.qm-paywall-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.qm-paywall-btn {
    pointer-events: auto;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #111827;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.qm-paywall-btn:hover { opacity: .92; }
.qm-read-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.qm-read-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.qm-read-modal-content {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.qm-read-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.qm-read-modal-header h3 { margin: 0; font-size: 16px; }
.qm-read-modal-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
}

.qm-read-modal-body { padding: 16px; }
.qm-read-modal-price { margin-bottom: 10px; }
.qm-read-modal-price-original {
    margin-left: 8px;
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}
.qm-read-modal-methods-title { margin: 10px 0 8px; color: #374151; font-size: 13px; }
.qm-read-modal-methods-list { display: flex; flex-wrap: wrap; gap: 10px; }
.qm-read-method-btn {
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

.qm-read-method-btn:hover { border-color: rgba(0,0,0,.2); }
.qm-read-modal-refresh {
    border: 0;
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.dark .qm-read-modal-content,
body.dark .qm-read-modal-content {
    background: #111827;
    color: #e5e7eb;
}

.dark .qm-read-modal-header,
body.dark .qm-read-modal-header { border-bottom-color: rgba(255,255,255,.08); }
.dark .qm-read-modal-close,
body.dark .qm-read-modal-close { color: #e5e7eb; }
.dark .qm-read-method-btn,
body.dark .qm-read-method-btn {
    background: #0b1220;
    border-color: rgba(255,255,255,.10);
    color: #e5e7eb;
}

.dark .qm-payment-coupons-title,
.dark .qm-payment-coupon-btn__desc,
body.dark .qm-payment-coupons-title,
body.dark .qm-payment-coupon-btn__desc {
    color: #cbd5e1;
}

.dark .qm-payment-coupon-btn,
body.dark .qm-payment-coupon-btn {
    background: #0f172a;
    border-color: rgba(244, 114, 182, 0.18);
    color: #e5e7eb;
}

.dark .qm-payment-coupon-btn__label,
body.dark .qm-payment-coupon-btn__label {
    color: #f8fafc;
}

.dark .qm-payment-coupon-btn.is-active,
body.dark .qm-payment-coupon-btn.is-active {
    background: rgba(190, 24, 93, 0.16);
    border-color: rgba(244, 114, 182, 0.45);
}

.dark .qm-read-modal-price-original,
body.dark .qm-read-modal-price-original {
    color: #94a3b8;
}

.qm-vip-discount-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    color: #b45309;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.dark .qm-vip-discount-badge,
body.dark .qm-vip-discount-badge {
    color: #facc15;
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(250, 204, 21, 0.45);
}

.qm-download-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qm-download-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.4;
}

.qm-download-btn-wrapper {
    position: relative;
    display: inline-block;
}

.qm-download-tag-corner {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    font-size: 11px;
    padding: 3px 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 移动端缩小价格标签 */
@media (max-width: 767.98px) {
    .qm-download-tag-corner {
        font-size: 9px !important;
        padding: 2px 5px !important;
        top: -6px !important;
        right: -6px !important;
        line-height: 1.2 !important;
        border-radius: 8px !important;
    }

    .qm-download-tag {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

}

.qm-download-tag-free {
    color: #15803d;
    background: #ecfdf3;
    border: 1px solid rgba(22, 163, 74, 0.28);
    font-weight: 600;
}

.qm-download-tag-price {
    color: #111827;
    background: #fefce8;
    border: 1px solid rgba(250, 204, 21, 0.45);
    font-weight: 700;
}

.qm-download-tag-vip {
    color: #ffffff !important;
    background: rgba(251, 191, 36, 0.16);
}

.dark .qm-download-tag-free,
body.dark .qm-download-tag-free {
    color: #166534;
    background: #ecfdf3;
    border-color: rgba(22, 163, 74, 0.24);
}

.dark .qm-download-tag-price,
body.dark .qm-download-tag-price {
    color: #854d0e;
    background: #fef3c7;
    border-color: rgba(245, 158, 11, 0.24);
}

.dark .qm-download-tag-vip,
body.dark .qm-download-tag-vip {
    color: #92400e !important;
    background: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.24);
}

/* 订单支付成功弹窗 */
.qm-order-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qm-order-success-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.qm-order-success-modal__container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.qm-order-success-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.qm-order-success-modal__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.qm-order-success-modal__close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.qm-order-success-modal__close:hover {
    color: #111827;
}

.qm-order-success-modal__body {
    padding: 32px 24px;
    text-align: center;
}

.qm-order-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    border-radius: 50%;
    color: #ffffff;
    font-size: 40px;
}

.qm-order-success-info {
    text-align: left;
}

.qm-order-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.qm-order-info-item:last-child {
    border-bottom: none;
}

.qm-order-info-label {
    color: #6b7280;
    font-size: 14px;
}

.qm-order-info-value {
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}

.qm-order-amount {
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
}

.qm-order-success-modal__footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #e5e7eb;
}

.qm-order-success-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.qm-order-success-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.qm-order-success-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.qm-order-success-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.qm-order-success-btn-secondary:hover {
    background: #e5e7eb;
}

.dark .qm-order-success-modal__container {
    background: #1f2937;
}

.dark .qm-order-success-modal__header {
    border-bottom-color: #374151;
}

.dark .qm-order-success-modal__header h3 {
    color: #f3f4f6;
}

.dark .qm-order-success-modal__close {
    color: #9ca3af;
}

.dark .qm-order-success-modal__close:hover {
    color: #f3f4f6;
}

.dark .qm-order-info-item {
    border-bottom-color: #374151;
}

.dark .qm-order-info-label {
    color: #9ca3af;
}

.dark .qm-order-info-value {
    color: #f3f4f6;
}

.dark .qm-order-success-modal__footer {
    border-top-color: #374151;
}

.dark .qm-order-success-btn-secondary {
    background: #374151;
    color: #d1d5db;
}

.dark .qm-order-success-btn-secondary:hover {
    background: #4b5563;
}

/* -----------------------------------------------------
   文章正文防溢出保护（长链接/代码/表格/媒体）
------------------------------------------------------ */
.qm-article-content {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.qm-article-content > * {
    min-width: 0;
    max-width: 100%;
}

.qm-article-content p,
.qm-article-content li,
.qm-article-content blockquote,
.qm-article-content figcaption,
.qm-article-content a,
.qm-article-content code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.qm-article-content pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.qm-article-content pre code {
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

.qm-article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.qm-article-content table th,
.qm-article-content table td {
    word-break: break-word;
}

.qm-article-content img,
.qm-article-content video,
.qm-article-content canvas,
.qm-article-content svg,
.qm-article-content embed,
.qm-article-content object {
    max-width: 100% !important;
    height: auto;
}

.qm-article-content iframe {
    max-width: 100% !important;
}

/* Refined Article Detail Layout */
.qm-article-detail-refined {
    --qm-article-accent: var(--qm-primary, #f42f25);
    --qm-article-accent-2: #ff8a65;
    --qm-article-surface: #ffffff;
    --qm-article-border: rgba(15, 23, 42, 0.08);
    --qm-article-text: #0f172a;
    --qm-article-text-soft: #475569;
    --qm-article-muted: #64748b;
    --qm-article-module-gap: 10px;
    --qm-article-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    background: transparent;
}

main.qm-article-detail-refined {
    padding: 18px 0 40px;
}

.qm-article-detail-refined .qm-article-shell {
    max-width: 1360px;
}

.qm-article-detail-refined .qm-article-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qm-article-detail-refined .qm-article-main-content {
    order: 1;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.qm-article-detail-refined .qm-article-aside {
    order: 2;
}

.qm-article-detail-refined .qm-article-rail {
    order: 3;
    align-self: start;
}

.qm-article-detail-refined .qm-article-main-stack,
.qm-article-detail-refined .qm-article-aside-stack,
.qm-article-detail-refined .qm-article-rail-inner {
    display: flex;
    flex-direction: column;
    gap: var(--qm-article-module-gap);
}

.qm-article-detail-refined .qm-article-rail-inner {
    position: static;
    z-index: 15;
}

.qm-article-detail-refined .qm-article-main-stack > .qm-article-reading-card,
.qm-article-detail-refined .qm-article-main-stack > .qm-article-end-card {
    margin: 0;
}

.qm-article-detail-refined .qm-article-lead-card,
.qm-article-detail-refined .qm-article-reading-card,
.qm-article-detail-refined .qm-article-end-card,
.qm-article-detail-refined .qm-article-side-card,
.qm-article-detail-refined .qm-article-rail-author-card {
    background: var(--qm-article-surface);
    border: 1px solid var(--qm-article-border);
    border-radius: 14px;
    box-shadow: var(--qm-article-shadow);
}

.qm-article-detail-refined .qm-article-breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qm-article-detail-refined .qm-article-breadcrumb-label {
    color: #9ca3af;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-breadcrumb-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.qm-article-detail-refined .qm-article-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
}

.qm-article-detail-refined .qm-article-breadcrumb-item:not(:last-child)::after {
    content: ">";
    color: #cbd5e1;
}

.qm-article-detail-refined .qm-article-breadcrumb-item a {
    color: inherit;
    text-decoration: none;
}

.qm-article-detail-refined .qm-article-breadcrumb-item.is-current {
    color: inherit;
    font-weight: inherit;
}

.qm-article-detail-refined .qm-article-content-card {
    padding: 0;
}

.qm-article-detail-refined .qm-article-content-head {
    padding: 28px 30px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.qm-article-detail-refined .qm-article-content-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.25vw, 2.05rem);
    line-height: 1.2;
    color: var(--qm-article-text);
    letter-spacing: -0.03em;
}

.qm-article-detail-refined .qm-article-content-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--qm-article-muted);
}

.qm-article-detail-refined .qm-article-content-prose {
    padding-top: 18px;
    padding-bottom: 28px;
}

.qm-article-detail-refined .qm-article-lead-card {
    display: none;
}

.qm-article-detail-refined .qm-article-lead-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.qm-article-detail-refined .qm-article-lead-pills,
.qm-article-detail-refined .qm-article-lead-tags,
.qm-article-detail-refined .qm-article-download-flags,
.qm-article-detail-refined .qm-article-download-features,
.qm-article-detail-refined .qm-article-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-article-detail-refined .qm-article-lead-pill,
.qm-article-detail-refined .qm-article-tag-chip,
.qm-article-detail-refined .qm-tag-item,
.qm-article-detail-refined .qm-article-cloud__item,
.qm-article-detail-refined .qm-side-flag,
.qm-article-detail-refined .qm-side-soft-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.qm-article-detail-refined .qm-article-lead-pill {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--qm-article-text-soft);
}

.qm-article-detail-refined .qm-article-lead-pill--primary,
.qm-article-detail-refined .qm-article-tag-chip--cat,
.qm-article-detail-refined .qm-article-cloud__item--cat {
    background: rgba(244, 47, 37, 0.08);
    border: 1px solid rgba(244, 47, 37, 0.14);
    color: var(--qm-article-accent);
}

.qm-article-detail-refined .qm-article-tag-chip {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--qm-article-text-soft);
}

.qm-article-detail-refined .qm-tag-item,
.qm-article-detail-refined .qm-side-flag,
.qm-article-detail-refined .qm-side-soft-chip {
    background: #fffaf8;
    border: 1px solid rgba(244, 47, 37, 0.10);
    color: var(--qm-article-text-soft);
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-cloud__item {
    --qm-chip-hue: calc(10 + (var(--qm-chip-index, 1) * 16));
    background: hsl(var(--qm-chip-hue) 100% 97%);
    color: hsl(var(--qm-chip-hue) 76% 34%);
    border: 1px solid hsl(var(--qm-chip-hue) 90% 90%);
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-lead-update {
    font-size: 12px;
    color: var(--qm-article-muted);
    white-space: nowrap;
}

.qm-article-detail-refined .qm-article-lead-title {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.65rem);
    line-height: 1.2;
    color: var(--qm-article-text);
    letter-spacing: -0.02em;
}

.qm-article-detail-refined .qm-article-lead-meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 16px;
}

.qm-article-detail-refined .qm-article-lead-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.qm-article-detail-refined .qm-article-lead-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.qm-article-detail-refined .qm-article-lead-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-article-detail-refined .qm-article-lead-author-main {
    min-width: 0;
}

.qm-article-detail-refined .qm-article-lead-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qm-article-detail-refined .qm-article-lead-author-name,
.qm-article-detail-refined .qm-article-rail-author-name {
    color: var(--qm-article-text);
    font-weight: 700;
    text-decoration: none;
}

.qm-article-detail-refined .qm-article-lead-author-name {
    font-size: 15px;
}

.qm-article-detail-refined .qm-article-lead-author-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: 12px;
    color: var(--qm-article-muted);
}

.qm-article-detail-refined .qm-article-lead-author-row .qm-level-badge-sm {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    border-radius: 999px;
}

.qm-article-detail-refined .qm-article-lead-author-row .qm-vip-badge-inline,
.qm-article-detail-refined .qm-article-lead-author-row .qm-special-badge-inline {
    height: 22px;
    width: auto;
}

.qm-article-detail-refined .qm-article-lead-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qm-article-detail-refined .qm-article-stat-card {
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f6 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qm-article-detail-refined .qm-article-stat-label {
    font-size: 11px;
    color: var(--qm-article-muted);
    letter-spacing: 0.04em;
}

.qm-article-detail-refined .qm-article-stat-card strong {
    font-size: 16px;
    color: var(--qm-article-text);
}

.qm-article-detail-refined .qm-article-lead-summary {
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(244, 47, 37, 0.06), rgba(255, 138, 101, 0.10));
    color: var(--qm-article-text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.qm-article-detail-refined .qm-article-reading-card {
    overflow: hidden;
    padding: 0;
}

.qm-article-detail-refined .qm-article-content {
    color: var(--qm-article-text-soft);
    font-size: 17px;
    line-height: 1.9;
}

.qm-article-detail-refined .qm-article-content h1 {
    font-size: 28px;
    margin-top: 36px;
    line-height: 1.34;
}

.qm-article-detail-refined .qm-article-content h2 {
    font-size: 22px;
    margin-top: 32px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 10px;
    line-height: 1.38;
}

.qm-article-detail-refined .qm-article-content h2::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qm-article-accent), var(--qm-article-accent-2));
}

.qm-article-detail-refined .qm-article-content h3 {
    font-size: 18px;
    line-height: 1.42;
}

.qm-article-detail-refined .qm-article-content blockquote {
    border-left-color: var(--qm-article-accent);
    background: rgba(244, 47, 37, 0.04);
}

.qm-article-detail-refined .qm-article-content a {
    color: var(--qm-article-accent);
}

.qm-article-detail-refined .qm-article-content img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: min(72vh, 960px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    margin: 26px auto;
}

.qm-article-detail-refined .qm-article-content figure,
.qm-article-detail-refined .qm-article-content .wp-caption,
.qm-article-detail-refined .qm-article-content .wp-block-image {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

.qm-article-detail-refined .qm-article-content .qm-block-remove,
.qm-article-detail-refined .qm-article-content [data-qm-code-action="remove"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.qm-article-detail-refined .qm-article-end-card {
    padding: 10px 14px;
}

.qm-article-detail-refined .qm-article-tags {
    padding: 12px 14px 14px;
}

.qm-article-detail-refined .qm-article-post-nav {
    padding: 0;
    overflow: hidden;
}

.qm-article-detail-refined .qm-article-post-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.qm-article-detail-refined .qm-article-post-nav-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 96px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--qm-article-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qm-article-detail-refined .qm-article-post-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.qm-article-detail-refined .qm-article-post-nav-card--next {
    text-align: right;
    align-items: flex-end;
}

.qm-article-detail-refined .qm-article-post-nav-card--empty {
    visibility: hidden;
}

.qm-article-detail-refined .qm-article-post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-post-nav-title {
    color: #334155;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-related-section.qm-article-end-card {
    padding: 12px 14px 16px;
    background: transparent;
    background-image: none;
    box-shadow: none;
}

.qm-article-detail-refined .qm-article-related-head {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 0 8px;
}

.qm-article-detail-refined .qm-article-related-accent {
    width: 3px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--qm-article-accent) 0%, var(--qm-article-accent-2) 100%);
    flex-shrink: 0;
}

.qm-article-detail-refined .qm-article-related-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.1;
    color: var(--qm-article-text);
    font-weight: 800;
}

.qm-article-detail-refined .qm-article-related-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    overflow: hidden;
}

.qm-article-detail-refined .qm-article-related-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 min(280px, 100%);
    width: min(280px, 100%);
    max-width: none;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qm-article-detail-refined .qm-article-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.qm-article-detail-refined .qm-article-related-thumb {
    display: block;
    aspect-ratio: 16 / 7;
    background: #f8fafc;
    overflow: hidden;
}

.qm-article-detail-refined .qm-article-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-article-detail-refined .qm-article-related-thumb i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 24px;
}

.qm-article-detail-refined .qm-article-related-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 10px;
}

.qm-article-detail-refined .qm-article-related-card-title {
    color: var(--qm-article-text);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qm-article-detail-refined .qm-article-related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--qm-article-muted);
    font-size: 10px;
}

.qm-article-detail-refined .qm-article-related-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qm-article-detail-refined .qm-tags-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--qm-article-text);
    font-weight: 700;
}

.qm-article-detail-refined .qm-tags-header i {
    color: var(--qm-article-accent);
}

.qm-article-detail-refined .qm-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-article-detail-refined .qm-article-comments-section {
    width: 100%;
    max-width: none;
    margin: 0;
    margin-left: 0;
    border-top: none;
    padding-top: 12px !important;
    padding-bottom: 18px !important;
}

.qm-article-detail-refined .qm-article-comments-header-outside {
    padding: 0 18px 10px;
}

.qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
}

.qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    gap: 5px;
}

.qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-title > span:not(.qm-comments-count) {
    font-size: 13px;
    line-height: 1.1;
}

.qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-count {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--qm-primary, #f42f25), #ff6fa2);
    color: transparent;
    font-size: 0;
}

.qm-article-detail-refined .qm-article-rail-author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qm-article-detail-refined .qm-article-rail-avatar-wrap {
    position: relative;
    width: 58px;
    padding-bottom: 10px;
}

.qm-article-detail-refined .qm-article-rail-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.qm-article-detail-refined .qm-article-rail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-article-detail-refined .qm-article-rail-author-meta {
    min-width: 0;
    flex: 1;
}

.qm-article-detail-refined .qm-author-follow-btn {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qm-article-accent), var(--qm-article-accent-2));
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(244, 47, 37, 0.22);
    z-index: 2;
}

.qm-article-detail-refined .qm-author-follow-btn.followed {
    background: rgba(15, 23, 42, 0.06);
    color: var(--qm-article-text);
    box-shadow: none;
}

.qm-article-detail-refined .qm-post-actions-float-refined {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn {
    width: 100%;
    min-height: 50px;
    padding: 8px 6px;
    border-radius: 12px;
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--qm-article-text-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn i {
    font-size: 18px;
    margin: 0;
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-count {
    font-size: 12px;
    line-height: 1.2;
    color: inherit;
    font-weight: 700;
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn--single {
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-like {
    color: var(--qm-article-accent);
    border-color: rgba(244, 47, 37, 0.12);
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-like.active,
.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-like.liked {
    background: transparent;
    border-color: rgba(244, 47, 37, 0.22);
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-collect,
.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-share,
.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-report {
    color: var(--qm-article-accent);
    border-color: rgba(244, 47, 37, 0.10);
}

.qm-article-detail-refined .qm-post-actions-float-refined .qm-action-collect.active {
    background: transparent;
    border-color: rgba(244, 47, 37, 0.22);
}

.qm-article-detail-refined .qm-article-side-card {
    overflow: hidden;
}

.qm-article-detail-refined .qm-article-side-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 0;
}

.qm-article-detail-refined .qm-article-side-card__header h3,
.qm-article-detail-refined .qm-article-side-title {
    margin: 0;
    color: var(--qm-article-text);
    font-size: 18px;
    font-weight: 800;
}

.qm-article-detail-refined .qm-article-side-card__body {
    padding: 18px;
}

.qm-article-detail-refined .qm-article-side-kicker,
.qm-article-detail-refined .qm-article-cloud-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--qm-article-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.qm-article-detail-refined .qm-article-side-desc {
    margin: 0;
    color: var(--qm-article-muted);
    line-height: 1.65;
    font-size: 14px;
}

.qm-article-detail-refined .qm-article-download-card .qm-article-side-card__body {
    display: grid;
    gap: 14px;
}

.qm-article-detail-refined .qm-article-download-hero {
    --qm-download-hero-accent: var(--qm-blue, #2563eb);
    --qm-download-hero-soft: var(--qm-blue-rgba-12, rgba(37, 99, 235, 0.12));
    --qm-download-status-start: #60a5fa;
    --qm-download-status-end: var(--qm-blue, #2563eb);
    --qm-download-corner-start: #60a5fa;
    --qm-download-corner-end: var(--qm-blue, #2563eb);
    display: grid;
    gap: 18px;
    padding: 16px 16px 0;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
        linear-gradient(135deg, var(--qm-download-hero-soft) 0%, rgba(255, 255, 255, 0.96) 62%, rgba(248, 250, 252, 0.98) 100%);
}

.qm-article-detail-refined .qm-article-download-hero--success {
    --qm-download-hero-accent: var(--qm-blue, #2563eb);
    --qm-download-hero-soft: var(--qm-blue-rgba-12, rgba(37, 99, 235, 0.12));
}

.qm-article-detail-refined .qm-article-download-hero--warning {
    --qm-download-hero-accent: var(--qm-blue, #2563eb);
    --qm-download-hero-soft: var(--qm-blue-rgba-12, rgba(37, 99, 235, 0.12));
}

.qm-article-detail-refined .qm-article-download-hero--info {
    --qm-download-hero-accent: var(--qm-blue, #2563eb);
    --qm-download-hero-soft: var(--qm-blue-rgba-12, rgba(37, 99, 235, 0.12));
}

.qm-article-detail-refined .qm-article-download-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin: -16px -16px 0;
}

.qm-article-detail-refined .qm-article-download-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 10px 0 8px;
    border-radius: 12px 0 12px 0;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.qm-article-detail-refined .qm-article-download-status {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--qm-download-status-start) 0%, var(--qm-download-status-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 14px rgba(37, 99, 235, 0.18);
}

.qm-article-detail-refined .qm-article-download-count {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    align-self: flex-start;
    min-height: 22px;
    margin-top: 14px;
    margin-left: auto;
    padding: 0 6px 0 8px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, var(--qm-download-corner-start) 0%, var(--qm-download-corner-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 8px rgba(37, 99, 235, 0.18);
    white-space: nowrap;
    line-height: 1;
}

.qm-article-detail-refined .qm-article-download-count::before {
    content: none;
}

.qm-article-detail-refined .qm-article-download-count::after {
    content: none;
}

.qm-article-detail-refined .qm-article-download-count-text {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

.qm-article-detail-refined .qm-article-download-count strong {
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-download-count.is-label-only {
    padding-right: 6px;
}

.qm-article-detail-refined .qm-article-download-status i,
.qm-article-detail-refined .qm-article-download-count-text i {
    font-size: 10px;
}

.qm-article-detail-refined .qm-article-download-hero-main {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 2px 4px 0;
}

.qm-article-detail-refined .qm-article-download-price-head {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
}

.qm-article-detail-refined .qm-article-download-price-prefix {
    color: var(--qm-article-text-soft);
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    padding-bottom: 6px;
    white-space: nowrap;
}

.qm-article-detail-refined .qm-article-download-price-original {
    color: rgba(71, 85, 105, 0.48);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    padding-bottom: 6px;
    white-space: nowrap;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.qm-article-detail-refined .qm-article-download-price-value {
    color: var(--qm-article-text);
    font-size: clamp(2.65rem, 8.4vw, 4rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.055em;
    word-break: break-word;
}

.qm-article-detail-refined .qm-article-download-hero-main.is-textual-price {
    gap: 6px;
}

.qm-article-detail-refined .qm-article-download-price-value.is-textual {
    font-size: clamp(2.15rem, 6.8vw, 3rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.qm-article-detail-refined .qm-article-download-price-side {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-bottom: 2px;
}

.qm-article-detail-refined .qm-article-download-hero-main.is-textual-price .qm-article-download-price-side {
    max-width: none;
    gap: 4px;
    padding-bottom: 2px;
}

.qm-article-detail-refined .qm-article-download-price-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
}

.qm-article-detail-refined .qm-article-download-price-fact {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
}

.qm-article-detail-refined .qm-article-download-price-fact em {
    color: rgba(71, 85, 105, 0.56);
    font-size: 10px;
    line-height: 1.2;
    font-style: normal;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-download-price-fact strong {
    color: rgba(15, 23, 42, 0.56);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    text-align: right;
}

.qm-article-detail-refined .qm-article-download-price-fact.is-member strong,
.qm-article-detail-refined .qm-article-download-price-fact.is-normal strong {
    color: rgba(71, 85, 105, 0.66);
}

.qm-article-detail-refined .qm-article-download-price-fact.is-original strong {
    opacity: 0.56;
    font-weight: 500;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.qm-article-detail-refined .qm-article-download-price-note {
    color: var(--qm-article-text-soft);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-download-hero-main.is-textual-price .qm-article-download-price-note {
    font-size: 13px;
    line-height: 1.5;
}

.qm-article-detail-refined .qm-article-download-price-note.is-striked {
    opacity: 0.78;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.qm-article-detail-refined .qm-article-download-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 -16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.qm-article-detail-refined .qm-article-download-tier {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.32);
}

.qm-article-detail-refined .qm-article-download-tier + .qm-article-download-tier {
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.qm-article-detail-refined .qm-article-download-tier-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qm-article-muted);
    font-size: 14px;
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-download-tier strong {
    color: var(--qm-article-text);
    font-size: clamp(18px, 4.8vw, 20px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.qm-article-detail-refined .qm-article-download-tier.is-member-price {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.10) 0%, rgba(34, 197, 94, 0.04) 100%);
}

.qm-article-detail-refined .qm-article-download-tier.is-member-price .qm-article-download-tier-label {
    color: #15803d;
}

.qm-article-detail-refined .qm-article-download-tier.is-member-price .qm-article-download-tier-label i {
    color: #16a34a;
}

.qm-article-detail-refined .qm-article-download-tier.is-member-price strong {
    color: #166534;
}

.qm-article-detail-refined .qm-article-download-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 0 2px;
}

.qm-article-detail-refined .qm-article-download-service-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qm-article-text-soft);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-download-service-item i {
    color: var(--qm-article-muted);
    font-size: 14px;
}

.qm-article-detail-refined .qm-article-download-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left-width: 3px;
    font-size: 14px;
    line-height: 1.65;
    background: #f8fafc;
    color: var(--qm-article-text-soft);
}

.qm-article-detail-refined .qm-article-download-notice i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 15px;
}

.qm-article-detail-refined .qm-article-download-notice span {
    min-width: 0;
    color: inherit;
}

.qm-article-detail-refined .qm-article-download-notice--success {
    border-left-color: #22c55e;
}

.qm-article-detail-refined .qm-article-download-notice--warning {
    border-left-color: #f59e0b;
}

.qm-article-detail-refined .qm-article-download-notice--info {
    border-left-color: #3b82f6;
}

.qm-article-detail-refined .qm-article-download-notice--success i {
    color: #16a34a;
}

.qm-article-detail-refined .qm-article-download-notice--warning i {
    color: #d97706;
}

.qm-article-detail-refined .qm-article-download-notice--info i {
    color: #2563eb;
}

.qm-article-detail-refined .qm-article-download-source-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.qm-article-detail-refined .qm-article-download-source-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-article-detail-refined .qm-article-download-source-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--qm-article-text-soft);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qm-article-detail-refined .qm-article-download-source-tab:hover {
    border-color: rgba(244, 47, 37, 0.16);
    color: var(--qm-article-text);
}

.qm-article-detail-refined .qm-article-download-source-tab.is-active {
    border-color: rgba(244, 47, 37, 0.18);
    background: rgba(244, 47, 37, 0.06);
    color: var(--qm-article-accent);
}

.qm-article-detail-refined .qm-article-download-source-panels {
    min-width: 0;
}

.qm-article-detail-refined .qm-article-download-source-panel {
    display: none;
}

.qm-article-detail-refined .qm-article-download-source-panel.is-active {
    display: grid;
    gap: 12px;
}

.qm-article-detail-refined .qm-article-download-source-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qm-article-detail-refined .qm-article-download-source-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--qm-article-text);
    font-size: 14px;
    font-weight: 800;
}

.qm-article-detail-refined .qm-article-download-source-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--qm-article-muted);
    font-size: 12px;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-download-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qm-article-detail-refined .qm-article-download-code-item {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.84);
}

.qm-article-detail-refined .qm-article-download-code-item:only-child {
    grid-column: 1 / -1;
}

.qm-article-detail-refined .qm-article-download-code-item span {
    color: var(--qm-article-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.qm-article-detail-refined .qm-article-download-code-item strong {
    color: var(--qm-article-text);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    word-break: break-all;
}

.qm-article-detail-refined .qm-article-download-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: var(--qm-article-text-soft);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qm-article-detail-refined .qm-article-download-copy-btn:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    color: var(--qm-article-text);
}

.qm-article-detail-refined .qm-article-download-copy-btn.is-copied {
    border-color: rgba(34, 197, 94, 0.18);
    background: rgba(34, 197, 94, 0.10);
    color: #15803d;
}

.qm-article-detail-refined .qm-article-download-source-empty {
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px dashed rgba(15, 23, 42, 0.10);
    background: #f8fafc;
    color: var(--qm-article-muted);
    font-size: 13px;
    line-height: 1.7;
}

.qm-article-detail-refined .qm-article-download-meta-table {
    display: grid;
    gap: 0;
    padding: 6px 12px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
}

.qm-article-detail-refined .qm-article-download-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.qm-article-detail-refined .qm-article-download-meta-row span {
    color: rgba(15, 23, 42, 0.42);
    font-size: 11px;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-download-meta-row strong {
    color: rgba(15, 23, 42, 0.62);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.qm-article-detail-refined .qm-article-download-actions {
    margin-top: 0;
    display: grid;
    gap: 10px;
}

.qm-article-detail-refined .qm-article-download-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.qm-article-detail-refined .qm-article-download-action-row.is-single {
    grid-template-columns: 1fr;
}

.qm-article-detail-refined .qm-article-side-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    box-shadow: none;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-download-action-row .qm-article-side-btn {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 9px;
    font-size: 12px;
}

.qm-article-detail-refined .qm-download-btn-primary.qm-article-side-btn {
    background: var(--qm-article-accent);
    border: 1px solid var(--qm-article-accent);
    box-shadow: 0 12px 24px rgba(244, 47, 37, 0.12);
}

.qm-article-detail-refined .qm-download-btn-primary.qm-article-side-btn:hover {
    background: var(--qm-article-accent-2);
    border-color: var(--qm-article-accent-2);
}

.qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: var(--qm-article-text);
}

.qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
}

.qm-article-detail-refined .qm-article-download-demo-btn {
    background: rgba(244, 47, 37, 0.06);
    border-color: rgba(244, 47, 37, 0.10);
    color: var(--qm-article-accent);
}

.qm-article-detail-refined .qm-article-download-demo-btn:hover {
    background: rgba(244, 47, 37, 0.09);
    border-color: rgba(244, 47, 37, 0.16);
}

.qm-article-detail-refined .qm-article-download-demo-btn.is-disabled,
.qm-article-detail-refined .qm-article-download-demo-btn[disabled] {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: rgba(15, 23, 42, 0.38);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.qm-article-detail-refined .qm-article-download-demo-btn.is-disabled:hover,
.qm-article-detail-refined .qm-article-download-demo-btn[disabled]:hover {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: rgba(15, 23, 42, 0.38);
}

.qm-article-detail-refined .qm-download-btn-vip.qm-article-side-btn {
    background: #fff9eb;
    border: 1px solid rgba(217, 119, 6, 0.20);
    color: #92400e;
}

.qm-article-detail-refined .qm-download-btn-vip.qm-article-side-btn:hover {
    background: #fef3c7;
    border-color: rgba(217, 119, 6, 0.28);
}

.qm-article-detail-refined .qm-download-btn-vip.qm-article-side-btn i {
    color: inherit;
}

.qm-article-detail-refined .qm-article-download-empty {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px dashed rgba(15, 23, 42, 0.10);
    color: var(--qm-article-muted);
    font-size: 13px;
    line-height: 1.7;
}

.qm-article-detail-refined .qm-article-inline-download {
    --qm-inline-download-accent: var(--qm-blue, #2563eb);
    --qm-inline-download-soft: var(--qm-blue-rgba-12, rgba(37, 99, 235, 0.12));
    --qm-inline-download-soft-strong: rgba(37, 99, 235, 0.08);
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow: hidden;
}

.qm-article-detail-refined .qm-article-inline-download__media,
.qm-article-detail-refined .qm-article-inline-download__body,
.qm-article-detail-refined .qm-article-inline-download__title-wrap {
    min-width: 0;
}

.qm-article-detail-refined .qm-article-inline-download__media {
    position: relative;
    align-self: stretch;
}

.qm-article-detail-refined .qm-article-inline-download__thumb-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 10px 0 10px 0;
    background: linear-gradient(90deg, #60a5fa 0%, var(--qm-inline-download-accent) 100%);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 14px rgba(37, 99, 235, 0.18);
}

.qm-article-detail-refined .qm-article-inline-download__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(219, 234, 254, 0.8) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.06),
        0 10px 20px rgba(15, 23, 42, 0.06);
}

.qm-article-detail-refined .qm-article-inline-download__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.06) 100%);
    pointer-events: none;
}

.qm-article-detail-refined .qm-article-inline-download__thumb img,
.qm-article-detail-refined .qm-article-inline-download__thumb-fallback {
    width: 100%;
    height: 100%;
}

.qm-article-detail-refined .qm-article-inline-download__thumb img {
    display: block;
    object-fit: cover;
}

.qm-article-detail-refined .qm-article-inline-download__thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.26);
    font-size: 28px;
}

.qm-article-detail-refined .qm-article-inline-download__body {
    display: grid;
    gap: 10px;
}

.qm-article-detail-refined .qm-article-inline-download__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.qm-article-detail-refined .qm-article-inline-download__title-wrap {
    display: grid;
    gap: 4px;
}

.qm-article-detail-refined .qm-article-inline-download__title {
    margin: 0;
    color: var(--qm-article-text);
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.qm-article-detail-refined .qm-article-inline-download__subtitle {
    margin: 0;
    color: var(--qm-article-text-soft);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 500;
}

.qm-article-detail-refined .qm-article-inline-download__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
    margin-right: -12px;
    padding: 0 5px 0 7px;
    border-radius: 9px 0 0 9px;
    background: linear-gradient(180deg, #60a5fa 0%, var(--qm-inline-download-accent) 100%);
    color: #ffffff;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.15);
}

.qm-article-detail-refined .qm-article-inline-download__badge-text {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-inline-download__badge-text i {
    font-size: 8px;
}

.qm-article-detail-refined .qm-article-inline-download__badge strong {
    color: #ffffff;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-inline-download__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
}

.qm-article-detail-refined .qm-article-inline-download__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.qm-article-detail-refined .qm-article-inline-download__meta-item span {
    color: rgba(15, 23, 42, 0.58);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
    white-space: nowrap;
}

.qm-article-detail-refined .qm-article-inline-download__meta-item strong {
    color: var(--qm-article-text);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    word-break: break-word;
}

.qm-article-detail-refined .qm-article-inline-download__purchase {
    display: grid;
    gap: 0;
    padding: 6px 12px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
}

.qm-article-detail-refined .qm-article-inline-download__purchase-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
}

.qm-article-detail-refined .qm-article-inline-download__purchase-row--prices {
    flex-direction: column;
    gap: 2px;
}

.qm-article-detail-refined .qm-article-inline-download__purchase-row > span {
    color: rgba(15, 23, 42, 0.42);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
}

.qm-article-detail-refined .qm-article-inline-download__purchase-row > strong {
    color: rgba(15, 23, 42, 0.62);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-inline-download__price-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.qm-article-detail-refined .qm-article-inline-download__price-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

.qm-article-detail-refined .qm-article-inline-download__price-item em {
    color: rgba(15, 23, 42, 0.42);
    font-size: 11px;
    line-height: 1.4;
    font-style: normal;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-inline-download__price-item strong {
    color: rgba(15, 23, 42, 0.62);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
}

.qm-article-detail-refined .qm-article-inline-download__price-item.is-guest strong {
    color: rgba(15, 23, 42, 0.62);
}

.qm-article-detail-refined .qm-article-inline-download__price-item.is-user strong {
    color: rgba(15, 23, 42, 0.62);
}

.qm-article-detail-refined .qm-article-inline-download__price-item.is-member strong {
    color: rgba(15, 23, 42, 0.62);
}

.qm-article-detail-refined .qm-article-inline-download__notice {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--qm-inline-download-accent);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
}

.qm-article-detail-refined .qm-article-inline-download__notice.is-success {
    color: var(--qm-inline-download-accent);
}

.qm-article-detail-refined .qm-article-inline-download__codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.qm-article-detail-refined .qm-article-inline-download__code-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 10px;
    background: #f3f4f6;
}

.qm-article-detail-refined .qm-article-inline-download__code-label {
    color: rgba(15, 23, 42, 0.42);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
}

.qm-article-detail-refined .qm-article-inline-download__code-value {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    color: rgba(15, 23, 42, 0.62);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    font-family: inherit;
}

.qm-article-detail-refined .qm-article-inline-download__copy-btn {
    min-height: auto;
    padding: 0 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(15, 23, 42, 0.48);
    box-shadow: none;
}

.qm-article-detail-refined .qm-article-inline-download__copy-btn:hover {
    background: transparent;
    color: rgba(15, 23, 42, 0.68);
    border-color: transparent;
}

.qm-article-detail-refined .qm-article-inline-download__copy-btn i {
    font-size: 11px;
}

.qm-article-detail-refined .qm-article-inline-download__actions {
    display: block;
}

.qm-article-detail-refined .qm-article-inline-download__action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.qm-article-detail-refined .qm-article-inline-download__action-buttons.is-single {
    grid-template-columns: 1fr;
}

.qm-article-detail-refined .qm-article-inline-download__btn {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    border-radius: 10px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
}

.qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, var(--qm-inline-download-accent) 100%);
    border-color: var(--qm-inline-download-accent);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.14);
}

.qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-primary:hover {
    background: linear-gradient(135deg, #4f94f6 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
}

.qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-secondary {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: rgba(29, 78, 216, 0.9);
}

.qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-secondary:hover {
    background: rgba(37, 99, 235, 0.09);
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--qm-inline-download-accent);
}

.qm-article-detail-refined #qm-post-toc[hidden] {
    display: none !important;
}

.qm-article-detail-refined #qm-post-toc-toggle {
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--qm-article-text-soft);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.qm-article-detail-refined #qm-post-toc-body.is-collapsed {
    display: none;
}

.qm-article-detail-refined .qm-post-toc-placeholder {
    display: block;
    width: 100%;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

.qm-article-detail-refined .qm-post-toc-dock-host {
    display: block;
    width: 100%;
}

.qm-article-detail-refined #qm-post-toc.qm-post-toc--floating {
    margin: 0;
    animation: qm-post-toc-fade-in 0.24s ease both;
}

.qm-article-detail-refined #qm-post-toc.qm-post-toc--docked {
    animation: qm-post-toc-fade-in 0.24s ease both;
}

.qm-article-detail-refined #qm-post-toc.qm-post-toc--floating #qm-post-toc-body {
    scrollbar-width: thin;
}

@keyframes qm-post-toc-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.qm-article-detail-refined .qm-article-reco-tabs-card {
    overflow: hidden;
}

.qm-article-detail-refined .qm-article-reco-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 18px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.qm-article-detail-refined .qm-article-reco-tabs::-webkit-scrollbar {
    display: none;
}

.qm-article-detail-refined .qm-article-reco-tab {
    position: relative;
    border: none;
    background: transparent;
    padding: 10px 0 14px;
    color: var(--qm-article-muted);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.qm-article-detail-refined .qm-article-reco-tab:hover {
    color: var(--qm-article-text);
}

.qm-article-detail-refined .qm-article-reco-tab.is-active {
    color: #ff4f9a;
}

.qm-article-detail-refined .qm-article-reco-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6aa9 0%, #ff3d8b 100%);
}

.qm-article-detail-refined .qm-article-reco-panels {
    padding: 12px 18px 16px;
}

.qm-article-detail-refined .qm-article-reco-panel[hidden] {
    display: none !important;
}

.qm-article-detail-refined .qm-article-reco-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qm-article-detail-refined .qm-article-reco-item {
    margin: 0;
    padding: 0;
}

.qm-article-detail-refined .qm-article-reco-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 6px 0;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.qm-article-detail-refined .qm-article-reco-link:hover {
    transform: translateX(2px);
}

.qm-article-detail-refined .qm-article-reco-thumb {
    width: 68px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.qm-article-detail-refined .qm-article-reco-thumb.is-hot {
    width: 64px;
    height: 48px;
    border-radius: 9px;
}

.qm-article-detail-refined .qm-article-reco-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-article-detail-refined .qm-article-reco-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qm-article-detail-refined .qm-article-reco-text strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--qm-article-text);
    line-height: 1.45;
    font-size: 13px;
}

.qm-article-detail-refined .qm-article-reco-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--qm-article-muted);
    font-size: 11px;
}

.qm-article-detail-refined .qm-article-reco-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot {
    --qm-hot-post-thumb-w: 80px;
    --qm-hot-post-thumb-h: 58px;
    align-items: flex-start;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-article-reco-thumb.is-hot {
    width: var(--qm-hot-post-thumb-w);
    height: var(--qm-hot-post-thumb-h);
    border-radius: 0.5rem;
    overflow: visible;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-rank {
    position: absolute;
    top: -0.04rem;
    left: -1.52rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 1.24rem;
    padding: 0 0.46rem 0 0.52rem;
    border-radius: 0.18rem 0.68rem 0.68rem 0.06rem;
    background: var(--qm-hot-rank-bg);
    box-shadow: 0 0.28rem 0.65rem var(--qm-hot-rank-shadow);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-rank::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.22rem 0.28rem 0 0;
    border-color: var(--qm-hot-rank-fold) transparent transparent transparent;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-rank__text {
    position: relative;
    z-index: 1;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-thumb-img,
.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-thumb-placeholder {
    border-radius: inherit;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.10), rgba(255, 105, 180, 0.10));
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-article-reco-text {
    min-height: var(--qm-hot-post-thumb-h);
    justify-content: space-between;
    align-self: stretch;
    gap: 0;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-title {
    color: #334155;
    font-size: 0.8125rem;
    line-height: 1.42;
    margin-bottom: 0.35rem;
}

.qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-meta {
    margin-top: auto;
    font-size: 0.6875rem;
}

.qm-article-detail-refined .qm-article-reco-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 92px;
    padding: 12px;
    color: var(--qm-article-muted);
    font-size: 13px;
    text-align: center;
}

.qm-article-detail-refined .qm-article-reco-empty.is-error {
    color: #f43f5e;
}

.qm-article-detail-refined .qm-article-reco-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.qm-article-detail-refined .qm-article-reco-loading__thumb,
.qm-article-detail-refined .qm-article-reco-loading__line {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.72) 0%, rgba(241, 245, 249, 0.98) 50%, rgba(226, 232, 240, 0.72) 100%);
    background-size: 200% 100%;
    animation: qm-article-reco-shimmer 1.2s linear infinite;
}

.qm-article-detail-refined .qm-article-reco-loading__thumb {
    width: 68px;
    height: 50px;
    border-radius: 10px;
    flex-shrink: 0;
}

.qm-article-detail-refined .qm-article-reco-loading__lines {
    display: grid;
    gap: 8px;
    flex: 1;
}

.qm-article-detail-refined .qm-article-reco-loading__line {
    height: 10px;
    border-radius: 999px;
    width: 66%;
}

.qm-article-detail-refined .qm-article-reco-loading__line.is-wide {
    width: 88%;
}

@keyframes qm-article-reco-shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.qm-article-detail-refined .qm-toc-list,
.qm-article-detail-refined .qm-toc-sub,
.qm-article-detail-refined .qm-article-hot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qm-article-detail-refined .qm-toc-item {
    position: relative;
    margin-top: 8px;
}

.qm-article-detail-refined .qm-toc-item a {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--qm-article-text-soft);
    text-decoration: none;
    line-height: 1.55;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}

.qm-article-detail-refined .qm-toc-item__label {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.qm-article-detail-refined .qm-toc-item__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 1.08rem;
    height: 1.02rem;
    margin-top: 0.06rem;
    padding: 0;
    background: transparent;
}

.qm-article-detail-refined .qm-toc-item__diamond {
    width: 0.42rem;
    height: 0.42rem;
    margin-left: -0.2rem;
    border-radius: 1px;
    background: #ff4f9a;
    transform: rotate(45deg);
    box-shadow: none;
}

.qm-article-detail-refined .qm-toc-item__diamond:first-child {
    margin-left: 0;
}

.qm-article-detail-refined .qm-toc-item__diamond:nth-child(1) {
    opacity: 0.34;
}

.qm-article-detail-refined .qm-toc-item__diamond:nth-child(2) {
    opacity: 0.48;
}

.qm-article-detail-refined .qm-toc-item__diamond:nth-child(3) {
    opacity: 0.62;
}

.qm-article-detail-refined .qm-toc-item__diamond:nth-child(4) {
    opacity: 0.74;
}

.qm-article-detail-refined .qm-toc-item__diamond:nth-child(5) {
    opacity: 0.86;
}

.qm-article-detail-refined .qm-toc-item__diamond:nth-child(6) {
    opacity: 0.96;
}

.qm-article-detail-refined .qm-toc-item.has-children > a {
    padding-right: 2.35rem;
}

.qm-article-detail-refined .qm-toc-item__toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.4rem;
    z-index: 3;
    width: 1.24rem;
    height: 1.24rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.4rem;
    background: #f5f6f7;
    color: #a0a8b5;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: background 0.2s ease, color 0.2s ease;
}

.qm-article-detail-refined .qm-toc-item__toggle::before {
    content: none;
}

.qm-article-detail-refined .qm-toc-item__toggle:hover {
    background: #eef1f4;
    border-color: rgba(148, 163, 184, 0.18);
    color: #8f98a6;
}

.qm-article-detail-refined .qm-toc-sub {
    margin-top: 8px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.qm-article-detail-refined .qm-toc-item.has-children.is-collapsed > .qm-toc-sub {
    display: none;
}

.qm-article-detail-refined .qm-toc-sub .qm-toc-item > a {
    font-size: 12px;
    padding: 7px 2.35rem 7px 10px;
}

.qm-article-detail-refined .qm-toc-sub .qm-toc-sub .qm-toc-item > a {
    font-size: 11.5px;
    padding: 7px 2.35rem 7px 9px;
}

.qm-article-detail-refined .qm-toc-item.is-active-parent > a {
    color: var(--qm-article-text);
    background: transparent;
}

.qm-article-detail-refined .qm-toc-item.is-active-parent > .qm-toc-item__toggle,
.qm-article-detail-refined .qm-toc-item.is-active > .qm-toc-item__toggle {
    color: var(--qm-article-text-soft);
}

.qm-article-detail-refined .qm-toc-item.is-active > a {
    background: transparent;
    color: var(--qm-article-accent);
    font-weight: 700;
}

.qm-article-detail-refined .qm-article-content :is(h1, h2, h3, h4, h5, h6) {
    scroll-margin-top: 110px;
}

@media (max-width: 991.98px) {
    .qm-article-detail-refined .qm-article-content :is(h1, h2, h3, h4, h5, h6) {
        scroll-margin-top: 86px;
    }
}

.qm-article-detail-refined .qm-article-side-list,
.qm-article-detail-refined .qm-article-hot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qm-article-detail-refined .qm-article-side-list__item,
.qm-article-detail-refined .qm-article-hot-link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.qm-article-detail-refined .qm-article-hot-link {
    align-items: center;
}

.qm-article-detail-refined .qm-article-side-list__item:hover,
.qm-article-detail-refined .qm-article-hot-link:hover {
    background: rgba(244, 47, 37, 0.05);
    transform: translateX(2px);
}

.qm-article-detail-refined .qm-article-side-list__thumb {
    width: 68px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.qm-article-detail-refined .qm-article-side-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-article-detail-refined .qm-article-hot-thumb {
    width: 64px;
    height: 48px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.qm-article-detail-refined .qm-article-hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qm-article-detail-refined .qm-article-side-list__content,
.qm-article-detail-refined .qm-article-hot-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qm-article-detail-refined .qm-article-side-list__content strong,
.qm-article-detail-refined .qm-article-hot-text strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--qm-article-text);
    line-height: 1.45;
    font-size: 13px;
}

.qm-article-detail-refined .qm-article-side-list__content small,
.qm-article-detail-refined .qm-article-hot-text small {
    color: var(--qm-article-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.qm-article-detail-refined .qm-article-hot-rank {
    --qm-hot-rank-left: #4e8eff;
    --qm-hot-rank-right: #70d4ff;
    --qm-hot-rank-shadow: #eef2ff;
    position: relative;
    width: 40px;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.qm-article-detail-refined .qm-article-hot-rank__svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.qm-article-detail-refined .qm-article-hot-rank__shadow {
    fill: var(--qm-hot-rank-shadow);
}

.qm-article-detail-refined .qm-article-hot-rank__panel-left {
    fill: var(--qm-hot-rank-left);
}

.qm-article-detail-refined .qm-article-hot-rank__panel-right {
    fill: var(--qm-hot-rank-right);
}

.qm-article-detail-refined .qm-article-hot-rank__number {
    fill: #ffffff;
    font-size: 360px;
    font-weight: 900;
    letter-spacing: -0.04em;
    paint-order: stroke fill;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 18px;
}

.qm-article-detail-refined .qm-article-cloud-group + .qm-article-cloud-group {
    margin-top: 16px;
}

@media (min-width: 992px) {
    .qm-article-detail-refined .qm-article-layout {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr) 312px;
        align-items: start;
        gap: 20px;
    }

    .qm-article-detail-refined .qm-article-rail {
        order: 1;
        position: relative;
        align-self: stretch;
        min-height: 100%;
    }

    .qm-article-detail-refined .qm-article-main-content {
        order: 2;
    }

    .qm-article-detail-refined .qm-article-aside {
        order: 3;
    }

    .qm-article-detail-refined .qm-article-rail-inner {
        position: sticky;
        top: calc(var(--qm-header-height, 60px) + 48px);
        width: 84px;
        max-height: calc(100vh - (var(--qm-header-height, 60px) + 72px));
        overflow-y: auto;
    }

    .qm-article-detail-refined .qm-article-rail-author-card {
        padding: 0;
        gap: 8px;
    }

    .qm-article-detail-refined .qm-post-actions-float-refined {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

}

@media (max-width: 991.98px) {
    main.qm-article-detail-refined {
        padding-top: 14px;
    }

    .qm-article-detail-refined .qm-article-content-head {
        padding: 22px 22px 16px;
    }

    .qm-article-detail-refined .qm-article-post-nav-grid,
    .qm-article-detail-refined .qm-article-related-grid {
        gap: 14px;
    }

    .qm-article-detail-refined .qm-article-related-section {
        padding: 16px 18px 20px;
    }

    .qm-article-detail-refined .qm-article-lead-top,
    .qm-article-detail-refined .qm-article-lead-meta-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .qm-article-detail-refined .qm-article-lead-top {
        gap: 10px;
    }

    .qm-article-detail-refined .qm-article-lead-update {
        white-space: normal;
    }

.qm-article-detail-refined .qm-article-content-prose,
.qm-article-detail-refined .qm-article-comments-section,
.qm-article-detail-refined .qm-article-comments-header-outside {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

    .qm-article-detail-refined .qm-article-side-card__body,
    .qm-article-detail-refined .qm-article-side-card__header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .qm-article-detail-refined .qm-article-reco-tabs {
        gap: 16px;
        padding: 6px 16px 0;
    }

    .qm-article-detail-refined .qm-article-reco-tab {
        padding: 9px 0 12px;
        font-size: 12px;
    }

    .qm-article-detail-refined .qm-article-reco-panels {
        padding: 10px 16px 14px;
    }

    .qm-article-detail-refined .qm-article-reco-link {
        gap: 10px;
        padding: 5px 0;
    }

    .qm-article-detail-refined .qm-article-reco-thumb,
    .qm-article-detail-refined .qm-article-reco-loading__thumb {
        width: 62px;
        height: 46px;
        border-radius: 8px;
    }

    .qm-article-detail-refined .qm-article-reco-thumb.is-hot {
        width: 58px;
        height: 44px;
        border-radius: 8px;
    }

    .qm-article-detail-refined .qm-article-inline-download {
        grid-template-columns: 1fr;
    }

    .qm-article-detail-refined .qm-article-inline-download__media {
        width: min(100%, 360px);
        max-width: none;
    }

    .qm-article-detail-refined .qm-article-inline-download__thumb-badge {
        min-height: 22px;
        padding: 0 8px;
        font-size: 9px;
    }

    .qm-article-detail-refined .qm-article-inline-download__thumb {
        aspect-ratio: 4 / 3;
    }

    .qm-article-detail-refined .qm-article-hot-thumb {
        width: 58px;
        height: 44px;
        border-radius: 8px;
    }

    .qm-article-detail-refined .qm-article-hot-rank {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .qm-article-detail-refined .qm-article-inline-download__actions {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767.98px) {
    .qm-article-detail-refined .qm-article-layout {
        gap: 14px;
    }

    .qm-article-detail-refined .qm-article-content-head {
        padding: 20px 18px 14px;
    }

    .qm-article-detail-refined .qm-article-post-nav-grid,
    .qm-article-detail-refined .qm-article-related-grid {
        grid-template-columns: 1fr;
    }

    .qm-article-detail-refined .qm-article-post-nav-card {
        min-height: 84px;
        padding: 14px 14px;
        gap: 10px;
    }

    .qm-article-detail-refined .qm-article-post-nav-title {
        font-size: 15px;
    }

    .qm-article-detail-refined .qm-article-related-head {
        gap: 5px;
        padding-bottom: 7px;
    }

    .qm-article-detail-refined .qm-article-related-accent {
        width: 3px;
        height: 18px;
    }

    .qm-article-detail-refined .qm-article-related-title {
        font-size: 10px;
    }

    .qm-article-detail-refined .qm-article-related-body {
        gap: 6px;
        padding: 10px 10px 12px;
    }

    .qm-article-detail-refined .qm-article-related-card-title {
        font-size: 13px;
    }

    .qm-article-detail-refined .qm-article-related-section.qm-article-end-card {
        padding: 8px 10px 12px;
    }

    .qm-article-detail-refined .qm-article-content-title {
        font-size: 15px;
        line-height: 1.4;
        letter-spacing: -0.01em;
    }

    .qm-article-detail-refined .qm-article-content-meta {
        gap: 10px 16px;
        margin-top: 10px;
        font-size: 12px;
    }

    .qm-article-detail-refined .qm-article-lead-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .qm-article-detail-refined .qm-article-reading-card,
    .qm-article-detail-refined .qm-article-end-card,
    .qm-article-detail-refined .qm-article-side-card,
    .qm-article-detail-refined .qm-article-rail-author-card {
        border-radius: 12px;
    }

    .qm-article-detail-refined .qm-article-rail-author-card {
        padding: 0;
    }

    .qm-article-detail-refined .qm-post-actions-float-refined {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn {
        min-height: 58px;
        border-radius: 10px;
        padding: 8px 6px;
    }

    .qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn--single {
        min-height: 42px;
    }

    .qm-article-detail-refined .qm-article-side-list__thumb {
        width: 60px;
        height: 46px;
    }

    .qm-article-detail-refined .qm-article-reco-tabs {
        gap: 12px;
        padding: 4px 14px 0;
    }

    .qm-article-detail-refined .qm-article-reco-tab {
        padding: 9px 0 11px;
        font-size: 11px;
    }

    .qm-article-detail-refined .qm-article-reco-tab.is-active::after {
        height: 2px;
    }

    .qm-article-detail-refined .qm-article-reco-panels {
        padding: 10px 14px 14px;
    }

    .qm-article-detail-refined .qm-article-reco-link {
        gap: 8px;
    }

    .qm-article-detail-refined .qm-article-reco-thumb,
    .qm-article-detail-refined .qm-article-reco-loading__thumb {
        width: 58px;
        height: 44px;
        border-radius: 8px;
    }

    .qm-article-detail-refined .qm-article-reco-thumb.is-hot {
        width: 54px;
        height: 40px;
        border-radius: 7px;
    }

    .qm-article-detail-refined .qm-article-reco-text strong {
        font-size: 12px;
    }

    .qm-article-detail-refined .qm-article-reco-meta {
        gap: 8px;
        font-size: 10px;
    }

    .qm-article-detail-refined .qm-article-hot-rank {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .qm-article-detail-refined .qm-article-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .qm-article-detail-refined .qm-article-content h1 {
        font-size: 24px;
        margin-top: 28px;
    }

    .qm-article-detail-refined .qm-article-content h2 {
        font-size: 20px;
        margin-top: 26px;
    }

    .qm-article-detail-refined .qm-article-content h3 {
        font-size: 16px;
    }

    .qm-article-detail-refined .qm-article-inline-download {
        padding: 12px;
        gap: 12px;
    }

    .qm-article-detail-refined .qm-article-inline-download__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .qm-article-detail-refined .qm-article-inline-download__title {
        font-size: clamp(18px, 6.8vw, 24px);
    }

    .qm-article-detail-refined .qm-article-inline-download__meta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .qm-article-detail-refined .qm-article-inline-download__purchase {
        padding: 10px 12px;
    }

    .qm-article-detail-refined .qm-article-inline-download__purchase-row {
        flex-direction: column;
        gap: 6px;
    }

    .qm-article-detail-refined .qm-article-inline-download__price-list {
        gap: 6px 12px;
    }

    .qm-article-detail-refined .qm-article-inline-download__codes {
        gap: 8px 12px;
    }

    .qm-article-detail-refined .qm-article-inline-download__code-item {
        flex-wrap: wrap;
    }

    .qm-article-detail-refined .qm-article-download-hero {
        gap: 16px;
    }

    .qm-article-detail-refined .qm-article-download-hero-main {
        flex-wrap: wrap;
    }

    .qm-article-detail-refined .qm-article-download-price-side {
        width: 100%;
        padding-bottom: 0;
    }

    .qm-article-detail-refined .qm-article-download-price-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 479.98px) {
    .qm-article-detail-refined .qm-article-content-head {
        padding: 18px 14px 12px;
    }

    .qm-article-detail-refined .qm-article-reco-tabs {
        gap: 10px;
        padding: 2px 12px 0;
    }

    .qm-article-detail-refined .qm-article-reco-tab {
        padding: 8px 0 10px;
        font-size: 10px;
    }

    .qm-article-detail-refined .qm-article-reco-panels {
        padding: 8px 12px 12px;
    }

    .qm-article-detail-refined .qm-article-reco-link {
        gap: 8px;
    }

    .qm-article-detail-refined .qm-article-reco-thumb,
    .qm-article-detail-refined .qm-article-reco-loading__thumb {
        width: 54px;
        height: 40px;
        border-radius: 7px;
    }

    .qm-article-detail-refined .qm-article-reco-thumb.is-hot {
        width: 50px;
        height: 38px;
        border-radius: 7px;
    }

    .qm-article-detail-refined .qm-article-hot-rank {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .qm-article-detail-refined .qm-article-reco-empty {
        min-height: 80px;
        font-size: 12px;
    }

    .qm-article-detail-refined .qm-article-post-nav-card {
        padding: 12px 12px;
    }

    .qm-article-detail-refined .qm-article-related-section {
        padding: 6px 8px 10px;
    }

    .qm-article-detail-refined .qm-article-download-tier-grid,
    .qm-article-detail-refined .qm-article-download-code-grid {
        grid-template-columns: 1fr;
    }

    .qm-article-detail-refined .qm-article-inline-download {
        padding: 10px;
    }

    .qm-article-detail-refined .qm-article-inline-download__badge {
        min-height: 18px;
        margin-right: -10px;
        padding: 0 5px 0 6px;
        font-size: 8px;
    }

    .qm-article-detail-refined .qm-article-inline-download__btn {
        min-height: 38px;
    }

    .qm-article-detail-refined .qm-article-inline-download__action-buttons {
        grid-template-columns: 1fr;
    }

    .qm-article-detail-refined .qm-article-download-hero {
        padding: 14px 14px 0;
    }

    .qm-article-detail-refined .qm-article-download-hero-top {
        margin: -14px -14px 0;
    }

    .qm-article-detail-refined .qm-article-download-source-panel-head,
    .qm-article-detail-refined .qm-article-download-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .qm-article-detail-refined .qm-article-download-hero-top {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .qm-article-detail-refined .qm-article-download-price-value {
        font-size: clamp(2.35rem, 17vw, 3.2rem);
    }

    .qm-article-detail-refined .qm-article-download-price-head {
        gap: 8px;
    }

    .qm-article-detail-refined .qm-article-download-price-prefix {
        font-size: 12px;
        padding-bottom: 4px;
    }

    .qm-article-detail-refined .qm-article-download-price-original {
        font-size: 11px;
        padding-bottom: 4px;
    }

    .qm-article-detail-refined .qm-article-download-count {
        min-height: 21px;
        margin-top: 10px;
        padding: 0 5px 0 7px;
    }

    .qm-article-detail-refined .qm-article-download-status {
        min-height: 28px;
        padding: 0 8px;
        font-size: 9px;
    }

    .qm-article-detail-refined .qm-article-download-price-value.is-textual {
        font-size: clamp(2.35rem, 16vw, 3rem);
    }

    .qm-article-detail-refined .qm-article-download-hero-main.is-textual-price .qm-article-download-price-side {
        max-width: none;
    }

    .qm-article-detail-refined .qm-article-download-price-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .qm-article-detail-refined .qm-article-download-price-fact {
        width: 100%;
    }

    .qm-article-detail-refined .qm-article-download-meta-row strong {
        text-align: left;
    }

    .qm-article-detail-refined .qm-article-download-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .qm-article-detail-refined .qm-article-post-nav-label {
        font-size: 13px;
    }

.qm-article-detail-refined .qm-article-content-prose,
.qm-article-detail-refined .qm-article-comments-section,
.qm-article-detail-refined .qm-article-comments-header-outside {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

    .qm-article-detail-refined .qm-article-lead-pills,
    .qm-article-detail-refined .qm-article-lead-tags,
    .qm-article-detail-refined .qm-tags-list,
    .qm-article-detail-refined .qm-article-cloud {
        gap: 6px;
    }

    .qm-article-detail-refined .qm-post-actions-float-refined {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn {
        min-height: 54px;
    }

    .qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn--single {
        min-height: 40px;
    }

    .qm-article-detail-refined .qm-article-stat-card {
        padding: 10px 12px;
    }

    .qm-article-detail-refined .qm-article-content-title {
        font-size: 14px;
    }

    .qm-article-detail-refined .qm-article-content-meta {
        gap: 8px 14px;
        font-size: 11px;
    }

}

html.dark .qm-article-detail-refined,
body.dark .qm-article-detail-refined {
    --qm-article-surface: #111827;
    --qm-article-border: rgba(148, 163, 184, 0.16);
    --qm-article-text: #f8fafc;
    --qm-article-text-soft: #cbd5e1;
    --qm-article-muted: #94a3b8;
    background: linear-gradient(180deg, #0f172a 0, #0b1220 180px, #0b1220 100%);
}

html.dark .qm-article-detail-refined .qm-article-lead-card,
html.dark .qm-article-detail-refined .qm-article-reading-card,
html.dark .qm-article-detail-refined .qm-article-end-card,
html.dark .qm-article-detail-refined .qm-article-side-card,
html.dark .qm-article-detail-refined .qm-article-rail-author-card,
body.dark .qm-article-detail-refined .qm-article-lead-card,
body.dark .qm-article-detail-refined .qm-article-reading-card,
body.dark .qm-article-detail-refined .qm-article-end-card,
body.dark .qm-article-detail-refined .qm-article-side-card,
body.dark .qm-article-detail-refined .qm-article-rail-author-card {
    background: #111827;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.18);
}

html.dark .qm-article-detail-refined .qm-article-related-section.qm-article-end-card,
body.dark .qm-article-detail-refined .qm-article-related-section.qm-article-end-card {
    background: transparent;
    background-image: none;
    box-shadow: none;
}

html.dark .qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-title,
html.dark .qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-title > span:not(.qm-comments-count),
body.dark .qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-title,
body.dark .qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-title > span:not(.qm-comments-count) {
    color: #f8fafc;
}

html.dark .qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-count,
body.dark .qm-article-detail-refined .qm-article-comments-header-outside .qm-comments-count {
    color: #94a3b8;
}

.qm-article-detail-refined :is(.qm-article-side-card, .qm-article-rail-author-card) {
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.10),
        0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

html.dark .qm-article-detail-refined :is(.qm-article-side-card, .qm-article-rail-author-card),
body.dark .qm-article-detail-refined :is(.qm-article-side-card, .qm-article-rail-author-card) {
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.34),
        0 6px 16px rgba(0, 0, 0, 0.22) !important;
}

html.dark .qm-article-detail-refined .qm-article-stat-card,
body.dark .qm-article-detail-refined .qm-article-stat-card,
html.dark .qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn,
body.dark .qm-article-detail-refined .qm-post-actions-float-refined .qm-action-btn,
html.dark .qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn,
body.dark .qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn,
html.dark .qm-article-detail-refined .qm-article-download-empty,
body.dark .qm-article-detail-refined .qm-article-download-empty,
html.dark .qm-article-detail-refined .qm-toc-item a,
body.dark .qm-article-detail-refined .qm-toc-item a,
html.dark .qm-article-detail-refined .qm-side-flag,
body.dark .qm-article-detail-refined .qm-side-flag,
html.dark .qm-article-detail-refined .qm-side-soft-chip,
body.dark .qm-article-detail-refined .qm-side-soft-chip {
    background: transparent;
}

html.dark .qm-article-detail-refined .qm-toc-item.is-active-parent > a,
body.dark .qm-article-detail-refined .qm-toc-item.is-active-parent > a {
    background: transparent;
    color: #f8fafc;
}

html.dark .qm-article-detail-refined .qm-toc-item__marker,
body.dark .qm-article-detail-refined .qm-toc-item__marker {
    background: transparent;
}

html.dark .qm-article-detail-refined .qm-toc-item__toggle,
body.dark .qm-article-detail-refined .qm-toc-item__toggle {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.14);
    color: #9aa4b2;
}

html.dark .qm-article-detail-refined .qm-toc-item.is-active > a,
body.dark .qm-article-detail-refined .qm-toc-item.is-active > a {
    background: transparent;
    color: var(--qm-article-accent);
}

html.dark .qm-article-detail-refined .qm-article-lead-summary,
body.dark .qm-article-detail-refined .qm-article-lead-summary {
    background: rgba(244, 47, 37, 0.10);
}

html.dark .qm-article-detail-refined .qm-article-content-head,
body.dark .qm-article-detail-refined .qm-article-content-head {
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

html.dark .qm-article-detail-refined .qm-article-post-nav-card,
html.dark .qm-article-detail-refined .qm-article-related-card,
body.dark .qm-article-detail-refined .qm-article-post-nav-card,
body.dark .qm-article-detail-refined .qm-article-related-card {
    background: #111827;
    box-shadow: none;
}

html.dark .qm-article-detail-refined .qm-article-breadcrumb-bar,
html.dark .qm-article-detail-refined .qm-article-breadcrumb-label,
html.dark .qm-article-detail-refined .qm-article-breadcrumb-item,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-bar,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-label,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-item {
    color: #94a3b8;
}

html.dark .qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn,
body.dark .qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.16);
}

html.dark .qm-article-detail-refined .qm-article-download-count,
body.dark .qm-article-detail-refined .qm-article-download-count {
    background: linear-gradient(180deg, var(--qm-download-corner-start) 0%, var(--qm-download-corner-end) 100%);
    box-shadow: 0 14px 24px rgba(2, 6, 23, 0.28);
    color: #ffffff;
}

html.dark .qm-article-detail-refined .qm-article-download-count::before,
body.dark .qm-article-detail-refined .qm-article-download-count::before {
    content: none;
}

html.dark .qm-article-detail-refined .qm-article-download-count::after,
body.dark .qm-article-detail-refined .qm-article-download-count::after {
    content: none;
}

html.dark .qm-article-detail-refined .qm-article-download-count-text,
body.dark .qm-article-detail-refined .qm-article-download-count-text {
    color: #ffffff;
}

html.dark .qm-article-detail-refined .qm-article-download-hero,
body.dark .qm-article-detail-refined .qm-article-download-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0.96) 60%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(148, 163, 184, 0.14);
}

html.dark .qm-article-detail-refined .qm-article-download-status,
body.dark .qm-article-detail-refined .qm-article-download-status {
    background: linear-gradient(90deg, var(--qm-download-status-start) 0%, var(--qm-download-status-end) 100%);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(2, 6, 23, 0.28);
}

html.dark .qm-article-detail-refined .qm-article-download-price-prefix,
body.dark .qm-article-detail-refined .qm-article-download-price-prefix,
html.dark .qm-article-detail-refined .qm-article-download-price-original,
body.dark .qm-article-detail-refined .qm-article-download-price-original,
html.dark .qm-article-detail-refined .qm-article-download-price-note,
body.dark .qm-article-detail-refined .qm-article-download-price-note {
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-price-value,
body.dark .qm-article-detail-refined .qm-article-download-price-value {
    color: #f8fafc;
}

html.dark .qm-article-detail-refined .qm-article-download-price-fact,
body.dark .qm-article-detail-refined .qm-article-download-price-fact {
    background: none;
    border: none;
}

html.dark .qm-article-detail-refined .qm-article-download-price-fact em,
body.dark .qm-article-detail-refined .qm-article-download-price-fact em {
    color: rgba(148, 163, 184, 0.72);
}

html.dark .qm-article-detail-refined .qm-article-download-price-fact strong,
body.dark .qm-article-detail-refined .qm-article-download-price-fact strong {
    color: rgba(226, 232, 240, 0.76);
}

html.dark .qm-article-detail-refined .qm-article-download-price-fact.is-member em,
body.dark .qm-article-detail-refined .qm-article-download-price-fact.is-member em,
html.dark .qm-article-detail-refined .qm-article-download-price-fact.is-normal em,
body.dark .qm-article-detail-refined .qm-article-download-price-fact.is-normal em,
html.dark .qm-article-detail-refined .qm-article-download-price-fact.is-member strong,
body.dark .qm-article-detail-refined .qm-article-download-price-fact.is-member strong,
html.dark .qm-article-detail-refined .qm-article-download-price-fact.is-normal strong,
body.dark .qm-article-detail-refined .qm-article-download-price-fact.is-normal strong {
    color: rgba(203, 213, 225, 0.76);
}

html.dark .qm-article-detail-refined .qm-article-download-tier,
body.dark .qm-article-detail-refined .qm-article-download-tier,
html.dark .qm-article-detail-refined .qm-article-download-code-item,
body.dark .qm-article-detail-refined .qm-article-download-code-item {
    background: rgba(15, 23, 42, 0.30);
    border-color: rgba(148, 163, 184, 0.12);
}

html.dark .qm-article-detail-refined .qm-article-download-tier-grid,
body.dark .qm-article-detail-refined .qm-article-download-tier-grid {
    border-top-color: rgba(148, 163, 184, 0.12);
}

html.dark .qm-article-detail-refined .qm-article-download-tier + .qm-article-download-tier,
body.dark .qm-article-detail-refined .qm-article-download-tier + .qm-article-download-tier {
    border-left-color: rgba(148, 163, 184, 0.12);
}

html.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price,
body.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0.06) 100%);
    border-color: rgba(74, 222, 128, 0.18);
}

html.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price .qm-article-download-tier-label,
body.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price .qm-article-download-tier-label {
    color: #86efac;
}

html.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price .qm-article-download-tier-label i,
body.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price .qm-article-download-tier-label i {
    color: #4ade80;
}

html.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price strong,
body.dark .qm-article-detail-refined .qm-article-download-tier.is-member-price strong {
    color: #dcfce7;
}

html.dark .qm-article-detail-refined .qm-article-download-service-item,
body.dark .qm-article-detail-refined .qm-article-download-service-item {
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-service-item i,
body.dark .qm-article-detail-refined .qm-article-download-service-item i {
    color: #94a3b8;
}

html.dark .qm-article-detail-refined .qm-article-download-notice--success,
body.dark .qm-article-detail-refined .qm-article-download-notice--success {
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(148, 163, 184, 0.12);
    border-left-color: #22c55e;
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-notice--warning,
body.dark .qm-article-detail-refined .qm-article-download-notice--warning {
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(148, 163, 184, 0.12);
    border-left-color: #f59e0b;
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-notice--info,
body.dark .qm-article-detail-refined .qm-article-download-notice--info {
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(148, 163, 184, 0.12);
    border-left-color: #3b82f6;
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-source-card,
body.dark .qm-article-detail-refined .qm-article-download-source-card,
html.dark .qm-article-detail-refined .qm-article-download-meta-table,
body.dark .qm-article-detail-refined .qm-article-download-meta-table {
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(148, 163, 184, 0.12);
}

html.dark .qm-article-detail-refined .qm-article-download-source-tab,
body.dark .qm-article-detail-refined .qm-article-download-source-tab,
html.dark .qm-article-detail-refined .qm-article-download-source-tag,
body.dark .qm-article-detail-refined .qm-article-download-source-tag,
html.dark .qm-article-detail-refined .qm-article-download-source-empty,
body.dark .qm-article-detail-refined .qm-article-download-source-empty,
html.dark .qm-article-detail-refined .qm-article-download-empty,
body.dark .qm-article-detail-refined .qm-article-download-empty {
    background: rgba(15, 23, 42, 0.34);
    border-color: rgba(148, 163, 184, 0.12);
}

html.dark .qm-article-detail-refined .qm-article-download-source-tab,
body.dark .qm-article-detail-refined .qm-article-download-source-tab {
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-source-tab.is-active,
body.dark .qm-article-detail-refined .qm-article-download-source-tab.is-active {
    background: rgba(148, 163, 184, 0.10);
    border-color: rgba(148, 163, 184, 0.16);
    color: #f8fafc;
}

html.dark .qm-article-detail-refined .qm-article-download-copy-btn,
body.dark .qm-article-detail-refined .qm-article-download-copy-btn {
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-copy-btn.is-copied,
body.dark .qm-article-detail-refined .qm-article-download-copy-btn.is-copied {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

html.dark .qm-article-detail-refined .qm-side-flag,
body.dark .qm-article-detail-refined .qm-side-flag {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

html.dark .qm-article-detail-refined .qm-article-download-demo-btn,
body.dark .qm-article-detail-refined .qm-article-download-demo-btn {
    background: rgba(244, 47, 37, 0.10);
    border-color: rgba(244, 47, 37, 0.16);
    color: #fecaca;
}

html.dark .qm-article-detail-refined .qm-article-download-demo-btn:hover,
body.dark .qm-article-detail-refined .qm-article-download-demo-btn:hover {
    background: rgba(244, 47, 37, 0.16);
    border-color: rgba(244, 47, 37, 0.22);
}

html.dark .qm-article-detail-refined .qm-article-download-demo-btn.is-disabled,
body.dark .qm-article-detail-refined .qm-article-download-demo-btn.is-disabled,
html.dark .qm-article-detail-refined .qm-article-download-demo-btn[disabled],
body.dark .qm-article-detail-refined .qm-article-download-demo-btn[disabled] {
    background: rgba(51, 65, 85, 0.72);
    border-color: rgba(51, 65, 85, 0.72);
    color: rgba(203, 213, 225, 0.52);
}

html.dark .qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn,
body.dark .qm-article-detail-refined .qm-download-btn-secondary.qm-article-side-btn,
html.dark .qm-article-detail-refined .qm-article-download-empty,
body.dark .qm-article-detail-refined .qm-article-download-empty {
    background: rgba(148, 163, 184, 0.08);
}

html.dark .qm-article-detail-refined .qm-download-btn-vip.qm-article-side-btn,
body.dark .qm-article-detail-refined .qm-download-btn-vip.qm-article-side-btn {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.16), rgba(217, 119, 6, 0.18));
    border-color: rgba(234, 179, 8, 0.24);
    color: #fde68a;
}

html.dark .qm-article-detail-refined .qm-article-inline-download,
body.dark .qm-article-detail-refined .qm-article-inline-download {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.88) 100%);
    border-color: rgba(148, 163, 184, 0.14);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__thumb,
body.dark .qm-article-detail-refined .qm-article-inline-download__thumb,
html.dark .qm-article-detail-refined .qm-article-inline-download__code-item,
body.dark .qm-article-detail-refined .qm-article-inline-download__code-item {
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__purchase,
body.dark .qm-article-detail-refined .qm-article-inline-download__purchase {
    background: rgba(15, 23, 42, 0.24);
    border-color: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__thumb-badge,
body.dark .qm-article-detail-refined .qm-article-inline-download__thumb-badge {
    background: linear-gradient(90deg, #60a5fa 0%, var(--qm-inline-download-accent) 100%);
    color: #ffffff;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__thumb-fallback,
body.dark .qm-article-detail-refined .qm-article-inline-download__thumb-fallback {
    color: rgba(226, 232, 240, 0.24);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__title,
body.dark .qm-article-detail-refined .qm-article-inline-download__title {
    color: #f8fafc;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__subtitle,
body.dark .qm-article-detail-refined .qm-article-inline-download__subtitle,
html.dark .qm-article-detail-refined .qm-article-inline-download__meta-item span,
body.dark .qm-article-detail-refined .qm-article-inline-download__meta-item span,
html.dark .qm-article-detail-refined .qm-article-inline-download__purchase-row > span,
body.dark .qm-article-detail-refined .qm-article-inline-download__purchase-row > span,
html.dark .qm-article-detail-refined .qm-article-inline-download__price-item em,
body.dark .qm-article-detail-refined .qm-article-inline-download__price-item em,
html.dark .qm-article-detail-refined .qm-article-inline-download__code-label,
body.dark .qm-article-detail-refined .qm-article-inline-download__code-label {
    color: rgba(148, 163, 184, 0.72);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__meta-item strong,
body.dark .qm-article-detail-refined .qm-article-inline-download__meta-item strong,
html.dark .qm-article-detail-refined .qm-article-inline-download__purchase-row > strong,
body.dark .qm-article-detail-refined .qm-article-inline-download__purchase-row > strong {
    color: rgba(226, 232, 240, 0.76);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__price-item strong,
body.dark .qm-article-detail-refined .qm-article-inline-download__price-item strong,
html.dark .qm-article-detail-refined .qm-article-inline-download__code-value,
body.dark .qm-article-detail-refined .qm-article-inline-download__code-value {
    color: rgba(226, 232, 240, 0.76);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__copy-btn,
body.dark .qm-article-detail-refined .qm-article-inline-download__copy-btn {
    background: transparent;
    border-color: transparent;
    color: rgba(148, 163, 184, 0.72);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__copy-btn:hover,
body.dark .qm-article-detail-refined .qm-article-inline-download__copy-btn:hover {
    background: transparent;
    border-color: transparent;
    color: rgba(226, 232, 240, 0.76);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__notice.is-warning,
body.dark .qm-article-detail-refined .qm-article-inline-download__notice.is-warning {
    color: #93c5fd;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__notice.is-success,
body.dark .qm-article-detail-refined .qm-article-inline-download__notice.is-success {
    color: #93c5fd;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-secondary,
body.dark .qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-secondary {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(96, 165, 250, 0.22);
    color: #dbeafe;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-secondary:hover,
body.dark .qm-article-detail-refined .qm-article-inline-download__btn.qm-download-btn-secondary:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.28);
}

/* Refined Comment Section */
#comments.qm-comments-refined {
    --qm-comment-card-bg: #ffffff;
    --qm-comment-card-border: rgba(136, 136, 136, 0.18);
    --qm-comment-soft-bg: rgba(136, 136, 136, 0.08);
    --qm-comment-soft-bg-hover: rgba(136, 136, 136, 0.14);
    --qm-comment-fill-bg: #f8f8f8;
    --qm-comment-muted: #888888;
    --qm-comment-strong: #4b4b4b;
    --qm-comment-action-bg: #ecf5ff;
    --qm-comment-action-bg-hover: #e3f0ff;
    --qm-comment-action-border: #cfe2ff;
    --qm-comment-action-text: #1677ff;
    --qm-comment-avatar-size: 56px;
    --qm-comment-avatar-size-sm: 44px;
    padding: 0;
}

#comments.qm-comments-refined .qm-comments-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 14px !important;
}

#comments.qm-comments-refined .qm-comments-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    gap: 5px;
}

#comments.qm-comments-refined .qm-comments-title > span:not(.qm-comments-count) {
    font-size: 13px;
    line-height: 1.1;
}

#comments.qm-comments-refined .qm-comments-count {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

#comments.qm-comments-refined .qm-comments-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--qm-primary, #f42f25), #ff6fa2);
    color: transparent;
    font-size: 0;
}

#comments.qm-comments-refined .qm-comments-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0 2px;
}

#comments.qm-comments-refined .qm-comments-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

#comments.qm-comments-refined .qm-comment-sort-btn,
#comments.qm-comments-refined .qm-comment-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    border: none;
    background: transparent;
    color: var(--qm-comment-muted);
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

#comments.qm-comments-refined .qm-comment-sort-btn:hover,
#comments.qm-comments-refined .qm-comment-filter-btn:hover {
    color: #334155;
}

#comments.qm-comments-refined .qm-comment-sort-btn.active,
#comments.qm-comments-refined .qm-comment-filter-btn.active {
    color: var(--qm-primary, #f42f25);
}

#comments.qm-comments-refined .qm-comment-form.qm-comment-form-top {
    margin: 0 0 14px 0;
}

#comments.qm-comments-refined .qm-comment-editor-shell {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--qm-comment-card-border);
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-editor-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
}

#comments.qm-comments-refined .qm-comment-editor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
}

#comments.qm-comments-refined .qm-comment-editor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

#comments.qm-comments-refined .qm-comment-editor-name {
    font-size: 13px;
    color: var(--qm-comment-muted);
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}

#comments.qm-comments-refined .qm-comment-editor-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    min-width: 0;
}

#comments.qm-comments-refined .qm-comment-editor-note {
    padding: 0 0 6px;
    border-radius: 0;
    background: transparent;
    color: var(--qm-comment-muted);
    font-size: 12px;
    line-height: 1.6;
}

#comments.qm-comments-refined .qm-comment-image-preview {
    margin: 10px 0 8px;
    padding: 0;
}

#comments.qm-comments-refined .qm-comment-image-preview:empty {
    display: none;
    margin: 0;
    padding: 0;
}

#comments.qm-comments-refined .qm-comment-textarea-wrapper {
    margin-top: 0;
}

#comments.qm-comments-refined .qm-comment-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-radius: 16px;
    background: var(--qm-comment-fill-bg);
    border: 0;
    background-image: none;
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-input-wrapper:focus-within {
    background: var(--qm-comment-fill-bg);
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-field-float textarea {
    min-height: 116px;
    padding: 18px 20px 12px;
    font-size: 16px;
    line-height: 1.8;
}

#comments.qm-comments-refined .qm-comment-field-float textarea::placeholder {
    color: var(--qm-comment-muted);
    opacity: 1;
}

#comments.qm-comments-refined .qm-comment-code-editor {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--qm-comment-card-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-code-editor.is-open {
    display: block;
}

#comments.qm-comments-refined .qm-comment-code-editor-header,
#comments.qm-comments-refined .qm-comment-code-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#comments.qm-comments-refined .qm-comment-code-editor-title {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

#comments.qm-comments-refined .qm-comment-code-editor-fields {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

#comments.qm-comments-refined .qm-comment-code-language,
#comments.qm-comments-refined .qm-comment-code-textarea {
    width: 100%;
    border: 1px solid var(--qm-comment-card-border);
    border-radius: 14px;
    background: var(--qm-comment-soft-bg);
    color: var(--qm-comment-strong);
    font-size: 13px;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#comments.qm-comments-refined .qm-comment-code-language::placeholder,
#comments.qm-comments-refined .qm-comment-code-textarea::placeholder {
    color: var(--qm-comment-muted);
    opacity: 1;
}

#comments.qm-comments-refined .qm-comment-code-language {
    height: 40px;
    padding: 0 12px;
}

#comments.qm-comments-refined .qm-comment-code-textarea {
    min-height: 132px;
    padding: 12px 14px;
    resize: vertical;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

#comments.qm-comments-refined .qm-comment-code-language:focus,
#comments.qm-comments-refined .qm-comment-code-textarea:focus {
    outline: none;
    border-color: rgba(22, 119, 255, 0.24);
    box-shadow: none;
    background: #ffffff;
}

#comments.qm-comments-refined .qm-comment-code-close,
#comments.qm-comments-refined .qm-comment-code-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

#comments.qm-comments-refined .qm-comment-code-close {
    border: none;
    background: transparent;
    color: var(--qm-comment-muted);
}

#comments.qm-comments-refined .qm-comment-code-close:hover {
    color: var(--qm-comment-strong);
}

#comments.qm-comments-refined .qm-comment-code-confirm {
    border: 1px solid var(--qm-comment-card-border);
    background: var(--qm-comment-soft-bg);
    color: var(--qm-comment-strong);
}

#comments.qm-comments-refined .qm-comment-code-confirm:hover {
    background: var(--qm-comment-soft-bg-hover);
    border-color: rgba(136, 136, 136, 0.28);
}

#comments.qm-comments-refined .qm-comment-toolbar {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

#comments.qm-comments-refined .qm-comment-toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    min-width: 0;
    position: relative;
}

#comments.qm-comments-refined .qm-comment-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--qm-comment-card-border);
    border-radius: 14px;
    background: var(--qm-comment-soft-bg);
    color: var(--qm-comment-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    white-space: nowrap;
}

#comments.qm-comments-refined .qm-comment-tool-btn span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#comments.qm-comments-refined .qm-comment-attach-btn.qm-comment-tool-btn {
    width: auto;
    min-width: 92px;
    height: auto;
    padding: 0 16px;
    border-radius: 14px;
}

#comments.qm-comments-refined .qm-comment-tool-btn:hover {
    background: var(--qm-comment-soft-bg-hover);
    border-color: rgba(136, 136, 136, 0.28);
    color: var(--qm-comment-strong);
}

#comments.qm-comments-refined .qm-comment-tool-btn i {
    font-size: 16px;
    line-height: 1;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-top: 0;
    padding: 0 16px 14px;
    gap: 12px;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-toolbar-left,
#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-toolbar-right {
    min-width: 0;
    gap: 0.4rem;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-toolbar-left {
    flex: 1 1 auto;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-toolbar-right {
    justify-content: flex-end;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-inline-action {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--qm-comment-muted);
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-inline-action:hover {
    background: rgba(136, 136, 136, 0.12);
    border-color: transparent;
    color: var(--qm-comment-strong);
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-inline-action i {
    font-size: 1rem;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-inline-action--send {
    color: var(--qm-comment-action-text);
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-inline-action--send:hover {
    background: rgba(22, 119, 255, 0.12);
    color: var(--qm-comment-action-text);
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-char-count {
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
    color: var(--qm-comment-muted);
    font-size: 12px;
    line-height: 1;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-char-count.is-warning {
    color: #b7791f;
}

#comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-char-count.is-error {
    color: #c83c4a;
}

#comments.qm-comments-refined.qm-comments--review .qm-comment-tool-btn--review-media {
    background: var(--qm-review-gray-bg, rgba(136, 136, 136, 0.1)) !important;
    background-image: none !important;
    border-color: var(--qm-review-gray-border, rgba(136, 136, 136, 0.28)) !important;
    color: var(--qm-review-gray, #888888) !important;
    box-shadow: none !important;
}

#comments.qm-comments-refined.qm-comments--review .qm-comment-tool-btn--review-media span,
#comments.qm-comments-refined.qm-comments--review .qm-comment-tool-btn--review-media i {
    color: var(--qm-review-gray, #888888) !important;
}

#comments.qm-comments-refined.qm-comments--review .qm-comment-tool-btn--review-media:hover {
    background: var(--qm-review-gray-bg-hover, rgba(136, 136, 136, 0.16)) !important;
    border-color: var(--qm-review-gray-border-hover, rgba(136, 136, 136, 0.4)) !important;
    color: var(--qm-review-gray, #888888) !important;
}

#comments.qm-comments-refined.qm-comments--review .qm-comment-tool-btn--review-media:hover span,
#comments.qm-comments-refined.qm-comments--review .qm-comment-tool-btn--review-media:hover i {
    color: var(--qm-review-gray, #888888) !important;
}

#comments.qm-comments-refined .qm-comment-toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-left: 0;
    flex: 0 0 auto;
}

#comments.qm-comments-refined .qm-comment-send-btn.qm-comment-send-btn-text {
    width: auto;
    min-width: 118px;
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid var(--qm-comment-action-border);
    background: var(--qm-comment-action-bg);
    box-shadow: none;
    color: var(--qm-comment-action-text);
    font-size: 14px;
    font-weight: 800;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#comments.qm-comments-refined .qm-comment-send-btn.qm-comment-send-btn-text:hover {
    transform: none;
    box-shadow: none;
    filter: none;
    background: var(--qm-comment-action-bg-hover);
    border-color: #bfd7ff;
    color: var(--qm-comment-action-text);
}

#comments.qm-comments-refined .qm-comment-send-btn.qm-comment-send-btn-text i {
    display: inline-flex;
}

#comments.qm-comments-refined .qm-comment-quick-replies {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 10;
    max-width: 420px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--qm-comment-card-border);
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-quick-replies.is-open {
    display: flex;
}

#comments.qm-comments-refined .qm-comments-list-wrapper {
    margin-top: 4px;
}

#comments.qm-comments-refined .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#comments.qm-comments-refined .qm-comment-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

#comments.qm-comments-refined .comment-list > .qm-comment-item {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 24px 0 22px;
}

#comments.qm-comments-refined .comment-list > .qm-comment-item:last-child {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#comments.qm-comments-refined .qm-comment-body {
    display: grid;
    grid-template-columns: var(--qm-comment-avatar-size) minmax(0, 1fr);
    gap: 16px;
    padding: 0 !important;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-avatar {
    width: var(--qm-comment-avatar-size);
    height: var(--qm-comment-avatar-size);
    border-radius: 16px;
    overflow: hidden;
}

#comments.qm-comments-refined .qm-comment-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit;
    object-fit: cover;
}

#comments.qm-comments-refined .qm-comment-content {
    min-width: 0;
    position: relative;
}

#comments.qm-comments-refined .qm-comment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#comments.qm-comments-refined .qm-comment-author-block {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

#comments.qm-comments-refined .qm-comment-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#comments.qm-comments-refined .qm-comment-author-name,
#comments.qm-comments-refined .qm-comment-author-name a {
    color: #4b5563;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

#comments.qm-comments-refined .qm-comment-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 22px;
    margin-left: auto;
    flex: 0 0 auto;
}

#comments.qm-comments-refined .qm-comment-meta:empty {
    display: none;
}

#comments.qm-comments-refined .qm-comment-ip {
    color: #c0c7d2;
    font-size: 12px;
    line-height: 1.4;
}

#comments.qm-comments-refined .qm-comment-text-wrapper {
    min-width: 0;
}

#comments.qm-comments-refined .qm-comment-text {
    position: relative;
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.82;
}

#comments.qm-comments-refined .qm-comment-text > :first-child {
    margin-top: 0;
}

#comments.qm-comments-refined .qm-comment-text > :last-child {
    margin-bottom: 0;
}

#comments.qm-comments-refined .qm-comment-text p {
    margin: 0 0 10px;
}

#comments.qm-comments-refined .qm-comment-text.is-clamped {
    max-height: var(--qm-comment-clamp-height, 4em);
    overflow: hidden;
}

#comments.qm-comments-refined .qm-comment-text.is-clamped::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1.9em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 88%);
    pointer-events: none;
}

#comments.qm-comments-refined .qm-comment-text.is-clamped::before {
    content: "...";
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding-left: 18px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.2;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 48%);
    pointer-events: none;
}

#comments.qm-comments-refined .qm-comment-text.expanded {
    max-height: none;
    overflow: visible;
}

#comments.qm-comments-refined .qm-comment-code-shell {
    margin: 10px 0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    color-scheme: dark;
}

#comments.qm-comments-refined .qm-comment-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

#comments.qm-comments-refined .qm-comment-code-label,
#comments.qm-comments-refined .qm-comment-code-lang {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#comments.qm-comments-refined .qm-comment-code-label {
    color: rgba(226, 232, 240, 0.72);
    font-weight: 700;
}

#comments.qm-comments-refined .qm-comment-code-lang {
    color: #93c5fd;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-weight: 800;
}

#comments.qm-comments-refined .qm-comment-code-block {
    margin: 0;
    max-height: min(420px, 62vh);
    padding: 14px 16px 14px 3.7rem;
    overflow-x: auto;
    overflow-y: auto;
    background: transparent;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.42) rgba(15, 23, 42, 0.85);
}

#comments.qm-comments-refined .qm-comment-code-block code {
    display: block;
    color: inherit;
    font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
    white-space: pre;
    background: transparent;
}

#comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.9);
}

#comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.34);
    border: 2px solid rgba(15, 23, 42, 0.92);
    border-radius: 999px;
}

#comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

#comments.qm-comments-refined .qm-comment-code-block .line-numbers-rows {
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

#comments.qm-comments-refined .qm-comment-code-block .line-numbers-rows > span::before {
    color: rgba(148, 163, 184, 0.68);
}

#comments.qm-comments-refined .qm-comment-expand-btn {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

#comments.qm-comments-refined .qm-comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

#comments.qm-comments-refined .qm-comment-image-link {
    display: block;
    width: fit-content;
}

#comments.qm-comments-refined .qm-comment-image {
    display: block;
    width: min(220px, 100%);
    max-width: min(220px, 56vw);
    border-radius: 12px;
}

#comments.qm-comments-refined .qm-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    color: #9ca3af;
}

#comments.qm-comments-refined .qm-comment-date {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.4;
}

#comments.qm-comments-refined .qm-comment-reply-btn,
#comments.qm-comments-refined .qm-qa-accept-btn,
#comments.qm-comments-refined .qm-comment-report-btn,
#comments.qm-comments-refined .qm-comment-block-btn,
#comments.qm-comments-refined .qm-comment-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-reply-btn:hover,
#comments.qm-comments-refined .qm-qa-accept-btn:hover,
#comments.qm-comments-refined .qm-comment-report-btn:hover,
#comments.qm-comments-refined .qm-comment-block-btn:hover,
#comments.qm-comments-refined .qm-comment-delete-btn:hover {
    background: transparent;
    color: #9ca3af;
}

#comments.qm-comments-refined .qm-comment-delete-btn:hover {
    background: transparent;
    color: #9ca3af;
}

#comments.qm-comments-refined .qm-comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
    box-shadow: none;
}

#comments.qm-comments-refined .qm-comment-like-btn:hover {
    background: transparent;
    color: #9ca3af;
}

#comments.qm-comments-refined .qm-comment-like-btn.liked {
    color: #9ca3af;
}

#comments.qm-comments-refined .qm-comment-like-btn i {
    font-size: 16px;
}

#comments.qm-comments-refined .qm-comment-admin-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

#comments.qm-comments-refined .qm-comment-admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #9ca3af;
}

#comments.qm-comments-refined .qm-comment-admin-menu-toggle:hover {
    background: transparent;
    color: #334155;
}

#comments.qm-comments-refined .qm-comment-admin-menu-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 120px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 30;
}

#comments.qm-comments-refined .qm-comment-admin-menu.is-open .qm-comment-admin-menu-panel {
    display: block;
}

#comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
}

#comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn:hover {
    background: rgba(15, 23, 42, 0.06);
}

#comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-spam-btn:hover {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

#comments.qm-comments-refined .qm-comment-featured-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    opacity: 0.3;
    pointer-events: none;
    filter: none;
    line-height: 0;
    margin-top: 0;
    transform: rotate(12deg);
    z-index: 0;
}

#comments.qm-comments-refined .qm-comment-featured-badge .qm-featured-icon {
    width: 78px;
    height: 78px;
    display: block;
}

#comments.qm-comments-refined .comment-list .children {
    list-style: none;
    margin: 14px 0 0 calc(var(--qm-comment-avatar-size) + 16px);
    padding: 0 0 14px 14px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

#comments.qm-comments-refined .comment-list .children.is-collapsed {
    display: none;
}

#comments.qm-comments-refined .qm-comment-item.is-thread-collapsed > .children {
    display: none;
}

#comments.qm-comments-refined .qm-comment-item.is-thread-collapsed + .children {
    display: none;
}

#comments.qm-comments-refined .qm-comment-thread-toggle {
    display: inline-flex;
    align-items: center;
    margin: 14px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

#comments.qm-comments-refined .qm-comment-thread-toggle:hover {
    color: #475569;
}

#comments.qm-comments-refined .qm-comment-thread-toggle.is-expanded {
    color: #64748b;
}

#comments.qm-comments-refined .comment-list .children > .qm-comment-item {
    margin-left: 0;
    padding-top: 10px;
}

#comments.qm-comments-refined .comment-list .children > .qm-comment-item:first-child {
    padding-top: 0;
}

#comments.qm-comments-refined li.depth-2,
#comments.qm-comments-refined li.depth-3,
#comments.qm-comments-refined li.depth-4,
#comments.qm-comments-refined li.depth-5 {
    margin-left: 0;
}

#comments.qm-comments-refined li.depth-2 > .qm-comment-body,
#comments.qm-comments-refined li.depth-3 > .qm-comment-body,
#comments.qm-comments-refined li.depth-4 > .qm-comment-body,
#comments.qm-comments-refined li.depth-5 > .qm-comment-body {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 0 !important;
    border: none;
    background: transparent;
    box-shadow: none;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-avatar,
#comments.qm-comments-refined li.depth-3 .qm-comment-avatar,
#comments.qm-comments-refined li.depth-4 .qm-comment-avatar,
#comments.qm-comments-refined li.depth-5 .qm-comment-avatar {
    width: 30px;
    height: 30px;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-avatar img,
#comments.qm-comments-refined li.depth-3 .qm-comment-avatar img,
#comments.qm-comments-refined li.depth-4 .qm-comment-avatar img,
#comments.qm-comments-refined li.depth-5 .qm-comment-avatar img {
    width: 100% !important;
    height: 100% !important;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-author-name,
#comments.qm-comments-refined li.depth-2 .qm-comment-author-name a,
#comments.qm-comments-refined li.depth-3 .qm-comment-author-name,
#comments.qm-comments-refined li.depth-3 .qm-comment-author-name a,
#comments.qm-comments-refined li.depth-4 .qm-comment-author-name,
#comments.qm-comments-refined li.depth-4 .qm-comment-author-name a,
#comments.qm-comments-refined li.depth-5 .qm-comment-author-name,
#comments.qm-comments-refined li.depth-5 .qm-comment-author-name a {
    font-size: 14px;
    font-weight: 700;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-header,
#comments.qm-comments-refined li.depth-3 .qm-comment-header,
#comments.qm-comments-refined li.depth-4 .qm-comment-header,
#comments.qm-comments-refined li.depth-5 .qm-comment-header {
    gap: 8px;
    margin-bottom: 6px;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-author-block,
#comments.qm-comments-refined li.depth-3 .qm-comment-author-block,
#comments.qm-comments-refined li.depth-4 .qm-comment-author-block,
#comments.qm-comments-refined li.depth-5 .qm-comment-author-block {
    gap: 2px;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-author,
#comments.qm-comments-refined li.depth-3 .qm-comment-author,
#comments.qm-comments-refined li.depth-4 .qm-comment-author,
#comments.qm-comments-refined li.depth-5 .qm-comment-author {
    gap: 4px;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-ip,
#comments.qm-comments-refined li.depth-3 .qm-comment-ip,
#comments.qm-comments-refined li.depth-4 .qm-comment-ip,
#comments.qm-comments-refined li.depth-5 .qm-comment-ip {
    display: none;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-text,
#comments.qm-comments-refined li.depth-3 .qm-comment-text,
#comments.qm-comments-refined li.depth-4 .qm-comment-text,
#comments.qm-comments-refined li.depth-5 .qm-comment-text {
    font-size: 14px;
    line-height: 1.72;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-actions,
#comments.qm-comments-refined li.depth-3 .qm-comment-actions,
#comments.qm-comments-refined li.depth-4 .qm-comment-actions,
#comments.qm-comments-refined li.depth-5 .qm-comment-actions {
    gap: 12px;
    margin-top: 6px;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-date,
#comments.qm-comments-refined li.depth-2 .qm-comment-like-btn,
#comments.qm-comments-refined li.depth-2 .qm-comment-reply-btn,
#comments.qm-comments-refined li.depth-2 .qm-comment-report-btn,
#comments.qm-comments-refined li.depth-2 .qm-comment-block-btn,
#comments.qm-comments-refined li.depth-2 .qm-comment-delete-btn,
#comments.qm-comments-refined li.depth-3 .qm-comment-date,
#comments.qm-comments-refined li.depth-3 .qm-comment-like-btn,
#comments.qm-comments-refined li.depth-3 .qm-comment-reply-btn,
#comments.qm-comments-refined li.depth-3 .qm-comment-report-btn,
#comments.qm-comments-refined li.depth-3 .qm-comment-block-btn,
#comments.qm-comments-refined li.depth-3 .qm-comment-delete-btn,
#comments.qm-comments-refined li.depth-4 .qm-comment-date,
#comments.qm-comments-refined li.depth-4 .qm-comment-like-btn,
#comments.qm-comments-refined li.depth-4 .qm-comment-reply-btn,
#comments.qm-comments-refined li.depth-4 .qm-comment-report-btn,
#comments.qm-comments-refined li.depth-4 .qm-comment-block-btn,
#comments.qm-comments-refined li.depth-4 .qm-comment-delete-btn,
#comments.qm-comments-refined li.depth-5 .qm-comment-date,
#comments.qm-comments-refined li.depth-5 .qm-comment-like-btn,
#comments.qm-comments-refined li.depth-5 .qm-comment-reply-btn,
#comments.qm-comments-refined li.depth-5 .qm-comment-report-btn,
#comments.qm-comments-refined li.depth-5 .qm-comment-block-btn,
#comments.qm-comments-refined li.depth-5 .qm-comment-delete-btn {
    font-size: 12px;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-images,
#comments.qm-comments-refined li.depth-3 .qm-comment-images,
#comments.qm-comments-refined li.depth-4 .qm-comment-images,
#comments.qm-comments-refined li.depth-5 .qm-comment-images {
    gap: 8px;
    margin-top: 10px;
}

#comments.qm-comments-refined li.depth-2 .qm-comment-image,
#comments.qm-comments-refined li.depth-3 .qm-comment-image,
#comments.qm-comments-refined li.depth-4 .qm-comment-image,
#comments.qm-comments-refined li.depth-5 .qm-comment-image {
    width: min(160px, 100%);
    max-width: min(160px, 44vw);
    border-radius: 10px;
}

#comments.qm-comments-refined .comment-list .children .children {
    margin-top: 10px;
    margin-left: 16px;
    padding-left: 12px;
}

#comments.qm-comments-refined .qm-comment-reply-area {
    margin-top: 12px;
}

#comments.qm-comments-refined .qm-comments-empty {
    padding: 30px 18px;
    border-radius: 16px;
    background: var(--qm-comment-soft-bg);
    border: 1px dashed rgba(15, 23, 42, 0.12);
}

#comments.qm-comments-refined .qm-comments-pagination {
    display: flex;
    justify-content: center;
    padding-top: 18px;
}

#comments.qm-comments-refined .qm-comment-load-more {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1;
    transition: all .2s ease;
}

#comments.qm-comments-refined .qm-comment-load-more:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: #2563eb;
}

#comments.qm-comments-refined .qm-comment-load-more:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    #comments.qm-comments-refined {
        --qm-comment-avatar-size: var(--qm-comment-avatar-size-sm);
    }

    #comments.qm-comments-refined .qm-comments-header {
        align-items: stretch;
        margin-bottom: 12px !important;
    }

    #comments.qm-comments-refined .qm-comments-toolbar,
    #comments.qm-comments-refined .qm-comments-sort {
        gap: 14px;
    }

    #comments.qm-comments-refined .qm-comment-editor-shell {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 12px;
        padding: 12px;
    }

    #comments.qm-comments-refined .qm-comment-editor-side {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        align-self: start;
    }

    #comments.qm-comments-refined .qm-comment-editor-avatar {
        width: 52px;
        height: 52px;
    }

    #comments.qm-comments-refined .qm-comment-field-float textarea {
        min-height: 88px;
        font-size: 14px;
    }

    #comments.qm-comments-refined .qm-comment-code-editor {
        padding: 12px;
    }

    #comments.qm-comments-refined .qm-comment-code-language {
        height: 38px;
    }

    #comments.qm-comments-refined .qm-comment-code-textarea {
        min-height: 112px;
    }

    #comments.qm-comments-refined .qm-comment-toolbar {
        flex-direction: column;
        display: flex;
        align-items: stretch;
    }

    #comments.qm-comments-refined .qm-comment-toolbar-left {
        width: 100%;
    }

    #comments.qm-comments-refined .qm-comment-tool-btn {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    #comments.qm-comments-refined .qm-comment-attach-btn.qm-comment-tool-btn {
        width: auto;
        min-width: 64px;
        height: auto;
    }

    #comments.qm-comments-refined .qm-comment-toolbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    #comments.qm-comments-refined .qm-comment-send-btn.qm-comment-send-btn-text {
        width: 100%;
        min-width: 0;
        height: 38px;
    }

    #comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px 12px;
        gap: 10px;
    }

    #comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-toolbar-left,
    #comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-toolbar-right {
        width: auto;
        gap: 0.35rem;
    }

    #comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-toolbar-right {
        justify-content: flex-end;
    }

    #comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-inline-action,
    #comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-tool-btn,
    #comments.qm-comments-refined .qm-comment-input-wrapper > .qm-comment-toolbar .qm-comment-send-btn.qm-comment-send-btn-text {
        width: 1.9rem;
        min-width: 1.9rem;
        height: 1.9rem;
        min-height: 1.9rem;
        padding: 0;
    }

    #comments.qm-comments-refined .comment-list > .qm-comment-item {
        padding: 18px 0 16px;
    }

    #comments.qm-comments-refined .qm-comment-body {
        grid-template-columns: var(--qm-comment-avatar-size) minmax(0, 1fr);
        gap: 12px;
        padding: 0 !important;
    }

    #comments.qm-comments-refined .qm-comment-avatar {
        width: var(--qm-comment-avatar-size);
        height: var(--qm-comment-avatar-size);
    }

    #comments.qm-comments-refined .qm-comment-avatar img {
        width: var(--qm-comment-avatar-size) !important;
        height: var(--qm-comment-avatar-size) !important;
    }

    #comments.qm-comments-refined .qm-comment-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    #comments.qm-comments-refined .qm-comment-author-name,
    #comments.qm-comments-refined .qm-comment-author-name a {
        font-size: 15px;
    }

    #comments.qm-comments-refined .qm-comment-text {
        font-size: 15px;
        line-height: 1.75;
    }

    #comments.qm-comments-refined .qm-comment-code-block {
        max-height: min(360px, 56vh);
        padding: 12px 14px 12px 3.2rem;
        font-size: 12px;
    }

    #comments.qm-comments-refined .qm-comment-meta {
        justify-content: flex-end;
    }

    #comments.qm-comments-refined .qm-comment-actions {
        gap: 14px;
        row-gap: 8px;
    }

    #comments.qm-comments-refined .qm-comment-reply-btn,
    #comments.qm-comments-refined .qm-qa-accept-btn,
    #comments.qm-comments-refined .qm-comment-report-btn,
    #comments.qm-comments-refined .qm-comment-block-btn,
    #comments.qm-comments-refined .qm-comment-delete-btn {
        font-size: 12px;
    }

    #comments.qm-comments-refined .comment-list .children {
        margin-top: 12px;
        margin-left: calc(var(--qm-comment-avatar-size) + 10px);
        padding-left: 10px;
    }

    #comments.qm-comments-refined .qm-comment-thread-toggle {
        font-size: 12px;
    }

    #comments.qm-comments-refined li.depth-2 > .qm-comment-body,
    #comments.qm-comments-refined li.depth-3 > .qm-comment-body,
    #comments.qm-comments-refined li.depth-4 > .qm-comment-body,
    #comments.qm-comments-refined li.depth-5 > .qm-comment-body {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
    }
    #comments.qm-comments-refined li.depth-2 .qm-comment-avatar,
    #comments.qm-comments-refined li.depth-3 .qm-comment-avatar,
    #comments.qm-comments-refined li.depth-4 .qm-comment-avatar,
    #comments.qm-comments-refined li.depth-5 .qm-comment-avatar {
        width: 26px;
        height: 26px;
    }

    #comments.qm-comments-refined li.depth-2 .qm-comment-author-name,
    #comments.qm-comments-refined li.depth-2 .qm-comment-author-name a,
    #comments.qm-comments-refined li.depth-3 .qm-comment-author-name,
    #comments.qm-comments-refined li.depth-3 .qm-comment-author-name a,
    #comments.qm-comments-refined li.depth-4 .qm-comment-author-name,
    #comments.qm-comments-refined li.depth-4 .qm-comment-author-name a,
    #comments.qm-comments-refined li.depth-5 .qm-comment-author-name,
    #comments.qm-comments-refined li.depth-5 .qm-comment-author-name a {
        font-size: 13px;
    }

    #comments.qm-comments-refined li.depth-2 .qm-comment-text,
    #comments.qm-comments-refined li.depth-3 .qm-comment-text,
    #comments.qm-comments-refined li.depth-4 .qm-comment-text,
    #comments.qm-comments-refined li.depth-5 .qm-comment-text {
        font-size: 13px;
    }

    #comments.qm-comments-refined .comment-list .children .children {
        margin-left: 12px;
        padding-left: 10px;
    }
}

html.dark #comments.qm-comments-refined .qm-comment-editor-shell,
body.dark #comments.qm-comments-refined .qm-comment-editor-shell {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: none;
}

html.dark #comments.qm-comments-refined .qm-comment-editor-note,
html.dark #comments.qm-comments-refined .qm-comment-input-wrapper,
html.dark #comments.qm-comments-refined .qm-comment-tool-btn,
body.dark #comments.qm-comments-refined .qm-comment-editor-note,
body.dark #comments.qm-comments-refined .qm-comment-input-wrapper,
body.dark #comments.qm-comments-refined .qm-comment-tool-btn {
    background: #0f172a;
    color: #94a3b8;
}

html.dark #comments.qm-comments-refined .qm-comment-sort-btn,
html.dark #comments.qm-comments-refined .qm-comment-filter-btn,
html.dark #comments.qm-comments-refined .qm-comment-reply-btn,
html.dark #comments.qm-comments-refined .qm-qa-accept-btn,
html.dark #comments.qm-comments-refined .qm-comment-report-btn,
html.dark #comments.qm-comments-refined .qm-comment-block-btn,
html.dark #comments.qm-comments-refined .qm-comment-delete-btn,
html.dark #comments.qm-comments-refined .qm-comment-like-btn,
html.dark #comments.qm-comments-refined .qm-comment-admin-menu-toggle,
html.dark #comments.qm-comments-refined .qm-comment-thread-toggle,
body.dark #comments.qm-comments-refined .qm-comment-sort-btn,
body.dark #comments.qm-comments-refined .qm-comment-filter-btn,
body.dark #comments.qm-comments-refined .qm-comment-reply-btn,
body.dark #comments.qm-comments-refined .qm-qa-accept-btn,
body.dark #comments.qm-comments-refined .qm-comment-report-btn,
body.dark #comments.qm-comments-refined .qm-comment-block-btn,
body.dark #comments.qm-comments-refined .qm-comment-delete-btn,
body.dark #comments.qm-comments-refined .qm-comment-like-btn,
body.dark #comments.qm-comments-refined .qm-comment-admin-menu-toggle,
body.dark #comments.qm-comments-refined .qm-comment-thread-toggle {
    background: transparent;
    border: none;
    color: #94a3b8;
}

html.dark #comments.qm-comments-refined .qm-comment-input-wrapper,
body.dark #comments.qm-comments-refined .qm-comment-input-wrapper {
    border-color: rgba(148, 163, 184, 0.16);
}

html.dark #comments.qm-comments-refined .qm-comment-field-float textarea,
body.dark #comments.qm-comments-refined .qm-comment-field-float textarea {
    color: #e5e7eb;
}

html.dark #comments.qm-comments-refined .comment-list > .qm-comment-item,
body.dark #comments.qm-comments-refined .comment-list > .qm-comment-item {
    border-top-color: rgba(148, 163, 184, 0.12);
}

html.dark #comments.qm-comments-refined .comment-list > .qm-comment-item:last-child,
body.dark #comments.qm-comments-refined .comment-list > .qm-comment-item:last-child {
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

html.dark #comments.qm-comments-refined .qm-comment-body,
body.dark #comments.qm-comments-refined .qm-comment-body {
    background: transparent;
    border: none;
    box-shadow: none;
}

html.dark #comments.qm-comments-refined .qm-comment-author-name,
html.dark #comments.qm-comments-refined .qm-comment-author-name a,
body.dark #comments.qm-comments-refined .qm-comment-author-name,
body.dark #comments.qm-comments-refined .qm-comment-author-name a {
    color: #f8fafc;
}

html.dark #comments.qm-comments-refined .qm-comment-text,
body.dark #comments.qm-comments-refined .qm-comment-text {
    color: #e5e7eb;
}

html.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::after,
body.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::after {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), #111827 88%);
}

html.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::before,
body.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::before {
    color: #94a3b8;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0), #111827 48%);
}

html.dark #comments.qm-comments-refined .qm-comment-code-editor,
body.dark #comments.qm-comments-refined .qm-comment-code-editor {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.14);
}

html.dark #comments.qm-comments-refined .qm-comment-code-editor-title,
body.dark #comments.qm-comments-refined .qm-comment-code-editor-title {
    color: #cbd5e1;
}

html.dark #comments.qm-comments-refined .qm-comment-code-language,
html.dark #comments.qm-comments-refined .qm-comment-code-textarea,
body.dark #comments.qm-comments-refined .qm-comment-code-language,
body.dark #comments.qm-comments-refined .qm-comment-code-textarea {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.14);
    color: #e5e7eb;
}

html.dark #comments.qm-comments-refined .qm-comment-code-language:focus,
html.dark #comments.qm-comments-refined .qm-comment-code-textarea:focus,
body.dark #comments.qm-comments-refined .qm-comment-code-language:focus,
body.dark #comments.qm-comments-refined .qm-comment-code-textarea:focus {
    background: #0f172a;
}

html.dark #comments.qm-comments-refined .qm-comment-code-shell,
body.dark #comments.qm-comments-refined .qm-comment-code-shell {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.35);
}

html.dark #comments.qm-comments-refined .qm-comment-code-block,
body.dark #comments.qm-comments-refined .qm-comment-code-block {
    scrollbar-color: rgba(148, 163, 184, 0.46) rgba(15, 23, 42, 0.92);
}

html.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-track,
body.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.96);
}

html.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-thumb,
body.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.42);
    border-color: rgba(15, 23, 42, 0.96);
}

html.dark #comments.qm-comments-refined .qm-comment-ip,
html.dark #comments.qm-comments-refined .qm-comment-date,
html.dark #comments.qm-comments-refined .qm-comments-count,
body.dark #comments.qm-comments-refined .qm-comment-ip,
body.dark #comments.qm-comments-refined .qm-comment-date,
body.dark #comments.qm-comments-refined .qm-comments-count {
    color: #94a3b8;
}

html.dark #comments.qm-comments-refined .comment-list .children,
body.dark #comments.qm-comments-refined .comment-list .children {
    border-left-color: rgba(148, 163, 184, 0.12);
}

html.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel,
body.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

html.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn,
body.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn {
    color: #e5e7eb;
}

html.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn:hover,
body.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn:hover {
    background: rgba(148, 163, 184, 0.10);
}

html.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-spam-btn:hover,
body.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-spam-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

html.dark #comments.qm-comments-refined .qm-comment-featured-badge,
body.dark #comments.qm-comments-refined .qm-comment-featured-badge {
    background: transparent;
    border: none;
    opacity: 0.24;
}

html.dark #comments.qm-comments-refined .qm-comments-empty,
body.dark #comments.qm-comments-refined .qm-comments-empty {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.16);
}

html.dark #comments.qm-comments-refined .qm-comment-load-more,
body.dark #comments.qm-comments-refined .qm-comment-load-more {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

html.dark #comments.qm-comments-refined .qm-comment-load-more:hover,
body.dark #comments.qm-comments-refined .qm-comment-load-more:hover {
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

/* Article Detail Radius Tightening */
.qm-article-detail-refined {
    --qm-detail-radius-card-tight: 8px;
    --qm-detail-radius-box-tight: 6px;
    --qm-detail-radius-pill-tight: 6px;
    --qm-detail-radius-corner-tight: 6px;
}

.qm-article-detail-refined :is(
    .qm-article-breadcrumb-bar,
    .qm-article-reading-card,
    .qm-article-end-card,
    .qm-article-side-card,
    .qm-article-rail-author-card,
    .qm-article-post-nav-card,
    .qm-article-related-card,
    .qm-article-download-hero,
    .qm-article-download-notice,
    .qm-article-download-source-card,
    .qm-article-download-source-empty,
    .qm-article-download-empty,
    .qm-article-download-meta-table,
    .qm-article-inline-download,
    .qm-article-inline-download__purchase,
    .qm-paywall
),
#comments.qm-comments-refined :is(
    .qm-comment-editor-shell,
    .qm-comment-editor-note,
    .qm-comment-input-wrapper,
    .qm-comment-code-editor,
    .qm-comment-code-shell,
    .qm-comment-admin-menu-panel,
    .qm-comments-empty
) {
    border-radius: var(--qm-detail-radius-card-tight) !important;
}

.qm-article-detail-refined :is(
    .qm-article-related-thumb,
    .qm-article-related-thumb img,
    .qm-article-side-list__thumb,
    .qm-article-side-list__thumb img,
    .qm-article-download-code-item,
    .qm-article-download-source-tab,
    .qm-article-download-source-tag,
    .qm-article-download-copy-btn,
    .qm-article-inline-download__thumb,
    .qm-article-inline-download__code-value,
    .qm-article-inline-download__copy-btn,
    .qm-article-inline-download__btn,
    .qm-article-inline-download__source,
    .qm-article-content img:not(.qm-hero-mockup-frame),
    .qm-article-content video,
    .qm-article-content iframe,
    .qm-article-content table,
    .qm-article-content pre,
    .qm-article-content blockquote,
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
),
#comments.qm-comments-refined :is(
    .qm-comment-code-language,
    .qm-comment-code-textarea,
    .qm-comment-code-close,
    .qm-comment-code-confirm,
    .qm-comment-tool-btn,
    .qm-comment-send-btn.qm-comment-send-btn-text,
    .qm-comment-image,
    .qm-comment-image-link
) {
    border-radius: var(--qm-detail-radius-box-tight) !important;
}

.qm-article-detail-refined :is(
    .qm-article-lead-pill,
    .qm-article-tag-chip,
    .qm-tag-item,
    .qm-article-cloud__item,
    .qm-side-flag,
    .qm-side-soft-chip,
    .qm-download-btn,
    .qm-post-actions-float-refined .qm-action-btn,
    .qm-post-actions-float .qm-action-btn
),
#comments.qm-comments-refined :is(
    .qm-comment-reply-btn,
    .qm-qa-accept-btn,
    .qm-comment-report-btn,
    .qm-comment-block-btn,
    .qm-comment-delete-btn,
    .qm-comment-like-btn,
    .qm-comment-thread-toggle
) {
    border-radius: var(--qm-detail-radius-pill-tight) !important;
}

.qm-article-detail-refined :is(
    .qm-article-download-status,
    .qm-article-inline-download__thumb-badge
) {
    border-radius: var(--qm-detail-radius-corner-tight) 0 var(--qm-detail-radius-corner-tight) 0 !important;
}

.qm-article-detail-refined :is(
    .qm-article-download-count,
    .qm-article-inline-download__badge
) {
    border-radius: var(--qm-detail-radius-corner-tight) 0 0 var(--qm-detail-radius-corner-tight) !important;
}

.qm-article-detail-refined :is(
    .qm-sidebar-author-avatar,
    .qm-sidebar-author-avatar img,
    .qm-author-avatar,
    .qm-author-avatar img,
    .qm-article-lead-author-avatar,
    .qm-article-lead-author-avatar img,
    .qm-article-rail-avatar,
    .qm-article-rail-avatar img,
    .qm-hero-stat-avatar,
    .qm-hero-stat-avatar img
),
#comments.qm-comments-refined :is(
    .qm-comment-editor-avatar,
    .qm-comment-editor-avatar img,
    .qm-comment-avatar,
    .qm-comment-avatar img
) {
    border-radius: var(--qm-detail-radius-box-tight) !important;
}

/* Article Detail Shadow Softening */
.qm-article-detail-refined,
#comments.qm-comments-refined {
    --qm-detail-shadow-card-soft: 0 4px 10px rgba(15, 23, 42, 0.05);
    --qm-detail-shadow-card-hover-soft: 0 6px 14px rgba(15, 23, 42, 0.07);
    --qm-detail-shadow-pop-soft: 0 6px 14px rgba(15, 23, 42, 0.08);
    --qm-detail-shadow-accent-soft: 0 3px 8px rgba(37, 99, 235, 0.12);
    --qm-detail-shadow-ring-soft: 0 0 0 2px rgba(244, 47, 37, 0.06);
}

.qm-article-detail-refined :is(
    .qm-article-reading-card,
    .qm-article-end-card,
    .qm-article-side-card,
    .qm-article-rail-author-card,
    .qm-article-post-nav-card,
    .qm-article-related-card,
    .qm-article-download-hero,
    .qm-article-download-notice,
    .qm-article-download-source-card,
    .qm-article-download-source-empty,
    .qm-article-download-empty,
    .qm-article-download-meta-table,
    .qm-article-inline-download,
    .qm-article-inline-download__purchase,
    .qm-article-inline-download__code-item,
    .qm-article-inline-download__thumb,
    .qm-article-related-thumb,
    .qm-article-side-list__thumb,
    .qm-paywall
),
#comments.qm-comments-refined :is(
    .qm-comment-editor-shell,
    .qm-comment-code-shell,
    .qm-comment-admin-menu-panel,
    .qm-comments-empty
) {
    box-shadow: var(--qm-detail-shadow-card-soft) !important;
}

.qm-article-detail-refined :is(
    .qm-article-post-nav-card:hover,
    .qm-article-related-card:hover
),
#comments.qm-comments-refined :is(
    .qm-comment-admin-menu-panel,
    .qm-comment-send-btn.qm-comment-send-btn-text
) {
    box-shadow: var(--qm-detail-shadow-card-hover-soft) !important;
}

.qm-article-detail-refined :is(
    .qm-download-btn,
    .qm-article-inline-download__btn,
    .qm-article-download-copy-btn,
    .qm-article-inline-download__copy-btn,
    .qm-post-actions-float-refined .qm-action-btn,
    .qm-post-actions-float .qm-action-btn
),
#comments.qm-comments-refined :is(
    .qm-comment-send-btn.qm-comment-send-btn-text:hover,
    .qm-comment-tool-btn,
    .qm-comment-code-close,
    .qm-comment-code-confirm,
    .qm-comment-like-btn,
    .qm-comment-reply-btn,
    .qm-qa-accept-btn,
    .qm-comment-report-btn,
    .qm-comment-block-btn,
    .qm-comment-delete-btn
) {
    box-shadow: none !important;
}

.qm-article-detail-refined :is(
    .qm-article-download-status,
    .qm-article-download-count,
    .qm-article-inline-download__thumb-badge,
    .qm-article-inline-download__badge
) {
    box-shadow: var(--qm-detail-shadow-accent-soft) !important;
}

#comments.qm-comments-refined .qm-comment-input-wrapper:focus-within,
#comments.qm-comments-refined .qm-comment-code-close:focus,
#comments.qm-comments-refined .qm-comment-code-confirm:focus {
    box-shadow: var(--qm-detail-shadow-ring-soft) !important;
}

/* Article Detail Dark Palette Alignment */
html.dark .qm-article-detail-refined,
body.dark .qm-article-detail-refined,
html.dark #comments.qm-comments-refined,
body.dark #comments.qm-comments-refined {
    --qm-detail-dark-surface: var(--qm-bg-dark-800);
    --qm-detail-dark-surface-alt: var(--qm-bg-dark);
    --qm-detail-dark-surface-soft: var(--qm-bg-dark-600);
    --qm-detail-dark-border: var(--qm-border-dark-600);
    --qm-detail-dark-text: var(--qm-text-dark-secondary);
    --qm-detail-dark-text-soft: var(--qm-text-dark-secondary);
    --qm-detail-dark-muted: var(--qm-text-dark-secondary);
}

html.dark .qm-article-detail-refined,
body.dark .qm-article-detail-refined {
    --qm-article-surface: var(--qm-detail-dark-surface);
    --qm-article-border: var(--qm-detail-dark-border);
    --qm-article-text: var(--qm-detail-dark-text);
    --qm-article-text-soft: var(--qm-detail-dark-text-soft);
    --qm-article-muted: var(--qm-detail-dark-muted);
    background: transparent;
}

html.dark .qm-article-detail-refined :is(
    .qm-article-lead-card,
    .qm-article-reading-card,
    .qm-article-end-card,
    .qm-article-side-card,
    .qm-article-rail-author-card,
    .qm-article-post-nav-card,
    .qm-article-related-card,
    .qm-article-download-source-card,
    .qm-article-download-meta-table,
    .qm-paywall
),
body.dark .qm-article-detail-refined :is(
    .qm-article-lead-card,
    .qm-article-reading-card,
    .qm-article-end-card,
    .qm-article-side-card,
    .qm-article-rail-author-card,
    .qm-article-post-nav-card,
    .qm-article-related-card,
    .qm-article-download-source-card,
    .qm-article-download-meta-table,
    .qm-paywall
) {
    background: var(--qm-detail-dark-surface);
    border-color: var(--qm-detail-dark-border);
}

html.dark .qm-article-detail-refined .qm-article-content-head,
body.dark .qm-article-detail-refined .qm-article-content-head,
html.dark .qm-article-detail-refined .qm-article-inline-download,
body.dark .qm-article-detail-refined .qm-article-inline-download,
html.dark #comments.qm-comments-refined .qm-comment-editor-shell,
body.dark #comments.qm-comments-refined .qm-comment-editor-shell {
    border-color: var(--qm-detail-dark-border);
}

html.dark #comments.qm-comments-refined .qm-comment-editor-shell,
body.dark #comments.qm-comments-refined .qm-comment-editor-shell {
    background: var(--qm-detail-dark-surface);
}

html.dark .qm-article-detail-refined .qm-article-download-hero,
body.dark .qm-article-detail-refined .qm-article-download-hero {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.10) 0%, transparent 38%),
        linear-gradient(180deg, var(--qm-detail-dark-surface) 0%, var(--qm-detail-dark-surface-alt) 100%);
    border-color: var(--qm-detail-dark-border);
}

html.dark .qm-article-detail-refined .qm-article-inline-download,
body.dark .qm-article-detail-refined .qm-article-inline-download {
    background: linear-gradient(180deg, var(--qm-detail-dark-surface) 0%, var(--qm-detail-dark-surface-alt) 100%);
}

html.dark .qm-article-detail-refined .qm-article-rail-author-card,
body.dark .qm-article-detail-refined .qm-article-rail-author-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html.dark .qm-article-detail-refined :is(
    .qm-article-stat-card,
    .qm-post-actions-float-refined .qm-action-btn,
    .qm-post-actions-float .qm-action-btn,
    .qm-download-btn-secondary.qm-article-side-btn,
    .qm-article-download-empty,
    .qm-article-download-tier,
    .qm-article-download-code-item,
    .qm-article-download-source-tab,
    .qm-article-download-source-tag,
    .qm-article-download-source-empty,
    .qm-article-download-copy-btn,
    .qm-side-flag,
    .qm-side-soft-chip,
    .qm-article-inline-download__thumb,
    .qm-article-inline-download__purchase,
    .qm-article-inline-download__code-item
),
body.dark .qm-article-detail-refined :is(
    .qm-article-stat-card,
    .qm-post-actions-float-refined .qm-action-btn,
    .qm-post-actions-float .qm-action-btn,
    .qm-download-btn-secondary.qm-article-side-btn,
    .qm-article-download-empty,
    .qm-article-download-tier,
    .qm-article-download-code-item,
    .qm-article-download-source-tab,
    .qm-article-download-source-tag,
    .qm-article-download-source-empty,
    .qm-article-download-copy-btn,
    .qm-side-flag,
    .qm-side-soft-chip,
    .qm-article-inline-download__thumb,
    .qm-article-inline-download__purchase,
    .qm-article-inline-download__code-item
) {
    background: var(--qm-detail-dark-surface-alt);
    border-color: var(--qm-detail-dark-border);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__thumb,
body.dark .qm-article-detail-refined .qm-article-inline-download__thumb {
    box-shadow: inset 0 0 0 1px var(--qm-detail-dark-border) !important;
}

html.dark .qm-article-detail-refined .qm-article-inline-download__thumb::after,
body.dark .qm-article-detail-refined .qm-article-inline-download__thumb::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(15, 23, 42, 0.12) 100%);
}

html.dark .qm-article-detail-refined .qm-article-inline-download__thumb-fallback,
body.dark .qm-article-detail-refined .qm-article-inline-download__thumb-fallback {
    color: rgba(148, 163, 184, 0.28);
}

html.dark .qm-article-detail-refined :is(
    .qm-article-breadcrumb-bar,
    .qm-article-breadcrumb-label,
    .qm-article-breadcrumb-item,
    .qm-article-download-price-prefix,
    .qm-article-download-price-original,
    .qm-article-download-price-note,
    .qm-article-download-service-item,
    .qm-article-download-source-tab,
    .qm-article-download-source-empty,
    .qm-article-download-empty,
    .qm-article-inline-download__subtitle,
    .qm-article-inline-download__meta-item span,
    .qm-article-inline-download__purchase-row > span,
    .qm-article-inline-download__price-item em,
    .qm-article-inline-download__code-label
),
body.dark .qm-article-detail-refined :is(
    .qm-article-breadcrumb-bar,
    .qm-article-breadcrumb-label,
    .qm-article-breadcrumb-item,
    .qm-article-download-price-prefix,
    .qm-article-download-price-original,
    .qm-article-download-price-note,
    .qm-article-download-service-item,
    .qm-article-download-source-tab,
    .qm-article-download-source-empty,
    .qm-article-download-empty,
    .qm-article-inline-download__subtitle,
    .qm-article-inline-download__meta-item span,
    .qm-article-inline-download__purchase-row > span,
    .qm-article-inline-download__price-item em,
    .qm-article-inline-download__code-label
) {
    color: var(--qm-detail-dark-muted);
}

html.dark .qm-article-detail-refined .qm-article-content,
body.dark .qm-article-detail-refined .qm-article-content,
html.dark .qm-article-detail-refined .qm-article-content :is(p, li, blockquote, figcaption),
body.dark .qm-article-detail-refined .qm-article-content :is(p, li, blockquote, figcaption) {
    color: var(--qm-text-dark-secondary) !important;
}

html.dark .qm-article-detail-refined .qm-article-content :is(p, li, blockquote, figcaption) :is(
    span,
    strong,
    em,
    b,
    i,
    u,
    small,
    mark
),
body.dark .qm-article-detail-refined .qm-article-content :is(p, li, blockquote, figcaption) :is(
    span,
    strong,
    em,
    b,
    i,
    u,
    small,
    mark
) {
    color: inherit !important;
}

html.dark .qm-article-detail-refined .qm-article-content :is(p, li, figcaption) strong,
body.dark .qm-article-detail-refined .qm-article-content :is(p, li, figcaption) strong {
    color: var(--qm-text-dark-secondary) !important;
}

html.dark .qm-article-detail-refined .qm-article-content-title,
body.dark .qm-article-detail-refined .qm-article-content-title,
html.dark .qm-article-detail-refined .qm-article-content-meta,
body.dark .qm-article-detail-refined .qm-article-content-meta,
html.dark .qm-article-detail-refined .qm-article-breadcrumb-bar,
html.dark .qm-article-detail-refined .qm-article-breadcrumb-label,
html.dark .qm-article-detail-refined .qm-article-breadcrumb-item,
html.dark .qm-article-detail-refined .qm-article-breadcrumb-item a,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-bar,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-label,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-item,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-item a {
    color: var(--qm-text-dark-secondary) !important;
}

html.dark .qm-article-detail-refined .qm-article-breadcrumb-item.is-current,
html.dark .qm-article-detail-refined .qm-article-breadcrumb-item.is-current a,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-item.is-current,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-item.is-current a {
    color: var(--qm-text-dark-secondary) !important;
    font-weight: inherit !important;
}

html.dark .qm-article-detail-refined .qm-article-breadcrumb-bar,
body.dark .qm-article-detail-refined .qm-article-breadcrumb-bar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html.dark .qm-article-detail-refined :is(
    .qm-article-download-price-fact em,
    .qm-article-download-price-fact strong,
    .qm-article-download-tier-label,
    .qm-article-download-tier strong,
    .qm-article-download-tier.is-member-price .qm-article-download-tier-label,
    .qm-article-download-tier.is-member-price strong
),
body.dark .qm-article-detail-refined :is(
    .qm-article-download-price-fact em,
    .qm-article-download-price-fact strong,
    .qm-article-download-tier-label,
    .qm-article-download-tier strong,
    .qm-article-download-tier.is-member-price .qm-article-download-tier-label,
    .qm-article-download-tier.is-member-price strong
) {
    color: var(--qm-text-dark-secondary) !important;
}

html.dark .qm-article-detail-refined :is(
    .qm-download-btn-secondary.qm-article-side-btn,
    .qm-article-download-price-value,
    .qm-article-download-source-tab.is-active,
    .qm-article-inline-download__title,
    .qm-article-inline-download__meta-item strong,
    .qm-article-inline-download__purchase-row > strong,
    .qm-article-inline-download__price-item strong,
    .qm-article-inline-download__code-value
),
body.dark .qm-article-detail-refined :is(
    .qm-download-btn-secondary.qm-article-side-btn,
    .qm-article-download-price-value,
    .qm-article-download-source-tab.is-active,
    .qm-article-inline-download__title,
    .qm-article-inline-download__meta-item strong,
    .qm-article-inline-download__purchase-row > strong,
    .qm-article-inline-download__price-item strong,
    .qm-article-inline-download__code-value
) {
    color: var(--qm-detail-dark-text);
}

html.dark .qm-article-detail-refined .qm-article-download-source-tab.is-active,
body.dark .qm-article-detail-refined .qm-article-download-source-tab.is-active {
    background: var(--qm-detail-dark-surface-soft);
}

html.dark .qm-article-detail-refined :is(
    .qm-article-download-notice--success,
    .qm-article-download-notice--warning,
    .qm-article-download-notice--info
),
body.dark .qm-article-detail-refined :is(
    .qm-article-download-notice--success,
    .qm-article-download-notice--warning,
    .qm-article-download-notice--info
) {
    background: var(--qm-detail-dark-surface-alt);
    border-color: var(--qm-detail-dark-border);
    color: var(--qm-detail-dark-text-soft);
}

html.dark #comments.qm-comments-refined,
body.dark #comments.qm-comments-refined {
    --qm-comment-card-bg: var(--qm-detail-dark-surface);
    --qm-comment-card-border: var(--qm-detail-dark-border);
    --qm-comment-soft-bg: var(--qm-detail-dark-surface-alt);
    --qm-comment-muted: var(--qm-detail-dark-muted);
}

html.dark #comments.qm-comments-refined :is(
    .qm-comment-editor-note,
    .qm-comment-input-wrapper,
    .qm-comment-tool-btn,
    .qm-comment-code-editor,
    .qm-comment-code-language,
    .qm-comment-code-textarea,
    .qm-comments-empty,
    .qm-comment-admin-menu-panel
),
body.dark #comments.qm-comments-refined :is(
    .qm-comment-editor-note,
    .qm-comment-input-wrapper,
    .qm-comment-tool-btn,
    .qm-comment-code-editor,
    .qm-comment-code-language,
    .qm-comment-code-textarea,
    .qm-comments-empty,
    .qm-comment-admin-menu-panel
) {
    background: var(--qm-detail-dark-surface-alt);
    border-color: var(--qm-detail-dark-border);
    color: var(--qm-detail-dark-text-soft);
}

html.dark #comments.qm-comments-refined :is(
    .qm-comment-code-language:focus,
    .qm-comment-code-textarea:focus
),
body.dark #comments.qm-comments-refined :is(
    .qm-comment-code-language:focus,
    .qm-comment-code-textarea:focus
) {
    background: var(--qm-detail-dark-surface);
}

html.dark #comments.qm-comments-refined .qm-comment-code-shell,
body.dark #comments.qm-comments-refined .qm-comment-code-shell {
    background: var(--qm-detail-dark-surface-alt);
    border-color: var(--qm-detail-dark-border);
}

html.dark #comments.qm-comments-refined .qm-comment-code-head,
body.dark #comments.qm-comments-refined .qm-comment-code-head {
    background: var(--qm-detail-dark-surface);
    border-bottom-color: var(--qm-detail-dark-border);
}

html.dark #comments.qm-comments-refined :is(
    .qm-comment-author-name,
    .qm-comment-author-name a,
    .qm-comment-text
),
body.dark #comments.qm-comments-refined :is(
    .qm-comment-author-name,
    .qm-comment-author-name a,
    .qm-comment-text
) {
    color: var(--qm-detail-dark-text);
}

html.dark #comments.qm-comments-refined :is(
    .qm-comments-count,
    .qm-comment-ip,
    .qm-comment-date
),
body.dark #comments.qm-comments-refined :is(
    .qm-comments-count,
    .qm-comment-ip,
    .qm-comment-date
) {
    color: var(--qm-detail-dark-muted);
}

html.dark #comments.qm-comments-refined .comment-list > .qm-comment-item,
body.dark #comments.qm-comments-refined .comment-list > .qm-comment-item,
html.dark #comments.qm-comments-refined .comment-list .children,
body.dark #comments.qm-comments-refined .comment-list .children {
    border-color: var(--qm-detail-dark-border);
}

html.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::after,
body.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::after {
    background: linear-gradient(180deg, rgba(52, 54, 60, 0) 0%, var(--qm-detail-dark-surface) 88%);
}

html.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::before,
body.dark #comments.qm-comments-refined .qm-comment-text.is-clamped::before {
    color: var(--qm-detail-dark-muted);
    background: linear-gradient(90deg, rgba(52, 54, 60, 0) 0%, var(--qm-detail-dark-surface) 48%);
}

html.dark #comments.qm-comments-refined .qm-comment-code-block,
body.dark #comments.qm-comments-refined .qm-comment-code-block {
    scrollbar-color: rgba(148, 163, 184, 0.38) var(--qm-detail-dark-surface-alt);
}

html.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-track,
body.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-track {
    background: var(--qm-detail-dark-surface-alt);
}

html.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-thumb,
body.dark #comments.qm-comments-refined .qm-comment-code-block::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.38);
    border-color: var(--qm-detail-dark-surface-alt);
}

html.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn:hover,
body.dark #comments.qm-comments-refined .qm-comment-admin-menu-panel .qm-comment-admin-btn:hover {
    background: var(--qm-detail-dark-surface-soft);
}

/* Article Detail Dark Text Unification */
html.dark .qm-article-detail-refined,
body.dark .qm-article-detail-refined,
html.dark #comments.qm-comments-refined,
body.dark #comments.qm-comments-refined {
    --qm-detail-unified-text: var(--qm-text-dark-secondary);
    color: var(--qm-detail-unified-text) !important;
}

html.dark .qm-article-detail-refined :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    a,
    li,
    dt,
    dd,
    small,
    strong,
    em,
    b,
    u,
    mark,
    figcaption,
    blockquote,
    th,
    td,
    label,
    time,
    .qm-article-content-meta,
    .qm-article-breadcrumb-label,
    .qm-article-breadcrumb-item,
    .qm-article-breadcrumb-item a,
    .qm-article-stat-label,
    .qm-article-lead-update,
    .qm-article-lead-author-sub,
    .qm-article-side-kicker,
    .qm-article-side-desc,
    .qm-article-related-meta,
    .qm-tags-header,
    .qm-article-download-price-prefix,
    .qm-article-download-price-original,
    .qm-article-download-price-note,
    .qm-article-download-price-fact em,
    .qm-article-download-price-fact strong,
    .qm-article-download-tier-label,
    .qm-article-download-tier strong,
    .qm-article-download-service-item,
    .qm-article-download-notice span,
    .qm-article-download-source-name,
    .qm-article-download-source-tag,
    .qm-article-download-source-tab,
    .qm-article-download-source-empty,
    .qm-article-download-meta-row span,
    .qm-article-download-meta-row strong,
    .qm-article-inline-download__title,
    .qm-article-inline-download__subtitle,
    .qm-article-inline-download__meta-item span,
    .qm-article-inline-download__meta-item strong,
    .qm-article-inline-download__purchase-row > span,
    .qm-article-inline-download__purchase-row > strong,
    .qm-article-inline-download__price-item em,
    .qm-article-inline-download__price-item strong,
    .qm-article-inline-download__code-label,
    .qm-article-inline-download__code-value,
    .qm-side-flag,
    .qm-side-soft-chip
),
body.dark .qm-article-detail-refined :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    a,
    li,
    dt,
    dd,
    small,
    strong,
    em,
    b,
    u,
    mark,
    figcaption,
    blockquote,
    th,
    td,
    label,
    time,
    .qm-article-content-meta,
    .qm-article-breadcrumb-label,
    .qm-article-breadcrumb-item,
    .qm-article-breadcrumb-item a,
    .qm-article-stat-label,
    .qm-article-lead-update,
    .qm-article-lead-author-sub,
    .qm-article-side-kicker,
    .qm-article-side-desc,
    .qm-article-related-meta,
    .qm-tags-header,
    .qm-article-download-price-prefix,
    .qm-article-download-price-original,
    .qm-article-download-price-note,
    .qm-article-download-price-fact em,
    .qm-article-download-price-fact strong,
    .qm-article-download-tier-label,
    .qm-article-download-tier strong,
    .qm-article-download-service-item,
    .qm-article-download-notice span,
    .qm-article-download-source-name,
    .qm-article-download-source-tag,
    .qm-article-download-source-tab,
    .qm-article-download-source-empty,
    .qm-article-download-meta-row span,
    .qm-article-download-meta-row strong,
    .qm-article-inline-download__title,
    .qm-article-inline-download__subtitle,
    .qm-article-inline-download__meta-item span,
    .qm-article-inline-download__meta-item strong,
    .qm-article-inline-download__purchase-row > span,
    .qm-article-inline-download__purchase-row > strong,
    .qm-article-inline-download__price-item em,
    .qm-article-inline-download__price-item strong,
    .qm-article-inline-download__code-label,
    .qm-article-inline-download__code-value,
    .qm-side-flag,
    .qm-side-soft-chip
),
html.dark #comments.qm-comments-refined :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    a,
    li,
    small,
    strong,
    em,
    b,
    u,
    mark,
    label,
    time,
    .qm-comments-title,
    .qm-comments-count,
    .qm-comments-sort,
    .qm-sort-label,
    .qm-comment-author-name,
    .qm-comment-author-name a,
    .qm-comment-ip,
    .qm-comment-date,
    .qm-comment-text,
    .qm-comment-actions,
    .qm-comment-actions a,
    .qm-comment-admin-btn
),
body.dark #comments.qm-comments-refined :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    a,
    li,
    small,
    strong,
    em,
    b,
    u,
    mark,
    label,
    time,
    .qm-comments-title,
    .qm-comments-count,
    .qm-comments-sort,
    .qm-sort-label,
    .qm-comment-author-name,
    .qm-comment-author-name a,
    .qm-comment-ip,
    .qm-comment-date,
    .qm-comment-text,
    .qm-comment-actions,
    .qm-comment-actions a,
    .qm-comment-admin-btn
) {
    color: var(--qm-detail-unified-text) !important;
}

html.dark .qm-article-detail-refined :is(
    .qm-download-btn,
    .qm-download-btn-primary.qm-article-side-btn,
    .qm-download-btn-vip.qm-article-side-btn,
    .qm-article-download-status,
    .qm-article-download-count,
    .qm-article-inline-download__thumb-badge,
    .qm-article-inline-download__badge
),
body.dark .qm-article-detail-refined :is(
    .qm-download-btn,
    .qm-download-btn-primary.qm-article-side-btn,
    .qm-download-btn-vip.qm-article-side-btn,
    .qm-article-download-status,
    .qm-article-download-count,
    .qm-article-inline-download__thumb-badge,
    .qm-article-inline-download__badge
) {
    color: #ffffff !important;
}

/* Keep tag cloud chips identical to light mode */
html.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item,
body.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item {
    --qm-chip-hue: calc(10 + (var(--qm-chip-index, 1) * 16));
    background: hsl(var(--qm-chip-hue) 100% 97%) !important;
    color: hsl(var(--qm-chip-hue) 76% 34%) !important;
    border: 1px solid hsl(var(--qm-chip-hue) 90% 90%) !important;
}

html.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item:hover,
body.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item:hover {
    --qm-chip-hue: calc(10 + (var(--qm-chip-index, 1) * 16));
    background: hsl(var(--qm-chip-hue) 100% 97%) !important;
    color: hsl(var(--qm-chip-hue) 76% 34%) !important;
    border: 1px solid hsl(var(--qm-chip-hue) 90% 90%) !important;
}

html.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item--cat,
body.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item--cat {
    background: rgba(244, 47, 37, 0.08) !important;
    border: 1px solid rgba(244, 47, 37, 0.14) !important;
    color: var(--qm-article-accent) !important;
}

html.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item--cat:hover,
body.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud__item--cat:hover {
    background: rgba(244, 47, 37, 0.08) !important;
    border: 1px solid rgba(244, 47, 37, 0.14) !important;
    color: var(--qm-article-accent) !important;
}

html.dark .qm-article-detail-refined .qm-tag-item,
body.dark .qm-article-detail-refined .qm-tag-item {
    background: #fffaf8 !important;
    border: 1px solid rgba(244, 47, 37, 0.10) !important;
    color: #475569 !important;
}

html.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud-label,
body.dark .qm-article-detail-refined .qm-article-cloud-card .qm-article-cloud-label {
    color: var(--qm-article-accent) !important;
}

html.dark .qm-article-detail-refined .qm-article-reco-tabs,
body.dark .qm-article-detail-refined .qm-article-reco-tabs {
    border-bottom-color: var(--qm-detail-dark-border) !important;
}

html.dark .qm-article-detail-refined .qm-article-reco-tab,
body.dark .qm-article-detail-refined .qm-article-reco-tab {
    color: var(--qm-detail-unified-text) !important;
    opacity: 0.72;
}

html.dark .qm-article-detail-refined .qm-article-reco-tab:hover,
body.dark .qm-article-detail-refined .qm-article-reco-tab:hover {
    opacity: 1;
}

html.dark .qm-article-detail-refined .qm-article-reco-tab.is-active,
body.dark .qm-article-detail-refined .qm-article-reco-tab.is-active {
    color: #ff4f9a !important;
    opacity: 1;
}

html.dark .qm-article-detail-refined .qm-article-reco-thumb,
body.dark .qm-article-detail-refined .qm-article-reco-thumb {
    background: var(--qm-detail-dark-surface-alt) !important;
    color: rgba(148, 163, 184, 0.5) !important;
    box-shadow: inset 0 0 0 1px var(--qm-detail-dark-border) !important;
}

html.dark .qm-article-detail-refined .qm-article-reco-text strong,
html.dark .qm-article-detail-refined .qm-article-reco-meta,
html.dark .qm-article-detail-refined .qm-article-reco-meta span,
html.dark .qm-article-detail-refined .qm-article-reco-empty,
body.dark .qm-article-detail-refined .qm-article-reco-text strong,
body.dark .qm-article-detail-refined .qm-article-reco-meta,
body.dark .qm-article-detail-refined .qm-article-reco-meta span,
body.dark .qm-article-detail-refined .qm-article-reco-empty {
    color: var(--qm-detail-unified-text) !important;
}

html.dark .qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-title,
body.dark .qm-article-detail-refined .qm-article-reco-link.is-hot .qm-sidebar-hot-title {
    color: #f8fafc !important;
}

html.dark .qm-article-detail-refined .qm-article-reco-empty.is-error,
body.dark .qm-article-detail-refined .qm-article-reco-empty.is-error {
    color: #fb7185 !important;
}

html.dark .qm-article-detail-refined .qm-article-reco-loading__thumb,
html.dark .qm-article-detail-refined .qm-article-reco-loading__line,
body.dark .qm-article-detail-refined .qm-article-reco-loading__thumb,
body.dark .qm-article-detail-refined .qm-article-reco-loading__line {
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.86) 0%, rgba(71, 85, 105, 0.92) 50%, rgba(51, 65, 85, 0.86) 100%) !important;
}

/* Remove outer module borders on article detail pages */
.qm-article-detail-refined :is(
    .qm-article-lead-card,
    .qm-article-reading-card,
    .qm-article-end-card,
    .qm-article-side-card,
    .qm-article-rail-author-card,
    .qm-article-stat-card,
    .qm-article-download-hero,
    .qm-article-download-source-card,
    .qm-article-download-notice,
    .qm-article-download-code-item,
    .qm-article-download-source-empty
) {
    border: 0 !important;
}

#comments.qm-comments-refined :is(
    .qm-comment-editor-shell,
    .qm-comments-empty
) {
    border: 0 !important;
}

#comments.qm-comments-refined .comment-list > .qm-comment-item,
#comments.qm-comments-refined .comment-list > .qm-comment-item:last-child {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.qm-article-detail-refined :is(
    .qm-sidebar-author-avatar,
    .qm-sidebar-author-avatar img,
    .qm-article-rail-avatar,
    .qm-article-rail-avatar img
) {
    border-radius: 999px !important;
}
