
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --gold:        #A8782A;
  --gold-mid:    #C9982E;
  --gold-light:  #E8BF60;
  --gold-pale:   #F5E8C8;
  --gold-wash:   #FBF4E6;
  --gold-wash2:  #FDF9F0;
  --ink:         #1E160A;
  --ink-mid:     #3A2A12;
  --ink-soft:    #6B5230;
  --ink-dim:     #9B7E54;
  --cream:       #FFFDF5;
  --cream2:      #F7F0E0;
  --cream3:      #EDE0C4;
  --red:         #8B2A1A;
  --border:      #DFC898;
  --border-soft: #EDD9A8;
  --shadow:      rgba(100,70,20,0.10);
  --shadow-md:   rgba(100,70,20,0.16);
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.9;
  font-size: 17px;
  padding-top: 68px;
}
@media (max-width: 900px) { body { padding-top: 64px; } }
@media (max-width: 640px) { body { padding-top: 60px; } }

/* breadcrumb 列在 fixed nav 下面，不再需要 sticky */

/* HERO */
.cert-hero {
  background: linear-gradient(160deg, #FFFDF5 0%, #F7EED8 60%, #EDE0C0 100%);
  padding: 60px 24px 52px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.cert-hero-bg {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23A8782A' stroke-width='1'%3E%3Cpolygon points='30,4 52,17 52,43 30,56 8,43 8,17'/%3E%3Cline x1='30' y1='4' x2='30' y2='56'/%3E%3Cline x1='8' y1='17' x2='52' y2='43'/%3E%3Cline x1='52' y1='17' x2='8' y2='43'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.cert-hero-inner {
  position: relative; z-index: 2; max-width: 800px; margin: 0 auto;
}
.cert-hero-stage {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 14px; letter-spacing: 4px; padding: 7px 22px;
  margin-bottom: 24px; font-weight: 700;
  background: rgba(255,253,245,.7);
}
.cert-hero-stage::before, .cert-hero-stage::after { content: '✦'; font-size: 9px; }
.cert-hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(28px, 5vw, 52px); font-weight: 900; color: var(--ink);
  line-height: 1.2; margin-bottom: 16px; letter-spacing: 2px;
}
.cert-hero-title em { color: var(--gold); font-style: normal; }
.cert-hero-sub {
  font-size: clamp(16px, 2vw, 18px); color: var(--ink-soft);
  margin-bottom: 36px; line-height: 2.0;
}
/* HERO META — 手機 2x2 */
.cert-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cert-meta-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  padding: 14px 18px;
}
.cert-meta-item .label {
  font-size: 15px; letter-spacing: 3px; color: var(--gold); font-weight: 700; display: block; margin-bottom: 4px;
}
.cert-meta-item .value {
  font-size: 17px; font-weight: 700; color: var(--ink); font-family: 'Noto Serif TC', serif;
  line-height: 1.2;
}

/* TEACHER CARD v2 — 大照片區 */
.cert-teacher-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 36px var(--shadow-md);
  margin-top: 32px;
  overflow: hidden;
  position: relative;
}
.cert-teacher-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(to right, var(--gold-pale), var(--gold), var(--gold-pale));
  z-index: 3;
}
.ctc-photo {
  position: relative;
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-mid) 100%);
  min-height: 440px;
  overflow: hidden;
}
.ctc-glow {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(232,191,96,.28) 0%, transparent 65%);
  z-index: 1;
}
.ctc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  z-index: 2;
}
.ctc-stamp {
  position: absolute; top: 22px; right: 22px;
  z-index: 3;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(139,42,26,.92);
  border: 2px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transform: rotate(-8deg);
}
.ctc-stamp::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid rgba(232,191,96,.6);
}
.ctc-stamp-inner {
  text-align: center;
  font-family: 'Noto Serif TC', serif;
  color: var(--gold-light);
  letter-spacing: 2px;
  line-height: 1.2;
}
.ctc-stamp-line1 { font-size: 13px; font-weight: 700; display: block; }
.ctc-stamp-line2 { font-size: 11px; font-weight: 600; display: block; margin-top: 2px; opacity: .9; }

.ctc-text {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.ctc-eyebrow {
  font-size: 14px; letter-spacing: 5px; color: var(--gold);
  font-weight: 700; margin-bottom: 10px;
}
.ctc-name {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(26px, 3vw, 34px); font-weight: 700;
  color: var(--ink); letter-spacing: 4px; margin-bottom: 6px;
}
.ctc-role {
  font-size: 14px; letter-spacing: 3px; color: var(--gold);
  font-weight: 600; margin-bottom: 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-soft);
}
.ctc-bio { font-size: 18px; color: var(--ink-soft); line-height: 2.0; margin-bottom: 18px; }
.ctc-quote {
  font-family: 'Noto Serif TC', serif;
  font-size: 17px; color: var(--ink); font-style: italic;
  line-height: 1.7;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-wash2);
  margin: 8px -16px;
  padding-right: 16px;
  padding-left: 22px;
}
.ctc-sign {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px; color: var(--gold);
  letter-spacing: 4px; text-align: right;
  margin-top: 12px; font-weight: 700;
}
@media (max-width: 900px) {
  .cert-teacher-card { grid-template-columns: 1fr; }
  .ctc-photo { min-height: 0; aspect-ratio: 5/3; }
}
@media (max-width: 640px) {
  .ctc-photo { aspect-ratio: 4/3; }
  .ctc-text { padding: 30px 22px; }
  .ctc-stamp { width: 72px; height: 72px; top: 16px; right: 16px; }
  .ctc-stamp-line1 { font-size: 11px; }
  .ctc-stamp-line2 { font-size: 9.5px; }
}

/* WRAP */
.wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* SECTION */
.cert-section { padding: 56px 24px; }
.cert-section.alt { background: var(--cream2); }

.section-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}
.section-eyebrow::after {
  background: linear-gradient(to left, transparent, var(--border));
}
.section-eyebrow span {
  font-size: 19px; letter-spacing: 3px; color: var(--red);
  font-weight: 700; white-space: nowrap;
}
.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(24px, 3.8vw, 36px); font-weight: 700;
  color: var(--ink); line-height: 1.4; margin-bottom: 20px;
  text-align: center;
}

/* INFO GRID — 4 欄 PC / 2x2 手機 */
.info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  box-shadow: 0 3px 14px var(--shadow);
  margin-bottom: 40px;
}
.info-cell {
  background: #fff; padding: 22px 20px;
}
.info-cell .ic-label {
  font-size: 15px; letter-spacing: 3px; color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.info-cell .ic-value {
  font-family: 'Noto Serif TC', serif; font-size: 20px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.info-cell .ic-note {
  font-size: 15px; color: var(--ink-dim); line-height: 1.6;
}

/* SCHEDULE TABLE — 桌機用 */
.schedule-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 32px;
}
.schedule-table th {
  background: var(--gold); color: #fff;
  font-family: 'Noto Serif TC', serif;
  font-size: 14px; font-weight: 700;
  padding: 14px 18px; letter-spacing: 1px; text-align: left;
}
.schedule-table td {
  padding: 13px 18px; font-size: 15px;
  border-bottom: 1px solid var(--border-soft); vertical-align: middle; line-height: 1.65;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--gold-wash2); }
.schedule-table td:first-child {
  font-family: 'Noto Serif TC', serif; font-weight: 700; color: var(--ink-soft);
  font-size: 14px; background: var(--gold-wash) !important;
  border-right: 1px solid var(--border-soft); white-space: nowrap;
}
.schedule-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: var(--gold); border: none;
  padding: 2px 10px; margin-right: 6px;
}

/* SCHEDULE CARDS — 手機用時間軸 */
.schedule-cards {
  display: none;
  flex-direction: column; gap: 0;
  margin-bottom: 32px;
  position: relative;
}
.schedule-cards::before {
  content: ''; position: absolute;
  left: 24px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold-pale), var(--gold), var(--gold-pale));
}
.sc-item {
  display: flex; gap: 16px;
  padding: 0 0 20px 0;
  position: relative;
}
.sc-dot {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-wash); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  font-family: 'Noto Serif TC', serif;
  font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 1px; text-align: center; line-height: 1.2;
}
.sc-item.sc-highlight .sc-dot {
  background: var(--gold); color: #fff; border-color: var(--gold-deep);
}
.sc-body {
  flex: 1; padding-top: 10px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 16px;
}
.sc-item:last-child .sc-body { border-bottom: none; }
.sc-date {
  font-size: 14px; letter-spacing: 2px; color: var(--gold);
  font-weight: 700; margin-bottom: 6px;
}
.sc-content {
  font-size: 17px; color: var(--ink); line-height: 1.75;
  font-family: 'Noto Serif TC', serif; font-weight: 600;
  margin-bottom: 4px;
}
.sc-format {
  font-size: 15px; color: var(--ink-dim); letter-spacing: 1px;
}
@media (max-width: 640px) {
  .schedule-table { display: none; }
  .schedule-cards { display: flex; }
}

/* CURRICULUM */
.curriculum-list { display: flex; flex-direction: column; gap: 0; }
.curriculum-module {
  border: 1px solid var(--border-soft); margin-bottom: -1px;
  background: #fff;
}
.curriculum-module-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer;
  transition: background .2s;
  user-select: none;
}
.curriculum-module-header:hover { background: var(--gold-wash2); }
.module-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-wash); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif TC', serif; font-size: 13px; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.module-title-block { flex: 1; min-width: 0; }
.module-title {
  font-family: 'Noto Serif TC', serif; font-size: 17px; font-weight: 700;
  color: var(--ink); margin-bottom: 3px;
  word-break: break-all;
}
.module-meta { font-size: 15px; color: var(--ink-dim); margin-top: 4px; }
.module-arrow {
  color: var(--gold); font-size: 16px; transition: transform .25s; flex-shrink: 0;
}
.curriculum-module.open .module-arrow { transform: rotate(90deg); }
.curriculum-module-body {
  display: none; padding: 0 24px 22px 76px;
  border-top: 1px solid var(--border-soft);
}
.curriculum-module.open .curriculum-module-body { display: block; }
.lesson-list { list-style: none; padding: 16px 0 0; }
.lesson-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 17px; color: var(--ink-soft); line-height: 1.8;
}
.lesson-list li:last-child { border-bottom: none; }
.lesson-list li::before {
  content: '▸'; color: var(--gold); font-size: 12px;
  position: absolute; left: 4px; top: 11px;
}
.lesson-note {
  font-size: 15px; color: var(--ink-dim); font-style: italic;
  margin-top: 12px; padding: 10px 14px;
  background: var(--gold-wash2); border-left: 3px solid var(--gold-light);
}

/* HIGHLIGHTS BOX */
.highlight-box {
  border: 1px solid var(--border); background: var(--gold-wash2);
  padding: 28px 32px; margin-bottom: 32px;
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
}
.highlight-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--gold-pale), var(--gold), var(--gold-pale));
}
.highlight-box h4 {
  font-family: 'Noto Serif TC', serif; font-size: 16px; font-weight: 700;
  color: var(--gold); margin-bottom: 16px; letter-spacing: 1px;
}
.highlight-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.highlight-item {
  background: #fff; border: 1px solid var(--border-soft); padding: 16px 18px;
}
.highlight-item h5 {
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.highlight-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* EXAM STEPS — 5 欄 PC / 2x2+1 手機 */
.exam-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 32px;
}
.exam-step {
  background: #fff; padding: 24px 18px; text-align: center;
}
.exam-step:last-child { background: var(--gold-wash); }
.exam-step .es-num {
  font-size: 14px; letter-spacing: 3px; color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.exam-step .es-title {
  font-family: 'Noto Serif TC', serif; font-size: 18px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.exam-step:last-child .es-title { color: var(--gold); }
.exam-step .es-desc { font-size: 15px; color: var(--ink-dim); line-height: 1.75; }

/* CTA */
.cert-cta {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
  padding: 64px 24px; text-align: center; position: relative; overflow: hidden;
}
.cert-cta-bg {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23E8BF60' stroke-width='1'%3E%3Cpolygon points='30,4 52,17 52,43 30,56 8,43 8,17'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.cert-cta-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cert-cta h2 {
  font-family: 'Noto Serif TC', serif; font-size: clamp(22px, 4vw, 36px);
  font-weight: 900; color: #fff; margin-bottom: 14px; line-height: 1.3;
}
.cert-cta h2 em { color: var(--gold-light); font-style: normal; }
.cert-cta p { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 2.0; }
.btn-gold {
  display: inline-block; background: var(--gold-light); color: var(--ink);
  padding: 16px 44px; font-size: 18px; font-weight: 700;
  letter-spacing: 2px; border-radius: 3px; text-decoration: none;
  border: none; cursor: pointer; transition: background .2s, transform .18s;
  box-shadow: 0 4px 24px rgba(232,191,96,.4);
}
.btn-gold:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,.5); color: rgba(255,255,255,.85);
  padding: 15px 36px; font-size: 16px; font-weight: 600;
  background: transparent; cursor: pointer; letter-spacing: 1px;
  border-radius: 3px; text-decoration: none; transition: all .2s;
  margin-left: 12px;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* TAGS */
.cert-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cert-tag {
  font-size: 15px; color: var(--gold); font-weight: 600;
  border: 1px solid var(--border); padding: 6px 16px;
  background: var(--gold-wash2);
}

/* FADE-UP */
.fade-up { opacity:0; transform:translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* GOLD RULE */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* BREADCRUMB — 無底色，避免日後套上表頭時出現多條底色 */
.breadcrumb {
  font-size: 15px; color: var(--ink-dim); padding: 14px 24px;
  background: transparent; border-bottom: none;
  max-width: 100%;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* MOBILE */
@media (max-width: 760px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cert-meta-item { padding: 12px 14px; }
  .cert-meta-item .value { font-size: 16px; }
  /* exam-steps 2x2 + 最後一個橫跨一整行 */
  .exam-steps { grid-template-columns: repeat(2, 1fr); }
  .exam-step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* 手機版不再雙重內縮：wrap 不加左右 padding，跟著其他頁面手機版 */
  .wrap { padding: 0; }
  .cert-hero { padding: 52px 14px 42px; }
  .cert-section { padding: 42px 14px; }
  .breadcrumb { padding: 12px 14px; }
  /* 手機版課程章節：改為垂直堆疊，避免文字溢出 */
  .curriculum-module-header { padding: 16px 14px; gap: 12px; align-items: flex-start; }
  .module-num { width: 32px; height: 32px; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
  .module-title { font-size: 15px; word-break: keep-all; overflow-wrap: break-word; }
  .module-meta { font-size: 13px; }
  .module-arrow { margin-top: 4px; }
  .curriculum-module-body { padding: 0 14px 20px 14px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .schedule-table { font-size: 14px; }
  .schedule-table th, .schedule-table td { padding: 12px 14px; }
  .highlight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .info-cell { padding: 16px 14px; }
  .info-cell .ic-value { font-size: 17px; }
}

/* ════════ 三個關鍵轉換 — 重新排版 (3 欄 from→to) ════════ */
.transform-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 32px;
}
.transform-card {
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 28px 26px; position: relative;
  display: flex; flex-direction: column;
}
.transform-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--gold-pale), var(--gold), var(--gold-pale));
}
.tf-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px; letter-spacing: 3px; color: var(--gold);
  font-weight: 700; margin-bottom: 10px;
}
.tf-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: 1px; margin-bottom: 18px;
}
.tf-flow { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tf-from, .tf-to {
  font-size: 16px; padding: 9px 14px; border: 1px solid var(--border-soft);
  line-height: 1.5;
}
.tf-from { background: var(--gold-wash2); color: var(--ink-soft); }
.tf-arrow { align-self: center; color: var(--gold); font-size: 18px; line-height: 1; }
.tf-to { background: var(--gold-wash); color: var(--ink); font-weight: 700; border-color: var(--border); }
.tf-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.85; margin-top: auto; }
@media (max-width: 760px) { .transform-grid { grid-template-columns: 1fr; } }

/* ════════ 本頁專屬置底浮水印 — 報名課程 ════════ */
#floatCta, #floatCtaBackdrop { display: none !important; }
.cert-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; padding: 15px 30px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
  border-radius: 999px; border: 1.5px solid var(--gold-light);
  box-shadow: 0 8px 32px rgba(140,94,26,.45), 0 0 0 4px rgba(255,253,245,.85);
  text-decoration: none; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateY(28px);
  transition: opacity .35s ease, transform .35s ease, box-shadow .25s;
}
.cert-float::before { content: '✦'; color: var(--gold-light); font-size: 13px; }
.cert-float::after { content: '→'; font-size: 18px; line-height: 1; margin-left: 2px; }
.cert-float.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cert-float:hover {
  box-shadow: 0 12px 40px rgba(140,94,26,.55), 0 0 0 4px rgba(255,253,245,.85);
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 640px) {
  .cert-float {
    bottom: 16px; right: 50%;
    transform: translateX(50%) translateY(28px);
    padding: 13px 26px; font-size: 15px;
  }
  .cert-float.show { transform: translateX(50%) translateY(0); }
  .cert-float:hover { transform: translateX(50%) translateY(-2px) scale(1.02); }
}

/* ════════ 三個關鍵轉換 — 簡潔列式（取代方框群）════════ */
.shift-list { border-top: 1px solid var(--border-soft); margin-bottom: 34px; }
.shift-row { display: grid; grid-template-columns: 84px 1fr; gap: 22px; padding: 26px 6px; border-bottom: 1px solid var(--border-soft); align-items: start; }
.shift-no { font-family: 'Noto Serif TC', serif; font-size: 44px; font-weight: 900; color: var(--gold-pale); line-height: 1; }
.shift-title { font-family: 'Noto Serif TC', serif; font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: 1px; margin-bottom: 14px; }
.shift-flow { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 16px; margin-bottom: 12px; }
.shift-from { color: var(--ink-dim); }
.shift-arrow { color: var(--gold); font-weight: 700; font-size: 18px; }
.shift-to { color: var(--gold-deep); font-weight: 700; background: linear-gradient(transparent 62%, var(--gold-pale) 0); padding: 0 3px; }
.shift-desc { font-size: 17px; color: var(--ink-soft); line-height: 1.9; }
@media (max-width: 640px) { .shift-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 2px; } .shift-no { font-size: 30px; } }

/* 學完高階班，你能做到 — 簡潔清單面板（無內框）*/
.able-panel { border: 1px solid var(--border); background: var(--gold-wash2); padding: 28px 32px; position: relative; }
.able-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, var(--gold-pale), var(--gold), var(--gold-pale)); }
.able-title { font-family: 'Noto Serif TC', serif; font-size: 16px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.able-title::before { content: '✦'; }
.able-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.able-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.able-check { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-wash); border: 1px solid var(--border); color: #2A7A2A; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.able-item h5 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.able-item p { font-size: 16px; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 640px) { .able-grid { grid-template-columns: 1fr; gap: 18px; } .able-panel { padding: 22px 18px; } }

/* ════════ 底部課程套組（合報方案）════════ */
/* bundle packages 課程套組合報 */
#bundles { padding: 56px 24px 80px; background: var(--cream); position: relative; overflow: hidden; }
@media (max-width: 640px) { #bundles { padding: 44px 14px 60px; } }
.bundle-head { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.bundle-head .section-eyebrow { justify-content: center; }
.bundle-head .section-title { text-align: center; }
.bundle-head .bundle-lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 2.0; margin: 0 auto; }
.bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; margin-top: 44px; max-width: 760px; margin-left: auto; margin-right: auto; }
.bundle-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 22px var(--shadow); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.bundle-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px var(--shadow-md); }
.bundle-card.featured { border-color: var(--gold); box-shadow: 0 8px 36px rgba(168,120,42,.22); }
.bundle-ribbon { position: absolute; top: 18px; right: -36px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 2px; padding: 5px 42px; transform: rotate(45deg); box-shadow: 0 2px 8px rgba(139,42,26,.35); z-index: 2; }
.bundle-top { padding: 26px 26px 22px; border-bottom: 1px solid var(--border-soft); background: var(--gold-wash2); position: relative; }
.bundle-card.featured .bundle-top { background: linear-gradient(160deg, var(--gold-wash) 0%, var(--gold-wash2) 100%); }
.bundle-combo { display: inline-block; white-space: nowrap; font-family: 'Noto Serif TC', serif; font-size: 15px; font-weight: 700; letter-spacing: 3px; color: var(--gold); background: #fff; border: 1px solid var(--border); padding: 5px 16px; margin-bottom: 14px; }
.bundle-card.featured .bundle-combo { color: #fff; background: var(--gold); border-color: var(--gold); }
.bundle-name { font-family: 'Noto Serif TC', serif; font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: 1px; line-height: 1.35; margin-bottom: 8px; }
.bundle-scope { font-size: 15px; color: var(--ink-dim); letter-spacing: 1px; }
.bundle-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.bundle-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-soft); margin-bottom: 20px; }
.bundle-stat { padding: 12px 8px; text-align: center; }
.bundle-stat + .bundle-stat { border-left: 1px solid var(--border-soft); }
.bundle-stat .bs-num { font-family: 'Noto Serif TC', serif; font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1; }
.bundle-stat .bs-num .unit { font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-left: 2px; }
.bundle-stat .bs-label { font-size: 13px; color: var(--ink-dim); letter-spacing: 2px; margin-top: 6px; }
.bundle-price { margin-bottom: 20px; }
.bundle-price .bp-orig { font-size: 14px; color: var(--ink-dim); text-decoration: line-through; margin-bottom: 2px; letter-spacing: .5px; }
.bundle-price .bp-now { display: flex; align-items: baseline; gap: 8px; }
.bundle-price .bp-now .bp-cur { font-size: 15px; color: var(--red); font-weight: 700; }
.bundle-price .bp-now .bp-val { font-family: 'Noto Serif TC', serif; font-size: 34px; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -.5px; }
.bundle-price .bp-save { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--gold-deep); background: var(--gold-wash); border: 1px solid var(--border); padding: 3px 12px; }
.bundle-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; background: var(--gold); color: #fff; padding: 14px 18px; font-size: 16px; font-weight: 700; letter-spacing: 2px; border-radius: 3px; text-decoration: none; transition: background .2s, transform .15s; box-shadow: 0 3px 12px rgba(168,120,42,.25); }
.bundle-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }
.bundle-cta::after { content: '\2192'; font-size: 17px; line-height: 1; }
.bundle-card.featured .bundle-cta { box-shadow: 0 5px 18px rgba(168,120,42,.4); }
.bundle-includes { max-width: 760px; margin: 36px auto 0; border: 1px solid var(--border); background: var(--gold-wash2); padding: 24px 30px; position: relative; }
.bundle-includes::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(to right, var(--gold-pale), var(--gold), var(--gold-pale)); }
.bundle-includes h4 { font-family: 'Noto Serif TC', serif; font-size: 16px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.bundle-includes h4::before { content: '\2726'; color: var(--gold); }
.bundle-includes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bundle-includes li { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; color: var(--ink-soft); line-height: 1.8; }
.bundle-includes li::before { content: '\2713'; color: #2A7A2A; font-weight: 700; flex-shrink: 0; }
@media (max-width: 900px) { .bundle-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.bundle-ribbon.alt { background: var(--gold); box-shadow: 0 2px 8px rgba(168,120,42,.35); }
.bundle-feats { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.bundle-feats .bf-label { font-family: 'Noto Serif TC', serif; font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.bundle-feats ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bundle-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 17px; color: var(--ink-soft); line-height: 1.7; }
.bundle-feats li::before { content: '\2713'; color: #2A7A2A; font-weight: 700; flex-shrink: 0; }

/* 張盛舒親授 — 移出「課程皆含」後的署名標記 */
.bundle-author {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-family: 'Noto Serif TC', serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--gold-deep);
  border: 1px solid var(--border); background: #fff; padding: 5px 13px;
}
.bundle-author { white-space: nowrap; }
.bundle-author::before { content: '✦'; color: var(--gold); font-size: 11px; }
.bundle-card.featured .bundle-author { background: rgba(255,255,255,.85); }

/* 五班專屬：認證考試費用（價值）highlight */
.bundle-feats li.bf-hot { color: var(--ink-soft); font-weight: 400; }
.bundle-feats li.bf-hot .bf-htext { flex: 1; }
.bundle-feats li.bf-hot::before { content: '✓'; color: #2A7A2A; }
.bundle-feats li.bf-hot .bf-val { color: var(--ink-dim); font-weight: 400; white-space: nowrap; margin-left: 5px; }


/* 合報贈品 block */
.bundle-body .gift-block { margin-top: 18px; margin-bottom: 18px; }

/* 單堂課程贈品 — stage 卡片內 */
.stage-gift {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding: 9px 14px;
  background: transparent; border: 1px dashed var(--border-soft);
}
.stage-gift .sg-tag {
  flex-shrink: 0; font-family: 'Noto Sans TC', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--ink-dim); background: transparent; border: 1px solid var(--border-soft); padding: 2px 10px;
}
.stage-gift .sg-text { font-size: 13.5px; color: var(--ink-soft); font-weight: 400; line-height: 1.5; }
.stage-gift .sg-val { color: var(--ink-dim); font-weight: 600; white-space: nowrap; }
.stage-gift .sg-val::before { content: '· '; color: var(--ink-dim); font-weight: 400; }

/* ════════ 0615：手機版字級放大 ════════ */
/* PC: 課程價值描述文字置中 */
.value-lead { text-align: center; }
@media (max-width: 640px) {
  body { font-size: 19px; }
  .cert-section p[style] { font-size: 19px !important; }
  .lesson-list li { font-size: 18px; line-height: 1.85; }
  .lesson-note { font-size: 16px; }
  .module-title { font-size: 19px; word-break: keep-all; overflow-wrap: break-word; }
  .module-meta { font-size: 15px; }
  .ctc-bio { font-size: 18px; }
  .ctc-quote { font-size: 17px; }
  .ctc-role { font-size: 15px; }
  .shift-title { font-size: 22px; }
  .shift-desc { font-size: 18px; }
  .shift-flow { font-size: 17px; }
  .shift-no { font-size: 34px; }
  .able-item h5 { font-size: 18px; }
  .able-item p { font-size: 17px; }
  .able-title { font-size: 18px; }
  /* 手機版 section-title 靠左 */
  .section-title { text-align: left; }
  /* 手機版課程價值描述靠左 */
  .value-lead { text-align: left; }
  .cert-tag { font-size: 15px; }
  .cert-hero-sub { font-size: 17px; }
  .cert-hero-meta .value { font-size: 17px; }
  .cert-hero-meta .label { font-size: 14px; }
  .info-cell .ic-value { font-size: 19px; }
  .info-cell .ic-note { font-size: 15px; }
  .info-cell .ic-label { font-size: 15px; }
  .sc-content { font-size: 18px; }
  .sc-format { font-size: 15px; }
  .sc-date { font-size: 15px; }
  .highlight-item h5 { font-size: 15px; }
  .highlight-item p { font-size: 15px; }
  .exam-step .es-title { font-size: 18px; }
  .exam-step .es-desc { font-size: 15px; }
  .schedule-table, .schedule-table th, .schedule-table td { font-size: 15px; }
}


/* ════ Extracted inline styles from ziwei-cert.html ════ */
.zcert-body-p { font-size: 18px; color: var(--ink-soft); line-height: 2.1; margin-bottom: 24px; }
.zcert-body-p-last { font-size: 18px; color: var(--ink-soft); line-height: 2.1; margin-bottom: 0; }
.zcert-lead-p { font-size: 18px; color: var(--ink-soft); line-height: 2.0; margin-bottom: 32px; }
.value-lead-p { font-size: 18px; color: var(--ink-soft); line-height: 2.0; margin-bottom: 28px; }
.bundles-inner-wrap { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.site-footer-dark {
  background: var(--ink); color: rgba(255,255,255,.5);
  text-align: center; padding: 32px 24px 110px;
  font-size: 13px; letter-spacing: 1px; line-height: 2;
}
.site-footer-dark strong { color: rgba(255,255,255,.8); }
.site-footer-dark a { color: var(--gold-light); text-decoration: none; }
.site-footer-dark .footer-link, .footer-link { color: var(--gold-light); text-decoration: none; }
