/* ==========================================================================
   新培教育 Sunrise Education — 網站樣式表
   如果你唔識 CSS，唔使改呢個檔案。要改文字／課程，睇「網站使用手冊.md」
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 設計變數（顏色、字體、間距）
   想換主色？改下面 --brand 嗰行就得，全站會一齊變。
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 —— 日出橙 */
  --brand: #E8590C;          /* 視覺重點色（大字、圖示、線條） */
  --brand-cta: #C94B09;      /* 按鈕底色 — 對白字達 WCAG AA 4.67:1 */
  --brand-dark: #A03D08;
  --brand-light: #FF8A3D;
  --brand-soft: #FFF3EB;
  --brand-tint: #FFE4D1;

  /* 深藍 —— 專業、穩重 */
  --navy: #0B1F3A;
  --navy-2: #12305A;
  --navy-soft: #E8EEF6;

  /* 中性色 */
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --muted-2: #98A2B3;
  --line: #E4E7EC;
  --line-soft: #F2F4F7;
  --bg: #FFFFFF;
  --bg-soft: #FAF9F7;
  --bg-warm: #FDF8F3;

  /* 功能色 */
  --gold: #F5A623;
  --green: #12B76A;
  --whatsapp: #25D366;

  /* 字體 */
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang HK", "Microsoft JhengHei", sans-serif;
  --font-display: "Noto Serif TC", Georgia, "Songti TC", serif;

  /* 間距與圓角 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 31, 58, 0.14);
  --shadow-brand: 0 10px 30px rgba(232, 89, 12, 0.28);

  --wrap: 1160px;
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. 基礎 Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.22; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.28; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 跳過導覽（無障礙） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. 佈局工具
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap-narrow { max-width: 820px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.section-navy { background: var(--navy); color: #C9D6E8; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-head.center .eyebrow::before { display: none; }
.section-navy .eyebrow { color: var(--brand-light); }
.section-navy .eyebrow::before { background: var(--brand-light); }

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4. 按鈕
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-cta);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.22); }

.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #1EBE5A; }

.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row.center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. 頁首導覽
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.12);
}
.site-footer .brand-mark { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 1.16rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.97rem;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-links a:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.24s ease, top 0.2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 14px 22px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-links li:last-child { margin-top: 12px; }
  .nav-links .mobile-cta {
    display: flex;
    background: var(--brand-cta);
    color: #fff;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 800;
  }
  .nav-links .mobile-cta:hover { background: var(--brand-dark); color: #fff; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(232, 89, 12, 0.30), transparent 62%),
    radial-gradient(760px 460px at 8% 105%, rgba(18, 48, 90, 0.85), transparent 60%),
    linear-gradient(160deg, #0B1F3A 0%, #123056 58%, #1B3E6B 100%);
  color: #DCE6F2;
  overflow: hidden;
  padding: clamp(58px, 8vw, 96px) 0 clamp(64px, 9vw, 108px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.87rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 22px;
}
.hero-badge .stars { color: var(--gold); letter-spacing: 1px; font-size: 0.8rem; }
.hero-badge .pill {
  background: var(--brand);
  color: #fff;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(232, 89, 12, 0.65) 62%);
  padding: 0 3px;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: #B7C7DC;
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-motto {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-motto span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-proof div strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.hero-proof div span { font-size: 0.86rem; color: #A9BDD6; }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.16rem; color: #fff; margin-bottom: 6px; }
.hero-card > p { font-size: 0.92rem; color: #A9BDD6; margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   7. 卡片
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-tint);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--brand-tint);
  line-height: 1;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   8. 成績表現
   -------------------------------------------------------------------------- */
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.result-card > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line-soft);
}
.result-card > h3 .tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 11px;
  border-radius: var(--radius-full);
}

.bar-row { margin-bottom: 18px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.bar-label .val { font-size: 1.05rem; font-weight: 900; color: var(--brand); }
.bar-track {
  position: relative;
  height: 9px;
  background: var(--line-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-fill.is-ref { background: var(--muted-2); opacity: 0.55; }
.bar-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   9. 課程時間表
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.filter-group { flex: 1 1 200px; min-width: 0; }
.filter-group > label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  background: #fff;
  font-family: inherit;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] {
  background: var(--brand-cta);
  border-color: var(--brand-cta);
  color: #fff;
}

.course-count {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.course-count strong { color: var(--ink); font-weight: 800; }

.course-group { margin-bottom: 34px; }
.course-group > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.22rem;
  margin-bottom: 14px;
}
.course-group > h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table.tt {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}
table.tt th {
  background: var(--bg-soft);
  text-align: left;
  padding: 13px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tt td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.tt tr:last-child td { border-bottom: none; }
table.tt tbody tr:hover { background: var(--brand-soft); }
table.tt .cls { font-weight: 800; color: var(--ink); white-space: nowrap; }
table.tt .time { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tt .price { font-weight: 800; color: var(--ink); white-space: nowrap; }
table.tt .act { text-align: right; white-space: nowrap; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--navy-soft);
  color: var(--navy-2);
  white-space: nowrap;
}
.badge-full { background: #FEE4E2; color: #B42318; }
.badge-few { background: #FEF0C7; color: #B54708; }

.empty-state {
  text-align: center;
  padding: 56px 22px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   10. 老師
   -------------------------------------------------------------------------- */
.teacher {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.teacher:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teacher-top {
  padding: 26px 26px 20px;
  background: linear-gradient(150deg, var(--brand-soft), #fff);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 16px;
}
.teacher-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
  object-fit: cover;
}
img.teacher-avatar { border: 3px solid #fff; box-shadow: 0 6px 18px rgba(16,24,40,.18); }
.teacher-top h3 { margin: 0 0 3px; font-size: 1.2rem; }
.teacher-top .subject {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
}
.teacher-body { padding: 22px 26px 26px; flex: 1; }
.teacher-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.teacher-body li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 9px;
}
.teacher-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   11. 好評
   -------------------------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  break-inside: avoid;
  margin-bottom: 24px;
}
.quote .stars { color: var(--gold); font-size: 0.92rem; letter-spacing: 2px; }
.quote blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-2);
  line-height: 1.8;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.quote footer .who { font-weight: 800; color: var(--ink); }
.quote footer .meta { color: var(--muted); font-size: 0.84rem; }
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy-2);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.masonry { columns: 3; column-gap: 24px; }
@media (max-width: 940px) { .masonry { columns: 2; } }
@media (max-width: 620px) { .masonry { columns: 1; } }

/* 家長 WhatsApp 截圖牆 */
.shots {
  columns: 4;
  column-gap: 16px;
}
.shots img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 16px;
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.shots img:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow); }
@media (max-width: 1000px) { .shots { columns: 3; } }
@media (max-width: 700px)  { .shots { columns: 2; } }

/* --------------------------------------------------------------------------
   12. 表單
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.field label .req { color: var(--brand); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-2 { grid-template-columns: 1fr; } }

/* 深色背景版表單 */
.hero-card .field label { color: #fff; }
.hero-card .field input,
.hero-card .field select {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}
.hero-card .field .hint { color: #A9BDD6; }

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.hero-card .form-note { color: #A9BDD6; }

/* --------------------------------------------------------------------------
   13. 分校
   -------------------------------------------------------------------------- */
.branch {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.branch-tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--navy);
  color: #fff;
  text-transform: uppercase;
}
.branch-tag.sub { background: var(--line-soft); color: var(--muted); }
.branch h3 { margin: 0; }
.branch address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}
.branch .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* --------------------------------------------------------------------------
   14. CTA 區
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(760px 380px at 82% 8%, rgba(232, 89, 12, 0.34), transparent 62%),
    linear-gradient(150deg, #0B1F3A, #17395F);
  color: #C4D3E6;
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 62px);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 56ch; margin-inline: auto; margin-bottom: 28px; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 19px 54px 19px 22px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.22s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item .faq-body {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   16. 內文頁（政策等）
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #16375F 100%);
  color: #B7C7DC;
  padding: clamp(46px, 7vw, 78px) 0 clamp(46px, 7vw, 72px);
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { max-width: 58ch; font-size: 1.06rem; margin: 0; }

.breadcrumb {
  font-size: 0.86rem;
  color: #8FA6C2;
  margin-bottom: 16px;
}
.breadcrumb a { color: #B7C7DC; }
.breadcrumb span { margin: 0 7px; opacity: 0.5; }

.prose h2 {
  margin-top: 2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 1.5rem;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { margin-top: 1.7em; font-size: 1.13rem; }
.prose ul { padding-left: 1.25em; }
.prose li { color: var(--muted); }
.callout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 0.97rem;
}
.callout strong { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   17. 頁尾
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #91A6C1;
  padding: clamp(48px, 7vw, 72px) 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 38px;
  padding-bottom: 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #91A6C1; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8298B4; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 0.92rem; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.16s ease, transform 0.16s ease;
}
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #8298B4;
}

/* --------------------------------------------------------------------------
   18. 浮動 WhatsApp 按鈕
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.96rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.42);
  transition: transform 0.18s ease;
  text-decoration: none !important;
}
.fab:hover { transform: translateY(-3px) scale(1.02); }
.fab svg { width: 21px; height: 21px; fill: currentColor; }
@media (max-width: 560px) {
  .fab { padding: 14px; }
  .fab .fab-text { display: none; }
}

/* --------------------------------------------------------------------------
   19. 進場動畫
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. 左右分欄（為何新培）
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split.reverse .split-img { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
}
.split-img { margin: 0; }
.split-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8590C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  transform: translateY(-50%);
}

/* 比較表 */
table.compare .hl-col { background: var(--brand-soft); font-weight: 700; color: var(--ink); }
table.compare th.hl-col { color: var(--brand-dark); }
table.compare td:not(.cls):not(.hl-col) { color: var(--muted); }

/* 老師待補充項目 */
.teacher-body li.todo { color: var(--muted); }
.teacher-body li.todo::before { content: "…"; color: var(--muted); }
.teacher-body li.todo em { font-style: normal; color: var(--brand); font-weight: 600; }

/* --------------------------------------------------------------------------
   21. 聯絡頁
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side .card { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .contact-side .card { position: static; } }

.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.contact-list strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   22. 政策頁快速導覽
   -------------------------------------------------------------------------- */
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 34px;
}
.policy-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}
.policy-nav a:hover {
  text-decoration: none;
  border-color: var(--brand);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   23. 雜項
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hero 內表單標題（語意上係 h2，視覺上細啲） */
.hero-card-title {
  font-size: 1.16rem !important;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0;
}

/* 課程分組標題／備註 */
.subj-tag {
  display: inline-block;
  padding: 3px 12px;
  margin-right: 10px;
  border-radius: var(--radius-full);
  background: var(--brand-cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: middle;
}
.course-group > h3 { flex-wrap: wrap; }
.course-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -6px 0 12px;
}
.course-meta strong { color: var(--ink); }
.cell-note {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
  white-space: normal;
  max-width: 26ch;
}
table.tt .cls { max-width: 240px; white-space: normal; }

/* 導師卡片補充 */
.teacher-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.teacher-meta {
  margin: 18px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.teacher-meta dt {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-top: 12px;
}
.teacher-meta dt:first-child { margin-top: 0; }
.teacher-meta dd { margin: 3px 0 0; color: var(--muted); }
.teacher.t-sci .teacher-top { background: linear-gradient(150deg, #E8F1FB, #fff); }
.teacher.t-sci .teacher-avatar { background: linear-gradient(140deg, #4B9BE8, #12305A); box-shadow: 0 10px 26px rgba(18,48,90,.28); }
.teacher.t-sci .teacher-top .subject { color: var(--navy-2); }
.teacher.t-lang .teacher-top { background: linear-gradient(150deg, #EAF6EE, #fff); }
.teacher.t-lang .teacher-avatar { background: linear-gradient(140deg, #34C27A, #0E7A4A); box-shadow: 0 10px 26px rgba(14,122,74,.26); }
.teacher.t-lang .teacher-top .subject { color: #0E7A4A; }

/* --------------------------------------------------------------------------
   優惠卡
   -------------------------------------------------------------------------- */
.offer-block { margin-bottom: clamp(36px, 5vw, 58px); }
.offer-block > h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 4px; }
.offer-block > p.muted { margin-bottom: 22px; }

.offer {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.offer::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-tint); }
.offer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.offer-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 1.3rem;
}
.offer-amount {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 900; color: var(--brand-dark);
  letter-spacing: -0.02em;
}
.offer h3 { font-size: 1.1rem; margin-bottom: 8px; }
.offer p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.offer p strong { color: var(--ink); }
.offer-cond {
  display: inline-block; font-size: 0.79rem; color: var(--muted);
  background: var(--line-soft); padding: 4px 11px; border-radius: var(--radius-full);
}

/* 分校卡補充 */
.branch-feature {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}
.branch .route { margin-top: -4px; }
.branch .route summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
  list-style: none;
}
.branch .route summary::-webkit-details-marker { display: none; }
.branch .route summary::before { content: "▸ "; }
.branch .route[open] summary::before { content: "▾ "; }
.branch .route ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   統計數字卡、成績格、科目卡
   -------------------------------------------------------------------------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.stat-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.stat-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 940px) { .score-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .score-grid { grid-template-columns: repeat(2, 1fr); } }
.score {
  background: linear-gradient(160deg, var(--brand-soft), #fff);
  border: 1px solid var(--brand-tint);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.score-val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.score-who { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.score-sub { font-size: 0.78rem; color: var(--muted); }

.subj-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .subj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .subj-grid { grid-template-columns: repeat(2, 1fr); } }
.subj-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.subj-card:hover { transform: translateY(-3px); border-color: var(--brand-tint); box-shadow: var(--shadow); }
.subj-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.subj-teachers { font-size: 0.84rem; color: var(--brand-dark); font-weight: 600; margin-bottom: 8px; }
.subj-note { font-size: 0.8rem; color: var(--muted); }
.teacher.t-math .teacher-top { background: linear-gradient(150deg, var(--brand-soft), #fff); }

/* --------------------------------------------------------------------------
   惡劣天氣訊號
   -------------------------------------------------------------------------- */
table.weather-tt { min-width: 0; }
table.weather-tt td, table.weather-tt th { font-size: 0.97rem; }

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 20px 0 8px;
}
@media (max-width: 620px) { .signal-grid { grid-template-columns: 1fr; } }
.signal-col > h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.signal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
}
.signal img { width: 55px; height: auto; flex-shrink: 0; }
.signal div { display: flex; flex-direction: column; line-height: 1.35; }
.signal strong { color: var(--ink); font-size: 1rem; }
.signal span { font-size: 0.92rem; font-weight: 700; }
.signal.go { border-left-color: #12B76A; }
.signal.go span { color: #067647; }
.signal.stop { border-left-color: #D92D20; background: #FFFBFA; }
.signal.stop span { color: #B42318; }

/* 未有相片嘅導師：字母圖章（刻意設計，唔係壞圖） */
.teacher-avatar.mono {
  background: linear-gradient(140deg, var(--navy-2), var(--navy));
  font-family: var(--font-display);
  font-size: 1.6rem;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.18);
}

/* ==========================================================================
   24. 專業版視覺升級（Fable 5 pass）
   ========================================================================== */

/* --- 字體排印：大標題轉襯線體，更有教育品牌質感 --- */
h1, h2 {
  font-family: var(--font-display);
  letter-spacing: 0.005em;
}
.brand-name { font-family: var(--font-display); letter-spacing: 0.04em; }
.hero-card-title { font-family: var(--font-sans) !important; letter-spacing: 0; }
::selection { background: var(--brand-tint); color: var(--ink); }

/* --- 主按鈕：加入微漸變層次 --- */
.btn-primary {
  background: linear-gradient(165deg, #C94B09 0%, #B24309 100%);
}
.btn-primary:hover { background: linear-gradient(165deg, #B8460A 0%, #A03D08 100%); }

/* --- 陰影更柔和有層次 --- */
.card:hover, .result-card:hover, .stat-card:hover, .teacher:hover, .offer:hover {
  box-shadow: 0 24px 60px -12px rgba(11, 31, 58, 0.16), 0 4px 14px rgba(11, 31, 58, 0.06);
}

/* --- Hero / page-hero 點陣紋理 --- */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(620px 420px at 76% 12%, black, transparent 74%);
  mask-image: radial-gradient(620px 420px at 76% 12%, black, transparent 74%);
  pointer-events: none;
}
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }

/* --- SVG 圖示統一尺寸 --- */
.card-icon svg { width: 24px; height: 24px; }
.offer-icon svg { width: 22px; height: 22px; }
.contact-list .ci svg { width: 19px; height: 19px; color: var(--brand); }

/* --- 學校名一覽條（信任帶） --- */
.school-strip {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  padding: 17px 0;
  overflow: hidden;
  position: relative;
}
.school-strip::before,
.school-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.school-strip::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.school-strip::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.school-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: strip 60s linear infinite;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.school-track .lbl {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand-dark);
  text-transform: uppercase;
}
.school-track .dot { color: var(--muted); font-weight: 400; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .school-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .school-track > *:nth-child(n+22) { display: none; } /* 靜止時只顯示一份 */
}

/* --- 時間表：斑馬紋 + 篩選器黏頂 --- */
table.tt tbody tr:nth-child(even) td { background: #FBFBFC; }
table.tt tbody tr:hover td { background: var(--brand-soft); }
@media (min-width: 760px) {
  .filters {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    z-index: 40;
    box-shadow: 0 6px 22px rgba(16, 24, 40, 0.07);
  }
}

/* --- 頁尾頂部品牌漸變幼條 --- */
.site-footer {
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--brand-light), var(--brand) 40%, var(--navy-2)) 1;
}

/* --- 列印時執靚 --- */
@media print {
  .site-header, .fab, .cta-band, .nav-toggle, .school-strip { display: none !important; }
  .section { padding: 18px 0; }
  body { font-size: 12pt; }
}

/* 「全級第一／全班第一」卡：深藍反白 */
.score.top {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border-color: var(--navy-2);
}
.score.top .score-val { color: var(--brand-light); }
.score.top .score-who { color: #fff; }
.score.top .score-sub { color: #9DB2CC; }
