/* ========================================
   全站宽度优化 + 现代化改版
   上传路径：template/moban/static/css/custom-width.css
   ======================================== */

/* ---------- 1. 全站主容器宽度 ---------- */
/* The7 主题主内容区 */
#main,
.content-wrap,
.wrap,
.container,
#content > .container,
.full-width-content .container,
.vc_row-fluid > .vc_col-sm-12 > .wpb_wrapper,
.upb_row_bg + div,
.wpb_row .wpb_column > .wpb_wrapper {
    /* 子元素继承即可，不直接改 */
}

/* VC 行内最大宽度覆盖 */
.vc_row[data-vc-full-width="true"] > .vc_column_container > .vc_column-inner > .wpb_wrapper,
.wpb_row .wpb_column > .wpb_wrapper > *:not(.upb_row_bg) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* 四大模块 */
.FourModel {
    width: 1400px !important;
    max-width: 100%;
}

/* 区块标题 */
.xsl_h2 {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* 新闻模块 */
.xsl_new {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* FAQ 模块 */
.xsl-faq-wrap,
.xsl-faq-fold {
    max-width: 1400px !important;
}

/* 友情链接 */
.wpb_widgetised_column .wpb_wrapper {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ---------- 2. 首页新闻模块重设计 ---------- */
.xsl_new ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
}

.xsl_new ul li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    list-style: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s ease;
}

.xsl_new ul li:hover {
    border-color: #e53935;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.1);
    transform: translateY(-4px);
}

.xsl_new ul li a {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: none;
}

.xsl_new ul li a:hover {
    color: inherit;
}

.xsl_new h3,
.xsl_new ul li h3 {
    font-size: 17px !important;
    font-weight: 700;
    color: #1a1a1a !important;
    margin: 0 0 12px !important;
    line-height: 1.55 !important;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 52px;
}

.xsl_new ul li h3 i {
    display: none !important;
}

/* 新闻描述 */
.xsl_new .xsl_new_des {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 72px;
}

/* 底部日期行 — 去掉日期，只留查看详情 */
.xsl_new ul li a p:last-child {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #e53935;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.xsl_new ul li a p:last-child span:first-child {
    display: none !important;
}

.xsl_new ul li a p:last-child span:last-child {
    margin-right: 0 !important;
}

.xsl_new ul li a p span i {
    background: none !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    font-style: normal !important;
    margin-left: 4px !important;
}

.xsl_new ul li a p span i::before {
    content: "→";
    font-size: 14px;
}

.xsl_new ul li a:hover p span i::before {
    transform: translateX(3px);
    display: inline-block;
}

/* ---------- 3. 区块标题优化 ---------- */
.xsl_h2 {
    margin-top: 70px !important;
    margin-bottom: 30px;
}

.xsl_h2 h2 {
    font-size: 32px !important;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -.5px;
    position: relative;
    display: inline-block;
}

.xsl_h2 h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #e53935, #ff6b6b);
    border-radius: 2px;
}

.xsl_h2_info {
    left: auto !important;
    right: 20px;
    top: 14px !important;
    text-align: right;
}

.xsl_h2_info p:first-child {
    font-size: 16px !important;
    color: #999;
    font-weight: 400;
    margin-bottom: 2px !important;
}

.xsl_h2_info p:last-child {
    font-size: 12px !important;
    color: #ccc;
    letter-spacing: 2px;
    font-weight: 300;
}

/* ---------- 4. 响应式适配 ---------- */
@media screen and (max-width: 1440px) {
    .vc_row[data-vc-full-width="true"] > .vc_column_container > .vc_column-inner > .wpb_wrapper,
    .wpb_row .wpb_column > .wpb_wrapper > *:not(.upb_row_bg),
    .FourModel,
    .xsl_h2,
    .xsl_new,
    .xsl-faq-wrap,
    .xsl-faq-fold,
    .wpb_widgetised_column .wpb_wrapper {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1200px) {
    .vc_row[data-vc-full-width="true"] > .vc_column_container > .vc_column-inner > .wpb_wrapper,
    .wpb_row .wpb_column > .wpb_wrapper > *:not(.upb_row_bg),
    .FourModel,
    .xsl_h2,
    .xsl_new,
    .xsl-faq-wrap,
    .xsl-faq-fold,
    .wpb_widgetised_column .wpb_wrapper {
        max-width: 960px;
    }

    .xsl_new ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .vc_row[data-vc-full-width="true"] > .vc_column_container > .vc_column-inner > .wpb_wrapper,
    .wpb_row .wpb_column > .wpb_wrapper > *:not(.upb_row_bg),
    .FourModel,
    .xsl_h2,
    .xsl_new,
    .xsl-faq-wrap,
    .xsl-faq-fold,
    .wpb_widgetised_column .wpb_wrapper {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .xsl_new ul {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .xsl_h2 h2 {
        font-size: 24px !important;
    }

    .xsl_h2_info {
        display: none;
    }
}

/* ========== 【强化版】首页新闻模块修复 - 确保不重叠 ========== */
/* 强制 3 列网格，等高卡片，去掉英文日期 */
html body .xsl_new ul,
body .xsl_new ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

html body .xsl_new ul li,
body .xsl_new ul li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    list-style: none !important;
    overflow: hidden !important;
    transition: all .3s ease !important;
}

html body .xsl_new ul li:hover,
body .xsl_new ul li:hover {
    border-color: #e53935 !important;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.12) !important;
    transform: translateY(-4px) !important;
}

html body .xsl_new ul li a,
body .xsl_new ul li a {
    display: block !important;
    padding: 24px !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
}

/* 标题：固定 2 行，不重叠 */
html body .xsl_new ul li h3,
body .xsl_new ul li h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px !important;
    line-height: 1.55 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 52px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

html body .xsl_new ul li h3 i,
body .xsl_new ul li h3 i {
    display: none !important;
}

/* 描述：固定 3 行 */
html body .xsl_new .xsl_new_des,
body .xsl_new .xsl_new_des {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 72px !important;
    height: auto !important;
    position: static !important;
}

/* 底部信息行：去掉英文日期，只留查看详情 */
html body .xsl_new ul li a p:last-child,
body .xsl_new ul li a p:last-child {
    margin: 0 !important;
    padding-top: 14px !important;
    border-top: 1px solid #f0f0f0 !important;
    font-size: 13px !important;
    color: #e53935 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    position: static !important;
    bottom: auto !important;
    width: auto !important;
}

/* 隐藏日期（第一个 span） */
html body .xsl_new ul li a p:last-child span:first-child,
body .xsl_new ul li a p:last-child span:first-child {
    display: none !important;
}

/* 查看详情箭头 */
html body .xsl_new ul li a p span i,
body .xsl_new ul li a p span i {
    background: none !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    font-style: normal !important;
    margin-left: 4px !important;
}

html body .xsl_new ul li a p span i::before,
body .xsl_new ul li a p span i::before {
    content: "→" !important;
    font-size: 14px !important;
}

/* 响应式：平板 2 列 */
@media (max-width: 960px) {
    html body .xsl_new ul,
    body .xsl_new ul {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

/* 响应式：手机 1 列 */
@media (max-width: 600px) {
    html body .xsl_new ul,
    body .xsl_new ul {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}
