/* ==========================================================================
   衛生福利部 國家數位健康互通性與效能認證實驗室 樣式表 (Pure CSS)
   ========================================================================== */

/* ----------- 1. 基礎 Reset 與 全局變數 ----------- */
:root {
  --font-base: 'Source Han Sans', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --color-primary: #022964;
  --color-primary-light: #464eb8;
  --color-accent: #6673ff;
  --color-accent-hover: #5563e6;
  --color-teal: #008381;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-gray: #555555;
  --color-bg-light: #f8f9fa;
  --color-border: #e0e0e0;
  --color-danger: #dc3545;
  --color-success: #28a745;

  --font-xs: 0.75rem;
  /* 12px */
  --font-sm: 0.875rem;
  /* 14px */
  --font-md: 1.125rem;
  /* 18px */
  --font-lg: 1.25rem;
  /* 20px */
  --font-xl: 1.5rem;
  /* 24px */
  --font-2xl: 1.75rem;
  /* 28px */
  --font-3xl: 2rem;
  /* 32px */
  --font-4xl: 2.5rem;
  /* 40px */
  --font-huge: 3.75rem;
  /* 60px */
  --font-mega: 4rem;
  /* 64px */
  --font-giga: 4.125rem;
  /* 66px */
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

html,
body {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

button,
input,
textarea,
select,
a {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  touch-action: manipulation;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----------- 2. Header 導覽列樣式 (桌機全導覽 + 手機快速選單) ----------- */
.standalone-navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container .logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-container .logo-link:hover {
  opacity: 0.85;
}

.logo-container img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
}

.logo-container .logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* 桌機版導覽列 */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: block;
}

.nav-link:hover {
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.08);
}

.nav-link.active {
  color: #022964;
  font-weight: 700;
  background-color: rgba(2, 41, 100, 0.08);
}

/* 手機漢堡切換按鈕 (精確置中) */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 6px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.mobile-menu-toggle:hover {
  background-color: #e2e8f0;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 22px;
  height: 2.5px;
  background-color: #0f172a;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -6.5px;
}

.hamburger-inner::after {
  bottom: -6.5px;
}

/* 漢堡開關動畫 */
.mobile-menu-toggle.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* 手機版頂部橫向快速滑動標籤列 */
.mobile-quick-nav {
  display: none;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-quick-nav::-webkit-scrollbar {
  display: none;
}

.mobile-quick-tabs-track {
  display: flex;
  gap: 8px;
  width: max-content;
}

.quick-tab-pill {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}

.quick-tab-pill:active {
  transform: scale(0.96);
}

.quick-tab-pill.active {
  background-color: #022964;
  color: #ffffff;
  border-color: #022964;
  box-shadow: 0 2px 6px rgba(2, 41, 100, 0.2);
}

/* 手機版抽屜式選單 (Mobile Drawer) */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer-overlay.active .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: #0f172a;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-drawer-close:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.mobile-drawer-links {
  list-style: none;
  padding: 16px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  text-decoration: none;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  background-color: #f0f9ff;
  border-color: #bae6fd;
}

.mobile-drawer-link.active {
  background-color: #eff6ff;
  border-color: #0284c7;
}

.drawer-link-num {
  font-size: 13px;
  font-weight: 800;
  color: #0284c7;
  background-color: #e0f2fe;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.drawer-link-text span {
  font-size: 12px;
  color: #64748b;
}

.mobile-drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.drawer-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background-color: #022964;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.drawer-download-btn:hover {
  background-color: #033a8c;
}

/* 錨點偏移設定 (避免 Sticky Header 遮蔽標題) */
#policy-concept,
#certification-tracks,
#tech-architecture,
#training-curriculum,
#lab-testing-section,
#download-section {
  scroll-margin-top: 76px;
}

/* 響應式切換 */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-quick-nav {
    display: block;
  }

  #policy-concept,
  #certification-tracks,
  #tech-architecture,
  #training-curriculum,
  #lab-testing-section,
  #download-section {
    scroll-margin-top: 118px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 10px 16px;
    min-height: 60px;
  }

  .logo-container .logo-link {
    gap: 8px;
  }

  .logo-container img {
    height: 34px;
    width: 34px;
    max-height: 10vw;
    object-fit: contain;
  }

  .logo-container .logo-text {
    font-size: 1rem;
  }
}



/* ----------- 3. CmioApply 頁面佈局與區塊 (Banner & Countdown) ----------- */
.all-courses-page {
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
}

.banner-area {
  position: relative;
  width: 100%;
  height: calc(100vh - 4.75rem);
  height: calc(var(--vh, 1vh) * 100 - 4.75rem);
  height: calc(100svh - 4.75rem);
  min-height: 35rem;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

@media (max-width: 1024px) {
  .banner-area {
    height: calc(100vh - 4.75rem);
    height: calc(var(--vh, 1vh) * 100 - 4.75rem);
    height: calc(100svh - 4.75rem);
    min-height: 30rem;
    background-position: left -18.75rem center;
  }
}

@media (max-width: 768px) {
  .banner-area {
    height: calc(100vh - 3.75rem);
    height: calc(var(--vh, 1vh) * 100 - 3.75rem);
    height: calc(100svh - 3.75rem);
    min-height: 25rem;
  }
}

.banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  padding-bottom: 0.125rem;
}

@media (max-width: 1024px) {
  .banner-video {
    object-position: -18.75rem center;
  }
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(2, 41, 100, 0) 0%,
      rgba(2, 41, 100, 0) 0%,
      rgba(2, 41, 100, 0.5) 70%,
      rgba(2, 41, 100, 1) 100%);
  pointer-events: none;
  z-index: 1;
}

.banner-container {
  position: relative;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-height: 100%;
  justify-content: flex-end;
  z-index: 2;
  background-image: url("../assets/countdown-left-bg.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  overflow-x: hidden;
  overflow-y: visible;
}

@media (max-width: 768px) {
  .banner-container {
    height: 100%;
    min-height: 100%;
    padding: 2rem 1rem 1rem 1rem;
  }
}

.banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  width: 100%;
  max-width: 67.5rem;
  margin: 0 auto;
}

.apply-time {
  color: var(--color-white);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  line-height: 150%;
  text-align: center;
  margin: 0 auto;
  font-size: var(--font-lg);
}

@media (max-width: 1024px) {
  .apply-time {
    font-size: var(--font-base);
  }
}

.banner-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 67.5rem;
  margin: 0 auto;
}

.banner-title {
  font-size: var(--font-huge);
  font-weight: 900;
  color: var(--color-white);
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 1024px) {
  .banner-title {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 700;
    font-size: var(--font-xl);
    letter-spacing: 0.03em;
  }
}

/* ----------- 4. 處長的話 (Quotes Section) ----------- */
.quotes-section {
  padding: 4.5rem 1.25rem;
  background: linear-gradient(135deg, #022154 0%, #010d24 100%);
  position: relative;
  overflow: hidden;
}

.quotes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../assets/countdown-left-bg.webp") no-repeat center / cover;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

@media (max-width: 768px) {
  .quotes-section {
    padding: 2.5rem 1rem;
  }
}

.quotes-container {
  max-width: 75rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quotes-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .quotes-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.quote-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 1.5rem 0;
  color: #f1f5f9;
  position: relative;
  box-shadow: none;
  border: none;
}

.person-photo {
  width: 12.5rem;
  height: 12.5rem;
  border-radius: 50%;
  border: 4px solid #60a5fa;
  margin-top: -6rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .person-photo {
    width: 7.5rem;
    height: 7.5rem;
    margin: 0;
    border-width: 3px;
    grid-area: photo;
  }
}

.quote-text {
  position: relative;
  margin-top: 0;
  color: #e2e8f0;
  font-size: 1.0625rem;
  line-height: 1.9;
  padding: 1.5rem 3.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* 內文滾動條美化 (深色高質感) */
.quote-text::-webkit-scrollbar {
  width: 4px;
}

.quote-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.quote-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.quote-text::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

@media (max-width: 768px) {
  .quote-text {
    padding: 1rem 0.5rem;
    font-size: 0.95rem;
    max-height: 65vh;
  }
}

.quote-html p {
  margin-bottom: 1.35rem;
  text-align: justify;
  color: #f1f5f9;
}

.quote-html strong {
  color: #60a5fa;
  font-weight: 700;
}

.quote-bullet-list {
  margin: 0.75rem 0 1.5rem 1.5rem;
  list-style-type: disc;
}

.quote-bullet-list li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
  line-height: 1.7;
}

/* ----------- 5. 四大領域學程 (Three Domains / 三大認證賽道) ----------- */
.four-domains-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.25rem;
  background-color: #f0f4f8;
}

@media (max-width: 768px) {
  .four-domains-section {
    padding: 2.5rem 1rem;
  }
}

.domains-container {
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
}

.domains-title {
  color: #022964;
  font-size: var(--font-4xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .domains-title {
    font-size: var(--font-xl);
    margin-bottom: 1.25rem;
  }
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .domains-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.domain-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 240px;
  background-color: #022964;
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.domain-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.domain-overlay {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(2, 41, 100, 0.78) 0%, rgba(2, 41, 100, 0.94) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.domain-title {
  color: var(--color-white);
  font-size: var(--font-lg);
  font-weight: 700;
  text-align: center;
  width: 100%;
  margin-bottom: 0.75rem;
}

.domain-desc {
  color: var(--color-white);
  font-weight: 400;
  font-size: var(--font-sm);
  line-height: 1.6;
  text-align: center;
  opacity: 1;
  max-height: none;
  overflow: visible;
}

.domain-desc strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .domain-card {
    min-height: auto;
    height: auto;
    background: #022964;
  }

  .domain-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    opacity: 0.22;
    object-fit: cover;
  }

  .domain-overlay {
    position: relative;
    inset: auto;
    padding: 0.85rem 1rem;
    height: auto;
    min-height: auto;
    background: transparent;
  }

  .domain-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
  }

  .domain-desc {
    font-size: 0.875rem;
    line-height: 1.45;
  }
}

/* ----------- 6. 認證賽道詳細說明 (Experts Section) ----------- */
.experts-section {
  padding: 4rem 1.25rem;
  background-color: #f0f4f8;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .experts-section {
    padding: 2.5rem 1rem;
  }
}

.experts-container {
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .experts-section {
    padding: 3rem 1rem;
  }

  .experts-grid {
    grid-template-columns: 1fr;
  }
}

.expert-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(247, 249, 254, 0.96) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.expert-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(2, 41, 100, 0.1);
  padding-bottom: 0.85rem;
}

.expert-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #022964 0%, #464eb8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 41, 100, 0.2);
  flex-shrink: 0;
}

.expert-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.expert-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #022964;
  margin: 0;
  line-height: 1.3;
}

.expert-intro {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
  height: 50vh;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 0.35rem;
}

@media (max-width: 768px) {
  .expert-intro {
    height: 45vh;
    max-height: 45vh;
  }
}

/* Scrollbar for expert-intro */
.expert-intro::-webkit-scrollbar {
  width: 6px;
}

.expert-intro::-webkit-scrollbar-track {
  background: rgba(2, 41, 100, 0.05);
  border-radius: 3px;
}

.expert-intro::-webkit-scrollbar-thumb {
  background: rgba(2, 41, 100, 0.3);
  border-radius: 3px;
}

.expert-intro::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 41, 100, 0.5);
}

.expert-intro p {
  margin-bottom: 0.85rem;
}

.expert-bullet-list {
  margin: 0.25rem 0 0.85rem 1.25rem;
  list-style-type: disc;
}

.expert-bullet-list li {
  margin-bottom: 0.25rem;
  color: #444444;
}

/* ----------- 7. 軟體認證：從技術合規到真實世界落地 ----------- */
.software-flow-section {
  padding: 4rem 1.25rem;
  background-color: #022964;
}

@media (max-width: 768px) {
  .software-flow-section {
    padding: 2.5rem 1rem;
  }
}

.software-flow-container {
  max-width: 75rem;
  margin: 0 auto;
}

.section-main-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .section-main-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.flow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .flow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .flow-steps-grid {
    grid-template-columns: 1fr;
  }
}

.flow-step-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 252, 0.98) 100%);
  border-radius: 0.75rem;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.step-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #464eb8 0%, #022964 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(2, 41, 100, 0.3);
}

.flow-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #022964;
  margin-bottom: 0.75rem;
}

.flow-step-desc {
  font-size: 0.9375rem;
  color: #444444;
  line-height: 1.6;
}

.flow-step-desc strong {
  color: #022964;
  font-weight: 700;
}

/* ----------- 8. 軟硬整合：免費授權與效能認證 ----------- */
.puzzle-section {
  padding: 4rem 1.25rem;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .puzzle-section {
    padding: 2.5rem 1rem;
  }
}

.puzzle-section .section-main-title {
  color: #022964;
}

.puzzle-container {
  max-width: 75rem;
  margin: 0 auto;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .puzzle-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.puzzle-card {
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.puzzle-card-software {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.96) 0%, rgba(186, 230, 253, 0.96) 100%);
  border: 2px solid #38bdf8;
}

.puzzle-card-hardware {
  background: linear-gradient(135deg, rgba(254, 237, 232, 0.96) 0%, rgba(254, 215, 202, 0.96) 100%);
  border: 2px solid #fb923c;
}

.puzzle-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #022964;
}

.puzzle-card-highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 0.25rem;
}

.puzzle-card-hardware .puzzle-card-highlight {
  color: #c2410c;
}

.puzzle-card-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
}

/* ----------- 9. 效能革命：為何需要國家級 FHIR Box？ ----------- */
.compare-section {
  padding: 4rem 1.25rem;
  background-color: #022964;
}

@media (max-width: 768px) {
  .compare-section {
    padding: 2.5rem 1rem;
  }
}

.compare-container {
  max-width: 75rem;
  margin: 0 auto;
}

.compare-table-wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.compare-table th {
  font-size: 1.125rem;
  font-weight: 800;
}

.compare-table th.col-item {
  background: #f1f5f9;
  color: #334155;
  width: 20%;
}

.compare-table th.col-traditional {
  background: #e2e8f0;
  color: #475569;
  width: 40%;
}

.compare-table th.col-national {
  background: linear-gradient(135deg, #022964 0%, #464eb8 100%);
  color: #ffffff;
  width: 40%;
}

.compare-table td.cell-item {
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
}

.compare-table td.cell-traditional {
  color: #64748b;
  background: #ffffff;
}

.compare-table td.cell-national {
  color: #022964;
  font-weight: 700;
  background: #f0f9ff;
}

@media (max-width: 768px) {

  .compare-table th,
  .compare-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ----------- 10. TSP 認證制度：量身打造的導入服務 ----------- */
.tsp-pyramid-section {
  padding: 4rem 1.25rem;
  background-color: #f0f4f8;
}

@media (max-width: 768px) {
  .tsp-pyramid-section {
    padding: 2.5rem 1rem;
  }
}

.tsp-pyramid-section .section-main-title {
  color: #022964;
}

.tsp-pyramid-container {
  max-width: 75rem;
  margin: 0 auto;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #475569;
  text-align: center;
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.pyramid-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

.pyramid-tier {
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.pyramid-tier:hover {
  transform: translateY(-2px);
}

.tier-top {
  width: 70%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 6px solid #1976d2;
}

.tier-mid {
  width: 85%;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 6px solid #f57c00;
}

.tier-base {
  width: 100%;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 6px solid #388e3c;
}

@media (max-width: 768px) {

  .pyramid-tier,
  .tier-top,
  .tier-mid,
  .tier-base {
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 0.75rem;
  }
}

.tier-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tier-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tier-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #022964;
}

.tier-desc {
  font-size: 0.9375rem;
  color: #333333;
  line-height: 1.5;
}

/* ----------- 11. 認證課程內容全新佈局 (Plan Section with tree.webp) ----------- */
.plan-section {
  margin-top: 3rem;
  padding: 3.5rem 1.25rem;
}

.plan-container-redesign {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.plan-main-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  margin-top: -1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .plan-section {
    padding: 2rem 1rem;
    margin-top: 1rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .plan-container-redesign {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    gap: 1.5rem;
  }
}

/* ----------- 11.1 FHIR Box 10 大技術授權生態樹 (Tree Layout) ----------- */
.tree-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 255, 0.98) 100%);
  border-radius: 1.25rem;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 56% 44%;
  gap: 2.25rem;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.85);
  scroll-margin-top: 100px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .tree-hero-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.75rem;
  }
}

.tree-hero-card.tree-highlight-focus {
  animation: treePulse 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes treePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6), 0 16px 40px rgba(0, 0, 0, 0.16);
  }

  40% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.35), 0 20px 48px rgba(37, 99, 235, 0.25);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 16px 40px rgba(0, 0, 0, 0.16);
  }
}

.tree-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tree-card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(135deg, #022964 0%, #1e40af 100%);
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(2, 41, 100, 0.25);
}

.tree-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #022964;
  line-height: 1.35;
  margin: 0;
}


}

.tree-card-desc {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

.license-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.license-tag {
  background: linear-gradient(135deg, #032d6c 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(2, 41, 100, 0.22);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: inherit;
}

.license-tag:hover {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}

.license-tag:active {
  transform: translateY(0) scale(0.98);
}

.license-tag .tag-code {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tree-hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tree-image {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(2, 41, 100, 0.12);
  border: 1px solid rgba(2, 41, 100, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tree-image:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 36px rgba(2, 41, 100, 0.18);
}

@media (max-width: 768px) {
  .tree-hero-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    gap: 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tree-hero-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .tree-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .tree-card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .license-tags-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    margin: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .license-tags-grid::-webkit-scrollbar {
    display: none;
  }

  .license-tag {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    scroll-snap-align: start;
  }

  .tree-hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .tree-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }
}

/* ----------- 11.2 FHIR Box 四大專業能力領域與 10 大核心認證學程矩陣 ----------- */
.curriculum-matrix-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  scroll-margin-top: 100px;
}

@media (max-width: 992px) {
  .curriculum-matrix-card {
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

.curriculum-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(2, 41, 100, 0.12);
}

@media (max-width: 992px) {
  .curriculum-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.curriculum-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.curriculum-badge-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(135deg, #022964 0%, #1e40af 100%);
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(2, 41, 100, 0.25);
}

.curriculum-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #022964;
  line-height: 1.35;
  margin: 0;
}


}

.curriculum-card-desc {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

.curriculum-stats-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #022964 0%, #03429c 100%);
  padding: 1.25rem 1.75rem;
  border-radius: 1rem;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 41, 100, 0.25);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .curriculum-stats-banner {
    width: 100%;
    justify-content: space-around;
    padding: 1rem;
    gap: 0.5rem;
  }
}

.curr-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.curr-stat-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: #60a5fa;
  font-family: inherit;
}

.curr-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.35rem;
  white-space: nowrap;
}

.curr-stat-divider {
  width: 1px;
  height: 2.2rem;
  background: rgba(255, 255, 255, 0.25);
}

/* 四大領域網格容器 (2 欄佈局) */
.domains-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .domains-matrix-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.domain-block {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.domain-block:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.domain-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

.domain-badge-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.domain-id-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.domain-block-a .domain-id-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.domain-block-b .domain-id-badge {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.domain-block-c .domain-id-badge {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.domain-block-d .domain-id-badge {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.domain-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.domain-name-zh {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.domain-name-en {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.domain-course-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #022964;
  background: #f0f4ff;
  padding: 0.3rem 0.65rem;
  border-radius: 1rem;
  white-space: nowrap;
}

/* 課程清單卡片 */
.domain-courses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  scroll-margin-top: 110px;
}

.course-item-card:hover,
.course-item-card:focus-visible {
  background: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.course-item-card.highlight-focus {
  animation: cardHighlightPulse 2.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 12px 28px rgba(37, 99, 235, 0.22) !important;
  background: #ffffff !important;
}

@keyframes cardHighlightPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }

  25% {
    transform: scale(1.025);
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.4), 0 14px 32px rgba(37, 99, 235, 0.25);
  }

  50% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 12px 28px rgba(37, 99, 235, 0.22);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
  }
}

.course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-seq-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
}

.course-hours-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
}

.course-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s ease;
}

.course-item-card:hover .course-item-title {
  color: #1d4ed8;
}

.course-item-summary {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
}

.back-to-tree-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  font-family: inherit;
  outline: none;
}

.back-to-tree-btn:hover {
  background: #e2e8f0;
  color: #022964;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.view-syllabus-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  transition: gap 0.2s ease, color 0.2s ease;
}

.course-item-card:hover .view-syllabus-btn {
  color: #1d4ed8;
  gap: 0.55rem;
}

@media (max-width: 768px) {
  .curriculum-matrix-card {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .curriculum-hero-header {
    padding-bottom: 1.25rem;
    gap: 1rem;
  }

  .curriculum-stats-banner {
    width: 100%;
    padding: 0.85rem 0.5rem;
    border-radius: 0.75rem;
    box-sizing: border-box;
  }

  .curr-stat-num {
    font-size: 1.5rem;
  }

  .curr-stat-label {
    font-size: 0.7rem;
    margin-top: 0.2rem;
  }

  .curr-stat-divider {
    height: 1.6rem;
  }

  .domains-matrix-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
  }

  .domain-block {
    padding: 1.15rem 1rem;
    border-radius: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .domain-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
  }

  .domain-badge-title-wrap {
    width: 100%;
    align-items: center;
    gap: 0.65rem;
  }

  .domain-id-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .domain-title-group {
    flex: 1;
    min-width: 0;
  }

  .domain-name-zh {
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .domain-name-en {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .domain-course-count {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
  }

  .domain-courses-list {
    gap: 0.75rem;
  }

  .course-item-card {
    padding: 1rem;
    border-radius: 0.65rem;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .course-item-title {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .course-item-summary {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .course-card-footer {
    margin-top: 0.25rem;
    padding-top: 0.4rem;
  }

  .back-to-tree-btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .view-syllabus-btn {
    font-size: 0.75rem;
  }
}

/* ----------- 11.3 TSP 廠商三階認證區塊 (Partner Tiers) ----------- */
.sub-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
}

.tsp-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .tsp-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.tier-card {
  background: #ffffff;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
}

.tier-card-header {
  padding: 1.25rem 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tier-card-1 .tier-card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

.tier-card-2 .tier-card-header {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
}

.tier-card-3 .tier-card-header {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

.tier-badge {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.tier-card-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.tier-score {
  font-size: 0.875rem;
  opacity: 0.95;
  font-weight: 600;
}

.tier-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.6;
}

/* 4 階段培訓流程 (Training Stages) */
.training-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .training-stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .training-stages-grid {
    grid-template-columns: 1fr;
  }
}

.stage-step-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.stage-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: #022964;
  line-height: 1;
}

.stage-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #022964;
}

.stage-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

/* 年度展延與退場機制 (Annual Renewal Card) */
.annual-renewal-card {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.96) 0%, rgba(253, 230, 138, 0.96) 100%);
  border: 2px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.renewal-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #92400e;
}

.renewal-text {
  font-size: 0.9375rem;
  color: #78350f;
  line-height: 1.75;
}

/* ----------- 12. 下載專區 (Download Section) ----------- */
.download-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 4rem 1.25rem;
  background-color: #f0f4f8;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .download-section {
    padding: 2.5rem 1rem;
  }
}

.download-container {
  max-width: 62.5rem;
  width: 100%;
  margin: 0 auto;
}

.download-title {
  font-size: var(--font-4xl);
  font-weight: 700;
  color: #022964;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .download-title {
    font-size: var(--font-xl);
  }
}

.download-table {
  background-color: var(--color-bg-light);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.download-header {
  display: flex;
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
}

@media (max-width: 768px) {
  .download-header {
    display: none;
  }
}

.download-row {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.download-row:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .download-row {
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background-color: white;
  }
}

.download-col {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
}

.download-col:nth-child(1) {
  flex: 2;
  font-weight: 500;
}

.download-col:nth-child(2) {
  flex: 3;
}

.download-col:nth-child(3) {
  flex: 1;
  justify-content: center;
}

@media (max-width: 768px) {
  .download-col {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .download-col:last-child {
    border-bottom: none;
  }

  .download-col:nth-child(3) {
    justify-content: flex-start;
    padding-top: 0.75rem;
  }
}

.download-link {
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--color-accent);
  border-radius: 86.45px;
  transition: background-color 0.3s ease;
  font-size: var(--font-sm);
  font-weight: 500;
}

.download-link:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

.download-icon {
  width: 1.25rem;
  height: 1.25rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>') no-repeat center;
  background-size: contain;
}

/* ----------- 13.1 Video Modal 彈出視窗樣式 ----------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #000;
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.modal-person-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.person-details h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #022964;
}

.person-details p {
  margin: 4px 0 0 0;
  font-size: 0.875rem;
  color: #666;
}

.modal-body {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  background: #000;
}

.modal-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ----------- 13.2 課程詳細課綱 Modal 樣式 (Course Syllabus Modal) ----------- */
.course-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 41, 100, 0.65);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.course-modal-overlay.active {
  display: flex;
}

.course-modal-dialog {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: courseModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes courseModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.course-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.course-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.course-modal-header {
  padding: 2rem 2.25rem 1.5rem;
  background: linear-gradient(135deg, #022964 0%, #0a3d8f 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 768px) {
  .course-modal-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }
}

.course-modal-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.course-modal-domain-badge {
  background: #60a5fa;
  color: #022964;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  letter-spacing: 0.05em;
}

.course-modal-hours-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.course-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 768px) {
  .course-modal-title {
    font-size: 1.25rem;
    padding-right: 2rem;
  }
}

.course-modal-domain-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.course-modal-body {
  padding: 1.75rem 2.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

@media (max-width: 768px) {
  .course-modal-body {
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

.course-modal-desc-box {
  background: #f8fafc;
  border-left: 4px solid #022964;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.course-desc-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #022964;
  margin: 0 0 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.course-desc-content {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

.course-syllabus-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.course-syllabus-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-lessons-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.syllabus-lesson-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.85rem 1.15rem;
  transition: all 0.2s ease;
}

.syllabus-lesson-row:hover {
  border-color: #93c5fd;
  background: #f0f7ff;
  transform: translateX(4px);
}

.lesson-num-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #022964;
  background: #e0edff;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
}

.lesson-duration-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-modal-footer {
  padding: 1.25rem 2.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .course-modal-footer {
    padding: 1rem 1.25rem;
  }
}

.course-modal-btn-close {
  background: #022964;
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.course-modal-btn-close:hover {
  background: #0a3d8f;
  transform: translateY(-1px);
}

/* ----------- 14. Footer 頁尾樣式 (精準對齊截圖) ----------- */
.footer {
  background-color: #022964;
  color: white;
  padding: 48px 24px 32px;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-section {
  margin-bottom: 16px;
}

.footer-top-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-column {
  display: flex;
  align-items: center;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
  opacity: 0.85;
}

.footer-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
}

.footer-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.social-column {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-circle-list {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #001f54;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.social-circle-btn:hover {
  transform: scale(1.08);
  background-color: #f1f5f9;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 20px 0 32px;
}

.footer-main-content {
  margin-bottom: 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.footer-column-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  white-space: nowrap;
}

.footer-column-title a {
  color: #ffffff;
  text-decoration: none;
}

.footer-column-title a:hover {
  text-decoration: underline;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 左下角 支援表單 Pill 按鈕與聯絡資訊 */
.footer-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
  align-items: flex-start;
}

.footer-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.footer-support-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  text-decoration: none;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.contact-line svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 24px;
}

.footer-logo-mobile {
  display: none;
}

.mobile-menu-section {
  display: none;
}

.mobile-contact-section {
  display: none;
  padding: 24px 0 16px;
  text-align: center;
}

.mobile-contact-list {
  margin-top: 16px;
  align-items: center;
}

/* RWD 手機版樣式 */
@media (max-width: 768px) {
  .footer {
    padding: 32px 16px 24px;
  }

  .footer-top-section,
  .footer-divider,
  .footer-main-content,
  .footer-bottom-info {
    display: none;
  }

  .mobile-menu-section {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-menu-header,
  .mobile-menu-header-static {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    padding: 0 8px;
    cursor: pointer;
  }

  .mobile-menu-header span,
  .mobile-menu-header-static span {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
  }

  .mobile-menu-header-static a {
    color: #ffffff;
    text-decoration: none;
  }

  .mobile-menu-content {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 16px;
    display: none;
  }

  .mobile-menu-content.open {
    display: block;
  }

  .mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-menu-content li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-decoration: none;
  }

  .mobile-contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-logo-mobile {
    display: block;
    margin-top: 16px;
  }

  .footer-logo-mobile .footer-logo-link {
    gap: 8px;
  }

  .footer-logo-mobile .footer-logo {
    height: 34px;
    width: 34px;
    object-fit: contain;
  }

  .footer-logo-mobile .footer-logo-text {
    font-size: 1rem;
    color: #ffffff;
  }
}

/* ----------- 國家實驗室檢測規範、驗測項目與費用規劃專區樣式 ----------- */
.lab-testing-section {
  background-color: #022964;
  padding: 80px 24px;
  color: #ffffff;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lab-testing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Header */
.lab-section-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.lab-badge {
  display: inline-block;
  background-color: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.lab-main-title {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 12px;
}

.lab-main-subtitle {
  font-size: var(--font-md);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* Block Common */
.lab-principles-block,
.lab-software-block,
.lab-hardware-block,
.lab-scenarios-block,
.lab-pricing-block {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 40px;
  color: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  border: 1px solid #e2e8f0;
}

.lab-block-header {
  margin-bottom: 28px;
}

.lab-block-tag {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.lab-block-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.lab-block-desc {
  font-size: var(--font-sm);
  color: #475569;
  line-height: 1.6;
}

/* 0. 六大認證原則 Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principle-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.principle-item:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
}

.principle-badge-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.principle-num {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background-color: #022964;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principle-name {
  font-size: var(--font-md);
  font-weight: 700;
  color: #0f172a;
}

.principle-content {
  font-size: var(--font-sm);
  color: #475569;
  line-height: 1.6;
}

.principle-content strong {
  color: #0f172a;
}

/* 1. 軟體驗證區塊 */
.software-track-matrix {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.software-meta-banner {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: var(--font-xs);
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
}

.meta-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.software-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.software-detail-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px;
}

.software-card-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.software-card-title svg {
  color: #0284c7;
}

.software-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.software-check-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--font-sm);
  line-height: 1.6;
  color: #475569;
}

.software-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0284c7;
  font-weight: 800;
}

.software-check-list strong {
  color: #0f172a;
}

.sop-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sop-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #ffffff;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.sop-step-tag {
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.sop-step-row p {
  font-size: var(--font-xs);
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

/* 2. 硬體效能驗證基準表格 (Benchmark Table) */
.benchmark-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 24px;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--font-sm);
  background-color: #ffffff;
}

.benchmark-table thead {
  background-color: #022964;
  color: #ffffff;
}

.benchmark-table th {
  padding: 14px 18px;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.benchmark-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}

.benchmark-table tbody tr:last-child {
  border-bottom: none;
}

.benchmark-table tbody tr:hover {
  background-color: #f8fafc;
}

.benchmark-table td {
  padding: 14px 18px;
  vertical-align: middle;
}

.cell-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ind-badge {
  font-size: 11px;
  font-weight: 700;
  background-color: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}

.cell-standard {
  white-space: nowrap;
}

.benchmark-val {
  display: inline-block;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #f1f5f9;
  color: #0f172a;
}

.benchmark-val.highlight-green {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.benchmark-val.highlight-blue {
  background-color: #eff6ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.cell-description {
  color: #475569;
  line-height: 1.5;
}

/* 邊界規格與病歷規模 Banner */
.hardware-scale-banner {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.scale-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scale-label {
  font-size: var(--font-xs);
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.scale-val {
  font-size: var(--font-md);
  font-weight: 800;
  color: #0f172a;
}

.scale-divider {
  width: 1px;
  height: 40px;
  background-color: #cbd5e1;
}

.scale-pills-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scale-pill {
  font-size: 13px;
  font-weight: 700;
  color: #022964;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 3. 8 大驗測情境 Grid */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.scenario-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
}

.scenario-card-featured {
  background-color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.scenario-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.scenario-badge {
  background-color: #022964;
  color: #ffffff;
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.scenario-card-featured .scenario-badge {
  background-color: #0284c7;
}

.scenario-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.scenario-card-body {
  font-size: var(--font-sm);
  color: #334155;
}

.scenario-note {
  font-size: var(--font-xs);
  color: #0369a1;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.scenario-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-checklist li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
  color: #475569;
}

.scenario-checklist li::before {
  content: "•";
  color: #0284c7;
  font-weight: 700;
  font-size: 16px;
  position: absolute;
  left: 4px;
  top: -2px;
}

.scenario-checklist code {
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
}

/* 4. 費用矩陣 Grid */
.pricing-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pricing-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.pricing-card-type {
  font-size: var(--font-sm);
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
}

.pricing-card-figure {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.pricing-card-figure .currency {
  font-size: var(--font-xs);
  font-weight: 700;
  color: #64748b;
}

.pricing-card-figure .amount {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.pricing-card-figure .unit {
  font-size: var(--font-xs);
  color: #64748b;
}

.pricing-card-detail {
  font-size: var(--font-xs);
  color: #475569;
  line-height: 1.5;
  border-top: 1px dashed #cbd5e1;
  padding-top: 12px;
}

.pricing-card-detail strong {
  color: #0f172a;
}

.pricing-card-total {
  background-color: #f0f9ff;
  border-color: #bae6fd;
}

.pricing-card-total .pricing-card-type {
  color: #0369a1;
}

.pricing-card-total .amount {
  color: #0284c7;
}

.pricing-card-highlight {
  background-color: #0f172a;
  border-color: #1e293b;
  color: #ffffff;
}

.pricing-card-highlight .pricing-card-type {
  color: #38bdf8;
}

.pricing-card-highlight .currency,
.pricing-card-highlight .unit {
  color: #94a3b8;
}

.pricing-card-highlight .amount {
  color: #ffffff;
}

.pricing-card-highlight .pricing-card-detail {
  color: #cbd5e1;
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* 醫院裝機回饋 Banner */
.hospital-rebate-banner {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.rebate-icon-box {
  background-color: #059669;
  color: #ffffff;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rebate-info {
  flex: 1;
}

.rebate-badge {
  display: inline-block;
  background-color: #d1fae5;
  color: #047857;
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.rebate-title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: #065f46;
  margin-bottom: 6px;
}

.rebate-desc {
  font-size: var(--font-sm);
  color: #047857;
  line-height: 1.6;
}

.rebate-desc strong {
  color: #064e3b;
  font-weight: 700;
}

/* 響應式佈局 */
@media (max-width: 1024px) {
  .pricing-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .software-details-grid {
    grid-template-columns: 1fr;
  }

  .software-meta-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lab-testing-section {
    padding: 48px 16px;
  }

  .lab-testing-container {
    gap: 36px;
  }

  .lab-principles-block,
  .lab-software-block,
  .lab-hardware-block,
  .lab-pricing-block,
  .lab-scenarios-block {
    padding: 24px 16px;
  }

  .hardware-scale-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .scale-divider {
    display: none;
  }

  .pricing-matrix-grid {
    grid-template-columns: 1fr;
  }

  .scenarios-grid {
    grid-template-columns: 1fr;
  }

  .hospital-rebate-banner {
    flex-direction: column;
    gap: 14px;
  }

  .lab-main-title {
    font-size: var(--font-2xl);
  }

  .lab-block-title {
    font-size: var(--font-xl);
  }
}


