/* ================================
   文章详情页增强样式 v1
   仅由 includes/article/content.html 引入
   ================================ */

.nq-article-main-section {
    padding-bottom: var(--nq-space-7);
}

/* ---------- 面包屑 ---------- */
.nq-breadcrumb-section {
    padding-top: 76px;
    padding-bottom: var(--nq-space-2);
}

.nq-breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
    font-size: 13px;
    color: var(--nq-text-muted);
}

.nq-breadcrumb-item {
    color: var(--nq-text-secondary);
}

.nq-breadcrumb-item:hover {
    color: var(--nq-primary);
}

.nq-breadcrumb-separator {
    margin: 0 2px;
    color: #cbd5e1;
}

.nq-breadcrumb-current {
    color: var(--nq-text-primary);
    font-weight: 600;
}

/* ---------- 正文卡片 ---------- */
.nq-article-content-main {
    position: relative;
    background: var(--nq-white);
    padding: 40px 48px 36px;
    border: 1px solid var(--nq-border-light);
    border-radius: var(--nq-radius-xl);
    box-shadow: 0 4px 24px rgba(23, 43, 77, 0.06);
    min-height: 0;
    overflow: hidden;
}

/* 阅读进度条 */
.nq-ad-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.nq-ad-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--nq-gradient-primary);
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
}

/* ---------- 文章头部 ---------- */
.nq-article-header {
    margin-bottom: var(--nq-space-4);
}

.nq-article-title {
    display: block;
    margin: 0 0 22px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.2px;
    color: #101828;
    word-break: break-word;
}

.nq-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding-bottom: var(--nq-space-4);
    border-bottom: 1px dashed var(--nq-border-light);
}

.nq-article-meta .nq-meta-item {
    gap: 6px;
    font-size: 13px;
    color: #667085;
}

.nq-article-meta .nq-meta-item:not(:first-child)::before {
    content: "";
    width: 1px;
    height: 12px;
    margin-right: 4px;
    background: var(--nq-border);
}

.nq-article-meta .nq-meta-category::before {
    display: none;
}

.nq-meta-category .nq-article-category {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border: 1px solid rgba(27, 92, 230, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(27, 92, 230, 0.08) 0%, rgba(74, 144, 226, 0.16) 100%);
    color: var(--nq-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.nq-article-meta .nq-meta-icon {
    color: #98a2b3;
}

.nq-article-meta .nq-meta-icon i {
    font-size: 15px;
}

.nq-article-meta .nq-meta-text {
    color: #667085;
}

/* ---------- 正文排版 ---------- */
.nq-article-content-main .editor-content-view {
    padding: 0;
    margin-top: var(--nq-space-4);
    font-size: 16px;
    line-height: 1.9;
    color: #344054;
}

.nq-article-content-main .editor-content-view p {
    margin: 0 0 18px;
}

.nq-article-content-main .editor-content-view p:last-child {
    margin-bottom: 0;
}

.nq-article-content-main .editor-content-view h1,
.nq-article-content-main .editor-content-view h2,
.nq-article-content-main .editor-content-view h3,
.nq-article-content-main .editor-content-view h4 {
    position: relative;
    color: #101828;
    line-height: 1.5;
    letter-spacing: 0.2px;
    scroll-margin-top: 90px;
}

.nq-article-content-main .editor-content-view h1 {
    margin: 40px 0 18px;
    font-size: 26px;
}

.nq-article-content-main .editor-content-view h2 {
    margin: 36px 0 16px;
    padding-left: 15px;
    font-size: 22px;
}

.nq-article-content-main .editor-content-view h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--nq-gradient-primary);
    transform: translateY(-50%);
}

.nq-article-content-main .editor-content-view h3 {
    margin: 28px 0 14px;
    padding-left: 13px;
    font-size: 19px;
}

.nq-article-content-main .editor-content-view h3::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: rgba(27, 92, 230, 0.45);
    transform: translateY(-50%);
}

.nq-article-content-main .editor-content-view h4 {
    margin: 22px 0 12px;
    font-size: 17px;
}

.nq-article-content-main .editor-content-view a {
    color: var(--nq-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 92, 230, 0.3);
    transition: border-color var(--nq-transition-fast);
}

.nq-article-content-main .editor-content-view a:hover {
    border-bottom-color: var(--nq-primary);
    text-decoration: none;
}

.nq-article-content-main .editor-content-view strong {
    color: #101828;
}

.nq-article-content-main .editor-content-view mark {
    padding: 1px 5px;
    border-radius: 4px;
    background: #fff3bf;
    color: #7a4d00;
}

.nq-article-content-main .editor-content-view img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
}

.nq-article-content-main .editor-content-view p > img:only-child,
.nq-article-content-main .editor-content-view > img {
    display: block;
    margin: 26px auto;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(23, 43, 77, 0.1);
}

.nq-article-content-main .editor-content-view blockquote {
    margin: 26px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--nq-primary);
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, rgba(27, 92, 230, 0.07) 0%, rgba(27, 92, 230, 0.015) 100%);
    color: #475467;
}

.nq-article-content-main .editor-content-view blockquote p:last-child {
    margin-bottom: 0;
}

.nq-article-content-main .editor-content-view code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f2f4f7;
    color: #b42318;
    font-size: 0.88em;
}

.nq-article-content-main .editor-content-view pre {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #1d2939;
    font-size: 14px;
    line-height: 1.65;
    box-shadow: inset 0 1px 2px rgba(23, 43, 77, 0.03);
}

.nq-article-content-main .editor-content-view pre code {
    padding: 0;
    background: none;
    color: inherit;
    font-size: inherit;
}

.nq-article-content-main .editor-content-view table {
    width: 100%;
    margin: 24px 0;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.nq-article-content-main .editor-content-view th {
    background: #f4f7fd;
    color: #101828;
    font-weight: 600;
}

.nq-article-content-main .editor-content-view th,
.nq-article-content-main .editor-content-view td {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #eaecf0;
}

.nq-article-content-main .editor-content-view tr:last-child td {
    border-bottom: none;
}

.nq-article-content-main .editor-content-view tbody tr:nth-child(even) {
    background: #fafbfc;
}

.nq-article-content-main .editor-content-view tbody tr:hover {
    background: #f4f7fd;
}

.nq-article-content-main .editor-content-view hr {
    height: 1px;
    margin: 32px 0;
    border: none;
    background: linear-gradient(90deg, transparent, var(--nq-border), transparent);
}

.nq-article-content-main .editor-content-view ul,
.nq-article-content-main .editor-content-view ol {
    margin: 0 0 18px;
    padding-left: 1.6em;
}

.nq-article-content-main .editor-content-view li {
    margin: 6px 0;
}

/* ---------- 标签 ---------- */
.nq-article-tags {
    margin-top: var(--nq-space-6);
    padding-top: var(--nq-space-4);
    border-top: 1px dashed var(--nq-border-light);
}

.nq-article-tags-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--nq-space-3);
    font-size: 15px;
    font-weight: 600;
    color: #475467;
}

.nq-article-tags-title::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--nq-gradient-primary);
}

.nq-article-tags-list {
    gap: 10px;
}

.nq-article-tag {
    padding: 5px 14px;
    border: 1px solid var(--nq-border-light);
    border-radius: 999px;
    background: #f8fafc;
    color: #667085;
    font-size: 13px;
    transition: all var(--nq-transition-fast);
}

.nq-article-tag:hover {
    border-color: var(--nq-primary);
    background: rgba(27, 92, 230, 0.06);
    color: var(--nq-primary);
    transform: translateY(-1px);
}

/* ---------- 分享区 ---------- */
.nq-article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--nq-space-3);
    margin-top: var(--nq-space-5);
    padding-top: var(--nq-space-4);
    border-top: 1px dashed var(--nq-border-light);
}

.nq-article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nq-share-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 2px;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
}

.nq-share-label i {
    font-size: 16px;
    color: var(--nq-primary);
}

.nq-share-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nq-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--nq-border-light);
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--nq-transition-fast);
}

.nq-share-btn i {
    font-size: 16px;
    line-height: 1;
}

.nq-share-btn:hover {
    background: var(--nq-primary);
    border-color: var(--nq-primary);
    color: var(--nq-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 92, 230, 0.25);
}

.nq-share-btn:active {
    transform: translateY(0);
}

.nq-share-btn:focus-visible,
.nq-share-modal button:focus-visible {
    outline: 2px solid var(--nq-primary);
    outline-offset: 2px;
}

.nq-share-btn[data-share="wechat"]:hover {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.28);
}

.nq-share-btn[data-share="weibo"]:hover {
    background: #e6162d;
    border-color: #e6162d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 22, 45, 0.25);
}

.nq-share-btn[data-share="qq"]:hover {
    background: #12b7f5;
    border-color: #12b7f5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.28);
}

.nq-share-btn[data-share="copy"]:hover {
    background: var(--nq-primary);
    border-color: var(--nq-primary);
    color: #fff;
}

/* ---------- 微信二维码弹层 ---------- */
.nq-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nq-share-modal.nq-share-modal-open {
    opacity: 1;
    visibility: visible;
}

.nq-share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.55);
    backdrop-filter: blur(2px);
}

.nq-share-modal-panel {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 28px 24px 24px;
    border-radius: 16px;
    background: var(--nq-white);
    box-shadow: 0 24px 64px rgba(16, 24, 40, 0.28);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.nq-share-modal-open .nq-share-modal-panel {
    transform: translateY(0) scale(1);
}

.nq-share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f2f4f7;
    color: #667085;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--nq-transition-fast);
}

.nq-share-modal-close:hover {
    background: #eaecf0;
    color: #101828;
}

.nq-share-modal-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: #101828;
}

.nq-share-modal-sub {
    margin: 0 0 18px;
    font-size: 12px;
    color: #98a2b3;
}

.nq-share-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    padding: 10px;
    border: 1px solid var(--nq-border-light);
    border-radius: 12px;
    background: var(--nq-white);
    box-sizing: content-box;
}

.nq-share-qr canvas,
.nq-share-qr img {
    max-width: 100%;
    height: auto;
}

.nq-share-qr canvas {
    display: block;
    margin: 0 auto;
}

.nq-share-qr-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #98a2b3;
    font-size: 13px;
}

.nq-share-modal-url {
    margin-bottom: 16px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.5;
    word-break: break-all;
}

.nq-share-modal-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: var(--nq-gradient-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: opacity var(--nq-transition-fast);
}

.nq-share-modal-copy:hover {
    opacity: 0.9;
}

/* ---------- 轻提示 ---------- */
.nq-ad-toast {
    position: fixed;
    left: 50%;
    bottom: 56px;
    z-index: 1200;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.9);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.nq-ad-toast.nq-ad-toast-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- 图片灯箱 ---------- */
.nq-ad-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(8, 12, 20, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    cursor: zoom-out;
}

.nq-ad-lightbox.nq-ad-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.nq-ad-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.97);
    transition: transform 0.2s ease;
}

.nq-ad-lightbox-open img {
    transform: scale(1);
}

/* ---------- 上一篇 / 下一篇 ---------- */
.nq-article-next {
    display: flex;
    gap: var(--nq-space-3);
    margin-top: var(--nq-space-4);
    padding-top: var(--nq-space-4);
    border-top: 1px dashed var(--nq-border-light);
}

.nq-next-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 18px;
    border: 1px solid var(--nq-border-light);
    border-radius: 12px;
    background: #fbfcfe;
    color: inherit;
    text-decoration: none;
    transition: all var(--nq-transition-fast);
}

.nq-next-link:hover {
    border-color: rgba(27, 92, 230, 0.35);
    background: #f4f8ff;
    box-shadow: 0 6px 18px rgba(27, 92, 230, 0.1);
    transform: translateY(-2px);
}

.nq-next-direction {
    gap: 6px;
    margin-bottom: 8px;
    color: #98a2b3;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.nq-next-direction i {
    font-size: 15px;
    transition: transform var(--nq-transition-fast);
}

.nq-prev-article .nq-next-link:hover .nq-next-direction i {
    transform: translateX(-3px);
}

.nq-next-article .nq-next-link:hover .nq-next-direction i {
    transform: translateX(3px);
}

.nq-next-title {
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.nq-next-link:hover .nq-next-title {
    color: var(--nq-primary);
}

.nq-next-link.nq-next-disabled {
    background: #fafbfc;
    opacity: 0.65;
}

.nq-next-link.nq-next-disabled .nq-next-title {
    color: #98a2b3;
}

/* ---------- 侧栏 ---------- */
.nq-article-categories,
.nq-article-toc-widget {
    border: 1px solid var(--nq-border-light);
    border-radius: var(--nq-radius-xl);
    box-shadow: 0 2px 12px rgba(23, 43, 77, 0.04);
    overflow: hidden;
    background: var(--nq-white);
}

.nq-categories-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nq-border-light);
    background: linear-gradient(135deg, #f7f9fd 0%, #ffffff 100%);
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.nq-categories-title::before {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: var(--nq-gradient-primary);
}

.nq-category-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f2f4f7;
}

.nq-category-item:last-child {
    border-bottom: none;
}

.nq-category-item:hover {
    background: #f4f8ff;
}

.nq-category-info {
    gap: 10px;
}

.nq-category-info i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(27, 92, 230, 0.08);
    font-size: 15px;
    color: var(--nq-primary);
    transition: all var(--nq-transition-fast);
}

.nq-category-item:hover .nq-category-info i {
    background: var(--nq-primary);
    color: #fff;
}

.nq-category-name {
    font-size: 14px;
    font-weight: 500;
    color: #344054;
}

.nq-category-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #98a2b3;
    font-size: 12px;
}

.nq-category-item:hover .nq-category-count {
    background: rgba(27, 92, 230, 0.1);
    color: var(--nq-primary);
}

.nq-article-toc-widget {
    top: 84px !important;
}

/* 侧栏：文章中心入口卡片 */
.nq-side-entry {
    position: relative;
    padding: 22px 20px;
    border: 1px solid rgba(27, 92, 230, 0.16);
    border-radius: var(--nq-radius-xl);
    background: linear-gradient(160deg, #f3f7ff 0%, #ffffff 65%);
    box-shadow: 0 2px 12px rgba(23, 43, 77, 0.04);
    overflow: hidden;
}

.nq-side-entry::after {
    content: "";
    position: absolute;
    top: -36px;
    right: -36px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(27, 92, 230, 0.08);
}

.nq-side-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--nq-gradient-primary);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 6px 16px rgba(27, 92, 230, 0.24);
}

.nq-side-entry-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.nq-side-entry-text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #667085;
}

.nq-side-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--nq-gradient-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--nq-transition-fast);
}

.nq-side-entry-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(27, 92, 230, 0.28);
}

.nq-side-entry-btn i {
    font-size: 15px;
    transition: transform var(--nq-transition-fast);
}

.nq-side-entry-btn:hover i {
    transform: translateX(3px);
}

/* 正文没有 h2/h3 标题时，目录卡片整体隐藏（由 article-detail.js 加类） */
.nq-article-toc-widget.nq-toc-hidden {
    display: none !important;
}

.nq-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nq-border-light);
    background: linear-gradient(135deg, #f7f9fd 0%, #ffffff 100%);
}

.nq-toc-header::before {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: var(--nq-gradient-primary);
}

.nq-toc-title {
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.nq-toc-container {
    max-height: 420px;
    padding: 6px 0 10px;
}

.nq-toc-item {
    padding: 7px 20px;
    border-left: 2px solid transparent;
    transition: all var(--nq-transition-fast);
}

.nq-toc-item-text {
    font-size: 13px;
    line-height: 1.55;
    color: #667085;
}

.nq-toc-item:hover {
    background: #f8fafc;
    border-left-color: rgba(27, 92, 230, 0.35);
}

.nq-toc-item.nq-toc-active {
    margin-left: 0;
    border-left: 2px solid var(--nq-primary);
    background: rgba(27, 92, 230, 0.05);
}

.nq-toc-item.nq-toc-active .nq-toc-item-text {
    color: var(--nq-primary);
    font-weight: 600;
}

/* ---------- 文章不存在 ---------- */
.nq-article-not-found {
    padding: var(--nq-space-8) var(--nq-space-5);
    border: 1px solid var(--nq-border-light);
    border-radius: var(--nq-radius-xl);
    background: var(--nq-white);
    box-shadow: 0 4px 24px rgba(23, 43, 77, 0.06);
}

.nq-not-found-icon {
    color: #cbd5e1;
}

/* ================================
   响应式
   ================================ */
@media (max-width: 1200px) {
    .nq-article-content-main {
        padding: 32px 32px 28px;
    }
}

@media (max-width: 991px) {
    /* 平板及以下改为单栏，保证正文可读宽度 */
    .nq-article-main-grid {
        grid-template-columns: 1fr;
    }

    .nq-article-sidebar {
        display: none;
    }

    .nq-article-content-main {
        padding: 30px 28px 26px;
    }

    .nq-article-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .nq-breadcrumb-section {
        padding-top: 72px;
    }

    .nq-article-content-main {
        padding: 22px 18px 20px;
        margin: 0;
        border-radius: 12px;
    }

    .nq-article-title {
        margin-bottom: 16px;
        font-size: 22px;
        line-height: 1.5;
    }

    .nq-article-meta {
        gap: 8px 12px;
        padding-bottom: 16px;
    }

    .nq-article-meta .nq-meta-item {
        font-size: 12px;
    }

    .nq-article-meta .nq-meta-item:not(:first-child)::before {
        margin-right: 0;
    }

    .nq-article-content-main .editor-content-view {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.8;
    }

    .nq-article-content-main .editor-content-view h1 {
        font-size: 22px;
    }

    .nq-article-content-main .editor-content-view h2 {
        margin-top: 28px;
        font-size: 19px;
    }

    .nq-article-content-main .editor-content-view h3 {
        font-size: 17px;
    }

    .nq-article-content-main .editor-content-view p > img:only-child,
    .nq-article-content-main .editor-content-view > img {
        width: 100%;
        margin: 18px auto;
    }

    .nq-article-content-main .editor-content-view pre {
        padding: 14px;
        font-size: 13px;
    }

    .nq-article-content-main .editor-content-view th,
    .nq-article-content-main .editor-content-view td {
        padding: 10px 12px;
    }

    .nq-article-tags {
        margin-top: var(--nq-space-5);
    }

    .nq-article-actions {
        margin-top: var(--nq-space-4);
        gap: 12px;
    }

    .nq-share-btn {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .nq-article-next {
        flex-direction: column;
    }

    .nq-next-article .nq-next-link {
        text-align: left;
    }

    .nq-next-article .nq-next-direction {
        flex-direction: row;
    }

    .nq-ad-lightbox {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .nq-share-text {
        display: none;
    }

    .nq-share-btn {
        width: 36px;
        height: 36px;
        padding: 0;
    }

    .nq-share-btn i {
        font-size: 17px;
    }

    .nq-share-label {
        font-size: 13px;
    }

    .nq-share-qr {
        width: 180px;
        height: 180px;
    }
}

/* ================================
   桌面端增强
   ================================ */
@media (min-width: 1200px) {
    .nq-article-title {
        font-size: 34px;
    }

    .nq-article-content-main .editor-content-view {
        font-size: 16.5px;
    }

    .nq-share-btn {
        height: 38px;
        padding: 0 16px;
        font-size: 13.5px;
    }

    .nq-next-link {
        padding: 18px 20px;
    }
}

@media (min-width: 1440px) {
    .nq-article-content-main {
        padding: 44px 56px 40px;
    }

    .nq-article-title {
        font-size: 36px;
        line-height: 1.42;
    }

    .nq-article-content-main .editor-content-view {
        font-size: 17px;
        line-height: 1.95;
    }

    .nq-article-meta .nq-meta-item {
        font-size: 13.5px;
    }

    .nq-side-entry {
        padding: 24px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nq-share-btn,
    .nq-next-link,
    .nq-article-tag,
    .nq-ad-toast,
    .nq-share-modal,
    .nq-ad-lightbox {
        transition: none !important;
    }
}
