/* ============================================================
   萬能科技大學 — 主樣式（mobile-first）
   ============================================================ */
@import url("tokens.css?v=20260717b");

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; padding: 0; }
input { font: inherit; }

:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; border-radius: 2px; }

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

/* ---------- 版型工具 ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold-500); color: var(--navy-950); padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* 眉標（航空登機證風格） */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-500);
}

/* 區塊標題：跑道中線裝飾 */
.section-head { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-5); }
.section-head .row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); }
.section-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.section-title::after {
  content: "";
  display: block;
  width: 72px; height: 4px;
  margin-top: var(--sp-2);
  border-radius: var(--r-full);
  background: repeating-linear-gradient(90deg,
    var(--gold-500) 0 14px, transparent 14px 22px); /* 跑道中線 */
}
.section-more {
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  color: var(--blue-600);
}
.section-more::after { content: " →"; }

section.band { padding-block: var(--sp-7); }
section.band.alt { background: var(--c-surface); }

/* ============================================================
   頂部工具列
   ============================================================ */
.topbar {
  background: var(--navy-950);
  color: var(--sky-200);
  font-size: var(--fs-sm);
}
.topbar .container {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--sp-4); min-height: 40px; flex-wrap: wrap; padding-block: var(--sp-1);
}
.topbar a { color: var(--sky-200); }
.topbar a:hover { color: #fff; }
.topbar .login-toggle { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--gold-500); font-weight: 600; }
.topbar .login-toggle:hover { color: var(--gold-100); }

/* 登入面板 */
.login-pop {
  position: absolute; right: var(--sp-4); top: 40px; z-index: var(--z-drawer);
  background: var(--c-surface); color: var(--c-text);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: var(--sp-5); width: min(320px, calc(100vw - 2rem));
  display: none; flex-direction: column; gap: var(--sp-3);
}
.login-pop.open { display: flex; }
.login-pop h3 { font-size: var(--fs-md); color: var(--navy-800); }
.login-pop label { font-size: var(--fs-sm); color: var(--c-text-soft); display: block; margin-bottom: var(--sp-1); }
.login-pop input {
  width: 100%; padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--ink-300); border-radius: var(--r-sm);
}
.login-pop input:focus { border-color: var(--blue-500); outline: none; box-shadow: 0 0 0 3px var(--sky-200); }
.login-pop .btn-login {
  background: var(--navy-800); color: #fff; font-weight: 700;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); text-align: center;
}
.login-pop .btn-login:hover { background: var(--blue-600); color: #fff; }
.login-pop .hint { font-size: var(--fs-xs); color: var(--c-text-faint); }

/* ============================================================
   Header + 主導覽
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--grad-header);
  box-shadow: var(--shadow-md);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 64px;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); color: #fff; }
.brand:hover { color: #fff; }
.brand .mark {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--paper); display: grid; place-items: center; overflow: hidden;
  flex-shrink: 0;
}
.brand .mark img { width: 34px; height: 34px; object-fit: contain; }
.brand .name { display: flex; flex-direction: column; line-height: 1.2; }
.brand .name .zh { font-size: var(--fs-md); font-weight: 700; letter-spacing: 0.08em; }
.brand .name .en {
  font-family: var(--font-display); font-size: 0.6rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--sky-300);
}

/* 官方識別（透明 lockup 直接上深色底：彩色校徽 + 白色標準字） */
.brand-logo {
  height: 46px; width: auto; display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
  transition: transform var(--dur-press) var(--ease-out);
}
.brand:hover .brand-logo { transform: translateY(-1px); }
.brand:active .brand-logo { transform: scale(0.97); }
@media (max-width: 480px) {
  .brand-logo { height: 34px; }
}

/* ============================================================
   吉祥物：萬大獅 Wonder Lion
   ============================================================ */
.mascot-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-3) var(--sp-3);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 168px;
  transition: transform var(--dur-move) var(--ease-out), box-shadow var(--dur-move) var(--ease-out);
}
.mascot-card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 44px rgba(7, 42, 82, 0.28); }
.mascot-card img {
  width: 100%; border-radius: var(--r-md);
  background: #fff;
}
.mascot-card .m-name { font-weight: 800; color: var(--navy-800); font-size: var(--fs-sm); letter-spacing: 0.06em; }
.mascot-card .m-en {
  font-family: var(--font-display); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-500);
}
.mascot-bubble {
  position: relative;
  background: var(--gold-500); color: var(--navy-950);
  font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--r-full);
  padding: 3px 12px;
  margin-top: 2px;
}

/* 入口頁擺位：桌機右下浮動、小螢幕收斂為內嵌 */
.landing-mascot { display: flex; justify-content: center; margin-top: var(--sp-4); }
@media (min-width: 1100px) {
  .landing-mascot {
    position: absolute; right: 5vw; bottom: 4vh; margin: 0;
  }
}

/* 主頁招生區擺位：桌機貼齊區塊右上 */
.joinus-band .container { position: relative; }
.joinus-mascot { display: none; }
@media (min-width: 1024px) {
  .joinus-mascot {
    display: flex; position: absolute; top: calc(-1 * var(--sp-6)); right: var(--sp-4);
    transform: rotate(2deg);
  }
}

/* 桌機主選單（>=1024 顯示） */
.main-nav { display: none; }
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-burger { display: none; }
  .main-nav { display: block; }
  .main-nav > ul { display: flex; gap: var(--sp-1); }
  .main-nav > ul > li { position: relative; }
  .main-nav > ul > li > a {
    display: inline-flex; align-items: center; gap: var(--sp-1);
    color: #fff; font-weight: 600; font-size: var(--fs-sm);
    padding: var(--sp-3) var(--sp-3); border-radius: var(--r-sm);
  }
  .main-nav > ul > li > a .caret { font-size: 0.7em; opacity: 0.7; transition: transform 0.2s; }
  .main-nav > ul > li:hover > a,
  .main-nav > ul > li:focus-within > a { background: rgba(255,255,255,0.12); color: #fff; }
  .main-nav > ul > li:hover > a .caret,
  .main-nav > ul > li:focus-within > a .caret { transform: rotate(180deg); }

  /* 下拉面板 */
  .dropdown {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(6px) scale(0.98);
    transform-origin: top center;
    background: var(--c-surface); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: var(--sp-4);
    min-width: 240px;
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur-pop) var(--ease-out), transform var(--dur-pop) var(--ease-out), visibility 0s linear var(--dur-pop);
  }
  .main-nav li:hover > .dropdown,
  .main-nav li:focus-within > .dropdown {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0s;
  }
  .dropdown a {
    display: block; padding: var(--sp-2) var(--sp-3);
    color: var(--c-text-soft); font-size: var(--fs-sm); border-radius: var(--r-sm);
    white-space: nowrap;
  }
  .dropdown a:hover { background: var(--mist-50); color: var(--navy-800); }

  /* mega：學術單位 三欄 */
  .dropdown.mega { display: flex; gap: var(--sp-5); min-width: max-content; padding: var(--sp-5); }
  .dropdown.mega .col h4 {
    font-size: var(--fs-sm); color: var(--navy-800); font-weight: 700;
    padding: 0 var(--sp-3) var(--sp-2); margin-bottom: var(--sp-2);
    border-bottom: 2px solid var(--gold-500); white-space: nowrap;
  }
  /* 靠右選單面板改右對齊，避免超出視窗 */
  .main-nav > ul > li:nth-last-child(-n+2) .dropdown { left: auto; right: 0; transform: translateY(6px) scale(0.98); transform-origin: top right; }
  .main-nav > ul > li:nth-last-child(-n+2):hover > .dropdown,
  .main-nav > ul > li:nth-last-child(-n+2):focus-within > .dropdown { transform: translateY(0) scale(1); }
}

/* ============================================================
   手機抽屜選單
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(5, 29, 58, 0.55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(360px, 88vw);
  background: var(--c-surface);
  transform: translateX(100%); transition: transform 300ms var(--ease-drawer);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4); background: var(--grad-header); color: #fff;
  position: sticky; top: 0;
}
.drawer-head .title { font-weight: 700; letter-spacing: 0.1em; }
.drawer-close { width: 40px; height: 40px; color: #fff; font-size: 1.4rem; line-height: 1; }
.drawer nav { padding: var(--sp-3) 0 var(--sp-6); }
.drawer .acc > a,
.drawer .acc > button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  font-weight: 600; color: var(--c-text); text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.drawer .acc > button .caret { transition: transform 0.2s; color: var(--ink-500); }
.drawer .acc > button[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drawer .acc-panel { display: none; background: var(--mist-50); }
.drawer .acc-panel.open { display: block; }
.drawer .acc-panel a {
  display: block; padding: var(--sp-2) var(--sp-6);
  font-size: var(--fs-sm); color: var(--c-text-soft);
}
.drawer .acc-panel a:hover { color: var(--navy-800); }
.drawer .acc-panel .group-label {
  padding: var(--sp-3) var(--sp-6) var(--sp-1);
  font-size: var(--fs-xs); font-weight: 700; color: var(--blue-600);
  letter-spacing: 0.1em;
}
.drawer .drawer-utils {
  margin-top: auto; padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-sm);
}

/* ============================================================
   Hero（主頁）
   ============================================================ */
.hero {
  background: var(--grad-dawn);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* 航線裝飾 */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(2px 2px at 18% 30%, rgba(255,255,255,0.5) 50%, transparent 51%),
                    radial-gradient(1.5px 1.5px at 66% 14%, rgba(255,255,255,0.4) 50%, transparent 51%),
                    radial-gradient(1.5px 1.5px at 82% 42%, rgba(255,255,255,0.35) 50%, transparent 51%),
                    radial-gradient(2px 2px at 38% 12%, rgba(255,255,255,0.3) 50%, transparent 51%);
  pointer-events: none;
}
.hero .container {
  display: grid; gap: var(--sp-6);
  padding-block: var(--sp-7);
  position: relative;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--sp-4); justify-content: center; }
.hero-copy .eyebrow { color: var(--sky-300); }
.hero-title {
  font-size: var(--fs-2xl); font-weight: 800; line-height: 1.25;
  letter-spacing: 0.04em; text-wrap: balance;
}
.hero-title .accent { color: var(--gold-500); }
.hero-sub { color: var(--sky-200); font-size: var(--fs-md); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-full);
  font-weight: 700; font-size: var(--fs-sm);
  white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 4px 14px rgba(232,161,58,0.4); }
.btn-gold:hover { background: var(--gold-600); color: var(--navy-950); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 5fr 6fr; align-items: center; padding-block: var(--sp-8); }
}

/* ---------- 輪播 ---------- */
.carousel {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 920 / 402; background: var(--navy-900);
}
.carousel .track { display: flex; height: 100%; transition: transform 0.45s ease; }
.carousel .slide { flex: 0 0 100%; height: 100%; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: rgba(5,29,58,0.55); color: #fff; font-size: 1.1rem;
  display: grid; place-items: center; transition: background 0.2s;
}
.carousel .ctrl:hover { background: rgba(5,29,58,0.85); }
.carousel .ctrl.prev { left: var(--sp-3); }
.carousel .ctrl.next { right: var(--sp-3); }
.carousel .meta {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.carousel .counter {
  background: rgba(5,29,58,0.65); color: #fff;
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs); letter-spacing: 0.15em;
  padding: 4px 12px; border-radius: var(--r-full);
}
.carousel .playpause {
  width: 30px; height: 30px; border-radius: var(--r-full);
  background: rgba(5,29,58,0.65); color: #fff; font-size: 0.75rem;
  display: grid; place-items: center;
}

/* ============================================================
   新聞卡片
   ============================================================ */
.news-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: var(--c-surface); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--dur-move) var(--ease-out), box-shadow var(--dur-move) var(--ease-out);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist-100); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-move) var(--ease-out); }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .thumb .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: var(--sky-200); font-family: var(--font-display);
  font-size: var(--fs-xs); letter-spacing: 0.3em; text-transform: uppercase;
}
.news-card .body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.news-card .date {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs); color: var(--c-text-faint); letter-spacing: 0.12em;
}
.news-card .title-link {
  font-weight: 600; color: var(--c-text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .title-link:hover { color: var(--blue-600); }

/* ============================================================
   公告列表（最新消息 / 活動快訊）
   ============================================================ */
.bulletin-cols { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .bulletin-cols { grid-template-columns: 1fr 1fr; } }

.bulletin-list { display: flex; flex-direction: column; }
.bulletin {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px dashed var(--ink-300); /* 跑道虛線 */
}
.bulletin:last-child { border-bottom: 0; }
.bulletin .when {
  flex-shrink: 0; text-align: center; min-width: 58px;
  background: var(--mist-50); border: 1px solid var(--mist-100);
  border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-2); line-height: 1.3;
}
.bulletin .when .d {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-lg); color: var(--navy-800); font-variant-numeric: tabular-nums;
}
.bulletin .when .ym {
  display: block; font-size: var(--fs-xs); color: var(--c-text-faint);
  font-variant-numeric: tabular-nums;
}
.bulletin .what { display: flex; flex-direction: column; gap: var(--sp-1); }
.bulletin .tag {
  align-self: flex-start;
  font-size: var(--fs-xs); font-weight: 600; color: var(--blue-600);
  background: var(--sky-200); border-radius: var(--r-full);
  padding: 1px 10px;
}
.bulletin .what a { color: var(--c-text); font-weight: 500; }
.bulletin .what a:hover { color: var(--blue-600); }

/* ============================================================
   招生資訊
   ============================================================ */
.joinus-band { background: var(--grad-header); color: #fff; }
.joinus-band .section-title { color: #fff; }
.joinus-band .eyebrow { color: var(--sky-300); }
.joinus-chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); font-weight: 600;
  transition: background var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip:hover { background: rgba(255,255,255,0.22); border-color: var(--gold-500); color: #fff; }
.chip.hot { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.chip.hot:hover { background: var(--gold-600); color: var(--navy-950); }

.joinus-cats { display: grid; gap: var(--sp-4); }
@media (min-width: 640px)  { .joinus-cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .joinus-cats { grid-template-columns: repeat(5, 1fr); } }
.joinus-cat {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.joinus-cat h4 {
  font-size: var(--fs-base); color: var(--gold-500); font-weight: 700;
  margin-bottom: var(--sp-2); padding-bottom: var(--sp-2);
  border-bottom: 1px dashed rgba(255,255,255,0.3);
}
.joinus-cat a {
  display: block; color: var(--sky-200); font-size: var(--fs-sm);
  padding: var(--sp-1) 0;
}
.joinus-cat a:hover { color: #fff; }

/* 學院特色 */
.college-grid { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 768px) { .college-grid { grid-template-columns: repeat(3, 1fr); } }
.college-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--c-surface); color: var(--c-text);
  border-radius: var(--r-md); padding: var(--sp-5);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-move) var(--ease-out), box-shadow var(--dur-move) var(--ease-out);
}
.college-card:active { transform: translateY(-1px) scale(0.99); }
.college-card:hover { transform: translateY(-4px); color: var(--c-text); }
.college-card .eyebrow { color: var(--gold-600); }
.college-card h4 { color: var(--navy-800); font-size: var(--fs-lg); }
.college-card p { font-size: var(--fs-sm); color: var(--c-text-soft); }
.college-card .pdf { margin-top: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--blue-600); }
.college-card:hover .pdf { color: var(--navy-800); }

/* ============================================================
   快速連結
   ============================================================ */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 640px)  { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .quick-grid { grid-template-columns: repeat(6, 1fr); } }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: var(--sp-5) var(--sp-3);
  text-align: center; color: var(--c-text-soft); font-size: var(--fs-sm); font-weight: 600;
  transition: border-color var(--dur-move) var(--ease-out), transform var(--dur-move) var(--ease-out), box-shadow var(--dur-move) var(--ease-out);
}
.quick-item:active { transform: translateY(-1px) scale(0.98); }
.quick-item:hover {
  border-color: var(--sky-300); transform: translateY(-3px);
  box-shadow: var(--shadow-md); color: var(--navy-800);
}
.quick-item img { width: 44px; height: 44px; object-fit: contain; }
.quick-item .quick-ph {
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 1.3rem; color: var(--sky-400);
  background: var(--mist-50); border-radius: var(--r-full);
}
.quick-item a { color: inherit; font-weight: 600; }
.quick-item a:hover { color: var(--blue-600); }

/* ============================================================
   頁尾
   ============================================================ */
.site-footer {
  background: var(--navy-950); color: var(--sky-200);
  font-size: var(--fs-sm); margin-top: var(--sp-7);
  position: relative;
}
/* 地平線 */
.site-footer::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0.75;
}
.site-footer .container {
  display: grid; gap: var(--sp-6); padding-block: var(--sp-7);
}
@media (min-width: 768px) { .site-footer .container { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-display); font-size: var(--fs-xs);
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--sky-400); margin-bottom: var(--sp-3);
}
.site-footer a { color: var(--sky-200); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 2; }
.site-footer .foot-brand { font-size: var(--fs-lg); font-weight: 700; color: #fff; letter-spacing: 0.1em; }
.site-footer .foot-brand-en {
  font-family: var(--font-display); font-size: var(--fs-xs);
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--sky-400);
  margin-bottom: var(--sp-4);
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--sp-4);
  text-align: center; font-size: var(--fs-xs); color: var(--ink-500);
}
.back-top {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 90;
  width: 46px; height: 46px; border-radius: var(--r-full);
  background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--blue-600); }

/* ============================================================
   入口頁（landing）
   ============================================================ */
body.landing {
  min-height: 100svh;
  background: var(--grad-dawn);
  color: #fff;
  display: flex; flex-direction: column;
}
body.landing::before { /* 星點 */
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,0.6) 50%, transparent 51%),
                    radial-gradient(1.5px 1.5px at 78% 8%, rgba(255,255,255,0.5) 50%, transparent 51%),
                    radial-gradient(1.5px 1.5px at 55% 24%, rgba(255,255,255,0.4) 50%, transparent 51%),
                    radial-gradient(2px 2px at 90% 30%, rgba(255,255,255,0.35) 50%, transparent 51%),
                    radial-gradient(1.5px 1.5px at 30% 9%, rgba(255,255,255,0.45) 50%, transparent 51%);
}
.landing-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
}
.landing-main {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: var(--sp-6) var(--sp-4); gap: var(--sp-5);
  position: relative;
}
.landing-motto { display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; }
.landing-motto .eyebrow { color: var(--sky-300); }
.landing-title {
  font-size: var(--fs-3xl); font-weight: 800; letter-spacing: 0.06em;
  line-height: 1.2; text-wrap: balance;
}
.landing-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--gold-500); font-weight: 700; letter-spacing: 0.35em;
  text-indent: 0.35em; /* 平衡字距 */
}
.landing-sub a { color: inherit; }
.landing-desc { color: var(--sky-200); max-width: 36em; }

/* 航線 + 飛機動畫 */
.flightline { width: min(560px, 82vw); margin-top: var(--sp-2); position: relative; }
.flightline svg { width: 100%; height: auto; overflow: visible; }
.flightline .path { stroke-dasharray: 6 10; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -640; } }

.landing-ctas {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3);
  width: min(720px, 100%);
}
.landing-ctas .gate:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 768px) {
  .landing-ctas { grid-template-columns: repeat(5, 1fr); }
  .landing-ctas .gate:last-child:nth-child(odd) { grid-column: auto; }
}
.gate {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-2);
  color: #fff; font-weight: 700; font-size: var(--fs-sm);
  transition: background var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
  backdrop-filter: blur(4px);
}
.gate:active { transform: translateY(-1px) scale(0.97); }
.gate:hover { background: rgba(255,255,255,0.18); border-color: var(--gold-500); transform: translateY(-3px); color: #fff; }
.gate .gate-no {
  font-family: var(--font-display); font-size: var(--fs-xs);
  letter-spacing: 0.25em; color: var(--gold-500);
}
.landing-enter { margin-top: var(--sp-2); }
.landing-enter .btn { font-size: var(--fs-base); padding: var(--sp-3) var(--sp-7); }
.landing-foot {
  text-align: center; padding: var(--sp-5); font-size: var(--fs-xs);
  color: var(--sky-300); line-height: 1.9;
}
.landing-foot a { color: var(--sky-200); text-decoration: underline; text-underline-offset: 3px; }
.landing-foot a:hover { color: #fff; }
