/* 全站共用樣式：顏色、背景、頁首、頁尾、按鈕 */

:root {
  --blue: #2aa6e0;
  --blue-mid: #7cc8f0;
  --blue-light: #d8effb;
  --blue-pale: #f3f9fd;
  --pink: #ff8fb4;
  --pink-light: #ffe1ec;
  --yellow: #ffd25c;
  --text: #3b4a55;
  --text-sub: #6b8ca3;
  --text-muted: #9fb6c6;
  --line: #dcebf5;
  --radius: 16px;
}

* { box-sizing: border-box; }

/* 內容少時，頁尾也固定貼在畫面底部 */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
main { flex: 1; }
img { max-width: 100%; }
button, input { font-family: inherit; }

/* ===== 背景：角落的大色塊＋少量三角形（固定不動） ===== */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.tri {
  position: absolute; width: 0; height: 0;
  border-left: var(--s) solid transparent;
  border-right: var(--s) solid transparent;
  border-bottom: calc(var(--s) * 1.73) solid var(--c);
  opacity: var(--o);
  transform: rotate(var(--r));
}

/* ===== 頁首 ===== */
.site-header {
  height: 70px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid #e6f1f8;
  position: sticky; top: 0; z-index: 10;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-header .logo svg { width: 180px; height: auto; display: block; }
.site-nav a { margin-left: 28px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }

/* ===== 頁尾 ===== */
.site-footer {
  border-top: 1px solid #e6f1f8;
  background: rgba(255, 255, 255, .88);
  padding: 24px 0;
  font-size: 12px; color: var(--text-sub); text-align: center;
}
.site-footer span { display: inline-block; } /* 每一句話不會從中間斷行 */

/* ===== 按鈕 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--blue-mid);
  background: #fff; color: var(--blue);
  font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--blue-pale); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #1f95cc; }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; }

/* ===== 手機版（螢幕寬度 768px 以下） ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .wrap { padding: 0 16px; }
  .site-header { height: 56px; }
  .site-header .logo svg { width: 132px; }
  .site-nav a { margin-left: 16px; font-size: 13px; }
  .site-footer { font-size: 11px; padding: 20px 16px; }
  .blob { transform: scale(.55); }
  .tri { --s: 6px !important; }
  .hide-sm { display: none; }
}
