/* ===== Article Detail Page ===== */

/* Container */
.nuoang-article-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

/* ===== Breadcrumb ===== */
.nuoang-article-breadcrumb {
    margin-top: 64px;
    margin-bottom: 0;
}

.nuoang-breadcrumb-inner {
    display: flex;
    align-items: center;
    padding: 14px 0;
}

.nuoang-article-breadcrumb a {
    font-size: 14px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nuoang-article-breadcrumb a:hover {
    color: var(--nuoang-primary-color, #3269ff);
}

.nuoang-breadcrumb-sep {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0 8px;
}

.nuoang-breadcrumb-current {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 700;
}

/* ===== Article Main ===== */
.nuoang-article-main {
    padding: 0 0 60px;
    background: #F7F8FA;
}

/* Article layout */
.nuoang-article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.nuoang-article-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Article content */
.nuoang-article-content {
    background: #fff;
    border-radius: 6px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.nuoang-article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 0 0 16px 0;
}

.nuoang-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #F0F1F3;
}

.nuoang-article-meta-item {
    font-size: 14px;
    color: #6B7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nuoang-article-meta-item i {
    font-size: 14px;
}

.nuoang-article-cover {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 32px;
}

.nuoang-article-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article body */
.nuoang-article-body {
    font-size: 16px;
    color: #374151;
    line-height: 1.75;
    word-wrap: break-word;
}

.nuoang-article-body p {
    margin: 0 0 20px 0;
}

.nuoang-article-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 36px 0 18px;
    padding-left: 12px;
    border-left: 4px solid var(--nuoang-primary-color, #3269ff);
    line-height: 1.4;
}

.nuoang-article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 28px 0 14px;
    line-height: 1.5;
}

.nuoang-article-body a {
    color: var(--nuoang-primary-color, #3269ff);
    text-decoration: none;
    transition: opacity 0.2s;
}
.nuoang-article-body a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.nuoang-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0 20px;
    display: block;
}

.nuoang-article-body figure {
    margin: 8px 0 20px;
}
.nuoang-article-body figure img {
    margin: 0;
}
.nuoang-article-body figcaption {
    font-size: 14px;
    color: #9CA3AF;
    text-align: center;
    margin-top: 8px;
}

.nuoang-article-body ul,
.nuoang-article-body ol {
    padding-left: 24px;
    margin: 0 0 20px 0;
}

.nuoang-article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.nuoang-article-body strong {
    font-weight: 600;
    color: #111827;
}

.nuoang-article-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f2f6fa;
    border-radius: 6px;
    border-left: 4px solid var(--nuoang-primary-color, #3269ff);
}

.nuoang-article-body blockquote p {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

.nuoang-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 15px;
}
.nuoang-article-body table th,
.nuoang-article-body table td {
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    text-align: left;
}
.nuoang-article-body table th {
    background: #F9FAFB;
    font-weight: 600;
    color: #111827;
}

.nuoang-article-body hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 28px 0;
}

.nuoang-article-body code {
    font-size: 14px;
    font-family: Consolas, Monaco, monospace;
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #DC2626;
}

.nuoang-article-body pre {
    background: #1F2937;
    color: #F9FAFB;
    padding: 18px 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
}
.nuoang-article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Tags */
.nuoang-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0;
    margin-top: 8px;
    border-top: 1px solid #F0F1F3;
}

.nuoang-article-tags-label {
    font-size: 14px;
    color: #6B7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.nuoang-article-tags a {
    font-size: 13px;
    color: #4B5563;
    background: #F3F4F6;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nuoang-article-tags a:hover {
    background: var(--nuoang-primary-color, #3269ff);
    color: #fff;
}

/* Share */
.nuoang-article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid #F0F1F3;
}

.nuoang-article-share-label {
    font-size: 14px;
    color: #6B7280;
    margin-right: 4px;
}

/* WeChat share modal */
.nuoang-wechat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nuoang-wechat-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}
.nuoang-wechat-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px 28px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.nuoang-wechat-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 20px;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.nuoang-wechat-modal-close:hover {
    color: #1a1a1a;
}
.nuoang-wechat-modal-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}
.nuoang-wechat-modal-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.nuoang-wechat-modal-qr img {
    border-radius: 8px;
    display: block;
}
.nuoang-wechat-modal-box p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.nuoang-article-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.nuoang-article-share-btn:hover {
    background: var(--nuoang-primary-color, #3269ff);
    color: #fff;
}

/* ===== Sidebar ===== */
.nuoang-article-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nuoang-article-widget {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.nuoang-article-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nuoang-primary-color, #3269ff);
}

/* Related articles */
.nuoang-article-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nuoang-article-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nuoang-article-related-item:hover .nuoang-article-related-title {
    color: var(--nuoang-primary-color, #3269ff);
}

.nuoang-article-related-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.nuoang-article-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nuoang-article-related-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nuoang-article-related-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nuoang-article-related-date {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Contact card */
.nuoang-article-contact-card {
    background: linear-gradient(135deg, var(--nuoang-primary-color, #3269ff) 0%, #3a6fd0 100%);
    border: none;
    text-align: center;
    padding: 28px 24px;
}

.nuoang-article-contact-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

.nuoang-article-contact-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.nuoang-article-contact-btn {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nuoang-primary-color, #3269ff);
    background: #fff;
    text-decoration: none;
    transition: box-shadow 0.25s ease;
    margin-bottom: 20px;
}

.nuoang-article-contact-btn:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nuoang-article-contact-phone {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nuoang-article-contact-phone-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.nuoang-article-contact-phone-num {
    font-family: 'DIN Alternate', 'DIN', 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

/* More categories */
.nuoang-article-more-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.nuoang-article-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.nuoang-article-cat-item:hover {
    background: #F7F8FA;
}

.nuoang-article-cat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nuoang-article-cat-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nuoang-article-cat-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
}

.nuoang-article-cat-item:hover .nuoang-article-cat-name {
    color: var(--nuoang-primary-color, #3269ff);
}

/* ===== Prev / Next ===== */
.nuoang-article-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nuoang-article-nav-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px 24px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.nuoang-article-nav-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nuoang-article-nav-card.prev {
    flex-direction: row;
}

.nuoang-article-nav-card.next {
    flex-direction: row-reverse;
}

.nuoang-article-nav-direction {
    font-size: 13px;
    color: #9CA3AF;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nuoang-article-nav-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nuoang-article-nav-card:hover .nuoang-article-nav-title {
    color: var(--nuoang-primary-color, #3269ff);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nuoang-article-container {
        display: flex;
        flex-direction: column;
    }
    .nuoang-article-breadcrumb {
        order: 0;
    }
    .nuoang-article-layout {
        display: contents;
    }
    .nuoang-article-left-col {
        order: 1;
        gap: 16px;
    }
    .nuoang-article-sidebar {
        position: static;
        gap: 20px;
        flex-direction: column;
        margin-top: 20px;
        order: 3;
    }
    .nuoang-article-widget {
        flex: 1;
    }
    .nuoang-article-nav-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .nuoang-article-nav-card.next {
        text-align: left;
    }
    .nuoang-article-nav-card.next .nuoang-article-nav-direction {
        justify-content: flex-start;
    }

    .nuoang-article-content {
        padding: 24px 20px;
    }

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

    .nuoang-article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nuoang-article-body {
        font-size: 15px;
        line-height: 1.7;
    }

    .nuoang-article-body h2 {
        font-size: 18px;
        margin: 28px 0 14px;
    }

    .nuoang-article-body h3 {
        font-size: 16px;
        margin: 22px 0 12px;
    }

    .nuoang-article-body p {
        margin-bottom: 16px;
    }

    .nuoang-article-body blockquote {
        padding: 16px 18px;
        margin: 20px 0;
    }

    .nuoang-article-breadcrumb {
        margin-top: 56px;
    }

    .nuoang-breadcrumb-inner {
        white-space: nowrap;
        overflow: hidden;
    }

    .nuoang-article-breadcrumb a,
    .nuoang-breadcrumb-sep {
        flex-shrink: 0;
    }

    .nuoang-breadcrumb-current {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .nuoang-article-main .nuoang-article-container {
        padding-top: 16px;
    }
}
