/* 小豫新增场景：仅作用于关于、校园生活、会员门禁、支付与问小豫。 */

/* 关于页：独立品牌介绍条，不挤压原有首屏说明。 */
.about-page > .xy-about-guide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  align-items: center;
  gap: 10px;
  min-height: 190px;
  margin: 16px 0 28px;
  padding: 22px 10px 0 22px;
  overflow: hidden;
  color: #171321;
  background: linear-gradient(135deg, #f3efff 0%, #e9e1ff 100%);
  border: 1px solid rgba(83, 43, 199, .13);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(47, 30, 89, .07);
  isolation: isolate;
}
.about-page > .xy-about-guide::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -34px;
  bottom: -62px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.xy-about-guide-copy { min-width: 0; padding-bottom: 22px; }
.xy-about-guide-copy > span {
  display: block;
  margin-bottom: 8px;
  color: #6738d6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.xy-about-guide-copy > h2 {
  margin: 0 0 9px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.xy-about-guide-copy > p {
  margin: 0;
  color: #5c556b;
  font-size: 13px;
  line-height: 1.75;
}
.xy-about-guide-visual {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 174px;
  pointer-events: none;
}
.xy-about-guide-visual > img {
  display: block;
  width: 122px;
  height: 174px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 10px rgba(41, 25, 74, .16));
  user-select: none;
}

/* 校园生活：替换原先误用的错误状态图，并在手机端正常显示。 */
.life-page .life-title {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 112px !important;
  align-items: center !important;
  gap: 8px !important;
}
.life-page .life-title > div { min-width: 0; }
.life-page .life-title > img.xy-campus-guide {
  display: block !important;
  visibility: visible !important;
  width: 112px !important;
  height: 168px !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: drop-shadow(0 10px 10px rgba(23, 19, 33, .14));
  pointer-events: none;
  user-select: none;
}

/* K12 会员门禁：保留原卡片、价格、按钮和链接。 */
.k12-access-gate .k12-gate-icon.xy-k12-gate-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 154px;
  height: 166px;
  margin: -8px auto 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(241, 236, 255, .3), rgba(237, 230, 255, .95));
  border-radius: 30px;
}
.k12-access-gate .xy-k12-gate-icon > img {
  display: block;
  width: 140px;
  height: 162px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 9px 9px rgba(62, 35, 127, .15));
  pointer-events: none;
  user-select: none;
}

/* 支付页：只更换指定插图，套餐和支付区域不受影响。 */
.payment-page .payment-hero > img.xy-payment-mascot {
  display: block !important;
  width: 100px !important;
  height: 142px !important;
  max-width: none !important;
  right: 5px !important;
  bottom: 1px !important;
  object-fit: contain !important;
  object-position: right bottom !important;
  filter: drop-shadow(0 9px 9px rgba(0, 0, 0, .24));
  pointer-events: none;
  user-select: none;
}

/* 问小豫：保留原输入、搜索建议、结果链接和关闭按钮。 */
.ai-panel .assistant-intro.xy-assistant-intro {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 116px;
  padding: 8px 14px 8px 10px;
}
.ai-panel .xy-assistant-intro > svg { display: none; }
.ai-panel .xy-assistant-intro > img.xy-assistant-mascot {
  display: block;
  width: 76px;
  height: 108px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 7px 7px rgba(57, 35, 105, .14));
  pointer-events: none;
  user-select: none;
}
.ai-panel .xy-assistant-intro > p { min-width: 0; margin: 0; }

@media (max-width: 480px) {
  .xy-about-guide-copy > h2 {
    font-size: 21px !important;
    white-space: nowrap;
  }
  .life-page .life-title h1 {
    font-size: 28px !important;
    line-height: 1.38 !important;
    letter-spacing: -.035em !important;
  }
}

@media (max-width: 370px) {
  .about-page > .xy-about-guide {
    grid-template-columns: minmax(0, 1fr) 106px;
    padding-left: 18px;
  }
  .xy-about-guide-copy > h2 { font-size: 21px; }
  .xy-about-guide-copy > p { font-size: 12px; }
  .xy-about-guide-visual,
  .xy-about-guide-visual > img { width: 106px; }
  .life-page .life-title { grid-template-columns: minmax(0, 1fr) 96px !important; }
  .life-page .life-title > img.xy-campus-guide { width: 96px !important; height: 152px !important; }
  .payment-page .payment-hero > img.xy-payment-mascot { width: 88px !important; height: 132px !important; }
}

@media (min-width: 768px) {
  .about-page > .xy-about-guide {
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 224px;
    margin-top: 20px;
    padding: 28px 24px 0 34px;
    border-radius: 28px;
  }
  .xy-about-guide-copy { padding-bottom: 28px; }
  .xy-about-guide-copy > span { font-size: 13px; }
  .xy-about-guide-copy > h2 { font-size: 30px; }
  .xy-about-guide-copy > p { max-width: 520px; font-size: 15px; }
  .xy-about-guide-visual { height: 210px; }
  .xy-about-guide-visual > img { width: 180px; height: 210px; }
  .life-page .life-title { grid-template-columns: minmax(0, 1fr) 180px !important; gap: 24px !important; }
  .life-page .life-title > img.xy-campus-guide { width: 180px !important; height: 220px !important; }
  .k12-access-gate .k12-gate-icon.xy-k12-gate-icon { width: 172px; height: 184px; }
  .k12-access-gate .xy-k12-gate-icon > img { width: 156px; height: 180px; }
  .payment-page .payment-hero > img.xy-payment-mascot { width: 142px !important; height: 184px !important; right: 24px !important; }
  .ai-panel .assistant-intro.xy-assistant-intro { grid-template-columns: 92px minmax(0, 1fr); min-height: 136px; }
  .ai-panel .xy-assistant-intro > img.xy-assistant-mascot { width: 92px; height: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-page > .xy-about-guide,
  .xy-about-guide-visual > img,
  .life-page .life-title > img.xy-campus-guide,
  .k12-access-gate .xy-k12-gate-icon > img,
  .payment-page .payment-hero > img.xy-payment-mascot,
  .ai-panel .xy-assistant-intro > img.xy-assistant-mascot {
    animation: none !important;
    transition: none !important;
  }
}
