/* ==========================================================================
   会易君 · article.css — 文章列表 / 文章详情专属
   （共享组件 .prose/.section-title/.empty-state/.share-*/.related-*/.cta-side
     等已在 custom.css，始终加载；此处仅文章特有样式）
   ========================================================================== */

/* ---------- featured card ---------- */
.featured-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.featured-img { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--bg-alt); }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featured-card:hover .featured-img img { transform: scale(1.04); }
.feat-cat-badge { position: absolute; top: 14px; left: 14px; padding: 5px 13px; border-radius: 999px; background: var(--gold); color: #3a2a05; font-size: 12px; font-weight: 700; }
.featured-body { padding: 22px 24px; }
.featured-body .art-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.featured-body h2 { font-size: 22px; margin-bottom: 10px; line-height: 1.4; }
.featured-body h2 a:hover { color: var(--brand); }
.featured-body p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

/* ---------- article list rows ---------- */
.article-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.article-row { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.article-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-100); }
.art-thumb { flex: 0 0 150px; width: 150px; height: 106px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); display: block; }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.art-row-top { margin-bottom: 7px; }
.cat-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--brand-050); color: var(--brand-600); }
.art-row-body h4 { font-size: 16.5px; line-height: 1.5; margin-bottom: 7px; }
.art-row-body h4 a:hover { color: var(--brand); }
.art-row-body p { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-row-meta { margin-top: auto; display: flex; gap: 16px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- article hero (detail) ---------- */
.art-hero { background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: #fff; padding: 44px 0 0; }
.art-hero-inner { max-width: 820px; }
.art-hero-meta { margin-bottom: 14px; }
.art-hero-meta .hero-cat a { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(199, 154, 70, .22); color: #E4C377; font-size: 12.5px; font-weight: 600; }
.art-hero h1 { font-size: 30px; line-height: 1.4; color: #fff; letter-spacing: -.5px; font-family: var(--font-serif); }
.art-hero-info { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.art-cover { margin-top: 30px; border-radius: 16px 16px 0 0; overflow: hidden; max-height: 380px; }
.art-cover img { width: 100%; object-fit: cover; }

/* ---------- article content ---------- */
.art-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 34px; margin-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
    .art-content { padding: 22px 18px; }
    .art-hero h1 { font-size: 24px; }
    .art-thumb { flex-basis: 116px; width: 116px; height: 84px; }
    .article-row { gap: 13px; padding: 12px; }
    .art-row-body h4 { font-size: 15px; }
    .featured-body h2 { font-size: 19px; }
}
