/* ========================================
   思聞國學 SIWEN ACADEMY
   奇門遁甲官方網站
   Style: 深色科技風 × 東方神祕質感
   ======================================== */

:root {
  --bg: #0a0a0f;
  --bg-2: #11111a;
  --bg-3: #181826;
  --surface: #1a1a26;
  --surface-2: #22222f;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.4);
  --gold: #d4af37;
  --gold-soft: #f5d970;
  --gold-deep: #a48426;
  --text: #ece8df;
  --text-mute: #9a948a;
  --text-dim: #6b6660;
  --red: #c64141;
  --serif: 'Noto Serif TC', 'Songti TC', 'Source Han Serif TC', serif;
  --sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --display: 'Cinzel', 'Noto Serif TC', serif;
  --max: 1240px;
  --radius: 6px;
  --shadow-glow: 0 0 60px rgba(212, 175, 55, 0.12);
  --t-base: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.3s var(--t-base); }
a:hover { color: var(--gold); }

img, svg { max-width: 100%; display: block; }

ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ===========================================
   NAVBAR
   =========================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--t-base);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  flex-shrink: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.25));
  transition: filter 0.4s var(--t-base);
}
.logo:hover .logo-mark {
  filter: drop-shadow(0 0 18px rgba(245, 217, 112, 0.55));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-zh {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.08em;
}
.logo-en {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-mute);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--t-base);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  margin-left: 16px;
  padding: 10px 22px !important;
  font-size: 13px !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s var(--t-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--t-base);
  letter-spacing: 0.05em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a0a0f;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  color: #0a0a0f;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.32);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

/* ===== .btn-mystic：奇門本命解析專用 (v3 新增) ===== */
/* 視覺份量介於 ghost 與 primary 之間, 金邊+流光描邊+八卦光暈 hover */
.btn-mystic {
  position: relative;
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0.02) 100%);
  color: var(--gold);
  border: 1px solid var(--gold);
  overflow: hidden;
  isolation: isolate;
}
.btn-mystic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(212,175,55,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: -1;
}
.btn-mystic:hover {
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(212, 175, 55, 0.45), 0 0 32px rgba(212, 175, 55, 0.18);
  transform: translateY(-1px);
}
.btn-mystic:hover::before {
  transform: translateX(100%);
}

/* nav-cta-group: 包覆兩顆按鈕用 */
.nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}
.nav-cta-group .nav-cta {
  margin-left: 0;
}
.nav-cta-secondary {
  padding: 10px 22px !important;
  font-size: 13px !important;
}
.nav-mobile-cta { display: none; }

.btn-block { width: 100%; padding: 16px; }

/* ===========================================
   HERO
   =========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at top, var(--bg-3) 0%, var(--bg) 60%);
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bagua-orbit {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  opacity: 0.85;
  animation: heroFloat 18s ease-in-out infinite;
}
.bagua-svg { width: 100%; height: 100%; }
.bagua-svg .ring-outer { animation: rotate 80s linear infinite; transform-origin: 300px 300px; }
.bagua-svg .ring-mid   { animation: rotate 120s linear infinite reverse; transform-origin: 300px 300px; }
.bagua-svg .ring-inner { animation: rotate 60s linear infinite; transform-origin: 300px 300px; }
.bagua-svg .trigrams text { animation: glow 4s ease-in-out infinite alternate; }

@keyframes rotate {
  to { transform: rotate(360deg); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(calc(-50% - 20px)) scale(1.02); }
}
@keyframes glow {
  from { filter: drop-shadow(0 0 2px rgba(245, 217, 112, 0.3)); }
  to   { filter: drop-shadow(0 0 12px rgba(245, 217, 112, 0.7)); }
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(245, 217, 112, 0.6), transparent),
    radial-gradient(1px 1px at 78% 28%, rgba(245, 217, 112, 0.5), transparent),
    radial-gradient(2px 2px at 22% 78%, rgba(245, 217, 112, 0.4), transparent),
    radial-gradient(1px 1px at 88% 88%, rgba(245, 217, 112, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 45% 12%, rgba(245, 217, 112, 0.5), transparent),
    radial-gradient(1px 1px at 60% 92%, rgba(245, 217, 112, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 5% 55%, rgba(245, 217, 112, 0.5), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.4; }
  to   { opacity: 0.9; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-text {
  max-width: 660px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
  background: rgba(212, 175, 55, 0.04);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 78px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-mute);
  margin-bottom: 44px;
  max-width: 580px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  animation: bob 2.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-down svg { color: var(--gold); }

/* ===========================================
   TICKER
   =========================================== */
.ticker {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.06), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker 50s linear infinite;
}
.ticker-track span {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.15em;
  flex-shrink: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================================
   SECTIONS - common
   =========================================== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.section-label {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  color: var(--text);
}
.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-mute);
}
.lead.center { text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.col-text > * + * { margin-top: 24px; }

/* ===========================================
   ABOUT
   =========================================== */
.about {
  background:
    radial-gradient(ellipse at left top, rgba(212, 175, 55, 0.04), transparent 60%),
    var(--bg);
}
.check-list {
  margin-top: 32px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
  font-size: 15px;
}
.check-list li:last-child { border-bottom: none; }
.check {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 4px;
}

.grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px;
  background:
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08), transparent),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-glow);
}
.grid-9::before, .grid-9::after {
  content: '';
  position: absolute;
  background: var(--gold);
  opacity: 0.4;
}
.grid-9::before { top: -1px; left: 24px; right: 24px; height: 1px; }
.grid-9::after  { bottom: -1px; left: 24px; right: 24px; height: 1px; }
.cell {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  transition: all 0.4s var(--t-base);
  position: relative;
}
.cell:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-2px);
}
.cell.center {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(164, 132, 38, 0.05));
  border-color: var(--gold);
}
.cell .num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
  font-weight: 700;
}
.cell .lbl {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
  letter-spacing: 0.15em;
}

/* ===========================================
   SERVICES
   =========================================== */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.4s var(--t-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(212, 175, 55, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--t-base);
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 24px;
  transition: all 0.4s var(--t-base);
}
.card-icon svg { width: 28px; height: 28px; }
.service-card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg);
  transform: rotate(180deg);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.service-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mute);
  margin-bottom: 24px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.price {
  font-family: var(--display);
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
}
.duration {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.services-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
}

/* ===========================================
   KNOWLEDGE
   =========================================== */
.knowledge {
  background:
    radial-gradient(ellipse at right top, rgba(212, 175, 55, 0.05), transparent 60%),
    var(--bg);
}
.knowledge-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 60px;
}
.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.tab-btn {
  flex: 1;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-mute);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--t-base);
  letter-spacing: 0.08em;
  position: relative;
  border-right: 1px solid var(--line);
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--text); background: rgba(212, 175, 55, 0.04); }
.tab-btn.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.tab-panels { padding: 56px 48px; min-height: 280px; }
.tab-panel { display: none; animation: fadeIn 0.4s ease; }
.tab-panel.active { display: block; }
.tab-panel h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tab-panel p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
}
.tab-panel p:last-child { margin-bottom: 0; }
.tab-panel strong { color: var(--gold-soft); font-weight: 600; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kb-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all 0.4s var(--t-base);
}
.kb-card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}
.kb-num {
  font-family: var(--display);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 14px;
}
.kb-card h4 {
  font-family: var(--serif);
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.kb-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

/* ===========================================
   PROCESS
   =========================================== */
.process { background: var(--bg-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
  position: relative;
  transition: all 0.4s var(--t-base);
}
.step:hover .step-num {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}
.step h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

/* ===========================================
   TESTIMONIALS
   =========================================== */
.testimonials {
  background: var(--bg);
  position: relative;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all 0.4s var(--t-base);
}
.t-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 24px;
  font-family: var(--display);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
}
.t-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.t-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
  font-family: var(--serif);
  font-style: normal;
  position: relative;
  z-index: 1;
}
.t-card cite {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-style: normal;
}

/* ===========================================
   CONTACT
   =========================================== */
.contact {
  background:
    radial-gradient(ellipse at right bottom, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--bg-2);
}
.contact-list {
  margin-top: 32px;
}
.contact-list li {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: none; }
.ci {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  width: 70px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-glow);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-row .field { margin-bottom: 22px; }
.field label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.req { color: var(--red); }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: all 0.3s var(--t-base);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 24px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
  cursor: pointer;
}
.checkbox input { margin-top: 4px; accent-color: var(--gold); }

.form-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.05em;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: #050507;
  border-top: 1px solid var(--line);
  padding-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}
.f-brand p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.8;
  margin-top: 20px;
}
.f-col h5 {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 18px;
}
.f-col ul li {
  margin-bottom: 10px;
}
.f-col ul a {
  font-size: 13px;
  color: var(--text-mute);
}
.f-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.legal a { margin: 0 6px; }

/* ===========================================
   REVEAL ANIMATIONS
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--t-base), transform 0.8s var(--t-base);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .nav-links { gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .kb-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 60px; }
  .col-visual { order: -1; }
  .bagua-orbit { width: 500px; height: 500px; right: -25%; opacity: 0.5; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; gap: 16px; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-2);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    transform: translateY(-200%);
    transition: transform 0.4s var(--t-base);
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav-cta-group { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--line);
  }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 50px; }
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 38px; line-height: 1.2; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 24px; }
  .scroll-down { display: none; }
  .bagua-orbit { width: 400px; height: 400px; opacity: 0.3; right: -40%; }

  .services-grid { grid-template-columns: 1fr; }
  .tab-buttons { flex-wrap: wrap; }
  .tab-btn { min-width: 50%; padding: 14px 12px; font-size: 13px; }
  .tab-panels { padding: 32px 24px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}

/* ============================================
   PRICE LINK (服務卡片中導向課程的連結)
   ============================================ */
.price-link {
  font-family: var(--display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color 0.3s var(--t-base);
}
.price-link:hover { color: var(--gold-soft); }

/* ============================================
   COURSES SECTION (新)
   ============================================ */
.courses {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  position: relative;
}
.courses::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.05), transparent 50%);
  pointer-events: none;
}
.courses .container { position: relative; z-index: 1; }

.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--t-base);
  overflow: hidden;
  position: relative;
}
.course-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}
.course-card.feature-course {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.06), transparent 50%),
    var(--surface);
}
.course-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.25em;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 2;
}

.course-header {
  padding: 36px 36px 28px;
  border-bottom: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.course-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.course-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.course-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mute);
}

.course-body {
  padding: 28px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.course-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.course-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cs-num {
  font-family: var(--display);
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.cs-lbl {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.course-syllabus h4 {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.course-syllabus ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.course-syllabus li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.course-syllabus li span {
  font-family: var(--display);
  font-size: 11px;
  color: var(--gold-deep);
  flex-shrink: 0;
  width: 18px;
}

.course-footer {
  padding: 24px 36px 32px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.course-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cp-label {
  font-family: var(--display);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.25em;
}
.cp-amount {
  font-family: var(--display);
  font-size: 26px;
  color: var(--gold);
  font-weight: 600;
}
.cp-note {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* 滾動式開班資訊條 */
.course-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 60px;
  overflow: hidden;
}
.cib-item {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cib-item:last-child { border-right: none; }
.cib-item strong {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.05em;
}
.cib-item span {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}

/* 課程報名表 */
.course-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 48px;
  position: relative;
  scroll-margin-top: 80px;
}
.course-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cfw-text .section-label { margin-bottom: 16px; display: inline-block; }
.cfw-text h3 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.3;
}
.cfw-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.cfw-bullets li {
  font-size: 14px;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cfw-bullets li:last-child { border-bottom: none; }

/* Radio 群組 */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s var(--t-base);
}
.radio:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}
.radio input { accent-color: var(--gold); cursor: pointer; }
.radio input:checked ~ span { color: var(--gold); font-weight: 600; }
.radio:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

/* Checkbox pills 多選時段 */
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all 0.3s var(--t-base);
  user-select: none;
}
.checkbox-pill:hover {
  border-color: var(--line-strong);
  color: var(--gold);
}
.checkbox-pill input {
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-pill:has(input:checked) {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}
.checkbox-pill:has(input:checked) input { display: none; }

/* ============================================
   FAQ SECTION (新)
   ============================================ */
.faq {
  background: var(--bg-2);
}
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--t-base);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), transparent), var(--surface);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.faq-item[open] .q { color: var(--gold); }
.faq-item .caret {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s var(--t-base);
}
.faq-item .caret::before,
.faq-item .caret::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
}
.faq-item .caret::before {
  top: 9px; left: 0;
  width: 20px; height: 1.5px;
}
.faq-item .caret::after {
  top: 0; left: 9px;
  width: 1.5px; height: 20px;
  transition: transform 0.3s var(--t-base);
}
.faq-item[open] .caret::after { transform: rotate(90deg); opacity: 0; }
.faq-item .a {
  padding: 0 32px 28px;
}
.faq-item .a p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mute);
}
.faq-item .a strong { color: var(--gold-soft); font-weight: 600; }

/* ============================================
   FEATURE CARD (服務卡片強調樣式)
   ============================================ */
.service-card.feature-card {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 50%),
    var(--surface);
  border-color: var(--line-strong);
}

/* ============================================
   RESPONSIVE - 課程 / FAQ
   ============================================ */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-form-wrap { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .course-info-bar { grid-template-columns: 1fr 1fr; }
  .cib-item:nth-child(2) { border-right: none; }
  .cib-item:nth-child(1), .cib-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .course-header { padding: 28px 24px 20px; }
  .course-card h3 { font-size: 22px; }
  .course-body { padding: 24px; gap: 22px; }
  .course-syllabus ul { grid-template-columns: 1fr; }
  .course-footer { padding: 20px 24px 24px; flex-direction: column; align-items: stretch; }
  .course-footer .btn { width: 100%; }
  .course-info-bar { grid-template-columns: 1fr; }
  .cib-item { border-right: none; border-bottom: 1px solid var(--line); }
  .cib-item:last-child { border-bottom: none; }
  .course-form-wrap { padding: 32px 20px; gap: 28px; }
  .cfw-text h3 { font-size: 24px; }
  .faq-item summary { padding: 20px 20px; gap: 14px; }
  .faq-item .q { font-size: 15px; }
  .faq-item .a { padding: 0 20px 22px; }
  .nav-links { gap: 0; }
  .logo-zh { font-size: 16px; }
  .logo-en { font-size: 8px; }
  .logo-mark { width: 38px; height: 38px; }
}

/* ============================================
   FOOTER SOCIALS（IG / FB）
   ============================================ */
.socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s var(--t-base);
}
.social-link:hover {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
}
.social-link svg { display: block; }

/* ============================================
   COURSE FORM 優惠標籤
   ============================================ */
.radio em {
  font-style: normal;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 600;
  vertical-align: middle;
}
.radio em.discount {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg);
}
.radio em.free-tag {
  background: rgba(99, 200, 130, 0.15);
  color: #6dd58f;
  border: 1px solid rgba(109, 213, 143, 0.4);
}
.radio:has(input:checked) em.free-tag {
  background: rgba(99, 200, 130, 0.25);
}

/* ============================================
   COURSE GRID 4 卡片版面
   ============================================ */
.course-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* 線上 / 套餐 徽章 */
.course-badge.badge-online {
  background: linear-gradient(135deg, #6dd58f, #4ea870);
  color: #0a0a0f;
}
.course-badge.badge-bundle {
  background: linear-gradient(135deg, #f5d970, var(--gold-deep));
  color: var(--bg);
  letter-spacing: 0.15em;
}

/* 高階班 syllabus-major 樣式（標題+小字描述） */
.syllabus-major {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  grid-template-columns: 1fr !important;
}
.syllabus-major li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}
.syllabus-major li > span {
  font-family: var(--display);
  font-size: 11px;
  color: var(--gold-deep);
  flex-shrink: 0;
  width: 18px;
  margin-top: 2px;
}
.syllabus-major li > div { flex: 1; }
.syllabus-major li strong {
  display: block;
  color: var(--gold);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}
.syllabus-major li em {
  font-style: normal;
  color: var(--text-mute);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* ============================================
   ENROLL MODAL 彈窗
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--t-base);
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 44px 40px 36px;
  max-width: 640px;
  width: 100%;
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s var(--t-base);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s var(--t-base);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  transform: rotate(90deg);
}
.modal-header { margin-bottom: 24px; padding-right: 40px; }
.modal-header .section-label { display: inline-block; margin-bottom: 12px; }
.modal-header h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.3;
}
.modal-course {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(212, 175, 55, 0.06);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
.mc-label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-mute);
}
.modal-course strong {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.modal .contact-form {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
body.modal-open { overflow: hidden; }

/* ============================================
   COURSE CARDS：徽章/版面修正 + RWD
   ============================================ */
/* 預設 2x2 版面已在前面定義；此處為徽章修正 */
.course-grid-4 .course-badge {
  top: 14px;
  right: 14px;
  font-size: 10px;
  padding: 5px 12px;
  letter-spacing: 0.18em;
  z-index: 2;
  white-space: nowrap;
}
/* 所有有徽章的卡片，course-header 上方留空間給徽章 */
.course-card.feature-course .course-header,
.course-card.bundle-card .course-header,
.course-card:has(.course-badge) .course-header {
  padding-top: 56px;
}
/* 沒有 .feature-course / .bundle-card 但有 .course-badge 的線上卡片 */
.course-card[data-course*="線上"] .course-header {
  padding-top: 56px;
}

/* RWD：手機版單欄 */
@media (max-width: 768px) {
  .course-grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .course-grid-4 .course-badge {
    top: 12px;
    right: 12px;
    font-size: 9px;
    padding: 4px 10px;
    letter-spacing: 0.15em;
  }
  .course-card.feature-course .course-header,
  .course-card.bundle-card .course-header,
  .course-card:has(.course-badge) .course-header,
  .course-card[data-course*="線上"] .course-header {
    padding-top: 48px;
  }
  .course-card .course-header { padding-left: 24px; padding-right: 24px; }
  .course-card .course-body { padding: 20px 24px; }
  .course-card .course-footer { padding: 18px 24px 22px; }
  .modal { padding: 32px 24px 28px; }
  .modal-header h3 { font-size: 22px; }
}

/* 中型螢幕：cards 維持 2x2 但稍微縮 padding */
@media (max-width: 980px) {
  .course-grid-4 {
    gap: 20px;
  }
  .course-card .course-header { padding: 30px 28px 22px; }
  .course-card .course-body { padding: 22px 28px; }
  .course-card .course-footer { padding: 20px 28px 24px; }
}

/* ============================================
   應用卡片 CTA 按鈕（取代「整理中」文字）
   ============================================ */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.3s var(--t-base);
  background: rgba(212, 175, 55, 0.04);
}
.card-cta svg {
  transition: transform 0.3s var(--t-base);
}
.card-cta:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  color: var(--gold-soft);
}
.card-cta:hover svg {
  transform: translateX(4px);
}
/* card-meta 內已有 dashed 上邊；保留 */
.service-card .card-meta:has(.card-cta) {
  justify-content: flex-end;
}

/* ============================================
   FIX：service-card 按鈕底部對齊（卡片高度不一時）
   ============================================ */
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card p {
  flex: 1 1 auto;   /* 描述拉長空間，把 card-meta 推到底 */
}
.service-card .card-meta {
  margin-top: auto;
}

/* ============================================
   報名 3 步驟（取代 contact-list）
   ============================================ */
.enroll-steps {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.enroll-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.enroll-steps li:last-child { border-bottom: none; }
.es-num {
  font-family: var(--display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-weight: 600;
  flex-shrink: 0;
  width: 36px;
  padding-top: 2px;
}
.es-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.es-text strong {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.es-text span {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ============================================
   生日 4 下拉版面（年 / 月 / 日 / 時辰）
   ============================================ */
.birth-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.4fr;
  gap: 8px;
}
.birth-row select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  transition: all 0.3s var(--t-base);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23d4af37' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  cursor: pointer;
}
.birth-row select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--bg-2);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.field-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  padding: 10px 14px;
  background: rgba(212, 175, 55, 0.05);
  border-left: 2px solid var(--line-strong);
  border-radius: 0 4px 4px 0;
}

@media (max-width: 540px) {
  .birth-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================================
   GALLERY · 教學足跡照片牆 (v3 新增)
   =========================================== */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 40px;
}
.gallery-tab {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--t-base);
  letter-spacing: 0.05em;
}
.gallery-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.gallery-tab.is-active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a0a0f;
  border-color: var(--gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.4s var(--t-base);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s var(--t-base);
}
.gallery-item figcaption small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}
.gallery-item:hover {
  border-color: var(--gold);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.32);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item:hover figcaption {
  transform: translateY(0);
}
.gallery-item.is-hidden {
  display: none;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  cursor: zoom-out;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 64px rgba(212, 175, 55, 0.32);
}
.gallery-lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-lightbox-close:hover {
  background: var(--gold);
  color: #0a0a0f;
}


/* ===========================================
   BENEFITS · 學會的好處 (v3.1 新增)
   小設計: 角落金線勾邊 + 序號 + hover 抬升
   =========================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.benefit-card {
  position: relative;
  padding: 36px 28px 32px;
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(20,20,28,0.6) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.4s var(--t-base);
  overflow: hidden;
}
.benefit-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--t-base);
}
.benefit-corner {
  position: absolute;
  top: 0; right: 0;
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.4s var(--t-base);
}
.benefit-corner svg {
  width: 100%;
  height: 100%;
}
.benefit-num {
  display: inline-block;
  font-family: var(--cinzel, var(--serif));
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 18px;
}
.benefit-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}
.benefit-card .benefit-sub {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  margin: 0 0 16px;
  letter-spacing: 0.08em;
}
.benefit-card .benefit-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-soft);
  margin: 0;
}
.benefit-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.15);
}
.benefit-card:hover::before {
  opacity: 1;
}
.benefit-card:hover .benefit-corner {
  opacity: 1;
}
.benefit-card:hover h3 {
  color: var(--gold);
}

.benefits-footnote {
  margin-top: 48px;
  padding: 24px;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefits-footnote em {
  font-style: normal;
  letter-spacing: 0.05em;
}


/* === Benefits Applications Detail (v3.2) === */
.benefits-applications {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.benefits-app-head {
  text-align: center;
  margin-bottom: 40px;
}
.benefits-app-label {
  display: inline-block;
  font-family: var(--cinzel, var(--serif));
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
  opacity: 0.9;
}
.benefits-app-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.05em;
}
.benefits-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.app-detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px;
  background: rgba(20, 20, 28, 0.4);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  transition: all 0.3s var(--t-base);
}
.app-detail-card:hover {
  background: rgba(212, 175, 55, 0.04);
  border-left-width: 3px;
  transform: translateX(4px);
}
.app-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 4px;
}
.app-icon svg {
  width: 28px;
  height: 28px;
}
.app-detail-card h4 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.08em;
}
.app-detail-card .app-detail-eg {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  margin: 0 0 4px;
  opacity: 0.85;
}
.app-detail-card .app-detail-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}
@media (max-width: 768px) {
  .benefits-app-grid { grid-template-columns: 1fr; }
  .benefits-app-title { font-size: 22px; }
}

/* RWD - Gallery / Benefits */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .benefits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item figcaption { transform: translateY(0); padding: 8px 10px; font-size: 12px; }
}

/* ===========================================
   FENGSHUI STACK · 奇門風水三層空間 (v3.9.2 清廢碼乾淨版)
   =========================================== */
.fengshui-stack {}

.fengshui-stack .fs-stack-wrap,
section.fengshui-stack > .container > .fs-stack-wrap,
.fs-stack-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 40px !important;
  align-items: center !important;
  margin-top: 56px;
  width: 100% !important;
}

/* === 左側 三層疊層容器 === */
.fs-stack-3d {
  position: relative;
  width: 100%;
}

.fs-image-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.65;  /* 比較高, 容納分得更開的三層 */
  margin: 0 auto;
}

/* 三層 PNG 絕對定位疊放, top 偏移更多讓三層更分離 */
.fs-layer {
  position: absolute;
  left: 0;
  width: 100%;
  height: 42%;  /* 略小, 留出 gap */
  cursor: pointer;
  transition: transform 0.5s ease,
              filter 0.5s ease,
              opacity 0.5s ease;
  will-change: transform, filter, opacity;
}

.fs-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.18));
  transition: filter 0.5s ease;
}

.fs-layer-shop   { top:  0%; z-index: 3; }
.fs-layer-office { top: 29%; z-index: 2; }
.fs-layer-home   { top: 58%; z-index: 1; }

/* 樓層標籤 */
.fs-layer-label {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: var(--serif, 'Noto Serif TC', serif);
  color: var(--gold);
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  z-index: 5;
}
.fs-layer-label::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(212,175,55,0));
  margin-right: 6px;
  transition: width 0.4s ease;
}
.fs-label-num {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  font-family: var(--cinzel, var(--serif));
  letter-spacing: 0.2em;
}
.fs-label-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

/* Hover: 該層發光浮起, 其他層暗 */
.fs-image-wrap:hover .fs-layer {
  filter: brightness(0.45);
  opacity: 0.5;
}
.fs-image-wrap:hover .fs-layer:hover,
.fs-image-wrap:hover .fs-layer.is-active,
.fs-layer.is-active {
  filter: brightness(1.3) drop-shadow(0 0 28px rgba(212, 175, 55, 0.45));
  opacity: 1;
  z-index: 10;
}
.fs-layer-shop:hover, .fs-layer-shop.is-active,
.fs-layer-office:hover, .fs-layer-office.is-active,
.fs-layer-home:hover, .fs-layer-home.is-active {
  transform: translateY(-8px) scale(1.03);
}
.fs-layer-shop.is-active { transform: translateY(-8px) scale(1.03); }

.fs-layer:hover .fs-layer-label,
.fs-layer.is-active .fs-layer-label {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}
.fs-layer:hover .fs-layer-label::before,
.fs-layer.is-active .fs-layer-label::before {
  width: 38px;
}

.fs-stack-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* === 右側資訊卡片 === */
.fs-stack-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fs-info-card {
  position: relative;
  padding: 18px 22px;
  background: rgba(20, 20, 28, 0.45);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.fs-info-card:hover,
.fs-info-card.is-active {
  background: rgba(212, 175, 55, 0.07);
  border-left-width: 3px;
  transform: translateX(5px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}
.fs-info-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 4px;
}
.fs-info-icon svg { width: 20px; height: 20px; }
.fs-info-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  margin: 0 0 5px;
  letter-spacing: 0.08em;
}
.fs-info-eg {
  font-size: 11px;
  font-style: italic;
  color: var(--text-soft);
  margin: 0 0 8px;
  opacity: 0.8;
}
.fs-info-card ul { margin: 0; padding: 0; list-style: none; }
.fs-info-card ul li {
  position: relative;
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 2px;
}
.fs-info-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
}
.fs-info-card ul li strong { color: var(--gold); font-weight: 500; }

.fs-stack-cta { margin: 4px 0 0; text-align: center; }

.fs-stack-disclaimer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.7;
  font-family: var(--serif);
}
.fs-stack-disclaimer em { font-style: normal; }

/* === RWD: 768 以下變單欄 (手機) === */
/* 注意: selector 必須 match desktop 規則的 specificity (0,2,2)，不然 !important 也輸 */
@media (max-width: 768px) {
  .fengshui-stack .fs-stack-wrap,
  section.fengshui-stack > .container > .fs-stack-wrap,
  .fs-stack-wrap {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-top: 40px !important;
  }
  .fengshui-stack .fs-image-wrap { max-width: 360px; }
  .fs-layer-label { right: 4px; font-size: 13px; }
  .fs-label-name { font-size: 14px; }
  .fs-layer-label::before { width: 16px; }
  .fengshui-stack .fs-stack-info { gap: 12px; }
  .fengshui-stack .fs-info-card { padding: 16px 18px; }
}
@media (max-width: 480px) {
  .fengshui-stack .fs-image-wrap { max-width: 320px; }
  .fs-layer-label { right: 2px; font-size: 12px; }
  .fs-label-num { font-size: 9px; }
  .fs-label-name { font-size: 13px; }
  .fs-layer-label::before { display: none; }
}

/* ============================================================
   BIRTHCHART 頁專用樣式 (v3.10)
   ============================================================ */

/* === HERO 工具頁簡化版 === */
.hero.hero-tool { min-height: 50vh; padding: 100px 0 60px; }
.hero-inner-tool {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-inner-tool .hero-title { font-size: 38px; line-height: 1.4; }
.hero-inner-tool .hero-sub { max-width: 720px; margin: 20px auto 0; font-size: 15px; }
.hero-tool-hint {
  margin-top: 28px;
  color: var(--gold, #d4af37);
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .hero-inner-tool .hero-title { font-size: 28px; }
  .hero.hero-tool { min-height: auto; padding: 80px 0 40px; }
}

/* === SEO 內容堆疊：常見問題卡片 === */
.qimen-explain { padding-top: 60px; padding-bottom: 60px; }
.qm-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.qm-explain-card {
  background: rgba(20, 20, 28, 0.45);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-left: 3px solid var(--gold, #d4af37);
  padding: 24px 28px;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.qm-explain-card:hover { background: rgba(212, 175, 55, 0.05); }
.qm-explain-card h3 {
  color: var(--gold, #d4af37);
  font-family: var(--serif, 'Noto Serif TC', serif);
  font-size: 17px;
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.qm-explain-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text, #e8e8e8);
  margin: 0;
}
.qm-explain-card a {
  color: var(--gold, #d4af37);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
@media (max-width: 768px) {
  .qm-explain-grid { grid-template-columns: 1fr; gap: 16px; }
  .qm-explain-card { padding: 20px 22px; }
}

/* === 雙 CTA === */
.dual-cta-section { padding: 80px 0; }
.dual-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.dual-cta-card {
  display: block;
  padding: 36px 32px;
  background: rgba(20, 20, 28, 0.45);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 6px;
  text-decoration: none;
  color: var(--text, #e8e8e8);
  transition: all 0.35s ease;
  position: relative;
}
.dual-cta-card:hover {
  background: rgba(212, 175, 55, 0.07);
  border-color: var(--gold, #d4af37);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.18);
}
.dual-cta-card-primary {
  border: 1px solid var(--gold, #d4af37);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(212, 175, 55, 0.02));
}
.dual-cta-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  margin-bottom: 18px;
}
.dual-cta-card h3 {
  font-family: var(--serif, 'Noto Serif TC', serif);
  font-size: 20px;
  color: var(--gold, #d4af37);
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}
.dual-cta-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft, #a8a8a8);
  margin: 0 0 24px;
}
.dual-cta-arrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold, #d4af37);
  letter-spacing: 0.08em;
  transition: transform 0.3s ease;
}
.dual-cta-card:hover .dual-cta-arrow { transform: translateX(6px); }
.dual-cta-disclaimer {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft, #a8a8a8);
  opacity: 0.7;
  font-family: var(--serif, 'Noto Serif TC', serif);
  font-style: italic;
}
@media (max-width: 768px) {
  .dual-cta-grid { grid-template-columns: 1fr; gap: 20px; }
  .dual-cta-section { padding: 60px 0; }
  .dual-cta-card { padding: 28px 24px; }
}

/* === nav 上「奇門本命解析」按鈕 active 狀態（在工具頁顯示）=== */
.nav-cta-secondary.active,
.nav-mobile-cta a.active {
  background: var(--gold, #d4af37) !important;
  color: var(--bg, #0a0a0f) !important;
  border-color: var(--gold, #d4af37) !important;
}

/* === birthchart 頁的 #qm-form 表單上方留 padding 讓 scroll-to 不卡 nav === */
body.birthchart-page #qm-form { scroll-margin-top: 100px; }

/* ============================================================
   PressPlay 線上課程卡片 (v4 modal 內，選「線上課程」時顯示)
   ============================================================ */
#press-play-block {
  margin-top: 18px;
}
.pp-card {
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 28, 0.55);
  border: 1px solid var(--gold, #d4af37);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.15);
}
.pp-cover {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.08));
}
.pp-card-body {
  padding: 22px 24px 18px;
}
.pp-card-body h3 {
  font-family: var(--serif, 'Noto Serif TC', serif);
  font-size: 20px;
  color: var(--gold, #d4af37);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.pp-card-body .pp-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text, #e8e8e8);
  margin: 0 0 18px;
}
.pp-card-body .pp-desc strong {
  color: var(--gold, #d4af37);
}
#pp-cta {
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.pp-card-body .pp-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-soft, #a8a8a8);
  opacity: 0.7;
  line-height: 1.6;
  font-style: italic;
}
@media (max-width: 600px) {
  .pp-card-body { padding: 18px 18px 14px; }
  .pp-card-body h3 { font-size: 17px; }
  .pp-card-body .pp-desc { font-size: 13px; }
}
