/* ============================================================
 * 九州微电 · 新闻资讯列表 news.css
 *
 * 通用区域（hero / tabs / 空态 / 分页）复用 project.css
 * 列表块独立设计：横向编辑式行（左缩略图 + 日期徽章，右内容）
 * ============================================================ */

@import url("project.css");

/* 新闻列表页专属：列表上方段落收紧 */
.listing-section { padding-top: clamp(var(--sp-2), 1vw, var(--sp-3)); }

/* ============================================================
 * 1. 列表容器：垂直堆叠的行
 * ============================================================ */
.news-list {
    display: flex;
    flex-direction: column;
}

/* ============================================================
 * 2. 单条新闻 · 横向行
 * ============================================================ */
.news-item {
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: clamp(var(--sp-5), 3vw, var(--sp-7));
    align-items: stretch;
    padding: clamp(var(--sp-5), 3vw, var(--sp-6)) 0;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: background var(--transition-base);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--jz-red);
    transition: width var(--transition-base);
}
.news-item:hover {
    background: linear-gradient(90deg, rgba(216, 0, 39, 0.02) 0%, transparent 60%);
}
.news-item:hover::before { width: 3px; }

/* ---------- 缩略图 ---------- */
.news-item__fig {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #eceef2 100%);
    border-radius: var(--radius-sm);
}
.news-item__fig::before {
    content: "\f03e";
    font-family: FontAwesome;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jz-gray-300);
    font-size: 32px;
    z-index: 0;
    pointer-events: none;
}
.news-item__fig img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}
.news-item__fig img.is-broken { display: none; }
.news-item:hover .news-item__fig img { transform: scale(1.05); }

/* ---------- 日期徽章（覆盖在缩略图左上） ---------- */
.news-item__date-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .96);
    color: var(--jz-ink);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    line-height: 1;
    box-shadow: 0 6px 18px rgba(14, 17, 22, .08);
}
.news-item__date-badge strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--jz-red);
    letter-spacing: -0.02em;
}
.news-item__date-badge span {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--jz-gray-500);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ---------- 中间内容区 ---------- */
.news-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: var(--sp-2) 0;
}
.news-item__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--jz-gray-500);
    letter-spacing: .04em;
}
.news-item__cate {
    color: var(--jz-red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding-right: 10px;
    border-right: 1px solid var(--jz-gray-200);
}
.news-item__date {
    font-family: var(--font-display);
    letter-spacing: .04em;
}
.news-item__title {
    font-family: var(--font-sans);
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    color: var(--jz-ink);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color var(--transition-base);
}
.news-item:hover .news-item__title { color: var(--jz-red); }
.news-item__desc {
    font-size: 13.5px;
    color: var(--jz-gray-700);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--jz-gray-500);
    margin-top: 2px;
}
.news-item__views i { color: var(--jz-gray-500); font-size: 11px; }

/* ---------- 右侧"Read More"区 ---------- */
.news-item__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: var(--sp-3);
    min-width: 110px;
}
.news-item__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--jz-ink);
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color var(--transition-base);
    white-space: nowrap;
}
.news-item__more i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--jz-ink);
    transition: all var(--transition-base);
}
.news-item:hover .news-item__more { color: var(--jz-red); }
.news-item:hover .news-item__more i {
    background: var(--jz-red);
    border-color: var(--jz-red);
    color: var(--jz-white);
    transform: translateX(4px);
}

/* ============================================================
 * 3. 响应式
 * ============================================================ */
@media (max-width: 992px) {
    .news-item {
        grid-template-columns: 220px 1fr;
        gap: var(--sp-5);
    }
    .news-item__action { display: none; }
    .news-item__title { font-size: 17px; }
}
@media (max-width: 576px) {
    .news-item {
        grid-template-columns: 1fr;
        gap: var(--sp-3);
    }
    .news-item__fig { aspect-ratio: 16 / 9; }
    .news-item__date-badge {
        left: 8px;
        top: 8px;
        padding: 6px 10px;
    }
    .news-item__date-badge strong { font-size: 18px; }
    .news-item__title { font-size: 16px; }
}
