:root {
  --bg: #fbf5ef;
  --bg-soft: #f6ede3;
  --surface: #ffffff;
  --surface-soft: #fffaf4;
  --primary: #c4805e;
  --primary-strong: #a9633f;
  --primary-light: #ecd0bd;
  --accent: #8cb6a9;
  --accent-strong: #5f8f81;
  --accent-light: #deebe5;
  --gold: #e5b769;
  --gold-light: #f6e6c6;
  --text: #4a3f3a;
  --text-muted: #8a7a72;
  --border: #eed9c8;
  --shadow: 0 10px 30px rgba(150, 100, 70, 0.12);
  --shadow-sm: 0 4px 14px rgba(150, 100, 70, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { color: var(--primary); }
ul, ol { padding-left: 1.4em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 頁首導覽 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); font-size: 1.15rem; }

.brand-badge {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--primary));
  color: #fff;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: var(--gold-light); color: var(--primary-strong); }
.nav-links a.active { background: var(--primary-light); color: var(--primary-strong); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

/* ---------- 英雄區 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  background:
    radial-gradient(600px 300px at 12% 8%, var(--gold-light), transparent 60%),
    radial-gradient(600px 320px at 88% 18%, var(--accent-light), transparent 60%),
    linear-gradient(180deg, #fffaf3, var(--bg));
  border-bottom: 1px solid var(--border);
}

.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }

.hero h1 { font-size: 2.7rem; line-height: 1.35; color: var(--primary-strong); margin-bottom: 8px; }
.hero .subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 24px; }
.hero p { font-size: 1.05rem; margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary-strong); border: 1.5px solid var(--primary-light); }
.btn-ghost:hover { background: var(--primary-light); }

.hero-illustration {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-illustration .card-head { font-weight: 700; color: var(--primary-strong); margin-bottom: 16px; font-size: 1.05rem; }

.topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-strong);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 8px 10px 0;
}

/* ---------- 區段 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-soft); }

.section-title {
  font-size: 1.9rem;
  color: var(--primary-strong);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc { color: var(--text-muted); margin-bottom: 32px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.icon-warm { background: var(--gold-light); }
.icon-sage { background: var(--accent-light); }
.icon-terra { background: var(--primary-light); }

.card h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

.card-link { display: inline-block; margin-top: 14px; font-weight: 600; }

/* ---------- 時間軸 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--primary-light);
}

.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item .date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-strong);
  background: var(--gold-light);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.timeline-item h4 { color: var(--text); margin-bottom: 4px; }
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; }
.timeline-item .badge { font-size: 0.8rem; color: var(--accent-strong); }

/* ---------- 公告列表 ---------- */
.notice-list { list-style: none; padding: 0; }
.notice-list li {
  display: flex; gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px dashed var(--border);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list .n-date { flex-shrink: 0; color: var(--primary-strong); font-weight: 700; font-size: 0.9rem; min-width: 74px; }

/* ---------- 資源區塊 ---------- */
.resource-block { margin-bottom: 40px; }
.resource-block h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem;
  color: var(--primary-strong);
  margin-bottom: 18px;
}

.hotline-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.hotline-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
}
.hotline-list .num { font-size: 1.5rem; font-weight: 800; color: var(--primary-strong); min-width: 130px; }
.hotline-list .desc { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- 提示框 ---------- */
.tip {
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.97rem;
  border: 1px dashed var(--gold);
}

.tip strong { color: var(--primary-strong); }

/* ---------- 分頁頁首 ---------- */
.page-hero { padding: 56px 0 40px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 2.2rem; color: var(--primary-strong); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ---------- 頁尾 ---------- */
.site-footer { background: #3f332c; color: #e8d9ce; padding: 40px 0 28px; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer h4 { color: var(--gold-light); margin-bottom: 12px; }
.site-footer p { font-size: 0.9rem; color: #c9b7ab; }
.site-footer .copy { width: 100%; text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }

/* ---------- 行動版 ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .section-title { font-size: 1.5rem; }
  .hotline-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}
