/* =========================================================
   統一版 style.css
   適用頁面：
   - index.html  ：body.login-page
   - page1.html  ：body.consent-page
   - page2.html  ：body.basic-page
   - page3.html  ：body.questionnaire-page
   ========================================================= */

* { box-sizing: border-box; }

:root {
  --blue: #0075d9;
  --blue-2: #0b83ea;
  --blue-dark: #123d72;
  --cyan: #18b8c2;
  --green: #27c4a9;
  --text: #173963;
  --muted: #7489a1;
  --border: #d7e7f5;
  --card: rgba(255, 255, 255, .92);
  --soft: #f3f9ff;
  --shadow: 0 14px 38px rgba(42, 100, 146, .11);
  --shadow-soft: 0 8px 22px rgba(42, 100, 146, .08);
  --radius: 16px;
}

html, body { margin: 0; width: 100%; min-height: 100vh; }
body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(178, 219, 241, .72) 0 11%, transparent 12%),
    radial-gradient(circle at 90% 96%, rgba(204, 235, 249, .82) 0 16%, transparent 17%),
    linear-gradient(135deg, #f4fbff 0%, #edf8ff 42%, #f9fdff 100%);
  overflow-x: hidden;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
body::before {
  width: 430px;
  height: 430px;
  left: -150px;
  top: -140px;
  border-radius: 42% 58% 61% 39% / 47% 35% 65% 53%;
  background: rgba(184, 225, 246, .50);
}
body::after {
  width: 380px;
  height: 280px;
  right: -130px;
  bottom: -100px;
  border-radius: 58% 42% 0 0 / 70% 64% 0 0;
  background: rgba(199, 232, 247, .70);
}

body.login-page .page,
body.consent-page .page,
body.basic-page .page,
body.questionnaire-page .page {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* ---------- 共用：流程步驟 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 0 8px;
}
.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #8ca1b8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: center;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 2px;
  background: #cfe0ef;
}
.step-number {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c4d4e6;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 8px 16px rgba(46, 106, 157, .12);
}
.step.done { color: var(--green); }
.step.done .step-number {
  background: linear-gradient(180deg, #37cfb6, #18a995);
  font-size: 0;
}
.step.done .step-number::before {
  content: "✓";
  font-size: 18px;
  font-weight: 900;
}
.step.done::after { background: linear-gradient(90deg, #27c4a9, #cfe0ef); }
.step.current,
.step.active { color: var(--blue); }
.step.current .step-number,
.step.active .step-number { background: linear-gradient(180deg, #1889ef, #006fd2); }
.step-label { line-height: 1.3; }

/* ---------- 共用：Header ---------- */
.header {
  position: relative;
  min-height: 70px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #cfe3f4;
  box-shadow: var(--shadow-soft);
  color: #2385c8;
  font-weight: 900;
  font-size: 12px;
  text-align: center;
}
.brand-title { display: grid; gap: 2px; }
.brand-title strong { color: #0b3a70; font-size: 23px; letter-spacing: .08em; line-height: 1; }
.brand-title span { color: #2f6a9d; font-size: 13px; font-weight: 700; }
.school-illustration { position: absolute; right: 0; top: 0; width: 340px; height: 78px; opacity: .72; }
.school-illustration::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 210px;
  height: 64px;
  background:
    linear-gradient(#9bd3f3, #9bd3f3) 50px 30px / 90px 28px no-repeat,
    linear-gradient(#9bd3f3, #9bd3f3) 79px 4px / 42px 58px no-repeat,
    linear-gradient(#9bd3f3, #9bd3f3) 135px 18px / 58px 42px no-repeat;
  clip-path: polygon(0 100%, 0 55%, 42% 55%, 42% 0, 62% 0, 62% 38%, 100% 38%, 100% 100%);
  border-radius: 6px;
}
.school-illustration::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 4px;
  width: 300px;
  height: 36px;
  background:
    radial-gradient(circle at 16px 24px, #a4d9f1 0 14px, transparent 15px),
    radial-gradient(circle at 74px 22px, #a4d9f1 0 13px, transparent 14px),
    radial-gradient(circle at 246px 23px, #a4d9f1 0 15px, transparent 16px),
    linear-gradient(#a4d9f1, #a4d9f1) 16px 22px / 4px 20px no-repeat,
    linear-gradient(#a4d9f1, #a4d9f1) 74px 22px / 4px 18px no-repeat,
    linear-gradient(#a4d9f1, #a4d9f1) 246px 23px / 4px 17px no-repeat;
}

/* ---------- 共用：按鈕 ---------- */
.login-btn, .btn, .start-btn {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  font-family: inherit;
}
.login-btn:hover, .btn:hover, .start-btn:hover { transform: translateY(-2px); }
.login-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #0ba4bd, #008fb0);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .1em;
  box-shadow: 0 12px 22px rgba(0, 139, 176, .24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.btn {
  min-width: 190px;
  height: 52px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-outline, .btn-save {
  border: 2px solid #0b73d7;
  color: #0b64c0;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 18px rgba(0, 117, 217, .10);
}
.btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #0b83ea, #006fd4);
  box-shadow: 0 14px 22px rgba(0, 117, 217, .25);
}

/* =========================================================
   1. 登入頁 index.html
   ========================================================= */
body.login-page { overflow: hidden; }
body.login-page .page {
  width: min(1280px, 92vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}
body.login-page .layout {
  display: grid;
  grid-template-columns: 620px 560px;
  justify-content: center;
  align-items: center;
  gap: 46px;
}
body.login-page .left-area { width: 620px; max-width: 100%; justify-self: end; }
body.login-page .year {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
  color: #16819a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .12em;
}
body.login-page .year::before, body.login-page .year::after {
  content: "";
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6eb9d8);
}
body.login-page .year::after { background: linear-gradient(90deg, #6eb9d8, transparent); }
body.login-page .dot { width: 8px; height: 8px; border-radius: 99px; background: #7cc1db; display: inline-block; }
body.login-page h1 {
  margin: 0;
  text-align: center;
  color: #102d53;
  font-size: clamp(40px, 3.4vw, 56px);
  line-height: 1.04;
  letter-spacing: .08em;
  font-weight: 900;
  text-shadow: 0 8px 18px rgba(34, 84, 121, .08);
}
body.login-page .subtitle { margin: 14px 0 12px; text-align: center; font-size: 20px; letter-spacing: .11em; color: #213957; }
body.login-page .short-line { width: 80px; height: 4px; margin: 0 auto 14px; border-radius: 999px; background: linear-gradient(90deg, #0aa2ba, #24bdb2); }
body.login-page .notice-card, body.login-page .help-card, body.login-page .feature-bar, body.login-page .login-card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(207, 226, 237, .72);
  box-shadow: 0 18px 42px rgba(44, 95, 129, .12);
  backdrop-filter: blur(12px);
}
body.login-page .notice-card {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
}
body.login-page .notice-icon, body.login-page .notice-icon svg { width: 52px; height: 52px; color: #40b9ad; }
body.login-page .notice-card p { margin: 0; color: #1e2d42; font-size: 14px; line-height: 1.55; letter-spacing: .04em; font-weight: 600; }
body.login-page .notice-card strong { color: #0b9faf; font-weight: 900; }
body.login-page .illustration-wrap { position: relative; width: 100%; height: 158px; margin: -4px auto 0; overflow: hidden; }
body.login-page .blob-bg { position: absolute; inset: 30px 0 10px; opacity: .65; background: radial-gradient(circle at 53% 45%, rgba(178,223,235,.8) 0 38px, transparent 39px), radial-gradient(circle at 47% 48%, rgba(213,236,247,.9) 0 52px, transparent 53px), radial-gradient(circle at 74% 65%, rgba(192,232,224,.75) 0 54px, transparent 55px), radial-gradient(circle at 28% 72%, rgba(198,230,247,.85) 0 58px, transparent 59px); }
body.login-page .people { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scale(.64); transform-origin: bottom center; width: 590px; height: 250px; }
body.login-page .girl, body.login-page .boy, body.login-page .desk, body.login-page .laptop, body.login-page .tablet, body.login-page .plant, body.login-page .cup, body.login-page .book { position: absolute; }
body.login-page .desk { left: 68px; right: 20px; bottom: 19px; height: 18px; background: #cfe6f2; border-radius: 999px; }
body.login-page .girl { left: 50px; bottom: 30px; width: 205px; height: 170px; }
body.login-page .girl .hair { position: absolute; left: 58px; top: 0; width: 80px; height: 112px; background: #1d334d; border-radius: 60px 62px 50px 58px; transform: rotate(-22deg); }
body.login-page .girl .face { position: absolute; left: 100px; top: 42px; width: 48px; height: 56px; background: #ffd9c7; border-radius: 48% 52% 55% 45%; }
body.login-page .girl .body { position: absolute; left: 62px; top: 96px; width: 130px; height: 80px; background: #78cec4; border-radius: 44px 44px 12px 12px; }
body.login-page .girl .arm { position: absolute; left: 122px; top: 130px; width: 72px; height: 15px; background: #ffd7c2; border-radius: 99px; transform: rotate(10deg); }
body.login-page .boy { right: 80px; bottom: 32px; width: 180px; height: 185px; }
body.login-page .boy .hair { position: absolute; left: 50px; top: 0; width: 80px; height: 54px; background: #19364f; border-radius: 48% 52% 45% 55%; }
body.login-page .boy .face { position: absolute; left: 66px; top: 43px; width: 54px; height: 58px; background: #ffd6c0; border-radius: 45% 55% 54% 46%; }
body.login-page .boy .body { position: absolute; left: 32px; top: 98px; width: 130px; height: 91px; background: #70aeea; border-radius: 34px 38px 14px 14px; }
body.login-page .boy .hood { position: absolute; left: 57px; top: 98px; width: 74px; height: 55px; border: 4px solid rgba(255,255,255,.35); border-bottom: 0; border-radius: 40px 40px 0 0; }
body.login-page .laptop { left: 235px; bottom: 28px; width: 180px; height: 112px; background: #536b86; border-radius: 10px 10px 4px 4px; transform: skewX(-8deg); box-shadow: 0 12px 20px rgba(44,76,102,.18); }
body.login-page .laptop::after { content: ""; position: absolute; left: 79px; top: 43px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.25); }
body.login-page .tablet { right: 98px; bottom: 68px; width: 64px; height: 86px; background: #35506a; border-radius: 10px; transform: rotate(-14deg); }
body.login-page .tablet::after { content: ""; position: absolute; inset: 9px; border-radius: 6px; background: #7da5c8; }
body.login-page .book { left: 86px; bottom: 33px; width: 150px; height: 34px; background: #f8f2e6; border-radius: 8px; border-bottom: 5px solid #e2d4bd; }
body.login-page .plant { right: 0; bottom: 31px; width: 55px; height: 64px; }
body.login-page .plant::before { content: ""; position: absolute; width: 16px; height: 58px; left: 19px; bottom: 25px; background: #43b99e; border-radius: 99px 99px 0 0; transform: rotate(34deg); }
body.login-page .plant::after { content: ""; position: absolute; left: 7px; bottom: 0; width: 42px; height: 31px; background: #7fb7c9; border-radius: 0 0 11px 11px; }
body.login-page .cup { right: 62px; bottom: 31px; width: 38px; height: 58px; background: #f5dec2; border-radius: 8px 8px 14px 14px; border-top: 12px solid #233b53; }
body.login-page .floating { position: absolute; border-radius: 50%; border: 2px solid rgba(101,174,219,.25); background: rgba(255,255,255,.45); display: grid; place-items: center; color: #6ea7dd; box-shadow: 0 10px 25px rgba(85,143,182,.1); }
body.login-page .floating.pill { width: 66px; height: 66px; top: 0; right: 28px; transform: rotate(-38deg); }
body.login-page .floating.plus { width: 68px; height: 68px; bottom: 48px; right: 4px; font-size: 44px; font-weight: 800; }
body.login-page .floating-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #b9dff5; top: 18px; right: 88px; }
body.login-page .help-card { width: 100%; padding: 12px 22px; border-radius: 13px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; }
body.login-page .help-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #dff4f8; color: #0096b1; font-size: 26px; box-shadow: inset 0 0 0 8px rgba(255,255,255,.48); }
body.login-page .help-card p { margin: 0; color: #2b3345; font-size: 13px; line-height: 1.5; letter-spacing: .04em; }
body.login-page .help-card .phone { color: #0089a9; font-weight: 800; margin: 0 10px; }
body.login-page .login-card { position: relative; width: 560px; min-height: 0; height: 520px; padding: 28px 54px 32px; border-radius: 30px; justify-self: start; overflow: hidden; }
body.login-page .login-card::before { content: ""; position: absolute; top: 48px; left: 130px; right: 130px; height: 62px; background: linear-gradient(90deg, transparent, rgba(124,207,228,.25), transparent); border-radius: 50%; }
body.login-page .login-avatar { position: relative; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(180deg, #e8faf8, #cdf2ef); border: 1px solid #cde9e7; display: grid; place-items: center; color: #19a8a8; }
body.login-page .login-avatar svg { width: 46px; height: 46px; }
body.login-page .field-group { margin-bottom: 16px; }
body.login-page label { display: block; margin-bottom: 7px; color: #202638; font-size: 15px; font-weight: 700; letter-spacing: .03em; }
body.login-page .input-wrap { position: relative; }
body.login-page .input-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #97a5b6; width: 22px; height: 22px; }
body.login-page input { width: 100%; height: 48px; border: 2px solid #d4dde5; border-radius: 8px; padding: 0 16px 0 56px; background: rgba(255,255,255,.86); color: #1f2430; font-size: 18px; outline: none; transition: .2s ease; }
body.login-page input:focus { border-color: #57c8d0; box-shadow: 0 0 0 4px rgba(33,188,199,.12); }
body.login-page .captcha { width: 370px; max-width: 100%; height: 60px; margin: 8px auto; border-radius: 8px; border: 1px solid #9fe1d8; overflow: hidden; display: grid; place-items: center; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 3vw, 46px); color: #000; letter-spacing: .03em; box-shadow: inset 0 0 18px rgba(63,203,184,.12); }
body.login-page .refresh { border: 0; background: transparent; color: #0789e6; font-size: 15px; font-weight: 700; display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; margin-bottom: 20px; cursor: pointer; letter-spacing: .04em; }
body.login-page .feature-bar { width: 100%; height: 74px; min-height: 74px; border-radius: 14px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; overflow: hidden; }
body.login-page .feature-item { min-height: 74px; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 0 34px; position: relative; }
body.login-page .feature-item + .feature-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: #d8e2ea; }
body.login-page .feature-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #ddf6f7; color: #14b6aa; box-shadow: inset 0 0 0 8px rgba(255,255,255,.45); }
body.login-page .feature-icon svg { width: 28px; height: 28px; }
body.login-page .feature-item h3 { margin: 0 0 4px; color: #142f52; font-size: 15px; letter-spacing: .08em; }
body.login-page .feature-item p { margin: 0; color: #333947; font-size: 12px; line-height: 1.35; letter-spacing: .02em; }
body.login-page .decor-dots { position: absolute; left: -42px; top: 80px; display: grid; grid-template-columns: repeat(4, 10px); gap: 9px; opacity: .75; }
body.login-page .decor-dots span { width: 10px; height: 10px; border-radius: 50%; background: #b8e1f6; }

/* =========================================================
   2. 知情同意 page1.html
   ========================================================= */
body.consent-page .page,
body.basic-page .page {
  width: min(980px, 94vw);
  min-height: 100vh;
  padding: 18px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
body.consent-page .main-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px 40px 36px;
  backdrop-filter: blur(12px);
}
body.consent-page .title-area { text-align: center; margin-bottom: 26px; }
body.consent-page h1 { margin: 0 0 16px; color: #133d71; font-size: clamp(26px, 3vw, 34px); letter-spacing: .04em; line-height: 1.3; font-weight: 900; }
body.consent-page .meta { display: flex; align-items: center; justify-content: center; gap: 22px; color: #55708f; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
body.consent-page .meta span + span { position: relative; }
body.consent-page .meta span + span::before { content: ""; position: absolute; left: -13px; top: 50%; width: 1px; height: 16px; transform: translateY(-50%); background: #b9ccdf; }
body.consent-page .content-grid { display: grid; grid-template-columns: 310px 1fr; gap: 28px; align-items: stretch; }
body.consent-page .image-panel { min-height: 300px; border-radius: 14px; background: linear-gradient(180deg, #eaf8ff, #dff4ff); display: grid; place-items: center; overflow: hidden; }
body.consent-page .clipboard-art { position: relative; width: 210px; height: 235px; }
body.consent-page .clip-top { position: absolute; top: 8px; left: 69px; width: 72px; height: 36px; border-radius: 12px 12px 5px 5px; background: linear-gradient(180deg, #7ab9f2, #3291e8); box-shadow: 0 10px 18px rgba(39,113,181,.15); }
body.consent-page .clip-top::before { content: ""; position: absolute; left: 23px; top: -12px; width: 25px; height: 25px; border-radius: 50%; background: #7ab9f2; }
body.consent-page .paper { position: absolute; left: 26px; top: 38px; width: 150px; height: 180px; border-radius: 16px; background: #fff; box-shadow: 0 14px 24px rgba(48,116,171,.14); }
body.consent-page .paper::before { content: ""; position: absolute; inset: 15px; border-radius: 10px; background: linear-gradient(#c8ddf1,#c8ddf1) 46px 28px / 58px 6px no-repeat, linear-gradient(#d8e8f5,#d8e8f5) 46px 67px / 72px 6px no-repeat, linear-gradient(#d8e8f5,#d8e8f5) 46px 106px / 62px 6px no-repeat; }
body.consent-page .check { position: absolute; left: 45px; width: 28px; height: 28px; color: var(--blue); }
body.consent-page .check.one { top: 78px; } body.consent-page .check.two { top: 118px; } body.consent-page .check.three { top: 158px; }
body.consent-page .shield { position: absolute; right: 0; bottom: 5px; width: 92px; height: 108px; filter: drop-shadow(0 12px 14px rgba(17,103,188,.22)); }
body.consent-page .leaf { position: absolute; bottom: 10px; width: 44px; height: 88px; opacity: .55; }
body.consent-page .leaf.left { left: 0; background: radial-gradient(ellipse at center, #84d6dd 0 42%, transparent 43%); transform: rotate(-22deg); }
body.consent-page .leaf.right { right: 4px; background: radial-gradient(ellipse at center, #84d6dd 0 42%, transparent 43%); transform: rotate(24deg); }
body.consent-page .consent-box { border: 2px solid var(--border); border-radius: 16px; padding: 28px 30px; background: rgba(255,255,255,.82); }
body.consent-page .consent-title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #1284b0; font-size: 21px; font-weight: 900; letter-spacing: .04em; }
body.consent-page .consent-title svg { flex: 0 0 auto; }
body.consent-page .consent-text { margin: 0 0 26px; color: #3f536a; font-size: 16px; line-height: 2.05; font-weight: 700; letter-spacing: .03em; }
body.consent-page .choice-panel { padding: 18px 22px; border-radius: 14px; background: linear-gradient(180deg, #f2f8fe, #f6fbff); }
body.consent-page .choice { display: flex; align-items: center; gap: 12px; min-height: 40px; color: #304860; font-size: 16px; font-weight: 800; cursor: pointer; }
body.consent-page .choice input { appearance: none; width: 22px; height: 22px; margin: 0; border: 2px solid #b7c9db; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; }
body.consent-page .choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: .15s ease; }
body.consent-page .choice input:checked { border-color: var(--blue); }
body.consent-page .choice input:checked::after { transform: scale(1); }
body.consent-page .secure-note { display: flex; align-items: center; justify-content: center; gap: 12px; color: #1363b1; font-size: 17px; font-weight: 800; letter-spacing: .04em; }
body.consent-page .secure-note svg { width: 24px; height: 24px; color: var(--blue); }

/* =========================================================
   3. 基本資料 page2.html
   ========================================================= */
body.basic-page .page { width: min(980px, 94vw); }
body.basic-page .form-area { display: grid; gap: 16px; padding-bottom: 160px;}
body.basic-page .question-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  backdrop-filter: blur(12px);
}
body.basic-page .question-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--blue-dark); font-size: 18px; font-weight: 900; letter-spacing: .04em; }
body.basic-page .question-head svg { color: var(--blue); flex: 0 0 auto; }
body.basic-page .radio-row { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
body.basic-page .radio-option { display: inline-flex; align-items: center; gap: 8px; color: #394e66; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
body.basic-page input[type="radio"] { appearance: none; width: 18px; height: 18px; margin: 0; border: 2px solid #9db2ca; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; }
body.basic-page input[type="radio"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: .15s ease; }
body.basic-page input[type="radio"]:checked { border-color: var(--blue); }
body.basic-page input[type="radio"]:checked::after { transform: scale(1); }
body.basic-page .custom-select { position: relative; width: min(360px, 100%); }
body.basic-page .select-display { width: 100%; height: 50px; border: 2px solid #c9d9e8; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #5b6f86; font-size: 15px; font-weight: 700; font-family: inherit; text-align: left; cursor: pointer; outline: none; }
body.basic-page .custom-select.open .select-display { border-radius: 9px 9px 0 0; }
body.basic-page .select-display:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,117,217,.12); }
body.basic-page .select-display svg { color: #607995; transition: transform .18s ease; }
body.basic-page .custom-select.open .select-display svg { transform: rotate(180deg); }
body.basic-page .select-menu { display: none; position: absolute; top: calc(100% - 2px); left: 0; right: 0; z-index: 20; margin: 0; padding: 0; list-style: none; border: 2px solid #c9d9e8; border-top: 0; border-radius: 0 0 9px 9px; background: #fff; overflow: hidden; box-shadow: 0 14px 24px rgba(61,104,145,.08); }
body.basic-page .custom-select.open .select-menu { display: block; }
body.basic-page .select-menu li { height: 35px; display: flex; align-items: center; padding: 0 18px; color: #3f5267; font-size: 15px; font-weight: 700; cursor: pointer; transition: .16s ease; }
body.basic-page .select-menu li:hover, body.basic-page .select-menu li.selected { background: #eff8ff; color: var(--blue); }
body.basic-page .bottom-actions { display: flex; justify-content: space-between; gap: 22px; margin-top: 4px; }
#person_birth_year { position: relative; z-index: 20; }
/* =========================================================
   4. 問卷填答 page3.html
   ========================================================= */
body.questionnaire-page .page {
  width: min(980px, 94vw);
  min-height: 100vh;
  padding: 22px 0 92px;
}
body.questionnaire-page .steps { width: min(920px, 100%); margin-bottom: 22px; }
body.questionnaire-page .page-head { display: grid; gap: 18px; margin-bottom: 22px; }
body.questionnaire-page .title-row { display: flex; align-items: center; gap: 12px; color: var(--blue-dark); font-size: 27px; font-weight: 900; letter-spacing: .06em; }
body.questionnaire-page .title-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #1889ef, #006fd2); box-shadow: 0 10px 20px rgba(0,117,217,.2); }
body.questionnaire-page .progress-wrap { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; }
body.questionnaire-page .progress-track { height: 10px; border-radius: 999px; background: #dbe7f4; overflow: hidden; }
body.questionnaire-page .progress-fill { width: 28%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #18b8c2, #27c4a9); box-shadow: 0 6px 12px rgba(24,184,194,.22); }
body.questionnaire-page .progress-percent { color: var(--blue); font-weight: 900; font-size: 14px; }
body.questionnaire-page .page-count { min-width: 86px; height: 36px; padding: 0 16px; display: grid; place-items: center; border: 1px solid #cfe0ef; border-radius: 8px; background: rgba(255,255,255,.86); color: #163f74; font-weight: 900; font-size: 14px; box-shadow: var(--shadow-soft); }
body.questionnaire-page .questions { display: grid; gap: 10px; }
body.questionnaire-page .question-card { display: grid; grid-template-columns: 112px 1fr; min-height: 98px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(12px); }
body.questionnaire-page .question-card.textarea-card { min-height: 142px; }
body.questionnaire-page .question-type { background: linear-gradient(180deg, #f1f8ff, #eaf5ff); display: grid; place-items: center; padding: 12px; border-right: 1px solid #e1edf7; }
body.questionnaire-page .type-inner { display: grid; justify-items: center; gap: 7px; color: var(--blue); font-weight: 900; font-size: 14px; letter-spacing: .04em; }
body.questionnaire-page .q-number { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #1889ef, #006fd2); font-size: 18px; box-shadow: 0 8px 14px rgba(0,117,217,.2); }
body.questionnaire-page .type-icon { width: 24px; height: 24px; color: var(--blue); }
body.questionnaire-page .question-main { padding: 20px 28px; display: grid; gap: 14px; align-content: center; }
body.questionnaire-page .question-title { margin: 0; color: #153d72; font-size: 17px; font-weight: 900; letter-spacing: .04em; line-height: 1.5; }
body.questionnaire-page .inline-options { display: flex; flex-wrap: wrap; gap: 22px 80px; align-items: center; }
body.questionnaire-page .option-boxes { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; }
body.questionnaire-page .check-options { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; padding: 12px 18px; border-radius: 12px; background: linear-gradient(90deg, rgba(244,249,255,.9), rgba(255,255,255,.68)); }
body.questionnaire-page .option { display: flex; align-items: center; gap: 9px; min-height: 32px; color: #314b66; font-size: 14px; font-weight: 800; cursor: pointer;}
body.questionnaire-page .option.card-option { padding: 10px 16px; border: 1px solid #cfe0ef; border-radius: 8px; background: #fff; box-shadow: 0 8px 16px rgba(45,107,157,.06); }
body.questionnaire-page input[type="radio"], body.questionnaire-page input[type="checkbox"] { appearance: none; width: 20px; height: 20px; margin: 0; border: 2px solid #a9bfd6; background: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
body.questionnaire-page input[type="radio"] { border-radius: 50%; }
body.questionnaire-page input[type="checkbox"] { border-radius: 4px; }
body.questionnaire-page input[type="radio"]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: .15s ease; }
body.questionnaire-page input[type="checkbox"]::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 900; transform: scale(0); transition: .15s ease; }
body.questionnaire-page input[type="radio"]:checked, body.questionnaire-page input[type="checkbox"]:checked { border-color: var(--blue); background: #fff; }
body.questionnaire-page input[type="radio"]:checked::after { transform: scale(1); }
body.questionnaire-page input[type="checkbox"]:checked { background: var(--blue); }
body.questionnaire-page input[type="checkbox"]:checked::after { transform: scale(1); }
body.questionnaire-page .text-answer { position: relative;width: 100%; }
body.questionnaire-page textarea { width: 100%; min-height: 84px; resize: none; border: 2px solid #c9d9e8; border-radius: 8px; background: #fff; padding: 14px 16px 26px; color: #314b66; font-family: inherit; font-size: 14px; font-weight: 700; outline: none; }
body.questionnaire-page textarea::placeholder { color: #9aabbd; }
body.questionnaire-page textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,117,217,.1); }
body.questionnaire-page .limit-note { position: absolute; right: 12px; bottom: 10px; color: #8a9bb0; font-size: 12px; font-weight: 700; }
body.questionnaire-page .scale-block { display: grid; gap: 10px; }
body.questionnaire-page .scale-labels, body.questionnaire-page .scale-options { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; text-align: center; gap: 12px; }
body.questionnaire-page .scale-labels span { color: #3b516a; font-size: 14px; font-weight: 900; }
body.questionnaire-page .scale-options { padding: 8px 0; border-radius: 999px; background: linear-gradient(90deg, rgba(247,251,255,.94), rgba(239,247,255,.82), rgba(247,251,255,.94)); }
body.questionnaire-page .scale-options label { display: grid; place-items: center; cursor: pointer; }
.footer-actions, .footer-actions { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 40px; padding: 12px 24px; background: rgba(255,255,255,.9); border-top: 1px solid #d7e7f5; box-shadow: 0 -8px 24px rgba(43,103,151,.08); backdrop-filter: blur(12px); }


/* ---------- 響應式 ---------- */
@media (max-width: 1200px) {
  body.login-page { overflow: auto; }
  body.login-page .page { height: auto; min-height: 100vh; width: min(100% - 28px, 760px); padding: 32px 0; }
  body.login-page .layout { grid-template-columns: 1fr; gap: 28px; }
  body.login-page .left-area, body.login-page .login-card { width: 100%; justify-self: center; }
  body.login-page .feature-bar { grid-template-columns: 1fr; height: auto; }
  body.login-page .feature-item { padding: 22px 28px; }
  body.login-page .feature-item + .feature-item::before { top: 0; bottom: auto; left: 40px; right: 40px; width: auto; height: 1px; }
}
@media (min-width: 1000px) and (max-height: 720px) {
  body.login-page .page { gap: 14px; padding: 14px 0; }
  body.login-page h1 { font-size: clamp(36px, 3.1vw, 50px); }
  body.login-page .subtitle { margin: 10px 0; font-size: 18px; }
  body.login-page .illustration-wrap { height: 140px; }
  body.login-page .people { transform: translateX(-50%) scale(.58); }
  body.login-page .login-card { height: 470px; padding: 22px 48px 26px; }
  body.login-page .login-avatar { width: 54px; height: 54px; margin-bottom: 10px; }
  body.login-page input { height: 44px; font-size: 17px; }
  .login-btn { height: 48px; font-size: 20px; }
  body.login-page .feature-bar, body.login-page .feature-item { height: 66px; min-height: 66px; }
}
@media (max-width: 820px) {
  .header { min-height: 66px; padding: 8px 6px; }
  .school-illustration { opacity: .28; }
  .steps { width: 100%; }
  .step { font-size: 12px; }
  .step-number { width: 30px; height: 30px; font-size: 14px; }
  .step:not(:last-child)::after { top: 14px; left: calc(50% + 22px); width: calc(100% - 44px); }
  body.consent-page .page, body.basic-page .page { width: min(100% - 28px, 560px); justify-content: flex-start; padding: 16px 0 28px; }
  body.consent-page .main-card { padding: 26px 22px 30px; }
  body.consent-page .meta { flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
  body.consent-page .content-grid { grid-template-columns: 1fr; }
  body.consent-page .image-panel { min-height: 220px; }
  body.consent-page .clipboard-art { transform: scale(.82); }
  body.basic-page .radio-row { gap: 14px 18px; }
  body.basic-page .custom-select { width: 100%; }
  body.basic-page .bottom-actions { gap: 12px; }
  body.basic-page .btn { width: 100%; min-width: auto; }
}
@media (max-width: 720px) {
  body.login-page .page { width: min(100% - 28px, 560px); }
  body.login-page h1 { font-size: 40px; letter-spacing: .04em; }
  body.login-page .notice-card, body.login-page .help-card, body.login-page .feature-item { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  body.login-page .illustration-wrap { height: 210px; }
  body.login-page .people { transform: translateX(-50%) scale(.82); }
  body.login-page .login-card { padding: 34px 24px; border-radius: 26px; height: auto; }
  body.questionnaire-page .page { width: min(100% - 28px, 560px); padding-top: 18px; padding-bottom: 110px; }
  body.questionnaire-page .title-row { font-size: 23px; }
  body.questionnaire-page .progress-wrap { grid-template-columns: 1fr auto; }
  body.questionnaire-page .page-count { grid-column: 1 / -1; justify-self: end; }
  body.questionnaire-page .question-card, body.questionnaire-page .question-card.textarea-card { grid-template-columns: 1fr; }
  body.questionnaire-page .question-type { border-right: 0; border-bottom: 1px solid #e1edf7; padding: 10px; }
  body.questionnaire-page .type-inner { grid-template-columns: auto auto auto; align-items: center; }
  body.questionnaire-page .question-main { padding: 18px; }
  body.questionnaire-page .inline-options { gap: 14px 28px; }
  body.questionnaire-page .option-boxes, body.questionnaire-page .check-options { flex: 1 1 100%; }
  body.questionnaire-page .scale-labels span { font-size: 11px; }
  .footer-actions { gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
  .footer-actions .btn, .footer-actions .btn-primary { width: calc(50% - 6px); min-width: 0; height: 46px; font-size: 14px; }
  .footer-actions .btn-save { width: 100%; order: -1; }
}

.submit-page{margin:0;min-height:100vh;font-family:"Noto Sans TC","Microsoft JhengHei",Arial,sans-serif;color:#173963;background:radial-gradient(circle at 8% 2%,rgba(178,219,241,.72) 0 11%,transparent 12%),radial-gradient(circle at 90% 96%,rgba(204,235,249,.82) 0 16%,transparent 17%),linear-gradient(135deg,#f4fbff 0%,#edf8ff 42%,#f9fdff 100%);overflow-x:hidden}
.submit-page::before,.submit-page::after{content:"";position:fixed;z-index:0;pointer-events:none}
.submit-page::before{width:430px;height:430px;left:-150px;top:-140px;border-radius:42% 58% 61% 39% / 47% 35% 65% 53%;background:rgba(184,225,246,.46)}
.submit-page::after{width:380px;height:280px;right:-130px;bottom:-100px;border-radius:58% 42% 0 0 / 70% 64% 0 0;background:rgba(199,232,247,.68)}
.submit-page .page{position:relative;z-index:1;width:min(980px,94vw);min-height:100vh;margin:0 auto;padding:28px 0 36px !important;display:flex;flex-direction:column;justify-content:center;gap:24px}
.submit-page .steps{display:grid;grid-template-columns:repeat(4,1fr);align-items:start;width:min(880px,100%);margin:0 auto;padding:0 8px}
.submit-page .step{position:relative;display:grid;justify-items:center;gap:7px;color:#8ca1b8;font-size:14px;font-weight:900;letter-spacing:.05em;text-align:center}
.submit-page .step:not(:last-child)::after{content:"";position:absolute;top:16px;left:calc(50% + 26px);width:calc(100% - 52px);height:2px;background:#cfe0ef}
.submit-page .step-number{position:relative;z-index:1;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#c4d4e6;color:#fff;font-size:16px;box-shadow:0 8px 16px rgba(46,106,157,.12)}
.submit-page .step.done{color:#1ba993}
.submit-page .step.done .step-number{background:linear-gradient(180deg,#37cfb6,#18a995);font-size:0}
.submit-page .step.done .step-number::before{content:"✓";font-size:18px;font-weight:900}
.submit-page .step.done::after{background:linear-gradient(90deg,#27c4a9,#cfe0ef)}
.submit-page .step.current{color:#0075d9}
.submit-page .step.current .step-number{background:linear-gradient(180deg,#1889ef,#006fd2)}
.submit-page .submit-card{position:relative;overflow:hidden;width:min(900px,100%);margin:0 auto;padding:54px 62px 46px;background:rgba(255,255,255,.92);border:1px solid #d7e7f5;border-radius:24px;box-shadow:0 18px 46px rgba(42,100,146,.12);backdrop-filter:blur(12px);text-align:center}
.submit-page .submit-card::before{content:"";position:absolute;left:50%;top:38px;width:430px;height:150px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(39,196,169,.18),transparent 68%);pointer-events:none}
.submit-page .status-icon{position:relative;width:104px;height:104px;margin:0 auto 26px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,#37cfb6,#18a995);box-shadow:0 16px 28px rgba(24,169,149,.26)}
.submit-page .status-icon::after{content:"";position:absolute;inset:-13px;border-radius:50%;border:2px solid rgba(39,196,169,.2)}
.submit-page .submit-title{position:relative;margin:0 0 16px;color:#123d72;font-size:clamp(30px,3vw,42px);font-weight:900;letter-spacing:.06em;line-height:1.3}
.submit-page .submit-desc{position:relative;width:min(620px,100%);margin:0 auto 32px;color:#49617b;font-size:17px;font-weight:700;line-height:2;letter-spacing:.04em}
.submit-page .summary-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 auto 34px;width:min(720px,100%)}
.submit-page .summary-item{min-height:92px;padding:18px 14px;border-radius:16px;background:linear-gradient(180deg,#f4fbff,#eef8ff);border:1px solid #d9e9f6;display:grid;place-items:center;gap:6px}
.submit-page .summary-item strong{color:#0075d9;font-size:24px;font-weight:900}
.submit-page .summary-item span{color:#526a83;font-size:14px;font-weight:800;letter-spacing:.05em}
.submit-page .confirm-box{width:min(720px,100%);margin:0 auto 34px;padding:24px 28px;border-radius:18px;background:linear-gradient(180deg,#f2f8fe,#f8fcff);border:1px solid #d7e7f5;text-align:left}
.submit-page .confirm-title{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#123d72;font-size:18px;font-weight:900;letter-spacing:.04em}
.submit-page .confirm-text{margin:0;color:#4b6179;font-size:15px;line-height:1.8;font-weight:700}
.submit-page .actions{display:flex;justify-content:center;gap:22px}
.submit-page .btn{width:220px;height:56px;border-radius:999px;font-size:17px;font-weight:900;letter-spacing:.06em;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:transform .2s ease,box-shadow .2s ease;text-decoration:none;font-family:inherit}
.submit-page .btn:hover{transform:translateY(-2px)}
.submit-page .btn-outline{border:2px solid #0b73d7;color:#0b64c0;background:rgba(255,255,255,.92);box-shadow:0 10px 18px rgba(0,117,217,.1)}
.submit-page .btn-primary{border:0;color:#fff;background:linear-gradient(180deg,#0b83ea,#006fd4);box-shadow:0 14px 22px rgba(0,117,217,.25)}
.submit-page .security-note{display:flex;align-items:center;justify-content:center;gap:10px;color:#1363b1;font-size:15px;font-weight:800;letter-spacing:.04em}
@media (max-width:720px){.submit-page .page{width:min(100% - 28px,560px);padding:20px 0 28px}
    .submit-page .steps{width:100%}
    .submit-page .step{font-size:12px}
    .submit-page .step-number{width:30px;height:30px;font-size:14px}
    .submit-page .step:not(:last-child)::after{top:14px;left:calc(50% + 22px);width:calc(100% - 44px)}
    .submit-page .submit-card{padding:38px 22px 30px}
    .submit-page .summary-panel{grid-template-columns:1fr}
    .submit-page .actions{flex-direction:column}
    .submit-page .btn{width:100%}
}

.flex-1{ flex: 1; }
.hide{ display: none; }
.tip_text{ color: #FF6600; cursor: pointer;}
#my-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 250px;
    word-wrap: break-word;
    white-space: normal;
    z-index: 9999;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
