/* ==========================================================================
   明德教室 Veritas Education Centre — 官網樣式
   品牌色：紫 #6E2C91 / 橙 #F7941D
   ========================================================================== */

:root {
  --purple: #6e2c91;
  --purple-d: #4e1c6b;
  --purple-dd: #2f1042;
  --lilac: #f6f0fa;
  --lilac-2: #ece1f5;
  --orange: #f7941d;
  --orange-d: #d97a0a;
  --orange-l: #fdf3e4;
  --ink: #1e2128;
  --grey: #616774;
  --grey-l: #eceef1;
  --line: #e6e0ee;
  --white: #fff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 33, 40, .06), 0 2px 8px rgba(30, 33, 40, .05);
  --shadow-md: 0 4px 12px rgba(30, 33, 40, .07), 0 12px 32px rgba(30, 33, 40, .07);
  --wrap: 1120px;
  --font: "PingFang HK", "PingFang TC", "PingFang SC", "Hiragino Sans GB",
          "Microsoft JhengHei", "Noto Sans TC", -apple-system, BlinkMacSystemFont,
          "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-d); }

h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .82em 1.6em;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(247, 148, 29, .3);
}
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-d); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--purple);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-d); }
.btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
}
.btn-wa:hover { background: #1eb857; color: #fff; }
.btn-block { width: 100%; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: .5em .85em;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--purple); background: var(--lilac); }
.site-nav a.is-active { color: var(--purple); font-weight: 700; }
.site-nav .nav-cta {
  margin-left: 12px;
  padding: .72em 1.35em;
  color: #fff;
  font-weight: 700;
}
.nav-cta:hover { background: var(--orange-d); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: .55em .9em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- 主視覺 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, var(--lilac-2), transparent 62%),
    radial-gradient(700px 420px at 4% 108%, var(--orange-l), transparent 60%),
    var(--lilac);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 20px;
  padding: .38em .9em .38em .75em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--purple);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  color: var(--purple);
  background: linear-gradient(transparent 62%, rgba(247, 148, 29, .35) 62%);
  padding: 0 .06em;
}
.lede {
  font-size: 1.09rem;
  color: var(--grey);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--grey);
}
.hero-facts li { display: flex; align-items: center; gap: .45em; }
.hero-facts li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--lilac-2);
  color: var(--purple);
  font-size: .7rem;
  font-weight: 700;
}

/* 主視覺右側卡片 */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 30px 30px 26px;
}
.hero-card h2 {
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--grey);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.feature-list .ico {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--lilac);
  color: var(--purple);
}
.feature-list svg { width: 19px; height: 19px; }
.feature-list strong { display: block; font-size: 1rem; }
.feature-list span { display: block; font-size: .88rem; color: var(--grey); line-height: 1.55; }

/* ---------- 通用區塊 ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--lilac); }
.section-dark { background: var(--lilac); color: var(--ink); }
.section-dark h2, .section-dark h3 { color: var(--purple-d); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: block;
  margin-bottom: 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-d);
}
.section-head p { color: var(--grey); margin-bottom: 0; }
.section-dark .section-head p { color: var(--grey); }

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

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--lilac-2); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--grey); margin-bottom: 0; font-size: .96rem; }
.card .num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--lilac);
  color: var(--purple);
  font-weight: 700;
  font-size: 1.05rem;
}

/* 課程入口卡 */
.prog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.prog-card .prog-top { padding: 28px 28px 22px; }
.prog-card .prog-top .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: .25em .7em;
  border-radius: 6px;
  background: var(--orange-l);
  color: var(--orange-d);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.prog-card h3 { font-size: 1.35rem; margin-bottom: .3em; }
.prog-card .prog-top p { font-size: .94rem; color: var(--grey); margin: 0; }
.subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0 28px 24px;
  list-style: none;
}
.subject-chips li {
  padding: .28em .7em;
  border-radius: 7px;
  background: var(--lilac);
  color: var(--purple-d);
  font-size: .84rem;
  font-weight: 500;
}
.prog-card .prog-foot {
  margin-top: auto;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  background: #fcfbfd;
  font-size: .92rem;
  font-weight: 600;
}
.prog-card .prog-foot a { display: inline-flex; align-items: center; gap: .4em; }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.schedule {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .96rem;
  min-width: 620px;
}
table.schedule caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-d);
}
table.schedule th, table.schedule td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.schedule thead th {
  background: var(--lilac);
  color: var(--purple-d);
  font-size: .86rem;
  letter-spacing: .04em;
  font-weight: 700;
  white-space: nowrap;
}
table.schedule tbody tr:last-child td { border-bottom: 0; }
table.schedule tbody tr:hover { background: #fbf8fd; }
.badge {
  display: inline-block;
  padding: .2em .65em;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-open { background: #e7f7ec; color: #1c7a3d; }
.badge-full { background: var(--grey-l); color: var(--grey); }
.tbd {
  color: var(--grey);
  border-bottom: 1px dashed var(--orange);
  cursor: help;
}

/* ---------- 學員專區橫幅 ---------- */
.portal-banner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px 44px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--lilac) 0%, var(--orange-l) 100%);
  border: 1px solid var(--line);
  color: var(--ink);
}
.portal-banner h2 { color: var(--purple-d); font-size: 1.5rem; margin-bottom: .35em; }
.portal-banner p { color: var(--grey); margin: 0; font-size: .97rem; max-width: 40em; }

/* ---------- 頁尾 ---------- */
.site-footer {
  background: #fbf9fd;
  border-top: 1px solid var(--line);
  color: var(--grey);
  padding: 56px 0 30px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  display: inline-block;
  padding: 9px 14px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.footer-logo img { height: 30px; margin: 0; }
.site-footer h4 { color: var(--purple); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--purple-d); }
.site-footer a:hover { color: var(--orange-d); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: .84rem;
  color: #8b91a0;
}

/* ---------- 內頁標題 ---------- */
.page-head {
  padding: 60px 0 48px;
  background: var(--lilac);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: .3em; }
.page-head p { color: var(--grey); max-width: 44em; margin: 0; }
.crumb { font-size: .85rem; color: var(--grey); margin-bottom: 14px; }
.crumb a { color: var(--grey); }
.crumb a:hover { color: var(--purple); }

/* ---------- 課程頁 ---------- */
/* 科目格 */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.subject-item {
  display: block;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.subject-item:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  box-shadow: var(--shadow-md);
}
.s-name {
  display: block;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--purple-d);
  margin-bottom: 4px;
}
.s-desc {
  display: block;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--grey);
}

.level-block { margin-bottom: 64px; }
.level-block:last-child { margin-bottom: 0; }
.level-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.level-head h2 { margin: 0; font-size: 1.55rem; }
.level-head .note { font-size: .9rem; color: var(--grey); }

/* ---------- 聯絡頁 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:first-child { padding-top: 0; }
.info-list .ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--lilac);
  color: var(--purple);
}
.info-list svg { width: 20px; height: 20px; }
.info-list dt, .info-list strong { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); font-weight: 700; margin-bottom: 3px; }
.info-list .val { font-size: 1.02rem; color: var(--ink); }
.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lilac);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: var(--grey);
  font-size: .92rem;
}
.enrol-box {
  margin-top: 40px;
  padding: 34px;
  border-radius: 20px;
  background: var(--lilac);
  border: 1px solid var(--line);
}
.enrol-box h2 { font-size: 1.4rem; }
.enrol-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- 學員專區 ---------- */
.portal-head { background: var(--lilac); color: var(--ink); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.portal-head h1 { color: var(--purple-d); margin-bottom: .3em; }
.portal-head p { color: var(--grey); margin: 0; max-width: 44em; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple); }
.course-card .sub { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-d); font-weight: 700; }
.course-card h3 { margin: 6px 0 4px; font-size: 1.06rem; color: var(--ink); }
.course-card p { margin: 0; font-size: .88rem; color: var(--grey); }
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--orange-l);
  border: 1px solid #f3d9b5;
  color: #8a5410;
  font-size: .92rem;
  line-height: 1.6;
}
.notice svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; }

/* ---------- 導師 ---------- */
.tutor-card { text-align: center; }
.tutor-photo {
  width: 104px; height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--lilac-2);
  display: grid;
  place-items: center;
  color: var(--purple);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .02em;
  overflow: hidden;
}
.tutor-card h3 { margin-bottom: .15em; }
.tutor-card .role { font-size: .88rem; color: var(--orange-d); font-weight: 600; margin-bottom: .7em; }
.tutor-card p { font-size: .92rem; }

/* ---------- 工具 ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--grey); }

/* ---------- 回應式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; padding-bottom: 56px; }
  .grid-3, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .portal-banner { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { height: 66px; }
  .brand img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(30, 33, 40, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85em .6em; border-radius: 8px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .section { padding: 56px 0; }
  .grid-3, .grid-2, .course-grid { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-card { padding: 24px 22px; }
  .enrol-box { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 課程頁目錄 ---------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.toc a {
  padding: .42em .95em;
  border-radius: 999px;
  background: var(--lilac);
  border: 1px solid var(--line);
  color: var(--purple-d);
  font-size: .9rem;
  font-weight: 600;
}
.toc a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ---------- 優惠 / 條款 ---------- */
.promo-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--orange-l);
  border: 1px solid #f3d9b5;
}
.promo-tag {
  flex: 0 0 auto;
  padding: .34em .85em;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.promo-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .97rem;
  font-weight: 600;
  color: #7a4708;
}
.promo-box li::before { content: "★"; margin-right: .45em; color: var(--orange); }
.promo-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: .84rem;
  color: #8a5410;
  line-height: 1.6;
}
.table-foot {
  margin: 12px 0 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--grey);
}
.terms {
  margin-top: 56px;
  padding: 28px 30px;
  border-radius: 16px;
  background: var(--lilac);
  border: 1px solid var(--line);
}
.terms h2 { font-size: 1.08rem; color: var(--purple-d); margin-bottom: .9em; }
.terms ul { margin: 0; padding-left: 1.2em; color: var(--grey); font-size: .88rem; }
.terms li { margin-bottom: .55em; }
@media (max-width: 760px) {
  .promo-box ul { flex-direction: column; gap: 6px; }
  .terms { padding: 22px 20px; }
}

/* ---------- 頂部滾動優惠條 ---------- */
.topbar {
  background: var(--orange-l);
  color: #8a5410;
  overflow: hidden;
  border-bottom: 1px solid #f3d9b5;
}
.topbar-track {
  display: flex;
  width: max-content;
  animation: topbar-scroll 72s linear infinite;
  will-change: transform;
}
.topbar:hover .topbar-track { animation-play-state: paused; }
.topbar-item {
  display: inline-block;
  padding: .5em 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.topbar-tag {
  display: inline-block;
  padding: .12em .5em;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
}
.topbar-sep {
  display: inline-block;
  padding: 0 1.3em;
  color: var(--orange);
  font-size: .68rem;
  vertical-align: middle;
}
@keyframes topbar-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .topbar-item { font-size: .98rem; padding: .55em 0; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-track { animation: none; }
}

/* ---------- 主視覺影片 ---------- */
.hero-card-media { padding: 12px; }
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #eceaf1;
  aspect-ratio: 16 / 9;
}
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 四項重點條 ---------- */
.highlights {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.highlights-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 26px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.hl-item { position: relative; padding-left: 14px; }
.hl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--orange);
}
.hl-item strong {
  display: block;
  font-size: .98rem;
  color: var(--purple-d);
  margin-bottom: 2px;
}
.hl-item span { display: block; font-size: .85rem; color: var(--grey); line-height: 1.5; }

/* ---------- 插畫 ---------- */
.card-icon { display: block; width: 64px; height: 64px; margin-bottom: 18px; }
.prog-img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: contain;
  background: #fff;
  padding: 14px 20px 0;
}
.about-illus {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

@media (max-width: 960px) {
  .highlights-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-video { display: none; }
  .hero-media { background: url("img/hero-poster.webp") center / cover no-repeat; }
  .highlights-inner { grid-template-columns: 1fr; gap: 14px; }
  .prog-img { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-media { background: url("img/hero-poster.webp") center / cover no-repeat; }
}
