/* ─── 江江教練官網 v0.8 · 淺底暖光 + 學習地圖版 ─── */
:root {
  /* 暖光底層（健健康康診所配色） */
  --bg: #fefcf8;
  --bg-soft: #faf5ec;
  --paper: #ffffff;
  --ink: #1a1612;
  --ink-soft: #3a342d;
  --ink-faint: #6a635a;
  --line: #d8cdb8;
  --line-soft: #e8dfc9;

  /* 五色暖光 */
  --c-coral: #e85a4f;
  --c-peach: #e8884b;
  --c-mint: #4d9c7d;
  --c-sky: #5689b8;
  --c-lavender: #8674b2;
  --c-sand: #a08144;
  --c-sage: #5f7553;

  /* 滑鼠暖光暈（沙金色，2026-05-22 tuner 調校版）
     ⚠️ 數值在 tuner.html 調好後複製進來 */
  --sp-shadow: hsla(35, 50%, 60%, 0.15);       /* 整頁暖光：溫和校稿模式 */
  --sp-shadow-edge: hsla(35, 50%, 68%, 0.030); /* 邊緣 */
  --sp-card-shadow: hsla(35, 50%, 60%, 0.10);  /* 卡片內暖光 */
  --sp-radius: 400px;                           /* 整頁光暈半徑 */
  --sp-card-radius: 250px;                      /* 卡片內光暈半徑 */

  /* 入口卡語意色 */
  --d1: var(--c-coral);
  --d2: var(--c-sage);
  --d3: var(--c-sand);

  --shadow: 0 8px 24px rgba(107, 74, 42, 0.08);
  --shadow-strong: 0 18px 44px rgba(107, 74, 42, 0.16);

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Inter", sans-serif;
  font-size: 1.06rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  scroll-behavior: smooth;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.serif { font-family: 'Cormorant Garamond', 'Source Serif 4', serif; }
.hand { font-family: 'Caveat', cursive; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ─── 整頁滑鼠陰影（最上層覆蓋，跨所有區塊） ─── */
body.spotlight {
  position: relative;
  overflow-x: hidden;
}
/* 用 ::after 浮在所有區塊之上、用 multiply 跟下面相乘
   亮粉色 × 奶油底 = 粉色毛球在紙上滾過的暈染 */
body.spotlight::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    var(--sp-radius) circle at var(--mx, 50%) var(--my, 50%),
    var(--sp-shadow) 0%,
    var(--sp-shadow-edge) 45%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: background 0.06s linear;
}
body.no-page-spotlight::after { display: none; }

/* ─── 頂部導覽（三欄：左文字 logo / 中簽名圖 / 右按鈕） ─── */
nav.top {
  position: sticky; top: 0;
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
nav.top .container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}

/* 左：文字 logo */
.nav-brand-text {
  justify-self: start;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-brand-text:hover { opacity: 0.7; }
.nav-brand-text .eye {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  color: var(--c-sand);
  margin-right: 6px;
  font-size: 1.06rem;
}

/* 中：簽名檔圖 */
.nav-brand-img {
  justify-self: start;
  display: flex; align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .2s;
}
.nav-brand-img:hover { opacity: 0.8; }
.nav-brand-img img {
  height: 40px;
  width: auto;
  display: block;
}

/* 右：menu */
nav.top ul.nav-menu {
  justify-self: end;
  display: flex; gap: 22px; list-style: none; margin: 0; padding: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}
nav.top ul.nav-menu a {
  color: var(--ink-soft);
  transition: color .2s;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
nav.top ul.nav-menu a:hover { color: var(--ink); }
nav.top ul.nav-menu a.active { color: var(--ink-soft); }

/* 漢堡按鈕（手機才顯示） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  width: 36px; height: 36px;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }
.nav-toggle.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ─── 區塊與標題 ─── */
section { padding: 88px 0; position: relative; overflow: hidden; }

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.55rem;
  color: #7a5c3a;          /* 深咖啡，低飽和（取代原 var(--c-coral) 太紅問題） */
  margin-bottom: 10px;
  font-weight: 500;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem; font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  line-height: 1.1;
  color: var(--ink);
}
.section-title .italic { font-style: italic; color: var(--c-sand); }
.section-sub {
  color: var(--ink-soft); font-size: 1.06rem;
  max-width: 660px; line-height: 1.75;
}
.section-head-center { text-align: center; margin: 0 auto 56px; position: relative; z-index: 2; }
.section-head-center .section-sub { margin: 0 auto; }

/* ─── Hero ─── */
.hero {
  padding: 130px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  position: relative;
  overflow: hidden;
}
.hero .wc-coral { width: 420px; height: 360px; top: -120px; right: -100px; }
.hero .wc-peach { width: 380px; height: 320px; bottom: -100px; left: -80px; }
.hero .wc-sand { width: 280px; height: 260px; top: 40%; right: 20%; opacity: 0.08; }
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { font-size: 1.85rem; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5.6rem; font-weight: 500;
  margin: 12px 0 28px;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--ink);
}
.hero h1 .italic { font-style: italic; color: var(--c-sand); }
.hero .subtitle {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.85;
}
.hero .verb-chain {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--c-sand);
  margin: 28px 0;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.hero .verb-chain span { color: var(--ink-faint); margin: 0 4px; }

/* ─── 按鈕（spotlight pill） ─── */
.button, .btn-spot {
  position: relative;
  display: inline-block;
  padding: 12px 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 1.06rem;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: all .25s ease;
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow: hidden;
  isolation: isolate;
}
.button::before, .btn-spot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    180px circle at var(--bx, 50%) var(--by, 50%),
    rgba(101, 67, 33, 0.18) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
}
.button:hover, .btn-spot:hover,
.button:focus-visible, .btn-spot:focus-visible {
  background: var(--c-coral); color: var(--paper); border-color: var(--c-coral);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 90, 79, 0.28);
}
.button:hover::before, .btn-spot:hover::before {
  opacity: 0;
}
.button.ghost {
  border-color: var(--line); color: var(--ink-soft); background: transparent;
}
.button.ghost:hover {
  border-color: var(--c-sand); color: var(--c-sand); background: var(--paper);
}

/* ─── 入口卡（cursor shadow 跟著走） ─── */
.entry-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 56px;
  position: relative; z-index: 2;
}
.entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.entry-card::before {
  /* 滑鼠陰影（暗色暈染） */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    280px circle at var(--bx, 50%) var(--by, 50%),
    var(--sp-card-shadow) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  pointer-events: none;
}
.entry-card::after {
  /* 上緣主題色條 */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--c-coral);
  opacity: 0;
  transition: opacity 0.3s;
}
.entry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--c-sand);
}
.entry-card:hover::before { opacity: 1; }
.entry-card:hover::after { opacity: 1; }
.entry-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.entry-grid.five .entry-card {
  min-height: 250px;
  padding: 30px 24px;
}
.entry-card.c1::after { background: var(--d1); }
.entry-card.c2::after { background: var(--c-sky); }
.entry-card.c3::after { background: var(--d2); }
.entry-card.c4::after { background: var(--d3); }
.entry-card.c5::after { background: var(--c-lavender); }

.entry-card .entry-eye {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--c-sand);
  margin-bottom: 8px;
  font-weight: 500;
}
.entry-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.entry-card.c1 h3 { color: var(--d1); }
.entry-card.c2 h3 { color: var(--c-sky); }
.entry-card.c3 h3 { color: var(--d2); }
.entry-card.c4 h3 { color: var(--d3); }
.entry-card.c5 h3 { color: var(--c-lavender); }
.entry-card p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 1.06rem;
  flex-grow: 1;
  line-height: 1.75;
}
.entry-card .arrow {
  font-family: 'Caveat', cursive;
  color: var(--ink-faint);
  font-size: 1.2rem;
  transition: color .25s, transform .25s;
  font-weight: 600;
}
.entry-card.c1:hover .arrow { color: var(--d1); transform: translateX(4px); }
.entry-card.c2:hover .arrow { color: var(--c-sky); transform: translateX(4px); }
.entry-card.c3:hover .arrow { color: var(--d2); transform: translateX(4px); }
.entry-card.c4:hover .arrow { color: var(--d3); transform: translateX(4px); }
.entry-card.c5:hover .arrow { color: var(--c-lavender); transform: translateX(4px); }

/* ─── 列表卡（cursor shadow 跟著走） ─── */
.list-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-top: 32px;
}
@media (min-width: 720px) {
  .list-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .list-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .list-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .list-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .list-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1180px) {
  .list-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 籌備中 badge */
.mode-badge.phase-incubating {
  background: #f3e8d5;
  color: #8b6f47;
  border: 1px dashed #c4a274;
}
/* 籌備區整段樣式 */
.incubating-section {
  background: linear-gradient(135deg, #faf3e8 0%, #f5ecd9 100%);
  border: 1px dashed #d9c3a3;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 0 56px;
}
.incubating-section .group-header {
  border-bottom-color: #d9c3a3;
}
.incubating-section .group-header h2 {
  color: #8b6f47;
}
.incubating-section .group-intro {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin: 8px 0 0;
}

.list-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.list-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    240px circle at var(--bx, 50%) var(--by, 50%),
    var(--sp-card-shadow) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
  pointer-events: none;
}
.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--c-sand);
}
.list-card:hover::before { opacity: 1; }

.list-card .card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.06rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.list-card .card-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--c-coral);
  font-weight: 600;
}
.list-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.list-card .badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.badge.free { background: rgba(77, 156, 125, 0.14); color: var(--c-mint); }
.badge.free::before { background: var(--c-mint); }
.badge.paid { background: rgba(232, 90, 79, 0.14); color: var(--c-coral); }
.badge.paid::before { background: var(--c-coral); }
.badge.external { background: rgba(86, 137, 184, 0.14); color: var(--c-sky); }
.badge.external::before { background: var(--c-sky); }
.badge.planning { background: rgba(134, 116, 178, 0.14); color: var(--c-lavender); }
.badge.planning::before { background: var(--c-lavender); }

.list-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--ink);
}
.list-card p {
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: 1.06rem;
  line-height: 1.7;
}
.list-card .card-links {
  display: flex; flex-wrap: wrap;
  gap: 14px;
  font-size: 1.06rem;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.list-card .card-links a {
  color: var(--c-sand);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  font-weight: 500;
}
.list-card .card-links a:hover {
  color: var(--c-coral);
  border-bottom-color: var(--c-coral);
}
.list-card .card-links span { color: var(--ink-faint); font-size: 1.06rem; }

.resource-course-grid {
  gap: 16px;
}
.resource-course-grid .course-card .card-body {
  padding: 15px 16px 17px;
  gap: 2px;
}
.resource-course-grid .list-card .card-meta {
  gap: 7px;
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.resource-course-grid .list-card .card-date {
  font-size: 0.94rem;
}
.resource-course-grid .list-card .badge {
  padding: 3px 8px;
  font-size: 0.68rem;
}
.resource-course-grid .list-card h3 {
  font-size: 1.16rem;
  line-height: 1.28;
  margin-bottom: 7px;
}
.resource-course-grid .list-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 10px;
}
.resource-course-grid .list-card .card-links {
  gap: 10px;
  font-size: 0.88rem;
  padding-top: 9px;
}
.resource-course-grid .list-card:not(.course-card) {
  padding: 18px 18px;
}

/* ─── 分組 header ─── */
.group-header {
  margin: 64px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.group-header:first-of-type { margin-top: 0; }
.group-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 500;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.group-header .group-count {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--c-sand);
  font-weight: 500;
}

/* ─── 內頁 page header ─── */
.page-header {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.page-header .wc-peach { width: 320px; height: 280px; top: -80px; right: -60px; opacity: 0.18; }
.page-header .wc-sage  { width: 300px; height: 260px; bottom: -80px; left: -50px; opacity: 0.14; }
.page-header .wc-sand  { width: 280px; height: 240px; top: 10%; left: 10%; opacity: 0.10; }
.page-header .wc-mint  { width: 280px; height: 240px; bottom: 10%; right: 8%; opacity: 0.12; }
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow { font-size: 1.7rem; }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem; font-weight: 500;
  margin: 8px 0 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.page-header h1 .italic { font-style: italic; color: var(--c-sand); }
.page-header p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Footer（全置中，品牌+連結+meta） ─── */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
footer .wc-sand { width: 280px; height: 240px; top: -60px; left: 50%; transform: translateX(-50%); opacity: 0.08; }
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-size: 1.06rem; color: var(--ink-soft);
  position: relative; z-index: 2;
}

/* 簽名檔圖（footer 頂部主視覺，數值由 footer-tuner.html 調定） */
.footer-signature {
  width: 100%;
  max-width: 250px;                      /* tuner 定案 */
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 1.00;
}
.footer-signature-placeholder {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 5 / 1;
  border-radius: 14px;
  border: 1.5px dashed var(--c-sand);
  background: linear-gradient(135deg, var(--paper) 0%, var(--bg-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 1.06rem;
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}

footer .foot-brand {
  text-align: center;
}
footer .foot-brand .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}
footer .foot-brand p {
  margin: 8px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--c-sand);
}
footer .foot-links {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  font-size: 1.06rem;
}
footer .foot-links a {
  padding: 4px 12px;
  border-right: 1px solid var(--line);
  transition: color .2s;
  font-weight: 500;
  white-space: nowrap;
}
footer .foot-links a:last-child { border-right: none; }
footer .foot-links a:hover { color: var(--c-coral); }
footer .foot-meta {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.86rem;
  color: var(--c-sand);
  text-align: center;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  position: relative; z-index: 2;
  width: 100%;
  max-width: 760px;
}

/* ─── 自介區 ─── */
.about-section {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.about-section .wc-mint     { width: 360px; height: 320px; top: -80px; right: -60px; }
.about-section .wc-lavender { width: 320px; height: 280px; bottom: -60px; left: -40px; }
.about-section .container { position: relative; z-index: 2; }

/* ─── 提示框 ─── */
.note-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  margin-bottom: 56px;
  position: relative;
}
.note-box .eyebrow { font-size: 1.3rem; margin-bottom: 6px; }
.note-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 500;
  margin: 4px 0 18px;
  color: var(--ink);
}
.note-box ol, .note-box ul {
  margin: 0; padding-left: 1.4rem;
  color: var(--ink-soft);
  line-height: 2;
}
.note-box code {
  background: var(--bg-soft);
  padding: 3px 9px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.06rem;
  color: var(--c-sand);
}
.note-box .note-emphasis {
  font-size: 1.35rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--ink);
  margin: 14px 0 4px;
}
.note-box .note-emphasis strong {
  color: var(--c-coral);
  font-weight: 700;
}
.note-box .note-foot {
  margin: 18px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--ink-faint);
}

/* ─── CTA 區 ─── */
.cta-box {
  margin-top: 72px;
  text-align: center;
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 90, 79, 0.04), rgba(160, 129, 68, 0.04));
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 2; }
.cta-box p {
  margin: 0 0 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}
.cta-box .btn-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ─── 暫位區（dashed） ─── */
.placeholder-box {
  margin-top: 72px;
  padding: 32px 36px;
  background: var(--bg-soft);
  border: 1px dashed var(--c-sand);
  border-radius: var(--radius-lg);
}
.placeholder-box .eyebrow { font-size: 1.25rem; margin-bottom: 4px; }
.placeholder-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 500;
  margin: 4px 0 14px;
}
.placeholder-box ul {
  margin: 0; padding-left: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.95;
}

/* ─── 水彩暈染（淺底用得到） ─── */
.watercolor {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.wc-coral    { background: var(--c-coral);    opacity: 0.18; }
.wc-peach    { background: var(--c-peach);    opacity: 0.20; }
.wc-mint     { background: var(--c-mint);     opacity: 0.14; }
.wc-sand     { background: var(--c-sand);     opacity: 0.14; }
.wc-sage     { background: var(--c-sage);     opacity: 0.12; }
.wc-lavender { background: var(--c-lavender); opacity: 0.14; }

/* ─── 介紹區 v2：左照片 300×300 + 右文字 ─── */
.intro-section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.intro-section .watercolor.wc-sand-bg {
  width: 360px; height: 320px;
  top: -80px; right: -80px;
  opacity: 0.10;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 320px;     /* 文字左、人物右 */
  gap: 32px;                             /* 縮小 gap，人跟文字更靠近 */
  align-items: center;
  max-width: 880px;                      /* 容器也縮一點對應 */
  margin: 0 auto;
  position: relative; z-index: 2;
}
@media (max-width: 720px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .intro-photo { order: -1; }            /* 手機時人物在最上方 */
}
.intro-photo {
  width: 320px;
  aspect-ratio: 4 / 5;                  /* 跟原圖比例同，不裁切 */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: transparent;               /* 透明，融入網頁底色 */
  border: 1.5px dashed var(--c-sand);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  text-align: center;
  flex-shrink: 0;
}
.intro-photo.has-photo {
  border: none;
  background: transparent;               /* 去背 PNG 直接吃 intro-section bg-soft */
  border-radius: 0;                      /* 拿掉圓角，去背圖自然呈現 */
  overflow: visible;                     /* 讓去背圖可以微微超出 */
}
.intro-photo img {
  width: 100%; height: 100%;
  object-fit: contain;                   /* 不裁切，整張完整顯示 */
  object-position: center bottom;        /* 底部對齊（人物站姿） */
  display: block;
}

.intro-eye {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #7a5c3a;
  margin-bottom: 6px;
}
.intro-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.intro-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--c-sand);
  margin: 0 0 22px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  font-weight: 500;
}
.intro-desc {
  font-size: 1.06rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0 0 22px;
}
.intro-desc em {
  font-style: normal;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--c-sand);
  font-weight: 600;
}
.intro-hook {
  display: inline-block;
  padding: 8px 18px;
  background: var(--paper);
  border: 1px solid var(--c-sand);
  border-radius: 999px;
  color: var(--c-sand);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  font-weight: 500;
}

/* 介紹區內的 LINE CTA 按鈕（主行 + 副行兩段） */
.intro-line-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 26px;
  background: #06C755;
  color: white;
  border-radius: 14px;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
  margin-top: 6px;
}
.intro-line-cta:hover {
  background: #04a847;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 199, 85, 0.32);
}
.intro-line-cta .cta-main {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.intro-line-cta .cta-sub {
  font-size: 1.12rem;
  opacity: 0.92;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .intro-line-cta { align-self: center; }
}

/* 兩個 CTA 按鈕直立排列容器 */
.intro-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  align-items: flex-start;
}
.intro-cta-row .intro-line-cta {
  margin-top: 0;
}
@media (max-width: 720px) {
  .intro-cta-row {
    align-items: center;
  }
  .intro-cta-row .intro-line-cta {
    width: 100%;
    max-width: 360px;
  }
}

/* ─── LINE 大橫幅 CTA（暖深底 + LINE 綠 + 暖白字） ─── */
.line-banner {
  padding: 0;
  background: linear-gradient(135deg, #2a221a 0%, #3a2f24 60%, #2c1f15 100%);
  position: relative;
  overflow: hidden;
  color: #fef9f0;
}
.line-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(6, 199, 85, 0.10), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 165, 90, 0.10), transparent 50%);
  pointer-events: none;
}
.line-banner .container {
  position: relative; z-index: 2;
  padding-top: 72px; padding-bottom: 72px;
}
.line-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .line-banner-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; justify-items: center; }
}
.line-banner-text { min-width: 0; }
.line-banner-tag {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(6, 199, 85, 0.18);
  color: #4ddb88;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.line-banner-title {
  font-family: 'Cormorant Garamond', "Noto Sans TC", serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: #fef9f0;
  margin: 0 0 16px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.line-banner-sub {
  font-size: 1.06rem;
  color: #e8dccb;
  margin: 0 0 8px;
  line-height: 1.7;
}
.line-banner-note {
  font-size: 1.06rem;
  color: #a89887;
  margin: 0 0 24px;
  font-style: italic;
}
.line-banner-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: #06C755;
  color: white;
  border-radius: 999px;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  transition: transform .25s, box-shadow .25s, background .25s;
  text-decoration: none;
}
.line-banner-cta:hover {
  background: #04a847;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 199, 85, 0.4);
}
.line-banner-icon {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: #06C755;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(6, 199, 85, 0.35), inset 0 -6px 16px rgba(0,0,0,0.15);
}
.line-banner-icon svg {
  width: 80px; height: 80px;
  fill: white;
}

/* ─── 社群膠囊按鈕（完整平台名 + 品牌色 dot + 低飽和暖白底） ─── */
.social-pills-section {
  padding: 80px 0 100px;
  text-align: center;
}
.social-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all .25s ease;
  text-decoration: none;
}
.social-pill:hover {
  border-color: var(--c-sand);
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 74, 42, 0.10);
}
.social-pill .pill-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.social-pill .pill-dot.line { background: #06C755; box-shadow: 0 0 8px rgba(6, 199, 85, 0.4); }
.social-pill .pill-dot.threads { background: #1a1a1a; }
.social-pill .pill-dot.vocus { background: #C53030; box-shadow: 0 0 8px rgba(197, 48, 48, 0.4); }
.social-pill .pill-dot.ig {
  background: linear-gradient(135deg, #fa7e1e, #d62976, #962fbf);
  box-shadow: 0 0 8px rgba(214, 41, 118, 0.4);
}
.social-pill .pill-dot.yt { background: #FF0000; box-shadow: 0 0 8px rgba(255, 0, 0, 0.4); }
.social-pill .pill-arrow {
  color: var(--ink-faint);
  font-size: 1.06rem;
  transition: color .2s, transform .2s;
}
.social-pill:hover .pill-arrow {
  color: var(--c-sand);
  transform: translateX(2px);
}

/* ─── 圓 icon row（6 平台一列，真實 SVG logo） ─── */
.social-circles {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 36px auto 0;
  flex-wrap: wrap;
  max-width: 800px;
}
.social-circle {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .25s ease;
}
.social-circle:hover { transform: translateY(-3px); }

.social-circle .circle-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.social-circle:hover .circle-btn {
  border-color: var(--c-sand);
  box-shadow: 0 10px 22px rgba(107, 74, 42, 0.12);
}
.social-circle .circle-btn svg {
  width: 24px; height: 24px;
  transition: transform .25s;
}
.social-circle:hover .circle-btn svg { transform: scale(1.05); }

/* 品牌色（圖示色） */
.social-circle.line .circle-btn svg { fill: #06C755; }
.social-circle.threads .circle-btn svg { fill: #1a1a1a; }
.social-circle.ig .circle-btn svg { fill: url(#ig-gradient); }
.social-circle.yt .circle-btn svg { fill: #FF0000; }
.social-circle.vocus .circle-btn .vocus-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #C53030;
  line-height: 1;
}
.social-circle.portaly .circle-btn .portaly-text {
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #FF5C00;
  line-height: 1;
  font-style: italic;
}

.social-circle .caption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .2s;
}
.social-circle:hover .caption { color: var(--ink); }

/* ─── Hero 下方 mini icons row（小圖示 + hover tooltip） ─── */
.social-icons-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 40px auto 0;
  flex-wrap: wrap;
}
.social-icon-mini {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  cursor: pointer;
}
.social-icon-mini:hover, .social-icon-mini:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.social-icon-mini.line, .social-icon-mini.line-oa { background: #06C755; }
.social-icon-mini.threads { background: #000; }
.social-icon-mini.vocus { background: #C53030; font-size: 1.05rem; }
.social-icon-mini.ig {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 60%, #962fbf 80%, #4f5bd5 100%);
}
.social-icon-mini.yt { background: #FF0000; font-size: 0.88rem; }

/* mini icon tooltip（暖白底沙金邊，跟 cta-has-tip 同款） */
.social-icon-mini::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--c-sand);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: pre-wrap;
  width: max-content;
  max-width: 240px;
  letter-spacing: 0.02em;
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 28px rgba(107, 74, 42, 0.18), 0 0 0 4px rgba(160, 129, 68, 0.08);
  z-index: 200;
  text-align: center;
}
.social-icon-mini::before {
  content: '';
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  border: 7px solid transparent;
  border-bottom-color: var(--c-sand);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.social-icon-mini:hover::after,
.social-icon-mini:hover::before,
.social-icon-mini:focus-visible::after,
.social-icon-mini:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── 找我的方法：5 平台社群卡（仿截圖直列卡片，暖色版） ─── */
.social-grid {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 40px auto 0;
}
.social-card {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  color: inherit;
  position: relative;
}
.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-sand);
  box-shadow: 0 8px 20px rgba(107,74,42,0.10);
}

.social-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.social-icon.line, .social-icon.line-oa { background: #06C755; }
.social-icon.threads { background: #000; }
.social-icon.vocus { background: #C53030; font-size: 1.2rem; }
.social-icon.ig {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 60%, #962fbf 80%, #4f5bd5 100%);
}
.social-icon.yt { background: #FF0000; font-size: 1.06rem; }

.social-content { flex-grow: 1; min-width: 0; text-align: left; }
.social-content .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 3px;
  letter-spacing: 0.02em;
}
.social-content .desc {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.social-arrow {
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.06rem;
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}
.social-card:hover .social-arrow {
  color: var(--c-sand);
  transform: translateX(3px);
}

/* ─── 課程卡（4:5 圖 + 極簡資訊：日期/標題/模式 badge/CTA） ─── */
.course-card {
  padding: 0 !important;
  overflow: visible !important;      /* tooltip 才能伸出卡片不被切 */
  display: flex; flex-direction: column;
}
/* 卡片底色用 ::after 包一層，確保圓角＋hover spotlight 仍在內側 */
.course-card .card-thumbnail {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  overflow: hidden;                  /* 圖片自己裁切圓角 */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.course-card .card-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;          /* 因為原圖也是 4:5，所以不會裁切 */
  display: block;
  transition: transform .4s ease;
}
.course-card:hover .card-thumbnail img { transform: scale(1.03); }
.course-card .card-body {
  padding: 20px 24px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.course-card:not(.has-thumb) .card-body { padding: 26px 28px 24px; }

/* 沒圖卡片：明信片風（漸層底 + 月份戳 + 大日期 + 課程標題 + 主辦） */
.course-card:not(.has-thumb) .card-thumbnail-placeholder {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, #faf3e4 0%, #f0e3cf 60%, #e8d7b6 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px 24px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;  /* 上方圓角 */
}

/* 背景水彩斑點 */
.ph-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.ph-decor-a {
  width: 200px; height: 200px;
  top: -60px; right: -60px;
  background: rgba(232, 136, 75, 0.25);
}
.ph-decor-b {
  width: 160px; height: 160px;
  bottom: -50px; left: -40px;
  background: rgba(160, 129, 68, 0.20);
}

.ph-top, .ph-mid, .ph-bottom { position: relative; z-index: 2; }

/* 頂部月份戳 */
.ph-top .ph-month-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--c-sand);
  border-bottom: 1px solid var(--c-sand);
  padding-bottom: 4px;
  display: inline-block;
}

/* 中央大日期 */
.ph-mid {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0;
}
.ph-mid .ph-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.ph-mid .ph-month-cn {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--c-sand);
}

/* 底部：課程標題 + 主辦 */
.ph-bottom .ph-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
  /* 長標題自然截斷 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ph-bottom .ph-org {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(106, 99, 90, 0.3);
  padding-top: 10px;
}

/* 模式 badge（線上/實體 + 開放/專場） */
.course-card .card-modes {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 6px 0 4px;
}
.mode-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.mode-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
}
.mode-badge.venue-online   { background: rgba(86,137,184,0.10); color: var(--c-sky);  }
.mode-badge.venue-online::before   { background: var(--c-sky); }
.mode-badge.venue-physical { background: rgba(232,136,75,0.12); color: var(--c-peach); }
.mode-badge.venue-physical::before { background: var(--c-peach); }
.mode-badge.venue-hybrid   { background: rgba(134,116,178,0.10); color: var(--c-lavender); }
.mode-badge.venue-hybrid::before   { background: var(--c-lavender); }
.mode-badge.venue-podcast  { background: rgba(95,117,83,0.10); color: var(--c-sage); }
.mode-badge.venue-podcast::before  { background: var(--c-sage); }

.mode-badge.reg-open     { background: rgba(77,156,125,0.14); color: var(--c-mint); }
.mode-badge.reg-open::before     { background: var(--c-mint); }
.mode-badge.reg-private  { background: rgba(160,129,68,0.16); color: var(--c-sand); }
.mode-badge.reg-private::before  { background: var(--c-sand); }
.mode-badge.reg-pending  { background: rgba(106,99,90,0.14); color: var(--ink-faint); }
.mode-badge.reg-pending::before  { background: var(--ink-faint); }

/* CTA 區（報名／主辦／待定 三種樣式） */
.course-cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.course-cta .cta-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #06C755;            /* LINE 綠（多數 open 按鈕都跳 LINE） */
  color: var(--paper);
  border-radius: 999px;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background .2s, transform .2s, box-shadow .2s;
  border: 1px solid #06C755;
}
.course-cta .cta-btn:hover {
  background: #04a847;
  border-color: #04a847;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 199, 85, 0.30);
}

/* CTA 按鈕 hover tooltip（暖白底 + 沙金邊 + 智慧定位） */
.course-cta .cta-has-tip { position: relative; }
.course-cta .cta-has-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--c-sand);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1.06rem;
  font-weight: 500;
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  white-space: pre-wrap;
  width: max-content;
  max-width: 240px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 12px 28px rgba(107, 74, 42, 0.18), 0 0 0 4px rgba(160, 129, 68, 0.08);
  z-index: 200;
  text-align: center;
}
.course-cta .cta-has-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  border: 7px solid transparent;
  border-top-color: var(--c-sand);
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 200;
}
.course-cta .cta-has-tip:hover::after,
.course-cta .cta-has-tip:hover::before,
.course-cta .cta-has-tip:focus-visible::after,
.course-cta .cta-has-tip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.course-cta .cta-note {
  margin: 8px 0 0;
  font-size: 1.06rem;
  color: var(--ink-faint);
  line-height: 1.55;
}
.course-cta.private .cta-private-tag {
  margin: 0;
  font-size: 1.06rem;
  color: var(--c-sand);
  font-weight: 500;
  line-height: 1.6;
}
.course-cta.private .cta-private-tag::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-sand);
  margin-right: 8px;
  vertical-align: 2px;
}
.course-cta.private .cta-private-tag strong {
  color: var(--ink);
  font-weight: 600;
}
.course-cta.private .cta-private-sub {
  margin: 4px 0 0 15px;
  font-size: 1.06rem;
  color: var(--ink-faint);
  font-style: italic;
  line-height: 1.5;
}
.course-cta.private .cta-note {
  margin: 6px 0 0;
  font-size: 1.06rem;
  color: var(--ink-faint);
  font-style: italic;
  line-height: 1.55;
}
.course-cta.pending .cta-note {
  color: var(--ink-faint);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.06rem;
  margin: 0;
}

/* 課程卡的「完整課程內容與簡報」連結（detail_url 才顯示） */
.course-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 14px;
  padding: 8px 14px;
  background: var(--bg-soft, #f6efe6);
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 1.06rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  width: fit-content;
}
.course-detail-link:hover {
  background: var(--paper);
  color: var(--c-coral);
  border-color: var(--c-coral);
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(232, 90, 79, 0.12);
}

/* ─── 通用搜尋＋標籤過濾列（courses/resources/skills 共用） ─── */
.search-filter-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-row {
  display: flex; gap: 10px; align-items: center;
  position: relative;
}
.search-row .search-icon {
  position: absolute; left: 14px;
  color: var(--ink-faint); font-size: 1.06rem;
  pointer-events: none;
}
.search-input {
  flex: 1;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 1.06rem;
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--c-sand);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(160,129,68,0.10);
}
.search-input::placeholder { color: var(--ink-faint); }
.filter-row-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--c-sand);
  font-size: 1.06rem;
  margin-right: 6px;
  white-space: nowrap;
}
.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.no-results {
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-faint);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  display: none;
}
.no-results.show { display: block; }

/* ─── Skills 頁專用：標籤過濾 + cols-3 緊湊卡 ─── */
.filter-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.filter-bar-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--c-sand);
  font-size: 1.06rem;
  margin-bottom: 12px;
  font-weight: 500;
}
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filter-chip {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .2s;
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  user-select: none;
}
.filter-chip:hover { border-color: var(--ink-soft); }
.filter-chip.active {
  background: var(--c-coral);
  color: var(--paper);
  border-color: var(--c-coral);
}
.filter-chip .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 4px;
}

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 18px;
}
@media (max-width: 980px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.skill-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    var(--sp-card-radius, 220px) circle at var(--bx, 50%) var(--by, 50%),
    var(--sp-card-shadow) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity .25s;
  z-index: -1;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-sand);
  box-shadow: 0 8px 22px rgba(107, 74, 42, 0.10);
}
.skill-card:hover::before { opacity: 1; }
.skill-card.filtered-out { display: none; }

.skill-card .skill-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--c-sand);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.skill-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem; font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.3;
  color: var(--ink);
}
.skill-card p {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.6;
  flex-grow: 1;
}
.skill-card .skill-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 10px;
}
.skill-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--bg-soft);
  color: var(--ink-faint);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.skill-card .skill-links {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 1.06rem;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.skill-card .skill-links a {
  color: var(--c-coral);
  font-weight: 500;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.skill-card .skill-links a:hover {
  color: var(--c-sand);
  border-bottom-color: var(--c-sand);
}

/* ─── skill-actions：等寬雙按鈕（淺褐 GitHub + 淺藍複製） ─── */
.skill-card .skill-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.skill-action-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  position: relative;
}

/* GitHub 按鈕：低飽和淺褐 */
.skill-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: #ead9c2;
  color: #6b4a2a;
  border: 1.5px solid #d9c2a4;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .2s ease;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
}
.skill-btn-primary:hover {
  background: #ddc8a8;
  border-color: #c9ad84;
  color: #5a3e22;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 130, 80, 0.18);
}

/* 複製按鈕：低飽和淺藍 */
.skill-btn-copy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: #d8e4ee;
  color: #3d5872;
  border: 1.5px solid #bcd0e0;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.skill-btn-copy:hover {
  background: #c5d6e5;
  border-color: #a4bccf;
  color: #2a4258;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(120, 160, 200, 0.18);
}

/* 複製成功炫光 */
.skill-btn-copy.copied {
  background: linear-gradient(120deg, #d8e4ee 0%, #fff0c4 50%, #d8e4ee 100%);
  background-size: 220% 100%;
  border-color: #d9b774;
  color: #6b4a2a;
  animation: copyShine 0.9s ease;
}
@keyframes copyShine {
  0%   { background-position: 220% 0; box-shadow: 0 0 0 rgba(232, 188, 100, 0); }
  35%  { box-shadow: 0 0 18px rgba(232, 188, 100, 0.55); }
  100% { background-position: -220% 0; box-shadow: 0 0 0 rgba(232, 188, 100, 0); }
}

/* 複製成功浮字 */
.copy-toast {
  position: absolute;
  top: -6px;
  left: 50%;
  background: #5a3e22;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 1.06rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  box-shadow: 0 6px 14px rgba(90, 62, 34, 0.25);
  animation: copyToastFloat 1.4s ease forwards;
  font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
}
.copy-toast.error {
  background: #a04040;
  box-shadow: 0 6px 14px rgba(160, 64, 64, 0.25);
}
@keyframes copyToastFloat {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.9); }
  18%  { opacity: 1; transform: translateX(-50%) translateY(-10px) scale(1); }
  75%  { opacity: 1; transform: translateX(-50%) translateY(-22px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-34px) scale(0.95); }
}

/* Skills 區段 */
.skill-section { margin-bottom: 36px; }
.skill-section.section-hidden { display: none; }
.skill-section-head {
  display: flex; align-items: baseline;
  gap: 12px; margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.skill-section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
}
.skill-section-head .count {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--c-sand);
  font-weight: 500;
}

.filter-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-faint);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  display: none;
}
.filter-empty.show { display: block; }

/* ─── v0.8 學習地圖 ─── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.path-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at 92% 0%, rgba(160, 129, 68, 0.09), transparent 68%);
  z-index: -1;
}
.path-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--c-sand);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.path-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 12px;
}
.path-card .for-who {
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.path-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}
.step-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--c-sand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}
.path-steps a {
  color: var(--c-sand);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.path-steps a:hover {
  color: var(--c-coral);
  border-bottom-color: var(--c-coral);
}
.path-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.path-links a {
  color: var(--c-coral);
  font-weight: 700;
  border-bottom: 1px solid rgba(184, 104, 76, 0.28);
}
.learning-board {
  margin-top: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.learning-board h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.75rem;
  margin: 2px 0 8px;
}
.learning-board p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 680px;
}
.tag-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tag-dimension {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.tag-dimension h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 14px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 1080px) {
  .entry-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── 響應式 ─── */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero { padding: 90px 0 70px; }
  .hero h1 { font-size: 3.6rem; }
  .hero .subtitle { font-size: 1.06rem; }
  .hero .verb-chain { font-size: 1.7rem; }
  .section-title { font-size: 2.2rem; }
  .entry-grid, .entry-grid.five, .path-grid, .tag-dimension-grid { grid-template-columns: 1fr; gap: 20px; }
  .entry-card { padding: 28px 24px; min-height: auto; }
  .entry-card h3 { font-size: 1.7rem; }
  .learning-board { display: grid; padding: 24px; }
  .learning-board .button { justify-self: start; }
  section { padding: 60px 0; }
  .page-header h1 { font-size: 2.6rem; }
  .group-header h2 { font-size: 1.5rem; }

  /* 手機 nav：拿掉文字 logo、只剩中簽名 + 右漢堡 */
  nav.top .container {
    grid-template-columns: auto 1fr auto;
    padding-top: 10px; padding-bottom: 10px;
    padding-left: 16px; padding-right: 12px;
    gap: 12px;
  }
  .nav-brand-text { display: none; }
  .nav-brand-img { justify-self: start; }
  .nav-brand-img img { height: 32px; }
  .nav-toggle {
    display: block;
    justify-self: end;
  }
  nav.top ul.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(254, 252, 248, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 10px 24px rgba(107, 74, 42, 0.08);
  }
  nav.top ul.nav-menu.open { display: flex; }
  nav.top ul.nav-menu li {
    padding: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  nav.top ul.nav-menu li:last-child { border-bottom: none; }
  nav.top ul.nav-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 1.06rem;
  }
}

.course-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  margin-top: 32px;
}
.course-detail-copy {
  margin: 0;
}
@media (max-width: 720px) {
  .course-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── 無動畫偏好：陰影固定中心，不跟滑鼠 ─── */
@media (prefers-reduced-motion: reduce) {
  body.spotlight::after {
    background: radial-gradient(
      800px circle at 50% 35%,
      var(--sp-shadow) 0%,
      var(--sp-shadow-edge) 50%,
      transparent 72%
    );
  }
  * { transition: none !important; }
}
