/* ============================================================
   新闻资讯板块（news_list 列表 / article 详情 共用）
   - Figma：桌面端-新闻资讯-公司新闻.png / 桌面端-新闻资讯-公司新闻内容.png
            桌面端-新闻资讯-行业资讯.png / 桌面端-新闻资讯-行业资讯内容.png
   - 画板 1440 / 内容 1200（.xy-container）；双栏 复用 style.css 的
     .xy-pg-grid.detail-grid（左 main 1fr / 右 side-r 340 / gap 26）
   - 前缀 .xy-news-；本文件经 widget head.html <css> 标签加载（晚于 style.css）
   ============================================================ */

/* ---- 内页灰底：与产品板块同机制，新闻页 body 背景转 #F5F5F5，白卡浮动 ---- */
body:has(.xy-news-list),
body:has(.xy-news-detail) {
    background-color: var(--xy-gray-bg);
}

/* ---- widget 根：抵消 style.css .xy-wg 顶部 25px（tab 需贴住面包屑行） ---- */
body .xy-news-list,
body .xy-news-detail {
    padding: 0 0 46px;
}

/* ================= 右上角分类 tab（叠在 .xy-crumb 46px 白条右端） ================= */
body .xy-news-tabs {
    position: relative;
    z-index: 2;
    height: 46px;
    margin-top: -46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}
body .xy-news-tabs a {
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.55);
    transition: color .25s;
}
body .xy-news-tabs a:hover { color: var(--xy-primary); }
body .xy-news-tabs a.on {
    color: var(--xy-primary);
    font-weight: 500;
}
body .xy-news-tabs .sep {
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, 0.15);
}

/* ================= 列表页：居中标题区（横跨 1200，灰底直排） ================= */
body .xy-news-head {
    padding: 28px 0 22px;
    text-align: center;
}
body .xy-news-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 40px;
    font-weight: 600;
    color: var(--xy-dark);
}
body .xy-news-head p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.5);
}

/* ================= 列表页：新闻卡（白卡 r8 浮动，左图右文） ================= */
body .xy-news-card {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: #FFFFFF;
    border: 0.75px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    margin-bottom: 16px;
    transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
body .xy-news-card:hover {
    background: #FFFBF4;
    border-color: rgba(255, 138, 0, 0.45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* 缩略图 170×110 r8：公司新闻=NEWS 字块 / 行业资讯=图表 */
body .xy-news-card .pic {
    flex: 0 0 170px;
    width: 170px;
    height: 110px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
}
body .xy-news-card .pic.t-news {
    background: linear-gradient(135deg, #FFC069 0%, #FF8A00 55%, #F07000 100%);
}
body .xy-news-card .pic.t-news b {
    font-family: var(--xy-din);
    font-size: 30px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12);
}
body .xy-news-card .pic.t-chart {
    background: linear-gradient(135deg, #FFB25C 0%, #FF8A00 100%);
}
body .xy-news-card .pic.t-chart i {
    font-size: 46px;
    text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12);
}

body .xy-news-card .info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
body .xy-news-card .trow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
body .xy-news-card h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 17px;
    line-height: 26px;
    font-weight: 600;
    color: var(--xy-dark);
    transition: color .25s;
}
body .xy-news-card h3 em {
    font-style: normal;
    color: var(--xy-primary);
}
body .xy-news-card:hover h3 { color: var(--xy-primary); }
body .xy-news-card .cap {
    flex: none;
    font-size: 12px;
    line-height: 18px;
    padding: 3px 12px;
    border-radius: 100px;
    background: #FFF3E1;
    color: var(--xy-primary);
    white-space: nowrap;
}
body .xy-news-card p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body .xy-news-card .brow {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
body .xy-news-card .brow .date {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
    margin-right: 6px;
}
body .xy-news-card .tag {
    font-size: 12px;
    line-height: 18px;
    padding: 2px 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    color: rgba(0, 0, 0, 0.5);
    transition: color .25s, border-color .25s;
}
body .xy-news-card .tag:hover {
    color: var(--xy-primary);
    border-color: var(--xy-primary);
}
body .xy-news-card .go {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--xy-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform .25s, background .25s;
}
body .xy-news-card:hover .go {
    transform: translateX(4px);
    background: #E67B00;
}

/* ================= 列表页：分页 ================= */
body .xy-news-pg {
    position: relative;
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
body .xy-news-pg a {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 0.75px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    transition: color .25s, border-color .25s, background .25s;
}
body .xy-news-pg a:hover {
    color: var(--xy-primary);
    border-color: var(--xy-primary);
}
body .xy-news-pg a.on {
    background: var(--xy-primary);
    border-color: var(--xy-primary);
    color: #FFFFFF;
}
body .xy-news-pg .per {
    position: absolute;
    right: 0;
    top: 0;
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 0.75px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

/* ================= 详情页：主卡 ================= */
body .xy-news-art .card {
    background: #FFFFFF;
    border: 0.75px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 30px 35px;
}
body .xy-news-art .trow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
body .xy-news-art h1 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
    color: var(--xy-primary);
}
body .xy-news-art .cap {
    flex: none;
    font-size: 12px;
    line-height: 18px;
    padding: 3px 12px;
    border-radius: 100px;
    background: #FFF3E1;
    color: var(--xy-primary);
    white-space: nowrap;
    margin-top: 5px;
}
body .xy-news-art .meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.45);
}
body .xy-news-art .brief {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.6);
}
body .xy-news-art .brief b {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.85);
    margin-right: 4px;
}

/* 正文排版：首行缩进 2em、行距 30，图片圆角居中 */
body .xy-news-art .content {
    margin-top: 22px;
    font-size: 15.5px;
    line-height: 30px;
    color: rgba(0, 0, 0, 0.75);
    word-break: break-word;
}
body .xy-news-art .content p { margin: 0 0 18px; text-indent: 2em; }
body .xy-news-art .content img {
    display: block;
    max-width: 100%;
    border-radius: 8px;
    margin: 18px auto;
}
body .xy-news-art .content h1,
body .xy-news-art .content h2 { font-size: 20px; line-height: 30px; margin: 26px 0 14px; color: var(--xy-dark); }
body .xy-news-art .content h3,
body .xy-news-art .content h4 { font-size: 17px; line-height: 26px; margin: 22px 0 12px; color: var(--xy-dark); }
body .xy-news-art .content ul,
body .xy-news-art .content ol { margin: 0 0 18px; padding-left: 2em; }
body .xy-news-art .content a { color: var(--xy-primary); }
body .xy-news-art .content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
body .xy-news-art .content table td,
body .xy-news-art .content table th { border: 1px solid rgba(0, 0, 0, 0.1); padding: 6px 10px; }

/* 底部：日期 + 分享（彩色圆 hover 变橙上浮） */
body .xy-news-art .foot {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body .xy-news-art .foot .date {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
}
body .xy-news-art .share {
    display: flex;
    align-items: center;
    gap: 10px;
}
body .xy-news-art .share .lb {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    margin-right: 4px;
}
body .xy-news-art .share .ic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background .25s, transform .25s;
}
body .xy-news-art .share .ic-wx { background: #2AAE67; }
body .xy-news-art .share .ic-qq { background: #12B7F5; }
body .xy-news-art .share .ic-wb { background: #E6162D; }
body .xy-news-art .share .ic-li { background: #0A66C2; }
body .xy-news-art .share .ic-fb { background: #1877F2; }
body .xy-news-art .share .ic-x  { background: #000000; }
body .xy-news-art .share .ic:hover {
    background: var(--xy-primary);
    transform: translateY(-2px);
}

/* 编辑信息行（设计图：编辑：谭组织 / 来源：希雨科技） */
body .xy-news-art .editor {
    margin-top: 18px;
    padding: 12px 0 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
}
body .xy-news-art .editor b {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* 侧栏人员介绍：姓名 + 头衔 + 简介 */
body .xy-side-consult .txt h4 {
    font-size: 18px;
    line-height: 26px;
    color: var(--xy-dark);
    margin: 0 0 6px;
}
body .xy-side-consult .txt h4 small {
    font-size: 13px;
    color: var(--xy-primary);
    font-weight: 500;
}
body .xy-side-consult .txt .intro {
    font-size: 13px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.65);
    margin: 0 0 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 上一篇 / 下一篇 */
body .xy-news-art .pn {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
body .xy-news-art .pn a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .25s;
}
body .xy-news-art .pn a b {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.8);
    transition: color .25s;
}
body .xy-news-art .pn a:hover,
body .xy-news-art .pn a:hover b { color: var(--xy-primary); }

/* ================= 右侧栏：4 件白卡（复用 style.css 内部结构，补白卡底） ================= */
body .xy-news-list .side-r > .xy-wg,
body .xy-news-detail .side-r > .xy-wg {
    background: #FFFFFF;
    border: 0.75px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px;
}
/* 顾问卡：图顶格通栏（style.css 自带白卡 r12，撤掉通用内边距） */
body .xy-news-list .side-r > .xy-side-consult,
body .xy-news-detail .side-r > .xy-side-consult {
    padding: 0;
}

/* ================= 响应式（桌面第一，≤992 简化堆叠） ================= */
@media (max-width: 992px) {
    body .xy-news-list .xy-pg-grid.detail-grid,
    body .xy-news-detail .xy-pg-grid.detail-grid {
        grid-template-columns: 1fr;
    }
    body .xy-news-card { gap: 14px; }
    body .xy-news-card .pic {
        flex: 0 0 120px;
        width: 120px;
        height: 88px;
    }
    body .xy-news-card .pic.t-news b { font-size: 22px; }
    body .xy-news-card .pic.t-chart i { font-size: 34px; }
    body .xy-news-card .trow { flex-wrap: wrap; }
    body .xy-news-art .card { padding: 20px 16px; }
    body .xy-news-art .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
    body .xy-news-pg { flex-wrap: wrap; }
    body .xy-news-pg .per { position: static; margin-left: 8px; }
}

/* ============================================================
   移动端适配（≤768px，Figma 移动端-新闻资讯 系列 #269:88786/#269:91892）
   列表：卡片 400×205 r8 阴影，图 100×95.65 左置，标题 16/24 橙 2 行
         + 通栏分隔线 + 摘要 14/22 3 行 + 底部标签行（分类橙 chip + 标签 + 日期）
   详情：标题 20/28 橙居中 → meta 14/22 #787878 → 分隔线 → 摘要盒 rgba(0,0,0,.05)
         → 正文 16/24 两端对齐缩进 2em → 分享行分隔线居中 → 上下篇 16/24
   ============================================================ */
@media (max-width: 768px) {

    /* ---- 分类 tab：改普通位置胶囊组（设计稿无叠条） ---- */
    body .xy-news-tabs { position: static; margin-top: 14px; z-index: auto; }
    body .xy-news-tabs:not(:has(a)) { display: none !important; }

    /* ---- 居中标题区：20/28 居中 + 橙线 35×3 + 副题 12/18 ---- */
    body .xy-news-head { padding: 22px 0 18px; }
    body .xy-news-head h2 { font-size: 20px; line-height: 28px; font-weight: 700; color: rgba(0, 0, 0, .75); }
    body .xy-news-head h2::after { content: ''; display: block; width: 35px; height: 3px; margin: 5px auto 0; background: var(--xy-primary); }
    body .xy-news-head p { margin-top: 5px; font-size: 12px; line-height: 18px; color: rgba(0, 0, 0, .75); }

    /* ---- 顶部检索条（复用侧栏搜索）：去白卡底 ---- */
    body .xy-news-list .side-r > .xy-side-search,
    body .xy-news-detail .side-r > .xy-side-search { background: none; border: 0; padding: 0; }

    /* ---- 新闻卡：400×205 r8 阴影 ---- */
    body .xy-news-card { position: relative; display: block; min-height: 205px; margin-bottom: 16px;
        padding: 16px 11px 44px 4px; border: 0; border-radius: 8px; box-shadow: 0 0 5px rgba(0, 0, 0, .25); }
    body .xy-news-card .pic { position: absolute; left: 24px; top: 34px; flex: none; width: 100px; height: 95.65px; margin: 0; border-radius: 4px; }
    body .xy-news-card .pic.t-news b { font-size: 20px; }
    body .xy-news-card .pic.t-chart i { font-size: 30px; }
    body .xy-news-card .info { display: block; margin-left: 146px; min-height: 128px; }
    body .xy-news-card .trow { display: block; padding-bottom: 8px; border-bottom: 1px solid #EEEEEE; }
    body .xy-news-card h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--xy-primary);
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-height: 48px; }
    body .xy-news-card:hover h3 { color: var(--xy-primary); }
    /* 分类 cap → 底部行首橙色 chip */
    body .xy-news-card .cap { position: absolute; left: 9px; bottom: 9px; display: inline-flex; align-items: center;
        height: 26px; padding: 0 10px; border: 1px solid var(--xy-primary); border-radius: 0 5px 0 5px;
        background: #FEF1E0; color: var(--xy-primary); font-size: 12px; line-height: 18px; }
    body .xy-news-card p { margin: 8px 0 0; font-size: 14px; line-height: 22px; color: rgba(0, 0, 0, .5);
        -webkit-line-clamp: 3; }
    /* 底部行：标签 chips + 日期（go 圆箭头隐藏） */
    body .xy-news-card .brow { position: absolute; left: 9px; right: 11px; bottom: 9px; margin: 0; padding: 0 0 0 78px;
        gap: 6px; overflow: hidden; }
    body .xy-news-card .tag { flex: none; padding: 3px 10px; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .05);
        color: rgba(0, 0, 0, .4); font-size: 12px; line-height: 18px; white-space: nowrap; }
    body .xy-news-card .brow .date { margin-left: auto; margin-right: 0; font-size: 12px; color: rgba(0, 0, 0, .5); white-space: nowrap; }
    body .xy-news-card .go { display: none; }

    /* ---- 详情主卡：扁平化 ---- */
    body .xy-news-art .card { padding: 20px 16px 18px; }
    body .xy-news-art .trow { display: flex; flex-direction: column; align-items: center; gap: 12px; }
    body .xy-news-art h1 { flex: none; width: 100%; text-align: center; font-size: 20px; line-height: 28px;
        font-weight: 700; color: var(--xy-primary); }
    body .xy-news-art .cap { margin-top: 0; height: 26px; display: inline-flex; align-items: center; padding: 0 12px;
        border-radius: 0 5px 0 5px; background: #FEF1E0; border: 1px solid var(--xy-primary); }
    body .xy-news-art .meta { margin-top: 14px; justify-content: flex-start; gap: 16px; padding-bottom: 12px;
        border-bottom: 1px solid rgba(204, 204, 204, .75); font-size: 14px; line-height: 22px; color: #787878; }
    body .xy-news-art .brief { margin-top: 14px; padding: 10px; background: rgba(0, 0, 0, .05); border-radius: 5px; }
    body .xy-news-art .brief b { display: block; font-size: 16px; line-height: 24px; font-weight: 500; color: rgba(0, 0, 0, .9); }
    body .xy-news-art .brief { font-size: 14px; line-height: 22px; color: rgba(0, 0, 0, .75); text-align: justify; }
    body .xy-news-art .content { margin-top: 16px; font-size: 16px; line-height: 24px; color: rgba(0, 0, 0, .85); }
    body .xy-news-art .content img { border-radius: 10px; }
    /* 编辑行 → 分享行右端小字 */
    body .xy-news-art .editor { margin-top: 0; padding: 0; border-top: 0; justify-content: flex-end; gap: 12px;
        font-size: 12px; line-height: 18px; color: #787878; }
    /* 分享行：分隔线 + 居中 */
    body .xy-news-art .foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .15);
        flex-direction: column; align-items: center; gap: 10px; }
    body .xy-news-art .foot .date { display: none; }
    body .xy-news-art .share { justify-content: center; flex-wrap: wrap; }
    body .xy-news-art .share .lb { font-size: 14px; line-height: 22px; color: rgba(0, 0, 0, .5); }
    body .xy-news-art .share .ic { width: 24px; height: 24px; font-size: 13px; }
    /* 上下篇 16/24 */
    body .xy-news-art .pn { margin-top: 14px; }
    body .xy-news-art .pn a { font-size: 16px; line-height: 24px; color: rgba(0, 0, 0, .75); white-space: normal; }
    body .xy-news-art .pn a b { font-weight: 400; color: rgba(0, 0, 0, .75); }
}
