

html {
    scroll-behavior: smooth;
}

.single-article-page {
    background: #fff;
}

.article-main-title {
    line-height: 1.8;
}

.article-content {
    font-size: 1.05rem;
    line-height: 2.15;
    color: #374151;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content > *:last-child {
    margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #111827;
    font-weight: 800;
    line-height: 1.8;
    scroll-margin-top: 200px;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-content h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

.article-content h4 {
    font-size: 1.12rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 2.2;
    color: #374151;
}

.article-content a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-word;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content strong {
    color: #111827;
    font-weight: 700;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0;
    padding-right: 1.4rem;
    line-height: 2.1;
}

.article-content ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.article-content ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

.article-content li > ul,
.article-content li > ol {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-right: 4px solid #3b82f6;
    border-radius: 0.75rem;
    color: #334155;
}

.article-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.75rem auto;
    border-radius: 0.9rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figure img {
    margin-bottom: 0.75rem;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.9;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.96rem;
    overflow: hidden;
    border-radius: 0.9rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.article-content table thead {
    background: #f3f4f6;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.9rem 1rem;
    text-align: right;
    vertical-align: top;
}

.article-content table th {
    color: #111827;
    font-weight: 700;
}

.article-content table td {
    color: #374151;
    background: #fff;
}

.article-content code {
    background: #f3f4f6;
    color: #be123c;
    padding: 0.2rem 0.45rem;
    border-radius: 0.45rem;
    font-size: 0.9em;
    direction: ltr;
    unicode-bidi: embed;
}

.article-content pre {
    direction: ltr;
    text-align: left;
    background: #0f172a;
    color: #e5e7eb;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    overflow-x: auto;
    margin: 1.75rem 0;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.article-content iframe,
.article-content video {
    width: 100%;
    max-width: 100%;
    border-radius: 0.9rem;
    margin: 1.75rem 0;
}

.article-content .wp-block-image,
.article-content .wp-block-table,
.article-content .wp-block-embed,
.article-content .wp-block-columns {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

.article-content .wp-caption {
    max-width: 100%;
}

.article-content .aligncenter {
    margin-right: auto;
    margin-left: auto;
}

.article-content .alignleft {
    float: left;
    margin-right: 0;
    margin-left: 1rem;
}

.article-content .alignright {
    float: right;
    margin-left: 0;
    margin-right: 1rem;
}

.article-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.8;
}

.article-faq-item summary {
    list-style: none;
}

.article-faq-item summary::-webkit-details-marker {
    display: none;
}

.article-toc-title {
    font-weight: 800;
    color: #374151;
    margin-bottom: 0.85rem;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.toc-item {
    list-style: none;
}

.toc-link {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 0.6rem;
    color: #6b7280;
    line-height: 1.9;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: #111827;
    background: #f9fafb;
}

.toc-link.active {
    color: var(--colorPrimary);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.04);
}

.toc-level-3 .toc-link {
    padding-right: 1.5rem;
    font-size: 0.92rem;
}

.article-author-box,
.article-faq,
.article-toc-box,
.article-toc-mobile {
    background: #fff;
}

@media (max-width: 1024px) {
    .article-content {
        font-size: 1rem;
        line-height: 2.05;
    }

    .article-content h2 {
        font-size: 1.45rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        scroll-margin-top: 170px;
    }

    .article-content table th,
    .article-content table td {
        padding: 0.75rem 0.85rem;
        font-size: 0.92rem;
    }
}
