/* ============================================
   学费优惠页 xuebao-youhui.html 专属样式（重构版）
   骨架：居中首屏+横幅图 → 活动墙三月卡 →
        叠加矩阵 → 老学员故事图文 → 参与方式 → 导航
   ============================================ */

.container { box-sizing: border-box; }
body { overflow-x: hidden; }

.xy-center {
  position: relative;
  margin-top: var(--nav-h);
  background: var(--paper);
  padding: 56px 0 0;
  text-align: center;
  overflow: hidden;
}
.xy-center .sec-kicker { display: inline-block; }
.xy-h1 {
  margin: 14px 0 18px;
  font-size: 34px;
  line-height: 1.35;
  color: var(--ink-900);
  white-space: normal;
  overflow-wrap: anywhere;
}
.xy-center-desc {
  max-width: 760px;
  margin: 0 auto 26px;
  line-height: 1.95;
  color: var(--ink-700);
}
.xy-center .ph-actions { justify-content: center; }
.xy-center-fig {
  margin: 40px 0 0;
}
.xy-center-fig img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.xy-center-lines {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  pointer-events: none;
}
.xy-center-lines svg { width: 100%; height: 100%; }

.split { display: block; line-height: 0; }
.split svg { width: 100%; height: 90px; display: block; }

/* 活动墙月卡 */
.xy-month {
  background: #fff;
  border-radius: 14px;
  padding: 26px 22px;
  border-top: 4px solid var(--yellow-400);
  box-shadow: 0 8px 22px rgba(21, 50, 56, .07);
}
.xy-month:nth-child(2) { border-top-color: var(--green-500); }
.xy-month:nth-child(3) { border-top-color: var(--blue-500); }
.xy-month-tag {
  display: inline-block;
  background: var(--yellow-50);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.xy-month h3 { margin: 0 0 12px; }
.xy-month ul { margin: 0; padding-left: 0; list-style: none; }
.xy-month li {
  padding: 7px 0 7px 20px;
  position: relative;
  line-height: 1.75;
  color: var(--ink-700);
  font-size: 14px;
}
.xy-month li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 10px; height: 2px;
  background: var(--yellow-400);
}

/* 叠加矩阵 */
.xy-matrix {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 8px;
}
.xy-matrix-corner { background: transparent; }
.xy-matrix-head {
  background: var(--ink-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 8px;
  text-align: center;
}
.xy-matrix-row {
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}
.xy-cell {
  background: #fff;
  border: 1px solid var(--ink-300);
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}
.xy-yes { background: var(--green-50); color: var(--green-500); border-color: var(--green-100); }
.xy-no { background: var(--yellow-50); color: #B8860B; border-color: var(--yellow-200); }

/* 老学员故事 */
.xy-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.xy-story-txt p { line-height: 1.95; color: var(--ink-700); margin: 0 0 14px; }
.xy-story-fig img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 14px 34px rgba(21, 50, 56, .12);
}

/* 参与方式小卡 */
.xy-step { padding: 24px 22px; }
.xy-step p { line-height: 1.85; color: var(--ink-700); margin: 0; }
.xy-notice-fig { margin: 26px 0 0; }
.xy-notice-fig img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* 链接卡 */
.xy-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 600;
  border-left: 4px solid var(--yellow-400);
  transition: transform .2s ease, box-shadow .2s ease;
}
.xy-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255, 206, 51, .25); }

/* 平板 */
@media (max-width: 900px) {
  .xy-story { grid-template-columns: 1fr; }
  .xy-center-fig img { height: 240px; }
  .xy-h1 { font-size: 26px; white-space: normal; overflow-wrap: anywhere; }
}

/* 手机 */
@media (max-width: 640px) {
  .split svg { height: 56px; }
  .xy-center { padding-top: 32px; }
  .xy-h1 {
    font-size: 18px;
    line-height: 1.5;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .xy-center-desc { font-size: 14px; line-height: 1.85; white-space: normal !important; overflow-wrap: anywhere; }
  .xy-center-fig img { height: 200px; }
  .xy-matrix { grid-template-columns: 1fr repeat(3, 1fr); font-size: 12px; }
  .xy-matrix-row { font-size: 12px; padding: 8px 6px; }
  .ph-actions { flex-direction: column; align-items: stretch; }
  .ph-actions .btn { width: 100%; }
}
