/* ==========================================================================
   瑜伽折學 Yoga Philosophy — style.css
   視覺語彙：夜空 · 月亮 · 星點（取自 Podcast 封面）
   ========================================================================== */

/* === TOKENS === */
:root {
  --night:      #0B1229;  /* 最深，footer / CTA */
  --navy-deep:  #101A38;  /* 深區塊 */
  --navy:       #1B2A5B;  /* 品牌主色 */
  --navy-soft:  #2A3D73;  /* hover / 邊界 */

  --moon:       #F5C542;  /* 強調色，CTA 專用 */
  --moon-soft:  #FBE9AE;  /* 高亮底 */
  --sage:       #9BA893;  /* 輔色 */
  --seed:       #648C5D;  /* 米子共享空間 logo 綠 */

  --cream:      #F7F4EC;  /* 主背景 */
  --cream-alt:  #EFEADC;  /* 交錯背景 */
  --surface:    #FFFFFF;

  --ink:        #17203C;
  --ink-2:      #55607F;
  --ink-3:      #8E96AC;
  --border:     #E2DCCB;

  --on-dark:    #F4F1E6;
  --on-dark-2:  rgba(244,241,230,0.68);
  --on-dark-3:  rgba(244,241,230,0.42);

  --nav-h: 68px;
  --radius: 14px;
  --radius-sm: 10px;

  --sans: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection { background: var(--moon); color: var(--night); }

/* === 共用容器 === */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head.left { text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--moon);
}
.on-dark .eyebrow { color: var(--moon); }
.on-dark .eyebrow::before { background: var(--moon); opacity: 0.6; }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; }

.section-h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.on-dark .section-h2 { color: var(--on-dark); }
.section-h2 em { font-style: normal; color: var(--moon); }
/* 淺底區塊上的月光黃對比不足，改用主色 + 底線標記 */
.section-h2 em {
  color: var(--navy);
  box-shadow: inset 0 -0.32em 0 var(--moon-soft);
}
.on-dark .section-h2 em { color: var(--moon); box-shadow: none; }

.section-sub {
  font-size: 16px; color: var(--ink-2);
  margin-top: 16px; max-width: 620px;
}
.section-head:not(.left) .section-sub { margin-left: auto; margin-right: auto; }
.on-dark .section-sub { color: var(--on-dark-2); }

.on-dark { background: var(--navy); color: var(--on-dark); }
.bg-alt { background: var(--cream-alt); }

/* === 按鈕 === */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.03em;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--moon); color: var(--night); box-shadow: 0 4px 18px rgba(245,197,66,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,197,66,0.4); }

.btn-outline { border: 1.5px solid rgba(244,241,230,0.35); color: var(--on-dark); }
.btn-outline:hover { border-color: var(--moon); color: var(--moon); }

.btn-seed { padding-left: 14px; gap: 10px; }
.btn-seed img {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
}

.btn-ghost {
  padding: 0; font-size: 14px; color: var(--navy);
  border-bottom: 1px solid transparent; border-radius: 0;
}
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* === NAV === */
#main-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(11,18,41,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245,197,66,0.18);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-badge {
  width: 42px; height: 42px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--sans); font-size: 18px; font-weight: 900;
  color: var(--on-dark); line-height: 1.15; letter-spacing: 0.04em;
}
.nav-logo-name span {
  display: block; font-family: var(--sans);
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--moon); margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 600;
  color: var(--on-dark-2); transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--moon); transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--on-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta, .nav-links .nav-cta {
  padding: 9px 20px; border-radius: 999px;
  background: var(--moon); color: var(--night); font-weight: 700;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--moon-soft); color: var(--night); }

.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--on-dark);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
#hero {
  position: relative;
  min-height: 0;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 56px;
  background:
    radial-gradient(1000px 600px at 18% 30%, #24356E 0%, transparent 60%),
    linear-gradient(170deg, #16234C 0%, #0B1229 100%);
  overflow: hidden;
}
#star-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-moon {
  position: absolute; left: -10%; bottom: -14%;
  width: min(34vw, 420px); aspect-ratio: 1;
  opacity: 0.34;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-layout {
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}
.hero-brand-cn {
  font-family: var(--sans);
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 900; line-height: 1.2;
  color: var(--on-dark); letter-spacing: 0.06em;
}
.hero-brand-cn em { font-style: normal; color: var(--moon); }
.hero-brand-en {
  font-size: 11px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--moon);
  margin-top: 14px;
}
.hero-slogan {
  font-family: var(--sans);
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--on-dark); margin-top: 26px; line-height: 1.7;
}
.hero-slogan b { color: var(--moon); font-weight: 700; }
.hero-desc {
  font-size: 15px; color: var(--on-dark-2);
  line-height: 1.9; margin-top: 18px; max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-desc b { color: var(--on-dark); font-weight: 700; }

.hero-logo-wrap { display: flex; justify-content: center; }
.hero-logo-img {
  width: 100%; max-width: 360px; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  border: 1px solid rgba(245,197,66,0.2);
}

/* === 三張導覽卡 === */
.nav-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; text-align: left;
}
.nav-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27,42,91,0.13);
  border-color: var(--navy-soft);
}
.nav-card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-alt); }
.nav-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.nav-card:hover .nav-card-media img { transform: scale(1.05); }

.nav-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.nav-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.nav-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.nav-card-link {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 7px;
}
.nav-card-link::after { content: '→'; transition: transform 0.25s; }
.nav-card:hover .nav-card-link { color: var(--navy-soft); }
.nav-card:hover .nav-card-link::after { transform: translateX(4px); }

/* === PODCAST === */
#podcast { background: var(--navy); }
.pod-layout {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start;
}
.pod-player {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: rgba(11,18,41,0.5);
  border: 1px solid rgba(245,197,66,0.2);
  border-radius: var(--radius); padding: 22px;
}
.pod-player h3 { font-size: 16px; color: var(--on-dark); margin-bottom: 4px; }
.pod-player .meta { font-size: 12px; color: var(--on-dark-3); margin-bottom: 16px; }
.pod-player iframe {
  width: 100%; height: 175px; border: 0; border-radius: 10px;
  background: rgba(0,0,0,0.2);
}
.pod-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pod-platform {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(244,241,230,0.22);
  font-size: 12.5px; font-weight: 600; color: var(--on-dark-2);
  transition: border-color 0.2s, color 0.2s;
}
.pod-platform:hover { border-color: var(--moon); color: var(--moon); }
.pod-platform svg { width: 15px; height: 15px; flex-shrink: 0; }

.pod-list { display: flex; flex-direction: column; gap: 14px; }
.pod-ep {
  display: block; padding: 20px 22px;
  background: rgba(244,241,230,0.05);
  border: 1px solid rgba(244,241,230,0.1);
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.pod-ep:hover {
  background: rgba(244,241,230,0.09);
  border-color: rgba(245,197,66,0.4);
  transform: translateX(4px);
}
.pod-ep-top {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; color: var(--on-dark-3);
  letter-spacing: 0.06em; margin-bottom: 8px; flex-wrap: wrap;
}
.pod-ep-num {
  color: var(--moon); font-weight: 800; letter-spacing: 0.1em;
}
.pod-ep h4 {
  font-family: var(--sans); font-size: 17px; font-weight: 700;
  color: var(--on-dark); line-height: 1.6;
}
.pod-ep .guest {
  display: inline-block; margin-top: 8px;
  font-size: 12px; color: var(--sage);
}
.pod-ep .guest::before { content: '來賓 · '; opacity: 0.7; }
.pod-ep .sum {
  font-size: 13.5px; color: var(--on-dark-2);
  line-height: 1.8; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pod-more { text-align: center; margin-top: 28px; }
.pod-loading { color: var(--on-dark-3); font-size: 14px; padding: 24px 0; }

/* === 四大價值 === */
.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px;
}
.value-item {
  background: var(--surface); border-radius: var(--radius);
  padding: 30px 26px; border-top: 3px solid var(--moon);
}
.value-item .num {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  color: var(--moon); letter-spacing: 0.18em; margin-bottom: 12px;
}
.value-item h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.value-item p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }

/* === ABOUT === */
.about-layout {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px;
  align-items: stretch;   /* 兩欄等高，上下緣對齊 */
}
.about-photo {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 44px rgba(27,42,91,0.16);
  background: var(--cream-alt);
  min-height: 100%;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 28%;   /* 讓臉部落在視覺重心 */
}
.about-body { display: flex; flex-direction: column; }
.about-body .creds { margin-top: auto; }
.about-quote {
  font-family: var(--sans); font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700; line-height: 1.7; color: var(--ink); margin-bottom: 22px;
}
.about-body p { font-size: 15.5px; color: var(--ink-2); line-height: 2; margin-bottom: 16px; }
/* 師資資歷 */
.creds {
  margin-top: 28px; padding: 24px 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--moon);
  border-radius: var(--radius-sm);
}
.creds-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
}
.creds ul {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 24px;
}
.creds li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--ink-2); line-height: 1.9;
}
.creds li::before {
  content: '✦'; position: absolute; left: 0; top: 0;
  font-size: 10px; color: var(--moon);
}
.creds li span {
  margin-left: 7px; font-size: 11.5px; color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* === COURSES === */
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px;
}
.course-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.course-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--moon); border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0; transition: opacity 0.25s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,42,91,0.12); }
.course-card:hover::before { opacity: 1; }
.course-card.featured { border-color: var(--moon); }
.course-card.featured::before { opacity: 1; }

.course-tags { display: flex; gap: 7px; margin-bottom: 16px; flex-wrap: wrap; }
.course-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 11px; border-radius: 999px;
  background: var(--cream-alt); color: var(--ink-2);
}
.course-tag.online { background: #E4EBF7; color: #2C4373; }
.course-tag.onsite { background: #E7EDE3; color: #4C5B44; }
.course-tag.hot { background: var(--moon); color: var(--night); }

.course-name { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.course-en {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.course-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; margin-bottom: 18px; }
.course-features { list-style: none; margin-bottom: 22px; }
.course-features li {
  position: relative; padding-left: 20px; font-size: 13.5px;
  color: var(--ink-2); line-height: 1.9;
}
.course-features li::before {
  content: '·'; position: absolute; left: 6px; top: -1px;
  color: var(--moon); font-size: 20px; font-weight: 700;
}
.course-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--navy); color: var(--navy);
  font-size: 14px; font-weight: 700; transition: background 0.2s, color 0.2s;
}
.course-cta:hover { background: var(--navy); color: var(--on-dark); }
.course-card.featured .course-cta { background: var(--moon); border-color: var(--moon); color: var(--night); }
.course-card.featured .course-cta:hover { background: var(--moon-soft); border-color: var(--moon-soft); }

.pricing-note {
  margin-top: 32px; text-align: center;
  font-size: 13.5px; color: var(--ink-3);
}

/* === SPACE 米子共享空間 === */
#space { background: var(--navy-deep); }
.space-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

/* 空間實景照片 */
.space-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.space-gallery figure {
  margin: 0; overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244,241,230,0.1);
  background: rgba(244,241,230,0.04);
  aspect-ratio: 4/3;
}
.space-gallery .g-main { grid-column: 1 / -1; aspect-ratio: 16/11; }
.space-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.space-gallery figure:hover img { transform: scale(1.04); }

/* 地圖：區塊下方全寬 */
.space-map {
  margin-top: 52px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(245,197,66,0.22);
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
  background: rgba(244,241,230,0.04);
}
.space-map iframe {
  display: block; width: 100%; height: 320px; border: 0;
  filter: grayscale(0.35) brightness(0.95) contrast(1.02);
}
.map-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 18px; font-size: 14px; font-weight: 700;
  color: var(--night); background: var(--moon);
  transition: background 0.2s;
}
.map-cta:hover { background: var(--moon-soft); }
.map-cta svg { width: 17px; height: 17px; }

/* 米子 logo 與標題同一行 */
.space-brand { display: flex; align-items: center; gap: 16px; }
.space-logo {
  width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}

.space-info dl { margin-top: 22px; }
.space-info dt {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moon); margin-top: 18px;
}
.space-info dd { font-size: 15px; color: var(--on-dark-2); margin-top: 5px; line-height: 1.8; }
.space-info dd a { border-bottom: 1px solid rgba(245,197,66,0.45); transition: color 0.2s; }
.space-info dd a:hover { color: var(--moon); }
.space-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* === 見證 === */
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.testi {
  background: var(--surface); border-radius: var(--radius);
  padding: 30px 28px; border: 1px solid var(--border);
}
.testi .stars { color: var(--moon); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.testi p {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.9;
  position: relative; padding-left: 2px;
}
.testi p::before {
  content: '「'; color: var(--moon); font-weight: 700;
}
.testi p::after {
  content: '」'; color: var(--moon); font-weight: 700;
}
.testi .who {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--ink-3);
}
/* === FAQ === */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 4px; text-align: left;
  font-family: var(--sans); font-size: 16.5px; font-weight: 700; color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--navy); }
.faq-arrow {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream-alt); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 400; transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); background: var(--moon); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 4px 24px; font-size: 14.5px; color: var(--ink-2); line-height: 1.95;
}

/* === FOOTER === */
footer {
  background: var(--night); color: var(--on-dark-2);
  border-top: 1px solid rgba(245,197,66,0.16);
}
.footer-grid {
  max-width: 1080px; margin: 0 auto; padding: 64px 32px 44px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-brand .cn {
  font-family: var(--sans); font-size: 22px; font-weight: 900;
  color: var(--on-dark); letter-spacing: 0.08em;
}
.footer-brand .en {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--moon); margin-top: 5px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.95; margin-top: 18px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moon); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 13.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--moon); }
.footer-icon-link { display: inline-flex; align-items: center; gap: 9px; }
.footer-icon-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(244,241,230,0.1);
  padding: 20px 32px; max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--on-dark-3);
}

/* === 進場動畫 ===
   只在 JS 可用時才隱藏，避免沒有 JS 的訪客看到空白頁 */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* === 浮動 LINE 按鈕（手機） === */
#float-line {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  padding: 12px 20px; border-radius: 999px;
  background: var(--moon); color: var(--night);
  font-size: 13.5px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
/* 捲離 hero 之後才浮現，避免蓋住 hero 的主要 CTA */
body.scrolled #float-line { opacity: 1; transform: none; pointer-events: auto; }

/* === RWD === */
@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo-wrap { order: -1; }
  .hero-logo-img { max-width: 240px; }
  .hero-desc { max-width: none; }
  .pod-layout { grid-template-columns: 1fr; gap: 32px; }
  .pod-player { position: static; }
  .about-layout, .space-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { aspect-ratio: 4/5; min-height: 0; }
  .about-body .creds { margin-top: 28px; }
  .space-map iframe { height: 260px; }
  .space-logo { width: 50px; height: 50px; }
  .space-brand { gap: 13px; }
  .space-map { margin-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 68px 0; }
  .wrap, .wrap-narrow { padding: 0 22px; }
  #main-nav { padding: 0 20px; }

  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,18,41,0.98);
    backdrop-filter: blur(14px);
    padding: 8px 20px 24px;
    border-bottom: 1px solid rgba(245,197,66,0.2);
    transform: translateY(-120%); transition: transform 0.3s;
  }
  .nav-links.open { transform: none; }
  .nav-links li { border-bottom: 1px solid rgba(244,241,230,0.08); }
  .nav-links a { display: block; padding: 15px 4px; font-size: 15px; }
  .nav-links a::after { display: none; }
  .nav-cta-item { border-bottom: none !important; margin-top: 14px; }
  .nav-links .nav-cta { justify-content: center; }
  .nav-mobile-toggle { display: flex; }

  #hero { padding: calc(var(--nav-h) + 32px) 0 48px; }
  .hero-moon { left: -22%; width: 78vw; opacity: 0.75; }

  .footer-grid { grid-template-columns: 1fr; padding: 48px 22px 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  #float-line { display: block; }
}
