/* 共用樣式：淺底深字（米白底），配色跟機器人卡片同一套 */
:root {
  --bg: #FBF7F0; --card: #FFFFFF; --ink: #1F2A44; --muted: #6B7280; --line: #E8E1D5;
  --plan: #0F5A4A; --plan2: #2BAE8E; --plan3: #E6F6F1;
  --me: #1F3A6E; --me2: #3F7BD9; --me3: #EAF1FD;
  --money: #5A3B0C; --money2: #D9A21F; --money3: #FCF4DD;
  --ride: #0B4F6C; --ride2: #1FA3C8; --ride3: #E3F4FA;
  --sos: #8A1C1C; --sos2: #D64541; --sos3: #FDECEC;
  --help: #3B2A6B; --help2: #7E5BD6; --help3: #F1ECFB;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
/* 中文只在標點、空白處換行（不把「自己」拆成「自｜己」）；真的沒地方斷才硬斷 */
body { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
body { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
#app { max-width: 560px; margin: 0 auto; padding: 0 16px 96px; }
.wide #app { max-width: 1100px; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }

.hero { margin: 0 -16px 16px; padding: 22px 20px 18px; color: #fff; background: linear-gradient(135deg, var(--c1, var(--plan)), var(--c2, var(--plan2))); }
.hero small { display: block; opacity: .85; font-size: 13px; font-weight: 700; }
.hero h1 { font-size: 24px; margin-top: 4px; }
.hero .sub { margin-top: 6px; font-size: 14px; opacity: .92; }
.t-money { --c1: var(--money); --c2: var(--money2); }
.t-me { --c1: var(--me); --c2: var(--me2); }
.t-help { --c1: var(--help); --c2: var(--help2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 18px; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row > .grow { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.wrap > .btn { flex: 1 1 160px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; text-decoration: none; white-space: nowrap; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 700; color: #fff;
  background: linear-gradient(0deg, var(--b1, var(--plan)), var(--b2, var(--plan2))); }
.btn.money { --b1: var(--money); --b2: var(--money2); }
.btn.me { --b1: var(--me); --b2: var(--me2); }
.btn.sos { --b1: var(--sos); --b2: var(--sos2); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--money3); border-color: var(--money2); color: var(--money); font-weight: 700; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.input { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
textarea.input { min-height: 120px; }

.center { text-align: center; padding: 60px 16px; }
.center .big { font-size: 48px; }

#toast { white-space: nowrap; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: rgba(31,42,68,.92); color: #fff; padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { color: var(--muted); font-weight: 500; white-space: nowrap; }
