/* ==========================================================================
   首页板块改造样式  index-sections.css
   适用：common/index.html   —— 必须在 style.css 之后引入（覆盖旧规则）
   目标：
     [1] 第一行两栏重新分配宽度：学院动态加宽、通知公告收窄
     [2] 学院动态头条：加宽后改「左图 + 右文」横排，图片定高裁切不变形
     [3] 通知公告：去掉图片头条后为纯文字列表，窄栏标题自动省略
     [4] 下载中心：去掉 2×2 图文后为两列纯文字列表
   约定：所有列表沿用 style.css 的「蓝色箭头 + 15px 标题 + 灰色日期」，
         行距与「学团工作 / 专业介绍」一致，不另起一套列表样式。
   维护：宽度集中在 [1] 与 [4]，改版心时只需改这两处。
   ========================================================================== */

/* ---------- [1] 两栏宽度重分配 ---------- */
.xy2.xy2-new {
  display: flex;
  align-items: flex-start;        /* 两侧按自身内容高度收尾，不 stretch */
  justify-content: space-between;
}

.xy2.xy2-new > .xyzx {
  float: none;                    /* 覆盖 .fl */
  padding-right: 0;               /* 覆盖原 20px，宽度改为含内边距计算 */
  box-sizing: border-box;
}

.xy2.xy2-new > .xyzx-main {
  width: 760px;                   /* 学院动态：580 -> 760 */
}

.xy2.xy2-new > .xyzx-tz {
  width: 400px;                   /* 通知公告：580 -> 400 */
}

/* 760 + 400 = 1160，.container 剩余 40px 由 space-between 形成栏间距 */

/* ---------- [2] 学院动态头条：左图右文 ---------- */
.xy2-new .xyzx-main .xyzx-first {
  display: flex;
  align-items: stretch;
  height: 300px;                  /* 与原大图等高，不改变这一行的基准高度 */
  overflow: hidden;
  background: #fff;
}

.xy2-new .xyzx-main .xyzx-first img {
  float: none;
  flex: 0 0 56%;
  width: 56%;
  height: 300px;
  object-fit: cover;              /* 加宽后按比例裁切，避免图片被拉伸变形 */
}

.xy2-new .xyzx-main .xyzx-first > div {
  float: none;
  flex: 1 1 auto;
  width: auto;
  height: auto;
  padding: 22px 26px;
  background-color: #f7f9fb;      /* 淡灰底区分图文两块 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.xy2-new .xyzx-main .xyzx-first .bt {
  font-size: 17px;
  line-height: 26px;
}

.xy2-new .xyzx-main .xyzx-first p {
  margin-top: 16px;
  flex: 1 1 auto;                 /* 摘要吃掉剩余高度，日期自然贴在底部 */
}

.xy2-new .xyzx-main .xyzx-first .date {
  margin-top: 0;
}

/* ---------- [3] 列表行：标题自适应省略 + 日期定宽右对齐 ---------- */
/* 视觉仍是「箭头 + 标题 + 日期」一行，只是用 flex 保证窄栏不换行 */
.xy2-new .xyzx-ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xy2-new .xyzx-ul li:after {
  display: none;                  /* .clearfix 伪元素不参与 flex 布局 */
}

.xy2-new .xyzx-ul li a {
  float: none;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xy2-new .xyzx-ul li .date {
  float: none;
  flex: 0 0 86px;
  text-align: right;
}

/* ---------- [4] 下载中心：两列纯文字列表 ---------- */
.bq-qh .lm a img {
  vertical-align: middle;         /* 让「更多」加号在 46px 标题栏里居中 */
}

.bq-qh .xz-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* (1200 - 60) / 2 = 570px 每列 */
  column-gap: 60px;
  margin-top: 5px;
}

.bq-qh .xz-list li {
  height: 40px;
  line-height: 40px;
  margin-top: 20px;
  background: url(../image/xyzx-li.png) no-repeat left center;
  padding-left: 1.5em;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bq-qh .xz-list li a {
  float: none;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bq-qh .xz-list li .date {
  float: none;
  flex: 0 0 86px;
  text-align: right;
  font-size: 14px;
  color: #808080;
}
