:root {
  --brand: #4a9d93;
  --brand-dark: #2f6f67;
  --brand-soft: #eaf4f2;
  --alert: #b3261e;
  --alert-soft: #fdf1f0;
  --text: #22303a;
  --muted: #5d6b75;
  --line: #d9e2e7;
  --bg: #f6f9fb;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  line-height: 1.75;
  font-size: 16px;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.logo { height: 28px; width: auto; flex: none; }
.toc { display: flex; gap: 14px; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.toc a { color: var(--brand-dark); text-decoration: none; padding: 6px 0; }
.toc a:hover { text-decoration: underline; }

.hero { background: var(--brand-soft); padding: 28px 0; }
.hero-inner { display: flex; align-items: center; gap: 24px; }
.hero-text { flex: 1; min-width: 0; }
.hero h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.35; color: var(--brand-dark); }
.hero .sub { font-size: 16px; font-weight: 400; margin-left: 6px; color: var(--muted); }
.hero .en { margin: 0; color: var(--muted); font-size: 15px; }
.hero .license { margin: 12px 0 0; font-weight: 600; }
.hero .notice { margin: 8px 0 0; color: var(--alert); font-size: 15px; }
.hero-img { width: 340px; max-width: 45%; height: auto; flex: none; mix-blend-mode: multiply; }

.content { padding-top: 20px; padding-bottom: 40px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--brand-dark);
  padding-left: 10px;
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}
.card h2.second { margin-top: 18px; }
.card p { margin: 0; }
.card ol { margin: 0; padding-left: 22px; }
.card li { margin-bottom: 6px; }
.card li:last-child { margin-bottom: 0; }

.card.alert { border-color: #e6b8b4; background: var(--alert-soft); }
.card.alert h2 { color: var(--alert); border-left-color: var(--alert); }

/* Ragic 表單內部自帶上方留白，往上拉並裁掉；內嵌框高度由 Ragic 自動調整，不設上限以免出現內部捲軸 */
#ragic_webview { overflow: hidden; }
#ragic_webview iframe { max-height: none !important; margin-top: -130px; margin-bottom: -110px; }
.survey-fallback { margin-top: 12px; font-size: 14px; color: var(--muted); }
.survey-fallback a { color: var(--brand-dark); }

.site-footer {
  background: var(--brand-dark);
  color: #fff;
  padding: 24px 0;
  font-size: 15px;
}
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; padding-bottom: 16px; }
.footer-col h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; opacity: 0.75; }
.footer-bottom { text-align: center; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.3); font-size: 13px; }
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.back-to-top.show { opacity: 0.9; visibility: visible; }
.back-to-top:hover { opacity: 1; }

@media (max-width: 600px) {
  #ragic_webview iframe { margin-top: -55px; margin-bottom: -120px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; }
  .hero-img { width: 100%; max-width: 360px; }
  .hero h1 { font-size: 22px; }
  .card { padding: 16px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { text-align: left; }
}
