:root {
  --sky: #e1e9ef;
  --lavender: #edddef;
  --mist: #f7f4fb;
  --navy: #345e7d;
  --navy-deep: #2c3e50;
  --plum: #714f99;
  --plum-soft: #8a5ac4;
  --gold: #c9a45c;
  --gold-soft: #d4af37;
  --card-lilac: rgba(237, 221, 239, 0.72);
  --card-sky: rgba(225, 233, 239, 0.78);
  --card-lilac-border: rgba(138, 90, 196, 0.38);
  --card-sky-border: rgba(52, 94, 125, 0.32);
  --ink: #3a4450;
  --white: rgba(255, 255, 255, 0.78);
  --radius-img: 20px;
  --radius-card: 16px;
  --max: 1120px;
  --font-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "Source Han Sans TC", "PingFang TC", sans-serif;
  --shadow-soft: 0 18px 50px rgba(52, 94, 125, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.18rem;
  line-height: 1.85;
  background:
    linear-gradient(115deg, var(--sky) 0%, #f4eef8 42%, var(--lavender) 72%, #f8f6fb 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 251, 0.78);
  border-bottom: 1px solid rgba(113, 79, 153, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background:
    radial-gradient(circle at 35% 30%, #f7f4fb 0%, var(--lavender) 45%, var(--sky) 100%);
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(113, 79, 153, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: clamp(1.12rem, 2.4vw, 1.32rem);
  letter-spacing: 0.06em;
}

.brand-text span {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--plum);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 1.05rem;
  color: var(--navy);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--plum), #5d3f86);
  color: #fff !important;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(113, 79, 153, 0.22);
}

.nav-cta::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(52, 94, 125, 0.2);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--navy);
}

.decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.decor-watercolor {
  width: min(42vw, 420px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.decor-geo {
  width: min(34vw, 280px);
  opacity: 0.7;
}

.decor-spark {
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

.section {
  position: relative;
  /* 章節間距再壓緊：上下各側，相鄰 section 合併後約原一半 */
  padding: clamp(1.05rem, 2.2vw, 1.65rem) 0;
  overflow: hidden;
}

.section-head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.85rem;
  max-width: none;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--plum);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.45rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
}

h3 {
  font-size: clamp(1.32rem, 2.2vw, 1.6rem);
}

.lead {
  margin: 0.7rem 0 0;
  color: var(--plum);
  font-size: clamp(1.15rem, 2.1vw, 1.32rem);
  line-height: 1.75;
}

.muted {
  color: rgba(58, 68, 80, 0.86);
}

.hero {
  padding-top: clamp(1.15rem, 2.6vw, 2rem);
  padding-bottom: clamp(1.15rem, 2.6vw, 2rem);
}

/*
  首圖樣式（sallyaip 參考：僅首圖排版）：
  - 頂置、全幅（edge-to-edge）、大面積主導第一視窗
  - 內容權威仍為 docx 文圖海報：自然比例完整可讀，禁止 cover 裁切／替換丢失
*/
.hero-bleed {
  padding: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, #ffffff 0%, var(--mist) 42%, var(--lavender) 78%, var(--sky) 100%);
}

.hero-bleed-frame {
  margin: 0;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, #ffffff 0%, var(--mist) 42%, var(--lavender) 78%, var(--sky) 100%);
}

.hero-bleed-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
}

/* 相容舊 class：等同全幅首圖 */
.hero-banner {
  padding: 0;
}

.hero-banner-frame {
  margin: 0;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background:
    radial-gradient(circle at 28% 18%, #ffffff 0%, var(--mist) 42%, var(--lavender) 78%, var(--sky) 100%);
}

.hero-banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center top;
}

.hero-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0;
  justify-content: center;
}

.hero-follow {
  padding-top: clamp(0.65rem, 1.5vw, 1rem);
  padding-bottom: clamp(0.7rem, 1.8vw, 1.2rem);
}

/* 體驗頁：首圖改為可讀網頁元素（圖＋文分開，圖不裁切） */
.hero-experience {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.05rem, 2.4vw, 1.75rem);
  padding-bottom: clamp(1.05rem, 2.4vw, 1.75rem);
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.88) 0%, transparent 42%),
    linear-gradient(115deg, #f7f4fb 0%, var(--lavender) 48%, var(--sky) 100%);
}

.hero-experience .hero-grid {
  align-items: center;
}

.hero-experience .hero-copy h1 {
  max-width: 14ch;
}

.hero-points {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hero-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-points .mark {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(138, 90, 196, 0.88);
  color: #fff;
  font-size: 0.78rem;
  flex: 0 0 auto;
}

.hero-experience .hero-visual .rounded-media.experience-hero-photo {
  /* 講師002.png 自然比例 1023×1537 → 2:3，contain 避免裁切 */
  aspect-ratio: 2 / 3;
  max-width: 420px;
  margin-inline: auto;
  background:
    radial-gradient(circle at 40% 28%, #ffffff 0%, var(--mist) 40%, var(--lavender) 78%, var(--sky) 100%);
}

.hero-experience .hero-visual .rounded-media.experience-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-feature-row {
  margin-top: clamp(0.85rem, 2vw, 1.35rem);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 2.6vw, 1.85rem);
  align-items: center;
}

/* 講座頁：首圖全幅頂置；HTML 文案置於其下（不混頁、不蓋掉海報資訊）
   文案欄最大寬與全站 --max／.container 同步，不再另設 46／34rem */
.hero-workshop-copy {
  max-width: none;
  width: 100%;
}

.hero-workshop-copy h1 {
  max-width: none;
}

.hero-workshop-copy .lead {
  max-width: none;
}

.hero-copy p {
  margin: 1rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--plum), #5a3d82);
  color: #fff;
  box-shadow: 0 14px 30px rgba(113, 79, 153, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(52, 94, 125, 0.28);
  color: var(--navy);
}

.btn-gold {
  background: linear-gradient(135deg, #e8d39a, #c9a45c);
  color: #3a2f12;
  box-shadow: 0 12px 28px rgba(201, 164, 92, 0.25);
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 12px 26px rgba(24, 119, 242, 0.22);
}

.btn-facebook:hover {
  background: #166fe5;
}

.hero-visual {
  position: relative;
}

.rounded-media {
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.4);
}

.rounded-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 故事配圖：完整可見（英國拼貼／孩子照），不以固定比例 cover 裁切 */
.rounded-media.story-photo {
  aspect-ratio: auto;
  width: 100%;
  max-width: none;
}

.rounded-media.story-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.hero-visual .rounded-media {
  aspect-ratio: 1 / 1.05;
}

.hero-visual .rounded-media.landscape {
  aspect-ratio: 4 / 3;
}

.hero-visual .rounded-media.soft-logo {
  aspect-ratio: 1 / 1;
  max-width: 220px;
  margin-inline: auto;
  background:
    radial-gradient(circle at 40% 30%, #ffffff 0%, var(--mist) 35%, var(--lavender) 70%, var(--sky) 100%);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.hero-visual .rounded-media.soft-logo img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.hero-visual .rounded-media.lecturer-photo {
  /* 預設直式講師照（關於我頁 lecturer-photo.jpg）2:3 */
  aspect-ratio: 2 / 3;
  width: min(100%, 360px);
  max-width: 360px;
  margin-inline: auto;
  background: var(--mist);
}

.hero-visual .rounded-media.lecturer-photo.lecturer-photo-landscape {
  /* 講座頁講師003.png 自然比例 1537×1023 → 3:2 橫式 */
  aspect-ratio: 3 / 2;
  width: min(100%, 560px);
  max-width: 560px;
}

.hero-visual .rounded-media.lecturer-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-accent {
  max-width: 280px;
  margin: 1.25rem 0 0;
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-accent img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stat-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 164, 92, 0.35);
  box-shadow: var(--shadow-soft);
}

.stat-row strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--plum);
  line-height: 1.2;
}

.stat-row span {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.02rem;
  color: var(--navy);
}

.pill {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(52, 94, 125, 0.35);
  border-radius: 0.4rem;
  color: var(--navy-deep);
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

.story-grid,
.split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.95rem, 2.4vw, 1.65rem);
  align-items: start;
}

/* 文先圖後：DOM 順序＝文字→配圖；手機單欄自然先讀文字 */
.story-grid--text-media > .story-copy {
  order: 1;
}

.story-grid--text-media > .story-media {
  order: 2;
}

.story-stack {
  max-width: 42rem;
}

/* 孩子照：縮小顯示（明天若改多圖拼貼再調整） */
.rounded-media.story-photo.story-photo--child {
  width: min(100%, 420px);
  max-width: 420px;
  margin: 1rem auto 0;
}

.course-photo-stack {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.course-photo-stack .story-photo {
  width: 100%;
}

/* 首頁講師004（1086×1448 → 3:4）：完整顯示，勿 cover 裁切 */
.hero-visual .rounded-media.lecturer-photo.portrait-composite {
  aspect-ratio: 3 / 4;
  width: min(100%, 380px);
  max-width: 380px;
  background:
    linear-gradient(160deg, #f7eef3 0%, var(--mist) 45%, var(--lavender) 100%);
}

.hero-visual .rounded-media.lecturer-photo.portrait-composite img {
  object-fit: contain;
  object-position: center center;
}

.prose p {
  margin: 0 0 0.75rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.quote {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-size: 1.15rem;
}

.list-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
}

.list-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-card);
  border: 1px solid;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(52, 94, 125, 0.05);
  animation: rise-in 0.7s ease both;
}

.list-card:nth-child(odd) {
  background: var(--card-lilac);
  border-color: var(--card-lilac-border);
  color: #5a3d7a;
}

.list-card:nth-child(even) {
  background: var(--card-sky);
  border-color: var(--card-sky-border);
  color: var(--navy);
}

.list-card .mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #fff;
}

.list-card:nth-child(odd) .mark {
  background: rgba(138, 90, 196, 0.85);
}

.list-card:nth-child(even) .mark {
  background: rgba(52, 94, 125, 0.85);
}

.list-card p,
.list-card span {
  margin: 0;
  line-height: 1.7;
}

.band-hero {
  position: relative;
  min-height: clamp(220px, 38vw, 360px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.band-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 36, 48, 0.55), rgba(28, 36, 48, 0.15) 55%, rgba(28, 36, 48, 0.05));
}

.band-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 2.2rem;
}

.band-hero h1,
.band-hero h2 {
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.panel {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  border-radius: calc(var(--radius-card) + 4px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(113, 79, 153, 0.14);
  box-shadow: var(--shadow-soft);
}

.case-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.case-card {
  padding: 1.35rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(52, 94, 125, 0.14);
}

.case-card .meta {
  color: var(--plum);
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
}

.case-card h3 {
  margin-bottom: 0.75rem;
}

.case-card img {
  border-radius: 14px;
  margin-bottom: 1rem;
}

/* 案例卡：上圖／下文（不可左右並排為主） */
.case-card.case-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.case-card.case-compact .case-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  align-self: center;
  flex: 0 0 auto;
  border: 2px solid rgba(201, 164, 92, 0.45);
  box-shadow: 0 6px 16px rgba(52, 94, 125, 0.12);
}

.case-card.case-compact .case-body {
  min-width: 0;
  width: 100%;
  text-align: left;
}

.case-card.case-compact .meta {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--plum);
  margin: 0 0 0.25rem;
}

.case-card.case-compact h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
}

.case-card.case-compact p {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
}

.case-card.case-compact p:last-child {
  margin-bottom: 0;
}

.case-grid.case-grid-compact {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(201, 164, 92, 0.28);
}

.step-num {
  font-family: var(--font-serif);
  color: var(--plum);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(113, 79, 153, 0.16);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-size: 1.15rem;
}

.faq details p {
  margin: 0.75rem 0 0;
}

.cta-banner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(237, 221, 239, 0.85), rgba(225, 233, 239, 0.9));
  border: 1px solid rgba(201, 164, 92, 0.35);
  text-align: center;
  overflow: hidden;
}

.cta-banner h2 {
  margin-bottom: 0.6rem;
}

.cta-banner p {
  margin: 0 auto 1.25rem;
  max-width: none;
  width: 100%;
  color: var(--plum);
}

/* 講座「想繼續深入」獨立區塊：全寬，不再像 split 左欄 */
#continue .continue-prose,
#continue .continue-list,
#continue .continue-panel {
  max-width: none;
  width: 100%;
}

#continue .list-cards {
  display: grid;
  gap: 0.75rem;
}

.feedback-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.feedback-rail img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(113, 79, 153, 0.12);
  box-shadow: var(--shadow-soft);
}

.feedback-rail img.feedback-clickable {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feedback-rail img.feedback-clickable:hover,
.feedback-rail img.feedback-clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(52, 94, 125, 0.16);
  outline: 2px solid rgba(113, 79, 153, 0.45);
  outline-offset: 2px;
}

/* 客戶反饋完整檢視 — 僅覆蓋檢視層，不改動頁面其他圖片 */
.feedback-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(44, 62, 80, 0.72);
  backdrop-filter: blur(2px);
}

.feedback-lightbox[hidden] {
  display: none !important;
}

.feedback-lightbox-figure {
  margin: 0;
  max-width: min(92vw, 720px);
  max-height: min(88vh, 960px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.feedback-lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88vh, 960px);
  object-fit: contain;
  border-radius: 12px;
}

.feedback-lightbox-close {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1001;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-deep);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.feedback-lightbox-close:hover,
.feedback-lightbox-close:focus-visible {
  background: #fff;
  outline: 2px solid rgba(113, 79, 153, 0.5);
  outline-offset: 2px;
}

body.feedback-lightbox-open {
  overflow: hidden;
}

.site-footer {
  position: relative;
  padding: 1.75rem 0 1.5rem;
  border-top: 1px solid rgba(113, 79, 153, 0.12);
  background: rgba(247, 244, 251, 0.7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.footer-brand {
  font-family: var(--font-serif);
  color: var(--navy-deep);
  font-size: 1.28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.footer-note {
  width: 100%;
  margin: 1rem 0 0;
  color: rgba(58, 68, 80, 0.7);
  font-size: 0.95rem;
}

/* Soft entrance only — never hide content (print / no-JS / full capture safe) */
.reveal {
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  opacity: 0.96;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.floaty {
  animation: floaty 6s ease-in-out infinite;
}

@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .split-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  /* 手機：強制先文字、後配圖（含原本圖在左欄的區塊） */
  .story-grid--text-media > .story-copy {
    order: 1;
  }

  .story-grid--text-media > .story-media {
    order: 2;
  }

  .rounded-media.story-photo.story-photo--child {
    width: min(100%, 300px);
    max-width: 300px;
  }

  .hero-workshop-copy h1 {
    max-width: none;
  }

  .hero-bleed-frame,
  .hero-banner-frame {
    border-radius: 0;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .feedback-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 5.25rem;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(113, 79, 153, 0.16);
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.4rem;
  }

  .nav-cta {
    margin-top: 0.35rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .feedback-rail {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions,
  .hero-banner-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }

  /* 手機版：取消滿寬巨型 CTA，改為內容寬＋較緊湊高度 */
  .btn {
    width: auto;
    max-width: 100%;
    min-height: 2.35rem;
    padding: 0.42rem 1.05rem;
    font-size: 0.875rem;
    line-height: 1.35;
    gap: 0.3rem;
  }

  .btn-primary {
    box-shadow: 0 8px 18px rgba(113, 79, 153, 0.2);
  }

  .btn-gold {
    box-shadow: 0 8px 16px rgba(201, 164, 92, 0.2);
  }

  .btn-facebook {
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.2);
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .header-inner {
    min-height: 4.75rem;
  }

  .hero-experience .hero-copy h1 {
    max-width: none;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}
