:root {
  --brand: #7CB342;
  --brand-dark: #558B2F;
  --bg: #F5F9F0;
  --text: #1a1a1a;
  --muted: #888;
  --line: #dce8cf;
  --shadow: 0 2px 12px rgba(85, 139, 47, 0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans TC', 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
header {
  background: white;
  border-bottom: 2px solid var(--brand);
  padding: 16px 24px;
  position: sticky; top: 0; z-index: 10;
}
header h1 { font-size: 20px; color: var(--brand-dark); }
nav { display: flex; gap: 16px; margin-top: 8px; }
nav a {
  color: var(--text); text-decoration: none; font-size: 14px;
  padding: 4px 10px; border-radius: 6px;
}
nav a:hover, nav a.active { background: var(--brand); color: white; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tab {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: white; cursor: pointer; font-size: 14px;
  transition: all 0.15s;
}
.tab.active { background: var(--brand); color: white; border-color: var(--brand); }

.search {
  width: 100%; padding: 12px 16px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: white;
}
.search:focus { outline: none; border-color: var(--brand); }

.faq-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: white; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; cursor: pointer; transition: all 0.15s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q { display: flex; justify-content: space-between; align-items: center; }
.faq-q strong { font-size: 15px; }
.faq-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.badge {
  background: var(--brand); color: white; font-size: 11px;
  padding: 2px 8px; border-radius: 10px;
}
.badge.gray { background: #ccc; }
.faq-a {
  display: none; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line); white-space: pre-wrap;
}
.faq-item.open .faq-a { display: block; }
.btn-copy {
  margin-top: 10px; padding: 6px 14px; background: var(--brand); color: white;
  border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.btn-copy:hover { background: var(--brand-dark); }

.btn {
  padding: 10px 18px; background: var(--brand); color: white;
  border: none; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.btn:hover { background: var(--brand-dark); }
.btn.gray { background: #ddd; color: #333; }

input, select, textarea {
  width: 100%; padding: 8px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 6px; font-family: inherit;
  background: white;
}
textarea { min-height: 80px; resize: vertical; }
label { font-size: 13px; color: var(--muted); display: block; margin-top: 12px; margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { background: #ecf4e0; font-weight: 600; }

.stats { display: flex; gap: 12px; margin: 16px 0; }
.stat { flex: 1; background: white; border-radius: 10px; padding: 14px; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 700; color: var(--brand-dark); }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none;
  align-items: center; justify-content: center; z-index: 100;
}
.modal.show { display: flex; }
.modal-card { background: white; border-radius: 12px; padding: 24px; min-width: 320px; max-width: 90vw; }
.modal-card h2 { margin-bottom: 12px; font-size: 18px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #333; color: white; padding: 10px 20px; border-radius: 8px;
  opacity: 0; transition: opacity 0.2s; font-size: 14px;
}
.toast.show { opacity: 1; }

@media (max-width: 600px) {
  header h1 { font-size: 16px; }
  .stats { flex-direction: column; }
}
