@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Noto+Serif+TC:wght@300;400;500&display=swap');

:root {
  --bg: #F6F8F5;
  --bg-soft: #EEF2EC;
  --primary: #7FA68A;
  --primary-dark: #5F8470;
  --accent: #DDE8E1;
  --text: #2E3D35;
  --text-light: #586A60;
  --text-muted: #8FA898;
  --border: #CDDAD2;
  --white: #FFFFFF;
  --shadow: rgba(46, 61, 53, 0.06);
  --shadow-md: rgba(46, 61, 53, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif TC', 'Georgia', serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
}

/* ─── 導覽列 ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  font-size: 0.75rem;
  font-family: 'Noto Serif TC', serif;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 300;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ─── 頁面通用容器 ─── */
.page-wrapper {
  min-height: calc(100vh - 64px);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── 頁面標題區 ─── */
.page-hero {
  padding: 80px 2rem 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.page-hero .overline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

/* ─── 分隔線 ─── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--primary);
  margin: 1.5rem auto;
  opacity: 0.6;
}

/* ─── 卡片 ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem 2.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 32px var(--shadow-md);
  transform: translateY(-2px);
}

/* ─── 按鈕 ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: 'Noto Serif TC', serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── 表單 ─── */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Noto Serif TC', serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

textarea {
  min-height: 140px;
  line-height: 1.8;
}

/* ─── 安全聲明標語 ─── */
.safety-banner {
  background: var(--accent);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.safety-banner .icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ─── 頁尾 ─── */
footer {
  background: #3A3E3B;
  color: var(--accent);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--bg);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── 緊急資源浮動按鈕 ─── */
.emergency-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
}

.emergency-fab a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px var(--shadow-md);
  transition: all 0.25s;
}

.emergency-fab a:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px var(--shadow-md);
  transform: translateY(-2px);
}

/* ─── 響應式 ─── */
@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero {
    padding: 60px 1.5rem 40px;
  }

  .container,
  .container--wide {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }
}
