/* 学院门户版式 — 识别色仅通过 .cp-portal { --cp-accent } 下发，禁止写入 :root */

/*
 * 通屏结构（学院独立覆盖，不改公用 SystemThemes）：
 * - Banner / 导航 / 页脚：100% 通屏
 * - 中间内容：max-width 1440 居中
 * 公用 .page { width:960px } / body min-width:980~1200 会卡死移动端，必须拆掉。
 * 硬性指标：移动端单列 + 首屏无页级横向滚动。
 */
html.cp-college-html {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
body.cp-college-portal {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
body.cp-college-portal .page,
body.cp-college-portal #head_top,
body.cp-college-portal .head_top,
body.cp-college-portal .head,
body.cp-college-portal .botHilite {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.cp-college-portal .page {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
}
body.cp-college-portal .foot,
body.cp-college-portal .foot.udfoot {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.72) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid rgba(20, 40, 70, 0.12) !important;
  box-shadow: none !important;
}
body.cp-college-portal .foot .footCnt,
body.cp-college-portal .foot .foot_nav,
body.cp-college-portal .foot .foot_inf {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
body.cp-college-portal .foot .foot_inf {
  padding: 16px 16px 18px !important;
  text-align: center !important;
  color: #666 !important;
  line-height: 22px !important;
}
body.cp-college-portal .foot .foot_inf .info {
  display: block !important;
  min-width: 0 !important;
  max-width: var(--cp-shell-width, 1440px);
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
  text-align: center !important;
  color: #666 !important;
  font-size: 13px !important;
  line-height: 22px !important;
  background: none !important;
  box-sizing: border-box;
}

.cp-portal {
  /* 学院模板统一视觉：白底 + 浅灰线 + 深蓝识别色（参考数据看板） */
  --cp-accent: #164082;
  --cp-text: #1a1a1a;
  --cp-muted: #888;
  --cp-bg: #f5f7fa;
  --cp-card: #fff;
  --cp-line: #e8e8e8;
  --cp-card-radius: 10px;
  --cp-card-shadow: 0 4px 14px rgba(22, 64, 130, 0.08);
  --cp-title-bar: 4px;
  /* 覆盖 cp-content-box 里从公用拷来的品牌色变量 */
  --pt-brand-blue: var(--cp-accent);
  --baseline: 48px;
  /* .page 已有 padding-top:37px 让开固定顶栏，这里不再加，避免 Logo 上方多出一条空白 */
  --cp-head-top-offset: 0px;
  --cp-shell-width: 1440px;
  color: var(--cp-text);
  font-family: "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--cp-bg);
  padding-top: var(--cp-head-top-offset);
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
}

body.cp-college-portal.cp-has-body-bg,
body.cp-college-portal.cp-has-body-bg .page {
  background: transparent !important;
  background-image: none !important;
}
.cp-portal.cp-has-body-bg { position: relative; background: transparent; }
/* 背景层压底；导航单独抬高，勿把 .cp-nav 也压成 z-index:1（否则下拉被通知公告盖住） */
.cp-portal.cp-has-body-bg > :not(.cp-body-bg):not(.cp-float-enroll):not(.cp-nav) {
  position: relative;
  z-index: 1;
}
.cp-body-bg {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}
.cp-body-bg-color,
.cp-body-bg-image {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
.cp-body-bg-image {
  z-index: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.cp-body-bg-color { z-index: 1; }
.cp-body-bg-color.is-aurora { background: linear-gradient(135deg, #7f5af0 0%, #2cb1bc 48%, #f2c14e 100%); }
.cp-body-bg-color.is-sunset { background: linear-gradient(135deg, #ff6b6b 0%, #f7b267 46%, #6c5ce7 100%); }
.cp-body-bg-color.is-ocean { background: linear-gradient(160deg, #0f4c81 0%, #1b9aaa 52%, #7dcfb6 100%); }
.cp-body-bg-color.is-candy { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 48%, #a18cd1 100%); }
.cp-body-bg-color.is-rainbow { background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 25%, #47cf73 50%, #3a7bd5 75%, #8e54e9 100%); }
.cp-body-bg-color.is-night { background: linear-gradient(160deg, #0f2027 0%, #203a43 48%, #2c5364 100%); }

.cp-portal a { color: inherit; text-decoration: none; }
.cp-portal img { max-width: 100%; display: block; }
.cp-empty { color: var(--cp-muted); padding: 16px; background: #fafafa; border: 1px dashed var(--cp-line); }

/* 顶栏背景：学院识别色（--cp-accent） */
.cp-chrome {
  background: var(--cp-accent, #164082);
  border-bottom: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  color: #fff;
}
.cp-chrome-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 28px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}
.cp-brand { display: flex; align-items: center; gap: 22px; min-width: 0; flex: 1 1 auto; }
.cp-brand-mark { display: flex; align-items: center; flex: 0 0 auto; color: inherit; }
.cp-brand-mark img { height: 72px; width: auto; max-width: none; display: block; }
.cp-brand-split { width: 1px; height: 52px; background: rgba(255, 255, 255, 0.45); flex: 0 0 auto; }
.cp-college-title { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; width: max-content; max-width: 100%; }
.cp-back-home { color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1; white-space: nowrap; }
.cp-back-home:hover { color: #fff; }
.cp-school { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.cp-college-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.06em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-college-en {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cp-chrome-tools {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.cp-search { display: flex; align-items: stretch; height: 36px; }
.cp-search input {
  width: 220px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d9dde3;
  border-right: 0;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 36px;
  box-sizing: border-box;
  outline: none;
}
.cp-search input:focus { border-color: var(--cp-accent); }
.cp-search button {
  width: 56px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--cp-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.cp-search button:hover { filter: brightness(1.08); }

.cp-hero { position: relative; width: 100%; min-height: 280px; background: #222; overflow: hidden; border-bottom: 4px solid var(--cp-accent); display: flex; flex-direction: column; }
.cp-hero-slides { position: absolute; inset: 0; }
.cp-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.cp-hero-slide.is-active { opacity: 1; }
.cp-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.cp-hero-slide.cp-empty { display: flex; align-items: center; justify-content: center; color: #fff; opacity: 1; position: relative; min-height: 280px; }
.cp-hero-overlay { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: var(--cp-shell-width); margin: 0 auto; padding: 48px 16px 5px; box-sizing: border-box; display: flex; flex-direction: column; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.cp-mission { font-size: 22px; margin: 0 0 20px; }
.cp-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.cp-hero-stat { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.35); border-top: 3px solid var(--cp-accent); border-radius: 10px; padding: 12px; text-align: center; }
.cp-stat-value { display: block; font-size: 24px; font-weight: 700; }
.cp-stat-value em { font-style: normal; font-size: 14px; margin-left: 2px; }
.cp-stat-label { display: block; font-size: 13px; opacity: .9; }

.cp-nav {
  background: #fff;
  border-bottom: 1px solid var(--cp-line);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
/* 与内容区同为 portal 子级时，导航必须更高；子菜单 z-index 再大也冲不破父级层叠上下文 */
.cp-portal > .cp-nav,
.cp-portal.cp-has-body-bg > .cp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}
.cp-portal > .cp-main,
.cp-portal.cp-has-body-bg > .cp-main {
  z-index: 1;
}
.cp-portal .cp-layout-slot .cont {
  z-index: auto !important;
}
.cp-nav-list {
  max-width: var(--cp-shell-width);
  margin: 0 auto;
  padding: 0 8px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.cp-nav-item { position: relative; }
.cp-nav-item > a {
  display: block;
  padding: 0 20px;
  font-size: 16px;
  line-height: 60px;
  height: 60px;
  font-weight: 400;
  color: var(--cp-text);
  box-shadow: none;
  border: 0;
  transition: background-color .2s, color .2s, font-weight .15s;
}
.cp-nav-item > a:hover,
.cp-nav-item.is-active > a {
  color: #fff;
  background: var(--cp-accent);
  font-weight: 700;
  box-shadow: none;
}
.cp-nav-sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--cp-line);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 60;
}
.cp-nav-item:hover > .cp-nav-sub { display: block; }
.cp-nav-sub a { display: block; padding: 0 16px; font-size: 14px; line-height: 40px; height: 40px; }
.cp-nav-sub a:hover { color: #fff; background: var(--cp-accent); }
.cp-nav-toggle { display: none; margin: 8px 16px; padding: 8px 12px; border: 1px solid var(--cp-line); background: #fff; }

.cp-main { max-width: var(--cp-shell-width); margin: 0 auto; padding: 0 16px 48px; }
.cp-layout-slot { margin-bottom: 20px; }

/* 通知公告横条：跟列宽自适应，禁止 ItemShowMode 写死窄宽 */
.cp-portal .cp-layout-slot .NotiesWebPart,
.cp-portal .cp-layout-slot .NotiesWebPart .box,
.cp-portal .cp-layout-slot .NotiesWebPart .box_mid,
.cp-portal .cp-layout-slot .NotiesWebPart .box_cm {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
/* 14px 字号需要更高行盒；覆盖公用 notesH/NotiesHorizontal 的 25~28px 裁切 */
.cp-portal .cp-layout-slot .NotiesWebPart .box.NotiesHorizontal .box_cm,
.cp-portal .cp-layout-slot .NotiesWebPart .box_cm {
  height: auto !important;
  min-height: 40px !important;
  padding: 6px 10px !important;
  overflow: hidden !important;
}
.cp-portal .cp-layout-slot .notesH {
  --cp-notice-h: 36px;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--cp-notice-h) !important;
  min-height: var(--cp-notice-h) !important;
  line-height: var(--cp-notice-h) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  font-size: 14px !important;
  background-position: 10px center !important;
}
.cp-portal .cp-layout-slot .notesH > div,
.cp-portal .cp-layout-slot .notesH .noteBox {
  width: auto !important;
  max-width: none !important;
  height: var(--cp-notice-h) !important;
  line-height: var(--cp-notice-h) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.cp-portal .cp-layout-slot .notesH ul,
.cp-portal .cp-layout-slot .notesH .noteBox ul,
.cp-portal .cp-layout-slot .notesH .noteBox ul.news,
.cp-portal .cp-layout-slot .notesH ul li,
.cp-portal .cp-layout-slot .notesH .noteBox ul li,
.cp-portal .cp-layout-slot .notesH .noteBox ul li p {
  height: var(--cp-notice-h) !important;
  line-height: var(--cp-notice-h) !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.cp-portal .cp-layout-slot .notesH a,
.cp-portal .cp-layout-slot .notesH .noteBox ul li p a,
.cp-portal .cp-layout-slot .notesH ul li a,
.cp-portal .cp-layout-slot .NotiesWebPart .news li a,
.cp-portal .cp-layout-slot .NotiesWebPart .notesH li,
.cp-portal .cp-layout-slot .NotiesWebPart .notesH li a {
  font-size: 14px !important;
  line-height: var(--cp-notice-h, 36px) !important;
  height: auto !important;
  vertical-align: middle;
}
.cp-portal .cp-layout-slot .notesH .noteBox ul li p span.time,
.cp-portal .cp-layout-slot .notesH span.time {
  font-size: 13px !important;
  line-height: var(--cp-notice-h, 36px) !important;
  height: auto !important;
  top: 0 !important;
}
.cp-layout-slot .cont {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}
/* 专题主题把 .col_d 写死 960px；学院门户壳是 1440，这里按 ItemShowMode 比例铺满 */
.cp-layout-slot .row_area {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 16px;
  box-sizing: border-box;
}
.cp-layout-slot .row_area > .gap {
  display: none !important;
}
.cp-layout-slot .row_area > .clear { display: none !important; }
.cp-layout-slot .row_area > [class^="col_"],
.cp-layout-slot .row_area > [class*=" col_"] {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.cp-layout-slot .row_area > .col_a { flex: 250 1 0% !important; }
.cp-layout-slot .row_area > .col_b { flex: 440 1 0% !important; }
.cp-layout-slot .row_area > .col_c { flex: 700 1 0% !important; }
.cp-layout-slot .row_area > .col_d { flex: 960 1 0% !important; }
.cp-layout-slot .row_area > .col_e { flex: 200 1 0% !important; }
.cp-layout-slot .row_area > .col_f { flex: 300 1 0% !important; }
.cp-layout-slot .row_area > .col_g { flex: 750 1 0% !important; }
.cp-layout-slot .row_area > .col_h { flex: 650 1 0% !important; }
.cp-layout-slot .row_area > .col_i { flex: 475 1 0% !important; }
.cp-layout-slot .row_area > .col_j { flex: 316 1 0% !important; }

/* ========== 内容区模块皮肤：只描外层 .box，禁止给 box_* 子层再加边框（否则像套了好几层） ========== */
.cp-portal .cp-layout-slot .box {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--cp-card-radius);
  box-shadow: var(--cp-card-shadow);
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 0 16px !important;
}
/* 老专题装饰框（左右竖条/底框）一律收掉，只留一层卡片 */
.cp-portal .cp-layout-slot .box .box_lm,
.cp-portal .cp-layout-slot .box .box_rm,
.cp-portal .cp-layout-slot .box .box_bottom,
.cp-portal .cp-layout-slot .box .box_lb,
.cp-portal .cp-layout-slot .box .box_cb,
.cp-portal .cp-layout-slot .box .box_rb {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.cp-portal .cp-layout-slot .box .box_top {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  height: auto !important;
  min-height: 48px !important;
  line-height: 1.3 !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(20, 40, 70, 0.12) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
/* 后台「隐藏」标题 → HTML 带 box_top_hidden；须压过上面的强制显示 */
.cp-portal .cp-layout-slot .box .box_top.box_top_hidden {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}
/* 公用 .box_lt/.box_rt { position:absolute;top:0 } 会把标题拽出 flex 流，导致字落在 padding 区、内容盒切字 */
.cp-portal .cp-layout-slot .box .box_lt,
.cp-portal .cp-layout-slot .box .box_ct,
.cp-portal .cp-layout-slot .box .box_rt {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
}
.cp-portal .cp-layout-slot .box .box_lt {
  display: flex !important;
  align-items: center !important;
  flex: 0 1 auto;
  max-width: none !important;
  min-width: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--cp-text) !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  gap: 10px;
}
.cp-portal .cp-layout-slot .box .box_lt::before {
  content: "";
  display: block;
  width: var(--cp-title-bar);
  height: 1.05em;
  border-radius: 999px;
  background: var(--cp-accent);
  flex: 0 0 auto;
}
.cp-portal .cp-layout-slot .box .box_lt span {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: none !important;
}
.cp-portal .cp-layout-slot .box .box_ct {
  display: block !important;
  flex: 1 1 auto;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.cp-portal .cp-layout-slot .box .box_rt {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto;
  background: none !important;
  border: 0 !important;
  height: auto !important;
  line-height: 1.3 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right !important;
}
.cp-portal .cp-layout-slot .box .box_rt a {
  color: var(--cp-muted) !important;
  font-size: 0 !important;
  font-weight: 400;
  padding: 0 !important;
  line-height: 1.3 !important;
}
.cp-portal .cp-layout-slot .box .box_rt a::after {
  content: "更多";
  font-size: 13px;
  font-weight: 400;
}
.cp-portal .cp-layout-slot .box .box_rt a:hover {
  color: var(--cp-accent) !important;
}
.cp-portal .cp-layout-slot .box .box_mid {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}
.cp-portal .cp-layout-slot .box .box_cm {
  padding: 12px 14px !important;
  background: transparent !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box;
}
/* 自定义模块广告图：按列宽等比缩小，禁止固定高度把左右裁掉 */
.cp-portal .cp-layout-slot .UserDefinedWebPart.box,
.cp-portal .cp-layout-slot .box.UserDefinedWebPart {
  height: auto !important;
}
.cp-portal .cp-layout-slot .UserDefinedWebPart .box_mid,
.cp-portal .cp-layout-slot .UserDefinedWebPart .box_cm {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.cp-portal .cp-layout-slot .UserDefinedWebPart .box_cm p,
.cp-portal .cp-layout-slot .UserDefinedWebPart .box_cm div,
.cp-portal .cp-layout-slot .UserDefinedWebPart .box_cm a,
.cp-portal .cp-layout-slot .UserDefinedWebPart .imgCont {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  text-align: left !important;
}
.cp-portal .cp-layout-slot .UserDefinedWebPart .box_cm {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.cp-portal .cp-layout-slot .UserDefinedWebPart .box_cm img,
.cp-portal .cp-layout-slot .UserDefinedWebPart .fullContainer {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
}
.cp-portal .cp-layout-slot .box img {
  max-width: 100% !important;
}
/* 图片卡片统一：放大、圆角 10px、内边距 6px、图无边框、极浅底 */
.cp-portal {
  --cp-pic-card-bg: #f4f6f8;
  --cp-pic-card-radius: var(--cp-card-radius, 10px);
  --cp-pic-card-pad: 6px;
  --cp-pic-card-w: 220px;
}
.cp-portal .cp-layout-slot .box .imgType {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}
.cp-portal .cp-layout-slot .box .imgType .newsImg2 {
  float: none !important;
  flex: 1 1 0;
  width: auto !important;
  max-width: none;
  min-width: 0;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  box-sizing: border-box;
}
.cp-portal .cp-layout-slot .box .imgType .newsImg2 a {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  box-sizing: border-box;
  background: #f4f6f8;
}
.cp-portal .cp-layout-slot .box .imgType .newsImg2 a > div {
  position: absolute !important;
  left: var(--cp-pic-card-pad) !important;
  top: var(--cp-pic-card-pad) !important;
  right: var(--cp-pic-card-pad) !important;
  bottom: var(--cp-pic-card-pad) !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 6px;
}
.cp-portal .cp-layout-slot .box .imgType .newsImg2 a img {
  position: absolute !important;
  left: var(--cp-pic-card-pad) !important;
  top: var(--cp-pic-card-pad) !important;
  width: calc(100% - 12px) !important;
  height: calc(100% - 12px) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  object-fit: cover;
  border-radius: 6px;
  transform: none !important;
}
.cp-portal .cp-layout-slot .box .imgType .newsImg2 a > div img {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 6px;
}
.cp-portal .cp-layout-slot .box .imgType .newsImg2 a:hover img {
  opacity: 0.92;
  transform: none !important;
}

/*
 * 图片列表 calligraphy / 相册 pic_v：
 * - 卡片壳在 li 上（包住图+标题）
 * - 默认按滚动轨裁切；不滚动多 ul 网格用 :has 放开换行
 */
.cp-portal .cp-layout-slot .box .calligraphy,
.cp-portal .cp-layout-slot .box .calligraphy_list,
.cp-portal .cp-layout-slot .box .pic_v {
  --cp-pic-track-h: 268px;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--cp-pic-track-h) !important;
  min-height: var(--cp-pic-track-h) !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
  white-space: nowrap !important;
}
.cp-portal .cp-layout-slot .box .calligraphy .video_cell,
.cp-portal .cp-layout-slot .box .calligraphy_list .video_cell,
.cp-portal .cp-layout-slot .box .pic_v > div {
  width: auto !important;
  max-width: none !important;
  height: var(--cp-pic-track-h) !important;
  min-height: var(--cp-pic-track-h) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.cp-portal .cp-layout-slot .box .calligraphy .pic,
.cp-portal .cp-layout-slot .box .calligraphy_list .pic,
.cp-portal .cp-layout-slot .box .pic_v .pic {
  height: var(--cp-pic-track-h) !important;
  min-height: 0 !important;
  float: left !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-size: 0;
  line-height: 0;
}
/* 不滚动：多个 ul.pic 才换行成网格。横向滚动会加上 .cp-media-scroll，不走这里 */
.cp-portal .cp-layout-slot .box .pic_v:not(.cp-media-scroll):has(> div > ul.pic + ul.pic) {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}
.cp-portal .cp-layout-slot .box .pic_v:not(.cp-media-scroll):has(> div > ul.pic + ul.pic) > div {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  width: 100% !important;
}
.cp-portal .cp-layout-slot .box .pic_v:not(.cp-media-scroll):has(> div > ul.pic + ul.pic) .pic {
  height: auto !important;
  white-space: normal !important;
  margin: 0 12px 12px 0 !important;
}
/* 学院自有滚动轨：高度跟卡片走，禁止 268px 空带；卡片紧挨着循环 */
.cp-portal .cp-layout-slot .box .pic_v.cp-media-scroll,
.cp-portal .cp-layout-slot .box .calligraphy.cp-media-scroll,
.cp-portal .cp-layout-slot .box .calligraphy_list.cp-media-scroll,
.cp-portal .cp-layout-slot .showcase_wall.cp-media-scroll {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}
.cp-portal .cp-layout-slot .box .cp-media-scroll > div,
.cp-portal .cp-layout-slot .box .cp-media-scroll .shell,
.cp-portal .cp-layout-slot .box .cp-media-scroll .pic,
.cp-portal .cp-layout-slot .box .cp-media-scroll .pic_list,
.cp-portal .cp-layout-slot .box .cp-media-scroll .video_list,
.cp-portal .cp-layout-slot .cp-media-scroll {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}
.cp-portal .cp-layout-slot .box .cp-media-scroll > div,
.cp-portal .cp-layout-slot .box .cp-media-scroll .pic,
.cp-portal .cp-layout-slot .box .cp-media-scroll .cp-media-track {
  height: auto !important;
  min-height: 0 !important;
}
.cp-portal .cp-layout-slot .cp-media-scroll.cp-media-vert {
  height: 280px !important;
  min-height: 280px !important;
}
.cp-portal .cp-layout-slot .box .cp-media-scroll > .cp-media-track,
.cp-portal .cp-layout-slot .box .cp-media-scroll .cp-media-track,
.cp-portal .cp-layout-slot .cp-media-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  float: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  position: relative !important;
  left: 0 !important;
}
.cp-portal .cp-layout-slot .cp-media-vert .cp-media-track {
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
}
.cp-portal .cp-layout-slot .cp-media-scroll .cp-media-track > li,
.cp-portal .cp-layout-slot .cp-media-scroll .cp-media-track > ul.pic {
  flex: 0 0 220px !important;
  width: 220px !important;
  max-width: 220px !important;
  min-width: 0 !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  margin: 0 12px 0 0 !important;
  box-sizing: border-box !important;
}
.cp-portal .cp-layout-slot .cp-media-scroll .cp-media-track > ul.pic > li {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.cp-portal .cp-layout-slot .cp-media-vert .cp-media-track > li,
.cp-portal .cp-layout-slot .cp-media-vert .cp-media-track > ul.pic {
  flex-basis: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
}
.cp-portal .cp-layout-slot .box .calligraphy .pic li,
.cp-portal .cp-layout-slot .box .calligraphy_list .pic li,
.cp-portal .cp-layout-slot .box .pic_v .pic li {
  float: left !important;
  display: inline-block !important;
  vertical-align: top;
  width: var(--cp-pic-card-w) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 12px 0 0 !important;
  padding: var(--cp-pic-card-pad) !important;
  overflow: hidden !important;
  text-align: center;
  box-sizing: border-box;
  white-space: normal !important;
  box-shadow: var(--cp-card-shadow);
  font-size: 14px;
  line-height: 1.4;
  background: var(--cp-pic-card-bg) !important;
  border-radius: var(--cp-pic-card-radius) !important;
}
.cp-portal .cp-layout-slot .box .pic .pic_b {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: 0 !important;
  padding: 0 0 72% !important; /* 4:3 区域，壳已在 li */
  margin: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.cp-portal .cp-layout-slot .box .pic .pic_b:hover {
  border: none !important;
}
.cp-portal .cp-layout-slot .box .pic .pic_b b {
  display: none !important;
}
.cp-portal .cp-layout-slot .box .pic .pic_b a {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px;
  overflow: hidden !important;
  box-sizing: border-box;
}
.cp-portal .cp-layout-slot .box .pic .pic_b img {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 6px;
  object-fit: cover !important;
  vertical-align: top;
  transition: filter .2s ease;
}
/* 视频播放钮：固定 48px 居中，不跟封面图里的图标一起缩放 */
.cp-portal .cp-layout-slot .box .video_cell .pic .pic_b a .btnPlay,
.cp-portal .cp-layout-slot .video_wall .view .btnPlay {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(22, 40, 70, 0.62) !important;
  background-image: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cp-portal .cp-layout-slot .box .video_cell .pic .pic_b a .btnPlay::before,
.cp-portal .cp-layout-slot .video_wall .view .btnPlay::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  width: 0;
  height: 0;
  margin: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.cp-portal .cp-layout-slot .box .video_cell .pic .pic_b a:hover img,
.cp-portal .cp-layout-slot .video_wall .view a:hover img {
  filter: brightness(0.88);
}
.cp-portal .cp-layout-slot .box .video_cell .pic .pic_b a:hover .btnPlay,
.cp-portal .cp-layout-slot .video_wall .view a:hover .btnPlay {
  background: var(--cp-accent, #164082) !important;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 18px rgba(22, 64, 130, 0.35);
}
.cp-portal .cp-layout-slot .box .pic .pic_name {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
  text-align: center !important;
  box-sizing: border-box;
}
.cp-portal .cp-layout-slot .box .pic .pic_name,
.cp-portal .cp-layout-slot .box .pic .pic_name a {
  color: #333 !important;
  font-size: 14px !important;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
  line-height: 1.4 !important;
  font-weight: 400;
  white-space: nowrap !important;
  text-overflow: ellipsis;
  overflow: hidden;
}
.cp-portal .cp-layout-slot .box .pic .pic_name a:hover {
  color: #0055aa !important;
}

/* 相册/视频墙卡片：li 包图+标题；滚动壳保持 overflow 裁切 */
.cp-portal .cp-layout-slot .showcase_wall .shell .pic_list li,
.cp-portal .cp-layout-slot .video_wall .shell .video_list li,
.cp-portal .cp-layout-slot .video_wall .shell .pic_list li {
  background: var(--cp-pic-card-bg) !important;
  border-radius: var(--cp-pic-card-radius) !important;
  padding: var(--cp-pic-card-pad) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: var(--cp-card-shadow);
}
.cp-portal .cp-layout-slot .showcase_wall .shell .pic_list li .view,
.cp-portal .cp-layout-slot .video_wall .shell .video_list li .view {
  position: relative !important;
  height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
.cp-portal .cp-layout-slot .showcase_wall .shell .pic_list li .view > a,
.cp-portal .cp-layout-slot .video_wall .shell .video_list li .view > a {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 62.5% !important; /* 16:10 图区 */
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  overflow: hidden !important;
  border-radius: 6px;
}
.cp-portal .cp-layout-slot .showcase_wall .shell .pic_list li .view img,
.cp-portal .cp-layout-slot .video_wall .shell .video_list li .view img {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px;
}
.cp-portal .cp-layout-slot .showcase_wall .shell .pic_list li .view .title,
.cp-portal .cp-layout-slot .video_wall .shell .video_list li .view .title {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 2px !important;
  background: none !important;
  opacity: 1 !important;
  filter: none !important;
}
.cp-portal .cp-layout-slot .showcase_wall .shell .pic_list li .view .title span,
.cp-portal .cp-layout-slot .video_wall .shell .video_list li .view .title span {
  color: #333 !important;
  font-size: 14px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.cp-portal .cp-layout-slot .showcase_wall.pt-pic-marquee .shell,
.cp-portal .cp-layout-slot .video_wall.pt-pic-marquee .shell {
  overflow: hidden !important;
}
/* 幻灯片：学院 jQuery 交叉淡入 + 页码按钮（与 MSClass 无关） */
.cp-portal .cp-layout-slot .FlashPicWebPart .box_mid,
.cp-portal .cp-layout-slot .FlashPicWebPart .box_cm {
  padding: 0 !important;
}
.cp-portal .cp-layout-slot .FlashPicWebPart .slide,
.cp-portal .cp-layout-slot .slide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready {
  position: relative;
  overflow: hidden;
  border-radius: var(--cp-card-radius, 10px);
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .slideBox {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  background: #111;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .slidePic {
  position: relative !important;
  width: 100% !important;
  left: 0 !important;
  top: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .slidePic > li {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  opacity: 0;
  z-index: 1;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .slidePic > li.is-active {
  z-index: 2;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .slidePic > li > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .slidePic img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  max-width: none !important;
  border: 0 !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .sTitle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  box-sizing: border-box;
}

/* 底栏 + 数字页码 */
.cp-portal .cp-layout-slot .slide.cp-flash-ready .viewBox {
  position: relative !important;
  top: -48px !important;
  height: 48px !important;
  margin: 0 0 -48px 0 !important;
  z-index: 10 !important;
  overflow: visible !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar {
  height: 48px !important;
  background: rgba(22, 64, 130, 0.9) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar > ul.tablist,
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar > ul.tabList {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  background: transparent !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar li {
  display: block !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  vertical-align: middle !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar li a.tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: Arial, "Microsoft YaHei", sans-serif !important;
  line-height: 28px !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: background-color .2s, color .2s, transform .15s;
  cursor: pointer;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar li a.tab:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar li.active a.tab,
.cp-portal .cp-layout-slot .FlashPicWebPart .tabBar li.active a.tab,
.cp-portal .cp-layout-slot .FlashPicWebPart .tabBar li.active .tab {
  background: #fff !important;
  color: var(--cp-accent, #164082) !important;
  transform: scale(1.06);
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar .ad_b {
  right: 120px !important;
  height: 48px !important;
  padding: 0 12px !important;
}
.cp-portal .cp-layout-slot .slide.cp-flash-ready .tabBar .ad_b h3 {
  height: 48px !important;
  line-height: 48px !important;
  font-size: 15px !important;
}
/* 文章列表：单行省略，避免挤换行 */
.cp-portal .cp-layout-slot .box ul li,
.cp-portal .cp-layout-slot [class^="box_"] ul li {
  overflow: hidden;
}
.cp-portal .cp-layout-slot .box ul:not(.news) li a,
.cp-portal .cp-layout-slot [class^="box_"] ul:not(.news) li a {
  display: inline;
  max-width: 100%;
}
/* 图片摘要 / 头条摘要：同一套标题和摘要，图片圆角 10px */
.cp-portal .cp-layout-slot .box .mixType,
.cp-portal .cp-layout-slot .box .notesType {
  display: flex !important;
  align-items: center;
  gap: 12px;
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: none !important;
  box-sizing: border-box;
}
.cp-portal .cp-layout-slot .box .mixType .newsImg {
  float: none !important;
  width: 148px !important;
  flex: 0 0 148px !important;
  height: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6f8;
}
.cp-portal .cp-layout-slot .box .mixType .newsImg a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cp-portal .cp-layout-slot .box .mixType .newsImg a img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
  border-radius: 10px;
}
.cp-portal .cp-layout-slot .box .mixType .newsNotes,
.cp-portal .cp-layout-slot .box .notesType .newsNotes {
  flex: 1 1 auto;
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.cp-portal .cp-layout-slot .box .mixType .newsNotes h1,
.cp-portal .cp-layout-slot .box .notesType .newsNotes h1 {
  height: auto !important;
  margin: 0 0 6px !important;
  text-align: left !important;
  overflow: hidden;
}
.cp-portal .cp-layout-slot .box .mixType .newsNotes h1 a,
.cp-portal .cp-layout-slot .box .notesType .newsNotes h1 a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  max-height: calc(1.45em * 2);
  color: #333 !important;
  text-indent: 0 !important;
}
.cp-portal .cp-layout-slot .box .mixType .newsNotes h1 a:hover,
.cp-portal .cp-layout-slot .box .notesType .newsNotes h1 a:hover {
  color: #0055aa !important;
}
.cp-portal .cp-layout-slot .box .mixType .newsNotes p,
.cp-portal .cp-layout-slot .box .notesType .newsNotes p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0 !important;
  text-indent: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  height: auto !important;
  max-height: calc(1.5em * 2) !important;
  color: #888 !important;
}

/* 新闻列表最终覆盖：字号/颜色贴近参考，禁止公用圆点与 inline 打断 flex */
.cp-portal .cp-layout-slot .box .news li,
.cp-portal .cp-layout-slot [class^="box_"] .news li {
  display: flex !important;
  align-items: center;
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box;
  list-style: none !important;
  background: none !important;
}
.cp-portal .cp-layout-slot .box .news li::before,
.cp-portal .cp-layout-slot .box .news li::after {
  content: none !important;
  display: none !important;
}
.cp-portal .cp-layout-slot .box .news li a,
.cp-portal .cp-layout-slot [class^="box_"] .news li a {
  display: block !important;
  max-width: none !important;
  font-size: 16px !important;
  line-height: 36px !important;
  height: 36px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333 !important;
  background: none !important;
  background-image: none !important;
  padding-left: 0 !important;
}
.cp-portal .cp-layout-slot .box .news li a:hover {
  color: #0055aa !important;
}
.cp-portal .cp-layout-slot .box .list_n li,
.cp-portal .cp-layout-slot .box .list li {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* 图文混排在窄列里自适应 */
.cp-portal .cp-layout-slot .box .pic_v,
.cp-portal .cp-layout-slot .box .pic_t,
.cp-portal .cp-layout-slot .box .news {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.cp-portal .cp-layout-slot .box .pic_v img,
.cp-portal .cp-layout-slot .box .pic_t img,
.cp-portal .cp-layout-slot .box .news img {
  max-width: 100% !important;
  height: auto !important;
}

.cp-empty-layout { margin-bottom: 16px; }
.cp-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
/* 与内容区 .box 同一套卡片：一层白底灰边，不再套内层框 */
.cp-block {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--cp-card-radius);
  box-shadow: var(--cp-card-shadow);
  padding: 0;
  margin: 0 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}
.cp-block-title {
  margin: 0;
  padding: 12px 14px;
  min-height: 48px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--cp-line);
  font-size: 18px;
  font-weight: 700;
  color: var(--cp-text);
  line-height: 24px;
}
.cp-block-title::before {
  content: "";
  display: inline-block;
  width: var(--cp-title-bar);
  height: 1.15em;
  margin-right: 10px;
  vertical-align: -0.15em;
  background: var(--cp-accent);
  border-radius: 999px;
}
.cp-block > .cp-dashboard-grid,
.cp-block > .cp-topic-grid,
.cp-block > .cp-list,
.cp-block > .cp-empty,
.cp-block > .cp-slide,
.cp-block > .cp-album-grid,
.cp-block > .cp-video-grid {
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
}

/* 列表 */
.cp-list { list-style: none; margin: 0; padding: 0; }
.cp-list li { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cp-line); }
.cp-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-list time { color: var(--cp-muted); font-size: 12px; white-space: nowrap; }
.cp-badge-new { display: inline-block; background: var(--cp-accent); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 2px; line-height: 1.4; }

/* 文章新闻幻灯片：大图 + 数字页码叠在图右下 + 底栏标题（对齐经典网校要闻幻灯） */
.cp-block[data-display="slide"] { padding-bottom: 16px; }
.cp-slide { position: relative; overflow: hidden; background: #fff; }
.cp-slide-pic {
  position: relative;
  height: 280px;
  background: #2a2a2a;
  overflow: hidden;
}
.cp-slide-frame {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  z-index: 1;
}
.cp-slide-frame.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.cp-slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-slide-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a3a3a, #555);
}
.cp-slide-pager {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  display: flex;
  gap: 4px;
}
.cp-slide-num {
  min-width: 26px;
  height: 22px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: #4a4a4a;
  color: #fff;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}
.cp-slide-num:hover { background: #333; }
.cp-slide-num.is-active {
  background: var(--cp-accent, #e60012);
  font-weight: 700;
}
.cp-slide-bar {
  position: relative;
  min-height: 44px;
  background: #ebe6dc;
  border-bottom: 3px solid var(--cp-accent);
}
.cp-slide-caption {
  display: none;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-slide-caption.is-active { display: block; }
.cp-slide-caption:hover { color: var(--cp-accent); }

/* 相册 / 视频宫格；特色专题单独做成小链接卡，避免一条撑满一列 */
.cp-album-grid, .cp-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-topic-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.cp-album-card, .cp-video-card, .cp-topic-card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top: 3px solid var(--cp-accent);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  overflow: hidden;
}
.cp-album-cover, .cp-video-cover, .cp-topic-cover { display: block; height: 140px; background: #f3f4f6 center/cover no-repeat; position: relative; }
.cp-album-name, .cp-video-name, .cp-topic-title { display: block; padding: 12px 14px; font-weight: 600; color: var(--cp-text); }
.cp-topic-card {
  flex: 0 0 168px;
  width: 168px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
}
.cp-topic-cover { height: 64px; background-size: cover; }
.cp-topic-title { padding: 6px 8px; font-size: 13px; font-weight: 400; line-height: 1.35; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* 数据看板：在同一层卡片内四等分，不再套第二层边框 */
.cp-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border: 0;
}
.cp-dash-card {
  text-align: center;
  padding: 20px 12px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--cp-line);
  box-sizing: border-box;
}
.cp-dash-card:last-child { border-right: 0; }
.cp-dash-card.cp-empty {
  grid-column: 1 / -1;
  border: 0;
  text-align: left;
  padding: 8px 0;
}
.cp-dash-card .cp-stat-value {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--cp-text);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.cp-dash-card .cp-stat-value em {
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  margin-left: 2px;
}
.cp-dash-card .cp-stat-label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--cp-muted);
  line-height: 1.4;
}
.cp-topics .cp-empty {
  margin: 0;
  max-width: none;
  padding: 16px;
  background: #f7f7f7;
  border: 1px dashed var(--cp-line);
  color: var(--cp-muted);
  font-size: 13px;
}

.cp-float-enroll { position: fixed; right: 16px; bottom: 24px; z-index: 40; }
.cp-float-enroll-inner { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35); border: 1px solid rgba(255, 255, 255, 0.55); border-top: 3px solid var(--cp-accent); padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); text-align: center; min-width: 120px; }
.cp-float-phone { display: block; margin: 8px 0; color: var(--cp-accent); font-weight: 700; }
.cp-float-qr { width: 96px; height: 96px; margin: 0 auto; }

/* 学院首页与二级/最终页共用通屏 pt-footer */
body.cp-college-portal .pt-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 0;
}

@media (max-width: 900px) {
  .cp-hero-stats, .cp-dashboard-grid, .cp-row-2, .cp-album-grid, .cp-video-grid { grid-template-columns: 1fr 1fr; }
  .cp-dash-card:nth-child(2n) { border-right: 0; }
  .cp-dash-card:nth-child(n+3) { border-top: 1px solid var(--cp-line); }
  .cp-college-name { font-size: 22px; }
  .cp-college-en { font-size: 11px; letter-spacing: 0.08em; }
  .cp-slide-pic { height: 220px; }
  .cp-slide-caption { font-size: 14px; padding: 10px 12px; white-space: normal; }
  .cp-dash-card .cp-stat-value { font-size: 28px; }
}

/* ========== 移动端硬性：单列布局 + 页级无横向滚动 ========== */
@media (max-width: 768px) {
  html.cp-college-html,
  body.cp-college-portal,
  body.cp-college-portal .page,
  body.cp-college-portal .cp-portal {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .cp-portal {
    --cp-pic-card-w: 100%;
  }
  .cp-main {
    padding: 0 12px 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .cp-chrome-inner,
  .cp-hero-overlay,
  .cp-nav-list {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Layout 多列 → 单列 */
  .cp-layout-slot .row_area {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .cp-layout-slot .row_area > [class^="col_"],
  .cp-layout-slot .row_area > [class*=" col_"],
  .cp-layout-slot .row_area > .col_a,
  .cp-layout-slot .row_area > .col_b,
  .cp-layout-slot .row_area > .col_c,
  .cp-layout-slot .row_area > .col_d,
  .cp-layout-slot .row_area > .col_e,
  .cp-layout-slot .row_area > .col_f,
  .cp-layout-slot .row_area > .col_g,
  .cp-layout-slot .row_area > .col_h,
  .cp-layout-slot .row_area > .col_i,
  .cp-layout-slot .row_area > .col_j {
    flex: 0 0 auto !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* 公用写死宽度（calligraphy / pic_v / w* / col_* 内）一律吃满 */
  .cp-portal .cp-layout-slot .box,
  .cp-portal .cp-layout-slot .cont,
  .cp-portal .cp-layout-slot .calligraphy,
  .cp-portal .cp-layout-slot .calligraphy_list,
  .cp-portal .cp-layout-slot .pic_v,
  .cp-portal .cp-layout-slot .slide,
  .cp-portal .cp-layout-slot .slideBox,
  .cp-portal .cp-layout-slot [class^="w"],
  .cp-portal .cp-layout-slot [class*=" w"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 图片卡片：移动端单列满宽，容器裁切内部滚动，不撑开页面 */
  .cp-portal .cp-layout-slot .box .imgType,
  .cp-portal .cp-layout-slot .box .mixType,
  .cp-portal .cp-layout-slot .box .notesType {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .cp-portal .cp-layout-slot .box .imgType { flex-wrap: wrap; }
  .cp-portal .cp-layout-slot .box .imgType .newsImg2 {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 140px !important;
  }
  /* 移动端仍保留横向滚动视口（单卡变宽），禁止换成多行网格丢 Marquee */
  .cp-portal .cp-layout-slot .box .calligraphy,
  .cp-portal .cp-layout-slot .box .calligraphy_list,
  .cp-portal .cp-layout-slot .box .pic_v {
    --cp-pic-card-w: min(280px, 78vw);
    --cp-pic-track-h: 250px;
    height: var(--cp-pic-track-h) !important;
    min-height: var(--cp-pic-track-h) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .cp-portal .cp-layout-slot .box .calligraphy .pic li,
  .cp-portal .cp-layout-slot .box .calligraphy_list .pic li,
  .cp-portal .cp-layout-slot .box .pic_v .pic li {
    float: left !important;
    width: var(--cp-pic-card-w) !important;
    max-width: var(--cp-pic-card-w) !important;
    margin: 0 10px 0 0 !important;
  }
  .cp-portal .cp-layout-slot .box .pic .pic_b,
  .cp-portal .cp-layout-slot .box .pic .pic_name {
    max-width: none !important;
  }
  .cp-portal .cp-layout-slot .FlashPicWebPart .slide,
  .cp-portal .cp-layout-slot .FlashPicWebPart .slideBox {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  /* 新闻列表：日期可折，避免撑宽 */
  .cp-portal .cp-layout-slot .box .news li {
    gap: 6px;
  }
  .cp-portal .cp-layout-slot .box .news li > span.time,
  .cp-portal .cp-layout-slot .box .news li p span.time {
    font-size: 12px !important;
  }

  .cp-hero-stats, .cp-dashboard-grid, .cp-row-2, .cp-album-grid, .cp-video-grid {
    grid-template-columns: 1fr !important;
  }
  .cp-topic-card { flex-basis: calc(50% - 6px); width: calc(50% - 6px); }
  .cp-dash-card { border-right: 0; border-top: 1px solid var(--cp-line); }
  .cp-dash-card:first-child { border-top: 0; }
  .cp-chrome-inner { flex-wrap: wrap; padding-top: 12px !important; padding-bottom: 12px !important; }
  .cp-brand { flex-wrap: wrap; gap: 10px; }
  .cp-brand-mark img { height: 48px; max-width: none; }
  .cp-brand-split { height: 28px; }
  .cp-college-name { font-size: 20px; white-space: normal; }
  .cp-college-en { white-space: normal; letter-spacing: 0.06em; }
  .cp-chrome-tools { width: 100%; margin-left: 0; align-items: stretch; }
  .cp-search { width: 100%; }
  .cp-search input { flex: 1 1 auto; width: auto; min-width: 0; }
  .cp-slide-pic { height: 180px; }
  .cp-float-enroll { right: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
}

@media (max-width: 640px) {
  .cp-portal { overflow-x: hidden !important; }
  .cp-nav-toggle { display: inline-block; }
  .cp-nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
  }
  .cp-nav.is-open .cp-nav-list { display: flex; }
  .cp-nav-sub { position: static; display: none; box-shadow: none; border: 0; }
  .cp-nav-item.is-open > .cp-nav-sub { display: block; }
  .cp-hero-overlay { padding-top: 32px; }
}
