/* ====== 新闻动态页面 ====== */

/* ====== Hero ====== */

.loopes-news-hero {
    position: relative;
    padding: 100px 0 70px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8F0FE 40%, #EDE9FE 100%);
}

.loopes-news-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.loopes-news-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 115, 232, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}

.loopes-news-hero__content {
    position: relative;
    z-index: 1;
}

.loopes-news-hero__label {
    display: inline-block;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--loopes-primary);
    background: #E8F0FE;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.loopes-news-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.3;
}

.loopes-news-hero__desc {
    font-size: 16px;
    color: #6B7280;
    margin: 0 auto;
    max-width: 500px;
}


/* ====== 搜索 & 筛选工具栏 ====== */

.loopes-news-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--loopes-border);
    position: sticky;
    top: 76px;
    z-index: 50;
}

.loopes-news-toolbar__inner {
    padding: 18px 0;
}

.loopes-news-toolbar__search {
    margin-bottom: 14px;
}

.loopes-news-toolbar__search .loopes-toolbar-search {
    max-width: 100%;
}

.loopes-news-toolbar__cats {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.loopes-news-toolbar__cats::-webkit-scrollbar {
    display: none;
}


/* ====== 新闻列表区域 ====== */

.loopes-news-list {
    padding: 60px 0 80px;
    background: var(--loopes-bg-secondary);
    min-height: 500px;
}


/* ====== 新闻网格 ====== */

.loopes-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* ====== 新闻卡片 ====== */

.loopes-news-article {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.loopes-news-article:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -12px rgba(26, 115, 232, 0.12),
        0 8px 24px -8px rgba(0, 0, 0, 0.06);
}

.loopes-news-article__image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--loopes-bg-secondary);
    text-decoration: none;
}

.loopes-news-article__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loopes-news-article:hover .loopes-news-article__image {
    transform: scale(1.06);
}

.loopes-news-article__date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    line-height: 1.2;
    min-width: 48px;
}

.loopes-news-article__date-day {
    font-size: 18px;
    font-weight: 800;
    color: var(--loopes-primary);
}

.loopes-news-article__date-month {
    font-size: 11px;
    font-weight: 600;
    color: var(--loopes-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loopes-news-article__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--loopes-primary);
    line-height: 1.4;
    text-decoration: none;
}

.loopes-news-article__body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.loopes-news-article__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--loopes-text-light);
    margin-bottom: 10px;
}

.loopes-news-article__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.loopes-news-article__meta svg {
    width: 14px;
    height: 14px;
}

.loopes-news-article__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--loopes-text);
    margin: 0 0 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loopes-news-article__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.loopes-news-article__title a:hover {
    color: var(--loopes-primary);
}

.loopes-news-article__excerpt {
    font-size: 14px;
    color: var(--loopes-text-secondary);
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loopes-news-article__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--loopes-border);
}

.loopes-news-article__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--loopes-text-light);
}

.loopes-news-article__author svg {
    width: 14px;
    height: 14px;
}

.loopes-news-article__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--loopes-primary);
    text-decoration: none;
    transition: gap 0.25s ease;
}

.loopes-news-article__more svg {
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
}

.loopes-news-article:hover .loopes-news-article__more {
    gap: 8px;
}

.loopes-news-article:hover .loopes-news-article__more svg {
    transform: translateX(3px);
}


/* ====== 特色文章（首篇大卡片） ====== */

.loopes-news-featured {
    margin-bottom: 40px;
}

.loopes-news-featured .loopes-news-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
}

.loopes-news-featured .loopes-news-article__image-wrap {
    aspect-ratio: auto;
    height: 100%;
    min-height: 340px;
}

.loopes-news-featured .loopes-news-article__body {
    padding: 32px 36px;
}

.loopes-news-featured .loopes-news-article__title {
    font-size: 22px;
    -webkit-line-clamp: 3;
}

.loopes-news-featured .loopes-news-article__excerpt {
    -webkit-line-clamp: 4;
}


/* ====== 分页 ====== */

.loopes-news-pagination {
    display: flex;
    justify-content: center;
    padding-top: 56px;
}

.loopes-news-pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loopes-news-pagination li {
    margin: 0;
}

.loopes-news-pagination a,
.loopes-news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--loopes-text-light);
    background: var(--loopes-bg);
    border: 1px solid var(--loopes-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.loopes-news-pagination a:hover {
    color: var(--loopes-primary);
    border-color: var(--loopes-primary);
    background: var(--loopes-primary-lighter, #E8F0FE);
}

.loopes-news-pagination .current {
    color: #fff;
    background: var(--loopes-primary);
    border-color: var(--loopes-primary);
}

.loopes-news-pagination .prev,
.loopes-news-pagination .next {
    padding: 0 14px;
}

.loopes-news-pagination .prev svg,
.loopes-news-pagination .next svg {
    width: 16px;
    height: 16px;
}


/* ====== 空状态 ====== */

.loopes-news-empty {
    text-align: center;
    padding: 100px 20px;
}

.loopes-news-empty__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--loopes-text-light);
}

.loopes-news-empty__icon svg {
    width: 64px;
    height: 64px;
}

.loopes-news-empty__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--loopes-text);
    margin: 0 0 10px;
}

.loopes-news-empty__desc {
    font-size: 15px;
    color: var(--loopes-text-light);
    margin: 0 0 24px;
}


/* ====== 响应式 ====== */

@media (max-width: 1200px) {
    .loopes-news-grid {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .loopes-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loopes-news-featured .loopes-news-article {
        grid-template-columns: 1fr;
    }

    .loopes-news-featured .loopes-news-article__image-wrap {
        min-height: 220px;
    }

    .loopes-news-featured .loopes-news-article__body {
        padding: 24px 28px;
    }
}

@media (max-width: 768px) {
    .loopes-news-toolbar__inner {
        padding: 14px 0;
    }

    .loopes-news-toolbar__search {
        margin-bottom: 12px;
    }

    .loopes-news-list {
        padding: 40px 0 60px;
    }

    .loopes-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .loopes-news-article__body {
        padding: 18px 20px 20px;
    }

    .loopes-news-article__title {
        font-size: 16px;
    }

    .loopes-news-pagination {
        padding-top: 40px;
    }
}


/* ===== 暗色模式适配 ===== */
[data-theme="dark"] .loopes-news-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0B1121 100%);
}

[data-theme="dark"] .loopes-news-hero__bg::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 115, 232, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

[data-theme="dark"] .loopes-news-hero__label {
    background: rgba(26, 115, 232, 0.15);
}

[data-theme="dark"] .loopes-news-hero__title {
    color: #F1F5F9;
}

[data-theme="dark"] .loopes-news-hero__desc {
    color: #94A3B8;
}

[data-theme="dark"] .loopes-news-toolbar {
    background: #1E293B;
    border-bottom-color: #334155;
}

[data-theme="dark"] .loopes-news-article {
    background: #1E293B;
}

[data-theme="dark"] .loopes-news-article__date-badge {
    background: rgba(15, 23, 42, 0.95);
}
