/* K12 首屏统一：保留各学段主题色，将文案与大型角色收进同一张饱满卡片。 */
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero {
  position: relative !important;
  display: block !important;
  min-height: 590px !important;
  margin: 14px 16px 24px !important;
  padding: 28px 20px !important;
  overflow: hidden !important;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--stage, #6d3aff) 12%, transparent) !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.96), var(--stage-soft, #f0ebff)) !important;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--stage, #6d3aff) 9%, transparent) !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy {
  position: relative !important;
  z-index: 4;
  width: 48% !important;
  max-width: 48% !important;
  min-height: 532px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 14px !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-kicker {
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy h1 {
  max-width: 100% !important;
  margin: 0 !important;
  font-size: clamp(27px, 7.4vw, 35px) !important;
  line-height: 1.18 !important;
  letter-spacing: -1px !important;
  overflow-wrap: anywhere;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy h1 br { display: none !important; }
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy > p {
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.75 !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-actions {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 2px 0 0 !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-actions .hero-equal-cta {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 11px 10px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-proof {
  width: 100% !important;
  margin: 2px 0 0 !important;
  padding: 12px 0 0 !important;
  display: block !important;
  border-top: 1px solid color-mix(in srgb, var(--stage, #6d3aff) 14%, transparent) !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-proof b {
  display: block !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-proof span {
  display: block !important;
  margin-top: 6px !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 340px;
  height: 340px;
  right: -72px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,.56);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--stage, #6d3aff) 7%, transparent), 0 0 0 32px rgba(255,255,255,.18);
}
html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
  position: absolute !important;
  z-index: 1;
  top: 24px !important;
  right: -100px !important;
  bottom: 24px !important;
  left: auto !important;
  width: auto !important;
  height: calc(100% - 48px) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: right center !important;
  transform: none !important;
  filter: drop-shadow(0 18px 16px rgba(32,24,45,.17)) !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .orbit {
  z-index: 0 !important;
  pointer-events: none;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .float-tag {
  z-index: 3 !important;
  padding: 7px 9px !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  box-shadow: 0 5px 12px rgba(30,22,42,.1) !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .tag-major { left: 20px !important; right: auto !important; top: auto !important; bottom: 52px !important; }
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .tag-city { left: 20px !important; right: auto !important; bottom: 18px !important; }
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .hero-sticker {
  z-index: 3 !important;
  top: 18px !important;
  left: 18px !important;
  right: auto !important;
  width: 64px !important;
  height: 64px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}
@media (max-width: 350px) {
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero { min-height: 610px !important; margin: 12px 12px 20px !important; padding: 24px 16px !important; }
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy { min-height: 560px; }
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy h1 { font-size: 25px !important; }
  html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
    top: 60px !important;
    right: -105px !important;
    bottom: 60px !important;
    height: calc(100% - 120px) !important;
  }
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .tag-major { top: auto !important; left: 16px !important; }
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .tag-city { left: 16px !important; }
}


/* 短句与圆标不再悬浮在角色周围：统一成为卡片底部的普通提示信息。 */
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero {
  min-height: 610px !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy {
  min-height: 490px;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual {
  display: contents !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 340px;
  height: 340px;
  right: -72px;
  top: 42%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  pointer-events: none;
}
html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
  bottom: 130px !important;
  height: calc(100% - 154px) !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .float-tag {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 26px !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted, #746d7d) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  transform: none !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .float-tag::before {
  content: "·";
  margin-right: 5px;
  color: var(--stage, #6d3aff);
  font-weight: 800;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .hero-sticker {
  position: static !important;
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--stage, #6d3aff) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  transform: none !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-visual .hero-sticker br {
  display: none !important;
}
@media (max-width: 350px) {
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero { min-height: 630px !important; }
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy { min-height: 500px; }
}


/* 使用去除多余透明边距的完整主体，收回卡片内部并压缩上下空白。 */
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero {
  min-height: 520px !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy {
  min-height: 420px;
}
html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
  top: 28px !important;
  right: 8px !important;
  bottom: 96px !important;
  height: calc(100% - 124px) !important;
}
@media (max-width: 350px) {
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero { min-height: 560px !important; }
  :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy { min-height: 450px; }
  html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
    top: 80px !important;
    right: 4px !important;
    bottom: 140px !important;
    height: calc(100% - 220px) !important;
  }
}


/* 尾巴与文案保持明确间距：左栏略收，完整角色向右并轻微缩小。 */
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy {
  width: 43% !important;
  max-width: 43% !important;
}
html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
  top: 36px !important;
  right: 4px !important;
  bottom: 124px !important;
  height: calc(100% - 160px) !important;
}
@media (max-width: 350px) {
  html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
    top: 80px !important;
    right: 4px !important;
    bottom: 160px !important;
    height: calc(100% - 240px) !important;
  }
}


/* 八学段统一角色高度；仅调整文案宽度与角色水平位置，避免尾巴压字。 */
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-copy {
  width: 41% !important;
  max-width: 41% !important;
}
html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
  top: 28px !important;
  right: 0 !important;
  bottom: 72px !important;
  height: 420px !important;
}
@media (max-width: 350px) {
  html body :is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero > .hero-visual > img {
    top: 80px !important;
    right: 0 !important;
    bottom: 140px !important;
    height: 340px !important;
  }
}


/* 按钮按文字长度收窄，避免边框进入角色尾巴区域。 */
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-actions {
  width: max-content !important;
  max-width: 100% !important;
  align-items: flex-start !important;
}
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-actions a,
:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-actions .hero-equal-cta {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  white-space: nowrap !important;
}

:is(.basic-home, .app-shell:has(.hero-visual img[src*="大学_首页"])) .hero-kicker {
  max-width:none !important;
  white-space:nowrap !important;
  font-size:11px !important;
}
