/* v24: 保留已確認的 Banner 排版，僅試疊淡紫圓形背景花紋。 */
main { background: #fff; }
.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 118px 24px 0;
  background:
    radial-gradient(circle at 3% 75%, rgba(116,141,220,.25), transparent 25%),
    radial-gradient(circle at 100% 0%, rgba(140,119,207,.24), transparent 35%),
    linear-gradient(123deg,#dceaf8 0%,#e8f3fc 34%,#d7e4f4 68%,#d5d6ee 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-circle-purple.webp") center 58% / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .28;
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background: #fff;
  pointer-events: none;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 265px;
  height: 265px;
  left: -163px;
  top: 310px;
  border: 1px solid rgba(91,104,179,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(92,123,202,.06), 0 0 0 86px rgba(123,106,197,.045);
  pointer-events: none;
}
.split-hero {
  position: relative;
  width: min(1180px,100%);
  height: 470px;
  margin: 0 auto;
}
.split-hero__title {
  position: absolute;
  z-index: 2;
  top: 51px;
  left: 4px;
  width: 355px;
}
.split-hero__eyebrow {
  margin: 0 0 13px;
  color: #5c62b2;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .035em;
}
.split-hero h1 {
  margin: 0;
  color: #152b58;
  font-family: "Noto Serif TC","Microsoft JhengHei",serif;
  font-size: 57px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .005em;
}
.split-hero h1 span { display: block; }
.split-hero__subline {
  max-width: 330px;
  margin: 24px 0 0;
  color: #455a80;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.7;
}
.split-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - 360px);
  height: 463px;
  margin: 0;
  overflow: hidden;
  border-radius: 45px 45px 45px 0;
  background: #dfe9ed;
  box-shadow: 0 18px 35px rgba(33,48,102,.12);
}
.split-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
.course-summary {
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 160px minmax(0,1fr);
  align-items: center;
  width: min(1130px,calc(100% - 98px));
  min-height: 212px;
  margin: -74px auto 0;
  transform: translateX(-25px);
  padding: 27px 38px 27px 0;
  border: 1px solid rgba(220,228,244,.82);
  border-radius: 29px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 22px 45px rgba(37,52,105,.15);
}
.course-summary__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-right: 1px solid #e3e7f2;
}
.course-summary__icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #e8e3f8;
  color: #4f56b3;
}
.course-summary__icon svg { width: 52px; height: 52px; }
.course-summary__copy { min-width: 0; padding-left: 31px; }
.course-summary h2 {
  margin: 0 0 8px;
  color: #172f61;
  font: 800 24px/1.4 "Noto Serif TC","Microsoft JhengHei",serif;
}
.course-summary p {
  margin: 0;
  color: #445b7e;
  font-size: 15px;
  line-height: 1.77;
}
.course-summary__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}
.course-summary__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.course-summary__tag svg { width: 17px; height: 17px; }
.course-summary__tag--blue { background: #dcecfb; color: #255f98; }
.course-summary__tag--purple { background: #ecdef9; color: #684caa; }
.course-layout { padding-top: 28px; }
.opening-grid { grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
.opening-grid .overview-card {
  padding: 30px 34px;
  border-radius: 30px;
  background: linear-gradient(140deg,#e3edfa,#ebe5f6);
}
.opening-grid .core-quote {
  border-color: #574f95;
  border-radius: 30px;
  background: linear-gradient(135deg,#2a437c,#554a82);
  box-shadow: 0 12px 28px rgba(37,43,93,.13);
  color: #fff;
}
.opening-grid .core-quote::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(205,190,250,.18);
}
.opening-grid .core-quote span { color: #c6aff6; }
.opening-grid .core-quote p { color: #fff; }
.opening-grid .core-quote { transform: none; }
.course-sidebar { margin-top: 24px; border-radius: 22px; }
.course-sidebar__list a[aria-current="page"] {
  background: linear-gradient(90deg,#30558e,#6654a1);
  color: #fff;
}

@media (max-width: 900px) {
  .hero-visual { padding-top: 100px; }
  .split-hero { height: 650px; }
  .split-hero__title { top: 12px; left: 12px; }
  .split-hero__photo { top: 239px; width: 100%; height: 395px; }
  .course-summary { width: min(760px,calc(100% - 48px)); margin-top: -70px; transform: none; }
  .course-sidebar { margin-top: 18px; }
}
@media (max-width: 560px) {
  .hero-pattern { background-position: 18% bottom; opacity: .18; }
  .opening-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 86px 14px 0; }
  .hero-visual::after { height: 18px; }
  .split-hero { height: auto; }
  .split-hero__title {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 10px 20px;
  }
  .split-hero__eyebrow { margin-bottom: 8px; font-size: 12px; }
  .split-hero h1 { font-size: 39px; line-height: 1.18; }
  .split-hero__subline { margin-top: 13px; font-size: 15px; line-height: 1.6; }
  .split-hero__photo {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 262px;
    border-radius: 28px 28px 25px 0;
  }
  .split-hero__photo img { object-position: center 38%; }
  .course-summary {
    display: block;
    width: calc(100% - 16px);
    min-height: 0;
    margin-top: -29px;
    padding: 20px 22px 24px;
    border-radius: 26px;
  }
  .course-summary__icon { justify-content: flex-start; height: 57px; border: 0; }
  .course-summary__icon span { width: 52px; height: 52px; }
  .course-summary__icon svg { width: 29px; height: 29px; }
  .course-summary__copy { padding-left: 0; }
  .course-summary h2 {
    display: flex;
    align-items: center;
    min-height: 50px;
    margin: -54px 0 13px 67px;
    font-size: 21px;
  }
  .course-summary p { font-size: 14px; line-height: 1.8; }
  .course-summary__tags { gap: 8px; margin-top: 17px; }
  .course-summary__tag { padding: 5px 9px; font-size: 11px; }
  .course-summary__tag svg { width: 14px; height: 14px; }
  .course-layout { padding-top: 15px; }
  .opening-grid .core-quote { transform: none; }
  .opening-grid .overview-card { padding: 24px 22px; border-radius: 24px; }
  .opening-grid .core-quote { border-radius: 24px; }
  .course-sidebar { margin-top: 12px; }
}
