/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: #2d2d2d;
  background: #fafafa;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: 'Noto Serif TC', serif; font-weight: 500; line-height: 1.4; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

/* ===== Layout ===== */
.container { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt { background: #f3f7f2; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e8e8e8;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; flex-direction: column; gap: 2px; }
.logo-main { font-family: 'Noto Serif TC', serif; font-size: 1.2rem; font-weight: 700; color: #2e6b3e; }
.logo-sub  { font-size: 0.72rem; color: #888; letter-spacing: 0.05em; }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.9rem;
  color: #444;
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: #2e6b3e;
  transition: width 0.2s;
}
.main-nav a:hover { color: #2e6b3e; }
.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #2e6b3e 0%, #4a9b5e 60%, #6dbf7e 100%);
  color: #fff;
  padding: 7rem 0 6rem;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1rem; }
.hero-desc { font-size: 1.1rem; opacity: 0.9; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.9; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-green { background: #fff; color: #2e6b3e; }
.btn-green:hover { background: #e8f5ec; }
.btn-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-dark { background: #2e6b3e; color: #fff; }
.btn-dark:hover { background: #245733; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; color: #2e6b3e; }

/* ===== Section header ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  background: #e8f5ec;
  color: #2e6b3e;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}
.divider { width: 40px; height: 3px; background: #2e6b3e; margin: 1rem auto 0; border-radius: 2px; }

/* ===== Blog list ===== */
.post-list { display: flex; flex-direction: column; gap: 2rem; }
.post-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid #2e6b3e;
  transition: transform 0.2s;
}
.post-card:hover { transform: translateX(4px); }
.post-meta { font-size: 0.82rem; color: #888; margin-bottom: 0.5rem; }
.post-card h2 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #2d2d2d; }
.post-card h2 a:hover { color: #2e6b3e; }
.post-excerpt { color: #555; font-size: 0.95rem; margin-bottom: 1rem; }
.read-more { color: #2e6b3e; font-size: 0.9rem; font-weight: 500; }
.read-more:hover { text-decoration: underline; }

/* ===== Article ===== */
.article-header { text-align: center; padding: 4rem 0 2rem; border-bottom: 1px solid #e8e8e8; margin-bottom: 3rem; }
.article-meta { font-size: 0.85rem; color: #888; margin-bottom: 1rem; }
.article-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.article-author { color: #555; font-size: 0.95rem; }

.article-body { max-width: 680px; margin: 0 auto; }
.article-body h3 { margin: 2.5rem 0 1rem; color: #2e6b3e; font-size: 1.25rem; }
.article-body p  { color: #3a3a3a; line-height: 2; margin-bottom: 1.2rem; }
.article-body blockquote {
  border-left: 3px solid #2e6b3e;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f3f7f2;
  border-radius: 0 8px 8px 0;
  color: #444;
  font-style: italic;
  line-height: 1.9;
}
.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e8e8e8; text-align: center; color: #888; font-size: 0.9rem; }
.back-link { display: inline-block; margin-top: 2rem; color: #2e6b3e; font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background: #1e4a2a;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 3rem 0;
  font-size: 0.88rem;
  line-height: 2;
}
.site-footer strong { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 5rem 0 4rem; }
}
