/* ===== 资讯列表页（information-list.html）改版样式 =====
   consultation_list.css 同时被 notice-list / release-list 复用，因此不改动它，
   本文件只针对资讯列表页的新结构（nl-*）做增量样式，并按需覆盖旧版的固定宽度。
   加载顺序：consultation_list.css → information-list.css */
.nl-hero {
    padding: 56px 0 40px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(100, 181, 246, 0.22), rgba(100, 181, 246, 0) 45%),
        linear-gradient(160deg, #f4f9ff 0%, #ffffff 60%, #eaf3fd 100%);
}

.nl-hero .container {
    max-width: 900px;
}

.nl-hero .search-breadcrumb {
    padding: 0;
    margin: 0 0 18px;
}

.nl-hero .breadcrumb {
    justify-content: center;
    margin: 0;
    font-size: 13px;
    background: transparent;
    padding: 0;
}

.nl-hero .breadcrumb-item a {
    color: #6b7a90;
    text-decoration: none;
}

.nl-hero .breadcrumb-item a:hover {
    color: var(--primary-blue);
}

.nl-hero-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    color: #0f2c4d;
}

.nl-hero-desc {
    margin: 0 auto;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--pe-text);
}

/* ---------------- 布局 ---------------- */
.max {
    width: 100%;
    min-height: 0;
    display: block;
    align-items: stretch;
    background: transparent;
    padding: 36px 0 64px;
}

/* 旧样式写死 1200px，窄屏会溢出，这里改为自适应 */
.search,
main.nl-main {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.nl-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    box-sizing: border-box;
}

.main-left,
.main-right {
    width: 100% !important;
    min-width: 0;
}

/* ---------------- 资讯卡片 ---------------- */
.nl-list {
    display: grid;
    gap: 18px;
}

.nl-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6edf6;
    box-shadow: 0 8px 22px rgba(15, 42, 74, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nl-item:hover {
    transform: translateY(-6px);
    border-color: #90caf9;
    box-shadow: 0 20px 40px rgba(30, 136, 229, 0.16);
}

.nl-item-media {
    overflow: hidden;
    border-radius: 14px;
    background: #f2f6fb;
}

.nl-item-media img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nl-item:hover .nl-item-media img {
    transform: scale(1.06);
}

.nl-item-body {
    display: grid;
    gap: 8px;
    align-content: start;
}

.nl-item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #1b2a41;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-item:hover .nl-item-title {
    color: var(--primary-blue);
}

.nl-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #90a4ae;
}

.nl-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nl-item-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    color: #6b7a90;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-item-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
}

.nl-item-more i {
    transition: transform 0.25s ease;
}

.nl-item:hover .nl-item-more i {
    transform: translateX(4px);
}

/* 空状态 */
.nl-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 56px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #cfdcec;
    color: #90a4ae;
    text-align: center;
}

.nl-empty i {
    font-size: 40px;
    color: #cfdcec;
}

.nl-empty p {
    margin: 0;
    font-size: 14px;
}

/* ---------------- 侧栏 ---------------- */
.nl-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 84px;
}

.nl-side-card {
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6edf6;
    box-shadow: 0 8px 22px rgba(15, 42, 74, 0.05);
}

.nl-side-title {
    position: relative;
    margin: 0 0 16px;
    padding-left: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1b2a41;
}

.nl-side-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #1e88e5, #64b5f6);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nl-tag {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #d9e6f5;
    background: #f7fafd;
    color: #546e7a;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.nl-tag:hover {
    color: #fff;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    border-color: transparent;
    transform: translateY(-2px);
}

.nl-side-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.nl-side-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #546e7a;
    text-decoration: none;
    transition: background-color 0.22s ease, color 0.22s ease;
}

.nl-side-links a i {
    color: var(--primary-blue);
}

.nl-side-links a:hover {
    background: rgba(30, 136, 229, 0.10);
    color: var(--primary-blue);
}

.nl-side-cta {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
    border: none;
    color: #fff;
}

.nl-side-cta h6 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.nl-side-cta p {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nl-btn-primary {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
}

.nl-btn-light {
    background: #fff;
    color: var(--primary-blue);
}

.nl-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
    .nl-hero {
        padding: 40px 0 28px;
    }

    .nl-hero-title {
        font-size: 26px;
    }

    main.nl-main {
        grid-template-columns: 1fr;
    }

    .nl-side {
        position: static;
        order: -1;
    }
}

/* consultation_list.css 在 768px 以下给 .max 加了 margin-top: 62px，
   改版后头部已有首屏区块，这里去掉多余间距 */
@media (max-width: 768px) {
    .max {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .nl-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nl-item-media img {
        height: 180px;
    }
}

/* 尊重系统的"减少动效"设置 */
@media (prefers-reduced-motion: reduce) {
    .nl-item,
    .nl-item-media img,
    .nl-tag,
    .nl-btn,
    .nl-item-more i {
        transition: none;
    }

    .nl-item:hover,
    .nl-tag:hover,
    .nl-btn:hover,
    .nl-item:hover .nl-item-media img {
        transform: none;
    }
}
