:root {
  --purple: #6d4aff;
  --purple-dark: #4a2fc7;
  --purple-pale: #f1edff;
  --ink: #171629;
  --muted: #6d6b7d;
  --line: #e7e4ef;
  --paper: #ffffff;
  --ground: #f7f6fb;
  --success: #19805a;
  --shadow: 0 20px 65px rgba(37, 28, 77, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ground); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.join-header { height: 76px; max-width: 1280px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.join-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.join-brand img { width: 42px; height: 42px; }
.join-brand span { display: grid; gap: 2px; }
.join-brand strong { font-size: 16px; letter-spacing: .01em; }
.join-brand small { font-size: 11px; color: var(--muted); }
.back-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 8px 0 5px; }

main { max-width: 1280px; margin: 0 auto; padding: 0 28px 70px; }
.join-hero { position: relative; overflow: hidden; min-height: 420px; padding: 74px 78px; border-radius: 34px; color: white; background: linear-gradient(128deg, #171629 0%, #272047 48%, #5b3ae4 100%); display: grid; grid-template-columns: 1.4fr .7fr; gap: 72px; align-items: center; }
.join-hero::before { content: ""; position: absolute; width: 480px; height: 480px; right: -130px; top: -200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.02); }
.join-hero::after { content: "相成"; position: absolute; right: 30px; bottom: -60px; color: rgba(255,255,255,.035); font-size: 180px; font-weight: 900; letter-spacing: -.12em; }
.hero-copy, .hero-note { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: #bdafff; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.join-hero h1 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.06; letter-spacing: -.05em; font-weight: 750; }
.join-hero h1 em { color: #bbaaff; font-style: normal; }
.hero-lead { max-width: 680px; margin: 26px 0 34px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.8; }
.trust-line { display: flex; align-items: center; max-width: 580px; }
.trust-line span { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; color: rgba(255,255,255,.72); }
.trust-line i { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; font-style: normal; font-size: 10px; }
.trust-line b { width: 38px; height: 1px; background: rgba(255,255,255,.2); margin: 0 10px; }
.hero-note { padding: 28px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); border-radius: 22px; }
.hero-note > span { display: inline-block; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #d8ceff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.hero-note strong { display: block; margin: 18px 0 12px; font-size: 22px; line-height: 1.4; }
.hero-note p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }

.join-workspace { margin-top: 28px; padding: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.workspace-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.workspace-heading .eyebrow { margin-bottom: 10px; color: var(--purple); }
.workspace-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.workspace-heading p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.workspace-heading p b { color: var(--purple); }
.security-note { color: var(--success); background: #eef9f4; padding: 10px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.security-note span { margin-right: 5px; }

.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 28px; }
.role-tabs button { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); text-align: left; cursor: pointer; transition: .2s ease; }
.role-tabs button:hover { transform: translateY(-2px); border-color: #cfc5ff; }
.role-tabs button.active { color: white; border-color: var(--purple); background: var(--purple); box-shadow: 0 14px 30px rgba(109,74,255,.2); }
.role-tabs button > span { position: absolute; right: 16px; top: 16px; font-size: 11px; font-weight: 800; opacity: .5; }
.role-tabs strong, .role-tabs small { display: block; }
.role-tabs strong { font-size: 17px; margin-bottom: 7px; }
.role-tabs small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.role-tabs button.active small { color: rgba(255,255,255,.72); }

.form-shell { display: grid; grid-template-columns: 270px 1fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.form-guide { background: #f4f1ff; padding: 34px 28px; }
.form-step { color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.form-guide h3 { margin: 22px 0 12px; font-size: 23px; line-height: 1.3; letter-spacing: -.02em; }
.form-guide > p:not(.form-step) { margin: 0; color: #646078; font-size: 13px; line-height: 1.75; }
.form-guide dl { margin: 34px 0 0; }
.form-guide dl div { padding: 17px 0; border-top: 1px solid rgba(109,74,255,.13); }
.form-guide dt { margin-bottom: 6px; color: #847ca3; font-size: 11px; font-weight: 800; }
.form-guide dd { margin: 0; font-size: 13px; line-height: 1.55; }
.forms-area { min-width: 0; padding: 36px 42px 40px; }
.intake-form fieldset { min-width: 0; margin: 0 0 34px; padding: 0; border: 0; }
.intake-form legend { width: 100%; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 800; }
.intake-form legend span { color: var(--purple); margin-right: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 18px; }
.field-grid label, .authorization-fields > label { display: grid; gap: 8px; min-width: 0; }
.field-grid label > span, .authorization-fields label > span:first-child { color: #4e4b5b; font-size: 12px; font-weight: 700; }
.field-grid .wide, .authorization-fields .wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #dcd9e5; border-radius: 11px; background: white; color: var(--ink); outline: none; padding: 12px 13px; transition: border .2s, box-shadow .2s; }
input, select { min-height: 44px; }
textarea { resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,74,255,.1); }
input::placeholder, textarea::placeholder { color: #aaa6b5; }
.authorization-fields { position: relative; padding: 24px !important; border-radius: 15px !important; background: #faf9fd; }
.authorization-fields > .wide { margin-bottom: 18px; }
.consent { grid-template-columns: 19px 1fr !important; align-items: start; gap: 10px !important; cursor: pointer; }
.consent input { width: 18px; min-height: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--purple); }
.consent span { color: var(--muted) !important; font-weight: 500 !important; line-height: 1.65; }
.fax-field { position: absolute; left: -9999px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.submit-row p { max-width: 470px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.submit-row button, .success-dialog button { flex: 0 0 auto; border: 0; border-radius: 12px; background: var(--purple); color: white; font-weight: 800; padding: 14px 22px; cursor: pointer; box-shadow: 0 10px 22px rgba(109,74,255,.2); }
.submit-row button:hover, .success-dialog button:hover { background: var(--purple-dark); }
.submit-row button:disabled { cursor: wait; opacity: .65; }
.form-message { min-height: 20px; margin-top: 13px; color: #b23a48; font-size: 13px; }

.success-dialog { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(23,22,41,.72); backdrop-filter: blur(8px); }
.success-dialog[hidden] { display: none; }
.success-dialog > div { width: min(520px, 100%); padding: 48px; border-radius: 24px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.25); text-align: center; }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 23px; border-radius: 50%; background: #e9f8f1; color: var(--success); font-size: 25px; font-weight: 900; }
.success-dialog .eyebrow { margin-bottom: 10px; color: var(--purple); }
.success-dialog h2 { margin: 0 0 14px; font-size: 30px; }
.success-dialog > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.success-dialog dl { display: flex; justify-content: center; gap: 10px; margin: 22px 0 28px; font-size: 12px; }
.success-dialog dd { margin: 0; font-weight: 800; }
.success-dialog a { display: block; margin-top: 16px; color: var(--muted); font-size: 13px; }
.join-footer { max-width: 1280px; margin: 0 auto; padding: 24px 28px 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .join-hero { padding: 56px 44px; grid-template-columns: 1fr; gap: 36px; }
  .hero-note { max-width: 600px; }
  .form-shell { grid-template-columns: 1fr; }
  .form-guide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .form-guide dl { margin-top: 15px; }
}

@media (max-width: 640px) {
  .join-header { height: 68px; padding: 0 18px; }
  .join-brand small { display: none; }
  .join-brand img { width: 36px; height: 36px; }
  main { padding: 0 12px 42px; }
  .join-hero { min-height: 0; padding: 46px 25px 38px; border-radius: 22px; }
  .join-hero h1 { font-size: 39px; }
  .hero-lead { font-size: 15px; margin: 22px 0 28px; }
  .trust-line { align-items: flex-start; justify-content: space-between; }
  .trust-line span { flex-direction: column; gap: 7px; white-space: normal; text-align: center; }
  .trust-line b { margin-top: 13px; }
  .join-workspace { margin-top: 12px; padding: 27px 15px; border-radius: 22px; }
  .workspace-heading { display: block; }
  .workspace-heading h2 { font-size: 27px; }
  .security-note { display: inline-block; margin-top: 16px; }
  .role-tabs { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .role-tabs button { padding: 17px 18px; }
  .form-guide { display: block; padding: 26px 21px; }
  .form-guide dl { margin-top: 25px; }
  .forms-area { padding: 28px 20px 30px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .wide { grid-column: auto; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row button { width: 100%; }
  .success-dialog > div { padding: 38px 24px; }
  .join-footer { padding: 22px 18px 32px; display: grid; gap: 7px; line-height: 1.5; }
}
