/* ============================================
   安泇線上解讀 官網樣式 v4
   深夜星空 × 香檳金｜與原官網風格區隔
   ============================================ */
:root {
  --bg: #1e1b28;
  --bg-soft: #262233;
  --surface: #2c2739;
  --surface-2: #342e44;
  --ivory: #f1ebe1;
  --text: #d8d1c5;
  --text-soft: #a89e90;
  --gold: #d4b483;
  --gold-bright: #e9d3a8;
  --gold-deep: #b3956a;
  --line: rgba(212, 180, 131, 0.16);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.5);
  --glow: 0 0 32px rgba(212, 180, 131, 0.18);
  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  --serif-latin: "Cormorant Garamond", "Noto Serif TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

::selection { background: var(--gold); color: #241f14; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #4a4258; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 捲動進度條 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  z-index: 300; pointer-events: none;
  transition: width .1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(30, 27, 40, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s ease;
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4); }
.header-top {
  display: flex; justify-content: center; align-items: center;
  position: relative; padding: 18px 0 8px;
  transition: padding .35s ease;
}
.site-header.scrolled .header-top { padding: 10px 0 4px; }
.logo { display: block; transition: transform .3s var(--ease-out); }
.logo:hover { transform: scale(1.04); }
.logo img {
  height: 72px; width: auto; transition: height .35s ease;
  filter: brightness(1.25) drop-shadow(0 0 14px rgba(212, 180, 131, 0.25));
}
.site-header.scrolled .logo img { height: 54px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--ivory); line-height: 1;
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* 導覽列 */
.main-nav { padding: 4px 0 12px; }
.main-nav ul { display: flex; justify-content: center; align-items: center; }
.main-nav li { position: relative; }
.main-nav li + li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 1px; height: 15px;
  background: var(--line);
}
.main-nav a {
  display: block; padding: 4px 28px; position: relative;
  font-size: 16px; letter-spacing: 1px; color: var(--text);
  transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: -2px;
  height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease-out);
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); font-weight: 600; }

/* ---------- Hero（星夜） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 85% -12%, rgba(212, 180, 131, 0.10), transparent 60%),
    radial-gradient(900px 520px at 8% 100%, rgba(126, 106, 168, 0.14), transparent 58%),
    radial-gradient(1400px 700px at 50% 45%, #272236, transparent 100%),
    var(--bg);
  padding: 40px 0 0;
}
.hero-deco {
  position: absolute; inset: -4% 0 0; width: 100%; height: 108%;
  pointer-events: none; opacity: .5; will-change: transform;
}
.hero-deco path { stroke: rgba(212, 180, 131, 0.65); }
.hero-deco path {
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 3.2s var(--ease-out) forwards;
}
.hero-deco path:nth-child(2) { animation-delay: .35s; }
.hero-deco path:nth-child(3) { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr;
  align-items: center; gap: 30px;
  min-height: 560px; padding-bottom: 120px;
}
.hero-text { padding-left: 4%; }
.hero-text h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: 5px; line-height: 1.5; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--gold-bright) 10%, var(--ivory) 55%, var(--gold) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-bright);
  animation: riseIn 1s .15s var(--ease-out) both;
}
.hero-en {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--serif-latin); font-style: italic; font-weight: 500;
  color: var(--gold); font-size: clamp(22px, 2.6vw, 34px);
  margin-bottom: 26px;
  animation: riseIn 1s .4s var(--ease-out) both;
}
.hero-en::before {
  content: ""; width: 150px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  flex-shrink: 0; transform-origin: left;
  animation: growX 1.1s .55s var(--ease-out) both;
}
.hero-text p {
  color: var(--text-soft); font-size: 17px; margin-bottom: 36px; letter-spacing: 1px;
  animation: riseIn 1s .55s var(--ease-out) both;
}
.hero-text .btn { animation: riseIn 1s .7s var(--ease-out) both; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-art { position: relative; animation: heroArt 1.4s .3s var(--ease-out) both; }
@keyframes heroArt {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.hero-slides { position: relative; aspect-ratio: 1; animation: float 7s 1.8s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-slides .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .9s ease;
}
.hero-slides .slide.current { opacity: 1; }
.hero-slides .slide img { width: 100%; height: 100%; object-fit: contain; }
.hero-slides .slide.arch { padding: 4% 12% 0; }
.hero-slides .slide.arch img {
  object-fit: cover; height: 96%; object-position: top center;
  border-radius: 999px 999px 20px 20px;
  border: 1px solid rgba(212, 180, 131, 0.35);
  box-shadow: var(--shadow-lg), var(--glow);
}
/* 拱形外圈虛線光環 */
.hero-art::before {
  content: ""; position: absolute; inset: 0 8% -4%;
  border: 1.5px dashed rgba(212, 180, 131, 0.3);
  border-radius: 999px 999px 28px 28px;
  pointer-events: none;
}

.hero-arrow {
  position: absolute; top: 42%; z-index: 5;
  background: rgba(212, 180, 131, 0.1); border: 1px solid var(--line); cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  backdrop-filter: blur(4px);
  transition: all .3s var(--ease-out);
}
.hero-arrow svg { width: 24px; height: 24px; }
.hero-arrow:hover { background: rgba(212, 180, 131, 0.25); color: var(--gold-bright); transform: scale(1.08); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.hero-wave {
  position: relative; display: block; width: 100%; height: 110px;
  margin-top: -110px;
}
.hero-wave path, .page-wave path { fill: var(--bg); }

/* 閃爍星光 */
.sparkle {
  position: absolute; color: rgba(233, 211, 168, 0.9);
  pointer-events: none; user-select: none; opacity: 0;
  filter: drop-shadow(0 0 7px rgba(212, 180, 131, 0.8));
  animation: twinkle 4s ease-in-out infinite;
  z-index: 2;
}
.sparkle svg { width: 1em; height: 1em; display: block; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50% { opacity: .95; transform: scale(1.15) rotate(40deg); }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-block; padding: 14px 40px; border-radius: 999px;
  font-size: 16px; letter-spacing: 3px; cursor: pointer;
  border: 1.5px solid transparent;
  position: relative; overflow: hidden;
  transition: all .35s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-22deg);
  transition: left .65s var(--ease-out);
}
.btn:hover::after { left: 130%; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2a2214; font-weight: 600;
  box-shadow: 0 10px 28px rgba(212, 180, 131, 0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(212, 180, 131, 0.4);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-outline { border-color: var(--gold-deep); color: var(--gold); background: transparent; }
.btn-outline:hover {
  background: rgba(212, 180, 131, 0.12); color: var(--gold-bright);
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

/* ---------- LINE 浮動按鈕 ---------- */
.line-float {
  position: fixed; right: 0; top: 55%; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-right: none;
  color: var(--ivory);
  padding: 15px 11px 19px; border-radius: 14px 0 0 14px;
  box-shadow: var(--shadow-md);
  transition: all .35s var(--ease-out);
}
.line-float:hover { padding-right: 18px; box-shadow: var(--shadow-lg), var(--glow); }
.line-float .line-badge {
  background: #06c755; color: #fff; font-weight: 700;
  font-size: 11px; padding: 6px 5px; border-radius: 8px; letter-spacing: .5px;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(6, 199, 85, 0); }
}
.line-float .line-text {
  writing-mode: vertical-rl; letter-spacing: 6px; font-size: 15px;
}
.line-float .float-ico {
  color: var(--gold);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212, 180, 131, 0.4);
  animation: pulse-gold 3s ease-in-out infinite;
}
.line-float .float-ico svg { width: 15px; height: 15px; }
@keyframes pulse-gold {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 180, 131, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(212, 180, 131, 0); }
}

/* ---------- LINE 揭露卡（付款成功後） ---------- */
.line-reveal {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid rgba(212, 180, 131, 0.35); border-radius: 20px;
  padding: 40px 36px; box-shadow: var(--shadow-md), var(--glow);
}
.line-reveal .qr {
  width: 180px; height: 180px; margin: 18px auto;
  border-radius: 14px; border: 6px solid var(--ivory);
  box-shadow: var(--shadow-sm);
}
.line-reveal .order-no {
  font-family: var(--serif-latin); font-size: 20px; color: var(--gold-bright);
  background: rgba(212, 180, 131, 0.1); border: 1px dashed rgba(212, 180, 131, 0.4);
  border-radius: 10px; padding: 10px 18px; display: inline-block; margin: 14px 0;
  letter-spacing: 2px;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section.alt {
  background:
    radial-gradient(820px 420px at 100% 0%, rgba(212, 180, 131, 0.05), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(126, 106, 168, 0.08), transparent 55%),
    var(--bg-soft);
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-en {
  font-family: var(--serif-latin); font-style: italic; font-weight: 500;
  color: var(--gold); letter-spacing: 3px; font-size: 19px;
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 700; margin-top: 6px; letter-spacing: 3px;
  color: var(--ivory);
}
.section-head .sub { color: var(--text-soft); margin-top: 14px; max-width: 640px; margin-inline: auto; }
.divider {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  margin: 20px auto 0; transform: scaleX(0);
  transition: transform .9s .25s var(--ease-out);
}
.reveal.visible .divider, .visible .divider { transform: scaleX(1); }

/* ---------- 內文 ---------- */
.prose { max-width: 760px; margin: 0 auto; color: var(--text-soft); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--gold); }

/* ---------- 老師區塊（滿版拱形照片） ---------- */
.teacher {
  display: grid; grid-template-columns: 400px 1fr; gap: 64px;
  align-items: center;
}
.teacher-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 26px 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md), var(--glow);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.teacher-photo::before {
  content: ""; position: absolute; inset: -16px;
  border: 1.5px dashed rgba(212, 180, 131, 0.4);
  border-radius: 999px 999px 34px 34px;
  pointer-events: none;
}
.teacher-photo::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(212, 180, 131, 0.3);
}
.teacher-photo:hover { transform: scale(1.015); box-shadow: var(--shadow-lg), var(--glow); }
.teacher-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: inherit;
}
.teacher h2 { font-family: var(--serif); font-size: 30px; margin: 4px 0 18px; letter-spacing: 2px; color: var(--ivory); }
.teacher .section-en { display: block; }
.teacher p { color: var(--text-soft); margin-bottom: 28px; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.card {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg), var(--glow); border-color: rgba(212, 180, 131, 0.4); }
.card-img { aspect-ratio: 8 / 5.2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 28px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 10px; color: var(--ivory); }
.card-body p { color: var(--text-soft); font-size: 15px; flex: 1; }
.card-body .btn { margin-top: 22px; align-self: flex-start; padding: 9px 26px; font-size: 14px; }
.card .tag {
  display: inline-block; align-self: flex-start; margin-bottom: 10px;
  background: rgba(212, 180, 131, 0.12); color: var(--gold);
  font-size: 13px; padding: 3px 12px; border-radius: 999px;
}

/* ---------- 特色卡片（依數量自動排列） ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.feature {
  text-align: center; padding: 44px 28px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md), var(--glow); border-color: rgba(212, 180, 131, 0.4); }
.feature .icon {
  margin-bottom: 18px; color: var(--gold);
  width: 76px; height: 76px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--surface-2), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 22px rgba(212, 180, 131, 0.12);
  transition: transform .45s var(--ease-out);
}
.feature .icon svg { width: 34px; height: 34px; }
.feature:hover .icon { transform: scale(1.12) rotate(6deg); }
.feature h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; color: var(--ivory); }
.feature p { color: var(--text-soft); font-size: 15px; }

/* ---------- 膠囊標籤 ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pill {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); padding: 11px 28px; border-radius: 999px; font-size: 15px;
  letter-spacing: 1px; cursor: default;
  transition: all .35s var(--ease-out);
}
.pill:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent; color: #2a2214;
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(212, 180, 131, 0.3);
}

/* ---------- 勾選清單 ---------- */
.checklist { max-width: 680px; margin: 0 auto; }
.checklist li {
  position: relative; padding: 15px 20px 15px 50px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); margin-bottom: 13px;
  color: var(--text);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.checklist li:hover { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: rgba(212, 180, 131, 0.4); }
.checklist li::before {
  content: ""; position: absolute; left: 20px; top: 19px;
  width: 15px; height: 15px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4b483"><path d="M12 2c.6 5.4 4.6 9.4 10 10-5.4.6-9.4 4.6-10 10-.6-5.4-4.6-9.4-10-10 5.4-.6 9.4-4.6 10-10z"/></svg>') center/contain no-repeat;
  transition: transform .35s var(--ease-out);
}
.checklist li:hover::before { transform: rotate(180deg) scale(1.2); }

/* ---------- 課程大綱 ---------- */
.outline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px; }
.outline {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 36px 34px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-deep);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.outline:hover { transform: translateY(-8px); box-shadow: var(--shadow-md), var(--glow); }
.outline.sage { border-top-color: var(--surface-2); }
.outline h3 { font-family: var(--serif); font-size: 21px; color: var(--ivory); }
.outline .meta { color: var(--gold); font-size: 14px; margin: 6px 0 18px; }
.outline li {
  position: relative; padding: 7px 0 7px 24px; color: var(--text-soft);
  font-size: 15px; border-bottom: 1px dashed rgba(212, 180, 131, 0.12);
}
.outline li:last-child { border-bottom: none; }
.outline li::before { content: "◦"; position: absolute; left: 4px; color: var(--gold); }

/* ---------- 價格橫幅 ---------- */
.pricing {
  position: relative; overflow: hidden;
  text-align: center; color: var(--ivory);
  background: linear-gradient(125deg, #322b45, #3d3450, #2c2739);
  background-size: 220% 220%;
  animation: gradientDrift 12s ease infinite;
  border: 1px solid rgba(212, 180, 131, 0.3);
  border-radius: 20px; padding: 64px 36px;
  box-shadow: var(--shadow-lg), var(--glow);
}
@keyframes gradientDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.pricing::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 220px at 50% -20%, rgba(233, 211, 168, 0.12), transparent 70%);
  pointer-events: none;
}
.pricing h3 { font-family: var(--serif); font-size: 27px; margin-bottom: 10px; letter-spacing: 2px; }
.pricing p { color: var(--text); }
.pricing .original { opacity: .6; text-decoration: line-through; }
.pricing .price {
  font-family: var(--serif-latin); font-size: 50px; color: var(--gold-bright); margin: 6px 0 26px;
}

/* ---------- 課程清單 ---------- */
.service-list { max-width: 820px; margin: 0 auto; }
.service-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 22px 28px; margin-bottom: 14px; flex-wrap: wrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.service-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: rgba(212, 180, 131, 0.4); }
.service-item h3 { font-size: 17px; font-weight: 600; flex: 1 1 380px; color: var(--ivory); }
.service-item .status {
  font-size: 13px; color: var(--text-soft); background: var(--surface-2);
  padding: 3px 12px; border-radius: 999px;
}
.service-item .status.open { background: rgba(6, 199, 85, 0.15); color: #7fd8a4; }
.service-item .price { font-family: var(--serif-latin); font-size: 20px; color: var(--gold); white-space: nowrap; }

/* ---------- 學員回饋（瀑布流） ---------- */
.testimonials { columns: 3 320px; column-gap: 34px; }
.testimonial {
  position: relative;
  display: inline-block; width: 100%;
  break-inside: avoid; margin-bottom: 34px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 38px 34px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.testimonial h3 {
  font-family: var(--serif); font-size: 17px; letter-spacing: 1px;
  color: var(--gold); margin-bottom: 12px; line-height: 1.6;
}
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow-md), var(--glow); border-color: rgba(212, 180, 131, 0.4); }
.testimonial::before {
  content: "“"; position: absolute; top: 6px; right: 26px;
  font-family: var(--serif-latin); font-size: 110px; line-height: 1;
  color: rgba(212, 180, 131, 0.18);
}
.testimonial .stars { width: 110px; margin-bottom: 16px; }
.testimonial p { color: var(--text-soft); font-size: 15px; }
.testimonial p + p { margin-top: .8em; }
.testimonial .who-mono {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  color: #2a2214;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(212, 180, 131, 0.3);
}
.testimonial .who {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.testimonial .who img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(212, 180, 131, 0.35);
}
.testimonial .who-info { display: flex; flex-direction: column; gap: 2px; }
.testimonial .who-name { font-size: 15px; color: var(--ivory); font-weight: 600; letter-spacing: 1px; }
.testimonial .who-meta { font-size: 13px; color: var(--text-soft); }
.testimonial .who-tag {
  margin-left: auto; align-self: flex-start;
  font-size: 12px; color: var(--gold);
  background: rgba(212, 180, 131, 0.1); border: 1px solid var(--line);
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 42px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(212, 180, 131, 0.4); }
.contact-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 18px; color: var(--ivory); }
.contact-card li { padding: 8px 0; color: var(--text-soft); display: flex; gap: 10px; }
.contact-card li .k { color: var(--gold); min-width: 86px; }

/* ---------- 內頁 Hero ---------- */
.page-hero {
  position: relative; padding: 92px 0 128px; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(212, 180, 131, 0.1), transparent 60%),
    radial-gradient(760px 420px at 5% 105%, rgba(126, 106, 168, 0.12), transparent 58%),
    var(--bg-soft);
  text-align: center;
}
.page-hero .hero-deco { opacity: .45; }
.page-hero .container { position: relative; }
.page-hero .kicker {
  color: var(--gold); letter-spacing: 4px;
  font-family: var(--serif-latin); font-style: italic; font-size: 19px;
  animation: riseIn .9s .1s var(--ease-out) both;
}
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 6px; margin: 8px 0 12px;
  background: linear-gradient(120deg, var(--gold-bright) 10%, var(--ivory) 55%, var(--gold) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-bright);
  animation: riseIn .9s .25s var(--ease-out) both;
}
.page-hero p {
  color: var(--text-soft); max-width: 560px; margin: 0 auto 28px; letter-spacing: 1px;
  animation: riseIn .9s .4s var(--ease-out) both;
}
.page-hero .btn { animation: riseIn .9s .55s var(--ease-out) both; }
.page-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; width: 100%;
}

/* ---------- 線上解讀 ---------- */
.read-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.read-grid h2 { color: var(--ivory); }
.step-list { margin-top: 8px; }
.step { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.step .num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  color: #2a2214;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-latin); font-size: 22px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(212, 180, 131, 0.3);
}
.step h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 4px; color: var(--ivory); }
.step p { color: var(--text-soft); font-size: 15px; }

.read-form {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: 44px;
}
.read-form label { display: block; font-weight: 600; margin: 26px 0 10px; letter-spacing: 1px; color: var(--ivory); }
.read-form label:first-of-type { margin-top: 0; }
.read-form input[type="text"], .read-form textarea {
  width: 100%; padding: 13px 16px; font: inherit; color: var(--ivory);
  border: 1.5px solid rgba(212, 180, 131, 0.25); border-radius: 12px;
  background: rgba(30, 27, 40, 0.6); outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.read-form input[type="text"]::placeholder, .read-form textarea::placeholder { color: #6f6759; }
.read-form input[type="text"]:focus, .read-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 180, 131, 0.12);
}
.topic-row { display: flex; flex-wrap: wrap; gap: 10px; }
.topic {
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 14px;
  border: 1.5px solid rgba(212, 180, 131, 0.3);
  color: var(--text); background: transparent;
  transition: all .3s var(--ease-out);
}
.topic:hover { border-color: var(--gold); transform: translateY(-2px); }
.topic.sel {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2a2214; font-weight: 600; border-color: transparent;
  box-shadow: 0 6px 18px rgba(212, 180, 131, 0.3);
}
.dropzone {
  border: 2px dashed rgba(212, 180, 131, 0.35); border-radius: 14px;
  padding: 32px 20px; text-align: center; color: var(--text-soft);
  cursor: pointer; transition: all .3s var(--ease-out);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--gold); background: rgba(212, 180, 131, 0.06);
  transform: scale(1.01);
}
.dropzone img { max-height: 220px; margin: 0 auto 12px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.dropzone .dz-hint { font-size: 14px; }
.read-note { font-size: 13px; color: var(--text-soft); margin-top: 14px; }
.read-note a { color: var(--gold); text-decoration: underline; }
.read-note svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--gold); }
.read-result h3 svg { width: 20px; height: 20px; vertical-align: -3px; margin-left: 6px; color: var(--gold); }
.dz-hint svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--gold); }
.form-error { color: #e08a82; font-size: 14px; margin-top: 14px; display: none; }
.form-error.show { display: block; animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
.read-submit { margin-top: 30px; width: 100%; text-align: center; }

.read-result {
  display: none; margin-top: 28px;
  background: rgba(30, 27, 40, 0.55); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
}
.read-result.show { display: block; animation: popIn .6s var(--ease-out); }
@keyframes popIn {
  0% { opacity: 0; transform: scale(.94) translateY(12px); }
  100% { opacity: 1; transform: none; }
}
.read-result h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; color: var(--ivory); }
.read-result p { color: var(--text-soft); }
.read-result strong { color: var(--gold); }
.read-result pre {
  white-space: pre-wrap; font-family: inherit; font-size: 14px;
  background: var(--surface-2); padding: 16px; border-radius: 12px;
  margin: 12px 0; color: var(--text);
}
.read-result .btn { margin-top: 6px; }

/* ---------- FAQ 手風琴 ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 14px; overflow: hidden;
  transition: border-color .35s;
}
.faq-item[open] { border-color: rgba(212, 180, 131, 0.45); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  font-weight: 600; color: var(--ivory); letter-spacing: 1px;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item summary .faq-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212, 180, 131, 0.4); color: var(--gold);
  transition: transform .35s var(--ease-out), background .35s;
}
.faq-item summary .faq-ico svg { width: 13px; height: 13px; }
.faq-item[open] summary .faq-ico { transform: rotate(45deg); background: rgba(212, 180, 131, 0.15); }
.faq-item .faq-body {
  padding: 0 24px 22px 64px; color: var(--text-soft); font-size: 15px;
}
.faq-item .faq-body a { color: var(--gold); text-decoration: underline; }

/* ---------- 價格卡 ---------- */
.price-card {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid rgba(212, 180, 131, 0.35); border-radius: 20px;
  padding: 48px 40px; box-shadow: var(--shadow-md), var(--glow);
}
.price-card .p-name { font-family: var(--serif); font-size: 21px; color: var(--ivory); letter-spacing: 2px; }
.price-card .p-amount {
  font-family: var(--serif-latin); font-size: 58px; color: var(--gold-bright);
  line-height: 1.3; margin: 10px 0 4px;
}
.price-card .p-amount small { font-size: 22px; vertical-align: 8px; margin-right: 6px; }
.price-card .p-desc { color: var(--text-soft); font-size: 14px; margin-bottom: 26px; }
.price-card ul { text-align: left; margin: 0 auto 28px; max-width: 320px; }
.price-card li {
  position: relative; padding: 6px 0 6px 26px; color: var(--text); font-size: 15px;
}
.price-card li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 13px; height: 13px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d4b483"><path d="M12 2c.6 5.4 4.6 9.4 10 10-5.4.6-9.4 4.6-10 10-.6-5.4-4.6-9.4-10-10 5.4-.6 9.4-4.6 10-10z"/></svg>') center/contain no-repeat;
}

/* ---------- 心靈小卡 ---------- */
.card-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 70px 20px 90px; position: relative;
}
.soul-card {
  --card-accent: #d4b483;
  --card-accent2: #e9d3a8;
  position: relative; width: min(420px, 92vw); aspect-ratio: 3 / 4;
  border-radius: 26px; padding: 52px 40px 40px;
  display: flex; flex-direction: column; text-align: center;
  background:
    radial-gradient(420px 300px at 80% -10%, rgba(212, 180, 131, 0.12), transparent 60%),
    radial-gradient(380px 300px at 0% 110%, rgba(126, 106, 168, 0.16), transparent 58%),
    linear-gradient(160deg, #272236, #1e1b28 55%, #2c2739);
  border: 1px solid var(--card-accent);
  box-shadow: var(--shadow-lg), 0 0 44px rgba(212, 180, 131, 0.22);
  overflow: hidden;
  animation: cardIn 1.2s var(--ease-out) both, cardFloat 7s 1.6s ease-in-out infinite;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(44px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.soul-card::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent);
  border-radius: 18px; pointer-events: none;
}
/* 流光掃過（票票亮亮） */
.soul-card::after {
  content: ""; position: absolute; top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 253, 245, 0.14), transparent);
  transform: skewX(-20deg);
  animation: cardShine 5s 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cardShine {
  0%, 55%, 100% { left: -80%; }
  25% { left: 150%; }
}
.sc-brand {
  font-family: var(--serif-latin); font-style: italic; font-weight: 500;
  color: var(--card-accent); font-size: 15px; letter-spacing: 3px;
}
.sc-star { color: var(--card-accent); margin: 10px auto 6px; width: 22px; height: 22px; }
.sc-star svg { width: 100%; height: 100%; }
.sc-to {
  color: var(--text-soft); font-size: 14px; letter-spacing: 2px; margin-top: 18px;
}
.sc-msg {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--ivory);
  font-size: 19px; line-height: 2.1; letter-spacing: 1.5px;
  white-space: pre-line; padding: 8px 0;
}
.sc-msg.long { font-size: 16px; line-height: 1.9; }
.sc-date {
  font-family: var(--serif-latin); color: var(--text-soft);
  font-size: 13px; letter-spacing: 2px;
}
.sc-from {
  color: var(--card-accent); font-size: 13px; letter-spacing: 3px; margin-top: 4px;
}
/* 主題變化 */
.soul-card.rose { --card-accent: #d8a3a8; --card-accent2: #edc6c9; box-shadow: var(--shadow-lg), 0 0 44px rgba(216, 163, 168, 0.25); }
.soul-card.moon { --card-accent: #a9b8d0; --card-accent2: #cfdcee; box-shadow: var(--shadow-lg), 0 0 44px rgba(169, 184, 208, 0.25); }
.soul-card .sc-brand, .soul-card .sc-from, .soul-card .sc-star { color: var(--card-accent2); }

.card-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.card-note { color: var(--text-soft); font-size: 13px; margin-top: 16px; text-align: center; }

/* 製卡工具 */
.maker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.maker-link {
  display: none; margin-top: 22px; background: rgba(30, 27, 40, 0.55);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.maker-link.show { display: block; animation: popIn .5s var(--ease-out); }
.maker-link input {
  width: 100%; padding: 10px 12px; font-size: 13px; color: var(--gold-bright);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  margin: 10px 0;
}
@media (max-width: 900px) {
  .maker-grid { grid-template-columns: 1fr; }
}

/* ---------- 會員中心 ---------- */
.member-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}
.member-head h2 { font-family: var(--serif); color: var(--ivory); letter-spacing: 2px; font-size: 26px; }
.member-head .who { color: var(--text-soft); font-size: 14px; margin-top: 4px; }
.member-head .btn { padding: 9px 24px; font-size: 14px; }

.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card-item {
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.card-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), var(--glow); border-color: rgba(212, 180, 131, 0.45); }
.card-item .ci-top { display: flex; align-items: center; justify-content: space-between; }
.card-item .ci-theme {
  font-size: 12px; letter-spacing: 1px; padding: 3px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--gold);
}
.card-item .ci-date { font-family: var(--serif-latin); font-size: 13px; color: var(--text-soft); }
.card-item .ci-msg {
  font-family: var(--serif); color: var(--ivory); font-size: 15px; line-height: 1.9;
  letter-spacing: 1px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-item .btn { align-self: flex-start; padding: 8px 22px; font-size: 13px; }

.member-empty {
  text-align: center; padding: 70px 20px; color: var(--text-soft);
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px dashed rgba(212, 180, 131, 0.3); border-radius: 16px;
}
.member-empty .sc-star { margin-bottom: 14px; }

.demo-badge {
  display: inline-block; font-size: 12px; letter-spacing: 1px;
  background: rgba(212, 180, 131, 0.12); color: var(--gold);
  border: 1px dashed rgba(212, 180, 131, 0.4);
  border-radius: 999px; padding: 3px 14px; margin-left: 10px;
  vertical-align: 4px;
}

/* ---------- 療癒師後台 ---------- */
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.admin-tab {
  padding: 10px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 14px; letter-spacing: 1px;
  transition: all .3s var(--ease-out);
}
.admin-tab:hover { border-color: var(--gold); color: var(--gold-bright); }
.admin-tab.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2a2214; font-weight: 600; border-color: transparent;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; text-align: center;
}
.stat-card .num { font-family: var(--serif-latin); font-size: 40px; color: var(--gold-bright); line-height: 1.2; }
.stat-card .lbl { color: var(--text-soft); font-size: 13px; letter-spacing: 1px; }

.badge-st {
  font-size: 12px; letter-spacing: 1px; padding: 3px 12px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-st.pending { background: rgba(168, 158, 144, 0.15); color: var(--text-soft); }
.badge-st.paid { background: rgba(212, 180, 131, 0.15); color: var(--gold); border-color: rgba(212, 180, 131, 0.35); }
.badge-st.delivered { background: rgba(169, 184, 208, 0.15); color: #a9b8d0; }
.badge-st.completed { background: rgba(127, 216, 164, 0.12); color: #7fd8a4; }

.admin-item {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; margin-bottom: 14px;
  transition: border-color .3s;
}
.admin-item:hover { border-color: rgba(212, 180, 131, 0.35); }
.admin-item .ai-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; cursor: pointer;
}
.admin-item .ai-title { color: var(--ivory); font-weight: 600; }
.admin-item .ai-sub { color: var(--text-soft); font-size: 13px; }
.admin-item .ai-body {
  display: none; margin-top: 18px; padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.admin-item.open .ai-body { display: block; }
.ai-field { margin-bottom: 10px; font-size: 14px; color: var(--text); }
.ai-field .k { color: var(--gold); margin-right: 8px; }
.ai-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ai-actions .btn { padding: 8px 20px; font-size: 13px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.tag-pill {
  padding: 5px 16px; border-radius: 999px; cursor: pointer; font-size: 13px;
  border: 1px solid rgba(212, 180, 131, 0.3); color: var(--text-soft);
  background: transparent; transition: all .25s;
}
.tag-pill.on {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2a2214; font-weight: 600; border-color: transparent;
}

.tpl-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; margin-bottom: 18px;
}
.tpl-card h3 { color: var(--ivory); font-size: 15px; margin-bottom: 12px; letter-spacing: 1px; }
.tpl-card textarea {
  width: 100%; min-height: 120px; padding: 14px; font: inherit; font-size: 14px;
  color: var(--text); background: rgba(30, 27, 40, 0.6);
  border: 1px solid var(--line); border-radius: 10px; resize: vertical;
  line-height: 1.8;
}
.tpl-card textarea:focus { outline: none; border-color: var(--gold); }
.admin-empty { text-align: center; color: var(--text-soft); padding: 50px 20px; font-size: 14px; }
.copy-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2a2214; font-weight: 600; font-size: 14px;
  padding: 12px 28px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease-out); z-index: 300;
}
.copy-toast.show { transform: translateX(-50%) translateY(0); }

/* 問卷 */
.survey-stars { display: flex; gap: 10px; justify-content: center; margin: 14px 0 6px; }
.survey-stars button {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: rgba(212, 180, 131, 0.3); transition: transform .2s, color .2s;
}
.survey-stars button svg { width: 34px; height: 34px; }
.survey-stars button.on { color: var(--gold-bright); }
.survey-stars button:hover { transform: scale(1.15); }

/* ---------- 人生療癒博物館 ---------- */
.mu-hero {
  position: relative; text-align: center; overflow: hidden;
  padding: 80px 24px 60px;
  background:
    radial-gradient(900px 460px at 50% -20%, rgba(212, 180, 131, 0.14), transparent 60%),
    radial-gradient(760px 420px at 8% 110%, rgba(126, 106, 168, 0.14), transparent 58%),
    var(--bg-soft);
}
.mu-hero .kicker {
  font-family: var(--serif-latin); font-style: italic; color: var(--gold);
  letter-spacing: 4px; font-size: 18px;
  animation: riseIn .9s .1s var(--ease-out) both;
}
.mu-hero h1 {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 5px; margin: 10px 0 6px;
  background: linear-gradient(120deg, var(--gold-bright) 10%, var(--ivory) 55%, var(--gold) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-bright);
  animation: riseIn .9s .25s var(--ease-out) both;
}
.mu-avatar {
  width: 108px; height: 108px; border-radius: 999px 999px 14px 14px;
  object-fit: cover; object-position: top center;
  margin: 0 auto 16px; display: block;
  border: 2px solid rgba(212, 180, 131, 0.5);
  box-shadow: var(--shadow-md), var(--glow);
  animation: riseIn .9s var(--ease-out) both;
}
.mu-avatar[hidden] { display: none; }
/* 未設照片時的示意圖（優雅的人像剪影） */
.mu-avatar-ph {
  width: 108px; height: 108px; border-radius: 999px 999px 14px 14px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    radial-gradient(90px 70px at 50% 20%, rgba(212, 180, 131, 0.16), transparent 70%),
    linear-gradient(165deg, var(--surface-2), var(--bg-soft));
  border: 1.5px solid rgba(212, 180, 131, 0.4);
  box-shadow: var(--shadow-md), 0 0 26px rgba(212, 180, 131, 0.12);
  color: var(--gold);
  animation: riseIn .9s var(--ease-out) both;
}
.mu-avatar-ph[hidden] { display: none; }
.mu-avatar-ph svg { width: 52px; height: 52px; }
.mu-avatar-ph .ph-star {
  position: absolute; top: 14px; right: 16px;
  width: 13px; height: 13px; color: var(--gold-bright);
  filter: drop-shadow(0 0 5px rgba(212, 180, 131, 0.7));
  animation: twinkle 3.5s ease-in-out infinite;
}
.mu-avatar-ph .ph-star svg { width: 100%; height: 100%; }
.mu-stats {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px; animation: riseIn .9s .4s var(--ease-out) both;
}
.mu-stat .num { font-family: var(--serif-latin); font-size: 34px; color: var(--gold-bright); line-height: 1.2; }
.mu-stat .lbl { color: var(--text-soft); font-size: 13px; letter-spacing: 2px; }
.mu-visitor-note {
  margin-top: 20px; display: inline-block;
  font-size: 13px; letter-spacing: 1px; color: var(--gold);
  border: 1px dashed rgba(212, 180, 131, 0.4); border-radius: 999px;
  padding: 5px 18px;
}

/* 展品牆（瀑布流） */
.exhibit-wall { columns: 3 300px; column-gap: 30px; max-width: 1080px; margin: 0 auto; }
.exhibit {
  --card-accent: #d4b483; --card-accent2: #e9d3a8;
  position: relative; display: inline-block; width: 100%;
  break-inside: avoid; margin-bottom: 30px;
  background:
    radial-gradient(300px 200px at 80% -10%, rgba(212, 180, 131, 0.1), transparent 60%),
    linear-gradient(160deg, #272236, #1e1b28 60%, #2c2739);
  border: 1px solid color-mix(in srgb, var(--card-accent) 55%, transparent);
  border-radius: 18px; padding: 34px 28px 24px; text-align: center;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.exhibit:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 34px color-mix(in srgb, var(--card-accent) 25%, transparent);
}
.exhibit::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 30%, transparent);
  border-radius: 12px; pointer-events: none;
}
.exhibit.rose { --card-accent: #d8a3a8; --card-accent2: #edc6c9; }
.exhibit.moon { --card-accent: #a9b8d0; --card-accent2: #cfdcee; }
.exhibit .ex-star { color: var(--card-accent2); width: 18px; height: 18px; margin: 0 auto 12px; }
.exhibit .ex-star svg { width: 100%; height: 100%; }
.exhibit .ex-msg {
  font-family: var(--serif); color: var(--ivory);
  font-size: 16px; line-height: 2; letter-spacing: 1px;
  white-space: pre-line;
}
.exhibit .ex-plaque {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--card-accent) 30%, transparent);
  display: flex; justify-content: space-between; align-items: center;
}
.exhibit .ex-date { font-family: var(--serif-latin); font-size: 13px; color: var(--text-soft); letter-spacing: 1px; }
.exhibit .ex-no {
  font-family: var(--serif-latin); font-style: italic; font-size: 12px;
  color: var(--card-accent);
}
.mu-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 44px 0 8px; }

/* 館主設定面板 */
.mu-settings {
  max-width: 640px; margin: 0 auto 44px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px;
}
.mu-settings h3 { color: var(--ivory); font-size: 16px; letter-spacing: 1px; margin-bottom: 16px; }
.mu-settings .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mu-settings label { color: var(--text); font-size: 14px; }
.mu-settings input[type="text"] {
  flex: 1; min-width: 200px; padding: 10px 14px; font: inherit; font-size: 14px;
  color: var(--ivory); background: rgba(30, 27, 40, 0.6);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.mu-settings input[type="text"]:focus { border-color: var(--gold); }
.switch {
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  cursor: pointer; transition: background .3s; flex-shrink: 0;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-soft); transition: all .3s var(--ease-out);
}
.switch.on { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); }
.switch.on::after { left: 22px; background: #2a2214; }
.mu-privacy-note { font-size: 12px; color: var(--text-soft); line-height: 1.8; margin-top: 12px; }
.mu-privacy-note strong { color: var(--gold); }

/* ---------- 條款頁 ---------- */
.legal { max-width: 800px; margin: 0 auto; color: var(--text-soft); }
.legal h2 { font-family: var(--serif); font-size: 20px; color: var(--ivory); margin: 36px 0 12px; }
.legal p + p { margin-top: .8em; }
.legal ul { list-style: disc; padding-left: 24px; margin-top: .5em; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #191622, #141118);
  color: var(--text-soft);
  padding: 72px 0 30px; font-size: 14px;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 180, 131, 0.45), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(212, 180, 131, 0.1);
}
.site-footer h4 {
  color: var(--gold); font-size: 15px; margin-bottom: 16px; font-weight: 600;
  letter-spacing: 2px;
}
.site-footer li { padding: 4px 0; }
.site-footer a { transition: color .25s, padding-left .25s; }
.site-footer a:hover { color: var(--gold-bright); padding-left: 5px; }
.footer-logo img { height: 54px; width: auto; margin-bottom: 16px; filter: brightness(1.5) drop-shadow(0 0 10px rgba(212, 180, 131, 0.2)); }
.footer-bottom {
  padding-top: 26px; text-align: center; font-size: 13px; color: #6f6759;
  line-height: 2;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- 捲動進場 ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.stagger { opacity: 1; transform: none; transition: none; }
.stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.stagger.visible > * { opacity: 1; transform: none; }

/* ---------- RWD ---------- */
@media (max-width: 900px) {
  .teacher { grid-template-columns: 1fr; text-align: center; }
  .teacher-photo { max-width: 320px; margin: 0 auto; }
  .card-grid, .features { grid-template-columns: 1fr; }
  .contact-grid, .read-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-top { justify-content: flex-start; padding: 12px 0; }
  .logo { padding-left: 24px; }
  .logo img { height: 56px; }
  .main-nav {
    position: fixed; top: 81px; right: 0; left: 0; z-index: 99;
    background: rgba(30, 27, 40, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .4s var(--ease-out);
    box-shadow: var(--shadow-md); padding: 0;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .main-nav li + li::before { display: none; }
  .main-nav a { padding: 10px 6px; }
  .main-nav a::after { display: none; }
  .section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-bottom: 90px; gap: 10px; }
  .hero-text { padding: 40px 4% 0; text-align: center; }
  .hero-en { justify-content: center; }
  .hero-en::before { width: 60px; }
  .hero-arrow { display: none; }
  .read-form { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .line-float { top: auto; bottom: 18px; }
}

/* ---------- 減少動態偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
