/* AIDEA 會員區/結帳 — 極簡行動優先(LINE webview 為主要載體) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1f2933; --sub: #52606d; --line: #e4e7eb; --bg: #f7f8fa;
  --brand: #0f62fe; --brand-ink: #ffffff; --warn-bg: #fff8e1; --warn-bd: #f0c000;
  --ok: #0e8345; --err: #c0392b;
}
body { font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.container { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
.center { text-align: center; padding-top: 48px; }
header.app { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
header.app .logo { font-weight: 700; font-size: 18px; }
header.app .who { font-size: 13px; color: var(--sub); }
h1 { font-size: 22px; margin: 12px 0; }
h2 { font-size: 17px; margin: 20px 0 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.muted { color: var(--sub); font-size: 13px; }
.btn { display: inline-block; width: 100%; padding: 13px 16px; border: 0; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.btn:disabled { background: #c3cbd4; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.msg { margin: 12px 0; font-size: 14px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

/* 方案卡(radio) */
.product { display: block; position: relative; cursor: pointer; }
.product input { position: absolute; opacity: 0; }
.product .card { transition: border-color .15s; }
.product input:checked + .card { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15, 98, 254, .18); }
.product .p-title { font-weight: 700; }
.product .p-price { font-size: 20px; font-weight: 800; margin-top: 4px; }
.product .p-courses { font-size: 13px; color: var(--sub); margin-top: 6px; }

/* 表單 */
.field { margin: 10px 0; }
.field label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--sub); }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: #fff; }
.seg { display: flex; gap: 8px; margin: 8px 0; }
.seg label { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; }
.seg input { display: none; }
.seg input:checked + span { color: var(--brand); font-weight: 700; }
.seg label:has(input:checked) { border-color: var(--brand); }

/* 同意勾選 */
.agree { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; margin: 8px 0; }
.agree input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.agree.waiver { background: var(--warn-bg); border: 1px solid var(--warn-bd); }
details.legal { margin: 6px 0; }
details.legal summary { cursor: pointer; font-size: 14px; color: var(--brand); }
details.legal .legal-body { font-size: 13px; color: var(--sub); max-height: 260px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 6px; background: #fff; }
details.legal blockquote { border-left: 3px solid var(--line); padding-left: 8px; color: var(--sub); }

/* 我的課程 */
.course .units { list-style: none; margin-top: 8px; }
.course .units li { display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tag { font-size: 12px; color: var(--sub); background: var(--bg); border-radius: 6px; padding: 2px 8px; }
.empty { text-align: center; padding: 32px 0; color: var(--sub); }
.loading { text-align: center; padding: 40px 0; color: var(--sub); }
