@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
  --color-primary: #2E7D52;
  --color-primary-hover: #225C3D;
  --color-primary-light: #EAF2EC;
  --color-bg: #F5F0E8;
  --color-surface: #FFFFFF;
  --color-text-main: #2D3748;
  --color-text-muted: #718096;
  --color-border: #E2E8F0;
  --color-accent: #D97706;
  --max-width: 800px;
}

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

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  padding: 0;
}

/* Base Layout */
.container {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 24px;
}

/* Header styling */
header {
  background-color: var(--color-primary);
  color: white;
  padding: 32px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(46, 125, 82, 0.15);
  border-bottom: 4px solid var(--color-accent);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

header p {
  color: #E2E8F0;
  font-size: 1rem;
  font-weight: 400;
}

/* Main content wrapper */
main {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-top: -24px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Typography elements */
h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

p {
  margin-bottom: 16px;
  color: #4A5568;
  font-size: 0.975rem;
}

ul, ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
  color: #4A5568;
}

/* Highlight boxes / alerts */
.alert-box {
  background-color: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.alert-box p {
  margin: 0;
  color: var(--color-primary-hover);
  font-weight: 500;
}

/* Links & Buttons */
a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary);
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(46, 125, 82, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-contact:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 125, 82, 0.3);
}

.btn-contact:active {
  transform: translateY(0);
}

/* FAQ layout */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #F8FAFC;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.faq-title {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--color-text-main);
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-title::after {
  content: "→";
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-title::after {
  transform: rotate(90deg);
}

.faq-content {
  padding: 16px 20px;
  display: none;
  border-top: 1px solid var(--color-border);
  color: #4A5568;
  font-size: 0.95rem;
}

.faq-item.active .faq-content {
  display: block;
}

/* Footer layout */
footer {
  margin-top: 40px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding-bottom: 40px;
}

footer p {
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

footer a {
  color: var(--color-text-muted);
  margin: 0 8px;
  font-size: 0.85rem;
}

footer a:hover {
  color: var(--color-primary);
}

/* Responsive adjustment */
@media (max-width: 640px) {
  .container {
    margin: 20px auto;
    padding: 0 16px;
  }
  main {
    padding: 24px 16px;
    border-radius: 12px;
  }
  header {
    padding: 24px 16px;
  }
  header h1 {
    font-size: 1.6rem;
  }
}
