/* OPENV｜差異化定位＋推薦課程 v3 */
.course-rec-list { margin: 0; padding: 0; list-style: none; }
.course-rec-list li { position: relative; margin: 0; padding-left: 1.15rem; line-height: 1.55; }
.course-rec-list li::before { content: ''; position: absolute; left: .08rem; top: .68em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--primary); }
.course-rec-list li + li { margin-top: 11px; }
.course-rec-title { display: block; font-weight: 650; }
.course-rec-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.course-rec-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: .72em; line-height: 1.25; }
.course-rec-chip--audience { background: var(--surface2); color: var(--muted); }
.course-rec-chip--aspect { background: var(--accentSoft); color: var(--accentInk); border-color: transparent; font-weight: 700; }
.course--cross { grid-column: 1 / -1; }
.course--cross .course-sum { max-width: 860px; }
.course--cross .course-recommendations { margin-top: 18px; }

.field--course-choice { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); }
.field--course-choice > label { display: block; font-weight: 700; margin-bottom: 5px; }
.field--course-choice select, .field--course-choice input[type="text"] { width: 100%; }
.course-choice-custom { margin-top: 10px; }
.course-choice-custom label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .9em; }
.course-choice-pending { margin-top: 10px; }

.positioning .section-head { margin-bottom: 28px; }
.positioning-compare-head { max-width: 800px; margin-bottom: 18px; }
.positioning-compare-head h3, .positioning-points h3, .positioning-fit h3 { margin: 0 0 8px; }
.positioning-compare-head p, .positioning-fit p { margin: 0; color: var(--muted); }
.positioning-compare { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.positioning-compare-labels, .positioning-compare-row { display: grid; grid-template-columns: minmax(170px,.8fr) 1fr 1.25fr; gap: 0; }
.positioning-compare-labels { background: var(--surface2); font-size: .82rem; font-weight: 750; color: var(--muted); }
.positioning-compare-labels span, .positioning-compare-row > div { padding: 13px 16px; }
.positioning-compare-row + .positioning-compare-row { border-top: 1px solid var(--line); }
.positioning-compare-row > div + div, .positioning-compare-labels span + span { border-left: 1px solid var(--line); }
.positioning-wayne { background: color-mix(in srgb, var(--accentSoft) 42%, transparent); }
.positioning-mobile-label { display: none; font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.positioning-points { margin-top: 30px; }
.positioning-point-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.positioning-point { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 14px; }
.positioning-point summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-weight: 750; }
.positioning-point summary::-webkit-details-marker { display: none; }
.positioning-point summary::after { content: '+'; margin-left: auto; color: var(--primary); }
.positioning-point[open] summary::after { content: '−'; }
.positioning-point p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.positioning-num { color: var(--accentInk); font-size: .78rem; font-weight: 800; }
.positioning-fit { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface2); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.positioning-fit-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 14px 0 0; padding: 0; }
.positioning-fit-list li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; background: var(--surface); font-size: .86rem; }
.positioning-cta { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }

@media (max-width: 760px) {
  .course-rec-chip { white-space: normal; }
  .field--course-choice { padding: 12px; }
  .positioning-compare-labels { display: none; }
  .positioning-compare { border: 0; background: transparent; overflow: visible; }
  .positioning-compare-row { display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
  .positioning-compare-row + .positioning-compare-row { border-top: 1px solid var(--line); margin-top: 10px; }
  .positioning-compare-row > div { padding: 11px 13px; }
  .positioning-compare-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .positioning-mobile-label { display: block; }
  .positioning-point-grid { grid-template-columns: 1fr; }
  .positioning-fit { grid-template-columns: 1fr; padding: 17px; }
  .positioning-cta { justify-content: stretch; }
  .positioning-cta .btn { width: 100%; }
}

/* ================================================================
 * OPENV Warm Professional 1.3｜Morning Light
 * ----------------------------------------------------------------
 * 方向：比正式版更有光，但不走冷白；用極淡淡藍＋淡黃製造晨光空氣感。
 * 淡藍只放在左側文字區與外圍，不靠近人像；人像周圍只留暖白／淡黃。
 * 不使用 blob、描邊圓弧或任何可辨識輪廓；人像維持原始色彩。
 * ================================================================ */
.page-home .sec-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 76% 98% at -4% 18%, rgba(226,241,248,.30) 0%, rgba(226,241,248,.13) 31%, rgba(226,241,248,.035) 50%, rgba(226,241,248,0) 72%),
    radial-gradient(ellipse 86% 98% at 42% 74%, rgba(249,233,176,.28) 0%, rgba(249,233,176,.12) 35%, rgba(249,233,176,.03) 54%, rgba(249,233,176,0) 76%),
    radial-gradient(ellipse 84% 96% at 79% 40%, rgba(255,255,255,.66) 0%, rgba(255,255,255,.30) 35%, rgba(255,255,255,.08) 54%, rgba(255,255,255,0) 74%),
    linear-gradient(116deg, #FDFCF9 0%, #FFFDF9 54%, #FCFAF5 100%);
}
.page-home .sec-hero::before,
.page-home .sec-hero::after { display: none; }
.page-home .sec-hero > .wrap { position: relative; z-index: 1; }

.page-home .sec-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 5px 11px;
  border: 1px solid rgba(198,161,91,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 4px 12px rgba(138,106,44,.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.page-home .sec-hero .hero-copy { position: relative; }
.page-home .sec-hero .hero-title { text-shadow: none; }
.page-home .sec-hero .hero-lead { color: var(--text); }

/* 人像附近只用暖白與淡黃，避免冷色造成膚色偏青的視覺錯覺。 */
.page-home .sec-hero .hero-photo { isolation: isolate; }
.page-home .sec-hero .hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -18% -16% -10%;
  background: radial-gradient(ellipse at 48% 50%, rgba(255,255,255,.50) 0%, rgba(249,235,195,.13) 40%, rgba(249,235,195,.035) 58%, rgba(249,235,195,0) 78%);
  filter: blur(42px);
  pointer-events: none;
}
.page-home .sec-hero .hero-photo img {
  position: relative;
  filter: none;
  border: 1px solid rgba(255,255,255,.80);
  box-shadow: 0 13px 34px rgba(62,73,79,.060), 0 4px 11px rgba(138,106,44,.025);
}
.page-home .sec-hero .btn-primary { box-shadow: 0 6px 16px rgba(47,93,130,.10); }
.page-home .sec-hero .btn-secondary {
  background: rgba(255,255,255,.82);
  border-color: rgba(47,93,130,.30);
  box-shadow: 0 3px 10px rgba(62,73,79,.028);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.page-home .sec-hero .btn-secondary:hover { background: rgba(255,255,255,.98); border-color: var(--primary); }
.page-home .sec-hero .hero-proof { border-top-color: rgba(47,93,130,.11); }

@media (max-width: 767px) {
  .page-home .sec-hero {
    background:
      radial-gradient(ellipse 96% 72% at -12% 10%, rgba(226,241,248,.24) 0%, rgba(226,241,248,.08) 40%, rgba(226,241,248,0) 74%),
      radial-gradient(ellipse 104% 92% at 48% 80%, rgba(249,233,176,.20) 0%, rgba(249,233,176,.07) 42%, rgba(249,233,176,0) 78%),
      radial-gradient(ellipse 96% 82% at 84% 32%, rgba(255,255,255,.52) 0%, rgba(255,255,255,.16) 44%, rgba(255,255,255,0) 78%),
      linear-gradient(145deg, #FDFCF9 0%, #FFFDF9 60%, #FCFAF5 100%);
  }
  .page-home .sec-hero .hero-photo::before {
    inset: -10% -10% -12% -8%;
    filter: blur(36px);
    opacity: .70;
  }
  .page-home .sec-hero .hero-photo img {
    box-shadow: 0 10px 26px rgba(62,73,79,.055), 0 3px 9px rgba(138,106,44,.02);
  }
}

/* 深色模式維持原本專業深色，不套 Morning Light。 */
:root[data-theme="dark"] .page-home .sec-hero { background: var(--bg); }
:root[data-theme="dark"] .page-home .sec-hero .hero-photo::before { display: none; }
:root[data-theme="dark"] .page-home .sec-hero .eyebrow { background: var(--surface); border-color: var(--line); box-shadow: none; }
:root[data-theme="dark"] .page-home .sec-hero .hero-title { text-shadow: none; }
:root[data-theme="dark"] .page-home .sec-hero .hero-lead { color: var(--text); }
:root[data-theme="dark"] .page-home .sec-hero .hero-photo img { filter: none; border-color: var(--line); box-shadow: var(--shadow-1); }
:root[data-theme="dark"] .page-home .sec-hero .btn-primary { box-shadow: none; }
:root[data-theme="dark"] .page-home .sec-hero .btn-secondary { background: transparent; border-color: var(--primary); box-shadow: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-home .sec-hero { background: var(--bg); }
  :root:not([data-theme="light"]) .page-home .sec-hero .hero-photo::before { display: none; }
  :root:not([data-theme="light"]) .page-home .sec-hero .eyebrow { background: var(--surface); border-color: var(--line); box-shadow: none; }
  :root:not([data-theme="light"]) .page-home .sec-hero .hero-title { text-shadow: none; }
  :root:not([data-theme="light"]) .page-home .sec-hero .hero-lead { color: var(--text); }
  :root:not([data-theme="light"]) .page-home .sec-hero .hero-photo img { filter: none; border-color: var(--line); box-shadow: var(--shadow-1); }
  :root:not([data-theme="light"]) .page-home .sec-hero .btn-primary { box-shadow: none; }
  :root:not([data-theme="light"]) .page-home .sec-hero .btn-secondary { background: transparent; border-color: var(--primary); box-shadow: none; }
}

/* ================================================================
 * OPENV Warm Professional 1.4｜Morning Light Motion
 * ----------------------------------------------------------------
 * 只讓背景最底層光感緩慢漂移／呼吸；內容完全不動。
 * 動態刻意控制在低對比、長週期、小位移，避免變成「動畫特效」。
 * ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .page-home .sec-hero::before,
  .page-home .sec-hero::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    will-change: transform, opacity;
  }

  /* 左側：非常淡的晨霧藍，只在外圍漂移，不碰人像。 */
  .page-home .sec-hero::before {
    width: 62vw;
    height: 78%;
    left: -34vw;
    top: -10%;
    background: radial-gradient(ellipse at center,
      rgba(221,239,248,.20) 0%,
      rgba(221,239,248,.085) 35%,
      rgba(221,239,248,.022) 56%,
      rgba(221,239,248,0) 76%);
    filter: blur(52px);
    opacity: .72;
    animation: openv-morning-blue 28s ease-in-out infinite alternate;
  }

  /* 中央偏下：淡黃日光，像被雲層遮住後慢慢流動。 */
  .page-home .sec-hero::after {
    width: 72vw;
    height: 82%;
    left: 2vw;
    bottom: -42%;
    background: radial-gradient(ellipse at center,
      rgba(250,232,169,.22) 0%,
      rgba(250,232,169,.095) 34%,
      rgba(250,232,169,.025) 56%,
      rgba(250,232,169,0) 78%);
    filter: blur(58px);
    opacity: .68;
    animation: openv-morning-gold 34s ease-in-out infinite alternate;
  }

  /* 人像暖光只做極輕微呼吸，不做左右漂移。 */
  .page-home .sec-hero .hero-photo::before {
    animation: openv-photo-halo 26s ease-in-out infinite alternate;
  }

  @keyframes openv-morning-blue {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .58; }
    45%  { transform: translate3d(2.2vw, 1.4%, 0) scale(1.035); opacity: .74; }
    100% { transform: translate3d(4.2vw, -1.2%, 0) scale(1.065); opacity: .63; }
  }

  @keyframes openv-morning-gold {
    0%   { transform: translate3d(-1.2vw, 0, 0) scale(1); opacity: .54; }
    48%  { transform: translate3d(1.8vw, -2.1%, 0) scale(1.045); opacity: .72; }
    100% { transform: translate3d(4vw, -3.2%, 0) scale(1.075); opacity: .60; }
  }

  @keyframes openv-photo-halo {
    0%   { transform: scale(.985); opacity: .62; }
    55%  { transform: scale(1.018); opacity: .72; }
    100% { transform: scale(1.035); opacity: .65; }
  }

  @media (max-width: 767px) {
    .page-home .sec-hero::before {
      width: 96vw;
      height: 58%;
      left: -64vw;
      top: -4%;
      filter: blur(44px);
      opacity: .54;
      animation-duration: 32s;
    }
    .page-home .sec-hero::after {
      width: 116vw;
      height: 58%;
      left: -12vw;
      bottom: -32%;
      filter: blur(48px);
      opacity: .54;
      animation-duration: 38s;
    }
    .page-home .sec-hero .hero-photo::before { animation-duration: 30s; }
  }
}

/* 使用者要求減少動態時，維持 1.3 的靜態 Morning Light。 */
@media (prefers-reduced-motion: reduce) {
  .page-home .sec-hero::before,
  .page-home .sec-hero::after { display: none !important; animation: none !important; }
  .page-home .sec-hero .hero-photo::before { animation: none !important; }
}

/* 深色模式不套用 Morning Light Motion。 */
:root[data-theme="dark"] .page-home .sec-hero::before,
:root[data-theme="dark"] .page-home .sec-hero::after { display: none !important; animation: none !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-home .sec-hero::before,
  :root:not([data-theme="light"]) .page-home .sec-hero::after { display: none !important; animation: none !important; }
}
