/* 人才招募頁樣式 */
    :root {
      --blue: #84b3c5;
      --blue-dark: #21383c;
      --gold: #d7a83a;
      --muted: #617684;
      --line: #d9e9ec;
      --soft: #eef7f8;
      --white: #ffffff;
      --bg: #f5fafb;
      --shadow: 0 18px 44px rgba(18, 57, 84, 0.1);
      --radius: 18px;
      --max: 1120px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--blue-dark);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 248, 255, 0.9) 100%);
      line-height: 1.8;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      display: block;
      max-width: 100%;
    }

    .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .eyebrow {
      display: inline-block;
      margin-bottom: 14px;
      color: var(--gold);
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    section {
      padding: 34px 0;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 22px;
      max-width: 720px;
      margin-right: auto;
      margin-left: auto;
      margin-bottom: 22px;
    }

    .section-head h2 {
      margin: 0;
      font-size: clamp(28px, 3.4vw, 42px);
      line-height: 1.2;
    }

    .section-head p {
      max-width: 620px;
      margin: 0;
      color: var(--muted);
    }

    .highlight-gold,
    .resume-next-note {
      color: var(--gold);
    }

    .section-head .resume-next-note {
      margin-top: 8px;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.7;
    }

    .form-shell {
      max-width: 720px;
      margin: auto;
      padding: 26px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: #ffffff;
      box-shadow: var(--shadow);
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }

    .form-step + .form-step {
      margin-top: 28px;
      padding-top: 26px;
      border-top: 1px solid var(--line);
    }

    .form-step-basic[hidden],
    .form-step-advanced[hidden] {
      display: none;
    }

    .final-submit-row[hidden] {
      display: none;
    }

    .form-title {
      grid-column: 1 / -1;
      margin: 0 0 2px;
      color: var(--blue-dark);
      font-size: 22px;
      font-weight: 900;
      line-height: 1.3;
    }

    .field {
      display: grid;
      gap: 7px;
    }

    .field-wide {
      grid-column: 1 / -1;
    }

    label,
    .field-title {
      color: #42545e;
      font-size: 14px;
      font-weight: 800;
    }

    .required {
      color: #e33838;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 46px;
      padding: 10px 13px;
      border: 1px solid #cfe4ef;
      border-radius: 12px;
      background: #fafdff;
      color: var(--blue-dark);
      font: inherit;
      outline: none;
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(132, 179, 197, 0.16);
    }

    .radio-group {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .radio-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 46px;
      padding: 0 14px;
      border: 1px solid #cfe4ef;
      border-radius: 999px;
      background: #fafdff;
      color: #42545e;
      font-weight: 700;
    }

    .radio-pill input {
      width: auto;
      min-height: auto;
      margin: 0;
    }

    .field-note {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.6;
    }

    .submit-row {
      display: flex;
      justify-content: center;
      margin-top: 22px;
    }

    .submit-row button {
      min-height: 48px;
      padding: 0 26px;
      border: 0;
      border-radius: 999px;
      background: var(--blue);
      color: #ffffff;
      font: inherit;
      font-weight: 800;
      cursor: pointer;
    }

    .submit-row button:disabled {
      cursor: not-allowed;
      opacity: 0.72;
    }

    .submit-row button.is-ineligible {
      background: #d8dde1;
      color: #7b878e;
      cursor: not-allowed;
      opacity: 1;
    }

    .success-message {
      display: none;
      margin-top: 22px;
      padding: 20px;
      border: 1px solid rgba(132, 179, 197, 0.28);
      border-radius: 16px;
      background: #eef8ff;
      color: #42545e;
      text-align: center;
    }

    .error-message {
      display: none;
      margin-top: 16px;
      padding: 14px 16px;
      border: 1px solid rgba(210, 69, 69, 0.28);
      border-radius: 12px;
      background: #fff6f6;
      color: #b33434;
      font-weight: 700;
      text-align: center;
    }

    .error-message.is-visible {
      display: block;
    }

    .turnstile-wrap {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }

    .step-submit-row {
      margin-top: 24px;
    }

    .success-message.is-visible {
      display: block;
    }

    body.resume-submitted .resume-intro {
      display: none;
    }

    .form-shell.is-submitted .form-grid,
    .form-shell.is-submitted .submit-row,
    .form-shell.is-submitted .turnstile-wrap {
      display: none;
    }

    .success-message strong {
      display: block;
      margin-bottom: 8px;
      color: var(--blue-dark);
      font-size: 20px;
    }

    .line-id {
      display: inline-flex;
      margin-top: 12px;
      padding: 8px 14px;
      border-radius: 999px;
      background: #ffffff;
      color: #319c60;
      font-weight: 900;
      letter-spacing: 0.3px;
    }

    .success-qr {
      width: min(210px, 72vw);
      margin: 16px auto 0;
      border-radius: 10px;
      background: #ffffff;
    }

    .resume-link-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      margin-top: 18px;
      padding: 0 41px;
      border: 0;
      border-radius: 999px;
      background: #3191b6;
      color: #ffffff;
      font-weight: 500;
      font-size: 19px;
      text-decoration: none;
      min-width: 278px;
      cursor: pointer;
    }

    .final-submit-row {
      gap: 12px;
      flex-wrap: wrap;
    }

    .resume-back-button {
      border: 1px solid #3191b6;
      background: #ffffff;
      color: #3191b6;
    }

    .resume-link-note {
      max-width: 420px;
      margin: 10px auto 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    @media (max-width: 920px) {
      .form-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(var(--max), calc(100% - 10px));
      }

      section {
        padding-left: 20px;
        padding-right: 20px;
      }

      .form-shell {
        padding: 20px;
      }

      .section-head {
        display: block;
      }

      .section-head p {
        margin-top: 10px;
      }
    }
