/* ==========================================================================
   部落森學院 — 全站樣式
   設計 token 沿用北聯官網（暖霧亞麻底 + 部落森 CIS 四色）
   ========================================================================== */

:root {
  --paper: #f2efe9;
  --card: #ffffff;
  --ink: #16232f;
  --muted: #45586b;
  --line: #e6e0d6;

  --blue: #00508F;
  --navy: #0c315d;
  --rose: #DE0050;
  --yellow: #F6AC1D;

  --radius: 22px;
  --shadow: 0 12px 40px rgba(23, 49, 82, .08);
  --shadow-lg: 0 20px 54px rgba(23, 49, 82, .13);

  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.container {
  width: min(var(--maxw), calc(100% - 40px));
  margin: auto;
}

/* ==========================================================================
   導覽列
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: clamp(64px, 5.4vw, 82px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; width: clamp(120px, 10.2vw, 152px); flex: none; }
.brand img { display: block; }

.main-nav {
  display: flex; align-items: center;
  gap: clamp(12px, 1.6vw, 25px);
  margin-left: auto;
  font-size: clamp(14px, 1.05vw, 15.5px);
  font-weight: 800;
}
.main-nav a { position: relative; }

.main-nav a:after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: -8px;
  height: 3px; border-radius: 4px;
  background: var(--yellow);
  transition: .2s;
}
.main-nav a:hover:after,
.main-nav a.is-active:after { right: 0; }

.campus-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 11px 20px;
  background: var(--navy); color: #fff;
  font-weight: 900; font-size: clamp(14px, 1vw, 15px);
}

.menu-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 0;
  width: 42px; height: 42px; padding: 9px;
}
.menu-toggle span {
  display: block; height: 3px;
  background: var(--ink); margin: 5px 0; border-radius: 5px;
}

@media (max-width: 900px) {
  .main-nav, .campus-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open {
    display: flex; position: absolute;
    left: 14px; right: 14px; top: 72px;
    background: #fff; box-shadow: var(--shadow);
    border-radius: 16px; padding: 8px 6px;
    flex-direction: column; align-items: stretch;
    margin: 0; gap: 0; font-size: 15px;
  }
  .main-nav.is-open a {
    padding: 12px 16px; border-radius: 10px;
    font-weight: 700; font-size: 15px;
  }
  .main-nav.is-open a:hover,
  .main-nav.is-open a.is-active { background: var(--paper); }
  .main-nav.is-open a:after { display: none; }
}

/* ==========================================================================
   首頁 banner
   ========================================================================== */
.hero-full {
  position: relative;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  background: var(--paper);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  display: block;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.hero-dots {
  position: absolute; z-index: 4;
  left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 9px;
}
.hero-dot {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: .25s;
}
.hero-dot.is-active { background: #fff; width: 26px; border-radius: 5px; }

.hero-arrow {
  position: absolute; z-index: 4; top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  font: 300 24px/1 Arial;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

@media (max-width: 900px) {
  .hero-full { aspect-ratio: 16 / 7; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 12px; }
}

/* ==========================================================================
   四格捷徑
   ========================================================================== */
.quick-links { position: relative; z-index: 3; margin-top: 18px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 20px;
  overflow: hidden;
}
.quick-grid a {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  font-weight: 900;
  font-size: 18px;
  color: var(--blue);
  text-align: center;
  transition: .2s;
}
.quick-grid a:last-child { border-right: 0; }
.quick-grid a:hover { background: #f2f8fc; }

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid a { font-size: 15px; padding: 16px 10px; border-bottom: 1px solid var(--line); }
  .quick-grid a:nth-child(2n) { border-right: 0; }
  .quick-grid a:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ==========================================================================
   區塊
   ========================================================================== */
.section { padding: 88px 0; }

.sec-title {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  position: relative;
  margin-bottom: 34px;
}
.sec-title:after {
  content: ""; position: absolute;
  left: 0; bottom: -2px;
  width: 72px; height: 4px;
  background: var(--yellow); border-radius: 2px;
}
.sec-title h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0;
}
.sec-more {
  font-size: 14.5px; font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}
.sec-note {
  font-size: 14.5px; font-weight: 700;
  color: #a8a29a;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .section { padding: 52px 0; }
  .sec-title { gap: 12px; margin-bottom: 24px; }
}

/* ==========================================================================
   頁面標題（內頁）
   ========================================================================== */
.page-hero {
  padding: 56px 0 44px;
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  font-size: 14px; color: #8b95a1;
  margin-bottom: 12px;
}
.breadcrumbs a { color: var(--blue); }
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.page-hero p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}
.kicker {
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .page-hero { padding: 30px 0 26px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15.5px; }
}

/* ==========================================================================
   消息列表
   ========================================================================== */
.news-list { display: grid; gap: 14px; }

.news-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  transition: .22s;
}
.news-row:hover {
  transform: translateY(-3px);
  border-color: #b7d0e6;
  box-shadow: var(--shadow);
}

.news-year {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  padding: 5px 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.news-main { min-width: 0; }
.news-main h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  font-size: 14px;
  color: #8b95a1;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.news-meta .cat {
  color: var(--rose);
  font-weight: 800;
}

.news-thumb {
  width: 104px; height: 104px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  flex: none;
}
.news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.news-row:hover .news-thumb img { transform: scale(1.06); }

@media (max-width: 760px) {
  .news-row {
    grid-template-columns: 62px minmax(0, 1fr) 74px;
    gap: 12px; padding: 14px;
  }
  .news-year { font-size: 13px; }
  .news-main h3 { font-size: 15.5px; }
  .news-thumb { width: 74px; height: 74px; border-radius: 9px; }
  .news-meta { font-size: 13px; }
}

/* ==========================================================================
   榜單
   ========================================================================== */
.honor-cats {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.honor-cat {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--muted);
  transition: .2s;
}
.honor-cat:hover { border-color: var(--blue); color: var(--blue); }
.honor-cat.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ==========================================================================
   卡片格
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 32px rgba(23,49,82,.06);
  transition: .22s;
}
a.card:hover {
  transform: translateY(-5px);
  border-color: #b7d0e6;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .grid.three, .grid.two { grid-template-columns: 1fr; }
}

/* ==========================================================================
   文章
   ========================================================================== */
.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}
.article h1, .article h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.article-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  color: #8b95a1;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 26px;
}
.article-body { font-size: 16.5px; line-height: 1.95; color: var(--muted); }
.article-body p { margin: 0 0 18px; }
.article-body img { border-radius: 14px; margin: 22px 0; }

/* 海報圖 */
.article-pic {
  margin: 26px 0 0;
  border-radius: 14px;
  overflow: hidden;
}
.article-pic img { width: 100%; border-radius: 14px; margin: 0; }

/* ==========================================================================
   故事感言
   ========================================================================== */
.voice-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.voice-card:before {
  content: "“";
  position: absolute;
  left: 20px; top: 6px;
  font: 900 52px/1 Georgia;
  color: var(--yellow);
  opacity: .6;
}
.voice-card h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 18px 0 8px;
}
.voice-card p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 14px;
}
.voice-meta {
  font-size: 14px;
  color: #8b95a1;
}

/* ==========================================================================
   分校
   ========================================================================== */
.school-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.school-card h3 {
  font-size: 19px;
  font-weight: 900;
  margin: 0 0 10px;
}
.school-card .addr,
.school-card .tel {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}
.school-card .tel {
  color: var(--blue);
  font-weight: 800;
}

/* ==========================================================================
   DM 牆
   ========================================================================== */
.dm-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.dm-item {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: .22s;
}
.dm-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dm-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ==========================================================================
   頁尾
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #c4d2df;
  padding: 58px 0 25px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { width: 144px; margin-bottom: 16px; }
.footer-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: #9fb3c6;
  max-width: 320px;
}
.site-footer h2 { font-size: 16px; color: #fff; margin: 0 0 14px; }
.site-footer a {
  display: block;
  margin: 8px 0;
  font-size: 14.5px;
}
.site-footer a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #8d9fb2;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .copyright { display: block; }
  .copyright span { display: block; margin-top: 6px; }
  .site-footer { margin-top: 56px; padding: 44px 0 22px; }
}

/* ==========================================================================
   動畫
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: .6s;
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   GEO 區塊（沿用北聯）
   ========================================================================== */
.geo-block {
  position: relative;
  padding: 24px 0 24px 58px;
  border-bottom: 1px solid var(--line);
}
.geo-block:last-of-type { border-bottom: 0; }
.geo-block .geo-no {
  position: absolute; left: 0; top: 24px;
  font-size: 15px; font-weight: 900;
  color: var(--rose);
  letter-spacing: .06em;
}
.geo-block .geo-no:after {
  content: ""; position: absolute;
  left: 0; bottom: -9px;
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--yellow);
}
.geo-block h3 {
  font-size: 20px; font-weight: 900;
  line-height: 1.45; margin: 0 0 9px;
}
.geo-block .geo-lead {
  font-size: 16px; font-weight: 800;
  color: var(--rose); line-height: 1.7;
  margin: 0 0 9px;
}
.geo-block p {
  font-size: 16px; line-height: 1.95;
  color: var(--muted); margin: 0 0 8px;
}

@media (max-width: 760px) {
  .geo-block { padding: 20px 0; }
  .geo-block .geo-no { position: static; display: block; margin-bottom: 10px; }
  .geo-block h3 { font-size: 18px; }
  .geo-block .geo-lead, .geo-block p { font-size: 15.5px; }
}
/* ==========================================================================
   行銷強化區塊（參考 EF / ABC / 曙光 的結構）
   ========================================================================== */

/* ---------- 倒數計時條 ---------- */
.countdown-bar {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
}
.countdown-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.countdown-label {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--yellow);
  white-space: nowrap;
}
.countdown-list {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}
.countdown-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cd-level {
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,.86);
}
.cd-num {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.cd-unit {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.62);
}
.cd-date {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-left: 2px;
}
.countdown-cta {
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 999px;
  padding: 9px 20px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .countdown-inner { gap: 12px; }
  .countdown-list { gap: 16px; }
  .cd-num { font-size: 24px; }
  .countdown-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* ---------- 信任數據條 ---------- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 18px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.trust-item strong small {
  font-size: .42em;
  font-weight: 800;
  margin-left: 2px;
  color: var(--muted);
}
.trust-item span {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-bar { padding: 22px 0; }
}

/* ---------- 為什麼選我們 ---------- */
.why-head {
  text-align: center;
  margin-bottom: 42px;
}
.why-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.why-head p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 32px;
}
.why-item {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}
.why-no {
  position: absolute;
  top: -11px;
  left: 0;
  background: var(--paper);
  padding-right: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--rose);
  letter-spacing: .06em;
}
.why-item h3 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 9px;
}
.why-item p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 22px; }
  .why-head { margin-bottom: 30px; }
}

/* ---------- 痛點區 ---------- */
.pain-section {
  background: #fbfaf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  position: relative;
}
.pain-card h3 {
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
  padding-left: 2px;
}
.pain-card .pain-q {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--rose);
  line-height: 1.7;
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.pain-card p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* ---------- 感言卡（加標籤） ---------- */
.voice-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(0, 77, 204, .08);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.voice-card h3 { margin-top: 0 !important; }

/* ---------- 底部 CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff;
  padding: 54px 0;
  margin-top: 20px;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.cta-inner p {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  margin: 0;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 30px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  font-size: 15.5px;
}
.ghost-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.42);
}

@media (max-width: 760px) {
  .cta-band { padding: 40px 0; }
  .cta-actions { width: 100%; }
  .cta-btn { flex: 1; }
}

/* ==========================================================================
   第二輪：字級放大 + header 倒數 + 藍底 logo
   ========================================================================== */

/* ---------- 字級全面放大（最小 14px） ---------- */
body { font-size: 17.5px; line-height: 1.8; }

.page-hero p { font-size: 18px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }

.section h2, .sec-title h2 { font-size: clamp(30px, 3.6vw, 44px); }

.news-main h3 { font-size: 19.5px; }
.news-meta { font-size: 15px; }
.news-year { font-size: 16px; }

.article-body { font-size: 18px; line-height: 2; }
.article-meta { font-size: 15.5px; }

.card p, .school-card .addr, .school-card .tel { font-size: 16px; }
.card h3 { font-size: 20px; }

.why-item h3 { font-size: 21px; }
.why-item p { font-size: 17px; }
.why-head p { font-size: 18px; }

.pain-card h3 { font-size: 19.5px; }
.pain-card .pain-q { font-size: 17px; }
.pain-card p { font-size: 17px; }

.voice-card h3 { font-size: 21px; }
.voice-card p { font-size: 17px; }
.voice-meta { font-size: 15px; }
.voice-tag { font-size: 14.5px; }

.trust-item span { font-size: 16px; }

.geo-block h3 { font-size: 23px; }
.geo-block .geo-lead { font-size: 18px; }
.geo-block p { font-size: 18px; }

.sec-more { font-size: 16px; }
.sec-note { font-size: 16px; }

.quick-grid a { font-size: 20px; }

.site-footer a { font-size: 16px; }
.footer-desc { font-size: 16px; }
.copyright { font-size: 15px; }

.cta-inner p { font-size: 18px; }
.cta-btn { font-size: 17px; padding: 16px 34px; }

.school-card h3 { font-size: 21px; }

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .page-hero p { font-size: 16.5px; }
  .page-hero h1 { font-size: 30px; }
  .news-main h3 { font-size: 17px; }
  .news-meta { font-size: 14.5px; }
  .why-item h3 { font-size: 19px; }
  .why-item p { font-size: 16px; }
  .pain-card p { font-size: 16px; }
  .quick-grid a { font-size: 16px; }
  .article-body { font-size: 17px; }
}

/* ---------- header 倒數 ---------- */
.header-countdown {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.hc-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.hc-item em {
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.hc-item b {
  font-size: 22px;
  font-weight: 900;
  color: var(--rose);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hc-item i {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #a8a29a;
}

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

/* ---------- header logo（藍底） ---------- */
.brand { width: auto !important; flex: none; }
.brand img {
  display: block;
  height: 42px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 77, 204, .22);
}
@media (max-width: 560px) {
  .brand img { height: 34px; }
}

/* 手機選單裡顯示倒數 */
@media (max-width: 900px) {
  .main-nav.is-open .nav-countdown {
    display: flex;
    gap: 14px;
    padding: 12px 16px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open .nav-countdown em {
    font-style: normal; font-size: 14px; font-weight: 800; color: var(--muted);
  }
  .main-nav.is-open .nav-countdown b {
    font-size: 20px; font-weight: 900; color: var(--rose);
  }
  .main-nav.is-open .nav-countdown i {
    font-style: normal; font-size: 13px; color: #a8a29a;
  }
}
/* ==========================================================================
   header 導覽修正（字放大後空間不足）
   ========================================================================== */

.nav-wrap { gap: 18px !important; }

.main-nav {
  gap: clamp(10px, 1.2vw, 18px) !important;
  font-size: 15.5px !important;
  white-space: nowrap;
}

.campus-cta {
  font-size: 15px !important;
  padding: 10px 18px !important;
  white-space: nowrap;
}

/* 倒數縮小一點，避免搶空間 */
.header-countdown {
  gap: 14px !important;
  padding-left: 14px !important;
}
.hc-item em { font-size: 13.5px !important; }
.hc-item b { font-size: 19px !important; }

/* 1180 以下隱藏倒數 */
@media (max-width: 1240px) {
  .header-countdown { display: none !important; }
}

/* 1050 以下切換成漢堡選單 */
@media (max-width: 1050px) {
  .main-nav, .campus-cta { display: none !important; }
  .menu-toggle { display: block !important; }
  .main-nav.is-open {
    display: flex !important;
    position: absolute;
    left: 14px; right: 14px; top: 72px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(23,49,82,.12);
    border-radius: 16px;
    padding: 8px 6px;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 0;
    font-size: 16px !important;
  }
  .main-nav.is-open a {
    padding: 13px 16px; border-radius: 10px;
    font-weight: 700; font-size: 16px;
  }
  .main-nav.is-open a:hover,
  .main-nav.is-open a.is-active { background: var(--paper); }
  .main-nav.is-open a:after { display: none; }
}

/* 倒數字級補到 14px 以上 */
.hc-item em, .main-nav.is-open .nav-countdown em { font-size: 14px !important; }
.hc-item i,  .main-nav.is-open .nav-countdown i  { font-size: 14px !important; }
@media (max-width: 1240px) { .hc-item em, .hc-item i { font-size: 14px !important; } }

/* 縮圖修正：固定尺寸不變形 */
.news-row { align-items: center; }
.news-row .news-thumb {
  width: 104px !important;
  height: 104px !important;
  min-width: 104px;
  max-width: 104px;
  max-height: 104px;
  flex: 0 0 104px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2efe9;
  display: block;
}
.news-row .news-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
@media (max-width: 760px) {
  .news-row .news-thumb {
    width: 72px !important; height: 72px !important;
    min-width: 72px; max-width: 72px; flex-basis: 72px;
  }
}

/* 深藍底 logo：固定高度，寬度自動 */
.brand { width: auto !important; flex: none; }
.brand img {
  display: block !important;
  height: 46px !important;
  width: auto !important;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 80, 143, .25);
}
@media (max-width: 560px) {
  .brand img { height: 38px !important; }
}

/* ==========================================================================
   Header 改為品牌藍底
   ========================================================================== */
.site-header {
  background: var(--blue) !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 14px rgba(0, 40, 90, .18);
}

.site-header .main-nav a { color: #fff !important; }
.site-header .main-nav a:after { background: var(--yellow) !important; }

.site-header .campus-cta {
  background: #fff !important;
  color: var(--blue) !important;
  font-weight: 900;
}

.site-header .menu-toggle span { background: #fff !important; }

.brand img {
  height: 42px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* header 倒數：白字 */
.hc-item em { color: rgba(255,255,255,.82) !important; }
.hc-item b { color: var(--yellow) !important; }
.hc-item i { color: rgba(255,255,255,.62) !important; }
.header-countdown { border-left-color: rgba(255,255,255,.28) !important; }

/* 手機選單展開時白底 */
.main-nav.is-open {
  background: #fff !important;
}
.main-nav.is-open a { color: var(--ink) !important; }

@media (max-width: 1050px) {
  .site-header .menu-toggle span { background: #fff !important; }
}/* ==========================================================================
   第三輪：紅黃配色比重提高（原本太藍白）
   ========================================================================== */

/* ---------- 年份標籤：藍底改黃底黑字 ---------- */
.news-year {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  font-weight: 900;
}

/* ---------- 信任數據數字：藍改玫紅 ---------- */
.trust-item strong { color: var(--rose) !important; }
.trust-item strong small { color: var(--muted) !important; }

/* ---------- 「看全部」連結：藍改玫紅 ---------- */
.sec-more { color: var(--rose) !important; border-bottom: 2px solid rgba(242,0,128,.25); padding-bottom: 1px; }
.sec-more:hover { border-bottom-color: var(--rose); }

/* ---------- 分類標籤：改成玫紅底白字圓角 ---------- */
.news-meta .cat {
  background: var(--rose) !important;
  color: #fff !important;
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.7;
}

/* ---------- 四格捷徑 hover：淺黃底 ---------- */
.quick-grid a:hover { background: #fff7e8 !important; }

/* ---------- 區塊標題黃線加粗 ---------- */
.sec-title:after {
  width: 84px !important;
  height: 5px !important;
  background: var(--yellow) !important;
}

/* ---------- 區塊標題前的玫紅短線（新增辨識） ---------- */
.sec-title h2 {
  position: relative;
  padding-left: 20px;
}
.sec-title h2:before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: .82em;
  border-radius: 3px;
  background: var(--rose);
}

/* ---------- 理由/痛點區：標題前加黃色小方塊 ---------- */
.why-item .why-no {
  background: var(--paper);
  color: var(--rose) !important;
}
.why-item {
  border-top-color: var(--line) !important;
}
.why-item:nth-child(3n+1) { border-top-color: var(--rose) !important; }
.why-item:nth-child(3n+2) { border-top-color: var(--yellow) !important; }
.why-item:nth-child(3n+3) { border-top-color: var(--blue) !important; }

/* ---------- 痛點卡：左側玫紅條 ---------- */
.pain-card {
  border-left: 4px solid var(--rose);
  background: #fff;
}
.pain-card:nth-child(2) { border-left-color: var(--yellow); }
.pain-card:nth-child(3) { border-left-color: var(--blue); }

/* ---------- 感言卡：上方黃線 ---------- */
.voice-card {
  border-top: 4px solid var(--yellow);
  padding-top: 26px;
}

/* ---------- 表單/篩選標籤：選中改玫紅 ---------- */
.honor-cat.is-active {
  background: var(--rose) !important;
  border-color: var(--rose) !important;
  color: #fff !important;
}
.honor-cat:hover { border-color: var(--rose) !important; color: var(--rose) !important; }

/* ---------- 頁尾：加黃色上緣線 ---------- */
.site-footer {
  border-top: 5px solid var(--yellow);
}

/* ---------- 內頁 hero：加黃色下緣 ---------- */
.page-hero {
  border-bottom: 3px solid var(--yellow) !important;
}

/* ---------- 麵包屑連結 玫紅 ---------- */
.breadcrumbs a { color: var(--rose) !important; }

/* ---------- kicker 小標 玫紅 ---------- */
.kicker { color: var(--rose) !important; }

/* ---------- 內文連結 玫紅 ---------- */
.article-body a { color: var(--rose); font-weight: 800; }

/* ---------- 分頁按鈕：選中玫紅 ---------- */
.pager a.current { background: var(--rose) !important; }

/* ---------- 首頁 bottom CTA：黃→玫紅漸層按鈕 ---------- */
.cta-band {
  background: linear-gradient(120deg, #001a45, var(--blue)) !important;
  border-top: 5px solid var(--yellow);
}
.cta-btn {
  background: var(--yellow) !important;
  color: var(--navy) !important;
}
.ghost-btn {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.42) !important;
}

/* ---------- 統計數字玫紅 ---------- */
.cd-num { color: var(--yellow) !important; }

/* ---------- 手機選單 active 改玫紅 ---------- */
.main-nav.is-open a.is-active {
  background: rgba(242,0,128,.08) !important;
  color: var(--rose) !important;
}

/* ==========================================================================
   教材頁 / 考試日程頁
   ========================================================================== */

.mat-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--rose);
  border-radius: 5px;
  padding: 3px 11px;
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.card:nth-child(2n) .mat-tag { background: var(--yellow); color: var(--navy); }
.card:nth-child(3n) .mat-tag { background: var(--blue); }

/* ---------- 考試日程 ---------- */
.level-block { margin-bottom: 46px; }

.level-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.level-head h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  margin: 0;
  white-space: nowrap;
  position: relative;
  padding-left: 18px;
}
.level-head h2:before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: .82em;
  border-radius: 3px;
  background: var(--rose);
}
.level-line {
  flex: 1;
  height: 2px;
  background: var(--line);
}

.sched-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.sched-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.7fr 1.1fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 16px;
}
.sched-row:last-child { border-bottom: 0; }

.sched-head {
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  padding: 13px 24px;
}

.s-item {
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hot {
  font-style: normal;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 4px;
  padding: 2px 7px;
}

.s-date {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.s-date small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}
.s-left {
  font-size: 14px;
  font-weight: 900;
  color: var(--rose);
  background: rgba(242,0,128,.09);
  border-radius: 4px;
  padding: 2px 8px;
}
.s-done {
  font-size: 14px;
  font-weight: 700;
  color: #a8a29a;
}

.s-reg, .s-score {
  font-size: 15px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sched-row.is-past { opacity: .45; }

@media (max-width: 820px) {
  .sched-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 15px 18px;
    font-size: 15px;
  }
  .sched-head { display: none; }
  .s-item { grid-column: 1 / -1; font-size: 16.5px; }
  .s-reg::before { content: "報名 "; font-size: 13.5px; color: #a8a29a; }
  .s-score::before { content: "放榜 "; font-size: 13.5px; color: #a8a29a; }
}

/* ---------- 提醒區 ---------- */
.schedule-note {
  background: #fff8e8;
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 40px 0;
}
.schedule-note h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 12px;
  color: var(--ink);
}
.schedule-note ul {
  margin: 0;
  padding-left: 20px;
}
.schedule-note li {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 6px;
}
.schedule-note a { color: var(--rose); font-weight: 800; }
.schedule-note .src {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,.1);
  font-size: 14.5px;
  color: #8b95a1;
}

/* ---------- 頁內 CTA ---------- */
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--navy);
  border-radius: 20px;
  padding: 30px 34px;
  margin-top: 48px;
  color: #fff;
}
.cta-inline h3 {
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 6px;
}
.cta-inline p {
  font-size: 16px;
  color: rgba(255,255,255,.76);
  margin: 0;
}
.cta-inline .cta-btn {
  background: var(--yellow);
  color: var(--navy);
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 900;
  font-size: 16.5px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .cta-inline { padding: 24px 22px; }
  .cta-inline .cta-btn { width: 100%; text-align: center; }
}


/* 課程頁子頁連結 */
.sub-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.sub-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  transition: .2s;
  display: block;
}
.sub-link:hover {
  border-color: var(--rose);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(23,49,82,.1);
}
.sub-ico { display: block; font-size: 26px; margin-bottom: 8px; }
.sub-link strong { display: block; font-size: 19px; font-weight: 900; color: var(--ink); }
.sub-link small { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .sub-nav { grid-template-columns: 1fr; } }
/* ==========================================================================
   第四輪：新 logo + 倒數放大
   ========================================================================== */

/* ---------- 倒數放大 ---------- */
.header-countdown {
  gap: 26px !important;
  padding-left: 22px !important;
  border-left: 1px solid rgba(255,255,255,.32) !important;
}

.hc-item {
  gap: 7px !important;
  align-items: baseline;
}

.hc-item em {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,.88) !important;
  letter-spacing: .02em;
}

.hc-item b {
  font-size: 34px !important;
  font-weight: 900 !important;
  color: var(--yellow) !important;
  line-height: 1 !important;
  letter-spacing: -.03em;
  text-shadow: 0 2px 10px rgba(0,0,0,.14);
}

.hc-item i {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.7) !important;
}

/* ---------- 新 logo ---------- */
.brand img {
  height: 52px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 560px) {
  .brand img { height: 40px !important; }
}

/* 導覽字級微調（讓倒數有空間） */
.main-nav { font-size: 15px !important; gap: clamp(9px, 1vw, 15px) !important; }

/* 1400 以下倒數縮一級 */
@media (max-width: 1400px) {
  .hc-item em { font-size: 15px !important; }
  .hc-item b { font-size: 29px !important; }
}

/* 1240 以下隱藏倒數 */
@media (max-width: 1240px) {
  .header-countdown { display: none !important; }
}

/* ---------- 課程下拉選單 ---------- */
.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-group > a { display: inline-flex; align-items: center; gap: 4px; }
.caret {
  font-size: 11px;
  opacity: .7;
  font-weight: 400;
  transition: .2s;
}
.nav-group:hover .caret { opacity: 1; }

.nav-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 168px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 20, 50, .18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: .2s;
  display: flex;
  flex-direction: column;
  z-index: 70;
}
.nav-drop:before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-group:hover .nav-drop,
.nav-group:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink) !important;
  white-space: nowrap;
}
.nav-drop a:hover {
  background: var(--paper);
  color: var(--rose) !important;
}
.nav-drop a:after { display: none !important; }

/* 課程在選中狀態時，主選單仍顯示黃線 */
.nav-group.is-on > a:after { right: 0 !important; }

/* 手機：下拉改成直接展開 */
@media (max-width: 1050px) {
  .nav-drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 0 14px;
    background: transparent;
    min-width: 0;
  }
  .nav-drop a { padding: 10px 16px; font-size: 15px; color: var(--muted) !important; }
  .caret { display: none; }
  .nav-group { display: block; width: 100%; }
  .nav-group > a { padding: 13px 16px !important; }
}
/* 下拉選單文字顏色強制深色 */
.site-header .nav-drop a,
.site-header .nav-drop a:link,
.site-header .nav-drop a:visited {
  color: #16232f !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.site-header .nav-drop a:hover {
  color: var(--rose) !important;
  background: #f2efe9 !important;
}
.nav-drop { background: #fff !important; }

/* ==========================================================================
   Header 改白底（第五輪）
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04) !important;
}

/* 選單文字回深色 */
.site-header .main-nav a { color: var(--ink) !important; }
.site-header .main-nav a:after { background: var(--rose) !important; }

/* 找不到分校按鈕：藍底白字 */
.site-header .campus-cta {
  background: var(--blue) !important;
  color: #fff !important;
}

/* 漢堡線回深色 */
.site-header .menu-toggle span { background: var(--ink) !important; }

/* 倒數：白底上的配色 */
.header-countdown { border-left-color: var(--line) !important; }
.hc-item em { color: var(--muted) !important; }
.hc-item b { color: var(--rose) !important; text-shadow: none !important; }
.hc-item i { color: #a8a29a !important; }

/* logo 尺寸 */
.brand img {
  height: 46px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 560px) {
  .brand img { height: 38px !important; }
}/* ==========================================================================
   第六輪：修正 CTA/footer 縫隙 + 降低白感
   ========================================================================== */

/* ---------- 1. 移除 CTA 與 footer 之間的縫隙 ---------- */
.cta-band {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.site-footer {
  margin-top: 0 !important;
}

/* ---------- 2. 降低白感：頁面底色加深、區塊交錯 ---------- */
body.home-page { background: #f2efe9; }

/* 交錯底色：奇數區塊用淺米，偶數用白 */
.section { background: transparent; }

.home-page .section:nth-of-type(odd) {
  background: #f2efe9;
}
.home-page .section:nth-of-type(even) {
  background: #faf8f4;
}

/* 卡片白底保留，但加淡邊框與陰影，不再純白一片 */
.card,
.news-row,
.school-card,
.voice-card,
.pain-card,
.sched-table {
  background: #fff !important;
  border: 1px solid #e6e0d6 !important;
  box-shadow: 0 2px 10px rgba(23, 49, 82, .045) !important;
}

/* ---------- 3. 首頁上方留白收斂 ---------- */
.quick-links { margin-top: 0 !important; }
.trust-bar { margin-top: 0 !important; }

/* 四格捷徑：藍底白字（跳出色塊） */
.quick-grid {
  background: var(--blue) !important;
  box-shadow: 0 10px 30px rgba(0, 77, 204, .18) !important;
}
.quick-grid a {
  color: #fff !important;
  border-right-color: rgba(255,255,255,.16) !important;
}
.quick-grid a:hover {
  background: rgba(255,255,255,.12) !important;
}

/* ---------- 4. 信任數據條：米色底 ---------- */
.trust-bar {
  background: #f2efe9 !important;
  border-bottom: 1px solid #e6e0d6 !important;
}

/* ---------- 5. 「為什麼」區塊：白底帶邊框 ---------- */
.home-page .section:nth-of-type(2) {
  background: #fff;
  border-top: 1px solid #e6e0d6;
  border-bottom: 1px solid #e6e0d6;
}

/* ---------- 6. 內頁：page-hero 米色、內容區交錯 ---------- */
.page-hero {
  background: #f2efe9 !important;
}
.page-hero + .section {
  background: #faf8f4;
}

/* ---------- 7. footer 上緣黃線保留 ---------- */
.site-footer {
  border-top: 5px solid var(--yellow) !important;
}
/* ==========================================================================
   第七輪：四格上移疊 banner + 各區塊不同版面
   ========================================================================== */

/* ---------- 1. 四格捷徑上移疊 banner ---------- */
.quick-links {
  margin-top: -56px !important;
  position: relative;
  z-index: 10;
  padding-bottom: 0;
}

.quick-grid {
  border-radius: 18px !important;
  overflow: hidden;
  background: var(--blue) !important;
  box-shadow: 0 14px 40px rgba(0, 40, 100, .28) !important;
}

.quick-grid a {
  padding: 26px 22px !important;
  font-size: 19px !important;
  color: #fff !important;
  border-right: 1px solid rgba(255,255,255,.18) !important;
  transition: .22s;
}
.quick-grid a:last-child { border-right: 0 !important; }
.quick-grid a:hover {
  background: rgba(255,255,255,.13) !important;
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .quick-links { margin-top: -34px !important; }
  .quick-grid a { padding: 18px 12px !important; font-size: 15px !important; }
}

/* ---------- 2. 信任數據：改成橫向大數字帶 ---------- */
.trust-bar {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 44px 0 !important;
}
.trust-grid {
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  gap: 0 !important;
}
.trust-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.trust-item + .trust-item:before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 46px;
  background: var(--line);
}
.trust-item strong {
  font-size: clamp(40px, 4.6vw, 56px) !important;
  color: var(--rose) !important;
  letter-spacing: -.04em;
  display: block;
  line-height: 1;
}
.trust-item strong small { font-size: .36em !important; }
.trust-item span {
  font-size: 15.5px !important;
  margin-top: 8px !important;
  letter-spacing: .04em;
}
@media (max-width: 700px) {
  .trust-grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 26px 0 !important; }
  .trust-item:nth-child(odd):before { display: none; }
  .trust-item strong { font-size: 38px !important; }
}

/* ---------- 3. 為什麼選我們：改成編號大字橫列 ---------- */
.why-grid {
  display: block !important;
  counter-reset: why;
}
.why-item {
  display: grid;
  grid-template-columns: 92px 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 30px 0 !important;
  border-top: 1px solid var(--line) !important;
  border-left: 0 !important;
}
.why-item:first-child { border-top: 2px solid var(--ink) !important; }
.why-no {
  position: static !important;
  background: none !important;
  font-size: 40px !important;
  font-weight: 900 !important;
  color: #d8d0c4 !important;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.why-item h3 {
  font-size: 21px !important;
  margin: 0 !important;
  line-height: 1.45;
}
.why-item p {
  font-size: 16.5px !important;
  margin: 0 !important;
  line-height: 1.9;
}
.why-item:hover .why-no { color: var(--rose) !important; }

@media (max-width: 900px) {
  .why-item {
    grid-template-columns: 58px 1fr;
    gap: 8px 16px;
    padding: 22px 0 !important;
  }
  .why-no { font-size: 26px !important; }
  .why-item h3 { grid-column: 2; }
  .why-item p { grid-column: 2; margin-top: 6px !important; font-size: 15.5px !important; }
}

/* ---------- 4. 家長痛點：改成下載卡堆疊感 ---------- */
.pain-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  align-items: start;
}
.pain-card {
  border-radius: 20px !important;
  border: 1px solid var(--line) !important;
  border-left: 0 !important;
  padding: 34px 30px 30px !important;
  position: relative;
  transition: .28s;
}
.pain-card:nth-child(1) { transform: translateY(0) rotate(-1.2deg); z-index: 1; }
.pain-card:nth-child(2) { transform: translateY(22px); z-index: 2; margin: 0 -12px; }
.pain-card:nth-child(3) { transform: translateY(6px) rotate(1.2deg); z-index: 1; }
.pain-card:hover { transform: translateY(-6px) rotate(0) !important; z-index: 5; box-shadow: 0 20px 50px rgba(23,49,82,.14); }

.pain-card:before {
  content: "Q";
  position: absolute;
  top: -14px; left: 24px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(242,0,128,.3);
}
.pain-card:nth-child(2):before { background: var(--yellow); color: var(--navy); }
.pain-card:nth-child(3):before { background: var(--blue); }

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
  .pain-card { transform: none !important; margin: 0 !important; }
}

/* ---------- 5. 最新消息：左大右小雜誌式 ---------- */
.news-list {
  display: grid !important;
  gap: 14px;
}

/* 首頁第一則做成大卡 */
.home-page #news-block .news-list .news-row:first-child {
  grid-template-columns: 1fr !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.home-page #news-block .news-list .news-row:first-child .news-thumb {
  width: 100% !important;
  height: 320px !important;
  max-width: none !important;
  border-radius: 0 !important;
  order: -1;
}
.home-page #news-block .news-list .news-row:first-child .news-main {
  padding: 28px 32px;
}
.home-page #news-block .news-list .news-row:first-child h3 {
  font-size: 26px !important;
  -webkit-line-clamp: 2;
  margin-bottom: 10px;
}
.home-page #news-block .news-list .news-row:first-child .news-year {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  padding: 5px 14px !important;
}
.home-page #news-block .news-list .news-row:first-child { position: relative; }

@media (max-width: 760px) {
  .home-page #news-block .news-list .news-row:first-child .news-thumb { height: 200px !important; }
  .home-page #news-block .news-list .news-row:first-child h3 { font-size: 20px !important; }
  .home-page #news-block .news-list .news-row:first-child .news-main { padding: 20px; }
}

/* ---------- 6. 孩子的話：改成對話框樣式 ---------- */
.voice-card:before {
  content: "“";
  position: absolute !important;
  left: 26px !important;
  top: 14px !important;
  font: 900 68px/1 Georgia !important;
  color: var(--yellow) !important;
  opacity: .35 !important;
}
.voice-card {
  border-top: 0 !important;
  padding: 34px 30px 28px !important;
  border-radius: 22px 22px 22px 6px !important;
  position: relative;
}
.voice-card:after {
  content: "";
  position: absolute;
  left: 28px; bottom: -14px;
  width: 0; height: 0;
  border: 14px solid transparent;
  border-top-color: #fff;
  border-right: 0;
  border-bottom: 0;
}
.voice-card h3 { font-size: 19px !important; margin-bottom: 10px !important; }
.voice-meta {
  font-weight: 900;
  color: var(--ink) !important;
  font-size: 15px !important;
}

/* ---------- 7. 首頁榮譽榜：改成左圖右文的橫幅堆疊（與最新消息區隔） ---------- */
.XXOFF .news-row {
  grid-template-columns: 132px 1fr auto !important;
  background: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
}
.XX-REMOVED .news-thumb {
  order: -1;
  width: 132px !important;
  height: 92px !important;
  flex: 0 0 132px !important;
  border-radius: 12px !important;
}
.XXOFF .news-row h3 { font-size: 17.5px !important; }

/* 榮譽榜：年份做成左側緞帶 */
.XXOFF .news-year {
  writing-mode: vertical-rl;
  padding: 10px 5px !important;
  border-radius: 0 8px 8px 0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px !important;
}
.XXOFF .news-row { position: relative; padding-left: 44px !important; }

/* ---------- 8. DM 牆：不等高瀑布感 ---------- */
.dm-wall {
  display: block !important;
  columns: 4;
  column-gap: 16px;
}
.dm-item {
  break-inside: avoid;
  margin-bottom: 16px;
  display: block;
  border-radius: 14px !important;
}
.dm-item img {
  aspect-ratio: auto !important;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 900px) { .dm-wall { columns: 2; } }

/* 四格疊 banner：收斂到 40px */
.quick-links { margin-top: -40px !important; }
.quick-grid a { padding: 22px 20px !important; font-size: 18px !important; }
@media (max-width: 900px) {
  .quick-links { margin-top: -26px !important; }
  .quick-grid a { padding: 16px 10px !important; font-size: 15px !important; }
}

/* ---------- 首頁最新消息：首則大卡（有圖才變大） ---------- */
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) {
  grid-template-columns: 1fr !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 22px !important;
}
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-thumb {
  width: 100% !important;
  height: 300px !important;
  max-width: none !important;
  flex: none !important;
  border-radius: 0 !important;
  order: -1;
}
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-main {
  padding: 26px 30px;
}
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) h3 {
  font-size: 25px !important;
  margin-bottom: 10px !important;
}
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-year {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
}
.home-page #news-block .news-list > .news-row:first-child { position: relative; }

@media (max-width: 760px) {
  .home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-thumb { height: 190px !important; }
  .home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) h3 { font-size: 19px !important; }
  .home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-main { padding: 18px 20px; }
}

/* 年份標籤不要在標題上（列表型） */
.news-row .news-year { flex: none; }
.news-row .news-main { min-width: 0; }
.news-row h3 { position: relative; z-index: 1; }

/* 首則大卡圖片：完整顯示不裁切 */
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-thumb {
  height: auto !important;
  max-height: 340px;
  background: #f7f5f1;
}
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-thumb img {
  width: 100% !important;
  height: auto !important;
  max-height: 340px;
  object-fit: contain !important;
}

/* 修正：首頁大卡只套用在「最新消息」區塊，不要影響榮譽榜 */
.home-page #news-block .news-list > .news-row:first-child:has(.news-thumb) .news-thumb {
  height: auto !important;
  max-height: 340px;
}
/* 榮譽榜縮圖固定小尺寸 */
.home-page #honor-block .news-thumb {
  width: 96px !important;
  height: 96px !important;
  flex: 0 0 96px !important;
  border-radius: 10px !important;
}
.home-page #honor-block .news-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
}
.home-page #honor-block .news-row { padding-left: 44px !important; }

/* 四格與數據條之間收緊 */
.quick-links { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.trust-bar { padding: 26px 0 !important; margin-top: 0 !important; }
@media (max-width: 700px) { .trust-bar { padding: 22px 0 !important; } }

/* 四格與數據條整合：四格下半部疊在數據條上 */
.trust-bar {
  padding-top: 46px !important;
  margin-top: -26px !important;
  position: relative;
  z-index: 5;
  background: #fff !important;
}
.quick-links { z-index: 10 !important; }
/* ==========================================================================
   人才招募 / 加盟資訊
   ========================================================================== */

/* ---------- 職缺卡 ---------- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  position: relative;
  transition: .25s;
}
.job-card:hover {
  border-color: var(--rose);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(23, 49, 82, .1);
}
.job-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--rose);
  border-radius: 5px;
  padding: 3px 11px;
  margin-bottom: 12px;
}
.job-tag.tag-alt { background: var(--yellow); color: var(--navy); }
.job-tag.tag-blue { background: var(--blue); }
.job-card h3 {
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--ink);
}
.job-meta {
  font-size: 14.5px;
  color: #8b95a1;
  margin: 0 0 14px;
  font-weight: 700;
}
.job-card > p:not(.job-meta) {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 14px;
}
.job-card ul {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
}
.job-card li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.job-card li:before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ---------- 福利格 ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.benefit {
  background: #fff;
  padding: 26px 26px 24px;
}
.benefit span {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
}
.benefit strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
}
.benefit p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* ---------- 理念 ---------- */
.belief-list {
  border-top: 2px solid var(--ink);
}
.belief {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.belief-no {
  font-size: 38px;
  font-weight: 900;
  color: #d8d0c4;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.belief:hover .belief-no { color: var(--rose); }
.belief h3 {
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--ink);
}
.belief p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* ---------- CTA 電話 ---------- */
.cta-phone {
  font-size: 19px !important;
  font-weight: 900 !important;
  color: var(--yellow) !important;
  margin-top: 8px !important;
  letter-spacing: .02em;
}

/* ---------- 加盟頁 ---------- */
.franchise-intro {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 40px;
}
.fi-text h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 900;
  margin: 0 0 16px;
  color: var(--ink);
}
.fi-text p {
  font-size: 16.5px;
  line-height: 2;
  color: var(--muted);
  margin: 0 0 12px;
}
.fi-text p:last-child { margin-bottom: 0; }
.fi-stat {
  text-align: center;
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.fi-stat strong {
  display: block;
  font-size: 68px;
  font-weight: 900;
  color: var(--rose);
  line-height: 1;
  letter-spacing: -.04em;
}
.fi-stat strong small { font-size: .38em; }
.fi-stat span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 700;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.support-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
  position: relative;
}
.sp-no {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 34px;
  font-weight: 900;
  color: #eee8dd;
  line-height: 1;
}
.support-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--ink);
  padding-right: 50px;
}
.support-card p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
}
.mat-card h3 {
  font-size: 19px;
  font-weight: 900;
  margin: 8px 0 10px;
  color: var(--ink);
}
.mat-card p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}

.mat-note {
  background: #fff8e8;
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 20px;
}
.mat-note h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--ink);
}
.mat-note ul { margin: 0; padding-left: 20px; }
.mat-note li {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.franchise-cta .cta-btn {
  background: var(--rose) !important;
  color: #fff !important;
}

/* ---------- RWD ---------- */
@media (max-width: 980px) {
  .job-grid, .benefit-grid, .mat-grid { grid-template-columns: 1fr 1fr; }
  .franchise-intro { grid-template-columns: 1fr; gap: 26px; padding: 30px 26px; }
  .fi-stat { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 660px) {
  .job-grid, .benefit-grid, .mat-grid, .support-grid { grid-template-columns: 1fr; }
  .belief { grid-template-columns: 58px 1fr; gap: 16px; }
  .belief-no { font-size: 26px; }
  .belief h3 { font-size: 18px; }
  .fi-stat strong { font-size: 52px; }
}
/* ==========================================================================
   分校頁
   ========================================================================== */

.area-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.area-head.is-first { margin-top: 0; }
.area-head:not(.is-first) { margin-top: 56px; }

.area-head h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  margin: 0;
  white-space: nowrap;
  position: relative;
  padding-left: 18px;
  color: var(--ink);
}
.area-head h2:before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: .82em;
  border-radius: 3px;
  background: var(--rose);
}
.area-count {
  font-size: 14.5px;
  font-weight: 900;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 4px 13px;
  white-space: nowrap;
}
.area-line {
  flex: 1;
  height: 2px;
  background: var(--line);
}

/* ---------- 分校卡 ---------- */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.campus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .25s;
}
.campus-card:hover {
  border-color: var(--rose);
  box-shadow: 0 18px 44px rgba(23, 49, 82, .1);
  transform: translateY(-4px);
}

/* 地圖區 */
.campus-map {
  position: relative;
  background: #eef2f7;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.campus-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 128 / 136;
  object-fit: cover;
}
.campus-card:hover .campus-map img {
  transform: scale(1.03);
  transition: transform .4s ease;
}

.campus-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.campus-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.campus-top h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  color: var(--ink);
  letter-spacing: .01em;
}
.campus-top h3 span {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--muted);
  margin-left: 3px;
}
.campus-loc {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 5px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* 資訊 */
.campus-info {
  flex: 1;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.ci-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.ci-ico {
  font-size: 14px;
  line-height: 1.7;
  flex: none;
  opacity: .75;
}
.ci-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.ci-tel {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.ci-tel:hover { color: var(--rose); }

/* 電話按鈕 */
.campus-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  transition: .2s;
}
.campus-call span {
  transition: transform .2s;
}
.campus-call:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.campus-call:hover span { transform: translateX(3px); }

/* 沒地圖的卡片：留白平衡 */
.campus-card:not(.has-map) .campus-body {
  padding-top: 26px;
}

/* ---------- RWD ---------- */
@media (max-width: 1050px) {
  .campus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .campus-grid { grid-template-columns: 1fr; gap: 16px; }
  .area-head:not(.is-first) { margin-top: 40px; }
  .area-head h2 { font-size: 22px; }
  .campus-map img { aspect-ratio: 128 / 120; }
  .campus-body { padding: 18px 20px 20px; }
  .campus-top h3 { font-size: 18.5px; }
}

/* 沒有地圖的卡片：橫式小卡，不要佔滿格 */
.campus-card:not(.has-map) {
  grid-column: auto;
}
.campus-card:not(.has-map) .campus-body {
  padding: 22px 22px 20px;
}
.campus-card:not(.has-map) .campus-top h3 { font-size: 19px; }

/* 分校格：不要讓沒圖的卡被拉高 */
.campus-grid { align-items: start; }
.campus-card { align-self: start; }
.campus-card:not(.has-map) .campus-info { flex: none; }
.campus-card:not(.has-map) .campus-body { padding-bottom: 20px; }

/* ---------- 分校卡 QR ---------- */
.campus-qr-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #f7f5f1;
  position: relative;
  min-height: 200px;
}
.campus-qr-hero img {
  width: 150px !important;
  height: 150px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.qr-badge {
  position: absolute;
  right: 16px; bottom: 16px;
  font-size: 12.5px;
  font-weight: 900;
  color: #fff;
  background: #06C755;
  border-radius: 4px;
  padding: 3px 9px;
  letter-spacing: .03em;
}
.campus-actions {
  margin-top: 14px;
}
.ci-pending {
  color: #a8a29a !important;
  font-style: italic;
}

/* 分校卡內嵌小 QR */
.campus-qr-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed #e6e0d6;
}
.campus-qr-inline img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
  border: 1px solid #e6e0d6;
  flex: none;
}
.campus-qr-inline span {
  font-size: 13.5px;
  font-weight: 800;
  color: #06C755;
  letter-spacing: .02em;
}

/* LINE 諮詢按鈕（沿用資優網頁做法） */
.campus-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.campus-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #06C755;
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 900;
  transition: .2s;
}
.campus-line span { font-size: 13px; }
.campus-line:hover {
  background: #05b34c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6,199,85,.3);
}

/* 四格壓在數據條上，完全貼合 */
.trust-bar {
  padding-top: 54px !important;
  margin-top: -40px !important;
  position: relative;
  z-index: 1;
}
.quick-links {
  position: relative;
  z-index: 10;
  margin-top: -40px !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.quick-grid {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   線上朗讀
   ========================================================================== */

/* 密碼閘 */
.pw-gate {
  display: flex;
  justify-content: center;
  padding: 20px 0 10px;
}
.pw-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 40px 38px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(23, 49, 82, .08);
}
.pw-icon {
  font-size: 38px;
  margin-bottom: 14px;
  display: block;
}
.pw-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--ink);
}
.pw-card > p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 22px;
}
.pw-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.pw-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fdfcfa;
}
.pw-form input:focus {
  outline: 0;
  border-color: var(--blue);
  background: #fff;
}
.pw-form button {
  flex: none;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
}
.pw-form button:hover { background: #003f75; }
.pw-err {
  background: #fff0f4;
  border: 1px solid rgba(242,0,128,.3);
  color: var(--rose);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 16px;
}
.pw-hint {
  font-size: 14px !important;
  color: #9aa4ae !important;
  margin: 0 !important;
}

/* 已解鎖 */
.listen-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 30px;
}
.lh-ok {
  font-size: 14px;
  font-weight: 900;
  color: #0a8f4d;
  background: rgba(10,143,77,.1);
  border-radius: 999px;
  padding: 5px 14px;
}
.lh-out {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
}
.lh-out:hover { border-color: var(--rose); color: var(--rose); }

/* 級別標題 */
.level-block { margin-bottom: 46px; }
.level-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.level-head h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  margin: 0;
  white-space: nowrap;
  position: relative;
  padding-left: 18px;
  color: var(--ink);
}
.level-head h2:before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: .82em;
  border-radius: 3px;
  background: var(--rose);
}
.level-en {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(0,80,143,.08);
  border-radius: 5px;
  padding: 3px 10px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.level-line {
  flex: 1;
  height: 2px;
  background: var(--line);
}

/* 朗讀卡 */
.listen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.listen-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: .25s;
  text-decoration: none;
}
.listen-card:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(23, 49, 82, .1);
  transform: translateY(-3px);
}
.lc-cover {
  flex: none;
  width: 132px;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lc-cover span {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  transform: rotate(-6deg);
  text-align: center;
  padding: 0 8px;
}
.lc-cover:after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(255,255,255,.24);
  border-radius: 10px;
}
.lc-body {
  padding: 20px 22px;
  flex: 1;
  min-width: 0;
}
.lc-body h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 7px;
  color: var(--ink);
}
.lc-body p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 12px;
}
.lc-play {
  font-size: 14px;
  font-weight: 900;
  color: #e00;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lc-play b { font-size: 12px; }

/* 製作中 */
.listen-card.is-pending {
  opacity: .55;
  pointer-events: none;
}
.listen-card.is-pending .lc-cover {
  background: #e8e3da;
}
.listen-card.is-pending .lc-cover span { color: #8b95a1; }

/* 使用說明 */
.listen-note {
  background: #fff8e8;
  border-left: 5px solid var(--yellow);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 10px 0 40px;
}
.listen-note h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--ink);
}
.listen-note ul { margin: 0; padding-left: 20px; }
.listen-note li {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

/* RWD */
@media (max-width: 860px) {
  .listen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pw-card { padding: 32px 24px 28px; }
  .pw-form { flex-direction: column; }
  .pw-form button { width: 100%; }
  .lc-cover { width: 104px; }
  .lc-cover span { font-size: 15px; }
  .lc-body { padding: 16px 18px; }
  .lc-body h3 { font-size: 16.5px; }
}

/* 朗讀卡：書封圖版 */
.lc-cover.has-img {
  width: 118px;
  padding: 0;
  background: #0c315d;
  overflow: hidden;
}
.lc-cover.has-img:after { display: none; }
.lc-cover.has-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.listen-card:hover .lc-cover.has-img img {
  transform: scale(1.04);
  transition: transform .35s ease;
}
@media (max-width: 560px) {
  .lc-cover.has-img { width: 96px; }
}

/* 書封完整顯示：不裁切，卡片高度配合書封比例 */
.lc-cover.has-img {
  width: 108px !important;
  align-self: stretch;
}
.lc-cover.has-img img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #0c315d;
}
.listen-card:has(.lc-cover.has-img) {
  min-height: 154px;
}
/* ==========================================================================
   教材頁：書封展示
   ========================================================================== */

.mat-showcase {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px 40px;
  margin-bottom: 26px;
}
.mat-showcase.reverse {
  grid-template-columns: 340px 1fr;
}

.mat-books {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}
.mat-books.single { justify-content: center; }

.book {
  margin: 0;
  flex: 1;
  max-width: 132px;
  text-align: center;
}
.book img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(23, 49, 82, .16), 0 2px 6px rgba(23, 49, 82, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.book:hover img {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(23, 49, 82, .22);
}
.book figcaption {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: .02em;
}

.mat-copy h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 10px 0 14px;
  color: var(--ink);
}
.mat-copy p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 12px;
}
.mat-copy .mat-sub {
  font-size: 14.5px;
  color: #8b95a1;
  border-left: 3px solid var(--yellow);
  padding-left: 12px;
  margin-top: 16px;
}

.mat-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--rose);
  border-radius: 5px;
  padding: 3px 11px;
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.mat-tag.tag-yellow { background: var(--yellow); color: var(--navy); }

/* 三格小卡 */
.mat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px 22px;
}
.mat-card-head { margin-bottom: 10px; }
.mat-card h3 {
  font-size: 18.5px;
  font-weight: 900;
  margin: 6px 0 0;
  color: var(--ink);
}
.mat-card p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}

/* RWD */
@media (max-width: 980px) {
  .mat-showcase,
  .mat-showcase.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 26px;
  }
  .mat-showcase.reverse .mat-copy { order: 2; }
  .mat-showcase.reverse .mat-books { order: 1; }
  .mat-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 660px) {
  .mat-grid-3 { grid-template-columns: 1fr; }
  .mat-books { gap: 8px; }
  .book { max-width: 82px; }
  .book figcaption { font-size: 11.5px; }
  .mat-showcase { padding: 24px 20px; }
  .mat-copy h3 { font-size: 20px; }
}

/* 書封高度對齊底部（單字書比例不同，用 align-end 讓底邊齊） */
.mat-books { align-items: flex-end; }
.book { display: flex; flex-direction: column; justify-content: flex-end; }
.book img { width: 100%; height: auto; }

/* 單字書：依高度對齊（比其他書放大約 7%） */
.book.is-vocab {
  max-width: 142px;
  flex: 1.07;
}
.book.is-vocab img {
  width: 100%;
  height: auto;
}

/* 教材卡內嵌封面 */
.mat-card.has-cover {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
}
.card-cover {
  flex: none;
  width: 92px;
  margin: 0;
}
.card-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(23,49,82,.16);
}
.card-body { flex: 1; min-width: 0; }
.card-body .mat-card-head { margin-bottom: 8px; }
.card-body h3 { margin-top: 4px; }

@media (max-width: 980px) {
  .card-cover { width: 78px; }
}

/* 閱讀書 A/B 雙封面 */
.card-cover.double {
  width: 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-cover.double img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(23,49,82,.16);
}

/* 三欄書架：單字/閱讀/文法同一排 */
.book-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 26px;
}
.shelf-col {
  background: #fff;
  border: 1px solid #e6e0d6;
  border-radius: 20px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: .25s;
}
.shelf-col:hover {
  border-color: var(--rose);
  box-shadow: 0 14px 36px rgba(23,49,82,.1);
  transform: translateY(-3px);
}
.shelf-books {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
  min-height: 176px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e0d6;
}
.shelf-books .book {
  flex: 1;
  max-width: 92px;
  margin: 0;
}
.shelf-books .book img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(23,49,82,.16);
  transition: transform .3s ease;
}
.shelf-col:hover .book img { transform: translateY(-6px); }
.shelf-books .book figcaption {
  font-size: 12px;
  font-weight: 800;
  color: #8b95a1;
  margin-top: 8px;
}
.shelf-copy { flex: 1; }
.shelf-copy h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 8px 0 10px;
  color: var(--ink);
  line-height: 1.4;
}
.shelf-copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* 兩欄小卡 */
.mat-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .book-shelf { grid-template-columns: 1fr; gap: 18px; }
  .shelf-books { min-height: 150px; }
  .mat-grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   手機版：banner 不重疊、完整顯示
   ========================================================================== */
@media (max-width: 900px) {
  /* banner 用原始比例，不要裁 */
  .hero-full { aspect-ratio: 2.4 / 1 !important; }
  .hero-slide img {
    object-fit: cover;
    object-position: center center;
  }

  /* 四格不重疊 banner，改為緊接下緣 */
  .quick-links {
    margin-top: 0 !important;
    padding: 0 12px !important;
  }
  .quick-grid {
    border-radius: 16px !important;
    margin: 0 0 0 0 !important;
  }
  .quick-grid a {
    padding: 20px 10px !important;
    font-size: 15.5px !important;
  }

  /* 數據條恢復正常內距 */
  .trust-bar {
    margin-top: 0 !important;
    padding-top: 34px !important;
    padding-bottom: 30px !important;
  }
}

@media (max-width: 560px) {
  .hero-full { aspect-ratio: 1.9 / 1 !important; }
  .quick-grid a { padding: 18px 8px !important; font-size: 14.5px !important; }
}

/* 手機 banner：再高一點，讓整張圖更完整 */
@media (max-width: 900px) {
  .hero-full { aspect-ratio: 1.42 / 1 !important; }
  .hero-slide img { object-position: center center; }
}
@media (max-width: 560px) {
  .hero-full { aspect-ratio: 1.25 / 1 !important; }
}
@media (max-width: 400px) {
  .hero-full { aspect-ratio: 1.1 / 1 !important; }
}

/* 手機 banner：完整顯示不裁切（用 contain + 底色） */
@media (max-width: 900px) {
  .hero-full {
    aspect-ratio: auto !important;
    height: auto !important;
    background: #0c315d;
  }
  .hero-slides { position: relative !important; }
  .hero-slide { position: absolute !important; inset: 0; }
  .hero-slide.is-active { position: relative !important; }
  .hero-slide img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain !important;
  }
}
