/* art/type.html */

.art-type-main { flex: 1; }/* ---------- art slider ---------- */
.art-slider {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16/7;
    margin-bottom: var(--section-gap);
    background: var(--bg-elevated);
}
.art-slider-track {
    display: flex; transition: transform 0.4s ease;
}
.art-slide { flex-shrink: 0; width: 100%; position: relative; }
.art-slide img { width: 100%; height: 100%; object-fit: cover; }
.art-slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 16px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.art-slide-title { font-size: 14px; font-weight: 600; color: #fff; }
.art-slider-dots {
    position: absolute; bottom: 10px; right: 12px;
    display: flex; gap: 6px;
}
.asd {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s, width 0.2s;
    padding: 0; border: 0; appearance: none; -webkit-appearance: none;   /* 圆点改 <button>（强制 2.6），清掉按钮默认样式 */
}
.asd.is-active { background: #fff; width: 18px; border-radius: 3px; }

/* ---------- article list ---------- */
.art-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--section-gap); }
.art-li {
    display: flex; gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}
.art-li:hover { border-color: var(--border-2); }
.art-li-thumb {
    flex-shrink: 0;
    width: 120px; height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden; background: var(--bg-elevated);
}
.art-li-thumb a { display: block; width: 100%; height: 100%; }
.art-li-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.art-li:hover .art-li-thumb img { transform: scale(1.05); }
.art-li-body { flex: 1; min-width: 0; }
.art-li-title {
    display: block; font-size: 15px; font-weight: 600;
    color: var(--text-1); margin-bottom: 6px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.art-li-title:hover { color: var(--accent-deep); }
.art-li-desc { font-size: 13px; color: var(--text-3); margin-bottom: 8px; line-height: 1.5; }
.art-li-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); }
/* ===== RWD ===== */

/* 平板 ≤ 1023px：收起右側 sidebar，左側 nav 縮窄 */
/* .art-layout/.art-sidebar/.art-leftnav/.aln-item 响应式已收口 main.css（与资讯详情共用，强制 11.9） */
@media (max-width: 1023px) {
    .art-li-thumb { width: 100px; height: 68px; }
    .art-li-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* 手機 ≤ 767px：單欄，左側 nav → 橫向捲動標籤列 */
@media (max-width: 767px) {
    /* 主內容區塊防止超寬（min-width:0 已在 main.css .art-layout > * 统一处理） */
    .art-content { width: 100%; }

    /* 輪播縮小；与下方模块间距统一 --section-gap（强制 20） */
    .art-slider { aspect-ratio: 16/9; margin-bottom: var(--section-gap); }

    /* 文章卡片 */
    .art-li { display: flex; flex-direction: row; gap: 12px; padding: 12px; align-items: flex-start; }
    .art-li-thumb { width: 116px; height: 78px; flex-shrink: 0; }
    .art-li-body { flex: 1; min-width: 0; display: block; }
    .art-li-title {
        display: -webkit-box;
        font-size: 14px;
        font-weight: 600;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
        margin-bottom: 5px;
    }
    .art-li-desc {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12px;
        color: var(--text-3);
        margin-bottom: 6px;
    }
    .art-li-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 11px; }
}
