/* ============================================================
   科技紫微網認證計劃 — 共用樣式 v2
   shared by: index.html, courses.html, advisors.html,
              assistants.html, faq.html, ziwei-cert.html
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --gold:        #A8782A;
  --gold-mid:    #C9982E;
  --gold-deep:   #8C5E1A;
  --gold-light:  #E8BF60;
  --gold-pale:   #F5E8C8;
  --gold-wash:   #FBF4E6;
  --gold-wash2:  #FDF9F0;
  --ink:         #1E160A;
  --ink-mid:     #3A2A12;
  --ink-soft:    #6B5230;
  --ink-dim:     #9B7E54;
  --cream:       #FFFDF5;
  --cream2:      #F7F0E0;
  --cream3:      #EDE0C4;
  --red:         #8B2A1A;
  --red-mid:     #B43A24;
  --border:      #DFC898;
  --border-soft: #EDD9A8;
  --shadow:      rgba(100,70,20,0.10);
  --shadow-md:   rgba(100,70,20,0.18);
  --shadow-lg:   rgba(100,70,20,0.28);

  --fs-body:     20px;
  --fs-body-sm:  19px;
  --fs-lead:     21px;
}

body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.85;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pad-section { padding: 88px 24px; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ════════════════════════════════════════════════
   NAV — 水平 sticky menu，沒有 logo
   PC: menu 左 + CTA 固定右
   Mobile: menu + CTA 同列可滑動
   ════════════════════════════════════════════════ */
#topnav {
  position: fixed; top: 50px; left: 0; right: 0; z-index: 100;
  background: rgba(255,253,245,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 18px var(--shadow);
}
#topnav::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-pale), var(--gold), var(--gold-pale), transparent);
  opacity: .5;
}
.nav-row {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  height: 64px;
}

/* 水平可滑動的 menu 區 */
.nav-menu-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  position: relative;
  margin: 0 -4px;
}
.nav-menu-scroll::-webkit-scrollbar { display: none; }

/* Nav scroll arrows — shown on mobile when menu overflows */
.nav-scroll-btn {
  display: none;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  width: 28px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: var(--gold);
  font-size: 18px; line-height: 1;
  padding: 0;
  opacity: .7;
  transition: opacity .2s;
}
.nav-scroll-btn:hover { opacity: 1; }
@media (max-width: 700px) {
  .nav-scroll-btn { display: inline-flex; }
}


.nav-menu {
  display: flex; align-items: center; gap: 0;
  padding: 0 4px;
  list-style: none;
  white-space: nowrap;
  min-width: max-content;
}
.nav-menu li { flex-shrink: 0; scroll-snap-align: start; }
.nav-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 16px;
  color: var(--ink-mid);
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  position: relative;
}
.nav-menu a:hover { color: var(--gold); background: var(--gold-wash); }
.nav-menu a.is-active {
  color: var(--gold);
  background: var(--gold-wash);
}
.nav-menu a.is-active::after {
  content: '';
  position: absolute; left: 18px; right: 18px; bottom: -2px;
  height: 2px; background: var(--gold);
  border-radius: 2px;
}

/* PC 版固定右 CTA */
.nav-cta-pc {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: #fff !important;
  padding: 10px 22px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  transition: background .2s, transform .15s;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(168,120,42,.28);
}
.nav-cta-pc:hover { background: var(--gold-deep); transform: translateY(-1px); }
.nav-cta-pc::after { content: '›'; font-size: 18px; line-height: 1; margin-left: 2px; }

/* Mobile 版作為 menu 一員的 CTA */
.nav-menu .cta-item a {
  background: var(--gold); color: #fff;
  border-radius: 4px;
  padding: 8px 18px;
  margin-left: 8px;
  font-weight: 700;
}
.nav-menu .cta-item a:hover { background: var(--gold-deep); color: #fff; }
.nav-menu .cta-item a::after { display: none; }
.nav-menu .cta-item a.is-active::after { display: none; }

/* PC 顯示固定 CTA，隱藏 menu 內 CTA */
.cta-item { display: none; }
@media (max-width: 700px) {
  .nav-cta-pc { display: none; }
  .cta-item { display: list-item; }
}

body { padding-top: 64px; }

/* ════════════════════════════════════════════════
   浮水印置底 CTA — 下滑 20% 後浮現
   ════════════════════════════════════════════════ */
/* 置底浮水印底色條 — 僅在手機（float-cta 實際顯示時）出現，
   PC 不再墊灰色透明底色，避免之後套上表頭時出現多條底色 */
.float-cta-backdrop {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  height: 80px;
  background: linear-gradient(to top, rgba(18,12,4,.72) 0%, rgba(18,12,4,0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  backdrop-filter: none;
  display: none;
}
@media (max-width: 640px) {
  .float-cta-backdrop { display: block; }
}
.float-cta-backdrop.show { opacity: 1; }

.float-cta {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 999;
  display: none; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  padding: 14px 24px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 2px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 8px 32px rgba(140,94,26,.45), 0 0 0 4px rgba(255,253,245,.85);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
  transition: opacity .35s ease, transform .35s ease, box-shadow .25s;
}
.float-cta::before {
  content: '✦';
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0;
}
.float-cta::after {
  content: '›';
  font-size: 20px; line-height: 1;
  margin-left: 2px;
}
.float-cta.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: floatPulse 2.8s ease-in-out infinite;
}
.float-cta:hover {
  box-shadow: 0 12px 40px rgba(140,94,26,.55), 0 0 0 4px rgba(255,253,245,.85);
  transform: translateY(-2px) scale(1.02);
  animation: none;
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(140,94,26,.45), 0 0 0 4px rgba(255,253,245,.85), 0 0 0 8px rgba(232,191,96,0); }
  50%      { box-shadow: 0 8px 32px rgba(140,94,26,.45), 0 0 0 4px rgba(255,253,245,.85), 0 0 0 12px rgba(232,191,96,.22); }
}
@media (max-width: 640px) {
  .float-cta {
    display: inline-flex;
    bottom: 14px; right: 50%;
    transform: translateX(50%) translateY(0);
    padding: 12px 20px; font-size: 14px;
    letter-spacing: 1.5px;
  }
  .float-cta.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(50%) translateY(0);
    animation: floatPulseMobile 2.8s ease-in-out infinite;
  }
  .float-cta:hover {
    transform: translateX(50%) translateY(-2px) scale(1.02);
    animation: none;
  }
}
@keyframes floatPulseMobile {
  0%, 100% { box-shadow: 0 8px 32px rgba(140,94,26,.45), 0 0 0 4px rgba(255,253,245,.85), 0 0 0 8px rgba(232,191,96,0); }
  50%      { box-shadow: 0 8px 32px rgba(140,94,26,.45), 0 0 0 4px rgba(255,253,245,.85), 0 0 0 12px rgba(232,191,96,.22); }
}

/* ════════════════════════════════════════════════
   通用版型元素
   ════════════════════════════════════════════════ */
.section-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}
.section-eyebrow::after { background: linear-gradient(to left, transparent, var(--border)); }
.section-eyebrow.left { justify-content: flex-start; }
.section-eyebrow.left::before { display: none; }
.section-eyebrow.left::after { margin-left: 6px; }
.section-eyebrow span {
  font-size: 19px; letter-spacing: 3px; color: var(--red);
  font-weight: 700; white-space: nowrap;
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700;
  color: var(--ink); line-height: 1.3; margin-bottom: 16px;
  letter-spacing: 1px;
}
.section-lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 640px; line-height: 2.0;
}

.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff;
  padding: 16px 36px; font-size: 17px; font-weight: 700;
  letter-spacing: 1.5px; border-radius: 4px;
  border: none; cursor: pointer;
  transition: background .2s, transform .18s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(168,120,42,.28);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(168,120,42,.36); }
.btn-gold::after { content: '›'; font-size: 20px; line-height: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--gold); color: var(--gold);
  padding: 15px 32px; font-size: 16px; font-weight: 600;
  background: transparent; cursor: pointer; letter-spacing: 1.5px;
  border-radius: 4px; transition: all .2s;
}
.btn-outline:hover { background: var(--gold-wash); color: var(--gold-deep); border-color: var(--gold-deep); }
.btn-outline::after { content: '›'; font-size: 18px; line-height: 1; }

/* ════════════════════════════════════════════════
   命理味 — 主星浮水印、八卦底紋、四化暗紋
   ════════════════════════════════════════════════ */

/* 八卦底紋 */
.bagua-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23A8782A' stroke-width='1'%3E%3Cpolygon points='30,4 52,17 52,43 30,56 8,43 8,17'/%3E%3Cline x1='30' y1='4' x2='30' y2='56'/%3E%3Cline x1='8' y1='17' x2='52' y2='43'/%3E%3Cline x1='52' y1='17' x2='8' y2='43'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.bagua-bg-dark {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23E8BF60' stroke-width='1'%3E%3Cpolygon points='30,4 52,17 52,43 30,56 8,43 8,17'/%3E%3Cline x1='30' y1='4' x2='30' y2='56'/%3E%3Cline x1='8' y1='17' x2='52' y2='43'/%3E%3Cline x1='52' y1='17' x2='8' y2='43'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ─── 主星浮水印 — 命理感核心 ───
   把這個 div 加到任何 section 中，相對定位的父層內
   它會顯示散布在背景的紫微十四主星與四化星
*/
.starfield {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 0;
}
.starfield .star-word {
  position: absolute;
  font-family: 'Noto Serif TC', 'STKaiti', '標楷體', serif;
  font-weight: 700;
  color: var(--gold);
  opacity: .055;
  user-select: none;
  white-space: nowrap;
  letter-spacing: 2px;
  line-height: 1;
}
.starfield.on-dark .star-word { color: var(--gold-light); opacity: .065; }
.starfield .sw-1 { top:  4%; left:  3%; font-size: 110px; transform: rotate(-6deg); }
.starfield .sw-2 { top: 14%; right: 5%; font-size: 80px; }
.starfield .sw-3 { top: 32%; left: 38%; font-size: 64px; transform: rotate(4deg); opacity: .035; }
.starfield .sw-4 { top: 48%; right: 12%; font-size: 100px; transform: rotate(-3deg); }
.starfield .sw-5 { top: 62%; left: 8%; font-size: 88px; }
.starfield .sw-6 { top: 76%; right: 22%; font-size: 72px; transform: rotate(5deg); }
.starfield .sw-7 { bottom: 6%; left: 22%; font-size: 96px; transform: rotate(-4deg); }
.starfield .sw-8 { bottom: 14%; right: 4%; font-size: 64px; }
.starfield .sw-9 { top: 22%; left: 18%; font-size: 48px; opacity: .035; }
.starfield .sw-10 { top: 56%; left: 52%; font-size: 56px; opacity: .03; }
.starfield .sw-sm { font-size: 36px !important; opacity: .04 !important; }
@media (max-width: 700px) {
  .starfield .star-word { font-size: 50px !important; }
  .starfield .sw-1, .starfield .sw-4, .starfield .sw-7 { font-size: 64px !important; }
  .starfield .sw-3, .starfield .sw-10 { display: none; }
}

/* 印璽 */
.seal-ornament {
  width: 96px; height: 96px; border-radius: 50%;
  border: 2px solid var(--gold); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-wash);
  position: relative;
}
.seal-ornament::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid var(--border);
}
.seal-ornament svg { width: 46px; height: 46px; opacity: .75; }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
footer.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 24px 100px; text-align: center;
  background: var(--cream2);
  font-size: 15px; color: var(--ink-soft); letter-spacing: 1px;
  line-height: 2;
}
footer.site-footer strong { color: var(--gold); font-family: 'Noto Serif TC', serif; font-size: 17px; letter-spacing: 2px; }
footer.site-footer a { color: var(--gold); }
footer.site-footer a:hover { color: var(--gold-deep); text-decoration: underline; }
.footer-rule { width: 60px; height: 1px; background: var(--border); margin: 16px auto; }

/* ════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,12,4,.62); align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--cream); border: 1px solid var(--border);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 44px 40px; position: relative;
  box-shadow: 0 16px 64px var(--shadow-lg);
  animation: modalIn .28s ease forwards;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-box::before {
  content: ''; display: block; height: 4px;
  background: linear-gradient(to right, var(--gold-pale), var(--gold), var(--gold-pale));
  position: absolute; top: 0; left: 0; right: 0;
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--ink-dim);
  font-size: 24px; cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: var(--ink); }
.modal-header { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.modal-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 2px solid var(--gold); flex-shrink: 0;
  overflow: hidden; background: var(--gold-wash);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif TC', serif; font-size: 32px; font-weight: 700; color: var(--gold);
}
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-name { font-family: 'Noto Serif TC', serif; font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.modal-motto { font-size: 17px; color: var(--ink-dim); font-style: italic; line-height: 1.6; }
.modal-section-title {
  font-family: 'Noto Serif TC', serif; font-size: 13px; color: var(--gold);
  letter-spacing: 3px; margin: 22px 0 12px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.modal-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }
.modal-body { font-size: 18px; color: var(--ink-soft); line-height: 2.0; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-row { height: 64px; padding: 0 14px; gap: 8px; }
  .nav-menu a { font-size: 16px; padding: 10px 13px; letter-spacing: 1px; }
}
@media (max-width: 640px) {
  /* section 本身已有 14px 左右 padding，wrap 不再加額外 padding，避免雙重內縮 */
  .wrap { padding: 0; }
  .pad-section { padding: 56px 14px; }
  body { padding-top: 60px; }
  .nav-row { height: 60px; padding: 0 8px; gap: 4px; }
  .nav-menu a { font-size: 15.5px; padding: 9px 11px; letter-spacing: .8px; }
  .section-title { font-size: 26px; letter-spacing: 0.5px; text-align: center; }
  .section-lead { font-size: 17px; }
  footer.site-footer { padding: 36px 14px 110px; font-size: 14px; }
  .modal-box { padding: 32px 22px; }
  .modal-name { font-size: 22px; }
  .modal-avatar { width: 72px; height: 72px; font-size: 28px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0; }
  .pad-section { padding: 48px 12px; }
}

/* ════════════════════════════════════════════════
   COMPARE TABLE / CARDS
   ════════════════════════════════════════════════ */
.compare-wrap { margin-top: 48px; }
.compare-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.compare-title::before { content: '✦'; color: var(--gold); }

.compare-table-new {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border);
  box-shadow: 0 2px 18px var(--shadow);
  margin-bottom: 56px;
  background: #fff;
}
.compare-table-new thead th {
  padding: 18px 22px; text-align: left;
  font-family: 'Noto Serif TC', serif; font-size: 16px; font-weight: 700; letter-spacing: 1.5px;
}
.compare-table-new thead th:first-child { background: var(--ink); color: #fff; width: 140px; }
.compare-table-new thead th:nth-child(2) {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  position: relative;
}
.compare-table-new thead th:nth-child(2)::before {
  content: '✦'; margin-right: 6px; color: var(--gold-light);
}
.compare-table-new thead th:nth-child(3) { background: var(--ink-soft); color: rgba(255,255,255,.85); font-weight: 500; }
.compare-table-new tbody tr:nth-child(even) td { background: var(--gold-wash2); }
.compare-table-new tbody td {
  padding: 16px 22px; font-size: 16px; border-bottom: 1px solid var(--border-soft);
  vertical-align: top; line-height: 1.8;
}
.compare-table-new tbody tr:last-child td { border-bottom: none; }
.compare-table-new tbody td:first-child {
  font-family: 'Noto Serif TC', serif; font-weight: 700;
  color: var(--ink); font-size: 15px; background: var(--gold-wash) !important;
  border-right: 1px solid var(--border-soft); white-space: nowrap;
  vertical-align: middle;
}
.compare-table-new tbody td:nth-child(2) { color: var(--ink); font-weight: 600; background: rgba(245,232,200,.25); }
.compare-table-new tbody tr:nth-child(even) td:nth-child(2) { background: rgba(245,232,200,.55); }
.compare-table-new tbody td:nth-child(3) { color: var(--ink-dim); }
.compare-check { color: #2A7A2A; font-size: 18px; font-weight: 700; margin-right: 4px; }
.compare-cross { color: #9B2A1A; font-size: 18px; margin-right: 4px; }

.compare-cards-mobile {
  display: none;
  flex-direction: column; gap: 14px; margin-bottom: 44px;
}
.cmp-card-row {
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
}
.cmp-card-aspect {
  background: var(--ink); color: var(--gold-light);
  padding: 11px 16px; font-family: 'Noto Serif TC', serif;
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.cmp-card-aspect::before { content: '✦'; color: var(--gold-light); font-size: 12px; }

.cmp-row-ours {
  padding: 16px 16px 18px;
  background: var(--gold-wash2);
  color: var(--ink);
  position: relative;
  border-left: 3px solid var(--gold);
}
.cmp-row-ours .cmp-side-label {
  display: inline-block;
  font-family: 'Noto Serif TC', serif;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.cmp-row-ours .cmp-side-body { font-size: 17px; line-height: 1.8; color: var(--ink); font-weight: 500; }
.cmp-row-ours .cmp-side-body .compare-check { color: #2A7A2A; }

.cmp-row-them {
  padding: 16px 16px 18px;
  background: var(--gold-wash2);
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  border-top: 1px dashed var(--border);
}
.cmp-row-them .cmp-side-label {
  display: inline-block;
  font-family: 'Noto Serif TC', serif;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  color: var(--ink-dim);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.cmp-row-them .cmp-side-body { font-size: 17px; line-height: 1.8; color: var(--ink-soft); }

@media (max-width: 640px) {
  .compare-table-new { display: none; }
  .compare-cards-mobile { display: flex; }
}

/* ════════════════════════════════════════════════
   報名贈品 — GIFT BLOCK（共用 · 折中清爽版）
   ════════════════════════════════════════════════ */
/* 贈品為加值資訊：低調但清楚可讀，不與價格爭焦點，也不過度淡化 */
.gift-block {
  border: 1px solid var(--border);
  background: var(--gold-wash);
  border-radius: 4px;
  padding: 14px 16px 15px;
  position: relative;
}
.gift-block::before { display: none; }
.gift-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 11px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
}
.gift-label {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
  color: #fff; background: var(--gold);
  border: none; padding: 4px 12px; border-radius: 3px;
}
.gift-label::before { display: none; }
.gift-head-note {
  font-size: 15px; color: var(--ink-soft); letter-spacing: .3px; line-height: 1.35;
}
.gift-head-note b { color: var(--red-mid); font-weight: 700; }
.gift-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.gift-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; color: var(--ink-mid); line-height: 1.5;
}
.gift-list li::before {
  content: '贈'; flex-shrink: 0;
  font-family: 'Noto Serif TC', serif; font-size: 10px; font-weight: 700;
  color: var(--gold-deep); background: #fff;
  border: 1px solid var(--border);
  width: 19px; height: 19px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.gift-list .gift-text { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gift-list .gift-name { font-weight: 400; color: var(--ink); }
.gift-list .gift-val { color: var(--ink-dim); font-weight: 400; font-size: 14px; white-space: nowrap; }

/* ════════════════════════════════════════════════
   NAV — 「課程介紹」hover 下拉次選單
   下拉以 position:fixed 呈現（由 nav.js 計算位置），避免被
   nav-menu-scroll 的 overflow 裁切
   ════════════════════════════════════════════════ */
.nav-menu a.has-sub-toggle { display: inline-flex; align-items: center; }
.nav-menu a.has-sub-toggle::before {
  content: '▾'; font-size: 11px; margin-right: 4px; opacity: .65;
  transition: transform .2s;
}
.nav-menu li.has-sub.is-open a.has-sub-toggle::before { transform: rotate(180deg); }
.nav-subflyout {
  position: fixed; z-index: 1200;
  min-width: 196px;
  background: rgba(255,253,245,.99);
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--gold);
  box-shadow: 0 16px 38px var(--shadow-md);
  padding: 6px; margin: 0;
  list-style: none;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-subflyout.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-subflyout li { flex-shrink: 0; }
/* 00 全部課程 — 以細線與下方分隔 */
.nav-subflyout li.sub-all {
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
  padding-bottom: 2px;
}
.nav-subflyout li.sub-all a { color: var(--gold); font-weight: 700; }
.nav-subflyout li.sub-all a .ns-stage { color: var(--gold-deep); }
.nav-subflyout a {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 14px; font-size: 15.5px; font-weight: 600; letter-spacing: 1px;
  color: var(--ink-mid); border-radius: 4px;
}
.nav-subflyout a:hover { background: var(--gold-wash); color: var(--gold); }
.nav-subflyout a .ns-stage {
  font-family: 'Noto Serif TC', serif; font-size: 12px; font-weight: 700;
  color: var(--gold); letter-spacing: 1px; flex-shrink: 0;
}
.nav-subflyout a .ns-new {
  font-size: 10px; font-weight: 900; letter-spacing: 1px;
  color: #fff; background: var(--red); padding: 1px 6px; border-radius: 2px;
  margin-left: auto;
}

/* ════════════════════════════════════════════════
   畫重點樣式 — 螢光筆效果
   用法：在重要文字外加 <mark class="hl"> 或 <span class="hl">
   ════════════════════════════════════════════════ */
.hl {
  background: linear-gradient(transparent 52%, rgba(232,191,96,0.55) 52%);
  padding: 0 2px;
  border-radius: 1px;
  font-weight: inherit;
}
/* 紅色重點（較強調） */
.hl-red {
  background: linear-gradient(transparent 52%, rgba(139,42,26,0.20) 52%);
  padding: 0 2px;
  border-radius: 1px;
}

/* ════════════════════════════════════════════════
   全站標題 — 手機版靠左、PC 維持置中
   （置中是由各頁面 inline 規則設定，這裡只在手機覆寫）
   ════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .bundle-head .section-eyebrow { text-align: left !important; justify-content: flex-start !important; }
  .bundle-head .section-title { text-align: center !important; }
  .bundle-head .bundle-lead { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
}

/* ════════════════════════════════════════════════
   說明會區塊（取自 index）— 全站共用
   ════════════════════════════════════════════════ */
.session-cta {
  padding: 72px 24px;
  background: linear-gradient(160deg, #F2E4C2 0%, #EAD9AE 50%, #F2E4C2 100%);
  position: relative; overflow: hidden; text-align: center;
  border-top: 1px solid var(--border);
}
.session-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(200,160,64,.22), transparent 70%);
}
.session-cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.session-eyebrow {
  font-size: 13px; letter-spacing: 5px; color: var(--gold-deep);
  font-weight: 700; margin-bottom: 22px;
}
.session-eyebrow::before, .session-eyebrow::after { content: '✦'; margin: 0 12px; font-size: 10px; color: var(--gold); }
.session-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(28px, 5vw, 46px); font-weight: 900;
  line-height: 1.2; letter-spacing: 2px; margin-bottom: 18px; color: var(--ink);
}
.session-title span { color: #9B2D14; }
.session-desc {
  font-size: 17px; color: var(--ink-soft); line-height: 2.0;
  margin: 0 auto 36px; max-width: 540px;
}
.session-meet {
  background: rgba(255,253,245,.6); border: 1px solid var(--border);
  max-width: 460px; margin: 0 auto 12px; text-align: left; overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
}
.session-speaker {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border-soft);
  background: var(--gold-wash);
}
.session-speaker-photo {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 2px solid var(--gold); background: var(--gold-wash);
}
.session-speaker-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right 12%; }
.session-speaker-label { font-size: 13px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 700; }
.session-speaker-name { font-family: 'Noto Serif TC', serif; font-size: 22px; font-weight: 700; color: #9B2D14; letter-spacing: 1px; }
.session-speaker-role { font-size: 14px; color: var(--ink-dim); margin-top: 2px; }
.session-rows { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.session-row { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.session-row-label {
  font-family: 'Noto Serif TC', serif; font-size: 13px; letter-spacing: 3px;
  font-weight: 700; color: var(--gold-deep); width: 2.6em; flex-shrink: 0;
}
.session-feat {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; color: var(--ink-soft); margin-top: 20px; margin-bottom: 26px;
}
.session-feat::before { content: '✦'; color: var(--gold); font-size: 11px; }
.session-btn {
  display: inline-block;
  background: linear-gradient(135deg, #9B2D14 0%, #7A1E0A 100%);
  color: #F5E8C8; font-family: 'Noto Serif TC', serif;
  font-size: 18px; font-weight: 700; letter-spacing: 3px;
  padding: 17px 46px; text-decoration: none;
  border: 1px solid rgba(155,45,20,.5);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 8px 28px rgba(155,45,20,.30);
  transition: transform .2s, box-shadow .2s;
}
.session-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(155,45,20,.40); }
@media (max-width: 640px) {
  .session-cta { padding: 52px 16px; }
  .session-meet { max-width: 100%; }
  .session-desc { font-size: 17px; text-align: left; }
  .session-speaker {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
  }
  .session-speaker-photo {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0;
  }
  .session-speaker-info { flex: 1; min-width: 0; }
}

/* ════ Extracted shared inline styles ════ */
.bundles-inner { position: relative; z-index: 1; }
.specs-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-level-mt { margin-top: 10px; }
.modal-role-label { font-size: 15px; letter-spacing: 3px; color: var(--gold); margin-top: 6px; font-weight: 600; }
.modal-motto { margin-top: 8px; }
.faq-bottom-cta { text-align: center; margin-top: 60px; padding: 36px 0 0; border-top: 1px solid var(--border-soft); }
.faq-bottom-desc { font-size: 17px; color: var(--ink-soft); margin-bottom: 24px; }
.faq-bottom-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
