        /* ── Article page global fix ── */
        html { overflow-x: hidden; }
        body { overflow-x: hidden; position: relative; }

        /* ── Article-specific styles ── */
        .article-hero {
            padding-top: calc(var(--header-height) + 48px);
            padding-bottom: 40px;
            position: relative;
        }
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
            font-size: 0.84rem;
            color: var(--text-muted);
        }
        .breadcrumb a { color: var(--text-muted); transition: color .2s; }
        .breadcrumb a:hover { color: #60a5fa; }
        .breadcrumb-sep { opacity: .4; }

        .article-meta-bar {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .art-category {
            background: rgba(59,130,246,.1);
            color: #93c5fd;
            border: 1px solid rgba(59,130,246,.2);
            padding: 4px 14px;
            border-radius: 20px;
            font-size: .78rem;
            font-weight: 700;
        }
        .art-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: .8rem;
            color: var(--text-muted);
        }
        .art-meta-item svg { opacity: .6; }

        .article-title {
            font-size: clamp(1.6rem, 4vw, 2.6rem);
            font-weight: 800;
            color: #f1f5f9;
            line-height: 1.3;
            margin-bottom: 16px;
        }
        .article-excerpt-hero {
            font-size: 1.05rem;
            color: var(--text-muted);
            line-height: 1.7;
            max-width: 720px;
            margin-bottom: 28px;
        }
        .article-cover {
            width: 100%;
            max-height: 480px;
            object-fit: cover;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,.06);
            margin-bottom: 40px;
            box-shadow: 0 20px 50px rgba(0,0,0,.4);
        }

        /* Article content layout */
        .article-layout {
            display: grid;
            grid-template-columns: 1fr 280px;
            gap: 40px;
            align-items: start;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px 80px;
        }
        .article-layout > article {
            min-width: 0;
            overflow: hidden;
        }

        /* Quill content rendering */
        .article-body {
            background: rgba(10,18,40,.7);
            border: 1px solid rgba(59,130,246,.1);
            border-radius: 20px;
            padding: 40px 44px;
        }
        .article-content img { max-width: 100% !important; height: auto !important; }
        .article-content pre { overflow-x: auto; }
        .article-content table { display: block; overflow-x: auto; max-width: 100%; }
        .article-content {
            font-size: 1rem;
            line-height: 1.9;
            color: #cbd5e1;
            direction: rtl;
        }
        .article-content h1,.article-content h2,.article-content h3,.article-content h4 {
            color: #f1f5f9;
            font-weight: 800;
            margin: 32px 0 14px;
            line-height: 1.3;
        }
        .article-content h1 { font-size: 1.7rem; }
        .article-content h2 { font-size: 1.4rem; border-bottom: 1px solid rgba(59,130,246,.15); padding-bottom: 10px; }
        .article-content h3 { font-size: 1.15rem; }
        .article-content p { margin-bottom: 18px; }
        .article-content a { color: #60a5fa; text-decoration: underline; transition: color .2s; }
        .article-content a:hover { color: #22d3ee; }
        .article-content strong { color: #f1f5f9; font-weight: 700; }
        .article-content em { color: #e2e8f0; font-style: italic; }
        .article-content ul,.article-content ol { margin: 16px 0 18px 0; padding-right: 24px; }
        .article-content li { margin-bottom: 8px; color: #cbd5e1; }
        .article-content blockquote {
            border-right: 3px solid #3b82f6;
            margin: 24px 0;
            padding: 14px 20px;
            background: rgba(59,130,246,.06);
            border-radius: 0 12px 12px 0;
            color: #93c5fd;
            font-style: italic;
        }
        .article-content pre,.article-content code {
            background: rgba(0,0,0,.4);
            border: 1px solid rgba(59,130,246,.15);
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: .88rem;
            color: #22d3ee;
        }
        .article-content pre { padding: 16px 20px; overflow-x: auto; margin: 20px 0; }
        .article-content code { padding: 2px 7px; }
        .article-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
        .article-content hr { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 32px 0; }

        /* Tags at bottom */
        .article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); }
        .tag-pill { background: rgba(139,92,246,.1); color: #a78bfa; border: 1px solid rgba(139,92,246,.2); padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; }

        /* Share bar */
        .share-bar { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); }
        .share-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
        .share-btn { padding: 6px 16px; border-radius: 9px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid; }
        .share-twitter { background: rgba(29,161,242,.1); border-color: rgba(29,161,242,.25); color: #38bdf8; }
        .share-twitter:hover { background: rgba(29,161,242,.2); }
        .share-copy { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: var(--text-muted); }
        .share-copy:hover { background: rgba(255,255,255,.1); color: var(--text-main); }

        /* Sidebar */
        .article-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-height) + 20px); }
        .sidebar-card { background: rgba(10,18,40,.85); border: 1px solid rgba(59,130,246,.12); border-radius: 16px; padding: 22px; }
        .sidebar-card-title { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }

        /* Author card */
        .author-row { display: flex; align-items: center; gap: 12px; }
        .author-avatar { width: 44px; height: 44px; background: linear-gradient(135deg,#3b82f6,#8b5cf6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; color: #fff; flex-shrink: 0; }
        .author-name { font-size: .9rem; font-weight: 700; color: #f1f5f9; }
        .author-role { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

        /* TOC */
        .toc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
        .toc-item a { font-size: .82rem; color: var(--text-muted); text-decoration: none; display: block; padding: 5px 10px; border-radius: 7px; border-right: 2px solid transparent; transition: all .2s; }
        .toc-item a:hover { color: #93c5fd; border-right-color: #3b82f6; background: rgba(59,130,246,.05); }

        /* Related */
        .related-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
        .related-item:last-child { border-bottom: none; }
        .related-cover { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,.07); }
        .related-cover-ph { width: 56px; height: 42px; border-radius: 8px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.12); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
        .related-title { font-size: .82rem; font-weight: 600; color: #e2e8f0; line-height: 1.35; text-decoration: none; display: block; transition: color .2s; }
        .related-title:hover { color: #60a5fa; }
        .related-date { font-size: .72rem; color: var(--text-muted); margin-top: 3px; }

        /* Progress bar */
        #readProgress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #3b82f6, #06b6d4); transform-origin: left; transform: scaleX(0); z-index: 9999; transition: transform .1s linear; }

        @media (max-width: 900px) {
            .article-layout { grid-template-columns: 1fr; padding: 0 16px 60px; }
            .article-sidebar { position: static; }
            .article-body { padding: 24px 20px; }
            .article-title { font-size: 1.5rem; }
        }
        @media (max-width: 640px) {
            .article-layout { padding: 0 12px 48px; gap: 24px; }
            .article-body { padding: 18px 14px; border-radius: 14px; }
            .article-title { font-size: 1.25rem; line-height: 1.4; }
            .article-excerpt-hero { font-size: .92rem; max-width: 100%; }
            .article-cover { border-radius: 12px; margin-bottom: 24px; max-width: 100%; }
            .article-meta-bar { gap: 10px; flex-wrap: wrap; }
            .art-meta-item { font-size: .74rem; }
            .breadcrumb { font-size: .76rem; flex-wrap: wrap; }
            .article-content { font-size: .93rem; line-height: 1.8; word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
            .article-content h1 { font-size: 1.3rem; }
            .article-content h2 { font-size: 1.1rem; }
            .article-content h3 { font-size: 1rem; }
            .article-content p, .article-content li { word-break: break-word; }
            .article-content pre { overflow-x: auto; font-size: .8rem; white-space: pre-wrap; max-width: 100%; }
            .article-content table { display: block; overflow-x: auto; max-width: 100%; }
            .article-content img { max-width: 100% !important; height: auto !important; display: block; }
            .share-bar { flex-wrap: wrap; gap: 8px; }
            .share-btn { font-size: .76rem; padding: 6px 12px; }
            .sidebar-card { padding: 16px 14px; }
            .related-item { gap: 10px; }
        }
