:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2937; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #eaf3ff 0, #f7f9fc 320px); }
button, input { font: inherit; }
.sign-app { width: 100%; min-height: 100vh; padding: 18px 14px 40px; }
.sign-shell { width: min(100%, 620px); margin: 0 auto; }
.sign-header { display: flex; gap: 12px; align-items: center; padding: 8px 2px 20px; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 700; background: #2b7de9; box-shadow: 0 8px 20px #2b7de933; }
h1, h2, p { margin-top: 0; } h1 { font-size: 21px; margin-bottom: 3px; } h2 { font-size: 22px; margin-bottom: 8px; } .sign-header p, .lead, .muted { color: #6b7280; font-size: 14px; }
.step-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; color: #9ca3af; font-size: 13px; } .step-bar i { width: 26px; height: 1px; background: #d8e0eb; } .step-bar span.active { color: #1d65bf; font-weight: 700; } .step-bar span.done { color: #35a16c; }
.sign-card { background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; padding: 22px 18px; box-shadow: 0 12px 30px #2134520c; } .center-card { min-height: 260px; display: grid; place-content: center; text-align: center; } .center-card p { max-width: 270px; line-height: 1.7; }
.field-label { display: block; margin: 22px 0 8px; font-weight: 700; } .large-input { display: block; width: 100%; height: 54px; border: 1px solid #ccd7e5; border-radius: 10px; padding: 0 14px; letter-spacing: 6px; font-size: 22px; text-align: center; outline: none; } .large-input:focus { border-color: #2b7de9; box-shadow: 0 0 0 3px #2b7de91c; }
.primary-button, .secondary-button { border: 0; border-radius: 11px; min-height: 52px; padding: 0 18px; cursor: pointer; font-weight: 700; } .primary-button { width: 100%; margin-top: 24px; color: #fff; background: #2b7de9; box-shadow: 0 8px 18px #2b7de933; } .primary-button:disabled { opacity: .55; cursor: wait; } .secondary-button { color: #2568b7; background: #eaf3ff; }
.notice-box { margin-top: 20px; padding: 12px 14px; border-radius: 10px; color: #667085; background: #f6f8fb; font-size: 13px; line-height: 1.6; } .error-text { margin: 14px 0 0; color: #d54848; line-height: 1.6; }
.customer-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; padding: 14px; border-radius: 12px; background: #f6f9fd; } .customer-summary div { display: grid; gap: 5px; } .customer-summary span { color: #7b8798; font-size: 13px; } .customer-summary strong { font-size: 16px; overflow-wrap: anywhere; }
.agreement-paper { max-height: 420px; overflow: auto; border: 1px solid #e4e8ef; border-radius: 10px; padding: 14px; background: #fffdf7; } .agreement-paper pre { white-space: pre-wrap; margin: 0 0 14px; font-family: inherit; font-size: 15px; line-height: 1.85; } .case-box { padding: 12px; margin-top: 10px; border-radius: 9px; background: #f6f8fb; line-height: 1.8; } .case-title { font-weight: 700; }
.check-row { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; font-size: 15px; line-height: 1.7; } .check-row input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.signature-wrap { position: relative; margin-top: 18px; border: 2px dashed #cbd8e8; border-radius: 12px; background: repeating-linear-gradient(0deg, #fff, #fff 46px, #eef3f8 47px); overflow: hidden; } #signatureCanvas { display: block; max-width: 100%; touch-action: none; } .signature-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #aab7c7; font-size: 16px; pointer-events: none; } .signature-placeholder.hidden { display: none; } .signature-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; } .signature-actions .primary-button { margin-top: 0; } .agreement-mini { margin: 16px 0 0; color: #8b96a5; font-size: 13px; }
.status-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; font-size: 34px; font-weight: 700; } .status-icon.good { color: #fff; background: #38a56e; } .status-icon.bad { color: #fff; background: #d86060; } .spinner { width: 30px; height: 30px; margin: 0 auto 14px; border: 3px solid #d9e6f6; border-top-color: #2b7de9; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.sign-footer { padding: 18px 0; text-align: center; color: #9aa5b4; font-size: 12px; }
@media (min-width: 600px) { .sign-app { padding-top: 34px; } .sign-card { padding: 28px; } }
