/* ---------- 引入阿里巴巴普惠体 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Alibaba+PuHuiTi:wght@400;500;600;700&display=swap');

/* ---------- CSS 变量 ---------- */
:root {
    --news-primary: #2c3e50;
    --news-accent: #1a73e8;
    --news-accent-hover: #1557b0;
    --news-bg: #f8f9fa;
    --news-card-bg: #ffffff;
    --news-border: #e9ecef;
    --news-text-secondary: #6c757d;
    --news-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --news-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --news-radius: 12px;
    --news-radius-sm: 8px;
    --news-gap: 1.5rem;
    --news-transition: all 0.25s ease;
    --more-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --more-gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b46a1 100%);
    --news-font-family: 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- 全局防溢出 ---------- */
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: var(--news-font-family);
    font-size: 16px;
}

.news-list-wrapper,
.news-list-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.news-list-wrapper a {
    text-decoration: none;
    color: inherit;
}

/* ---------- 内页大图（卡片化容器） ---------- */
.NEWS-list-banner {
    width: 100%;
    max-width: 1200px;          /* 保持最大宽度 */
    margin: 0 auto var(--news-gap);  /* 居中并保留底部间距 */
    overflow: hidden;
    /* 卡片化新增样式 */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.NEWS-list-banner:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

/* 图片样式完全保留，不做任何修改 */
.NEWS-list-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: bottom;
    border-radius: 10px;
    margin: 0.5rem auto;
    max-width: 1200px;
}

/* ---------- 板块容器（卡片化） ---------- */
.NEWS-hot-lb {
    width: 100%;
    max-width: 1200px;   /* 保持原上限 */
    margin: 0 auto var(--news-gap);
    padding: 1.5rem;      /* 增加内边距，让卡片内部呼吸感更强 */
    overflow: hidden;
    /* 卡片化新增样式 */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.NEWS-hot-lb:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

/* 标题区域等内部样式保持原样，不修改 */
.NEWS-hot-lb-title {
    margin-bottom: 1.25rem;
    text-align: center;
}
.NEWS-list-banner {
    margin-top: 2rem;
}
.NEWS-hot-lb-title h3 {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(0deg, #f18212, rgb(186 97 6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.NEWS-hot-lb-title h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--news-accent);
    border-radius: 2px;
}

/* ---------- 新闻列表包装（核心 Flex） ---------- */
.news-list-wrapper {
    display: flex;
    gap: var(--news-gap);
    align-items: stretch;
    width: 100%;
}

/* ========== 特色推荐区 ========== */
.featured-news {
    flex: 1 1 38%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.featured-news .featured-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    justify-content: space-between;
    min-height: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-item {
    display: flex;
    align-items: stretch;
    transition: var(--news-transition);
    width: 100%;
}

.featured-card-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--news-card-bg);
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow);
    transition: var(--news-transition);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.featured-card-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--news-accent);
    border-radius: 0 2px 2px 0;
}

.featured-card-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--news-shadow-hover);
    border-color: var(--news-accent);
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--news-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.featured-desc {
    font-size: 14px;
    color: var(--news-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.featured-date {
    font-size: 0.8rem;
    color: #adb5bd;
    letter-spacing: 0.5px;
}

/* ============================================================
   【重构】"更多"入口 —— 一行两列 左小右大 高度一致
   ============================================================ */
.featured-more-item {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 80px;
}

.more-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
    border-radius: var(--news-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
    transition: var(--news-transition);
    background: transparent;
    height: 100%;
    min-height: 80px;
}

.more-wrapper:hover {
    box-shadow: var(--news-shadow-hover);
}

.more-left {
    flex: 0 0 30%;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--more-gradient);
    color: #fff;
    padding: 0.75rem 0.5rem;
    text-align: center;
    position: relative;
    transition: var(--news-transition);
    gap: 2px;
}

.more-left .more-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.more-left .more-icon {
    font-size: 1.6rem;
    line-height: 1;
    opacity: 0.85;
    display: block;
}

.more-right {
    flex: 1 1 70%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--news-card-bg);
    border: 1px solid var(--news-border);
    border-left: none;
    transition: var(--news-transition);
    cursor: pointer;
    color: var(--news-primary);
    min-height: 0;
    width: 100%;
}

.more-right .more-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    flex: 1;
    text-align: center;
}

.more-right .more-arrow {
    font-size: 1.2rem;
    color: var(--news-accent);
    transition: var(--news-transition);
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.more-right:hover {
    background: #f8faff;
    border-color: var(--news-accent);
}

.more-right:hover .more-arrow {
    transform: translateX(4px);
    color: var(--news-accent-hover);
}

/* ========== 普通新闻列表 ========== */
.news-list {
    flex: 1 1 62%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-list .news-list-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.25rem;
    justify-content: space-between;
    min-height: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    transition: var(--news-transition);
    width: 100%;
}

.news-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--news-card-bg);
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow);
    transition: var(--news-transition);
    width: 100%;
}

.news-item a:hover {
    transform: translateX(4px);
    box-shadow: var(--news-shadow-hover);
    border-color: var(--news-accent);
}

.news-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--news-primary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-width: 0;
}

.news-date {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--news-text-secondary);
    white-space: nowrap;
    padding-left: 1rem;
    border-left: 2px solid var(--news-border);
}

/* ---------- 忽略 arclist 缓存包裹层 ---------- */
.news-list-inner>div[id^="tag"] {
    display: contents;
}

/* ============================================================
   响应式断点（Bootstrap 5）
   ============================================================ */

/* ---------- xs：<576px ---------- */
@media (max-width: 575.98px) {
    .news-list-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-news,
    .news-list {
        flex: 1 1 100%;
    }

    .featured-news .featured-list,
    .news-list .news-list-inner {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .featured-card-link,
    .news-item a {
        padding: 1rem 1.25rem;
        border-radius: var(--news-radius-sm);
    }

    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-date {
        border-left: none;
        padding-left: 0;
        font-size: 0.8rem;
    }

    .NEWS-hot-lb-title h3 {
        font-size: 18px;
    }

    .featured-title {
        font-size: 16px;
    }

    .featured-desc {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }

    /* ----- 更多卡片 移动端适配 ----- */
    .more-wrapper {
        flex-direction: row;
        min-height: 60px;
    }

    .more-left {
        flex: 0 0 28%;
        min-width: 50px;
        padding: 0.5rem 0.25rem;
    }

    .more-left .more-label {
        font-size: 0.9rem;
    }

    .more-left .more-icon {
        font-size: 1.2rem;
    }

    .more-right {
        padding: 0.5rem 1rem;
    }

    .more-right .more-text {
        font-size: 0.9rem;
    }

    .more-right .more-arrow {
        font-size: 1rem;
    }

    /* 调整容器内边距，适应小屏 */
    .NEWS-hot-lb {
        padding: 1rem;
        border-radius: 12px;
    }

    .NEWS-list-banner {
        border-radius: 12px;
    }
}

/* ---------- sm：576px ~ 767.98px ---------- */
@media (min-width: 576px) and (max-width: 767.98px) {
    .news-list-wrapper {
        flex-direction: column;
        gap: 1.25rem;
    }

    .featured-news .featured-list,
    .news-list .news-list-inner {
        justify-content: flex-start;
        gap: 1rem;
    }

    .news-item a {
        padding: 1.25rem 1.5rem;
    }

    .more-wrapper {
        min-height: 70px;
    }

    .more-left .more-label {
        font-size: 1rem;
    }

    .more-left .more-icon {
        font-size: 1.4rem;
    }

    .more-right .more-text {
        font-size: 1rem;
    }

    .NEWS-hot-lb {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .NEWS-list-banner {
        border-radius: 14px;
    }
}

/* ---------- md：768px ~ 991.98px ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .news-list-wrapper {
        flex-direction: column;
        gap: 1.25rem;
    }

    .featured-news .featured-list,
    .news-list .news-list-inner {
        justify-content: flex-start;
        gap: 1.25rem;
    }

    .more-wrapper {
        min-height: 76px;
    }

    .more-left .more-label {
        font-size: 1.1rem;
    }

    .more-left .more-icon {
        font-size: 1.5rem;
    }

    .more-right .more-text {
        font-size: 1.05rem;
    }

    .NEWS-hot-lb {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .NEWS-list-banner {
        border-radius: 14px;
    }
}

/* ---------- lg：992px ~ 1199.98px ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .news-list-wrapper {
        gap: 1.25rem;
    }

    .featured-news {
        flex: 1 1 40%;
    }

    .news-list {
        flex: 1 1 60%;
    }

    .featured-news .featured-list,
    .news-list .news-list-inner {
        height: 100%;
        min-height: 0;
    }

    .more-wrapper {
        min-height: 80px;
    }

    .NEWS-hot-lb {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .NEWS-list-banner {
        border-radius: 16px;
    }
}

/* ---------- xl：≥1200px ---------- */
@media (min-width: 1200px) {
    .news-list-wrapper {
        gap: 2rem;
    }

    .featured-news {
        flex: 1 1 35%;
    }

    .news-list {
        flex: 1 1 65%;
    }

    .featured-news .featured-list,
    .news-list .news-list-inner {
        height: 100%;
        min-height: 0;
    }

    .more-wrapper {
        min-height: 84px;
    }

    .more-left .more-label {
        font-size: 1.25rem;
    }

    .more-left .more-icon {
        font-size: 1.7rem;
    }

    .more-right .more-text {
        font-size: 1.15rem;
    }

    .NEWS-hot-lb {
        padding: 1.5rem 2rem;
        border-radius: 16px;
    }

    .NEWS-list-banner {
        border-radius: 16px;
    }
}

/* ---------- xxl：≥1400px ---------- */
@media (min-width: 1400px) {
    /* 保持 max-width: 1200px 不变，无额外调整 */
    .NEWS-hot-lb {
        /* 可保持现有样式 */
    }
}

/* ========== 动画 ========== */
.featured-item,
.news-item {
    animation: fadeInUp 0.4s ease both;
}

.featured-item:nth-child(2) { animation-delay: 0.05s; }
.featured-item:nth-child(3) { animation-delay: 0.1s; }
.featured-item:nth-child(4) { animation-delay: 0.15s; }
.featured-item:nth-child(5) { animation-delay: 0.2s; }

.news-item:nth-child(2) { animation-delay: 0.05s; }
.news-item:nth-child(3) { animation-delay: 0.1s; }
.news-item:nth-child(4) { animation-delay: 0.15s; }
.news-item:nth-child(5) { animation-delay: 0.2s; }
.news-item:nth-child(6) { animation-delay: 0.25s; }
.news-item:nth-child(7) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 移动端触摸优化 ========== */
@media (hover: none) {
    .featured-card-link:hover,
    .more-right:hover,
    .news-item a:hover {
        transform: none !important;
    }

    .featured-card-link:active,
    .more-right:active,
    .news-item a:active {
        opacity: 0.7;
        transition: opacity 0.1s;
    }

    .more-right:hover .more-arrow {
        transform: none !important;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .featured-card-link,
    .more-wrapper,
    .news-item a {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        transform: none !important;
    }
    .featured-news .featured-list,
    .news-list .news-list-inner {
        justify-content: flex-start !important;
    }
}