  :root{
    --maxw: 860px;
    --pad: 16px;
    --radius: 12px;
    --border: #e5e7eb;
    --muted: #6b7280;
  }

  body{
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height:1.55;
    background:#fafafa;
  }

  .wrap{
    max-width: var(--maxw);
    margin: 40px auto;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
  }

  .topbar{
    position: sticky;
    top: 0;
    background: rgba(250,250,250,.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
  }

  .topbar-inner{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 16px;
    display:flex;
    gap:12px;
    align-items:flex-start;
    justify-content: space-between;
  }

  .title{
    font-size: 18px;
    margin: 0;
  }
  .meta{
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
  }

  .card{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }

  fieldset{
    border:1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
  }
  legend{
    padding: 0 6px;
    font-weight: 600;
  }

  /* 選項：讓整行都能點（手機很重要） */
  .option{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
  }
  .option:hover{ border-color: var(--border); background:#f9fafb; }
  .option input{ transform: scale(1.15); margin-top: 2px; }

  /* 年份輸入 */
  .year-input{
    width: 140px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px; /* 手機避免自動放大 */
  }

  /* 下方固定按鈕列 */
  .navdock{
    position: sticky;
    bottom: 0;
    background: rgba(250,250,250,.95);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    margin-top: 16px;
  }
  .navdock-inner{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
    display:flex;
    gap:10px;
    justify-content: space-between;
  }

  button{
    appearance:none;
    border:1px solid var(--border);
    background:#fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    cursor:pointer;
    flex: 1;
  }
  button.primary{
    background:#111827;
    color:#fff;
    border-color:#111827;
  }
  button:disabled{
    opacity:.55;
    cursor:not-allowed;
  }

  .progress{
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
  }

  /* 小螢幕微調 */
  @media (max-width: 480px){
    .title{ font-size: 16px; }
    fieldset{ padding: 10px; }
    button{ padding: 12px 14px; }
    .option{ padding: 12px 10px; }
  }

  /* 你的 wizard page */
  .page { display:none; }
  .page.active { display:block; }

  .center-horizontal {
    width: 50%;        /* Must specify a width less than 100% */
    margin-left: auto;
    margin-right: auto;
    /* Shorthand: margin: 0 auto; */
  }

  .q_title {
    font-size: 20px;
  }

    /* 讓選項變成卡片 */
  .option-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
  }

  .option-card input {
    display: none;
  }

  .option-card:has(input:checked) {
    border-color: #111827;
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(99,102,241,.15);
  }

 

