.article-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
    max-width: 24ch;
}

.article-hero-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 68ch;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.ahm-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.6;
}
.ahm-item svg {
    color: var(--pink);
    flex-shrink: 0;
}

.ahm-author {
    padding: 6px 16px 6px 6px;
    gap: 10px;
}
[dir="rtl"] .ahm-author {
    padding: 6px 6px 6px 16px;
}
.ahm-author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--line-strong);
    flex-shrink: 0;
    background: var(--bg-2);
    display: block;
}

.article-featured {
    padding: 34px 0 12px;
}

.article-featured-wrap {
    position: relative;
    aspect-ratio: 21 / 10;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(var(--pink-rgb), 0.04);
}
.article-featured-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-featured-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

.article-content-section {
    padding: 46px 0 30px;
}

.article-content {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 2;
    word-break: break-word;
}

.article-content > *:first-child {
    margin-top: 0;
}
.article-content > *:last-child {
    margin-bottom: 0;
}

.article-content p {
    margin: 0 0 1.4em;
    color: #d9d9e3;
    line-height: 1.95;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
    margin: 1.6em 0 0.7em;
    letter-spacing: -0.01em;
}
.article-content h1 {
    font-size: 2rem;
}
.article-content h2 {
    font-size: 1.65rem;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--line);
}
.article-content h3 {
    font-size: 1.35rem;
}
.article-content h4 {
    font-size: 1.15rem;
}
.article-content h5 {
    font-size: 1.02rem;
}
.article-content h6 {
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content a {
    color: var(--pink);
    text-decoration: none;
    border-bottom: 1px dashed rgba(var(--pink-rgb), 0.5);
    transition: color 0.2s, border-color 0.2s;
}
.article-content a:hover {
    color: var(--pink-hover);
    border-bottom-color: var(--pink);
    border-bottom-style: solid;
}

.article-content strong,
.article-content b {
    color: var(--text);
    font-weight: 800;
}

.article-content em,
.article-content i {
    color: #e4e4ee;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    margin: 1.6em auto;
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.7);
}

.article-content figure {
    margin: 1.8em 0;
}
.article-content figure img {
    margin: 0 auto;
}
.article-content figcaption {
    text-align: center;
    color: var(--faint);
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.4em;
    padding-inline-start: 1.6em;
}
.article-content li {
    margin-bottom: 0.6em;
    color: #d9d9e3;
    line-height: 1.9;
}
.article-content li::marker {
    color: var(--pink);
    font-weight: 800;
}
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.6em;
    margin-bottom: 0.6em;
}

.article-content blockquote {
    margin: 1.6em 0;
    padding: 18px 22px 18px 26px;
    background: linear-gradient(
        135deg,
        rgba(var(--pink-rgb), 0.06),
        rgba(var(--pink-rgb), 0.02)
    );
    border-inline-start: 4px solid var(--pink);
    border-radius: 0 14px 14px 0;
    color: #e4e4ee;
    font-style: italic;
    line-height: 1.9;
}
[dir="rtl"] .article-content blockquote {
    border-radius: 14px 0 0 14px;
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--panel-2);
    color: var(--pink);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    word-break: break-word;
}

.article-content pre {
    margin: 1.6em 0;
    padding: 18px 20px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
    line-height: 1.7;
    font-size: 0.9rem;
    -webkit-overflow-scrolling: touch;
}
.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e4e4ee;
    font-size: inherit;
}

.article-content hr {
    margin: 2.4em auto;
    border: none;
    height: 1px;
    max-width: 200px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--line-strong),
        transparent
    );
}

.article-content table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    font-size: 0.94rem;
}
.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: start;
    border-bottom: 1px solid var(--line);
}
.article-content th {
    background: var(--panel-2);
    color: var(--text);
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.article-content tr:last-child td {
    border-bottom: none;
}
.article-content tr:hover td {
    background: rgba(var(--pink-rgb), 0.03);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 820px;
    margin: 46px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.article-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    margin-inline-start: auto;
    margin-inline-end: 6px;
}
.article-tags-label svg {
    color: var(--pink);
    flex-shrink: 0;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, background 0.25s,
        transform 0.25s, box-shadow 0.25s;
}
.article-tag:hover {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(var(--pink-rgb), 0.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -14px rgba(var(--pink-rgb), 0.5);
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: color 0.25s, border-color 0.25s, background 0.25s,
        transform 0.25s, box-shadow 0.25s;
}
.article-back svg {
    color: var(--pink);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.article-back:hover {
    border-color: var(--pink);
    background: rgba(var(--pink-rgb), 0.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -14px rgba(var(--pink-rgb), 0.4);
}
.article-back:hover svg {
    transform: translateX(-4px);
}
[dir="ltr"] .article-back:hover svg {
    transform: translateX(4px);
}

.article-tags .article-back {
    margin-inline-end: 6px;
}

.article-related-section {
    padding-top: 30px;
    padding-bottom: 20px;
}

.article-related-head {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .article-featured-wrap {
        border-radius: 22px;
        aspect-ratio: 16 / 9;
    }
    .article-content {
        font-size: 1rem;
        line-height: 1.95;
    }
    .article-content h1 {
        font-size: 1.8rem;
    }
    .article-content h2 {
        font-size: 1.5rem;
    }
    .article-content h3 {
        font-size: 1.25rem;
    }
    .article-content h4 {
        font-size: 1.1rem;
    }
}
@media (max-width: 768px) {
    .article-hero-title {
        font-size: 1.65rem;
        max-width: 100%;
    }
    .article-hero-desc {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    .ahm-item {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
    .ahm-author {
        padding: 5px 14px 5px 5px;
    }
    [dir="rtl"] .ahm-author {
        padding: 5px 5px 5px 14px;
    }
    .ahm-author img {
        width: 24px;
        height: 24px;
    }

    .article-featured {
        padding: 26px 0 10px;
    }
    .article-featured-wrap {
        aspect-ratio: 16 / 10;
        border-radius: var(--radius);
    }

    .article-content-section {
        padding: 34px 0 24px;
    }
    .article-content {
        font-size: 0.96rem;
        line-height: 1.9;
    }
    .article-content h1 {
        font-size: 1.55rem;
    }
    .article-content h2 {
        font-size: 1.35rem;
    }
    .article-content h3 {
        font-size: 1.18rem;
    }
    .article-content h4 {
        font-size: 1.05rem;
    }
    .article-content p {
        margin-bottom: 1.2em;
    }
    .article-content img {
        border-radius: var(--radius);
    }
    .article-content blockquote {
        padding: 16px 18px 16px 20px;
        margin: 1.3em 0;
    }
    .article-content pre {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    .article-content th,
    .article-content td {
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    .article-tags {
        margin-top: 36px;
        padding-top: 24px;
        gap: 10px;
    }

    .article-tags .article-back {
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
        margin-inline: 0;
    }

    .article-tags-label {
        flex: 0 0 100%;
        width: auto;
        margin: 4px 0 0;
        font-size: 0.8rem;
    }
    .article-tag {
        padding: 7px 14px;
        font-size: 0.78rem;
    }
}
@media (max-width: 480px) {
    .article-hero-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }
    .article-hero-desc {
        font-size: 0.85rem;
        line-height: 1.75;
    }
    .article-hero-meta {
        gap: 6px;
    }
    .ahm-item {
        font-size: 0.72rem;
        padding: 5px 10px;
        gap: 6px;
    }
    .ahm-author {
        padding: 5px 12px 5px 5px;
        gap: 8px;
    }
    [dir="rtl"] .ahm-author {
        padding: 5px 5px 5px 12px;
    }
    .ahm-author img {
        width: 22px;
        height: 22px;
    }

    .article-featured {
        padding: 20px 0 8px;
    }
    .article-featured-wrap {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius);
    }

    .article-content-section {
        padding: 28px 0 20px;
    }
    .article-content {
        font-size: 0.92rem;
        line-height: 1.85;
    }
    .article-content h1 {
        font-size: 1.35rem;
    }
    .article-content h2 {
        font-size: 1.2rem;
    }
    .article-content h3 {
        font-size: 1.08rem;
    }
    .article-content h4 {
        font-size: 1rem;
    }
    .article-content h5 {
        font-size: 0.94rem;
    }
    .article-content p {
        margin-bottom: 1.1em;
        line-height: 1.85;
    }
    .article-content img {
        border-radius: 12px;
        margin: 1.2em auto;
    }
    .article-content blockquote {
        padding: 14px 16px 14px 18px;
        margin: 1.2em 0;
        font-size: 0.92rem;
        border-inline-start-width: 3px;
    }
    .article-content ul,
    .article-content ol {
        padding-inline-start: 1.4em;
        margin-bottom: 1.1em;
    }
    .article-content li {
        margin-bottom: 0.5em;
    }
    .article-content code {
        font-size: 0.82em;
        padding: 2px 6px;
    }
    .article-content pre {
        padding: 12px 14px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    .article-content table {
        font-size: 0.82rem;
    }
    .article-content th,
    .article-content td {
        padding: 8px 10px;
    }

    .article-tags {
        margin-top: 28px;
        padding-top: 20px;
        gap: 8px;
    }

    .article-tags .article-back {
        padding: 11px 16px;
        font-size: 0.82rem;
        gap: 8px;
        border-radius: 12px;
    }
    .article-tags .article-back svg {
        width: 12px;
        height: 12px;
    }

    .article-tags-label {
        font-size: 0.76rem;
        margin-top: 2px;
    }

    .article-tag {
        padding: 6px 12px;
        font-size: 0.74rem;
    }

    .article-related-head {
        margin-bottom: 20px;
    }
}