/* ===== 設計變數 ===== */
:root {
  --qinglv: #2D5F4E;
  --qinglv-deep: #1F4236;
  --zheshi: #B8704A;
  --zhusha: #C0392B;
  --xuanzhi: #F5F0E6;
  --xuanzhi-light: #FAF7F0;
  --ink: #2A2A2A;
  --ink-light: #6B6B6B;
  --line: rgba(45, 95, 78, 0.18);

  --def-font-family: 'Noto Sans SC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;

  timeline-scope: --section-B;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body{
  font-family: var(--def-font-family);
  background: var(--xuanzhi);
  color: var(--ink);
  line-height: 2.0;
  overflow-x: hidden;
}
h1, h2, h3, .serif {
  font-family: var(--def-font-family);
}


/* ===== 通用 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--qinglv-deep);
  margin-bottom: 12px;
  line-height: 1.4;
}
.section-sub {
  font-size: 16px;
  color: var(--ink-light);
  margin-bottom: 48px;
  /* max-width: 600px; */
}


/* ===== 水墨分隔線 ===== */
.ink-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--qinglv) 20%, var(--zheshi) 50%, var(--qinglv) 80%, transparent);
  opacity: 0.4;
  margin: 0 auto;
  max-width: 200px;
}


/* ===== 印章 ===== */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--zhusha);
  color: #fff;
  font-family: var(--def-font-family);
  font-weight: 700;
  font-size: 18px;
  border-radius: 6px;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
  flex-shrink: 0;
}


/* ===== header-top-bar ===== */
.header-top {
  width: 100%;
  height: 80px;
  background-color: rgba(250, 247, 240, 0);
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 10;

  animation: turnOpaque linear both;
  animation-timeline: --section-B;
  animation-range: exit 0% exit 100%;
}
.header-top .innr {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-top .back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 8px 0;
  transition: background-color 0.2s;
}
.header-top .back-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
}
.header-top .back-btn svg {
  width: 20px;
  height: 20px;
}
@keyframes turnOpaque {
  from {
    background-color: rgba(250, 247, 240, 0);
  }
  to {
    background-color: rgba(250, 247, 240, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}


/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  view-timeline-name: --section-B;
  view-timeline-axis: block;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/bg_image.jpg') center/cover no-repeat;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 240, 230, 0.55) 0%, rgba(245, 240, 230, 0.75) 60%, rgba(245, 240, 230, 0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--zheshi);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 900;
  color: var(--qinglv-deep);
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(245, 240, 230, 0.8);
}
.hero-tagline {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--zheshi);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.9;
}
.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: var(--qinglv);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: 2px;
  transition: all .3s;
  box-shadow: 0 4px 16px rgba(45, 95, 78, 0.3);
}
.hero-cta:hover {
  background: var(--qinglv-deep);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--qinglv);
  font-size: 12px;
  letter-spacing: 2px;
  animation: float 2s ease-in-out infinite;
}
@keyframes float {
  0%,100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}
.hero-scroll svg {
  width: 20px;
  height: 20px;
}


/* ===== sub page header ===== */
.page-header {
  position: relative;
  height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  view-timeline-name: --section-B;
  view-timeline-axis: block;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background: url('../images/bg_image.jpg') center/cover no-repeat;
  filter: saturate(0.9);
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 240, 230, 0.55) 0%, rgba(245, 240, 230, 0.85) 100%);
}
.page-header-content {
  position: relative;
  z-index: 2;
}
.page-header-content .hero-sub {
  margin-bottom: 0px;
}


/* ===== 簡述 ===== */
.intro {
  background: var(--xuanzhi-light);
}
.intro-card {
  background: var(--xuanzhi);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(32px, 6vw, 56px);
  position: relative;
  box-shadow: 0 8px 40px rgba(45, 95, 78, 0.08);
}
.intro-card::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(184, 112, 74, 0.2);
  pointer-events: none;
  border-radius: 2px;
}
.intro-card p {
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 2.1;
  color: var(--ink);
  margin-bottom: 20px;
  text-indent: 2em;
}
.intro-card p:last-child {
  margin-bottom:0;
}
.intro-seal {
  position: absolute;
  top: -18px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--zhusha);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--def-font-family);
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
  z-index: 2;
}


/* ===== 文化雙欄 ===== */
.culture-block {
  background: var(--xuanzhi);
}
.culture-grid {
  display: grid;
  gap: 32px;
}
@media(min-width:720px) {
  .culture-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
.culture-card {
  background: var(--xuanzhi-light);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: all .3s;
}
.culture-card:hover {
  box-shadow: 0 12px 40px rgba(45, 95, 78, 0.1);
  transform:translateY(-4px);
}
.culture-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.culture-icon {
  width: 44px;
  height: 44px;
  background: rgba(45, 95, 78, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qinglv);
  flex-shrink:0;
}
.culture-icon svg {
  width: 22px;
  height: 22px;
}
.culture-card h3 {
  font-family: var(--def-font-family);
  font-size: 22px;
  color: var(--qinglv-deep);
}
.culture-card h4 {
  color: var(--zheshi);
  font-family: var(--def-font-family);
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 6px;
}
.culture-card p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink);
  margin-bottom: 8px;
}


/* ===== 知多點 ===== */
.knowledge {
  background: var(--xuanzhi-light);
}
.knowledge-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--line);
}
.knowledge-tab {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: all .3s;
  font-family: var(--def-font-family);
  position: relative;
}
.knowledge-tab.active {
  color: var(--qinglv-deep);
  font-weight: 700;
}
.knowledge-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--qinglv);
}
.knowledge-panel {
  display: none;
}
.knowledge-panel.active {
  display: block;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--xuanzhi);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--qinglv-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--def-font-family);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--zheshi);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}
.faq-answer {
  padding: 16px 24px 20px 64px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-light);
}
.quiz-grid {
  display: grid;
  gap: 16px;
}
@media(min-width:600px) {
  .quiz-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.quiz-card {
  background: var(--xuanzhi);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  transition: all .3s;
}
.quiz-card:hover {
  box-shadow: 0 8px 24px rgba(45, 95, 78, 0.1);
}
.quiz-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--qinglv-deep);
  margin-bottom: 10px;
  font-family: var(--def-font-family);
  line-height: 1.6;
}
.quiz-a {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 10px;
}
.quiz-story {
  font-size: 12px;
  color: var(--zheshi);
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--zheshi);
  padding-left: 12px;
}




.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--zheshi);
  margin-bottom: 16px;
  text-transform: uppercase;
}


/* ===== 培訓內容架構 ===== */
.programs {
  background: var(--xuanzhi);
}
.program-seal {
  width: 52px;
  height: 52px;
  background: var(--zhusha);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--def-font-family);
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.program-grid {
  display: grid;
  gap: 32px;
  margin-top: 16px;
}
@media(min-width:720px) {
  .program-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .program-grid-m {
    gap: 20px;
  }
}
.program-card .innr {
  overflow: hidden;
  transition: all .3s;
}
.program-card .innr:hover {
  box-shadow: 0 12px 20px rgba(45, 95, 78, 0.12);
  transform: translateY(-4px);
}
.program-1 {
  grid-column: 1/2;
  display: block;
  text-decoration: none;
  color: inherit;
}
.program-1-m:hover .innr {
  box-shadow: 0 12px 20px rgba(45, 95, 78, 0.12);
}
@media(min-width:720px) {
  .program-1 { grid-column: 1/3; }
}
.program-head {
  padding: 28px 28px 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--xuanzhi-light);
  border: 1px solid var(--line);
  border-radius: 4px 4px 0px 0px;
  user-select: none;
}
.program-head-text {
  flex: 1;
}
.program-card.open .program-head {
  border-bottom: 1px solid var(--line);
}
.program-1 .program-head {
  border-bottom: 1px solid var(--line);
}
.program-name {
  color: var(--qinglv-deep);
  font-family: var(--def-font-family);
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 16px;
}
.program-desc {
  font-size: 13px;
  color: var(--ink-light);
}
.program-arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qinglv);
  transition: transform .3s;
  flex-shrink: 0;
}
.program-card.open .program-arrow {
  transform: rotate(180deg);
}
.program-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
  background: var(--xuanzhi-light);
  border-radius: 0px 0px 4px 4px;
}
.program-card.open .program-body {
  max-height: 1200px;
  border: 1px solid var(--line);
  border-top: 0;
}
.program-items {
  padding: 8px 28px 24px;
}
.program-item {
  display: flex;
  flex-direction:column;
  flex-wrap:nowrap;
  align-content:flex-start;
  justify-content:flex-start;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: inherit;
}
/*.program-item:hover {
  background: rgba(45, 95, 78, 0.12);
  cursor: pointer;
}*/
.program-item:last-child {
  border-bottom: none;
}
.program-item-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  /*margin-bottom: 8px;*/
}
.program-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(45, 95, 78, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--qinglv);
}
.program-item-icon svg {
  width: 18px;
  height: 18px;
}
.program-item-text h4 {
  font-family: var(--def-font-family);
  font-size: 17px;
  font-weight: 600;
  color: var(--qinglv-deep);
  margin-bottom: 4px;
}
.program-item-text p {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.8;
}
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px 50px;
}
.meta-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(45, 95, 78, 0.06);
  border-radius: 20px;
  font-size: 12px;
  color: var(--qinglv-deep);
}
.program-link {
  display: inline-block;
  margin-left: 50px;
  padding: 8px 20px;
  background: var(--qinglv);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all .3s;
}
.program-link:hover {
  background: var(--qinglv-deep);
}


/* ===== 關於 ===== */
.about {
  background: var(--qinglv-deep);
  color: rgba(255,255,255,0.9);
}
.about .section-title {
  color: #fff;
}
.about .section-sub {
  color: rgba(255,255,255,0.6);
}
.about-grid {
  display: grid;
  gap: 32px;
  margin-top: 16px;
}
@media(min-width:720px) {
  .about-grid {
    grid-template-columns: repeat(4,1fr);
  }
}
.about-item {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
}
.about-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  font-family: var(--def-font-family);
}
.about-item p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
}


/* ===== 頁腳 ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
}
footer .serif {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
}
footer .disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  line-height: 1.8;
}
footer .footer-links {
  margin-top: 16px;
}
footer .footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin: 0 12px;
  transition: color .3s;
}
footer .footer-links a:hover {
  color:#fff;
}

@media(max-width:600px) {
  .section {
    padding: 56px 0;
  }
  .program-head {
    padding: 22px 20px 16px;
  }
  .program-items {
    padding: 4px 20px 20px;
  }
  .intro-seal {
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  .program-meta {
    margin-left: 0;
  }
  .program-link {
    margin-left: 0;
  }
  .knowledge-tab {
    padding: 12px 16px;
    font-size: 14px;
  }
  .culture-card {
    padding: 28px 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.program-flex {
  display: flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-content:flex-start;
  justify-content:flex-start;
  gap: 16px;
}
.program-flex .program-flex-context {
  flex: 0 0 100%;
  display: flex;
  flex-direction:column;
  justify-content: center;
}
.program-flex .program-flex-bg {
  flex: 0 0 100%;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-items: center;
}

.program-flex .program-flex-bg .btn-contact-us {
  display:block;
  text-decoration:none;
  color:inherit;
}
.program-flex .program-flex-bg .btn-contact-us:hover {
  background: #fff;
  color: var(--qinglv-deep);
}

@media(min-width:720px){
  .program-flex { flex-wrap:nowrap; }
  .program-flex .program-flex-context { flex: 0 0 60%; }
  .program-flex .program-flex-bg { flex: 0 0 40%; }
}

.info-table-wrap {
    width: 100%;
    margin: 0 auto;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);

    font-size: 16px;
    line-height: 1.8;
}

/* 左側標題 */
.info-table th {
    width: 110px;
    padding: 18px 15px;

    background: var(--zhusha);
    color: #ffffff;

    font-weight: 600;
    text-align: center;
    vertical-align: middle;

    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* 右側內容 */
.info-table td {
    padding: 18px 15px;

    background: #ffffff;
    color: #333333;

    text-align: left;
    vertical-align: middle;

    border-bottom: 1px solid #eeeeee;
}

/* 最後一行不要底線 */
.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* 第一格左上角 */
.info-table tr:first-child th {
    border-top-left-radius: 7px;
}

/* 最後格左下角 */
.info-table tr:last-child th {
    border-bottom-left-radius: 7px;
}

/* 最後格右上角 */
.info-table tr:first-child td,
.info-table tr:first-child td {
    border-top-right-radius: 7px;
}

/* 最後格右下角 */
.info-table tr:last-child td {
    border-bottom-right-radius: 7px;
}


/* =========================
   Mobile
========================= */

@media (max-width: 767px) {

    .info-table {
        font-size: 15px;
        line-height: 1.7;
    }

    .info-table th {
        width: 80px;
        padding: 14px 8px;
    }

    .info-table td {
        padding: 14px 15px;
    }
}


.course-table-wrap {
    width: 100%;
    margin: 0 auto;
}

.course-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);

    font-size: 16px;
    line-height: 1.8;
}

/* 左側標題 */
.course-table th {
    padding: 18px 15px;

    background: var(--zhusha);
    color: #ffffff;

    font-weight: 600;
    text-align: center;
    vertical-align: middle;

    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.course-table th:first-child {
    width: 110px;
}
.course-table th:last-child {
    width: 110px;
    border-right: 0px;
}
.parents-table th:first-child {
    width: 110px;
}
.parents-table th:last-child {
    width: auto;
}

/* 右側內容 */
.course-table td {
    padding: 18px 15px;

    background: #ffffff;
    color: #333333;

    text-align: center;
    vertical-align: middle;

    border-right: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}
.course-table td:last-child {
    border-left: 0px;
}

/* 最後一行不要底線 */
.course-table tr:last-child td {
    border-bottom: none;
}

/* 第一格左上角 */
.course-table tr th:first-child {
    border-top-left-radius: 7px;
}

/* 最後格左下角 */
.course-table tr th:last-child {
    border-top-right-radius: 7px;
}

/* 最後格右上角 */
.course-table tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}

/* 最後格右下角 */
.course-table tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}


/* =========================
   Mobile
========================= */

@media (max-width: 767px) {

    .course-table {
        font-size: 15px;
        line-height: 1.7;
    }

    .course-table th {
        padding: 14px 8px;
    }

    .course-table td {
        padding: 14px 15px;
    }
}