﻿/* ==========================================================================
   商家入驻页面样式
   ========================================================================== */
.sa-page { max-width: 800px; margin: 0 auto; padding: 100px 24px 60px; }

/* 步骤条 */
.sa-steps { display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #fff; border-radius: 12px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.sa-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sa-step__circle { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #e5e7eb; color: #a5adb6; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: #fff; transition: all 0.3s; }
.sa-step.is-active .sa-step__circle { border-color: #096ddd; background: #096ddd; color: #fff; }
.sa-step.is-done .sa-step__circle { border-color: #10b981; background: #10b981; color: #fff; }
.sa-step__label { font-size: 11px; color: #a5adb6; white-space: nowrap; font-weight: 500; }
.sa-step.is-active .sa-step__label { color: #096ddd; font-weight: 600; }
.sa-step.is-done .sa-step__label { color: #10b981; }
.sa-step__line { width: 48px; height: 2px; background: #e5e7eb; margin: 0 8px; margin-bottom: 18px; transition: background 0.3s; }
.sa-step__line.is-done { background: #10b981; }

/* 草稿提示 */
.sa-draft-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; margin-bottom: 16px; font-size: 13px; color: #92400e; }
.sa-draft-bar button { margin-left: auto; font-size: 12px; color: #096ddd; background: none; border: none; cursor: pointer; font-family: inherit; }
.sa-draft-bar__time { font-size: 11px; color: #a5adb6; white-space: nowrap; }

/* 卡片 */
.sa-card { background: #fff; border-radius: 12px; padding: 28px 28px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.sa-card--center { text-align: center; padding: 48px 28px; }
.sa-card__title { font-size: 17px; font-weight: 700; color: #1d2129; margin-bottom: 4px; }
.sa-card__desc { font-size: 13px; color: #86909c; margin-bottom: 24px; }

/* 表单 */
.sa-form__row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.sa-form__label { width: 130px; font-size: 13px; font-weight: 500; color: #4b5563; padding-top: 9px; flex-shrink: 0; text-align: right; }
.sa-form__label .req { color: #096ddd; }
.sa-form__field { flex: 1; min-width: 0; }
.sa-form__field--row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-form__sep { color: #86909c; font-size: 13px; }
.sa-form__check { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #4b5563; cursor: pointer; white-space: nowrap; }
.sa-id-longterm { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #4b5563; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s; }
.sa-id-longterm:hover { color: #096ddd; border-color: #93c5fd; background: #f8fbff; }
.sa-id-longterm:focus-within { border-color: #096ddd; box-shadow: 0 0 0 3px rgba(9,109,221,.10); }
.sa-id-longterm.is-active { color: #096ddd; border-color: #096ddd; background: #eff6ff; }
.sa-id-longterm input { width: 15px; height: 15px; margin: 0; accent-color: #096ddd; cursor: pointer; }
.sa-date-input.is-long-term:disabled { color: #096ddd; background-color: #eff6ff; border-color: #bfdbfe; opacity: 1; }
.sa-form__tip { display: block; font-size: 11px; color: #a5adb6; margin-top: 4px; line-height: 1.5; }
.sa-form__error { display: block; font-size: 12px; color: #096ddd; margin-top: 4px; min-height: 0; }

.sa-input { width: 100%; padding: 9px 12px; font-size: 13px; border: 1px solid #e5e7eb; border-radius: 6px; outline: none; font-family: inherit; color: #1d2129; transition: border-color 0.2s; }
.sa-input:focus { border-color: #096ddd; }
.sa-input.has-error { border-color: #096ddd; }
.sa-input--half { width: auto; flex: 1; }
.sa-input--code { width: 200px; }
.sa-input--readonly { background: #f5f7fa; color: #86909c; cursor: not-allowed; }

.sa-textarea { width: 100%; padding: 10px 12px; font-size: 13px; border: 1px solid #e5e7eb; border-radius: 6px; outline: none; font-family: inherit; color: #1d2129; resize: vertical; transition: border-color 0.2s; }
.sa-textarea:focus { border-color: #096ddd; }

.sa-input-group { display: flex; gap: 8px; align-items: center; }
.sa-input-group .sa-input { flex: 1; }

/* 按钮 */
.sa-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 20px; font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; font-family: inherit; text-decoration: none; }
.sa-btn:hover { border-color: #096ddd; color: #096ddd; }
.sa-btn--primary { background: #096ddd; color: #fff; border-color: #096ddd; }
.sa-btn--primary:hover { background: #0857b0; border-color: #0857b0; color: #fff; }
.sa-btn--lg { padding: 11px 32px; font-size: 14px; font-weight: 600; }
.sa-btn--sm { padding: 6px 14px; font-size: 12px; }
.sa-btn--code { white-space: nowrap; min-width: 100px; }
.sa-btn--code:disabled { opacity: 0.5; cursor: not-allowed; }

.sa-actions { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; }
.sa-actions--center { justify-content: center; }

/* 上传组件 */
.sa-id-uploads { display: flex; gap: 16px; flex-wrap: wrap; }
.sa-upload-box { width: 220px; border: 2px dashed #e5e7eb; border-radius: 10px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s; text-align: center; background: #fafbfc; }
.sa-upload-box:hover { border-color: #93c5fd; background: #eff6ff; }
.sa-upload-box--wide { width: 100%; flex-direction: row; justify-content: center; padding: 24px; }
.sa-upload-box__placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sa-upload-box__placeholder span { font-size: 13px; color: #4b5563; font-weight: 500; }
.sa-upload-box__example { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f1f5f9; }
.sa-upload-box__example img { width: 100px; height: 62px; object-fit: cover; border-radius: 6px; border: 1px solid #f1f5f9; }
.sa-upload-box__example em { display: block; font-size: 11px; color: #a5adb6; font-style: normal; margin-top: 4px; }

/* 人脸核验 */
.sa-face-verify { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid #f1f5f9; border-radius: 8px; background: #fafbfc; }
.sa-face-verify strong { font-size: 13px; color: #1d2129; display: block; margin-bottom: 2px; }
.sa-face-verify p { font-size: 11px; color: #86909c; margin: 0; }

/* 店铺类型选择 */
.sa-type-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.sa-type-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 2px solid #f1f5f9; border-radius: 10px; cursor: pointer; transition: all 0.2s; position: relative; }
.sa-type-card:hover { border-color: #93c5fd; background: #f0f9ff; }
.sa-type-card.is-selected { border-color: #096ddd; background: #eff6ff; }
.sa-type-card__radio { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #e5e7eb; transition: all 0.2s; }
.sa-type-card.is-selected .sa-type-card__radio { border-color: #096ddd; background: #096ddd; }
.sa-type-card.is-selected .sa-type-card__radio::after { content: '✓'; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; height: 100%; }
.sa-type-card__icon { color: #4b5563; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #f5f7fa; border-radius: 10px; flex-shrink: 0; }
.sa-type-card.is-selected .sa-type-card__icon { background: #eff6ff; color: #096ddd; }
.sa-type-card__body h4 { font-size: 14px; font-weight: 700; color: #1d2129; margin-bottom: 4px; }
.sa-type-card__sub { font-size: 11px; color: #86909c; margin-bottom: 8px; line-height: 1.5; }
.sa-type-card__body ul { list-style: none; padding: 0; }
.sa-type-card__body ul li { font-size: 12px; color: #4b5563; padding: 2px 0 2px 12px; position: relative; }
.sa-type-card__body ul li::before { content: '•'; position: absolute; left: 0; color: #096ddd; }

/* 规则表格 */
.sa-rule-box { border: 1px solid #f1f5f9; border-radius: 8px; padding: 20px; background: #fafbfc; }
.sa-rule-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sa-rule-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sa-rule-table th { text-align: left; padding: 10px 12px; background: #f1f5f9; font-weight: 600; color: #4b5563; border-bottom: 1px solid #e5e7eb; }
.sa-rule-table td { padding: 10px 12px; color: #4b5563; border-bottom: 1px solid #f5f7fa; vertical-align: top; line-height: 1.5; }
.sa-rule-table td strong { color: #096ddd; }

/* 账户类型切换 */
.sa-account-switch { display: flex; gap: 20px; margin-bottom: 20px; padding: 12px 16px; background: #fafbfc; border-radius: 8px; border: 1px solid #f1f5f9; }
.sa-radio-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; cursor: pointer; font-weight: 500; }

/* 协议签署 */
.sa-agreement-block { padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
.sa-agreement-block:last-child { border-bottom: none; }
.sa-agreement-block h4 { font-size: 13px; font-weight: 600; color: #1d2129; margin-bottom: 8px; }
.sa-agreement-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sa-doc-link { font-size: 12px; color: #096ddd; cursor: pointer; transition: color 0.2s; }
.sa-doc-link:hover { text-decoration: underline; color: #0857b0; }
.sa-agree-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; cursor: pointer; }
.sa-special-upload { margin: 12px 0; }
.sa-special-upload p { font-size: 12px; color: #4b5563; margin-bottom: 8px; }

/* 摘要确认 */
.sa-summary { display: flex; flex-direction: column; gap: 12px; }
.sa-summary__section { padding: 16px 20px; background: #fafbfc; border: 1px solid #f1f5f9; border-radius: 8px; }
.sa-summary__title { font-size: 12px; font-weight: 600; color: #86909c; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.sa-summary__row { display: flex; align-items: flex-start; padding: 4px 0; font-size: 13px; }
.sa-summary__label { width: 110px; color: #86909c; flex-shrink: 0; }
.sa-summary__value { color: #1d2129; font-weight: 500; }
.sa-adult-confirm { display: flex; align-items: flex-start; gap: 11px; margin: 14px 0 0; padding: 15px 18px; border: 1px solid #dbe7f7; border-radius: 8px; background: #f6f9fe; color: #34435a; cursor: pointer; }
.sa-adult-confirm[hidden] { display: none !important; }
.sa-adult-confirm input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #1677ff; cursor: pointer; }
.sa-adult-confirm span,.sa-adult-confirm small { display: block; }
.sa-adult-confirm b { display: block; margin-bottom: 4px; font-size: 13px; color: #1d2a3e; }
.sa-adult-confirm small { font-size: 12px; line-height: 1.6; color: #718096; }

/* 结果页 */
.sa-result-icon { margin-bottom: 16px; }
.sa-result-title { font-size: 20px; font-weight: 700; color: #1d2129; margin-bottom: 8px; }
.sa-result-desc { font-size: 14px; color: #86909c; margin-bottom: 20px; }
.sa-result-info { display: inline-flex; flex-direction: column; gap: 8px; background: #fafbfc; border: 1px solid #f1f5f9; border-radius: 8px; padding: 16px 28px; margin-bottom: 16px; text-align: left; font-size: 13px; }
.sa-result-info div { display: flex; gap: 12px; }
.sa-result-info span { color: #86909c; width: 70px; }
.sa-result-info strong { color: #1d2129; }
.sa-result-tip { font-size: 12px; color: #a5adb6; margin-bottom: 20px; }

/* 弹窗 */
.sa-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.sa-overlay.is-open { display: flex; }
.sa-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 620px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.15); overflow: hidden; }
.sa-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #f1f5f9; }
.sa-modal__header h3 { font-size: 15px; font-weight: 700; }
.sa-modal__close { font-size: 22px; color: #a5adb6; cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.sa-modal__close:hover { background: #f5f7fa; color: #1d2129; }
.sa-modal__body { padding: 24px; overflow-y: auto; flex: 1; font-size: 13px; color: #4b5563; line-height: 1.8; }
.sa-modal__body h4 { font-size: 14px; font-weight: 700; color: #1d2129; margin: 14px 0 6px; }
.sa-modal__body p { margin-bottom: 10px; }
.sa-modal__footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 24px; border-top: 1px solid #f1f5f9; }

/* 响应式 */
@media (max-width: 768px) {
  .sa-page { padding: 80px 12px 40px; }
  .sa-steps { padding: 16px 8px; }
  .sa-step__line { width: 20px; margin: 0 4px; }
  .sa-step__label { font-size: 10px; }
  .sa-card { padding: 20px 16px; }
  .sa-form__row { flex-direction: column; gap: 4px; }
  .sa-form__label { width: auto; text-align: left; padding-top: 0; }
  .sa-id-uploads { flex-direction: column; }
  .sa-upload-box { width: 100%; }
  .sa-type-card { padding: 14px; }
}


/* 上传预览 */
.sa-upload-box__preview { position: relative; width: 100%; }
.sa-upload-box__preview img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
.sa-upload-box--wide .sa-upload-box__preview img { height: 140px; }
.sa-upload-box__delete { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #096ddd; color: #fff; border: none; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.sa-upload-box__delete:hover { background: #096ddd; }
.sa-upload-box.has-file .sa-upload-box__placeholder { display: none; }
.sa-upload-box.has-file .sa-upload-box__example { display: none; }
.sa-upload-box.has-file { border-style: solid; border-color: #10b981; background: #ecfdf5; }
