/* ===================================================================
   那個數位有限公司 ‧ 官方網站樣式
   品牌色：深海軍藍 + 琥珀金
   =================================================================== */

:root {
  --navy-900: #0a1a30;
  --navy-800: #0e2545;
  --navy-700: #13315c;
  --gold: #f2b134;
  --gold-dark: #d99a1c;
  --ink: #1b1f2a;
  --slate: #5a6478;
  --cloud: #f5f7fa;
  --line: #e5e9f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(14, 37, 69, 0.06);
  --shadow-md: 0 14px 40px rgba(14, 37, 69, 0.12);
  --maxw: 1140px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Sora", "Noto Sans TC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

/* ---------- 文字與標題 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-800);
}
.section-lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--slate);
  max-width: 640px;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 177, 52, 0.4); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; color: var(--navy-800); }
.brand-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--slate);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--cloud); }
.nav-links a.active { color: var(--gold-dark); font-weight: 700; }
.nav-links a.nav-cta {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--navy-700); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(900px 500px at 78% -10%, rgba(242, 177, 52, 0.22), transparent 60%),
              linear-gradient(165deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
}
.hero .container { position: relative; z-index: 1; }

/* ===== Hero 動態背景：神經星座 ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  left: -120px; top: 5%;
  background: radial-gradient(circle, rgba(242, 177, 52, 0.45), transparent 65%);
  opacity: 0.55;
  animation: heroOrb1 26s ease-in-out infinite;
}
.hero-orb-2 {
  width: 720px; height: 720px;
  right: -220px; bottom: -200px;
  background: radial-gradient(circle, rgba(80, 130, 220, 0.42), transparent 65%);
  opacity: 0.5;
  animation: heroOrb2 32s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 380px; height: 380px;
  left: 40%; top: 60%;
  background: radial-gradient(circle, rgba(242, 177, 52, 0.22), transparent 70%);
  opacity: 0.35;
  animation: heroOrb3 22s ease-in-out infinite;
}
@keyframes heroOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(140px, 80px) scale(1.08); }
}
@keyframes heroOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-120px, -100px) scale(1.12); }
}
@keyframes heroOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50%      { transform: translate(-60px, 60px) scale(1.15); opacity: 0.55; }
}
.hero-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-neural .neural-lines {
  animation: linePulse 8s ease-in-out infinite;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.24; }
}
.hero-neural .node {
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePulse 4s ease-in-out infinite;
}
.hero-neural .n1  { animation-delay: 0s; }
.hero-neural .n2  { animation-delay: 0.3s; }
.hero-neural .n3  { animation-delay: 0.7s; }
.hero-neural .n4  { animation-delay: 1.1s; }
.hero-neural .n5  { animation-delay: 1.4s; }
.hero-neural .n6  { animation-delay: 1.7s; }
.hero-neural .n7  { animation-delay: 2.1s; }
.hero-neural .n8  { animation-delay: 2.4s; }
.hero-neural .n9  { animation-delay: 2.8s; }
.hero-neural .n10 { animation-delay: 0.5s; }
.hero-neural .n11 { animation-delay: 1.0s; }
.hero-neural .n12 { animation-delay: 1.5s; }
.hero-neural .n13 { animation-delay: 2.0s; }
.hero-neural .n14 { animation-delay: 0.2s; animation-duration: 5s; }
.hero-neural .n15 { animation-delay: 0.9s; animation-duration: 5.5s; }
.hero-neural .n16 { animation-delay: 1.6s; animation-duration: 6s; }
.hero-neural .n17 { animation-delay: 2.3s; animation-duration: 5.5s; }
.hero-neural .n18 { animation-delay: 0.4s; animation-duration: 6.5s; }
.hero-neural .n19 { animation-delay: 1.2s; animation-duration: 5s; }
.hero-neural .n20 { animation-delay: 1.9s; animation-duration: 6s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-neural .neural-lines,
  .hero-neural .node {
    animation: none !important;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 96px 0;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(242, 177, 52, 0.4);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.22;
  font-weight: 700;
}
.hero h1 .hl { color: var(--gold); }
.hero p.lead {
  margin-top: 20px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 44px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
}
.hero-stats .stat span { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 17px; color: var(--white); margin-bottom: 18px; }
.hero-card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.hero-card li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-card li::before {
  content: "✦";
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- 頁面標頭（內頁） ---------- */
.page-hero {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
}
.page-hero p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* ---------- 卡片網格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(242, 177, 52, 0.16);
  font-size: 24px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--navy-800); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--slate); }
.card .card-no {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

/* ---------- 區塊：底色 ---------- */
.bg-cloud { background: var(--cloud); }

/* ---------- 講師簡介 teaser / about ---------- */
.profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-md);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--gold);
}
.portrait.no-photo .portrait-fallback { display: grid; }
.portrait .portrait-fallback { display: none; }
.portrait.no-photo .portrait-fallback { display: grid; }

.quote-block {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 22px;
  margin: 24px 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--navy-800);
}

/* ---------- 經歷時間軸 ---------- */
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
}
.timeline li.now::before { background: var(--gold); }
.timeline .tl-role { font-weight: 700; color: var(--navy-800); font-size: 16px; }
.timeline .tl-meta { font-size: 14px; color: var(--slate); }

/* ---------- 標籤 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--navy-800);
}
.chip.gold { background: rgba(242, 177, 52, 0.14); border-color: rgba(242, 177, 52, 0.4); }

/* ---------- 流程步驟 ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.steps .step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.steps .step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--navy-800);
  color: var(--gold);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}
.steps .step h4 { font-size: 16px; color: var(--navy-800); }
.steps .step p { font-size: 14px; color: var(--slate); }

/* ---------- CTA 區塊 ---------- */
.cta-band {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  text-align: center;
  border-radius: 22px;
  padding: 56px 32px;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
}
.cta-band p { margin: 12px 0 26px; color: rgba(255, 255, 255, 0.8); }

/* ---------- YouTube 區塊 ---------- */
.yt-box {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  flex-wrap: wrap;
}
.yt-box .yt-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #ff0033;
  border-radius: 14px;
  font-size: 26px;
  flex-shrink: 0;
}
.yt-box .yt-info { flex: 1; min-width: 200px; }
.yt-box .yt-info strong { font-size: 17px; }
.yt-box .yt-info span { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.72); }

/* ---------- 聯絡頁 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.contact-info .info-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(242, 177, 52, 0.16);
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info .info-item strong { display: block; color: var(--navy-800); font-size: 15px; }
.contact-info .info-item span { font-size: 14px; color: var(--slate); }

/* ---------- 表單 ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.field label .req { color: #d64545; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 4px; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.form-status.show { display: block; }
.form-status.success { background: #e7f6ec; color: #1f7a3d; border: 1px solid #b9e3c6; }
.form-status.error { background: #fdeaea; color: #b3322f; border: 1px solid #f3c4c2; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- 頁尾 ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 14px;
}
.footer-grid a { display: block; padding: 5px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 講師團隊卡片 ---------- */
.instructor-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ic-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.ic-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.ic-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ic-avatar .portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
}
.ic-name { font-family: var(--font-display); font-size: 21px; color: var(--navy-800); }
.ic-title { font-size: 13px; color: var(--gold-dark); font-weight: 700; margin-top: 4px; }
.ic-quote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-800);
}
.ic-points { list-style: none; display: grid; gap: 10px; margin: 18px 0 22px; }
.ic-points li { display: flex; gap: 10px; font-size: 14px; color: var(--slate); }
.ic-points li::before { content: "✦"; color: var(--gold); flex-shrink: 0; }
.ic-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-800);
}
.ic-link:hover { color: var(--gold-dark); }
.ic-link::after { content: "→"; transition: transform 0.15s ease; }
.ic-link:hover::after { transform: translateX(3px); }

/* ---------- 數據指標 ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.metric .m-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.1;
}
.metric .m-label { font-weight: 700; color: var(--navy-800); margin: 8px 0 6px; }
.metric .m-desc { font-size: 14px; color: var(--slate); }

/* ---------- 核取清單 ---------- */
.checklist { list-style: none; display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.checklist li {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgba(242, 177, 52, 0.16);
  color: var(--gold-dark);
  border-radius: 8px;
  font-weight: 900;
}
.checklist strong { display: block; color: var(--navy-800); font-size: 16px; margin-bottom: 2px; }
.checklist span { font-size: 14px; color: var(--slate); }

/* ---------- 合作單位 ---------- */
.partner-group { max-width: 900px; margin: 0 auto; }
.partner-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.partner-row:last-child { border-bottom: 0; }
.partner-row .pr-cat { font-weight: 700; color: var(--navy-800); font-size: 15px; }
.partner-row .pr-cat span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
  margin-bottom: 3px;
}
.partner-row .pr-list { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }

/* ---------- FAQ 手風琴 ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--gold-dark);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; font-size: 15px; color: var(--slate); }

/* ---------- 近期授課列表 ---------- */
.recent-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 2px solid var(--navy-800);
}
.recent-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.15s ease;
}
.recent-item:hover { background: var(--cloud); }
.recent-date {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
  padding-top: 1px;
}
.recent-org { font-weight: 700; color: var(--navy-800); font-size: 16px; }
.recent-course { font-size: 14px; color: var(--slate); margin-top: 3px; }

/* ---------- 部落格列表 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .ac-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-dark);
  background: rgba(242, 177, 52, 0.14);
  border: 1px solid rgba(242, 177, 52, 0.4);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.article-card h3 { font-size: 20px; color: var(--navy-800); line-height: 1.45; }
.article-card p { font-size: 15px; color: var(--slate); margin-top: 10px; }
.article-card .ac-meta { margin-top: 14px; font-size: 13px; color: var(--slate); }
.article-card .ac-link {
  margin-top: 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card .ac-link::after { content: "→"; transition: transform 0.15s ease; }
.article-card:hover .ac-link { color: var(--gold-dark); }
.article-card:hover .ac-link::after { transform: translateX(3px); }

/* ---------- 文章內頁 ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .art-lead {
  font-size: 18px;
  color: var(--slate);
  margin-bottom: 12px;
  line-height: 1.8;
}
.article h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-800);
  margin: 38px 0 14px;
}
.article h3 { font-size: 19px; color: var(--navy-800); margin: 26px 0 10px; }
.article p { font-size: 16px; color: var(--ink); margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.article strong { color: var(--navy-800); }
.article .art-callout {
  background: var(--cloud);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--navy-800);
}

/* ---------- 通用提示框 ---------- */
.callout {
  max-width: 840px;
  margin: 0 auto;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--navy-800);
}

/* ---------- 服務交付清單（卡片內） ---------- */
.svc-deliv { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.svc-deliv li { display: flex; gap: 9px; font-size: 14px; color: var(--slate); }
.svc-deliv li::before {
  content: "✓";
  color: var(--gold-dark);
  font-weight: 900;
  flex-shrink: 0;
}

/* ---------- 影片嵌入（文章內頁） ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  background: var(--navy-900);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 影片卡片（部落格列表） ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card .vc-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); }
.video-card .vc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .vc-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-card .vc-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  padding-left: 4px;
}
.video-card .vc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.video-card h3 { font-size: 16px; line-height: 1.5; color: var(--navy-800); }
.video-card .vc-meta { margin-top: 10px; font-size: 13px; color: var(--slate); }
.video-card .vc-link {
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-800);
  display: inline-flex;
  gap: 5px;
}
.video-card:hover .vc-link { color: var(--gold-dark); }

/* ---------- 課程企劃書產生器 ---------- */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check-item:hover { border-color: var(--gold); }
.check-item input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold-dark); }
.check-item span { font-size: 14px; color: var(--ink); line-height: 1.5; }
.check-item.on { border-color: var(--gold); background: rgba(242, 177, 52, 0.08); }

.proposal-doc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: var(--shadow-sm);
  max-width: 780px;
  margin: 0 auto;
}
.proposal-doc .pd-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-800);
}
.proposal-doc .pd-sub { text-align: center; color: var(--slate); font-size: 13px; margin: 6px 0 30px; }
.proposal-doc h3 {
  font-size: 16px;
  color: var(--navy-800);
  margin: 22px 0 8px;
  padding-left: 11px;
  border-left: 3px solid var(--gold);
}
.proposal-doc p { font-size: 15px; color: var(--ink); line-height: 1.9; }
.proposal-doc ul { margin: 4px 0 4px 22px; }
.proposal-doc li { font-size: 15px; color: var(--ink); line-height: 1.85; }
.proposal-doc .pd-foot {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate);
}
.proposal-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* ---------- 承辦資源 ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.resource-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.resource-card .rc-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(242, 177, 52, 0.16);
  font-size: 20px;
  flex-shrink: 0;
}
.resource-card strong { display: block; color: var(--navy-800); font-size: 15px; }
.resource-card span { font-size: 13px; color: var(--slate); }
.resource-card .rc-link { font-size: 13px; font-weight: 700; color: var(--gold-dark); margin-top: 6px; display: inline-block; }

/* ---------- 列印（課程企劃書） ---------- */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  section { padding: 0 !important; }
  .proposal-doc { border: 0; box-shadow: none; padding: 0; max-width: 100%; }
  .page-hero { background: #fff !important; color: #000 !important; padding: 0 0 12px !important; }
  .page-hero .breadcrumb, .page-hero p { display: none; }
  .page-hero h1 { color: #000 !important; font-size: 20px; }
}

/* ---------- 課程類別卡片 ---------- */
.cat-cover {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.8;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.cat-cover strong {
  display: block;
  color: var(--navy-800);
  font-size: 13px;
  margin-bottom: 3px;
}

/* ---------- 學員專區：鎖屏 ---------- */
.lock-screen {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.lock-screen .lock-ico { font-size: 44px; margin-bottom: 14px; }
.lock-screen h2 { font-family: var(--font-display); font-size: 22px; color: var(--navy-800); margin-bottom: 8px; }
.lock-screen p { color: var(--slate); font-size: 15px; margin-bottom: 22px; }
.lock-screen input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 1px;
  font-family: var(--font);
}
.lock-screen input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.18); }
.lock-screen .lock-err { color: #b3322f; font-size: 14px; margin-top: 10px; min-height: 18px; }
.lock-screen .lock-hint { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); }
.lock-screen .lock-hint a { color: var(--gold-dark); font-weight: 700; }

/* ---------- 學員專區：提示詞庫 ---------- */
.prompt-cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 38px 0 18px;
}
.prompt-cat-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy-800);
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.prompt-cat-head .pc-count { color: var(--slate); font-size: 13px; }

.prompt-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.prompt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.prompt-card h4 { font-size: 17px; color: var(--navy-800); margin-bottom: 8px; }
.prompt-card .pc-when { font-size: 14px; color: var(--slate); margin-bottom: 12px; }
.prompt-card pre {
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: ui-monospace, 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
}
.prompt-card .pc-vars { font-size: 13px; color: var(--slate); margin-top: 10px; }
.prompt-card .pc-vars strong { color: var(--navy-800); }
.prompt-card .pc-actions { display: flex; justify-content: flex-end; margin-top: 14px; gap: 10px; }
.copy-btn {
  padding: 9px 18px;
  background: var(--navy-800);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s ease;
}
.copy-btn:hover { background: var(--navy-700); }
.copy-btn.copied { background: var(--gold); color: var(--navy-900); }

/* ---------- 學員專區：Q&A ---------- */
.qa-list { display: grid; gap: 14px; }
.qa-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.qa-item .qa-q { font-weight: 700; color: var(--navy-800); font-size: 15px; margin-bottom: 8px; }
.qa-item .qa-q::before { content: "Q："; color: var(--gold-dark); }
.qa-item .qa-a { color: var(--ink); font-size: 15px; line-height: 1.85; }
.qa-item .qa-a::before { content: "A："; color: var(--gold-dark); font-weight: 700; }
.qa-item .qa-meta { font-size: 12px; color: var(--slate); margin-top: 10px; }

/* ---------- 管理者後台 ---------- */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}
.tab-btn {
  background: none;
  border: 0;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--navy-800); }
.tab-btn.active { color: var(--navy-800); border-bottom-color: var(--gold); }

.admin-list { display: grid; gap: 12px; }
.admin-empty {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--slate);
  font-size: 14px;
}
.admin-empty.err { border-color: #f3c4c2; background: #fdeaea; color: #b3322f; }

.admin-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.ar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.ar-head strong { color: var(--navy-800); font-size: 16px; }
.ar-meta { color: var(--slate); font-size: 13px; margin-left: 10px; }
.ar-line { margin-top: 8px; font-size: 13px; color: var(--slate); word-break: break-all; }
.ar-line strong { color: var(--navy-800); }
.ar-line.muted { font-style: italic; }
.ar-edit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.ar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ar-btn {
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--navy-800);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}
.ar-btn:hover { background: var(--line); }
.ar-btn.danger { color: #b3322f; border-color: #f3c4c2; background: #fdeaea; }
.ar-btn.danger:hover { background: #f3c4c2; }

/* ---------- 學員端：Slido-like Q&A ---------- */
.qa-list { display: grid; gap: 12px; }
.qa-live-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}
.qa-live-item.answered { border-left: 4px solid var(--gold); }
.qa-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.qa-vote:hover:not(:disabled) { background: rgba(242, 177, 52, 0.16); border-color: var(--gold); }
.qa-vote.voted { background: var(--gold); border-color: var(--gold); color: var(--navy-900); cursor: default; }
.qa-vote:disabled { cursor: default; }
.qv-arrow { font-size: 12px; line-height: 1; color: var(--gold-dark); }
.qa-vote.voted .qv-arrow { color: var(--navy-900); }
.qv-num { font-weight: 900; font-size: 16px; color: var(--navy-800); line-height: 1.1; }
.qa-vote.voted .qv-num { color: var(--navy-900); }
.qa-body { flex: 1; min-width: 0; }
.qa-content { font-size: 15px; color: var(--ink); line-height: 1.7; }
.qa-meta { margin-top: 8px; font-size: 12px; color: var(--slate); }
.qa-answered-tag { color: var(--gold-dark); font-weight: 700; }
.qa-answer {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--cloud);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--navy-800);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ============================================================
   舞台模式（show） — 全螢幕、投影機友善
   ============================================================ */
.show-stage {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(242, 177, 52, 0.18), transparent 60%),
    linear-gradient(165deg, #06122a, #0a1a30 60%, #13315c);
  color: #fff;
  position: relative;
  font-family: var(--font);
}
.show-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

/* 背景影片：放大裁切掉 YouTube 邊條 */
.show-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.show-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130vw;
  height: 130vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.show-dim {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 18, 42, 0.45), rgba(6, 18, 42, 0.78));
}

/* 主要內容覆蓋層 */
.show-content {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
  text-align: center;
}
.show-eyebrow {
  display: inline-block;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--gold);
  padding: 8px 22px;
  border: 1px solid rgba(242, 177, 52, 0.5);
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(0, 0, 0, 0.2);
}
.show-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 22px;
}
.show-stage h1 .hl { color: var(--gold); }
.show-sub {
  font-size: clamp(18px, 1.8vw, 26px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 900px;
  line-height: 1.6;
}
.show-clock {
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 6px;
  text-shadow: 0 4px 24px rgba(242, 177, 52, 0.35);
}
.show-clock-label {
  margin-top: 8px;
  font-size: clamp(14px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
}

/* 左上 brand */
.show-brand {
  position: fixed;
  top: 32px;
  left: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}
.show-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.show-brand .sb-text { line-height: 1.2; }
.show-brand .sb-text b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.show-brand .sb-text span {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
}

/* 右下 QR */
.show-corner {
  position: fixed;
  right: 36px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
}
.show-corner img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  display: block;
}
.show-corner .sc-text { font-size: 13px; line-height: 1.5; }
.show-corner .sc-text b {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

/* 結尾 CTA 三欄 */
.show-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  width: 100%;
  max-width: 1100px;
}
.show-cta-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  text-align: center;
}
.show-cta-card .scc-ico { font-size: 36px; margin-bottom: 12px; }
.show-cta-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--gold);
  margin-bottom: 8px;
}
.show-cta-card p {
  font-size: clamp(14px, 1.1vw, 16px);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
  min-height: 44px;
}
.show-cta-card img.scc-qr {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

/* 啟動畫面（無 yt 參數時） */
.show-bootstrap {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.show-bootstrap .sb-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 18px;
  padding: 44px 48px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.show-bootstrap h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.show-bootstrap p {
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 22px;
}
.show-bootstrap input,
.show-bootstrap select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: var(--font);
  background: var(--white);
}
.show-bootstrap input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.18);
}
.show-bootstrap button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: var(--navy-900);
  cursor: pointer;
  font-family: var(--font);
}

@media (max-width: 920px) {
  .show-content { padding: 40px 28px; }
  .show-brand { top: 16px; left: 18px; gap: 10px; }
  .show-brand img { width: 44px; height: 44px; }
  .show-brand .sb-text b { font-size: 15px; }
  .show-corner { right: 18px; bottom: 18px; padding: 10px 14px; gap: 12px; }
  .show-corner img { width: 72px; height: 72px; }
  .show-cta-grid { grid-template-columns: 1fr; gap: 16px; }
  .show-cta-card img.scc-qr { width: 110px; height: 110px; }
}

/* ============================================================
   課後 CTA 頁（/post-class）
   ============================================================ */
.post-class-body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(900px 500px at 80% -8%, rgba(242, 177, 52, 0.22), transparent 60%),
    linear-gradient(165deg, #06122a, #0a1a30 60%, #13315c);
  position: relative;
  overflow-x: hidden;
}
.pc-bg-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.pc-header {
  position: relative;
  z-index: 2;
  padding: 28px 40px;
  display: flex;
  align-items: center;
}
.pc-main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
.pc-hero { text-align: center; padding: 40px 0 56px; }
.pc-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  padding: 6px 18px;
  border: 1px solid rgba(242, 177, 52, 0.5);
  border-radius: 999px;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.2);
}
.post-class-body h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}
.pc-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin: 0 auto;
}

/* 訂閱解鎖 gate */
.pc-gate {
  max-width: 720px;
  margin: 0 auto 56px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.pc-gate.unlocked { opacity: 0; transform: scale(0.96); }
.pc-gate-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 40px 44px;
  backdrop-filter: blur(8px);
  text-align: center;
}
.pc-yt-ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ff0033;
  color: #fff;
  font-size: 28px;
  margin: 0 auto 16px;
}
.pc-gate-card h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}
.pc-gate-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  margin-bottom: 24px;
}
.pc-gate-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pc-btn-yt {
  background: #ff0033;
  color: #fff;
}
.pc-btn-yt:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 0, 51, 0.5); }
.pc-yt-mini {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #fff;
  color: #ff0033;
  border-radius: 5px;
  font-size: 13px;
}
.pc-btn-unlock {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}
.pc-btn-unlock.ready {
  background: var(--gold);
  color: var(--navy-900);
  cursor: pointer;
  border-color: var(--gold);
  animation: pcPulse 1.4s ease-in-out infinite;
}
.pc-btn-unlock.ready:hover { transform: translateY(-2px); }
@keyframes pcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 177, 52, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(242, 177, 52, 0); }
}
.pc-gate-hint {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* 下載區 */
.pc-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-align: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}
.pc-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: transform 0.25s ease, filter 0.35s ease, opacity 0.35s ease;
}
.pc-card.locked { filter: blur(3px) saturate(0.7); opacity: 0.65; pointer-events: none; }
.pc-card:not(.locked):hover { transform: translateY(-4px); border-color: rgba(242, 177, 52, 0.4); }
.pc-card .pc-ico { font-size: 36px; margin-bottom: 12px; }
.pc-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
}
.pc-card p { font-size: 14px; color: rgba(255, 255, 255, 0.78); margin-bottom: 18px; line-height: 1.7; }
.pc-btn-dl {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  background: var(--gold);
  color: var(--navy-900);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pc-btn-dl:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(242, 177, 52, 0.4); }
.pc-locked-tag {
  display: inline-block;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.pc-empty {
  text-align: center;
  padding: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}
.pc-extra {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pc-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pc-link:hover { color: var(--gold); }

.pc-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .pc-header { padding: 20px 22px; }
  .pc-main { padding: 16px 22px 60px; }
  .pc-hero { padding: 20px 0 40px; }
  .pc-gate-card { padding: 30px 24px; }
  .pc-grid { grid-template-columns: 1fr; }
}

/* ---------- 進場動畫 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 920px) {
  section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 72px 0; }
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cta-band { padding: 40px 22px; }
  .metric-grid { grid-template-columns: 1fr; }
  .recent-item { grid-template-columns: 78px 1fr; gap: 14px; }
  .article-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .proposal-doc { padding: 32px 24px; }
}

/* ============================================================
   取得提示詞模組（/prompts, /prompts/[slug], /prompts/unlocked）
   ============================================================ */

/* 列表頁 */
[data-page="prompts"] .prompt-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
[data-page="prompts"] .prompt-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--cloud);
  border-radius: var(--radius);
  color: var(--slate);
}
[data-page="prompts"] .prompt-empty.err { color: #c0392b; }
[data-page="prompts"] .prompt-card-link {
  text-decoration: none;
  display: block;
}
[data-page="prompts"] .prompt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
[data-page="prompts"] .prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
[data-page="prompts"] .prompt-eyebrow {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
[data-page="prompts"] .prompt-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy-800);
  line-height: 1.4;
  margin-bottom: 10px;
}
[data-page="prompts"] .prompt-summary {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}
[data-page="prompts"] .prompt-cta {
  display: inline-block;
  color: var(--navy-800);
  font-weight: 700;
  font-size: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* 索取表單頁 */
[data-page="prompt-request"] .prompt-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
[data-page="prompt-request"] .prompt-video {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
[data-page="prompt-request"] .video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
[data-page="prompt-request"] .video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
[data-page="prompt-request"] .prompt-tips {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
[data-page="prompt-request"] .prompt-tips h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy-800);
  margin-bottom: 10px;
}
[data-page="prompt-request"] .prompt-tips ul {
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

/* 解鎖頁 */
[data-page="prompt-unlocked"] .prompt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-md);
}
[data-page="prompt-unlocked"] .prompt-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 8px;
}
[data-page="prompt-unlocked"] .prompt-pre {
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 560px;
  overflow: auto;
  margin: 0;
}
[data-page="prompt-unlocked"] .video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
[data-page="prompt-unlocked"] .video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

@media (max-width: 860px) {
  [data-page="prompt-request"] .prompt-layout {
    grid-template-columns: 1fr;
  }
  [data-page="prompt-request"] .prompt-video {
    position: static;
  }
}

/* ===== AI 開發案例 Showcase ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.showcase-card {
  background: #ffffff;
  border: 1px solid rgba(14, 37, 69, 0.08);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(14, 37, 69, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(14, 37, 69, 0.12);
}
.showcase-card .sc-badge {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.showcase-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  color: var(--navy-800);
  margin: 0 0 6px;
  font-weight: 700;
}
.showcase-card .sc-sub {
  font-size: 13.5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.5;
}
.showcase-card .sc-desc {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.7;
  margin: 0 0 14px;
  flex-grow: 1;
}
.showcase-card .sc-desc strong { color: var(--navy-800); }
.showcase-card .sc-meta {
  font-size: 12.5px;
  color: var(--slate);
  opacity: 0.75;
  padding: 10px 0;
  border-top: 1px dashed rgba(14, 37, 69, 0.1);
  margin-bottom: 14px;
}
.showcase-card .sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.showcase-card .sc-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
  transition: all 0.15s ease;
}
.showcase-card .sc-btn:hover {
  background: rgba(242, 177, 52, 0.1);
}
.showcase-card .sc-btn.primary {
  background: var(--gold);
  color: var(--navy-900);
}
.showcase-card .sc-btn.primary:hover {
  background: var(--gold-dark);
  color: var(--white);
}
@media (max-width: 640px) {
  .showcase-card { padding: 22px 22px; }
  .showcase-card h3 { font-size: 19px; }
}

/* ===== Showcase 分區（教學心法 / AI 開發 / 提示案例）===== */
.showcase-cat {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  color: var(--navy-800);
  margin: 48px 0 4px;
  font-weight: 700;
  text-align: center;
}
.showcase-cat:first-of-type { margin-top: 40px; }
.showcase-cat-desc {
  text-align: center;
  font-size: 14.5px;
  color: var(--slate);
  margin: 0 auto 22px;
  max-width: 720px;
  line-height: 1.7;
}
/* Badge 三色分類 */
.sc-badge.cat-teaching {
  background: linear-gradient(135deg, #5b8def, #3b6ad9);
  color: #ffffff;
}
.sc-badge.cat-dev {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
}
.sc-badge.cat-prompt {
  background: linear-gradient(135deg, #6ec48f, #4fa775);
  color: #ffffff;
}
