/* ============================================================
   CCTM 主題樣式 — 從 mockup 完整移植
   ============================================================ */

:root {
  --ink: #171b34;
  --muted: #66708a;
  --paper: #ffffff;
  --soft: #f5f3fb;
  --mist: #ebe8f5;
  --line: #ded9ea;
  --navy: #082d78;
  --deep-blue: #061b49;
  --purple: #540078;
  --violet: #7a45b2;
  --teal: #147078;
  --green: #3d7661;
  --gold: #d7b557;
  --rose: #b84b48;
  --blue: #315fbd;
  --shadow: 0 18px 48px rgba(22, 20, 62, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(84,0,120,.13), transparent 34%),
    linear-gradient(180deg, #f8f7fc 0%, var(--soft) 48%, #eef2fb 100%);
  font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════
   導覽列
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(84,0,120,.12);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 8px;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--navy);
  box-shadow: 0 4px 14px rgba(8,45,120,.2);
}
.brand-text strong { display: block; color: var(--navy); font-size: 14px; line-height: 1.3; white-space: nowrap; }
.brand-text span   { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .02em; display: block; white-space: nowrap; }

/* Desktop nav links (centre) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-links > a,
.nav-dd-toggle {
  background: none;
  border: none;
  color: #4a5568;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: background .13s, color .13s;
  text-decoration: none;
  height: 40px;
  letter-spacing: -.01em;
}
.nav-links > a:hover,
.nav-dd-toggle:hover,
.has-dd.dd-open .nav-dd-toggle { background: #f0eaf8; color: var(--purple); }

/* Desktop dropdown */
.nav-item { position: relative; }
.dd-arr { font-size: 10px; transition: transform .2s; }
.has-dd.dd-open .dd-arr { transform: rotate(180deg); }

.nav-dd-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(22,20,62,.15);
  z-index: 9999;
  padding: 6px 0;
}
.has-dd.dd-open .nav-dd-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear 0s;
}
.nav-dd-panel a {
  display: block;
  padding: 10px 18px;
  color: #526071;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.nav-dd-panel a:hover { background: #f0eaf8; color: var(--purple); }

/* Right icon actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-icon-btn {
  background: none;
  border: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  cursor: pointer;
  position: relative;
  transition: background .13s, color .13s;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: #f0eaf8; color: var(--purple); }

.nav-icon-btn svg { width: 21px; height: 21px; }

.cart-badge {
  position: absolute;
  top: 5px; right: 5px;
  background: var(--purple);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Member dropdown */
.member-wrap { position: relative; }
.member-btn--in {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  width: 38px; height: 38px;
  padding: 0;
  overflow: hidden;
}
.member-btn--in:hover, .member-btn--in[aria-expanded="true"] { border-color: var(--purple); }

.member-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(22,20,62,.13);
  z-index: 300;
  padding: 6px 0;
  overflow: hidden;
}
.member-dropdown.open { display: block; }
.member-dd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.member-dropdown a {
  display: block;
  padding: 9px 18px;
  color: #526071;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.member-dropdown hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.member-dropdown a:hover { background: #f0eaf8; color: var(--purple); }

/* Hamburger — show only on mobile */
.nav-toggle { display: none; }

/* ══════════════════════════════════════
   手機滑入選單
   ══════════════════════════════════════ */
.mob-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 400;
  transition: opacity .25s;
}
.mob-overlay.open { display: block; }

.mob-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: #fff;
  z-index: 500;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mob-panel.open { transform: translateX(0); }

.mob-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mob-close {
  background: none; border: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: background .13s;
}
.mob-close:hover { background: #f0eaf8; color: var(--purple); }

.mob-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
}
.mob-nav > a {
  display: block;
  padding: 13px 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
  text-decoration: none;
}
.mob-nav > a:hover { background: #f5f3fb; color: var(--purple); border-left-color: var(--purple); }

/* Mobile accordion */
.mob-acc {}
.mob-acc-toggle {
  width: 100%;
  background: none; border: none;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s;
}
.mob-acc-toggle:hover,
.mob-acc.mob-acc-open .mob-acc-toggle { background: #f5f3fb; color: var(--purple); border-left-color: var(--purple); }
.mob-arr { font-size: 12px; transition: transform .2s; }
.mob-acc.mob-acc-open .mob-arr { transform: rotate(180deg); }

.mob-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: #faf9fd;
}
.mob-acc-panel a {
  display: block;
  padding: 11px 22px 11px 36px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .12s;
}
.mob-acc-panel a:hover { color: var(--purple); }

.mob-divider { height: 1px; background: var(--line); margin: 8px 22px; }
.mob-member-btn {
  display: block;
  margin: 8px 16px 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: opacity .15s;
}
.mob-member-btn:hover { opacity: .88; }

/* ══════════════════════════════════════
   AI 詢問彈窗
   ══════════════════════════════════════ */
.ai-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 600;
  align-items: flex-end;
  justify-content: flex-end;
}
.ai-modal.open { display: flex; }

.ai-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
.ai-modal-box {
  position: relative;
  z-index: 1;
  width: 380px;
  max-width: 95vw;
  height: 520px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(22,20,62,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 24px;
  animation: aiSlideUp .25s ease;
}
@keyframes aiSlideUp { from { transform: translateY(40px); opacity:0; } to { transform: none; opacity:1; } }

.ai-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.ai-modal-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ai-modal-close:hover { background: rgba(255,255,255,.35); }

.ai-modal-chatbox {
  flex: 1;
  overflow-y: scroll !important;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--soft);
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto !important;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}
.ai-modal-chatbox::-webkit-scrollbar { width: 6px; }
.ai-modal-chatbox::-webkit-scrollbar-track { background: transparent; }
.ai-modal-chatbox::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

.ai-modal-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.ai-modal-input-wrap input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.ai-modal-input-wrap input:focus { border-color: var(--purple); }
.ai-modal-input-wrap button {
  background: linear-gradient(135deg, var(--navy), var(--purple));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.ai-modal-input-wrap button:hover { opacity: .88; }

.btn-primary {
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(110deg, #1769e0, #7450e8);
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(82,110,225,.45);
  transition: opacity .15s, transform .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .01em;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

.solid-btn,
.ghost-btn {
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  letter-spacing: .02em;
}
.solid-btn:hover,
.ghost-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: #fff;
  color: #fff;
}

.dark-btn {
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  letter-spacing: .02em;
}
.dark-btn:hover {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  font-size: 13px;
}

/* ── 漢堡選單（行動裝置） ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
  font-size: 20px;
  min-height: 40px;
}

/* ── Hero 輪播 ── */
.hero {
  min-height: 720px;
  position: relative;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,27,73,.78) 0%, rgba(8,45,120,.5) 34%, rgba(8,45,120,.12) 60%, rgba(8,45,120,0) 82%);
}

.hero .hero-copy h1,
.hero .hero-copy p,
.hero .hero-logo-lockup,
.hero .eyebrow,
.hero .hero-trust {
  text-shadow: 0 2px 14px rgba(3,12,40,.55);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(to top, var(--soft), transparent);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 86px 22px 94px;
}
.hero-copy {
  max-width: 680px;
}

/* 輪播控制箭頭 */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.3); }

/* 輪播指示點 */
.hero-dots {
  position: absolute;
  bottom: 124px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.eyebrow {
  color: #f2ca72;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 16px;
}

.hero-logo-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-logo-lockup img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(0,0,0,.24);
}

.hero-logo-lockup span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero-logo-lockup strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.18;
  letter-spacing: -.01em;
}

.hero h1 {
  font-size: clamp(1.1rem, 2.5vw, 2.1rem) !important;
  line-height: 1.22;
  letter-spacing: -.02em;
  max-width: 640px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #74d8ff, #b8a4ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 30px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .hero-actions { justify-content: center; }
}

/* ── Hero V2 樣式 ── */
.hero-inner-v2 {
  grid-template-columns: 1fr;
  max-width: 860px;
  padding: 100px 40px 110px;
}
.hero-content-v2 { max-width: 720px; }
.hero-eyebrow-v2 {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: 28px;
}
.hero-h1-v2 {
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  font-weight: 900;
}
.hero-gold { color: var(--gold); }
.hero-sub-v2 {
  font-size: 20px;
  color: rgba(255,255,255,.75);
  margin: 0 0 22px;
  font-weight: 700;
}
.hero-divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero-copy-v2 {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,.8);
  margin: 0 0 36px;
}
.hero-copy-v2 strong { color: #fff; }

/* ── 最新消息：角落 hover 面板 ── */
.quick-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}
.quick-panel-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px;
  padding: 9px 16px 9px 10px;
  cursor: pointer;
  transition: background .2s;
}
.quick-panel-trigger:hover,
.quick-panel:hover .quick-panel-trigger,
.quick-panel:focus-within .quick-panel-trigger {
  background: rgba(255,255,255,.22);
}
.quick-trigger-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9c85f;
  box-shadow: 0 0 8px #e9c85f;
  animation: qpulse 2s infinite;
  flex-shrink: 0;
}
@keyframes qpulse { 0%,100%{opacity:1} 50%{opacity:.45} }
.quick-trigger-label {
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}
.quick-grid {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  width: 300px;
  background: rgba(10,20,50,.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s;
}
.quick-panel:hover .quick-grid,
.quick-panel:focus-within .quick-grid,
.quick-panel.qp-open .quick-grid {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 11px 13px;
  transition: background .15s;
  text-decoration: none;
}
.quick-item:hover { background: rgba(255,255,255,.15); }
.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}
.quick-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quick-item-text strong { display: block; font-size: .84rem; font-weight: 800; color: #fff; line-height: 1.3; }
.quick-item-text span { font-size: .75rem; color: rgba(255,255,255,.6); display: block; line-height: 1.4; }
.quick-item-text time { font-size: .7rem; color: rgba(255,255,255,.38); display: block; margin-top: 2px; }

/* ── 通用 Section ── */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  color: var(--navy);
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 860px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(84,0,120,.1);
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}
.ai-band .tag {
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 13px;
  letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.4);
}

/* ── 四步驟 ── */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step, .course-card, .consult-card, .faq-item, .chat-box, .tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23,32,51,.06);
}

.step {
  padding: 28px 22px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  background-image: var(--step-bg);
  background-size: cover;
  background-position: center;
}

/* 漸層覆蓋讓文字清晰 */
.step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,45,120,.78) 0%, rgba(84,0,120,.72) 100%);
  z-index: 0;
  border-radius: 7px;
  transition: background .25s;
}

.step > * {
  position: relative;
  z-index: 1;
}

/* 文字改白色 */
.step .step-num { color: rgba(255,255,255,.6); }
.step h3 { color: #fff !important; }
.step p  { color: rgba(255,255,255,.82) !important; }

a.step-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}

a.step-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(84,0,120,.35);
}

a.step-link:hover::after {
  background: linear-gradient(160deg, rgba(8,45,120,.6) 0%, rgba(84,0,120,.55) 100%);
}

.step-disabled {
  cursor: default;
}
.step-disabled::after {
  background: linear-gradient(160deg, rgba(8,45,120,.82) 0%, rgba(60,0,100,.78) 100%);
}

.step-num {
  color: var(--purple);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
}

.step h3, .course-card h3, .consult-card h3, .tool-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.35;
  font-size: 18px;
}

.course-top h3 {
  color: #fff !important;
}

.step p, .course-card p, .consult-card p, .tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── 課程區 ── */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: #536174;
  min-height: 38px;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  background: linear-gradient(135deg, var(--navy), var(--purple));
  border-color: var(--purple);
  color: #fff;
}

.courses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 1100px) {
  .courses { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .courses { grid-template-columns: 1fr; }
}

.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-top h3 { color: #fff; }

.course-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 0;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-top {
  min-height: 118px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(215,181,87,.34), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--purple));
}

.course-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.course-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.price {
  color: var(--rose);
  font-weight: 900;
  font-size: 18px;
}

/* 企業診斷 */
.consult-card {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.diagnosis {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3d4b5c;
  font-weight: 700;
  font-size: 14px;
}

.score {
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--navy);
  font-weight: 900;
}

/* ── AI Band ── */
.ai-band {
  background:
    radial-gradient(circle at 18% 4%, rgba(215,181,87,.18), transparent 32%),
    linear-gradient(135deg, var(--deep-blue) 0%, var(--navy) 52%, var(--purple) 100%);
  color: #fff;
}

.ai-band .section-head h2 { color: #fff; }
.ai-band .section-head p { color: rgba(255,255,255,.68); }

.ai-layout {
  display: block;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px;
}

.tool-card {
  padding: 20px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.tool-card h3 { color: #fff; }
.tool-card p { color: rgba(255,255,255,.68); }
.tool-card--link { display: block; text-decoration: none; cursor: pointer; transition: background .2s; }
.tool-card--link:hover { background: rgba(255,255,255,.15); }

/* Chat box */
.chat-box {
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 470px;
}

.chat-head {
  background: linear-gradient(90deg, #f5f7ff, #fbf7ff);
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  color: var(--navy);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.messages {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: #fbfcfb;
  overflow-y: auto;
}

.bubble {
  max-width: 78%;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}

.bot {
  background: #efecf7;
  color: #263446;
}

.user {
  justify-self: end;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  color: #fff;
}

.quick-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 18px 12px;
  background: #fbfcfb;
}

.prompt {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 12px;
  color: #536174;
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-input input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  min-width: 0;
}

/* ── FAQ ── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.faq-item { padding: 20px; }
.faq-item strong { display: block; color: var(--navy); margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Footer CTA ── */
.footer-cta {
  margin-top: 20px;
  background:
    radial-gradient(circle at 82% 20%, rgba(215,181,87,.32), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--purple));
  color: #fff;
  border-radius: 8px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

.footer-cta p { margin: 0; color: rgba(255,255,255,.72); }

/* ── Footer ── */
.site-footer {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(215,181,87,.18) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 100%, rgba(84,0,120,.6) 0%, transparent 45%),
    linear-gradient(160deg, #0a3490 0%, #1a0060 55%, #2a006e 100%) !important;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  padding: 56px 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr) 260px;
  gap: 40px;
  padding-bottom: 48px;
  align-items: start;
}
.footer-brand, .footer-col { align-self: start; }
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-logo-row img { width: 52px; height: 52px; border-radius: 50%; }
.footer-brand strong { font-size: 15px; color: #fff; line-height: 1.4; }
.footer-brand p { margin: 5px 0 0; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-brand a { color: rgba(255,255,255,.65); }
.footer-brand a:hover { color: var(--gold); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,.45);
  letter-spacing: .12em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.site-footer .footer-col a {
  display: block !important;
  color: rgba(255,255,255,.75) !important;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .18s;
  text-decoration: none;
}
.site-footer .footer-col a:hover { color: var(--gold) !important; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-tagline { color: var(--gold); font-weight: 700; font-style: italic; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.about-block {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
}
.about-block h3 { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.about-block ul, .about-block ol { margin: 0; padding-left: 20px; }
.about-block li { margin-bottom: 6px; }
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ── Page Tabs ── */
.page-tabs-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, #2d0060 100%);
  padding: 0 22px;
}
.page-tabs {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.page-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  margin-bottom: -1px;
  font-family: inherit;
  letter-spacing: .02em;
  transition: color .18s, border-color .18s;
}
.page-tab.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.page-tab:hover:not(.active) {
  color: rgba(255,255,255,.85);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.team-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--purple));
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,.3);
}
.team-photo--placeholder::after { content: '👤'; }
.team-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.team-info strong { font-size: 18px; color: var(--ink); }
.team-title { font-size: 13px; color: var(--accent); font-weight: 600; }
.team-specialty { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.team-bio { font-size: 14px; margin-top: 8px; color: var(--ink); }

/* ── Team Full Profiles ── */
.team-full {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}
.team-profile {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(22,20,62,.08);
  overflow: hidden;
}
.team-profile-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--purple) 100%);
  color: #fff;
}
.team-profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,.15) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border: 3px solid rgba(255,255,255,.4);
}
.team-profile-photo.team-photo--placeholder::after { content: '👤'; font-size: 40px; }
.team-profile-name {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 6px;
  color: #fff;
}
.team-profile-title {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin: 0;
  font-weight: 600;
}
.team-profile-body {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.team-profile-section h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--mist);
}
.team-profile-section ul {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: disc;
}
.team-profile-section li {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 2px;
}
@media (max-width: 680px) {
  .team-profile-head { flex-direction: column; text-align: center; padding: 24px 20px; }
  .team-profile-body { padding: 20px; grid-template-columns: 1fr; }
}

/* ── 影音牆 Video Grid ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(22,20,62,.08);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(22,20,62,.14); }
.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy);
  overflow: hidden;
}
.video-thumb-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.video-thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--navy),var(--purple)); }
.video-thumb-placeholder span { font-size:36px; color:rgba(255,255,255,.5); }
.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.22);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity .18s;
}
.video-card:hover .video-play-icon { opacity: 1; }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.video-source-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .06em;
}
.video-card-body { padding: 14px 16px 16px; }
.video-card-body h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--ink); line-height: 1.45; }
.video-excerpt { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.55; }
.video-date { font-size: 11.5px; color: var(--muted); }

/* ── 影片 Lightbox ── */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
}
.video-lightbox.is-open { pointer-events: auto; opacity: 1; }
.video-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,10,30,.82);
  backdrop-filter: blur(6px);
}
.video-lightbox-box {
  position: relative;
  width: min(860px, 94vw);
  z-index: 1;
}
.video-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  opacity: .8;
}
.video-lightbox-close:hover { opacity: 1; }
.video-lightbox-frame {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── 聯絡頁 ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}
.contact-block { margin-bottom: 28px; }
.contact-block h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.contact-block a { color: var(--accent); text-decoration: none; display: block; font-size: 16px; }
.contact-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.contact-form-wrap h3 { margin: 0 0 20px; font-size: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── FAQ 頁 ── */
.faq-page { margin-top: 32px; }
.faq-category { margin-bottom: 48px; }
.faq-cat-title { font-size: 18px; color: var(--accent); border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }

/* FAQ 分類 Tab */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}
.faq-tab-btn {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
}
.faq-tab-btn.active, .faq-tab-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq-count {
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}
.faq-tab-btn:not(.active) .faq-count {
  background: var(--line);
  color: var(--muted);
}
.faq-cat-panel { display: none; }
.faq-cat-panel.active { display: block; }

/* FAQ 分類區塊 */
.faq-section-block { margin-bottom: 56px; }
.faq-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.faq-section-label {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}
.faq-section-count {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* FAQ 卡片 */
.faq-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.faq-card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s;
}
.faq-card:hover { box-shadow: 0 4px 20px rgba(8,45,120,.08); }
.faq-card-q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
}
.faq-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.faq-card-q strong {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}
.faq-card-a {
  padding: 0 24px 20px calc(24px + 32px + 16px);
  font-size: 14px;
  line-height: 1.85;
  color: #555;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  background: var(--surface);
}

.faq-accordion {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-accordion summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: '+'; font-size: 20px; color: var(--accent); transition: transform .2s; }
.faq-accordion[open] summary::after { content: '−'; }
.faq-accordion[open] summary { background: var(--surface); }
.faq-answer { padding: 16px 20px; font-size: 14px; line-height: 1.8; color: var(--ink); background: var(--surface); border-top: 1px solid var(--line); }

/* ── 隱私權頁 ── */
.privacy-content h2 { font-size: 17px; margin: 32px 0 10px; color: var(--ink); }
.privacy-content p, .privacy-content li { font-size: 15px; line-height: 1.9; color: #444; }
.privacy-content ul { padding-left: 20px; margin: 8px 0 16px; }

/* ── 課程總覽頁 ── */
.archive-filters { margin-bottom: 32px; }
.archive-courses { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.course-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.course-date-badge {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  margin-top: 8px;
  background: rgba(0,0,0,.2);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── 課程單頁 ── */
.back-link { display: inline-block; color: var(--accent); text-decoration: none; font-size: 14px; margin-bottom: 24px; }
.course-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.course-single .tag { margin-bottom: 12px; }
.course-single h1 { font-size: clamp(24px, 3vw, 36px); margin: 8px 0 20px; }
.course-single-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 14px; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.course-single-content { font-size: 16px; line-height: 1.9; }
.course-single-content h2 { font-size: 20px; margin: 28px 0 10px; }
.enroll-card { background: var(--surface); border-radius: 16px; padding: 28px; position: sticky; top: 90px; }
.enroll-price { font-size: 28px; font-weight: 900; color: var(--ink); margin-bottom: 20px; }
.enroll-info { margin: 20px 0; font-size: 13px; line-height: 2; color: var(--muted); }
.enroll-contact { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.enroll-contact a { color: var(--accent); display: block; margin-top: 6px; text-decoration: none; }
@media (max-width: 780px) {
  .course-single-layout { grid-template-columns: 1fr; }
  .enroll-card { position: static; }
}

/* ── 浮動社群按鈕 ── */
.social-float {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.sf-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 10px;
  height: 48px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.sf-open .sf-btn {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.sf-open .sf-btn:nth-child(2) { transition-delay: .06s; }
.sf-line { background: #06C755; }
.sf-fb   { background: #1877F2; }
.sf-btn:hover { filter: brightness(1.1); }
.sf-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .2s;
}
.sf-toggle:hover { transform: scale(1.08); }

/* ── 浮動 AI 按鈕 ── */
.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--gold), #f1d071);
  color: #102640;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(30,32,38,.22);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

/* ── 短影音充電站 ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.video-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: box-shadow .18s, transform .18s;
}
.video-card:hover {
  box-shadow: 0 8px 28px rgba(8,45,120,.12);
  transform: translateY(-3px);
}
.video-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink);
}
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,.4);
}
.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .18s;
}
.video-thumb-wrap:hover .video-play-icon { opacity: 1; }
.video-card-body { padding: 14px 16px 18px; }
.video-card-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.video-card-body h3 a { color: var(--ink); }
.video-card-body h3 a:hover { color: var(--accent); }
.video-date { font-size: 12px; color: var(--muted); }
.video-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.video-pagination a,
.video-pagination span {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.video-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ── 內容分頁標籤 ── */
.content-tabs {
  display: flex;
  gap: 14px;
  margin: 36px 0 32px;
}
.content-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  background: #f0eaf8;
  border: 2px solid transparent;
  transition: all .2s;
  letter-spacing: .02em;
}
.content-tab:hover { color: var(--purple); background: #e4d8f5; }
.content-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--purple));
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(84,0,120,.28);
}

/* ── 人資專欄 ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(22,20,62,.08);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(22,20,62,.13); }
.blog-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.45; }
.blog-title a:hover { color: var(--purple); }
.blog-excerpt { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: auto; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── 課程剪影頁面 ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.gallery-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.gallery-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--border);
}
.gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-card:hover .gallery-card-thumb img { transform: scale(1.05); }
.gallery-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--muted);
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-overlay span { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.gallery-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  color: #fff;
}
.gallery-type-badge.video-badge { background: linear-gradient(135deg,#ec4899,#7c3aed); }
.gallery-type-badge.photo-badge { background: linear-gradient(135deg,#3b82f6,#1e3a8a); }
.gallery-card-body { padding: 14px 16px 16px; }
.gallery-card-body h3 { font-size: 15px; margin: 4px 0 6px; color: var(--ink); line-height: 1.45; }
.gallery-card-body time { font-size: 12px; color: var(--muted); }
/* Photo lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
}
.gallery-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
}
.gallery-lb-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.gallery-lb-img-wrap img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.gallery-lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.gallery-lb-prev, .gallery-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 2;
  transition: background .2s;
}
.gallery-lb-prev:hover, .gallery-lb-next:hover { background: rgba(255,255,255,.25); }
.gallery-lb-prev { left: 16px; }
.gallery-lb-next { right: 16px; }
.gallery-lb-counter { margin-top: 12px; color: rgba(255,255,255,.7); font-size: 14px; }
/* Slides list */
.slides-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.slide-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow .2s;
}
.slide-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.slide-cover img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.slide-cover-placeholder {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--border);
  border-radius: 6px;
}
.slide-body h3 { font-size: 16px; color: var(--ink); margin: 4px 0 6px; }
.slide-body p { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.slide-body time { font-size: 12px; color: var(--muted); }
.slide-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s;
}
.slide-download:hover { opacity: .85; }
@media (max-width: 680px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .slide-item { grid-template-columns: 80px 1fr; }
  .slide-cover img, .slide-cover-placeholder { width: 80px; height: 56px; }
  .slide-download { grid-column: 1 / -1; justify-content: center; }
}

/* ── RWD ── */
@media (max-width: 980px) {
  .split, .ai-layout { grid-template-columns: 1fr; }
  .journey, .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .consult-card { position: static; }
  .hero { min-height: auto; }
  .quick-panel { display: none; }
}

/* ── 平板（隱藏英文副標） ── */
@media (max-width: 1100px) {
  .brand-text span { display: none; }
  .nav-links > a, .nav-dd-toggle { padding: 8px 10px; font-size: 13px; }
}

/* ── 隱藏桌機 nav，顯示漢堡 ── */
@media (max-width: 860px) {
  .nav-toggle { display: flex !important; }
  .nav-links  { display: none !important; }
  .brand-text { display: none !important; }
  .nav {
    height: 60px !important;
    padding: 0 16px !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }
  .nav-actions {
    margin-left: 0 !important;
    gap: 0 !important;
  }
  .hero-actions {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}

/* ── 手機 ── */
@media (max-width: 680px) {
  .ai-modal-box { margin: 0; border-radius: 16px 16px 0 0; width: 100%; max-width: 100%; }
  .hero-inner { padding-top: 58px; }
  .courses, .journey, .faq-grid, .tool-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .section-head, .footer-cta { align-items: flex-start; flex-direction: column; }
  .chat-box { min-height: 430px; }
  .bubble { max-width: 92%; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
}

/* ══════════════════════════════════════
   WooCommerce 我的帳號 / 登入 美化
   ══════════════════════════════════════ */
.woocommerce-account .woocommerce,
.woocommerce-page .woocommerce {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 22px;
}

/* 登入 + 註冊 雙欄佈局 */
.woocommerce-account .u-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.woocommerce form.login,
.woocommerce form.register {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(22,20,62,.10);
  padding: 36px 40px;
  height: 100%;
  box-sizing: border-box;
}


@media (max-width: 680px) {
  .woocommerce-account .u-columns { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════
   顧問教練群頁面
   ══════════════════════════════════════════ */
.team-hero {
  background: linear-gradient(155deg, #4f46e5 0%, #1e3a8a 40%, #6d28d9 75%, #4c1d95 100%);
  padding: 80px 24px 64px;
  text-align: center;
  color: #fff;
}
.team-hero-inner { max-width: 680px; margin: 0 auto; }
.team-hero .tag {
  display: inline-block;
  background: rgba(212,160,23,.2);
  border: 1px solid rgba(212,160,23,.5);
  color: #f0c040;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.team-hero h1 { font-size: clamp(32px, 4vw, 52px); margin: 0 0 14px; }
.team-hero p { color: rgba(255,255,255,.68); font-size: 16px; margin: 0; }

.team-section {
  background: linear-gradient(175deg, #2e1065 0%, #1e3a8a 35%, #3730a3 65%, #6d28d9 100%);
  padding: 56px 32px 80px;
}

/* 修正與舊 .team-grid 衝突：用 .team-section 加高特異性 */
.team-section .team-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* ── 單張顧問卡片 ── */
.adv-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  backdrop-filter: blur(4px);
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(109,40,217,.35), 0 4px 16px rgba(0,0,0,.2);
  background: rgba(255,255,255,.18);
  border-color: rgba(167,139,250,.4);
}

/* 照片區 */
.adv-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
.adv-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.adv-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10,20,70,.85), transparent);
  pointer-events: none;
}
.adv-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.15) 0%, rgba(255,255,255,.04) 100%);
}
.adv-photo-placeholder span {
  font-size: 80px;
  font-weight: 900;
  color: rgba(255,255,255,.35);
  letter-spacing: -.02em;
}

/* 姓名疊在照片底部 (有照片時) */
.adv-photo-name {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* 內文區 */
.adv-body {
  padding: 16px 18px 0;
  color: rgba(255,255,255,.85);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.adv-org {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold, #d4a017);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.adv-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.adv-name {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: .1em;
  white-space: nowrap;
}
.adv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.adv-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(212,160,23,.18);
  border: 1px solid rgba(212,160,23,.5);
  color: #f0c040;
  letter-spacing: .04em;
  white-space: nowrap;
}
.adv-summary {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0 0 14px;
  line-height: 1.65;
  flex: 1;
}

/* Accordion */
.adv-acc-wrap {
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: auto;
  padding: 0 18px 14px;
}
.adv-acc { border-bottom: 1px solid rgba(255,255,255,.15); }
.adv-acc-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color .15s;
  gap: 8px;
}
.adv-acc-toggle:hover { color: #f0c040; }
.adv-acc.adv-acc-open .adv-acc-toggle { color: #fff; }
.adv-arr {
  font-size: 10px;
  transition: transform .22s;
  flex-shrink: 0;
  opacity: .6;
}
.adv-acc.adv-acc-open .adv-arr { transform: rotate(180deg); opacity: 1; }

.adv-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.adv-acc-panel ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.adv-acc-panel li {
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.6;
}
.adv-acc-panel li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold, #d4a017);
  font-size: 14px;
  line-height: 1.4;
}

/* CTA 區 */
.footer-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #1e3a8a 50%, #6d28d9 100%);
  padding: 56px 24px;
  text-align: center;
  color: #fff;
}
.footer-cta h2 { font-size: clamp(22px, 3vw, 36px); margin: 0 0 12px; }
.footer-cta p { color: rgba(255,255,255,.65); margin: 0 0 28px; }
.footer-cta .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* RWD */
@media (max-width: 1200px) {
  .team-section .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 860px) {
  .team-section .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .team-section { padding: 40px 20px 60px; }
}
@media (max-width: 520px) {
  .team-section .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

.woocommerce form.login h2,
.woocommerce form.register h2,
.woocommerce-MyAccount-content h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 24px;
}

/* 表單欄位 */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  background: var(--soft);
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(84,0,120,.10);
  outline: none;
  background: #fff;
}

/* 標籤 */
.woocommerce form .form-row label {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
  display: block;
}

/* 登入 / 註冊 / 儲存按鈕 */
.woocommerce form .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: linear-gradient(135deg, var(--navy), var(--purple));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  transition: opacity .15s;
}
.woocommerce form .button:hover { opacity: .88; }

/* 忘記密碼 */
.woocommerce form.login .lost_password a {
  font-size: 13px;
  color: var(--muted);
}
.woocommerce form.login .lost_password a:hover { color: var(--purple); }

/* Google 按鈕區 */
.nsl-woo-login {
  margin-top: 20px;
  text-align: center;
}
.nsl-woo-login p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nsl-woo-login p::before,
.nsl-woo-login p::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Nextend Google 按鈕本身 */
.nsl-container .nsl-button-google {
  border-radius: 8px !important;
  border: 1.5px solid var(--line) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  transition: background .15s, border-color .15s !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  white-space: nowrap !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.nsl-container {
  width: 100% !important;
  overflow: visible !important;
}
.nsl-container a {
  width: 100% !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nsl-container .nsl-button-google:hover {
  border-color: var(--purple) !important;
  background: var(--soft) !important;
}

/* 我的帳號側邊選單 */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(22,20,62,.08);
  overflow: hidden;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 13px 20px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--soft);
  color: var(--purple);
  border-left-color: var(--purple);
}

/* ══════════════════════════════════════
   Hero — 新定位補充樣式
   ══════════════════════════════════════ */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}
.hero-trust span { display: inline-flex; align-items: center; }

/* ══════════════════════════════════════
   AI 轉型顧問區塊
   ══════════════════════════════════════ */
.section-advisor {
  background: #f7f9fd;
  padding: 60px 28px;
}
.advisor-box {
  max-width: 1160px;
  margin: 0 auto;
  background: linear-gradient(125deg, #10285b, #502fa4);
  border-radius: 24px;
  color: #fff;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  box-shadow: 0 25px 60px rgba(52,69,134,.22);
}
.tag-light,
.advisor-left .tag-light {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  color: #c5d8ff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.advisor-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 6px 0 12px;
  line-height: 1.25;
}
.advisor-left p {
  color: #d4e3ff;
  font-size: .97rem;
  max-width: 520px;
  margin-bottom: 22px;
}
.advisor-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.advisor-choice {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  transition: background .15s;
}
.advisor-choice:hover { background: rgba(255,255,255,.2); }

.chat-preview-box {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 20px;
  align-self: center;
}
.chat-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 8px 0;
  font-size: .88rem;
  line-height: 1.5;
}
.chat-bubble { white-space: pre-line; overflow-wrap: anywhere; }
.chat-bubble--ai { background: #eef3ff; margin-right: 18px; }
.chat-bubble--user { background: linear-gradient(120deg,#e4edff,#eee8ff); margin-left: 40px; }
.chat-preview-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.chat-preview-input textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--soft);
}
.chat-preview-input textarea:focus { outline: 2px solid #7450e8; outline-offset: 1px; }
.chat-preview-input textarea:disabled,
.chat-send:disabled,
.advisor-choice:disabled { opacity: .55; cursor: not-allowed; }
.chat-send { min-height: 44px; }
.chat-hint { margin: 6px 2px 0; font-size: .74rem; color: var(--muted); }

.chat-rec { white-space: normal; }
.chat-rec p { margin: 0 0 8px; }
.chat-rec strong, .chat-summary strong { display: block; margin: 8px 0 4px; }
.chat-list { margin: 0 0 8px; padding-left: 20px; }
.chat-list li { margin: 2px 0; }
.chat-rec-closing { color: #2b3f8f; font-weight: 700; margin-bottom: 0 !important; }
.chat-summary { white-space: normal; }
.chat-summary-list { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.chat-summary-list dt { font-weight: 800; color: #2b3f8f; }
.chat-summary-list dd { margin: 0; }

.chat-consent { white-space: normal; margin-right: 0; }
.chat-consent-intro { margin: 4px 0 10px; font-size: .82rem; color: var(--muted); }
.chat-field { display: block; margin-bottom: 10px; }
.chat-field span { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 3px; }
.chat-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font: inherit;
  font-size: .9rem;
  background: #fff;
}
.chat-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  font-size: .9rem;
  background: #fff;
}
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chat-notice {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: .76rem;
  line-height: 1.5;
}
.chat-notice strong { margin: 0 0 4px; }
.chat-notice .chat-summary-list { gap: 3px 8px; }
.chat-consent a { color: #2b3f8f; text-decoration: underline; }
.chat-field-error { display: block; min-height: 1em; font-style: normal; font-size: .76rem; color: #b84b48; }
.chat-consent-check { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; line-height: 1.5; margin: 4px 0 8px; }
.chat-consent-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.chat-consent-status { margin: 4px 0; font-size: .82rem; min-height: 1.2em; }
.chat-consent-status.is-ok { color: #2e7d5b; font-weight: 700; }
.chat-consent-status.is-error { color: #b84b48; font-weight: 700; }
button.chat-cta-btn { cursor: pointer; font: inherit; font-size: .82rem; font-weight: 800; }
.chat-cta-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat-cta-btn { display: inline-flex; align-items: center; min-height: 40px; }
.chat-log {
  min-height: 150px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chat-chip {
  border: 1px solid #c9d6f5;
  background: #f3f6ff;
  color: #2b3f8f;
  border-radius: 99px;
  padding: 6px 13px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.chat-chip:hover { background: #e2eaff; }
.chat-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
}
.chat-cta-btn {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid #c9d6f5;
  color: #2b3f8f;
  background: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.chat-cta-btn--primary {
  border: none;
  color: #fff;
  background: linear-gradient(110deg, var(--navy), var(--purple));
}
.chat-cta-btn:hover { opacity: .88; }
.chat-typing { display: flex; gap: 4px; width: 56px; }
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8aa0d6;
  animation: chatDot 1s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.chat-send {
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(110deg, var(--navy), var(--purple));
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ══════════════════════════════════════
   四大服務區塊
   ══════════════════════════════════════ */
.section-services { padding: 60px 28px; }
.section-services .section-head { max-width: 1160px; margin: 0 auto 32px; }

.services-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(38,56,94,.13);
}
.service-num {
  display: block;
  font-size: .75rem;
  color: #6d58df;
  font-weight: 900;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.service-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.service-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  min-height: 72px;
  margin-bottom: 18px;
}
.service-card a {
  color: #425dd1;
  font-weight: 900;
  font-size: .88rem;
  text-decoration: none;
}
.service-card a:hover { text-decoration: underline; }
.service-card::after {
  content: "";
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(110,93,233,.08);
  right: -28px; bottom: -40px;
}

/* ══════════════════════════════════════
   RWD 新區塊
   ══════════════════════════════════════ */
@media (max-width: 960px) {
  .advisor-box { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .advisor-box { padding: 28px 20px; }
  .advisor-choices { grid-template-columns: 1fr; }
  .advisor-choice, .chat-chip, .chat-cta-btn, .chat-send { min-height: 44px; }
  .chat-chip { display: inline-flex; align-items: center; }
  .chat-preview-input textarea, .chat-field input { font-size: 16px; }
  .chat-bubble--ai { margin-right: 6px; }
  .chat-bubble--user { margin-left: 20px; }
  .chat-log { max-height: 360px; }
  .chat-summary-list { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 10px; }
  .hero-trust span { display: block; }
}

/* ══════════════════════════════════════
   四大服務介紹頁
   ══════════════════════════════════════ */
.svc-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.svc-hero {
  background: linear-gradient(125deg, #10285b, #502fa4);
  color: #fff;
  padding: 56px 0 64px;
}
.svc-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.svc-crumb a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.svc-num {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: rgba(255,255,255,.18); color: #c5d8ff;
  font-size: .78rem; font-weight: 900; letter-spacing: .06em; margin-bottom: 14px;
}
.svc-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.25; max-width: 820px; margin: 0 0 16px; color: #fff; }
.svc-lead { max-width: 760px; font-size: 1.02rem; line-height: 1.8; color: #d4e3ff; margin: 0 0 26px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-section { padding: 56px 0; }
.svc-section--soft { background: #f7f9fd; }
.svc-section h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--navy); margin: 0 0 22px; }
.svc-check, .svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-check { grid-template-columns: repeat(2, 1fr); }
.svc-check li, .svc-list li {
  position: relative; padding: 14px 16px 14px 46px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; line-height: 1.6;
}
.svc-check li::before, .svc-list li::before {
  content: "✓"; position: absolute; left: 16px; top: 14px;
  color: #6d58df; font-weight: 900;
}
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-steps li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; }
.svc-step-no { display: block; font-size: .78rem; font-weight: 900; color: #6d58df; letter-spacing: .06em; margin-bottom: 8px; }
.svc-steps h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--ink); }
.svc-steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.svc-two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.svc-prepare { background: #f7f9fd; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.svc-prepare h2 { margin-bottom: 12px; }
.svc-prepare p { margin: 0 0 10px; line-height: 1.7; }
.svc-note { color: var(--muted); font-size: .88rem; }
.svc-faq { display: grid; gap: 10px; }
.svc-faq details { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 0 18px; }
.svc-faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; font-weight: 900; color: #6d58df; }
.svc-faq details[open] summary::after { content: "–"; }
.svc-faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.8; }
.svc-cta { background: linear-gradient(125deg, #10285b, #502fa4); color: #fff; border-radius: 22px; padding: 40px 32px; text-align: center; }
.svc-cta h2 { color: #fff; margin-bottom: 10px; }
.svc-cta p { color: #d4e3ff; max-width: 560px; margin: 0 auto 22px; }
.svc-cta .svc-actions { justify-content: center; }
.svc-related-title { margin-top: 48px !important; }
.svc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-related a {
  display: grid; gap: 4px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; transition: transform .2s, box-shadow .2s;
}
.svc-related a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38,56,94,.12); }
.svc-related span { font-size: .75rem; font-weight: 900; color: #6d58df; }
.svc-related strong { color: var(--ink); }
.svc-related em { font-style: normal; font-weight: 800; font-size: .85rem; color: #425dd1; }
@media (max-width: 900px) {
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
  .svc-two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-hero { padding: 36px 0 44px; }
  .svc-section { padding: 40px 0; }
  .svc-check, .svc-steps, .svc-related { grid-template-columns: 1fr; }
  .svc-actions .btn-primary, .svc-actions .ghost-btn { width: 100%; justify-content: center; min-height: 48px; }
  .svc-cta { padding: 30px 20px; }
}

/* 首頁：關於策識永續（GEO 文字區）與服務議題 */
.section-geo { background: #fff; }
.geo-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.geo-copy h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--navy); margin: 6px 0 14px; }
.geo-copy p { color: var(--muted); line-height: 1.85; margin: 0 0 18px; }
.geo-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.geo-topics a { display: inline-block; padding: 7px 14px; border-radius: 99px; background: #f0edff; color: #3b2fa0; font-weight: 800; font-size: .85rem; }
.geo-topics a:hover { background: #e2dcff; }
.geo-figure { margin: 0; }
.geo-figure img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 18px 40px rgba(38,56,94,.14); }
.geo-faq { max-width: 1160px; margin: 36px auto 0; }
.geo-faq h3 { font-size: 1.15rem; color: var(--navy); margin: 0 0 14px; }
.svc-topics { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-topics li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.svc-topics h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--ink); }
.svc-topics p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.svc-related { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 900px) {
  .geo-grid { grid-template-columns: 1fr; }
  .svc-topics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .svc-topics { grid-template-columns: 1fr; }
}
.geo-more { margin: 14px 0 0; }
.geo-more a { color: #425dd1; font-weight: 800; }
.geo-more a:hover { text-decoration: underline; }

.svc-entity { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fd; font-size: .85rem; color: var(--muted); line-height: 1.8; }
.svc-entity p { margin: 0 0 4px; }
.svc-entity strong { color: var(--ink); }
.svc-entity a { color: #425dd1; text-decoration: underline; }

#ai { display: block; height: 0; scroll-margin-top: 90px; }

.svc-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.svc-course { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; }
.svc-course h3 { margin: 4px 0 6px; font-size: 1.08rem; color: var(--ink); line-height: 1.4; }
.svc-course-meta { margin: 0 0 8px; font-size: .82rem; font-weight: 800; color: #6d58df; }
.svc-course-aud { margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.svc-course ul { margin: 0 0 10px; padding-left: 18px; color: var(--ink); font-size: .9rem; line-height: 1.7; }
.svc-course-out { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); line-height: 1.7; }
.svc-course-out strong, .svc-course-aud strong { color: var(--ink); }
@media (max-width: 900px) { .svc-courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-courses { grid-template-columns: 1fr; } }
