/* =============================================================
   EN Homepage · DISCOVER OUR PROGRAMS — 灰红条形 v10  2026-11-24
   与 v8 的差别：
   · 只保留前 4 个项目（Undergraduate / Master's / PhD / Executive Development）
   · 4 列并排，单块更宽；高度压到 76px，名称与箭头同一行（左名、右箭头）
   · 底色按 灰 → 红 → 灰 → 红 交替（奇偶由 nth-child 决定，不依赖 class，
     免得 CKEditor 存稿时把类名过滤掉）
   · 悬停：渐变沿对角线走一段 + 整块轻微上浮 + 箭头向右伸长
   作用域：全部规则以 .lnvq 开头
   ============================================================= */

.lnvq {
  position: relative;
  background: transparent;
  padding: 46px 0 30px;
  color: #555;
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.lnvq *,
.lnvq *::before,
.lnvq *::after { box-sizing: border-box; }

.lnvq-inner { max-width: none; margin: 0; padding: 0; }

/* ---------- 标题栏：与 NEWS 同款 ---------- */
.lnvq .lnvq-title {
  display: block !important;
  position: relative;
  text-align: center;
  background-image:
    linear-gradient(#9C113C, #9C113C),
    linear-gradient(#9C113C, #9C113C);
  background-repeat: no-repeat;
  background-size: calc(50% - 8.1em) 1px, calc(50% - 8.1em) 1px;
  background-position: left center, right center;
  margin: 0 0 44px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: "Microsoft YaHei", "微软雅黑", Montserrat, Arial, Helvetica, sans-serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1.22 !important;
  color: #1a1a1a !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lnvq .lnvq-title::before,
.lnvq .lnvq-title::after {
  content: none !important;
  display: none !important;
}

/* ---------- 四条色块 ---------- */
.lnvq-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.lnvq-cell {
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
}
.lnvq-cell::before,
.lnvq-cell::after { content: none !important; }

.lnvq-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  /* 高度压扁：一行文字 + 右侧箭头 */
  height: 76px;
  padding: 0 22px !important;
  /* CKEditor 会把 &nbsp; 挪到 span 外，字号行高压 0 不让它撑高 */
  font-size: 0;
  line-height: 0;
  color: #fff !important;
  text-decoration: none !important;
  outline: none;
  /* 渐变放大一点，悬停时靠 background-position 推移产生颜色流动 */
  background-size: 200% 200%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  /* 45° 切角：切 18px */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  filter: drop-shadow(0 1px 2px rgba(26, 2, 10, .10));
  overflow: hidden;
  transition:
    background-position .75s cubic-bezier(.22, .68, .2, 1),
    transform .32s cubic-bezier(.2, .7, .2, 1),
    filter .32s ease;
}

/* 灰 / 红 交替：奇数灰、偶数红 */
.lnvq-cell:nth-child(odd) .lnvq-item {
  background-image: linear-gradient(135deg,
    #8a8a92 0%,
    #70707a 55%,
    #5d5d67 100%);
}
.lnvq-cell:nth-child(even) .lnvq-item {
  background-image: linear-gradient(135deg,
    #b23a5c 0%,
    #9C113C 55%,
    #74123c 100%);
}

/* 悬停：底色沿对角线走 + 整体提亮一点、整块上浮、投影加深 */
.lnvq-item:hover,
.lnvq-item:focus-visible {
  background-position: 100% 100%;
  transform: translateY(-3px);
  filter: brightness(1.06) drop-shadow(0 10px 18px rgba(26, 2, 10, .22));
}

/* ---------- 名称（左） ---------- */
.lnvq .lnvq-name {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(30, 10, 22, .22);
  position: relative;
  z-index: 1;
}

/* ---------- 箭头（右，同一行） ---------- */
.lnvq-arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: block;
  width: 42px;
  height: 8px;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: width .5s cubic-bezier(.22, .68, .2, 1);
}
.lnvq-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .72);
  transition: background-color .3s ease;
}
.lnvq-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(255, 255, 255, .72);
  border-right: 1px solid rgba(255, 255, 255, .72);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color .3s ease;
}
.lnvq-item:hover .lnvq-arrow,
.lnvq-item:focus-visible .lnvq-arrow { width: 66px; }
.lnvq-item:hover .lnvq-arrow::before,
.lnvq-item:focus-visible .lnvq-arrow::before { background: #fff; }
.lnvq-item:hover .lnvq-arrow::after,
.lnvq-item:focus-visible .lnvq-arrow::after {
  border-top-color: #fff;
  border-right-color: #fff;
}

/* 点击卡片不再出现外焦点框。
   鼠标点击虽然也会让链接获得焦点，但 :focus-visible 不会匹配它，
   所以只有键盘 Tab 过来时才用「提亮 + 上浮」提示，不画描边。
   （outline 会被 clip-path 裁掉，这条本来就画在父级 li 上，视觉上是一圈方框，已废弃） */
.lnvq-item:focus { outline: none !important; }
.lnvq-item:focus-visible {
  background-position: 100% 100%;
  transform: translateY(-3px);
  filter: brightness(1.06) drop-shadow(0 10px 18px rgba(26, 2, 10, .22));
}

/* ---------- 入场：整排上浮淡入 ---------- */
.lnvq.lnvq-anim .lnvq-strip {
  transition: opacity .8s ease, transform .9s cubic-bezier(.25, .1, .25, 1);
}
.lnvq.lnvq-anim:not(.lnvq-ready) .lnvq-strip {
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1100px) {
  .lnvq .lnvq-title { font-size: 26px !important; margin-bottom: 34px !important; }
  .lnvq-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .lnvq-item { height: 70px; padding: 0 20px !important; }
  .lnvq .lnvq-name { font-size: 18px !important; }
  .lnvq-arrow { width: 38px; }
}

@media screen and (max-width: 640px) {
  .lnvq { padding: 30px 0 22px; }
  .lnvq .lnvq-title {
    font-size: 18px !important;
    margin-bottom: 26px !important;
    letter-spacing: .03em;
    background-size: 20px 1px, 20px 1px;
    background-position: left 34%, right 34%;
  }
  .lnvq-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .lnvq-item {
    height: 62px;
    padding: 0 16px !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  }
  .lnvq .lnvq-name { font-size: 16px !important; }
  .lnvq-arrow { width: 34px; height: 7px; }
  .lnvq-arrow::after { width: 6px; height: 6px; }
  .lnvq-item:hover .lnvq-arrow,
  .lnvq-item:focus-visible .lnvq-arrow { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .lnvq *, .lnvq *::before, .lnvq *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .lnvq.lnvq-anim:not(.lnvq-ready) .lnvq-strip { opacity: 1; transform: none; }
}
