/**
 * cy.html 内页：仅 cy-shell 及以下区块样式。
 * 分节标题、面包屑、卡片字号颜色对齐 Figma「专题-26百校争流-2产业」节点 602:9。
 * 顶部首屏与 index 共用 cent-sch.css；首屏副标题与胶囊见下方 .cy-hero-*。
 */

/* ---------- 白底主容器 ---------- */
.cy-shell {
  margin-top: calc(80vh / 10.8);
}

.cy-main {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 71, 161, 0.1);
  padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 28px) clamp(28px, 4vw, 40px);
}

/* ---------- 面包屑：Figma 为白底上的正文，非灰条 ---------- */
.cy-main .page-crumb {
  margin-bottom: clamp(18px, 2.5vw, 26px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  color: #2d2d2d;
  letter-spacing: 0.05em;
}

/* ---------- 分节：中线 + 居中标题 + 右侧「更多」 ---------- */
.cy-section + .cy-section {
  margin-top: clamp(28px, 4vw, 40px);
}

.cy-section__hd {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: clamp(18px, 2.5vw, 24px);
}

.cy-section__hd::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #1952cf;
  transform: translateY(-50%);
  z-index: 0;
}

.cy-section__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 20px;
  background: #fff;
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 700;
  color: #1952cf;
  letter-spacing: 0.04em;
}

.cy-section__title span {
  display: inline-block;
}

.cy-section__more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  padding-left: 12px;
  background: #fff;
  font-size: 17px;
  font-weight: 400;
  color: #999;
  text-decoration: none;
}

.cy-section__more:hover {
  text-decoration: underline;
  color: #616161;
}

/* ---------- 卡片网格 4 列 × 2 行 ---------- */
.cy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.cy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cy-card:hover {
  transform: translateY(-3px);
}

.cy-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #e3eaf2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 缩略图主图：hover 时在框内放大（父级 overflow:hidden 裁切） */
.cy-card__thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.cy-card:hover .cy-card__thumb > img {
  transform: scale(1.08);
}

.cy-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.cy-card__play img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cy-card__name {
  margin: 12px 0 2px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  color: #373737;
}

.cy-card__majors {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
  font-weight: 400;
  color: #373737;
}

/* 内容区底部：整图 pro-banner-2.png，左右顶满 cy-main 白底区域（抵消 main 内边距） */
.cy-content-banner {
  margin-top: clamp(24px, 3vw, 40px);
  margin-left: calc(-1 * clamp(16px, 3vw, 28px));
  margin-right: calc(-1 * clamp(16px, 3vw, 28px));
}

.cy-content-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.cy-content-banner__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cy-content-banner__link:focus-visible {
  outline: 2px solid rgba(25, 82, 207, 0.85);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 992px) {
  .cy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cy-section__more {
    position: static;
    transform: none;
    margin-top: 8px;
    padding-left: 0;
    text-align: center;
    width: 100%;
  }

  .cy-section__hd {
    flex-wrap: wrap;
  }
}

/* 产业区块无数据时占位（线上 bxData 按 industryName 筛选后可能为空） */
.cy-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(20px, 4vw, 36px);
  text-align: center;
  font-size: 15px;
  color: #888;
  background: #f7f9fc;
  border-radius: 8px;
}

/* 卡片角标（高职 / 本科） */
.cy-card__level-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.cy-card__level-tag.is-voc {
  background: #e65100;
}

.cy-card__level-tag.is-ug {
  background: #1976d2;
}
