@charset "UTF-8";
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .container {
    width: 1000px;
  }
}
@media (min-width: 577px) and (max-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (max-width: 576px) {
  .container {
    width: 100%;
  }
}

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

html {
  scrollbar-gutter: stable;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background-color: #F5F7FA;
  color: #1A1C1E;
  font-size: 16px;
  line-height: 1.5;
}
body.is-mobile-nav-open, body.is-mobile-search-open {
  overflow: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  margin: 0;
}

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

.header {
  background-color: #00a7db;
  position: sticky;
  top: 0;
  z-index: 1300;
}
.header .logo img {
  height: 26px;
  width: auto;
  display: block;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header-inner .logo {
  flex: 0 0 auto;
}
@media (max-width: 1024px) {
  .header-inner {
    display: block;
    padding: 0;
  }
  .header-inner .logo {
    display: none;
  }
}

.nav {
  flex: 1 1 auto;
  margin-left: 16px;
}
.nav > ul {
  display: flex;
  justify-content: space-evenly;
}
.nav > ul > li > a {
  display: block;
  color: #fff;
  padding: 12px 18px;
  font-size: 18px;
  transition: 0.15s;
  border-radius: 2px;
}
.nav > ul > li:hover > a, .nav > ul > li.has-mega.is-open > a {
  background: #a7db00;
  color: #ffffff;
}
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 56px 16px 24px;
    z-index: 1201;
    transition: left 0.2s ease-out;
    margin-left: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .is-mobile-nav-open .nav {
    left: 0;
  }
  .nav .mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #ffffff;
    color: #00a7db;
    border: 2px solid #ffffff;
  }
  .nav::before {
    content: "選單";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 53px;
    background: #00a7db;
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 16px;
    font-weight: 500;
    font-size: 18px;
  }
  .nav > ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0px;
    max-width: 600px;
    margin: 0 auto;
  }
  .nav > ul > li > a {
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
  }
  .nav > ul > li > a::after {
    content: "+";
    font-size: 18px;
  }
  .nav > ul > li.mobile-open > a::after {
    content: "−";
  }
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}
.nav ul li.has-mega.is-open > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (max-width: 1024px) {
  .mega-menu {
    position: static;
    box-shadow: none;
    padding: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: #f9f9f9;
  }
  .nav > ul > li.mobile-open > .mega-menu {
    display: block;
  }
}

.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}
@media (max-width: 1024px) {
  .mega-inner {
    flex-direction: column;
  }
}

.mega-left {
  width: 180px;
  padding: 0;
  position: relative;
}
.mega-left::after {
  content: "";
  position: absolute;
  top: -16px;
  bottom: -16px;
  right: 0;
  width: 1px;
  background-color: #cecece;
}
.mega-left a {
  display: block;
  padding: 8px 16px;
}
.mega-left a.active {
  background: #f3f3f3;
}
@media (max-width: 1024px) {
  .mega-left::after {
    content: none;
  }
  .mega-left {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    border: none;
    gap: 8px;
    padding: 12px;
  }
  .mega-left a {
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 4px 12px;
    font-size: 14px;
  }
  .mega-left a.active {
    background: #00a7db;
    color: #fff;
  }
}

.mega-right-panel {
  flex: 1;
  display: none;
}
.mega-right-panel.is-active {
  display: flex;
  gap: 40px;
}
.mega-right-panel .mega-col a {
  display: block;
  line-height: 20px;
  padding: 6px 24px 6px 24px;
  color: #333333;
  transition: color 0.18s ease, background-color 0.18s ease;
  border-radius: 4px;
}
.mega-right-panel .mega-col a:hover, .mega-right-panel .mega-col a:focus, .mega-right-panel .mega-col a:focus-visible {
  color: #169bd5;
  background-color: #f3f3f3;
  outline: none;
}
.mega-right-panel .mega-col a:hover::before, .mega-right-panel .mega-col a:focus::before, .mega-right-panel .mega-col a:focus-visible::before {
  color: #169bd5;
}
@media (max-width: 1024px) {
  .mega-right-panel {
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background-color: #ffffff;
    margin: 0 10px 10px 10px;
    border-radius: 8px;
  }
  .mega-right-panel .mega-col a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }
}

.mega-right-panel.is-active {
  gap: 0px;
}

.mobile-header {
  display: none;
}
@media (max-width: 1024px) {
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
  }
}
.mobile-header .mobile-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.mobile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

@media (max-width: 1024px) {
  .is-mobile-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1100;
  }
}

.search-bar {
  display: flex;
  margin-left: 16px;
  flex: 0 0 300px;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #00a7db;
    margin-left: 0;
    padding: 8px 12px;
    transform: translateY(-100%);
    transition: 0.2s;
    z-index: 1300;
    justify-content: center;
  }
  .is-mobile-search-open .search-bar {
    transform: translateY(0);
  }
}

.search-wrapper {
  display: flex;
  background: #fff;
  border-radius: 25px;
  flex: 1;
  overflow: visible;
}
@media (max-width: 1024px) {
  .search-wrapper {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
}

/* 左側下拉分類 */
.search-select {
  position: relative;
  display: flex;
  align-items: stretch;
}

.search-select-toggle {
  border: none;
  border-right: 1px solid #e0e0e0;
  padding: 8px 12px 8px 20px;
  font-size: 14px;
  background-color: #ffffff;
  color: #555555;
  min-width: 72px;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 25px 0 0 25px;
}

.search-select-toggle i {
  font-size: 16px;
}

.search-select-label {
  white-space: nowrap;
}

/* 下拉清單 */
.search-select-menu {
  position: absolute;
  left: 0;
  top: 110%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 110px;
  display: none;
  z-index: 1500;
}

.search-select-menu li {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  color: #333333;
}

.search-select-menu li:hover,
.search-select-menu li.active {
  background-color: #1774e6;
  color: #ffffff;
}

.search-select.open .search-select-menu {
  display: block;
}

/* 關鍵字輸入框 */
.search-input {
  border: none;
  padding: 8px 12px;
  outline: none;
  flex: 1 1 auto;
  border-radius: 0;
  flex-grow: 1;
  min-width: 0;
  height: 36px;
}

/* 搜尋按鈕（右邊橘色） */
.search-button {
  border-radius: 0 25px 25px 0;
  background: #ffb019;
  border: none;
  color: #fff;
  padding: 0 15px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 手機專用 X 按鈕（關閉搜尋列） */
.mobile-nav-close,
.search-close-btn {
  display: none;
}
@media (max-width: 1024px) {
  .mobile-nav-close,
  .search-close-btn {
    display: flex;
  }
}

@media (min-width: 1025px) {
  body {
    position: relative;
  }
  .header-inner {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
  }
  .nav {
    align-items: stretch;
  }
  .nav > ul {
    height: 100%;
    align-items: stretch;
    display: flex;
  }
  .nav > ul > li > a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-radius: 2px;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 998;
  }
  body:has(.nav ul li.has-mega.is-open)::before {
    opacity: 1;
  }
}
/* 針對下拉選單右側的所有連結 */
.mega-right-panel a {
  /* 讓符號與文字對齊 */
  display: flex;
  align-items: center;
}

.mega-right-panel a::before {
  content: "❯";
  /* 加入符號 */
  margin-right: 8px;
  /* 符號與文字的間距 */
  /* 樣式微調，讓它看起來跟側邊欄一致 */
  font-family: Arial, sans-serif;
  font-size: 12px;
  /* 大小 */
  font-weight: 500;
  /* 加粗 */
  color: #9ca3af;
  /* 灰色 (可依需求改成你的主色 #169bd5) */
  transition: color 0.2s;
  /* Hover 變色效果 */
  /* ★★★ 新增這兩行來微調位置 ★★★ */
  position: relative;
  top: -1px;
  /* 負值往上，正值往下。試試看 -1px 或 -2px */
}

/* 滑鼠移過去時，符號跟著變色 */
.mega-right-panel a:hover::before {
  color: #169bd5;
  /* 你的網站主色 (藍色) */
}

.footer {
  background-color: #7f7f7f;
  color: #fff;
  margin-top: 40px;
}
.footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  line-height: 1.7;
}
.footer .footer-inner p {
  margin: 5px 0;
}

.catalog-single {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .catalog-single {
    grid-template-columns: 250px 1fr;
  }
}

/* =========================================
   1. 版面佈局 (通用)
   ========================================= */
.page-wrap {
  max-width: 1200px;
  margin: 40px auto 32px;
  padding: 0 12px;
}

.catalog-single {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .catalog-single {
    grid-template-columns: 250px 1fr;
  }
}

/* =========================================
   2. 左側邊欄樣式
   ========================================= */
.side-catalog {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
@media (max-width: 1023.98px) {
  .side-catalog {
    display: none;
  }
}
.side-catalog h2 {
  margin: 0;
  padding: 12px 16px;
  background: #4ac4cb;
  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-catalog ul {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}
.side-catalog li {
  padding: 0 12px;
}
.side-catalog li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.side-catalog li a .arrow {
  color: #cbcbcb;
  font-size: 0.8em;
  width: 18px;
  text-align: center;
}
.side-catalog li a:hover {
  background-color: #f3f4f6;
  color: #111827;
}
.side-catalog li a.active {
  background-color: #f0f9ff;
  color: #0ea5e9;
  font-weight: 500;
}
.side-catalog li a.active .arrow {
  color: #0ea5e9;
}

/* =========================================
   3. 右側內容卡片
   ========================================= */
.notice-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 12px;
}
@media (min-width: 577px) and (max-width: 768px) {
  .notice-card {
    padding: 24px;
  }
}
.notice-card h2.with-icon {
  font-size: 1.875rem;
  font-weight: 300;
  color: #03a9f4;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.notice-card h2.with-icon svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.notice-card .sep {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0 24px;
}
.notice-card .card-inner {
  width: 90%;
  margin: 0 auto;
}
@media (min-width: 577px) and (max-width: 768px) {
  .notice-card .card-inner {
    width: 88%;
  }
}
.notice-card .card-inner p {
  color: #374151;
  line-height: 1.75;
  font-size: 16px;
}
.notice-card .notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  --sub-marker-w: 1.5em;
}
.notice-card .notice-list > li + li {
  margin-top: 20px;
}
.notice-card .notice-list h3 {
  font-size: 26px;
  font-weight: 300;
  color: #838080;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.notice-card .notice-list > li > p.sub {
  margin-left: var(--marker-w, 1ch);
  padding-left: var(--sub-marker-w);
  text-indent: calc(-0.5 * var(--sub-marker-w));
}
.notice-card .notice-list .q-curly {
  color: #0ea5e9;
  font-weight: 500;
}
.notice-card .notice-list .q-book {
  color: #f97316;
  font-weight: 500;
}

/* 圖片樣式 */
.image-center-660 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}
.image-center-660 img {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-wrap {
  max-width: 1200px;
  margin: 16px auto 32px;
  padding: 0 12px;
}
@media (max-width: 576px) {
  .page-wrap {
    width: 95%;
    padding: 0;
  }
}

.catalog-layout {
  display: grid;
  grid-template-columns: 22% 78%;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 24% 76%;
  }
}
@media (max-width: 1200px) {
  .catalog-layout {
    grid-template-columns: 22% 78%;
  }
}
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-layout .side-catalog {
    display: none !important;
  }
}

.content-col {
  grid-column: 2;
  grid-row: 1;
  display: block;
  padding-top: 4px;
}
@media (max-width: 1024px) {
  .content-col {
    grid-column: 1;
    grid-row: auto;
  }
}

.content-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 10px 0 12px;
}
@media (max-width: 1024px) {
  .content-divider {
    margin: 8px 0 10px;
  }
}

/* =========================================
   Global Button Styles (全站通用按鈕)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: transparent;
}
.btn .icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: inline-block;
}
.btn .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.btn.btn-primary, .btn.blue {
  background-color: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
}
.btn.btn-primary:hover, .btn.blue:hover {
  background-color: #0284c7;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}
.btn.btn-primary:active, .btn.blue:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn.btn-ghost, .btn#btnPrev {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #64748b;
}
.btn.btn-ghost:hover, .btn#btnPrev:hover {
  background-color: #f8fafc;
  color: #475569;
  border-color: #94a3b8;
}
.btn.btn-light {
  background-color: #e0f2fe;
  color: #0b4a6e;
  border-color: #0ea5e9;
}
.btn.btn-light:hover {
  background-color: #bae6fd;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}
.btn.btn-cancel {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}
.btn.btn-cancel:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.btn:disabled, .btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
  transform: none !important;
}

.carousel-section {
  width: 100%;
  position: relative;
  height: 250px;
  margin-bottom: 2rem;
}
@media (min-width: 577px) and (max-width: 768px) {
  .carousel-section {
    height: 180px;
  }
}

.carousel-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
}

.carousel-image {
  width: 600px;
  height: 100%;
  flex-shrink: 0;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 576px) {
  .carousel-image {
    width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    scroll-snap-align: start;
  }
}

.carousel-nav-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.carousel-nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
.carousel-nav-btn.prev {
  left: 0;
}
.carousel-nav-btn.next {
  right: 0;
}
.carousel-nav-btn svg {
  width: 32px;
  height: 32px;
}
@media (min-width: 577px) and (max-width: 768px) {
  .carousel-nav-btn {
    display: none !important;
  }
}

.carousel-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 577px) and (max-width: 768px) {
  .carousel-dots-wrapper {
    display: none !important;
  }
}
.carousel-dots-wrapper button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: #9ca3af;
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}
.carousel-dots-wrapper button:hover {
  background-color: #e5e7eb;
}
.carousel-dots-wrapper button.active {
  background-color: #333;
}

.side-catalog {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.side-catalog h2 {
  margin: 0;
  padding: 12px 16px;
  background: #4ac4cb;
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 500;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}
.side-catalog h2 .title-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-catalog h2 .btn-logout {
  background: #df561f;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.side-catalog h2 .btn-logout:hover {
  filter: brightness(1.1);
  border-color: #ffffff;
}
.side-catalog ul {
  list-style: none;
  padding: 0;
  margin: 16px 16px 16px 16px;
}
.side-catalog ul .user-greeting {
  color: #00a7db;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 12px;
  padding: 0 5px;
}
.side-catalog ul ul {
  margin: 4px 0 4px 5px;
}
.side-catalog li {
  margin: 0;
}
.side-catalog li button.sc-toggle,
.side-catalog li a {
  width: 100%;
  background: none;
  border: 0;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #374151;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.side-catalog li button.sc-toggle:hover,
.side-catalog li a:hover {
  background: #f3f4f6;
  color: #00a7db;
}
.side-catalog li button.sc-toggle .arrow {
  width: 18px;
  text-align: center;
  color: #cbcbcb;
  transition: transform 0.16s ease;
  font-size: 16px;
  line-height: 1;
}
.side-catalog li a .arrow {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
  /* hide original glyph without affecting height */
  line-height: 0;
  height: 18px;
}
.side-catalog li a .arrow::after {
  content: "";
  display: inline-block;
  width: 3px;
  /* longer */
  height: 22px;
  /* thicker */
  background: #d6d9dd;
  border-radius: 2px;
}
.side-catalog li a:hover .arrow::after,
.side-catalog li .active > a .arrow::after {
  background: #00a7db;
  /* match hover/active color */
  box-shadow: 0 0 0 1px rgba(0, 167, 219, 0.06);
}
.side-catalog li.active > button.sc-toggle,
.side-catalog li.active > a {
  background-color: #fbfbfb;
  color: #00a7db;
  font-weight: 500;
}
.side-catalog li.has-children > ul {
  display: none;
}
.side-catalog li.has-children.is-open > ul {
  display: block;
}
.side-catalog li.has-children.is-open > button.sc-toggle .arrow {
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  .side-catalog {
    display: none !important;
  }
}
.books-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 25px auto;
  width: 95%;
}
@media (max-width: 1200px) {
  .books-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .books-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .books-list.mobile-dual-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .books-list.mobile-dual-col .book-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }
  .books-list.mobile-dual-col .book-row .book-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1.3;
    margin-right: 0;
    margin-bottom: 8px;
  }
  .books-list.mobile-dual-col .book-row .book-meta {
    padding: 0 4px;
  }
  .books-list.mobile-dual-col .book-row .desc {
    display: none;
  }
  .books-list.mobile-dual-col .book-row h3 {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
body.view-list .books-list {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

.book-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.book-row .book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  -o-object-fit: contain;
     object-fit: contain;
  background: #f6f7f9;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.book-row .book-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.book-row .book-meta {
  width: 92%;
  margin: 0 auto;
}
.book-row .book-meta h3 {
  font-size: 16px;
  line-height: 1.4;
  color: #1f2937;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-row .book-meta .byline {
  font-size: 14px;
  color: #3b82f6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-row .book-meta .badges, .book-row .book-meta .desc, .book-row .book-meta .code {
  display: none !important;
}
.book-row .book-meta .btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  background-color: #00a7db;
  color: #ffffff;
  border: 1px solid #00a7db;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
}
.book-row .book-meta .btn-download i {
  font-size: 16px;
}
.book-row .book-meta .btn-download:hover {
  background-color: #fda642;
  color: #fff;
  border-color: #db8300;
}
body.view-list .book-row {
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
body.view-list .book-row:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
body.view-list .book-row:hover {
  transform: none;
  box-shadow: none;
}
body.view-list .book-row .book-cover {
  width: 112px;
  height: 148px;
  aspect-ratio: auto;
}
body.view-list .book-row .book-cover:hover {
  transform: none;
  box-shadow: none;
}
body.view-list .book-row .book-meta {
  width: auto;
  margin: 0;
  flex: 1;
}
body.view-list .book-row .book-meta h3 {
  font-size: 18px;
}
body.view-list .book-row .book-meta .desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}
body.view-list .book-row .book-meta .code, body.view-list .book-row .book-meta .badges {
  display: none !important;
}
body.view-list .book-row .book-meta .btn-download {
  width: 160px;
  align-self: flex-start;
  margin-top: auto;
}
body.view-list .book-row .book-meta .btn-download:hover {
  background-color: #fda642;
  color: #fff;
  border-color: #db8300;
}

.row-divider {
  display: none !important;
}

.tools-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 0 0 10px;
  background: #e9e9e9;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
}
.tools-bar .label {
  color: #7a7a7a;
  font-size: 14px;
  margin-right: 6px;
}
@media (max-width: 576px) {
  .tools-bar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 14px !important;
    margin-bottom: 8px !important;
  }
  .tools-bar .label {
    display: none !important;
  }
  .tools-bar .view-btn {
    display: none !important;
  }
}

.tools-left, .tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #6b7280;
}
.breadcrumb .bc-link {
  color: #1f2937;
  text-decoration: none;
}
.breadcrumb .bc-link:hover {
  text-decoration: underline;
}
.breadcrumb .bc-sep {
  color: #9ca3af;
}
.breadcrumb .bc-current {
  color: #6b7280;
}

.view-btn {
  width: 32px;
  height: 28px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.view-btn.active {
  background: #4b5563;
  border-color: #4b5563;
}
.view-btn.active .i {
  filter: invert(1);
}

.i {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.i-list {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><rect x="2" y="3" width="14" height="3" fill="%23666"/><rect x="2" y="8" width="14" height="3" fill="%23666"/><rect x="2" y="13" width="14" height="3" fill="%23666"/></svg>');
}

.i-grid {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><rect x="2" y="2" width="6" height="6" fill="%23666"/><rect x="10" y="2" width="6" height="6" fill="%23666"/><rect x="2" y="10" width="6" height="6" fill="%23666"/><rect x="10" y="10" width="6" height="6" fill="%23666"/></svg>');
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.pagination .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  font-size: 14px;
}
.pagination .page-btn.active {
  background: #374151;
  color: #fff;
  border-color: #374151;
}
.pagination .page-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination .page-numbers {
  display: flex;
  gap: 6px;
}

.product-tabs-wrap {
  margin-top: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.tab-buttons {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 0;
}
.tab-buttons .tab-btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  font-weight: 500;
  color: #7e7e7e;
  padding: 12px 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}
.tab-buttons .tab-btn:hover {
  color: #00A0E9;
  background: transparent;
}
.tab-buttons .tab-btn.active {
  color: #00A0E9;
  font-weight: 700;
  border-bottom-color: #00A0E9;
  background: transparent;
  box-shadow: none;
}

.tab-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.tab-panel {
  display: none;
  line-height: 1.8;
  color: #374151;
  padding: 8px 10px;
}
.tab-panel.active {
  display: block;
}
.tab-panel ul,
.tab-panel ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
.tab-panel p {
  margin-bottom: 16px;
}
.tab-panel hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 20px 0;
}
.tab-panel .download-heading {
  margin-bottom: 6px;
  /* 調整與下方清單的距離 */
  padding-bottom: 1px;
  /* 控制文字與底線（3px）的距離，讓它靠標題較近 */
  border-bottom: 2px solid #00A0E9;
  /* 3px 粗細的主題色底線 */
  width: -moz-fit-content;
  width: fit-content;
  /* 讓寬度剛好跟文字內容一樣寬 */
}
.tab-panel .download-list {
  margin: 13px 8px;
  padding-left: 0;
  list-style: none;
}
.tab-panel .download-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.tab-panel .download-list li::before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #979797;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox .lb-content {
  max-width: 90%;
  max-height: 90%;
}
.lightbox .lb-content img {
  max-width: 100%;
  max-height: 90vh;
  -o-object-fit: contain;
     object-fit: contain;
}
.lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox .lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox .lb-nav.prev {
  left: 20px;
}
.lightbox .lb-nav.next {
  right: 20px;
}

.preview-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-top: 12px;
}
.preview-strip .pv-track {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0;
}
.preview-strip .pv-track::-webkit-scrollbar {
  display: none;
}
.preview-strip .pv-track {
  scrollbar-width: none;
}
.preview-strip .pv-item {
  flex: 0 0 70px;
  height: 90px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
  background: #fff;
}
.preview-strip .pv-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 4px;
}
.preview-strip .pv-item:hover {
  opacity: 1;
}
.preview-strip .pv-item.active {
  opacity: 1;
  border-color: #368dbd;
}
.preview-strip .pv-nav {
  width: 30px;
  height: 70px;
  background: #C4C4C4;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: monospace;
  line-height: 1;
  transition: background 0.2s;
}
.preview-strip .pv-nav:hover {
  background: #a0a0a0;
}

.new-books-section {
  margin: 32px auto 50px;
}
@media (max-width: 1024px) {
  .new-books-section {
    margin: 16px auto 0;
  }
}
.new-books-section .new-books-title {
  font-size: 1.8em;
  font-weight: 300;
  margin-bottom: 12px;
  color: #00a7db;
  text-align: center;
}
.new-books-section .books-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .new-books-section .books-scroller {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.new-books-section .book-card {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}
@media (max-width: 1024px) {
  .new-books-section .book-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
}
.new-books-section .book-card img {
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  background-color: #fff;
  padding: 2px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (max-width: 1024px) {
  .new-books-section .book-card img {
    flex: 0 0 110px;
    width: 110px;
    max-width: 110px;
    margin-bottom: 0;
  }
}
.new-books-section .book-card img:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.new-books-section .book-card .book-text {
  /* 在卡片底部保留間距，避免作者太靠近頁面灰底 */
  padding: 0 0 10px;
  text-align: left;
  margin: auto;
  width: 90%;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.new-books-section .book-card .book-text h3 {
  font-size: 20px;
  color: #1f2937;
  /* 加大標題與作者間距，當標題占三行時能保有視覺縱向空間 */
  margin: 0 0 8px;
  line-height: 1.4;
  font-weight: 500;
  height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .new-books-section .book-card .book-text h3 {
    font-size: 22px;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }
}
.new-books-section .book-card .book-text p {
  font-size: 18px;
  color: #3faacb;
  margin: 0 0 4px 0;
  line-height: 1.4;
  height: auto;
  /* 允許作者完整換行顯示（不截斷） */
  display: block;
  overflow: visible;
  /* 改善中文/長字串斷行 */
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 1025px) {
  .homepage .new-books-section .books-scroller {
    grid-template-columns: repeat(5, 1fr);
  }
  .homepage .new-books-section .book-card img {
    height: 240px;
    -o-object-fit: contain;
       object-fit: contain;
  }
}
@media (max-width: 768px) {
  .new-books-section {
    padding: 0 15px;
  }
  .new-books-section .books-scroller {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100% !important;
  }
  .new-books-section .book-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
  }
  .new-books-section .book-card img {
    flex: 0 0 110px !important;
    width: 110px !important;
    height: auto !important;
    margin-bottom: 0 !important;
    -o-object-fit: contain;
       object-fit: contain;
  }
  .new-books-section .book-card .book-text {
    flex: 1 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
  }
  .new-books-section .book-card .book-text h3 {
    font-size: 22px !important;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: auto;
  }
  .new-books-section .book-card .book-text p {
    font-size: 18px;
    line-height: 1.5;
  }
}
.section-title {
  position: relative;
  font-size: 1.8em;
  color: #00a7db;
  text-align: center;
  margin: 20px 0 16px;
  background: none;
}
@media (max-width: 576px) {
  .section-title {
    font-size: 1.5em;
  }
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 1190px;
  max-width: 100%;
  height: 54px;
  background: url("../images/new-books-title.png") center no-repeat;
  background-size: 100% auto;
}
@media (max-width: 576px) {
  .section-title {
    font-size: 1.8em;
  }
  .section-title::after {
    bottom: -4px;
    width: 90%;
    height: 2px;
    background-image: none;
    background-color: rgb(117, 222.2328767123, 255);
  }
}

.new-books-section {
  max-width: 1124px;
  margin: 0 auto 48px;
}
.new-books-section .books-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.new-books-section .book-card {
  border: 1px solid #e0e0e0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  /* Grid 模式：欄位寬度由欄位決定 */
  background: #f0f0f0;
  border-radius: 15px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 260px;
  width: 100%;
}
@media (max-width: 576px) {
  .new-books-section .book-card {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 4px;
  }
}
@media (max-width: 576px) {
  .new-books-section .book-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 auto 4px;
    min-height: 120px;
  }
}
@media (min-width: 577px) and (max-width: 768px) {
  .new-books-section .book-card {
    flex: 1 1 100%;
    height: auto;
    min-height: 120px;
    flex-direction: row;
    align-items: stretch;
  }
}
.new-books-section .book-card img {
  width: 100%;
  height: 255px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (min-width: 577px) and (max-width: 768px) {
  .new-books-section .book-card img {
    width: 30%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    background: #fff;
  }
}
.new-books-section .book-card .book-text {
  padding: 15px;
}
.new-books-section .book-card .book-text h3 {
  color: #2e7ca3;
  font-size: 1.3em;
  margin-bottom: 5px;
}

.book-card img {
  width: 100%;
  height: 255px;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.book-card:hover {
  border-color: #d3d3d3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.seminar-registration {
  max-width: 1124px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 90%;
}
.seminar-registration li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  transition: background-color 0.25s ease, color 0.25s ease;
  padding: 5px 0;
}
.seminar-registration li:last-child {
  border: none;
}
@media (max-width: 576px) {
  .seminar-registration li {
    font-size: 13px;
  }
}
.seminar-registration li:hover {
  background-color: #f9fcff;
}
.seminar-registration li:hover .date {
  color: #00a7db;
}
.seminar-registration li:hover .title {
  color: rgb(0, 128.1095890411, 168);
}
.seminar-registration li:hover .location.taipei {
  background: rgb(0, 190.3342465753, 249.6);
}
.seminar-registration li:hover .location.kaohsiung {
  background: rgb(45.9130434783, 191.6869565217, 79.2);
}
.seminar-registration li:hover .location.taichung {
  background: rgb(253.2582278481, 142.6556962025, 50.3417721519);
}
.seminar-registration .date {
  width: 120px;
  transition: color 0.25s ease;
}
@media (max-width: 576px) {
  .seminar-registration .date {
    width: 70px;
  }
}
.seminar-registration .title {
  flex: 1;
  transition: color 0.25s ease;
}
.seminar-registration .location {
  padding: 2px 8px;
  color: #fff;
  border-radius: 5px;
  margin: 0 15px;
  text-align: center;
  transition: background-color 0.25s ease;
}
.seminar-registration .location.all {
  background: #c74ba6;
}
.seminar-registration .location.taipei {
  background: #00a7db;
}
.seminar-registration .location.kaohsiung {
  background: #28a745;
}
.seminar-registration .location.taichung {
  background: #fd7e14;
}

.social-media-section {
  text-align: center;
  padding: 20px;
}
.social-media-section a {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  border-radius: 50%;
  background-size: cover;
  transition: 0.3s;
}
.social-media-section a.facebook {
  background-image: url("../images/FB.png");
}
.social-media-section a.twitter {
  background-image: url("../images/X.png");
}
.social-media-section a.instagram {
  background-image: url("../images/IG.png");
}
.social-media-section a:hover {
  transform: scale(1.1);
}

.social-media-section a.line {
  background-image: url("../images/line.png");
}

.content-b {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 40px;
}
@media (min-width: 577px) and (max-width: 768px) {
  .content-b {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px;
  }
}
@media (max-width: 576px) {
  .content-b {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
    display: none;
  }
}

.content-b-block {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 24px;
}
.content-b-block::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center bottom;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}
.content-b-block.books::before {
  background-image: url("../images/bg1.jpg");
}
.content-b-block.certification::before {
  background-image: url("../images/bg2.jpg");
}
.content-b-block.software::before {
  background-image: url("../images/bg3.jpg");
}
.content-b-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.content-b-block .icon {
  display: none;
}
.content-b-block h3 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  padding-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: -moz-fit-content;
  width: fit-content;
  transform: translateY(15px);
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.content-b-block h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.content-b-block p {
  position: relative;
  z-index: 2;
  color: #eee;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  opacity: 0;
  max-height: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.content-b-block:hover::before {
  transform: translateY(0);
}
.content-b-block:hover::after {
  opacity: 0.8;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}
.content-b-block:hover h3 {
  transform: translateY(0);
}
.content-b-block:hover h3::after {
  width: 120%;
}
.content-b-block:hover p {
  opacity: 1;
  max-height: 100px;
  transform: translateY(0);
  margin-top: 12px;
}

/* =========================================
   4. 關於碁峯 - 核心價值卡片樣式
   ========================================= */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.value-card {
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 20px;
}
.value-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  margin-top: 0;
}
.value-card hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 8px 0;
}
.value-card p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0 !important;
}

.value-card.professional {
  background-color: #F3FAFF;
  border-color: #d6ecf8;
}
.value-card.professional h3 {
  color: #0ea5e9;
}

.value-card.active {
  background-color: #F4FFFA;
  border-color: #d9f0ea;
}
.value-card.active h3 {
  color: #10b981;
}

.value-card.passion {
  background-color: #FFF6EC;
  border-color: #ffe4c7;
}
.value-card.passion h3 {
  color: #f97316;
}

.value-card.innovation {
  background-color: #F7F3FF;
  border-color: #e6dbff;
}
.value-card.innovation h3 {
  color: #8b5cf6;
}

/* =========================================
   5. 服務團隊 - 特殊樣式
   ========================================= */
.range-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.range-cards .range-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 15px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
}
.range-cards .range-card:hover {
  background-color: #f9fafb;
}
.range-cards .range-card.is-active {
  border-color: #38bdf8;
  color: #0ea5e9;
  background-color: #f0f9ff;
  font-weight: 500;
}

.service-team-list h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  font-weight: 400;
}
.service-team-list .contact-info {
  margin-bottom: 24px;
}
.service-team-list .contact-info p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 4px;
}

.service-team-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}
.service-team-box .box-header {
  background-color: #e0f2f1;
  padding: 12px 20px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #1f2937;
  border-bottom: 1px solid #e2e8f0;
}
.service-team-box .box-body {
  background-color: #f8fafc;
  padding: 20px;
}
.service-team-box .team-group {
  padding: 8px 0;
}
.service-team-box .team-group h4 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #111827;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.service-team-box .team-group h4 .tri {
  font-size: 0.8em;
  margin-right: 6px;
  color: #64748b;
}
.service-team-box .team-group p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 4px;
  padding-left: 1.2em;
}
.service-team-box .team-group p span {
  font-weight: 500;
  color: #374151;
}
.service-team-box .dashed-sep {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 8px 0;
}

/* =========================================
   6. 歷史沿革 - 大事記樣式 (Timeline)
   ========================================= */
/* =========================================
   Tabs 按鈕群組 (大事記 & 服務團隊共用)
   ========================================= */
.notice-card .range-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 20px 0 20px;
}
.notice-card .range-cards#regionTabs {
  grid-template-columns: repeat(3, 1fr);
}

/* RWD 響應式調整 */
@media (min-width: 577px) and (max-width: 768px) {
  .notice-card .range-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================================
   7. 合作夥伴
   ========================================= */
/* =========================================
   8. 銷售資格頁面 - 樣式修正 (符合圖二)
   ========================================= */
.license-page {
  padding-bottom: 40px;
}
.license-page .license-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.license-page .license-list > li {
  padding-bottom: 30px;
}
.license-page .license-list > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.license-page h3 {
  font-size: 1.75rem;
  font-weight: 300;
  color: #838080;
  margin-bottom: 5px;
  padding-left: 0;
}
.license-page .h3-sep {
  border: 0;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  margin: 0 0 8px 0;
}
.license-page .lead-strong {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 20px 0 10px 0;
}
.license-page .basic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.license-page .basic-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}
.license-page .basic-list li:last-child {
  margin-bottom: 0;
}
.license-page .basic-list li::before {
  content: "•";
  color: #374151;
  font-size: 1.2rem;
  position: absolute;
  left: 4px;
  top: -2px;
  line-height: 1.6;
}

/* =========================================
   Adobe ACP 頁面樣式 (_cert-acp.scss)
   ========================================= */
.acp-page {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 40px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  /* --- 1. 全域變數設定 --- */
  --card-head-bg: #EAF6FF;
  --card-head-text: #1E4D8E;
  --stu-title: #2e7d32;
  --stu-bg: #E6F4EA;
  --teach-title: #cc6b00;
  --teach-bg: #FFE8CC;
  --accent-blue: #00a7db;
}
.acp-page .mt-large {
  margin-top: 40px;
}
.acp-page .mt-medium {
  margin-top: 16px;
}
.acp-page {
  /* --- 2. 頂部橫幅 & Header --- */
}
.acp-page .card-banner {
  height: 300px;
  margin: -24px -24px 24px;
  background: linear-gradient(135deg, #e9eef5, #dfe7ef);
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}
.acp-page .card-banner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
@media (max-width: 576px) {
  .acp-page .card-banner {
    height: auto;
  }
  .acp-page .card-banner img {
    -o-object-fit: contain;
       object-fit: contain;
  }
}
.acp-page .page-header {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.acp-page .page-header .main-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1A1C1E;
}
@media (max-width: 576px) {
  .acp-page .page-header .main-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
}
.acp-page .page-header .subtitle {
  font-size: 1.75rem;
  font-weight: 500;
  color: #3fb5b9;
  margin-bottom: 16px;
}
@media (max-width: 576px) {
  .acp-page .page-header .subtitle {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
}
.acp-page .page-header .intro-text {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 24px;
}
.acp-page .intro-img-box.logos-grid {
  margin: 0 auto 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
}
.acp-page .intro-img-box.logos-grid .logo-item {
  border: 1px solid #e6e6e6;
  border-radius: 0;
  padding: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  cursor: pointer;
}
.acp-page .intro-img-box.logos-grid .logo-item a.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.acp-page .intro-img-box.logos-grid .logo-item a.logo-link.empty {
  opacity: 0.65;
  /* 標示為暫時無連結 */
}
.acp-page .intro-img-box.logos-grid .logo-item .logo-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background-color: #374151;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 20;
  pointer-events: none;
  text-align: left;
}
.acp-page .intro-img-box.logos-grid .logo-item .logo-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #374151 transparent transparent transparent;
}
.acp-page .intro-img-box.logos-grid .logo-item .logo-tooltip .tooltip-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #fff;
  display: block;
}
.acp-page .intro-img-box.logos-grid .logo-item .logo-tooltip .tooltip-content {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e5e7eb;
  margin: 0;
}
.acp-page .intro-img-box.logos-grid .logo-item:hover .logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.acp-page .intro-img-box.logos-grid img.intro-img {
  width: 100%;
  height: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 0;
  pointer-events: none;
  /* 點擊事件交給外層 a */
}
@media (max-width: 576px) {
  .acp-page .intro-img-box.logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.acp-page .hero-ribbons {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .acp-page .hero-ribbons {
    grid-template-columns: repeat(3, 220px);
    justify-content: center;
  }
}
@media (min-width: 768px) {
  .acp-page .hero-ribbons.hero-ribbons--quad {
    grid-template-columns: repeat(4, 200px);
  }
}
.acp-page .hero-ribbons .ribbon {
  position: relative;
  background: #3789ba;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}
.acp-page .hero-ribbons .ribbon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 10px;
  border-style: solid;
  border-color: #a9cfe6 #a9cfe6 transparent transparent;
}
.acp-page .hero-ribbons .ribbon .r-title {
  display: block;
  font-size: 1.25em;
  font-weight: 800;
}
.acp-page .hero-ribbons .ribbon .r-sub {
  display: block;
  font-size: 0.95em;
  opacity: 0.9;
}
.acp-page .hero-ribbons .ribbon .r-icon {
  display: none;
}
.acp-page {
  /* --- 3. 優勢區塊 (三欄卡片) --- */
}
.acp-page .region-title {
  font-size: 1.75rem;
  color: #374151;
  margin-bottom: 12px;
  font-weight: 500;
}
.acp-page .region-title.title-underline {
  border-bottom: 1px solid #D1D5DB;
  padding-bottom: 4px;
}
.acp-page .test-category-image {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}
.acp-page .test-category-image img {
  max-width: 100%;
  height: auto;
}
.acp-page .cards.three-col {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .acp-page .cards.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}
.acp-page .cards.three-col .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.acp-page .cards.three-col .card h3 {
  margin: -16px -16px 10px;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
}
.acp-page .cards.three-col .card ul {
  padding-left: 20px;
  list-style: disc;
}
.acp-page .cards.three-col .card ul li {
  margin-bottom: 4px;
  color: #4b5563;
}
.acp-page .cards.three-col .feature-img-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}
.acp-page .cards.three-col .card-student h3 {
  background: #e3f2fd;
  color: #1565c0;
  border-bottom: 1px solid #bbdefb;
}
.acp-page .cards.three-col .card-teacher h3 {
  background: #e8f5e9;
  color: #2e7d32;
  border-bottom: 1px solid #c8e6c9;
}
.acp-page .cards.three-col .card-worker h3 {
  background: #fff3e0;
  color: #e65100;
  border-bottom: 1px solid #ffe0b2;
}
.acp-page {
  /* --- 4. 考試資訊與證書 (兩欄) --- */
}
.acp-page .two-col {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .acp-page .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.acp-page .cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .acp-page .cert-grid {
    grid-template-columns: 200px 1fr;
  }
}
.acp-page .cert-grid .cert-media {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.acp-page .cert-grid .cert-media img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.acp-page .content-box ul {
  padding-left: 20px;
  list-style: disc;
}
.acp-page .content-box ul li {
  margin-bottom: 6px;
  color: #374151;
}
.acp-page .info-content {
  line-height: 1.6;
  color: #4b5563;
}
.acp-page .info-content p {
  margin-bottom: 8px;
}
.acp-page .info-content .order-buy-link {
  color: #007bff;
  text-decoration: underline;
}
.acp-page .info-content .order-buy-link:hover {
  color: #0056b3;
}
.acp-page .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 16px;
  background: #000;
}
.acp-page .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.acp-page .video-link {
  margin-top: 16px;
}
.acp-page .video-link a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.acp-page .video-link a:hover {
  transform: scale(1.02);
}
.acp-page .video-link img {
  width: 100%;
  height: auto;
  display: block;
}
.acp-page .exam-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
}
.acp-page .exam-table th,
.acp-page .exam-table td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-align: left;
}
.acp-page .exam-table thead th {
  background-color: #b5b5b5;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.acp-page .exam-table .cat-it td:first-child {
  background-color: #a04060;
  color: #fff;
  text-align: center;
  font-weight: 300;
}
.acp-page .exam-table .cat-it td:last-child {
  background-color: #f8e8f0;
  color: #333;
}
.acp-page .exam-table .cat-office td:first-child {
  background-color: #f0c880;
  color: #333;
  text-align: center;
  font-weight: 300;
  white-space: nowrap;
}
.acp-page .exam-table .cat-office td:last-child {
  background-color: #fff8e8;
  color: #333;
}
.acp-page .exam-table .cat-prog td:first-child {
  background-color: #60a080;
  color: #fff;
  text-align: center;
  font-weight: 300;
}
.acp-page .exam-table .cat-prog td:last-child {
  background-color: #e8f8f0;
  color: #333;
}
.acp-page .exam-table .cat-azure td:first-child {
  background-color: #b0b8c0;
  color: #333;
  text-align: center;
  font-weight: 300;
}
.acp-page .exam-table .cat-azure td:last-child {
  background-color: #f0f4f8;
  color: #333;
}
@media (max-width: 767px) {
  .acp-page .exam-table {
    font-size: 0.85rem;
  }
  .acp-page .exam-table th,
  .acp-page .exam-table td {
    padding: 6px 8px;
  }
  .acp-page .exam-table td:first-child {
    width: 90px;
  }
}
.acp-page {
  /* --- 5. 認證科目 (Grid) --- */
}
.acp-page .subject-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .acp-page .subject-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.acp-page .subject-grid .subject-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.acp-page .subject-grid .subject-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.acp-page .subject-grid .subject-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.acp-page .subject-grid .subject-card .card-body h4 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1f2937;
}
.acp-page .subject-grid .subject-card .card-body h4 .card-label {
  color: #73afdb;
  font-weight: 500;
}
.acp-page .subject-grid .subject-card .card-body p {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.acp-page .subject-grid .subject-card .card-body p.info-highlight {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1f2937;
}
.acp-page .subject-grid .subject-card .card-body p .card-label {
  color: #73afdb;
  font-weight: 700;
}
.acp-page .subject-grid .subject-card .subject-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.acp-page .subject-grid .subject-card .subject-tags .tag {
  background: var(--accent-blue);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
}
.acp-page .subject-grid .subject-card .subject-tags .tag:hover {
  background-color: rgb(0, 128.1095890411, 168);
}
.acp-page .subject-grid .subject-card .card-badge {
  flex: 0 0 80px;
}
.acp-page .subject-grid .subject-card .card-badge img {
  width: 80px;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
@media (min-width: 992px) {
  .acp-page .subject-grid .subject-card .card-badge {
    flex: 0 0 100px;
  }
  .acp-page .subject-grid .subject-card .card-badge img {
    width: 100px;
  }
}
@media (max-width: 576px) {
  .acp-page .subject-grid .subject-card {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .acp-page .subject-grid .subject-card .card-body {
    width: 100%;
  }
  .acp-page .subject-grid .subject-card .card-badge {
    margin-bottom: -4px;
  }
  .acp-page .subject-grid .subject-card .subject-tags {
    justify-content: center;
  }
}

/* =========================================
   6. 專家路徑 (手風琴) - 整合版
   ========================================= */
#expert-accordion {
  display: grid;
  gap: 16px;
  max-width: 1000px;
  margin: 25px auto 0;
}
#expert-accordion .region-title {
  margin-bottom: -7px;
  /* 您可以調整這個數字，原本可能是 24px 或更多 */
}
#expert-accordion .acc-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
#expert-accordion .acc-item.is-open {
  border-color: var(--accent-blue);
}
#expert-accordion .acc-item.is-open .acc-title {
  background: var(--accent-blue);
  color: #fff;
}
#expert-accordion .acc-item.is-open .acc-title::after {
  content: "−";
}
#expert-accordion .acc-item.is-open .acc-panel {
  max-height: 2000px;
  opacity: 1;
}
#expert-accordion .acc-title {
  width: 100%;
  padding: 16px 24px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
#expert-accordion .acc-title::after {
  content: "+";
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}
#expert-accordion .acc-title:hover {
  background: #e5e7eb;
  color: #1f2937;
}
#expert-accordion .acc-title.text-center {
  justify-content: center;
  position: relative;
}
#expert-accordion .acc-title.text-center::after {
  position: absolute;
  right: 24px;
}
#expert-accordion .acc-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  background: #fff;
}
#expert-accordion .acc-inner {
  padding: 30px;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  #expert-accordion .acc-inner {
    grid-template-columns: 1fr 420px;
    align-items: start;
  }
}
#expert-accordion .acc-inner .acc-lead-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  margin: 0;
  text-align: justify;
}
#expert-accordion .acc-inner .acc-lead-text.teacher-note {
  font-weight: 500;
  color: #d97706;
}
#expert-accordion .acc-inner .acc-req-combo {
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#expert-accordion .acc-inner .acc-req-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 20px;
}
#expert-accordion .acc-inner .acc-req-line.vertical {
  flex-direction: column;
  gap: 8px;
}
#expert-accordion .acc-inner .acc-req-line .req-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#expert-accordion .acc-inner .acc-req-line .req-column img {
  width: 64px;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 8px;
}
#expert-accordion .acc-inner .acc-req-line .req-plus, #expert-accordion .acc-inner .acc-req-line .req-plus-hidden {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}
#expert-accordion .acc-inner .acc-req-line .req-plus::before, #expert-accordion .acc-inner .acc-req-line .req-plus-hidden::before {
  content: "+";
}
#expert-accordion .acc-inner .acc-req-line .req-plus-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #ffedd5;
  color: #c2410c;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 6px;
  line-height: 1;
}
#expert-accordion .acc-inner .acc-req-line .req-plus-hidden {
  visibility: hidden;
}
#expert-accordion .acc-inner .either-label {
  font-size: 0.85rem;
  color: #9ca3af;
  position: relative;
  width: 100%;
  text-align: center;
}
#expert-accordion .acc-inner .either-label::before, #expert-accordion .acc-inner .either-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e7eb;
}
#expert-accordion .acc-inner .either-label::before {
  left: 0;
}
#expert-accordion .acc-inner .either-label::after {
  right: 0;
}
#expert-accordion .acc-inner .acc-bottom-note {
  grid-column: 1/-1;
  border-top: 1px dashed #e5e7eb;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  margin-top: -10px;
}
#expert-accordion .acc-inner .acc-bottom-note .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 99px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
#expert-accordion .acc-inner .acc-bottom-note .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#expert-accordion .acc-inner .acc-bottom-note .btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
#expert-accordion .acc-inner .acc-bottom-note .btn-secondary {
  background: #f59e0b;
  color: #fff;
}
#expert-accordion .acc-inner.layout-single-col {
  grid-template-columns: 1fr !important;
  text-align: center;
  gap: 20px;
}
#expert-accordion .acc-inner.layout-single-col .acc-lead-text {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}
#expert-accordion .acc-inner.layout-single-col .ai-expert-logo {
  margin: 0 auto;
}
#expert-accordion .acc-inner.layout-single-col .ai-expert-logo img {
  max-width: 160px;
  height: auto;
}
#expert-accordion .acc-inner.layout-single-col .cert-requirement-box {
  background-color: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 1px solid #e5e7eb;
  width: 100%;
  max-width: 800px;
}
#expert-accordion .acc-inner.layout-single-col .cert-requirement-box .req-header {
  background-color: #e5e7eb;
  color: #374151;
  text-align: center;
  padding: 8px 0;
  font-weight: 700;
  font-size: 1rem;
}
#expert-accordion .acc-inner.layout-single-col .cert-requirement-box .req-body {
  padding: 16px;
  display: flex;
  justify-content: center;
}
#expert-accordion .acc-inner.layout-single-col .cert-requirement-box .acc-req-line {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
}

/* --- 7. Lightbox (全域) --- */
/* --- 7. Lightbox (全域) - 70%大小 + 關閉按鈕 --- */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lb.is-open {
  display: flex;
  opacity: 1;
}
.lb img {
  max-width: 70%;
  max-height: 70%;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 4px solid #fff;
}
.lb .lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, color 0.2s;
  z-index: 3001;
}
.lb .lb-close:hover {
  transform: scale(1.2);
  color: #ff7541;
}

/* =========================================
   Adobe 視覺設計專家 - 特殊排版
   ========================================= */
.req-complex-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 500;
  color: #374151;
  margin: 8px 0;
}
@media (max-width: 576px) {
  .req-complex-row {
    flex-direction: column;
    gap: 16px;
  }
}
.req-complex-row .req-item {
  white-space: nowrap;
}
.req-complex-row .req-plus-square,
.req-complex-row .req-plus,
.req-complex-row #expert-accordion .acc-inner .acc-req-line .req-plus-hidden,
#expert-accordion .acc-inner .acc-req-line .req-complex-row .req-plus-hidden {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #ffedd5;
  /* 橘色底 */
  color: #c2410c;
  /* 深橘字 */
  border-radius: 6px;
  /* 圓角 */
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  margin: 0 4px;
  flex-shrink: 0;
  /* 防止被擠壓 */
}
.req-complex-row .req-plus-square::after,
.req-complex-row .req-plus::after,
.req-complex-row #expert-accordion .acc-inner .acc-req-line .req-plus-hidden::after,
#expert-accordion .acc-inner .acc-req-line .req-complex-row .req-plus-hidden::after {
  content: "+";
  display: block;
}
.req-complex-row .badge-select-one,
.req-complex-row .either-badge {
  display: inline-block;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 400;
  margin-left: 8px;
}

/* =========================================
   新增區塊：優勢與考試資訊
   ========================================= */
/* --- 1. 優勢卡片 (三欄) --- */
.cards.three-col {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cards.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cards.three-col .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 0 20px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.cards.three-col .card h3 {
  margin: 0;
  padding: 12px 20px;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.cards.three-col .card ul {
  padding: 20px 20px 0 40px;
  list-style: disc;
  margin: 0;
}
.cards.three-col .card ul li {
  margin-bottom: 8px;
  color: #4b5563;
  line-height: 1.6;
}
.cards.three-col .card-student h3 {
  background: #ebf5ff;
  color: #1e88e5;
}
.cards.three-col .card-teacher h3 {
  background: #e8f5e9;
  color: #2e7d32;
}
.cards.three-col .card-worker h3 {
  background: #fff3e0;
  color: #e65100;
}

/* --- 2. 考試資訊與證書佈局 --- */
.info-grid-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .info-grid-layout {
    grid-template-columns: 1fr 1fr;
  }
}
.info-grid-layout .mb-40 {
  margin-bottom: 40px;
}
.info-grid-layout .title-underline {
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-size: 1.75rem;
  color: #374151;
  font-weight: 500;
}
.info-grid-layout .list-disc {
  padding-left: 24px;
  list-style: disc;
  margin: 0;
}
.info-grid-layout .list-disc li {
  color: #4b5563;
  line-height: 1.7;
}
.info-grid-layout .cert-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 576px) {
  .info-grid-layout .cert-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}
.info-grid-layout .cert-wrapper .cert-img-box {
  flex: 0 0 200px;
  margin: 0;
}
.info-grid-layout .cert-wrapper .cert-img-box img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.info-grid-layout .cert-wrapper .cert-img-box img:hover {
  transform: scale(1.02);
}

/* =========================================
   單科介紹頁專用樣式 (Single Cert Page)
   修正目標：按鈕修復、圖2佈局配色
   ========================================= */
.single-cert-page {
  border-radius: 0 !important;
}
.single-cert-page .page-header-inner {
  position: relative;
  background-color: #e8e8e8;
  margin: -24px -24px 32px;
  padding: 0 32px 40px 32px;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}
.single-cert-page .page-header-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  background-size: 16px 16px;
  background-image: linear-gradient(to right, #cbd5e1 1px, transparent 1px), linear-gradient(to bottom, #cbd5e1 1px, transparent 1px);
}
.single-cert-page .page-header-inner .header-bar {
  display: none;
}
.single-cert-page .page-header-inner .header-content {
  position: relative;
  z-index: 2;
  display: inline-block;
  border-top: 12px solid #4c7fd5;
  padding-top: 24px;
}
.single-cert-page .page-header-inner .header-content .header-sub {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.single-cert-page .page-header-inner .header-content .header-main {
  font-size: 2rem;
  font-weight: 500;
  color: #54B4B4;
  margin: 0;
  line-height: 1.2;
}
@media (max-width: 576px) {
  .single-cert-page .page-header-inner .header-content .header-main {
    font-size: 1.75rem;
  }
}
.single-cert-page .region-title {
  color: #00a7db !important;
  font-weight: 500;
  margin-bottom: 12px;
  margin-top: 0;
}
.single-cert-page .region-title.title-underline {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.single-cert-page .section {
  margin-bottom: 48px;
}
.single-cert-page .exam-grid {
  display: grid;
  grid-template-columns: 1fr;
  -moz-column-gap: 40px;
       column-gap: 40px;
  row-gap: 32px;
}
@media (min-width: 768px) {
  .single-cert-page .exam-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.single-cert-page .title-with-btn {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.single-cert-page .title-with-btn .region-title {
  margin: 0;
  border: none;
  padding: 0;
}
.single-cert-page .title-with-btn .btn-outline-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background-color: #00a7db;
  color: #fff;
  border-radius: 99px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 12px;
  line-height: 1;
}
.single-cert-page .title-with-btn .btn-outline-download:hover {
  background-color: #f59e0b;
}
.single-cert-page .title-with-btn .btn-outline-download svg {
  width: 18px;
  height: 18px;
  display: block;
}
.single-cert-page ul.list-disc {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
  margin: 0;
}
.single-cert-page ul.list-disc li {
  display: list-item;
  margin-bottom: 6px;
  color: #374151;
  line-height: 1.7;
}
.single-cert-page .book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .single-cert-page .book-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.single-cert-page .book-grid .book-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.single-cert-page .book-grid .book-card .book-cover {
  width: 100px;
  height: 130px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  background-color: #d1d5db;
  flex-shrink: 0;
}
.single-cert-page .book-grid .book-card .book-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.single-cert-page .book-grid .book-card .book-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}
.single-cert-page .book-grid .book-card .book-meta {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}
.single-cert-page .kv-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f3f4f6;
}
@media (min-width: 577px) and (max-width: 768px) {
  .single-cert-page .kv-row {
    flex-direction: column;
    gap: 20px;
  }
}
.single-cert-page .kv-row .kv-figure {
  margin: 0;
}
.single-cert-page .kv-row .kv-img {
  width: 320px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
}
@media (min-width: 577px) and (max-width: 768px) {
  .single-cert-page .kv-row .kv-img {
    width: 100%;
  }
}
.single-cert-page .kv-row .kv-meta {
  flex: 1;
  padding-top: 0px;
  font-size: 1.2rem;
  line-height: 20px;
}
.single-cert-page .kv-row .kv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.single-cert-page .kv-row .kv-list li {
  border-bottom: 1px dashed #f3f4f6;
  padding: 8px 0;
}
.single-cert-page .kv-row .kv-list li:last-child {
  border: none;
}
.single-cert-page .kv-row .kv-list .kv-key {
  font-weight: 700;
  color: #8f8f8f;
  margin-right: 8px;
}

/* =========================================
   MOS 專用藍色標題 (MOS Blue Header)
   ========================================= */
.mos-blue-header {
  width: 100%;
  background-color: #93e5ff;
  /* 亮藍色底 */
  color: #000;
  /* 黑色字 */
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* =========================================
   認證總覽頁專用樣式 (Overview Page)
   ========================================= */
.banner-slider {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.banner-slider .slides {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}
.banner-slider .slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.banner-slider .slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.banner-slider .dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-slider .dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.banner-slider .dots button[aria-selected=true] {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2) inset;
  transform: scale(1.2);
}

.intro-img-box {
  margin-top: 24px;
  text-align: center;
}
.intro-img-box .intro-img {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
}

.cards.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .cards.two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.cards.two-col .card h3 {
  background: #f3f4f6;
  color: #374151;
}

.overview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .overview-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.overview-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.overview-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(49, 96, 149, 0.3);
}
.overview-item .item-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #316095;
  text-align: center;
  margin: 0 0 12px;
  position: relative;
  padding-bottom: 8px;
}
.overview-item .item-title i {
  display: block;
  font-size: 2rem;
  margin: 0 auto 6px;
  color: #316095;
}
.overview-item .item-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #316095;
  margin-top: 8px;
  border-radius: 2px;
}
.overview-item p {
  font-size: 0.95rem;
  color: #2e9189;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 4.8em;
}
.overview-item .overview-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.overview-item .overview-links li {
  margin-bottom: 8px;
}
.overview-item .overview-links a {
  text-decoration: none;
  color: #4b5563;
  border-bottom: 1px dashed #d1d5db;
  transition: color 0.2s;
}
.overview-item .overview-links a:hover {
  color: #1E4D8E;
  text-decoration: none;
  border-bottom-style: solid;
}

/* =========================================
   兩欄卡片樣式修正 (Two Column Cards)
   ========================================= */
.cards.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .cards.two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.cards.two-col .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 0 20px 0;
  /* 標題有背景，內距設在下方 */
  overflow: hidden;
  /* 讓標題圓角不被切斷 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.cards.two-col .card h3 {
  margin: 0;
  padding: 12px 20px;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--card-head-bg);
  color: var(--card-head-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.cards.two-col .card ul {
  padding: 20px 20px 0 40px;
  list-style: disc;
  margin: 0;
}
.cards.two-col .card ul li {
  margin-bottom: 8px;
  color: #4b5563;
  line-height: 1.6;
}
.cards.two-col .card-student h3 {
  background: #e3f2fd;
  color: #1565c0;
}
.cards.two-col .card-teacher h3 {
  background: #e8f5e9;
  color: #2e7d32;
}
.cards.two-col .card-worker h3 {
  background: #fff3e0;
  color: #e65100;
}

/* 科目群組小標題：綠底框 */
.subject-grid .group-title {
  grid-column: 1/-1;
  /* 跨滿整列 */
  background: #e6f4ea;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 24px 0 8px;
  /* 增加上方間距 */
  color: #374151;
  font-size: 1.25rem;
  font-weight: 700;
}

/* 再次強制補強加號樣式 */
.req-plus, #expert-accordion .acc-inner .acc-req-line .req-plus-hidden,
.req-plus-square {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #ffedd5 !important;
  /* 橘色底 */
  color: #c2410c !important;
  /* 深橘字 */
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  margin: 0 4px;
  flex-shrink: 0;
}

/* 確保 CSS 負責產生加號 */
.req-plus::after, #expert-accordion .acc-inner .acc-req-line .req-plus-hidden::after,
.req-plus-square::after {
  content: "+";
  display: block;
}

/* 模擬練習區塊排版 */
.sim-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ★★★ 補回缺失的按鈕樣式 ★★★ */
.btn-pill {
  display: inline-block;
  background-color: #00a7db;
  /* 亮藍色 */
  color: #fff;
  padding: 10px 24px;
  border-radius: 99px;
  /* 膠囊圓角 */
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color 0.2s, transform 0.1s;
  text-align: left;
  /* 讓按鈕寬度適應內容，但手機版不超過螢幕 */
  max-width: 100%;
  white-space: normal;
}

.btn-pill:hover {
  background-color: #008eba;
  /* 深一點的藍色 */
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 確保連結容器不會影響排列 */
.carousel-track a {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
  /* 防止連結被壓縮 */
}

/* 修正原本的圖片樣式，確保它撐滿連結容器 */
.carousel-image {
  width: 600px;
  /* 維持原本設定的 600px */
  height: 100%;
  display: block;
  /* 移除圖片下方的微小間隙 */
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 針對手機版的寬度進行同步調整 */
@media (max-width: 576px) {
  .carousel-track a {
    width: 100%;
    /* 手機版連結撐滿全寬 */
  }
  .carousel-image {
    width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
  }
}
/* =========================================
   AI 認證總覽頁面專屬樣式 (_ai-cert-overview.scss)
   ========================================= */
.advantage-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 30px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .advantage-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .advantage-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.advantage-cards .adv-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.advantage-cards .adv-card:hover {
  transform: translateY(-5px);
}
.advantage-cards .adv-card .card-image {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.advantage-cards .adv-card .card-image img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.advantage-cards .adv-card .card-image.no-img {
  background-color: #f0f0f0;
}
.advantage-cards .adv-card .card-image.no-img::after {
  content: "Icon";
  color: #999;
}
.advantage-cards .adv-card .card-content {
  padding: 16px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.advantage-cards .adv-card .card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a365d;
}
.advantage-cards .adv-card .card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}
.advantage-cards .adv-card--blue .card-image {
  background-color: #9dc9ec;
}
.advantage-cards .adv-card--pink .card-image {
  background-color: #a9d485;
}
.advantage-cards .adv-card--yellow .card-image {
  background-color: #f4c867;
}
.advantage-cards .adv-card--green .card-image {
  background-color: #f8b4c3;
}

.ai-overview-page .region-title {
  text-align: center;
  color: #3fb5b9;
}

.brand-vendor-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .brand-vendor-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.brand-vendor-cards .brand-card {
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
  text-decoration: none;
}
.brand-vendor-cards .brand-card__header {
  background-color: #43a047;
  color: #fff;
  padding: 16px 12px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-vendor-cards .brand-card__header::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #43a047;
}
.brand-vendor-cards .brand-card__body {
  background-color: #f4f7f9;
  border-radius: 15px;
  padding: 12px 11px 12px;
  margin-top: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #e1e8ed;
}
.brand-vendor-cards .brand-card__logo {
  margin-bottom: 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-vendor-cards .brand-card__logo img {
  max-width: 100%;
  height: auto;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.brand-vendor-cards .brand-card__title {
  color: #1a365d;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.brand-vendor-cards .brand-card__subtitle {
  color: #b22222;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.5;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-vendor-cards .brand-card__list {
  text-align: left;
  padding-left: 0;
  list-style: none;
  width: 100%;
  margin: 0;
}
.brand-vendor-cards .brand-card__list li {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}
.brand-vendor-cards .brand-card__list li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}
.brand-vendor-cards .brand-card__list li:last-child {
  margin-bottom: 0;
}

/* =========================================
   1. Payment Cards: 付款方式卡片 (校園團購)
   ========================================= */
.payment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 8px;
}
.payment-cards .payment-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.payment-cards .payment-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}
.payment-cards .payment-card h4 .icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.payment-cards .payment-card h4 .icon svg {
  width: 100%;
  height: 100%;
}
.payment-cards .payment-card p {
  margin: 4px 0;
  line-height: 1.7;
  color: #374151;
}
.payment-cards .payment-card .pay-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 6px 0 8px;
}
@media (max-width: 576px) {
  .payment-cards {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   2. Campus Group Buy: 校園班級團購
   ========================================= */
.campus-group-buy {
  margin-top: 12px;
  background: #f6fdff;
  /* 輕淺底色 */
  border: 1px solid #e6f8fc;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(20, 40, 60, 0.03);
}
.campus-group-buy h3 {
  font-size: 24px;
  color: #34C2EF;
  margin-bottom: 10px;
  font-weight: 400;
}
@media (max-width: 576px) {
  .campus-group-buy {
    padding: 12px;
  }
  .campus-group-buy h3 {
    font-size: 20px;
  }
}
.campus-group-buy .searchbar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 720px;
}
.campus-group-buy .searchbar .search-input-wrap {
  position: relative;
  flex: 1;
}
.campus-group-buy .searchbar .search-input-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
}
.campus-group-buy .searchbar .search-input-wrap .icon svg {
  width: 18px;
  height: 18px;
  color: #90a4ae;
}
.campus-group-buy .searchbar .search-input-wrap input[type=search] {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}
.campus-group-buy .searchbar .search-input-wrap input[type=search]:focus {
  border-color: #00a7db;
  box-shadow: 0 0 0 3px rgba(0, 167, 219, 0.15);
}
.campus-group-buy .searchbar .btn-search {
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  background: #00a7db;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.campus-group-buy .searchbar .btn-search:hover {
  background: #0099cc;
}
.campus-group-buy .book-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eceff1;
}
.campus-group-buy .book-item .cover {
  width: 90px;
  height: 120px;
  flex: 0 0 56px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.campus-group-buy .book-item .meta {
  display: grid;
  gap: 2px;
}
.campus-group-buy .book-item .meta .code,
.campus-group-buy .book-item .meta .authors {
  font-size: 14px;
  color: #607d8b;
}
.campus-group-buy .book-item .meta .title {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}
.campus-group-buy .book-item .book-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.campus-group-buy .book-item .book-actions .btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.campus-group-buy .order-info {
  margin-top: 16px;
}
.campus-group-buy .order-info p {
  margin: 8px 0 0;
}
.campus-group-buy .selected-books {
  margin-top: 12px;
  border-top: 1px dashed #e0e6e9;
  padding-top: 10px;
}
.campus-group-buy .order-extras-grid,
.campus-group-buy .order-customer-form .grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-width: 580px;
}
.campus-group-buy .order-extras-grid label,
.campus-group-buy .order-customer-form .grid label {
  display: block;
  font-size: 14px;
  color: #546e7a;
  margin-bottom: 6px;
}
.campus-group-buy .order-extras-grid input,
.campus-group-buy .order-extras-grid textarea,
.campus-group-buy .order-customer-form .grid input,
.campus-group-buy .order-customer-form .grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}
.campus-group-buy .order-extras-grid input:focus,
.campus-group-buy .order-extras-grid textarea:focus,
.campus-group-buy .order-customer-form .grid input:focus,
.campus-group-buy .order-customer-form .grid textarea:focus {
  border-color: #00a7db;
  box-shadow: 0 0 0 3px rgba(0, 167, 219, 0.15);
}
.campus-group-buy .order-customer-form .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.campus-group-buy .order-customer-form .grid .col-span-2 {
  grid-column: 1/-1;
}
.campus-group-buy .order-actions,
.campus-group-buy .form-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
@media (max-width: 576px) {
  .campus-group-buy .order-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .campus-group-buy .order-actions .btn {
    width: 100%;
  }
  .campus-group-buy .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .campus-group-buy .form-actions .btn-submit {
    width: 100%;
  }
}
.campus-group-buy .order-customer .order-review .qty {
  margin-left: auto;
}
.campus-group-buy .order-customer .order-review .qty input {
  width: 96px;
  padding: 8px 10px;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  text-align: right;
}
.campus-group-buy .order-success {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e0e6e9;
  border-radius: 10px;
  background: #f8fbfd;
}
.campus-group-buy .order-success h3 {
  margin: 0 0 6px 0;
  color: #00a7db;
}
.campus-group-buy .order-success .contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.campus-group-buy .order-success .contact-cards .contact-card {
  background: #fff;
  border: 1px solid #e0e6e9;
  border-radius: 10px;
  padding: 12px;
}
.campus-group-buy .order-success .contact-cards .contact-card .region {
  font-size: 16px;
  color: #0f2d3a;
  margin-bottom: 6px;
  font-weight: bold;
}
.campus-group-buy .order-success .contact-cards .contact-card .tel {
  color: #33535f;
  margin-top: 2px;
}
@media (min-width: 577px) and (max-width: 768px) {
  .campus-group-buy .order-extras-grid,
  .campus-group-buy .order-customer-form .grid,
  .campus-group-buy .order-success .contact-cards {
    grid-template-columns: 1fr;
  }
  .campus-group-buy .order-customer-form .col-span-2 {
    grid-column: auto;
  }
  .campus-group-buy .book-item {
    flex-wrap: wrap;
  }
  .campus-group-buy .book-item .book-actions {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .campus-group-buy .book-item .book-actions .btn {
    flex: 1 1 auto;
  }
  .campus-group-buy .book-item .qty {
    margin-left: 0;
    margin-top: 8px;
  }
}
@media (max-width: 576px) {
  .campus-group-buy .book-item .book-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .campus-group-buy .book-item .book-actions .btn {
    width: 100%;
    white-space: nowrap;
  }
  .campus-group-buy .order-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .campus-group-buy .order-actions .btn {
    width: 100%;
    white-space: nowrap;
  }
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Page logo (moved from main.css) */
.page-logo {
  text-align: center;
  padding: 12px 0;
}
.page-logo .site-logo {
  height: 34px;
  width: auto;
  display: inline-block;
}
@media (max-width: 576px) {
  .page-logo .site-logo {
    height: 36px;
  }
}

/* =========================================
   3. Recruit CTA: 徵求作譯者
   ========================================= */
.recruit-cta {
  width: 90%;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .recruit-cta {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-card {
  border-radius: 16px;
  padding: 24px;
  border: 1px solid transparent;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  will-change: transform;
}
.job-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.job-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-card h3 svg {
  width: 24px;
  height: 24px;
}
.job-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.job-card.author-type {
  background-color: #E8F8FF;
  border-color: #cdeef9;
}
.job-card.author-type h3 svg {
  color: #0ea5e9;
}

.job-card.translator-type {
  background-color: #FFF6EC;
  border-color: #ffe4c7;
}
.job-card.translator-type h3 svg {
  color: #f59e0b;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s;
}
.btn-dl:hover {
  opacity: 0.9;
}

.btn-dl.blue {
  background-color: #0ea5e9;
}

.btn-dl.amber {
  background-color: #f59e0b;
}

.btn-dl.dark {
  background-color: #334155;
}

/* =========================================
   4. Exam Notice: 考試認證 / 數位徽章 / 下載證書
   ========================================= */
.exam-notice .notice-list {
  --marker-w: -5.4ch;
  --sub-marker-w: 5.7em;
}
.exam-notice .notice-list .sub2 {
  margin-left: calc(var(--marker-w) + var(--sub-marker-w));
  padding-left: 2em;
  text-indent: -2em;
}
.exam-notice .notice-list .sub3 {
  margin-left: calc(var(--marker-w) + var(--sub-marker-w) + 2em);
  padding-left: 1em;
  text-indent: -1em;
}
.exam-notice .img-holder {
  margin: 16px 0 24px;
  margin-left: 1.5em;
}
.exam-notice .img-holder img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.exam-notice .img-holder img.inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.2em;
  vertical-align: -0.15em;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.exam-notice .img-holder figcaption {
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}
.exam-notice .img-holder .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 576px) {
  .exam-notice .img-holder .grid-2 {
    grid-template-columns: 1fr;
  }
}
.exam-notice .lead--bar {
  font-size: 1.75rem;
  line-height: 1.3;
  border-left: 10px solid #03a9f4;
  padding-left: 0.6em;
  margin: 0 0 16px 0;
  font-weight: 500;
  color: #1f2937;
}
@media (min-width: 577px) and (max-width: 768px) {
  .exam-notice .lead--bar {
    font-size: 1.5rem;
    border-left-width: 6px;
  }
}
.exam-notice .step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-right: 4px;
}
.exam-notice .feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.exam-notice .feature-list li {
  margin-bottom: 8px;
  padding-left: 1.2em;
  position: relative;
  line-height: 1.6;
  color: #374151;
}
.exam-notice .feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #1f2937;
}
.exam-notice .feature-list li strong {
  color: #111827;
  font-weight: 700;
}
.exam-notice .text-danger {
  color: #e30000;
}
.exam-notice a {
  color: #0ea5e9;
  text-decoration: underline;
}
.exam-notice a:hover {
  text-decoration: none;
}

/* =========================================
   5. Modify Name: 修改姓名表單
   ========================================= */
.app-form-container {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 10px 18px;
}
.app-form-container header {
  padding: 24px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.app-form-container header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-form-container header svg {
  width: 24px;
  height: 24px;
  color: #0ea5e9;
}
.app-form-container .sep {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0 24px;
}
.app-form-container form {
  padding: 4px;
  display: grid;
  gap: 24px;
}
.app-form-container .form-hint {
  color: #4b5563;
  font-size: 1rem;
  margin: 0;
}
.app-form-container .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .app-form-container .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.app-form-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-form-container .form-group label {
  font-weight: 500;
  color: #1f2937;
  font-size: 1rem;
}
.app-form-container .form-group .req {
  color: #dc2626;
  margin-left: 2px;
}
.app-form-container .form-group input[type=text],
.app-form-container .form-group input[type=tel],
.app-form-container .form-group input[type=email] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}
.app-form-container .form-group input[type=text]:focus,
.app-form-container .form-group input[type=tel]:focus,
.app-form-container .form-group input[type=email]:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}
.app-form-container .form-group input[type=text]::-moz-placeholder, .app-form-container .form-group input[type=tel]::-moz-placeholder, .app-form-container .form-group input[type=email]::-moz-placeholder {
  color: #9ca3af;
}
.app-form-container .form-group input[type=text]::placeholder,
.app-form-container .form-group input[type=tel]::placeholder,
.app-form-container .form-group input[type=email]::placeholder {
  color: #9ca3af;
}
.app-form-container .form-group .note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}
@media (min-width: 1024px) {
  .app-form-container .col-span-2 {
    grid-column: span 2;
  }
}
.app-form-container .captcha-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-form-container .captcha-group input {
  width: 140px;
}
.app-form-container .captcha-group .captcha-img {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: #1f2937;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.app-form-container .captcha-group .btn-refresh {
  font-size: 0.875rem;
  color: #0284c7;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.app-form-container .captcha-group .btn-refresh:hover {
  color: #0369a1;
}
.app-form-container .form-actions {
  padding-top: 8px;
}
.app-form-container .form-actions .btn-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #0ea5e9;
  color: #fff;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}
.app-form-container .form-actions .btn-submit:hover {
  background: #0284c7;
}

/* =========================================
   6. Workshop: 校園研習列表
   ========================================= */
.workshop-list {
  display: grid;
  gap: 12px;
}
.workshop-list .workshop-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}
.workshop-list .workshop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #dbeafe;
}
.workshop-list .workshop-card:hover .w-img img {
  transform: scale(1.04);
}
.workshop-list .workshop-card:hover .badge {
  transform: translateY(-1px);
}
.workshop-list .workshop-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}
.workshop-list .w-img {
  width: 200px;
  height: 100px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workshop-list .w-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.workshop-list .w-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid #e5e7eb;
  padding-left: 12px;
}
.workshop-list .w-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.workshop-list .badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.workshop-list .badge.open {
  background: #16a34a;
}
.workshop-list .badge.closed {
  background: #9ca3af;
}
.workshop-list .w-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #111827;
  line-height: 1.5;
}
.workshop-list .w-title .region {
  font-weight: 500;
}
.workshop-list .w-title .region.north {
  color: #2563eb;
}
.workshop-list .w-title .region.central {
  color: #0ea5a8;
}
.workshop-list .w-title .region.south {
  color: #ef4444;
}
.workshop-list .w-info {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
@media (max-width: 576px) {
  .workshop-list .workshop-card {
    flex-direction: column;
  }
  .workshop-list .w-body {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
  }
  .workshop-list .w-img {
    width: 100%;
    height: 140px;
  }
}

/* =========================================
   7. Workshop Detail: 研習活動內頁
   ========================================= */
.workshop-detail .section {
  margin: 0 0 24px;
}
.workshop-detail .section:last-child {
  margin-bottom: 0;
}
.workshop-detail .label {
  font-size: 1.625rem;
  font-weight: 400;
  color: #49c748;
  margin: 0 0 6px;
  line-height: 1.4;
}
.workshop-detail .label-hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 6px 0 16px;
}
.workshop-detail .kv {
  font-size: 1.25rem;
  color: #111827;
  margin: 0 0 6px;
  line-height: 1.5;
  font-weight: 500;
}
.workshop-detail .para {
  margin: 6px 0;
  color: #374151;
  line-height: 1.8;
  font-size: 1rem;
}
.workshop-detail .list {
  margin: 6px 0;
  padding-left: 1.5em;
  color: #374151;
  line-height: 1.8;
}
.workshop-detail .list li {
  margin-bottom: 4px;
}
.workshop-detail .timegrid {
  margin: 6px 0;
  line-height: 1.8;
  color: #374151;
  white-space: pre-line;
}
.workshop-detail .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin-bottom: 24px;
}
.workshop-detail .info-grid .section {
  margin: 0;
}
@media (min-width: 577px) and (max-width: 768px) {
  .workshop-detail .info-grid {
    grid-template-columns: 1fr;
  }
}
.workshop-detail .footer-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.workshop-detail .footer-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #0ea5e9;
  color: #0b4a6e;
  background: #e0f2fe;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.18s ease;
  cursor: pointer;
}
.workshop-detail .footer-actions .btn .icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: inline-block;
}
.workshop-detail .footer-actions .btn .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.workshop-detail .footer-actions .btn:hover {
  background: #bae6fd;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}
.workshop-detail .footer-actions .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =========================================
   8. Workshop Wizard: 研習報名流程
   ========================================= */
.wizard-container {
  width: 100%;
  min-width: 0;
}
.wizard-container *,
.wizard-container *::before,
.wizard-container *::after {
  box-sizing: border-box;
}
.wizard-container .wizard-steps {
  display: block;
  white-space: nowrap;
  width: 100%;
  padding: 12px;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wizard-container .wizard-steps::-webkit-scrollbar {
  display: none;
}
.wizard-container .wizard-steps li {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 8px;
}
.wizard-container .wizard-steps li:last-child {
  margin-right: 0;
}
.wizard-container .wizard-steps li {
  color: #64748b;
  font-size: 15px;
  cursor: default;
}
.wizard-container .wizard-steps li .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-right: 8px;
}
.wizard-container .wizard-steps li.active {
  color: #0b4a6e;
  font-weight: 500;
}
.wizard-container .wizard-steps li.active .dot {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #0b4a6e;
}
.wizard-container .wizard-steps li.done {
  color: #047857;
  cursor: pointer;
}
.wizard-container .wizard-steps li.done .dot {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}
.wizard-container .wizard-steps .sep {
  display: inline-block;
  vertical-align: middle;
  min-width: 24px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-right: 8px;
}
.wizard-container .wizard-steps li.done + .sep {
  background: #10b981;
}
@media (max-width: 576px) {
  .wizard-container .wizard-steps {
    padding: 10px;
  }
  .wizard-container .wizard-steps li {
    font-size: 18px;
    margin-right: 12px;
  }
  .wizard-container .wizard-steps li .dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-width: 1.5px;
    margin-right: 6px;
  }
  .wizard-container .wizard-steps .sep {
    display: none;
  }
}
.wizard-container .step-panel {
  display: none;
  max-width: 720px;
  margin: 16px auto;
  width: 100%;
}
.wizard-container .step-panel.show {
  display: block;
  animation: fade-in 0.25s ease;
}
.wizard-container .form-grid-wizard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 576px) {
  .wizard-container .form-grid-wizard {
    grid-template-columns: 1fr;
  }
}
.wizard-container .form-grid-wizard .full-width {
  grid-column: 1/-1;
}
.wizard-container .form-grid-wizard .school-row {
  display: grid;
  grid-template-columns: 130px 130px 1fr;
  gap: 20px;
}
@media (max-width: 576px) {
  .wizard-container .form-grid-wizard .school-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.wizard-container .wizard-nav {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-end;
}
@media (max-width: 576px) {
  .wizard-container .wizard-nav {
    justify-content: space-between;
  }
  .wizard-container .wizard-nav .btn {
    flex: 1;
    padding: 12px;
    justify-content: center;
  }
}
.wizard-container .field label {
  display: block;
  font-size: 15px;
  color: #374151;
  margin: 0 0 6px;
  font-weight: 500;
}
.wizard-container .field label .req {
  color: #e11d48;
  margin-left: 4px;
  font-weight: 700;
}
.wizard-container .input,
.wizard-container .select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  font-size: 16px;
}
.wizard-container .input:focus,
.wizard-container .select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}
.wizard-container .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 576px) {
  .wizard-container .summary-grid {
    grid-template-columns: 1fr;
  }
}
.wizard-container .summary-grid .summary-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.wizard-container .summary-grid .summary-item h4 {
  font-size: 14px;
  color: #6b7280;
}
.wizard-container .summary-grid .summary-item p {
  font-size: 16px;
  color: #111827;
  font-weight: 500;
}
.wizard-container .summary-center {
  max-width: 100%;
  margin: 20px auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.wizard-container .summary-center ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.wizard-container .summary-center li {
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .wizard-container .summary-center li {
    flex-direction: row;
  }
}
.wizard-container .summary-center li strong {
  color: #64748b;
  min-width: 100px;
  margin-right: 8px;
}
.wizard-container .summary-center li strong::after {
  content: "：";
}
.wizard-container .summary-center li span {
  color: #0f172a;
  font-weight: 500;
}
.wizard-container .agree-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-top: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}
.wizard-container .agree-box input {
  margin-top: 4px;
}
.wizard-container .agree-box label {
  font-size: 15px;
  color: #0c4a6e;
  cursor: pointer;
}
.wizard-container .done-box {
  text-align: center;
  padding: 40px 20px;
}
.wizard-container .done-box h3 {
  color: #16a34a;
  font-size: 1.5rem;
}
.wizard-container .title-hr {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0 24px;
}
.wizard-container .field .input.error,
.wizard-container .field .select.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.wizard-container .field .error-msg {
  display: block;
  font-size: 13px;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 500;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* =========================================
   9. Certificate Download: 配件/範例下載
   ========================================= */
.cert-download-wrapper {
  min-height: 100vh;
  padding: 0 16px 15px 16px;
  font-family: system-ui, -apple-system, "Noto Sans TC", sans-serif;
  color: #111827;
}
.cert-download-wrapper .cert-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert-download-wrapper .download-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  color: #03a9f4;
  margin: 10px 0 0 0;
  font-weight: 500;
}
.cert-download-wrapper .download-section-title .icon-play {
  width: 30px;
  height: 30px;
}
.cert-download-wrapper .download-section-title .icon-play svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cert-download-wrapper .cert-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  background: #fff;
  overflow: hidden;
}
.cert-download-wrapper .cert-card header {
  padding: 8px 20px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ff9646;
}
.cert-download-wrapper .cert-card header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cert-download-wrapper .cert-card header h1 .icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
}
.cert-download-wrapper .cert-card header h1 .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cert-download-wrapper .cert-card .body {
  padding: 10px 28px;
}
.cert-download-wrapper .book-info-layout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cert-download-wrapper .book-info-layout .book-cover {
  flex: 0 0 180px;
}
.cert-download-wrapper .book-info-layout .book-cover img {
  width: 100%;
  height: auto;
}
.cert-download-wrapper .book-info-layout .book-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 22px;
}
.cert-download-wrapper .book-info-layout .book-meta .book-code {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 500;
}
.cert-download-wrapper .book-info-layout .book-meta .book-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.cert-download-wrapper .book-info-layout .book-meta .book-author {
  font-size: 1.2rem;
  color: #374151;
}
.cert-download-wrapper .book-info-layout .book-meta .book-isbn {
  font-size: 1.2rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.cert-download-wrapper .video-chapter-wrapper {
  margin: 10px 0 20px 40px;
}
.cert-download-wrapper .video-chapter-wrapper .chapter-name {
  font-size: 1.35rem;
  color: #334155;
  margin-bottom: 2px;
}
.cert-download-wrapper .video-chapter-wrapper .ebook-access {
  margin-bottom: 12px;
  font-size: 20PX;
}
.cert-download-wrapper .video-chapter-wrapper .ebook-access .ebook-link {
  color: #03a9f4;
  text-decoration: none;
  font-weight: 500;
}
.cert-download-wrapper .video-chapter-wrapper .ebook-access .ebook-link:hover {
  text-decoration: underline;
}
.cert-download-wrapper .video-chapter-wrapper .video-grid-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  table-layout: fixed;
}
.cert-download-wrapper .video-chapter-wrapper .video-grid-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 8px;
  text-align: center;
  font-size: 16px;
}
.cert-download-wrapper .video-chapter-wrapper .video-grid-table td a {
  color: #0ea5e9;
  text-decoration: none;
  display: block;
}
.cert-download-wrapper .video-chapter-wrapper .video-grid-table td a:hover {
  color: #0284c7;
  background-color: #f0f9ff;
}
.cert-download-wrapper .video-chapter-wrapper .video-grid-table td.empty {
  background-color: #ffffff;
}
.cert-download-wrapper .download-list {
  list-style: none;
  padding: 0;
  margin: -10px 0 -3PX 17px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ffffff;
  overflow: hidden;
}
.cert-download-wrapper .download-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px;
  transition: background-color 0.2s ease;
}
.cert-download-wrapper .download-list li:last-child {
  border-bottom: none;
}
.cert-download-wrapper .download-list li:hover {
  background-color: #eef6ff;
}
.cert-download-wrapper .download-list li .file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.cert-download-wrapper .download-list li .file-info .file-name {
  font-size: 16px;
  color: #334155;
  line-height: 1.5;
  word-break: break-all;
  font-weight: 500;
}
.cert-download-wrapper .download-list li .file-action {
  flex-shrink: 0;
  margin-left: 16px;
}
.cert-download-wrapper .download-list li .file-action .btn {
  min-width: 70px;
  padding: 3px 8px;
}
@media (max-width: 576px) {
  .cert-download-wrapper {
    padding: 20px 12px;
  }
  .cert-download-wrapper .cert-card header h1 {
    justify-content: center;
  }
  .cert-download-wrapper .book-info-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .cert-download-wrapper .book-info-layout .book-cover {
    flex: 0 0 auto;
    width: 150px;
  }
  .cert-download-wrapper .book-info-layout .book-meta {
    padding-top: 0;
  }
  .cert-download-wrapper .download-list {
    margin-left: 0;
  }
  .cert-download-wrapper .download-list li {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }
  .cert-download-wrapper .download-list li .file-info {
    text-align: left;
  }
  .cert-download-wrapper .download-list li .file-action {
    margin-left: 10px;
  }
  .cert-download-wrapper .download-list li .file-action .btn {
    width: auto;
  }
  .cert-download-wrapper .video-chapter-wrapper {
    margin-left: 0;
  }
  .cert-download-wrapper .video-chapter-wrapper .video-grid-table tr {
    display: flex;
    flex-wrap: wrap;
  }
  .cert-download-wrapper .video-chapter-wrapper .video-grid-table td {
    flex: 0 0 50%;
    padding: 8px 4px;
    font-size: 14px;
  }
}

/* =========================================
   10. Online Catalog: 線上目錄 (簡約靠左版)
   ========================================= */
.catalog-list-section {
  margin-bottom: 32px;
}
.catalog-list-section .section-title {
  color: #111827;
  margin: 0 0 8px;
  text-align: left;
  display: block;
}
.catalog-list-section .section-title::before, .catalog-list-section .section-title::after {
  content: none;
  display: none;
}
.catalog-list-section .section-title span {
  padding: 0;
}
.catalog-list-section .section-title span::before, .catalog-list-section .section-title span::after {
  content: none;
}
.catalog-list-section .title-hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 20px;
}
.catalog-list-section .catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.catalog-list-section .catalog-grid .item {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
}
.catalog-list-section .catalog-grid .item a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.catalog-list-section .catalog-grid .item a:hover {
  color: #0ea5e9;
}
@media (max-width: 576px) {
  .catalog-list-section .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   11. Contact Us: 聯絡我們
   ========================================= */
.contact-us-wrapper .sec-title {
  font-size: 1.375rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 6px;
}
.contact-us-wrapper .sub-title {
  font-size: 1.125rem;
  color: #1f2937;
  margin: 20px 0 6px;
  font-weight: 500;
}
.contact-us-wrapper .title-hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 8px 0 12px;
}
.contact-us-wrapper .para {
  margin: 6px 0;
  color: #374151;
  line-height: 1.8;
  font-size: 1rem;
}
.contact-us-wrapper .contact-list {
  margin: 6px 0 10px;
  padding-left: 1.25em;
  color: #374151;
  line-height: 1.8;
  font-size: 1rem;
  list-style: disc;
}
.contact-us-wrapper .contact-list li {
  margin: 4px 0;
}
.contact-us-wrapper .tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0 24px;
}
.contact-us-wrapper .tabbar .tab {
  width: 100%;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #334155;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
.contact-us-wrapper .tabbar .tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}
.contact-us-wrapper .tabbar .tab.active {
  background: #fff;
  color: #0b4a6e;
  border-color: #bae6fd;
  box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.18);
  font-weight: 500;
}
@media (min-width: 577px) and (max-width: 768px) {
  .contact-us-wrapper .tabbar {
    grid-template-columns: 1fr;
  }
}
.contact-us-wrapper .section-panel {
  display: none;
  animation: fade-in 0.2s ease;
}
.contact-us-wrapper .section-panel.active {
  display: block;
}
.contact-us-wrapper .contact-form {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #fafafa;
}
.contact-us-wrapper .contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 577px) and (max-width: 768px) {
  .contact-us-wrapper .contact-form .form-grid {
    grid-template-columns: 1fr;
  }
}
.contact-us-wrapper .contact-form .form-field.full {
  grid-column: 1/-1;
}
.contact-us-wrapper .contact-form .form-field label {
  display: block;
  font-size: 14px;
  color: #1f2937;
  margin: 0 0 6px;
  font-weight: 500;
}
.contact-us-wrapper .contact-form .form-field input[type=text],
.contact-us-wrapper .contact-form .form-field input[type=email],
.contact-us-wrapper .contact-form .form-field textarea,
.contact-us-wrapper .contact-form .form-field select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}
.contact-us-wrapper .contact-form .form-field input[type=text]:focus,
.contact-us-wrapper .contact-form .form-field input[type=email]:focus,
.contact-us-wrapper .contact-form .form-field textarea:focus,
.contact-us-wrapper .contact-form .form-field select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.contact-us-wrapper .contact-form .form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-us-wrapper .contact-form .form-actions {
  margin-top: 16px;
  text-align: center;
}
.contact-us-wrapper .captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-us-wrapper .captcha-row input[type=text] {
  flex: 1;
  min-width: 0;
}
.contact-us-wrapper .captcha-row [id^=captcha-code-] {
  min-width: 100px;
  padding: 8px 12px;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-align: center;
  font-family: monospace;
  letter-spacing: 2px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.contact-us-wrapper .captcha-row button.btn-regen {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0ea5e9;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-us-wrapper .captcha-row button.btn-regen:hover {
  text-decoration: underline;
}

/* =========================================
   10. Teacher Login: 教師登入表單
   ========================================= */
.login-form-table {
  width: 100%;
  max-width: 400px;
  margin: 0;
}
.login-form-table .login-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.login-form-table .login-label {
  flex: 0 0 60px;
  font-size: 1.1rem;
  color: #374151;
  font-weight: 500;
}
.login-form-table .login-input-wrap {
  flex: 1;
}
.login-form-table .login-input-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.login-form-table .login-input-wrap input:focus {
  border-color: #00a7db;
  box-shadow: 0 0 0 3px rgba(0, 167, 219, 0.1);
}
.login-form-table .login-footer {
  margin-top: 25px;
  text-align: center;
}
.login-form-table .login-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 46px;
  font-size: 0.95rem;
}
.login-form-table .login-links a {
  color: #666;
  text-decoration: none;
}
.login-form-table .login-links a:hover {
  color: #00a7db;
  text-decoration: underline;
}
.login-form-table .btn-login {
  width: 100%;
  max-width: 200px;
  padding: 10px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* =========================================
   6. Teacher Application: 教師填寫申請資料
   ========================================= */
.teacher-apply-section .greeting-box {
  background: #f0f9ff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #bae6fd;
  margin-bottom: 32px;
}
.teacher-apply-section .greeting-box .greeting-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0369a1;
  margin-bottom: 12px;
}
.teacher-apply-section .greeting-box .greeting-text {
  line-height: 1.8;
  color: #334155;
  margin: 0;
  font-size: 1rem;
}
.teacher-apply-section .business-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.teacher-apply-section .business-contact .contact-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid #38bdf8;
}
.teacher-apply-section .business-contact .contact-item h3 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}
.teacher-apply-section .business-contact .contact-item p {
  margin: 4px 0;
  font-size: 1rem;
}
.teacher-apply-section .business-contact .contact-item p strong {
  color: #1e293b;
  font-weight: 600;
}
.teacher-apply-section .business-contact .contact-item a {
  color: #0ea5e9;
  text-decoration: none;
}
.teacher-apply-section .business-contact .contact-item a:hover {
  text-decoration: underline;
}
.teacher-apply-section .apply-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.teacher-apply-section .apply-section-title svg {
  color: #475569;
}
.teacher-apply-section .apply-section-desc {
  margin-bottom: 24px;
  color: #64748b;
  font-size: 0.95rem;
}
.teacher-apply-section .info-table-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.teacher-apply-section .info-table-wrap .info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px 20px;
}
@media (max-width: 576px) {
  .teacher-apply-section .info-table-wrap .info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.teacher-apply-section .info-table-wrap .info-grid .info-label {
  font-weight: 500;
  color: #64748b;
}
.teacher-apply-section .info-table-wrap .info-grid .info-value {
  color: #1e293b;
}
.teacher-apply-section .application-form {
  display: grid;
  gap: 24px;
}
.teacher-apply-section .application-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.teacher-apply-section .application-form .form-row.row-small {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.teacher-apply-section .application-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #5cb3d5;
  font-size: larger;
}
.teacher-apply-section .application-form .form-group label .req {
  color: #ef4444;
  margin-right: 4px;
}
.teacher-apply-section .application-form .form-group input[type=text],
.teacher-apply-section .application-form .form-group input[type=number],
.teacher-apply-section .application-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.teacher-apply-section .application-form .form-group input[type=text]:focus,
.teacher-apply-section .application-form .form-group input[type=number]:focus,
.teacher-apply-section .application-form .form-group textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.teacher-apply-section .application-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.teacher-apply-section .application-form .form-group .options-flex {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}
@media (max-width: 576px) {
  .teacher-apply-section .application-form .form-group .options-flex {
    gap: 12px;
  }
}
.teacher-apply-section .application-form .form-group .options-flex label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: normal;
}
.teacher-apply-section .application-form .form-group .options-flex label input[type=radio],
.teacher-apply-section .application-form .form-group .options-flex label input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #0ea5e9;
  margin: 0;
}
.teacher-apply-section .application-form .form-group .options-flex label span {
  color: #1e293b;
}
.teacher-apply-section .application-form .form-group .options-flex label span.disabled-text {
  color: #64748b;
}
.teacher-apply-section .application-form .form-group .options-flex .inline-input {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-left: 8px;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
@media (max-width: 576px) {
  .teacher-apply-section .application-form .form-group .options-flex .inline-input {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}
.teacher-apply-section .application-form .form-group .options-flex .inline-input:focus {
  border-color: #0ea5e9;
}
.teacher-apply-section .application-form .captcha-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}
@media (max-width: 576px) {
  .teacher-apply-section .application-form .captcha-group {
    padding: 16px;
    gap: 12px;
  }
}
.teacher-apply-section .application-form .captcha-group label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0;
}
.teacher-apply-section .application-form .captcha-group .captcha-input {
  width: 140px;
  height: 45px;
}
@media (max-width: 576px) {
  .teacher-apply-section .application-form .captcha-group .captcha-input {
    width: 100%;
    height: 45px;
  }
}
.teacher-apply-section .application-form .captcha-group .captcha-code {
  background: #e2e8f0;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 4px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.teacher-apply-section .application-form .captcha-group .btn-refresh {
  background: none;
  border: none;
  color: #0ea5e9;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}
.teacher-apply-section .application-form .captcha-group .btn-refresh:hover {
  color: #0284c7;
}
.teacher-apply-section .application-form .form-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}
.teacher-apply-section .application-form .form-actions .btn {
  padding: 14px 48px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 576px) {
  .teacher-apply-section .application-form .form-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
  }
}
.teacher-apply-section .application-form .form-actions .btn.btn-submit {
  background: #0ea5e9;
  color: #fff;
}
.teacher-apply-section .application-form .form-actions .btn.btn-submit:hover {
  background: #0284c7;
}
.teacher-apply-section .application-form .form-actions .btn.btn-cancel {
  background: #fff;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.teacher-apply-section .application-form .form-actions .btn.btn-cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.detail-layout {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-product-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 100%;
}

.product-top-section {
  display: grid;
  grid-template-columns: 35% 60%;
  gap: 32px;
}
@media (min-width: 577px) and (max-width: 768px) {
  .product-top-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 576px) {
  .product-top-section {
    /* 手機版：將上半部改為直欄，並保證畫廊在最上層 */
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .product-top-section .product-gallery {
    order: 0;
  }
  .product-top-section .product-info {
    order: 1;
  }
}

.product-gallery {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-gallery .main-image-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: #fff;
  padding: 20px;
  border: 0;
  border-radius: 0;
  margin: 0;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 577px) and (max-width: 768px) {
  .product-gallery .main-image-wrap {
    cursor: default;
    pointer-events: none;
  }
}
.product-gallery .main-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  filter: none;
}
.product-gallery .preview-strip {
  border-top: 1px solid #e5e7eb;
  margin: 0;
  padding: 0;
  background: #fff;
  height: 70px;
  display: flex;
  align-items: stretch;
  position: relative;
}
@media (min-width: 577px) and (max-width: 768px) {
  .product-gallery .preview-strip {
    height: 90px;
  }
}
.product-gallery .preview-strip .pv-nav {
  width: 24px;
  background: linear-gradient(to bottom, #ffffff 0%, #f3f4f6 100%);
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: Arial, sans-serif;
  flex-shrink: 0;
  transition: all 0.2s;
}
@media (min-width: 577px) and (max-width: 768px) {
  .product-gallery .preview-strip .pv-nav {
    width: 30px;
    height: 90px;
  }
}
.product-gallery .preview-strip .pv-nav:hover {
  background: linear-gradient(to bottom, #f9fafb 0%, #e5e7eb 100%);
  color: #555;
}
.product-gallery .preview-strip .pv-nav.pv-prev {
  border-right: 1px dashed #d1d5db;
}
.product-gallery .preview-strip .pv-nav.pv-next {
  border-left: 1px dashed #d1d5db;
}
.product-gallery .preview-strip .pv-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
  padding: 0 8px;
  scroll-behavior: smooth;
}
.product-gallery .preview-strip .pv-track::-webkit-scrollbar {
  display: none;
}
.product-gallery .preview-strip .pv-track {
  scrollbar-width: none;
}
@media (max-width: 1024px) {
  .product-gallery .preview-strip .pv-track {
    gap: 10px;
  }
}
.product-gallery .preview-strip .pv-item {
  width: 24px;
  height: 64px;
  border: 1px solid #e5e7eb;
  padding: 1px;
  border-radius: 0;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
  transition: all 0.2s;
  background: #fff;
}
@media (min-width: 577px) and (max-width: 768px) {
  .product-gallery .preview-strip .pv-item {
    width: 36px;
    height: 64px;
  }
}
.product-gallery .preview-strip .pv-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.product-gallery .preview-strip .pv-item.active, .product-gallery .preview-strip .pv-item:hover {
  opacity: 1;
  border-color: #F59E0B;
  box-shadow: 0 0 0 1px #F59E0B inset;
}

.product-info {
  min-width: 0;
}
.product-info .badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.product-info .badges .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #fff;
}
.product-info .badges .badge.badge-cat {
  background-color: #1E4D8E;
}
.product-info .badges .badge.badge-ebook {
  background-color: #969696;
}
.product-info .book-title {
  font-size: 26px;
  font-weight: 500;
  color: #1A1C1E;
  margin: 0 0 8px;
  line-height: 1.4;
}
.product-info .book-title-en {
  font-size: 18px;
  color: #6b7280;
  font-weight: 400;
  margin: 0 0 20px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.product-info .info-list .info-row {
  display: flex;
  font-size: 16px;
  line-height: 1.8;
}
.product-info .info-list .info-row dt {
  color: #4b5563;
  width: 4.5em;
  flex-shrink: 0;
  font-weight: 500;
}
.product-info .info-list .info-row dd {
  color: #6d6d6d;
  margin: 0;
}
.product-info .info-list .info-row dd.price {
  color: #e11d48;
  font-weight: 700;
  font-size: 20px;
}
.product-info .info-list .info-row dd.price::before {
  content: "NT$";
  font-size: 14px;
  color: #6b7280;
  margin-right: 4px;
  font-weight: 400;
}

.side-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0;
}
.side-card .card-title {
  background-color: #169bd5;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  padding: 10px 0;
  margin: 0;
}
.side-card.recommend-card .card-title {
  background-color: #F59E0B;
}
.side-card .card-body {
  padding: 16px 20px;
}

.shop-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #374151;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.shop-btn:hover {
  background-color: #f9fafb;
  color: #169bd5;
  border-color: #169bd5;
  transform: translateY(-1px);
}

.resource-btn-group {
  display: grid;
  grid-template-columns: repeat(2, 175px);
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 576px) {
  .resource-btn-group {
    grid-template-columns: 1fr;
  }
}
.resource-btn-group .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 8px 16px;
}

.rec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
  margin: 0;
}
@media (max-width: 1024px) {
  .rec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
.rec-list li {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed #eee;
  padding-bottom: 20px;
}
.rec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
@media (max-width: 1024px) {
  .rec-list li {
    border-bottom: 0;
    padding-bottom: 0;
  }
}
.rec-list .rec-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.rec-list .rec-item-link img {
  width: 120px;
  aspect-ratio: 3/4;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s;
}
@media (max-width: 1024px) {
  .rec-list .rec-item-link img {
    width: 100%;
    max-width: 160px;
  }
}
.rec-list .rec-item-link .rec-title {
  font-size: 16px;
  color: #374151;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.rec-list .rec-item-link:hover img {
  transform: translateY(-3px);
  border-color: #169bd5;
}
.rec-list .rec-item-link:hover .rec-title {
  color: #169bd5;
}

.textbook-home-wrap .content-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  margin: 0 auto 32px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .textbook-home-wrap .content-card {
    padding: 28px;
  }
}
@media (min-width: 1024px) {
  .textbook-home-wrap .content-card {
    padding: 36px;
  }
}
.textbook-home-wrap .card-banner {
  height: 300px;
  display: block;
  margin: -20px -20px 16px;
  background: linear-gradient(135deg, #e9eef5, #dfe7ef);
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}
@media (min-width: 577px) and (max-width: 768px) {
  .textbook-home-wrap .card-banner {
    height: auto;
    aspect-ratio: auto;
    margin: -28px -28px 16px;
  }
}
@media (max-width: 576px) {
  .textbook-home-wrap .card-banner {
    height: 180px;
    margin: -20px -20px 16px;
  }
}
@media (min-width: 1024px) {
  .textbook-home-wrap .card-banner {
    margin: -36px -36px 16px;
  }
}
.textbook-home-wrap .card-banner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (min-width: 577px) and (max-width: 768px) {
  .textbook-home-wrap .card-banner img {
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
  }
}
@media (max-width: 576px) {
  .textbook-home-wrap .card-banner img {
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
}
.textbook-home-wrap .page-header {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.textbook-home-wrap .page-header .page-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .textbook-home-wrap .page-header .page-title {
    font-size: 38px;
  }
}
.textbook-home-wrap .page-header .subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #3fb5b9;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .textbook-home-wrap .page-header .subtitle {
    font-size: 28px;
  }
}
.textbook-home-wrap .hero-ribbons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 20px;
}
@media (min-width: 768px) {
  .textbook-home-wrap .hero-ribbons {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
.textbook-home-wrap .hero-ribbons .ribbon {
  position: relative;
  background: #3789ba;
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  text-align: center;
}
.textbook-home-wrap .hero-ribbons .ribbon:nth-child(1) {
  background: #5ca9cf;
}
.textbook-home-wrap .hero-ribbons .ribbon:nth-child(2) {
  background: #6abf6f;
}
.textbook-home-wrap .hero-ribbons .ribbon:nth-child(3) {
  background: #dba933;
}
.textbook-home-wrap .hero-ribbons .ribbon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 14px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.5) transparent transparent;
  border-top-right-radius: 2px;
}
.textbook-home-wrap .hero-ribbons .ribbon .r-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 4px;
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}
.textbook-home-wrap .hero-ribbons .ribbon .r-icon i {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
}
.textbook-home-wrap .hero-ribbons .ribbon .r-title {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}
.textbook-home-wrap .domain-section {
  margin: 24px auto 0;
  padding: 20px;
}
.textbook-home-wrap .domain-section .domain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 500px) {
  .textbook-home-wrap .domain-section .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .textbook-home-wrap .domain-section .domain-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.textbook-home-wrap .domain-section .domain-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.textbook-home-wrap .domain-section .domain-item:hover {
  transform: translateY(-2px);
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.textbook-home-wrap .domain-section .domain-item:hover .domain-label::after {
  width: 100%;
}
.textbook-home-wrap .domain-section .domain-item .domain-icon {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  background: #d2d2d2;
}
.textbook-home-wrap .domain-section .domain-item .domain-label {
  position: relative;
  font-size: 17px;
  font-weight: 300;
  color: #111827;
}
.textbook-home-wrap .domain-section .domain-item .domain-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width 0.2s;
}
.textbook-home-wrap .teaching-section {
  margin: 10px auto 0;
  text-align: center;
  padding: 20px;
}
.textbook-home-wrap .teaching-section .teaching-title {
  font-size: 28px;
  color: #3fb5b9;
  margin-bottom: 16px;
  font-weight: 500;
}
.textbook-home-wrap .teaching-section .teaching-image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.textbook-home-wrap .teaching-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.resource-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 40px;
}

.resource-card {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}
.resource-card .card-header {
  background-color: #00a7db;
  padding: 12px;
  text-align: center;
}
.resource-card .card-header h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 300;
  margin: 0;
  letter-spacing: 1px;
}
.resource-card .card-body {
  padding: 40px 30px;
}
.resource-card .login-body {
  text-align: center;
}
.resource-card .login-body .input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.resource-card .login-body .pwd-input {
  width: 240px;
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}
.resource-card .login-body .pwd-input:focus {
  border-color: #00a7db;
}
.resource-card .login-body .btn-go {
  background-color: #ea6f77;
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.resource-card .login-body .btn-go:hover {
  background-color: #d65a62;
}
.resource-card .login-body .notice {
  color: #00a7db;
  font-size: 16px;
  line-height: 1.6;
}
.resource-card .content-body {
  padding: 20px;
}
.resource-card .content-body .book-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
@media (max-width: 576px) {
  .resource-card .content-body .book-summary {
    flex-direction: column;
  }
}
.resource-card .content-body .book-summary .bs-img {
  flex: 0 0 160px;
}
.resource-card .content-body .book-summary .bs-img img {
  width: 100%;
  height: auto;
}
.resource-card .content-body .book-summary .bs-info h2 {
  font-size: 22px;
  color: #000;
  margin: 16px 0 12px 0;
  font-weight: 300;
}
.resource-card .content-body .book-summary .bs-info .meta {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}
.resource-card .content-body .download-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-top: 24px;
}
.resource-card .content-body .dl-table {
  width: 100%;
  border-collapse: collapse;
}
.resource-card .content-body .dl-table tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}
.resource-card .content-body .dl-table tr:last-child {
  border-bottom: 0;
}
.resource-card .content-body .dl-table tr:hover {
  background-color: #f9fafb;
}
.resource-card .content-body .dl-table td {
  padding: 16px 24px;
  font-size: 18px;
  color: #374151;
  font-weight: 300;
  vertical-align: middle;
}
.resource-card .content-body .dl-table td:first-child {
  color: #111827;
}
.resource-card .content-body .dl-table td.action {
  text-align: right;
  width: 140px;
}
.resource-card .content-body .dl-table .btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #00a7db;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.resource-card .content-body .dl-table .btn-action i {
  font-size: 16px;
}
.resource-card .content-body .dl-table .btn-action:hover {
  background-color: #008ecb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 167, 219, 0.25);
}
.resource-card .content-body .dl-table .btn-action:active {
  transform: translateY(0);
}
.resource-card .content-body .dl-table .no-file {
  font-size: 16px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
}
.resource-card .content-body .back-link {
  margin-top: 24px;
  text-align: center;
}
.resource-card .content-body .back-link a {
  font-size: 15px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.resource-card .content-body .back-link a:hover {
  color: #00a7db;
}
.resource-card .content-body .system-note {
  margin-top: 24px;
  padding: 20px 24px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.resource-card .content-body .system-note .note-head {
  font-size: 22px;
  color: #00a7db;
  margin: 0 0 16px 0;
  font-weight: 500;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  display: inline-block;
}
.resource-card .content-body .system-note .note-item {
  margin-bottom: 16px;
}
.resource-card .content-body .system-note .note-item:last-child {
  margin-bottom: 0;
}
.resource-card .content-body .system-note .note-item h4 {
  font-size: 18px;
  color: #111827;
  margin: 0 0 4px 0;
  font-weight: 500;
}
.resource-card .content-body .system-note .note-item p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
.resource-card .content-body .system-note .note-item .highlight {
  color: #ea6f77;
  font-weight: 500;
}

/* 一試雙證計劃：左圖右文 (因為 SCSS 沒定義這個，先保留此樣式) */
.dual-plan {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 24px;
  align-items: start;
}

.dual-plan .dual-media {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}

.dual-plan .dual-media img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

@media (max-width: 1024px) {
  .dual-plan {
    grid-template-columns: 1fr;
  }
  .dual-plan .dual-media img {
    max-width: 100%;
  }
}
/* =========================================
   Mapping page styles (_mapping.scss)
   ========================================= */
.license-table-section .table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
}
.license-table-section table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.license-table-section thead th,
.license-table-section td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.license-table-section thead th {
  position: sticky;
  top: 0;
  background: #F9FBFD;
  z-index: 1;
}
.license-table-section tbody tr:nth-child(odd) {
  background: #FAFAFA;
}
.license-table-section tbody tr:hover {
  background: #EAF5FF;
  transition: background-color 0.2s ease;
}

/* 篩選列 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 20px;
}

.filter-bar label {
  color: #374151;
  font-size: 14px;
}

.filter-bar select {
  min-width: 280px;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

/* 標題與導言 */
.page-title {
  font-weight: 400;
}

.page-hr {
  border: 0;
  border-top: 3px solid #D1D5DB;
  margin: 10px 0 16px;
}

.section-lead {
  font-size: 1.25rem;
  line-height: 1.9;
  margin-bottom: -10px;
  color: #3fb5b9;
}

/* Mapping-specific card & title (scoped only to this page) */
.mapping-page {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 40px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.mapping-page .page-header {
  max-width: 98%;
  margin: 0 auto;
  text-align: center;
}
.mapping-page .page-header .page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1A1C1E;
  text-align: left;
}
.mapping-page .page-header .intro-text {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: left;
}

/* Filter bar - mapping page specific */
.mapping-page .filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #F3F7FB;
  /* 淡底色 */
  padding: 12px 16px;
  border-radius: 8px;
  margin: 18px auto;
  /* 置中 */
  width: auto;
}

.mapping-page .filter-bar label {
  font-size: 1.125rem;
  /* 約 18px，較大字 */
  font-weight: 600;
  color: #1f2937;
  margin-right: 8px;
}

.mapping-page .filter-bar select {
  min-width: 280px;
  height: 40px;
}

@media (max-width: 576px) {
  .mapping-page {
    padding: 15px;
  }
  .mapping-page .filter-bar {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    width: 100%;
    margin: 18px 0;
  }
  .mapping-page .filter-bar select {
    width: 100%;
    min-width: 0;
  }
}
/* Mapping list */
.mapping-list {
  margin-top: 6px;
  padding-left: 1.25rem;
}
.mapping-list li {
  margin-bottom: 6px;
  color: #374151;
  line-height: 1.6;
}

/* 手機微調 */
@media (max-width: 576px) {
  .filter-bar select {
    min-width: 220px;
  }
}
.no-data-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: left;
  min-height: 400px;
  gap: 8px;
}
.no-data-container .no-data-icon {
  font-size: 100px;
  color: #7f7f7f;
  opacity: 0.6;
  line-height: 1;
}
.no-data-container .no-data-content {
  display: flex;
  flex-direction: column;
}
.no-data-container .no-data-title {
  font-size: 24px;
  color: #7f7f7f;
  font-weight: 500;
  margin-bottom: 1px;
}
.no-data-container .no-data-text {
  font-size: 24px;
  color: #333333;
  font-weight: 500;
  line-height: 1.4;
}/*# sourceMappingURL=main.css.map */