/* ============================================
   core.css — 全站共用樣式
   Reset / Variables / Utilities / Header / Footer
   ============================================ */

/* --- Variables --- */
:root {
  --primary-color:       #683FCE;
  --accent-color:        #A78BFA;
  --color-pink:          #D168DA;
  --color-light-purple:  #E8E2F9;
  --color-lavender-mid:  #D5CEF3;
  --bg-base:             #F5F5F8;
  --text-dark:           #111111;
  --text-base:           #444444;
  --text-muted:          #6B6B6B;
  --white:               #FFFFFF;
  --radius-card:         1.25rem;
  --transition:          0.3s ease;
  --max-width:           1200px;
  --gradient-brand:      linear-gradient(90deg, #ED4EE9 10.1%, #6A37D4 100%);
  --gradient-border:     linear-gradient(180deg, #ED4EE9 10.1%, #6A37D4 100%);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Montserrat', 'Noto Sans TC', sans-serif; background: #F2EFF0; color: var(--text-base); line-height: 1.6; position: relative; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* --- Background Glow --- */
.bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-glow__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(15px);
}
/* Hero 左上 */
.bg-glow__orb--hero {
  width: 36rem;
  height: 36rem;
  background: url('../images/glow.png') center / cover no-repeat;
  opacity: .2;
  filter: blur(65px);
  top: -10rem;
  left: -8rem;
}
/* 中段右側 */
.bg-glow__orb--mid {
  width: 20rem;
  height: 20rem;
  background: url('../images/glow.png') center / cover no-repeat;
  opacity: .6;
  top: 61%;
  left: calc(50% - 43.75rem);
}
/* About 右側光暈 */
.bg-glow__orb--about {
  width: 35rem;
  height: 35rem;
  background: url('../images/glow.png') center / cover no-repeat;
  opacity: .5;
  top: 675px;
  right: -29%;
  filter: blur(10px);
}
/* 底部大球（相對 footer） */
.bg-glow__orb--bottom-lg {
  width: 250rem;
  height: 250rem;
  background: url('../images/glow.png') center / cover no-repeat;
  opacity: .4;
  bottom: -210rem;
  left: 50%;
  transform: translateX(-50%);
}
/* 底部右球（置中往右 800px） */
.bg-glow__orb--bottom-sm2 {
  width: 18rem;
  height: 18rem;
  background: url('../images/glow.png') center / cover no-repeat;
  opacity: .5;
  top: 8rem;
  left: calc(50% + 41rem);
  filter: blur(10px);
}


@media (min-width: 992px) {
  .bg-glow__orb--about  { top: 735px; right: -6%; filter: blur(30px); }
}
@media (max-width: 767px) {
  .bg-glow__orb--hero   { width: 20rem; height: 20rem; top: -6rem; left: -6rem; }
  .bg-glow__orb--mid    { width: 14rem; height: 14rem; }
  .bg-glow__orb--about  { width: 18rem; height: 18rem; }
  .bg-glow__orb--bottom-lg { width: 100rem; height: 100rem; bottom: -62rem; }
.bg-glow__orb--bottom-sm2 { width: 9rem; height: 9rem; left: auto; right: -2rem; top: 18rem; }
}

/* --- Utilities --- */
@media (min-width: 768px) {
  .d-md-none { display: none; }
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2.25rem;
}

.mobile-only { display: block; }
.desktop-only { display: none; }

/* 漸層背景 */
.gradient-brand { background: var(--gradient-brand); }

/* 漸層文字 */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 共用按鈕 — 漸層邊框 */
.btn-outline-gradient {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
              var(--gradient-brand) border-box;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-gradient:hover {
  background: linear-gradient(90deg, #683FCE 0%, #D168DA 33%, #683FCE 66%, #D168DA 100%);
  background-size: 300% 100%;
  animation: btn-gradient-flow 6s ease infinite, btn-gradient-in .35s ease forwards;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}
@keyframes btn-gradient-flow {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes btn-gradient-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.btn-outline-gradient__arrow {
  transition: transform var(--transition);
}
.btn-outline-gradient:hover .btn-outline-gradient__arrow {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .mobile-only  { display: none; }
  .desktop-only { display: block; }
}

/* ============================================
   HEADER
   ============================================ */

/* 預藏：防止 fetch 注入後 GSAP from 造成閃爍 */
#site-header { visibility: hidden; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  padding-inline: 1rem;
  max-width: 100%;
  margin-inline: auto;
  background-color: rgba(240, 238, 240, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 0 0 35px 35px;
  filter: drop-shadow(0px 5px 16px rgba(106, 55, 212, .15));
  transition: border-radius .3s ease;
}
.site-header__inner:has(.site-header__hamburger.is-active) {
  border-radius: 0;
}

/* Logo 區：圖 + 中英文名稱 */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  padding: 0 1rem;
}
.site-header__logo img { height: 2.3rem; width: auto; }
@media (min-width: 992px) {
  .site-header__inner { height: 6rem; padding-inline: 3rem; }
  .site-header__logo img { height: 2.75rem; }
}

/* Hamburger */
.site-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.site-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-base);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.site-header__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.site-header__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav — Mobile */
.site-nav {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 99;
  height: calc(100dvh - 5rem);
  overflow-y: auto;
}
.site-nav.is-open { transform: translateY(0); opacity: 1; background: rgba(240, 238, 240, 1); }
.site-nav__list { display: flex; flex-direction: column; letter-spacing: 0.075rem; }
.site-nav__item { border-bottom: none; }

.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-base);
  transition: color var(--transition);
  width: 85%;
  margin: 0 auto;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.site-nav__link:hover { color: var(--primary-color); }

/* Dropdown — Mobile */
.site-nav__item--has-sub { position: relative; }

.site-nav__sub {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
  background-color: rgba(240, 238, 240, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-nav__item--has-sub.is-open > .site-nav__sub {
  max-height: 30rem;
}

.site-nav__sub-link {
  display: block;
  padding: .75rem 1.25rem;
  font-size: .9375rem;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background var(--transition), color var(--transition);
  width: 85%;
  margin: 0 auto;
}
.site-nav__sub li:last-child .site-nav__sub-link { border-bottom: none; }
.site-nav__sub-link.is-active {
  background-color: #E8E2F9;
}
.site-nav__sub-link:hover {
  background: rgba(168, 148, 255, .1);
  color: var(--primary-color);
}

/* 展開 / 收合 icon */
.site-nav__item--has-sub > .site-nav__link::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.353516 0.353516L6.35352 6.35352L12.3535 0.353516' stroke='%234D4D4D'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.site-nav__item--has-sub.is-open > .site-nav__link::after {
  transform: rotate(180deg);
}

/* Nav — Desktop */
@media (min-width: 1280px) {
  .site-header__hamburger { display: none; }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    padding: 0;
    box-shadow: none;
    background: none;
    height: auto;
    overflow: visible;
  }
  .site-nav__list { flex-direction: row; gap: 0; }
  .site-nav__item { border-bottom: none; }
  .site-nav__link { padding: 1rem .5rem; font-size: .875rem; white-space: nowrap; width: auto; margin: 0; border-bottom: none; }

  /* Dropdown — Desktop: hover 展開 */
  .site-nav__item--has-sub > .site-nav__link::after {
    background: none;
    width: .4em;
    height: .4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: .35rem;
    margin-bottom: .15em;
  }
  .site-nav__item--has-sub.is-open > .site-nav__link::after {
    transform: rotate(-135deg);
    margin-bottom: -.1em;
  }

  .site-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    max-height: none;
    overflow: visible;
    min-width: 7rem;
    background: linear-gradient(168.17deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 238, 240, 0.95) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: .75rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    padding: .5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .site-nav__item--has-sub:hover > .site-nav__sub,
  .site-nav__item--has-sub.is-open > .site-nav__sub {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__sub-link {
    padding: .6rem 1.25rem;
    font-size: .875rem;
    white-space: nowrap;
    width: auto;
    margin: 0;
  }
  .site-nav__sub-link:hover {
    background: rgba(168, 148, 255, .15);
    color: var(--primary-color);
  }
}

@media (min-width: 1200px) {
  .site-nav__link { padding: 1rem .7rem; font-size: .9375rem; }
}

@media (min-width: 1680px) {
  .site-nav__link { padding: 1rem .9rem; font-size: 1rem; }
}

/* ============================================
   FOOTER
   ============================================ */
/* Footer Glow Container */
.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;           /* 下方確實裁切 */
  margin-top: -16rem;
  padding-top: calc(10rem + 16rem);
  padding-bottom: 0;
  color: var(--text-base);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 3.2rem;
  padding-bottom: 2.5rem;
}
.site-footer__brand { order: 2; }
.site-footer__nav   { order: 1; }

@media (min-width: 992px) {
  .site-footer__brand { order: 0; }
  .site-footer__nav   { order: 0; }
}

/* Brand */
.site-footer__logo-wrap {
  display: block;
  width: 230px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.site-footer .site-footer__contact {
  display: block;
  width: 230px;
  margin-inline: auto;
}
.site-footer address {
  width: 100%;
  margin: 0 auto;
  letter-spacing: .075rem;
}
.site-footer__logo { height: 2.3rem; width: auto; }
@media (min-width: 992px) {
  .site-footer__logo { height: 3rem; }
}

/* Contact */
.site-footer__contact p {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .75rem;
  line-height: 2;
}
@media (min-width: 992px) {
  .site-footer__contact p { font-size: .9375rem; }
}
.site-footer__contact-label {
  color: var(--primary-color);
  font-weight: 600;
  flex-shrink: 0;
}
.site-footer__contact-sep { color: var(--text-muted); }

/* Copyright */
.site-footer__copyright {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .65rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  letter-spacing: .05rem;
  justify-content: center;
}
@media (min-width: 992px) {
  .site-footer__copyright { font-size: .875rem; justify-content: flex-start; }
}
.site-footer__privacy {
  font-size: .65rem;
  font-weight: 500;
  transition: opacity var(--transition);
}
@media (min-width: 992px) {
  .site-footer__privacy { font-size: .875rem; }
}
.site-footer__privacy:hover { opacity: .7; }

/* Footer Nav Grid — Mobile: 2欄 */
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem 3rem;
  padding-inline: .5rem;
}
@media (min-width: 430px) {
  .site-footer__nav { padding-inline: 2.5rem; }
}
@media (min-width: 992px) {
  .site-footer__nav { gap: 1.5rem 1.25rem; }
}
.site-footer__nav-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: .8rem;
}
.site-footer__nav-list li { margin-bottom: .5rem; }
.site-footer__nav-list li + li { margin-top: 0; }
.site-footer__nav-list a {
  display: block;
  font-size: 11px;
  color: var(--text-base);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  transition: color var(--transition);
}
@media (min-width: 992px) {
  .site-footer__nav-title { font-size: 1rem; }
  .site-footer__nav-list li { margin-bottom: 0; }
  .site-footer__nav-list li + li { margin-top: .35rem; }
  .site-footer__nav-list a { display: inline-block; font-size: .9375rem; line-height: 1.2; }
}
.site-footer__nav-list a:hover { color: var(--primary-color); font-weight: 600; }

/* Footer Nav Grid — Desktop: 3欄 × 3列 */
@media (min-width: 768px) {
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .site-footer { padding-bottom: 3rem; }
  .site-footer__inner { flex-direction: row; align-items: flex-start; padding-inline: 1.25rem; gap: 2.5rem; }
  .site-footer__brand { flex: 0 0 35rem; }
  .site-footer__nav { flex: 1; padding-inline: 0; }
  .site-footer__logo-wrap { display: flex; align-items: center; gap: .75rem; width: auto; margin-inline: 0; justify-content: flex-start; margin-bottom: 10rem; }
  .site-footer .site-footer__contact { width: auto; margin-inline: 0; }
  .site-footer address { width: auto; margin: 0; }
}

/* ============================================
   374px 以下極小螢幕修正
   ============================================ */
@media (max-width: 374px) {
  .site-header__logo { padding: 0; }
  .site-header__logo img { height: 2rem; }
  .site-footer address { width: 100%; }
  .site-footer__nav { padding-inline: .5rem; gap: 1.3rem 1rem; }
}

/* ============================================
   PAGE GLOW ORBS（內頁）
   ============================================ */
.bg-glow__orb--page-top-r {
  width: 30rem;
  height: 30rem;
  background: url('../images/glow.png') center / cover no-repeat;
  opacity: .4;
  filter: blur(60px);
  top: -4rem;
  right: -8rem;
}
.bg-glow__orb--page-top-l {
  width: 16rem;
  height: 16rem;
  background: url('../images/glow.png') center / cover no-repeat;
  opacity: .28;
  filter: blur(50px);
  top: 3rem;
  left: -3rem;
}
@media (min-width: 768px) {
  .bg-glow__orb--page-top-r { width: 42rem; height: 42rem; top: -6rem; right: -10rem; }
  .bg-glow__orb--page-top-l { width: 22rem; height: 22rem; }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: var(--text-muted);
  letter-spacing: .075rem;
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb__sep { font-size: .75rem; }

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  position: relative;
  min-height: 450px;
  padding: 12rem 0 3rem;
  overflow: hidden;
  z-index: 0;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.hero-bg__base {
  position: absolute;
  inset: 0;
  background: url('../images/bg-page-hero.jpg') center / cover no-repeat;
}
.hero-bg__orb--left,
.hero-bg__orb--right {
  position: absolute;
  background: url('../images/glow.png') center / cover no-repeat;
}
.hero-bg__orb--left {
  width: 6rem;
  height: 6rem;
  left: -1rem;
  bottom: 10px;
}
@media (min-width: 992px) {
  .hero-bg__orb--left {
    width: 12.7rem;
    height: 12.7rem;
    left: calc(50% - 730px);
    bottom: -4rem;
  }
}
.hero-bg__orb--right {
  width: 10rem;
  height: 10rem;
  left: auto;
  right: 1rem;
  top: 7rem;
  transform: none;
}
@media (min-width: 992px) {
  .hero-bg__orb--right {
    width: 23.9rem;
    height: 23.9rem;
    left: calc(50% + 330px);
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
@media (min-width: 1920px) {
  .hero-bg__orb--right { left: calc(50% + 430px); }
}
.hero-bg__arcs {
  position: absolute;
  inset: 0;
  background: url('../images/bg-page-hero-arc.png') calc(50% - 50px) 30% / auto 50% no-repeat;
}
@media (min-width: 992px) {
  .hero-bg__arcs { background: url('../images/bg-page-hero-arc.png') center / cover no-repeat; }
}
.page-hero__title {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: .2rem;
  margin-bottom: 2rem;
  margin-left: -0.3rem;
}
@media (min-width: 992px) {
  .page-hero { padding-top: 12rem; overflow: visible; margin-bottom: -22px; }
}
@media (min-width: 1920px) {
  .page-hero { margin-bottom: -40px; }
  .sub-nav { top: -0.5rem; }
}

/* ============================================
   SUB-NAV
   ============================================ */
.sub-nav {
  position: relative;
  z-index: 3;
  top: -3.5rem;
  padding-bottom: 2.5rem;
  overflow: visible;
}
.sub-nav .container {
  width: 100%;
  max-width: 100%;
  padding-inline: .5rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.sub-nav .container:not(:has(.sub-nav__arrow)) {
  padding-inline: 1.5rem;
}
.sub-nav__arrow--prev { margin-right: -1rem; }
.sub-nav__arrow--next { margin-left: -1rem; }
@media (min-width: 992px) {
  .sub-nav { top: -1.25rem; }
  .sub-nav .container {
    max-width: var(--max-width);
    padding-inline: 2.25rem;
    display: block;
  }
}
.sub-nav__track {
  display: flex;
  align-items: center;
  background: rgba(240, 238, 240, .8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid #fff;
  box-shadow: 0 5px 16px rgba(106, 55, 212, .15);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.sub-nav__track .sub-nav__divider { display: none; }
.sub-nav__track .sub-nav__link {
  flex: 0 0 calc(100% / 3);
  min-width: 0;
}
/* 只有 2 個項目時自動平均分配 */
.sub-nav__track .sub-nav__link:first-child:nth-last-of-type(2),
.sub-nav__track .sub-nav__link:first-child:nth-last-of-type(2) ~ .sub-nav__link {
  flex: 1;
}
.sub-nav__track::-webkit-scrollbar { display: none; }
.sub-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-base);
  white-space: nowrap;
  flex: 1;
  align-self: stretch;
  transition: color var(--transition);
}
.sub-nav__link:hover { color: var(--primary-color); }
.sub-nav__track .sub-nav__link.is-active {
  background: transparent;
  color: var(--white);
  font-weight: 500;
  position: relative;
  isolation: isolate;
}
.sub-nav__track .sub-nav__link.is-active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  border-radius: 15px;
  border: 1px solid #fff;
  z-index: -1;
}
.sub-nav__track .sub-nav__link.is-active + .sub-nav__divider { visibility: hidden; }
.sub-nav__track .sub-nav__divider:has(+ .sub-nav__link.is-active) { visibility: hidden; }
.sub-nav__link:first-child { border-radius: 15px 0 0 15px; }
.sub-nav__link:last-child  { border-radius: 0 15px 15px 0; }
.sub-nav__divider {
  width: 1px;
  height: 1.25rem;
  background: var(--gradient-brand);
  flex-shrink: 0;
  align-self: center;
  margin-left: -1px;
}
.sub-nav__arrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--color-light-purple);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  cursor: pointer;
  color: #683FCE;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: color var(--transition);
}
.sub-nav__arrow:hover { color: var(--primary-color); }
.sub-nav__arrow:disabled { visibility: hidden; cursor: default; }
@media (min-width: 992px) {
  .sub-nav__arrow { display: none; }
  .sub-nav__track {
    background: none;
    border-radius: 21px;
    box-shadow: 0 5px 16px rgba(106, 55, 212, .15);
    padding: 0;
    overflow-x: visible;
    justify-content: center;
    height: 90px;
    border: 1px solid #fff;
    margin: 0 auto;
  }
  .sub-nav__track .sub-nav__divider { display: inline-block; }
  .sub-nav__track .sub-nav__link { flex: 1; }
  .sub-nav__link {
    border-radius: 15px;
    font-size: 1.125rem;
  }
  .sub-nav__link.is-active { border-radius: 20px; }
  .sub-nav__track .sub-nav__link.is-active::before { border-radius: 20px; }
}

/* ============================================
   CONTENT WRAPPER（內頁共用容器）
   ============================================ */
.content-wrapper {
  position: relative;
  z-index: 2;
  overflow-x: hidden;
  width: 100%;
  margin-top: -130px;
  padding-top: 40px;
  background: url('../images/bg-container.png') top left / 140% no-repeat;
}
@media (min-width: 992px) {
  .content-wrapper { padding-top: 130px; }
}
.page-content {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 992px) {
  .page-content { padding-top: 3rem; }
}

/* ============================================
   FILTER 搜尋列（共用）
   ============================================ */
.search-filter {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .search-filter {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
}
.search-filter__date,
.search-filter__keyword {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .8);
  border: 1px solid #e0ddf0;
  border-radius: 50px;
  padding: .75rem 1.25rem;
  flex: 1;
  box-shadow: 0 4px 20px rgba(108, 99, 255, .08);
}
.search-filter__date { gap: .5rem; overflow: hidden; }
@media (max-width: 767px) {
  .search-filter__keyword { min-height: 46px; }
}
@media (min-width: 768px) {
  .search-filter        { align-items: stretch; }
  .search-filter__date    { flex: 0 0 55%; }
  .search-filter__keyword { flex: 0 0 calc(45% - 1rem); }
}
.search-filter__input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .8125rem;
  color: var(--text-base);
  width: 100%;
  min-width: 0;
  flex: 1;
}
@media (min-width: 992px) {
  .search-filter__input { font-size: .9375rem; }
}
.search-filter__input::placeholder { color: #aaa; }
.search-filter__input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.search-filter__input[type="date"].is-empty { color: transparent; }
.search-filter__input[type="date"].is-empty::-webkit-datetime-edit { color: transparent; }
.search-filter__date-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.search-filter__date-wrap .search-filter__input { width: 100%; }
.search-filter__date-placeholder {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: .9375rem;
  color: #aaa;
  pointer-events: none;
}
.search-filter__input:not(.is-empty) + .search-filter__date-placeholder { display: none; }
.search-filter__cal-btn,
.search-filter__search-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.search-filter__icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary-color);
  flex-shrink: 0;
}
.search-filter__sep {
  color: #ccc;
  flex-shrink: 0;
  padding: 0 .375rem;
  font-size: .75rem;
  line-height: 1;
}
.search-filter__search-btn { color: var(--primary-color); }
.search-filter__search-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ============================================
   PAGINATION & FOOTER（共用）
   ============================================ */
.list-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0 2rem;
}
.list-count {
  font-size: .9375rem;
  color: var(--text-base);
  letter-spacing: 1px;
}
.list-count__num {
  color: var(--primary-color);
  font-weight: 700;
  margin: 0 .25rem;
}
.pagination {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.pagination__btn {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: .9375rem;
  color: var(--text-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.pagination__btn:hover:not(.is-active) { background: #f0edf9; }
.pagination__btn.is-active {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
}
.pagination__btn--arrow { font-size: 1.375rem; }
.pagination__ellipsis {
  padding: 0 .25rem;
  font-size: .9375rem;
  color: var(--text-base);
  user-select: none;
}
