/* 共用設計系統：全站色票 */
:root {
  --bg-canvas: #faf8f1;
  --bg-card: #FFFFFF;
  --ink-navy: #233f34;
  --ink-body: #253d34;
  --ink-muted: #64748B;
  --accent-emerald: #264b3e;
  --accent-emerald-soft: #e9edde;
  --accent-sand: #96743d;
  --accent-sand-soft: #f5f1e8;
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --border-subtle: #E2E8F0;
}
html {
  scroll-behavior: smooth;
  font-family: system-ui, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg-canvas);
  color: var(--ink-body);
}
.font-display { font-family: 'Noto Serif TC', serif; letter-spacing: .02em; }
.num { font-family: 'Inter', 'Noto Sans TC', sans-serif; font-variant-numeric: tabular-nums; }
.card-surface {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: 0 8px 28px -12px rgba(22, 42, 62, 0.08);
}
.field-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-navy); margin-bottom: .35rem; }
.field-hint { font-size: .75rem; color: var(--ink-muted); margin-top: .3rem; line-height: 1.5; }
.field-input {
  width: 100%; padding: .6rem .75rem; border-radius: .75rem;
  border: 1px solid #CBD5E1; background: #fff; color: var(--ink-navy); font-size: .9375rem;
}
.field-input:focus { outline: none; border-color: var(--accent-emerald); box-shadow: 0 0 0 3px rgba(38,75,62,.12); }
.input-unit { position: relative; }
.input-unit .field-input { padding-right: 3rem; }
.input-unit span { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); font-size: .8125rem; color: var(--ink-muted); pointer-events: none; }
.btn-primary { background: var(--accent-emerald); color: #fff; font-weight: 600; border-radius: .75rem; padding: .7rem 1.1rem; }
.btn-primary:hover { background: #1d3a30; }
.btn-ghost { background: #fff; color: var(--ink-navy); font-weight: 600; border-radius: .75rem; padding: .55rem .9rem; border: 1px solid #CBD5E1; }
.btn-ghost:hover { border-color: var(--ink-navy); }
.seg { display: inline-flex; padding: 4px; background: #EEF2F6; border-radius: .9rem; gap: 4px; }
.seg button { padding: .5rem .9rem; border-radius: .7rem; font-size: .875rem; font-weight: 600; color: var(--ink-body); }
.seg button[aria-pressed="true"] { background: var(--ink-navy); color: #fff; box-shadow: 0 4px 12px rgba(35,63,52,.16); }
.result-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border-subtle); font-size: .9rem; }
.result-row:last-child { border-bottom: 0; }
.tag { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; font-size: .6875rem; font-weight: 600; }
.tag-emerald { background: var(--accent-emerald-soft); color: var(--accent-emerald); }
.tag-sand { background: var(--accent-sand-soft); color: #726140; }
.tag-danger { background: var(--danger-soft); color: var(--danger); }

/* editorial look shared with index.html */
.card-surface { border-radius: 4px; box-shadow: none; border-color: #d6d6c7; }
.btn-primary, .btn-ghost, .field-input { border-radius: 3px; }
.seg, .seg button { border-radius: 3px; }
h1, h2, h3 { font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', Georgia, serif; }
