/* ============================================
   register.css - 商户入驻流程页面样式
   ============================================ */

:root {
  --primary: #002b5c;
  --primary-dark: #001736;
  --accent: #fea619;
  --text-main: #191c1d;
  --text-sub: #43474f;
  --bg-page: #f8f9fa;
  --border: #c4c6d0;
  --error: #ba1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-page); color: var(--text-main); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* 头部/底部使用 common/site_header + site_footer + style.css，勿重复定义 .search-* / .btn-login / .header-* 等 */

/* ============== MAIN ============== */
.main-content { padding: 48px 0 80px; min-height: 70vh; }
.page-container { max-width: 1500px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 48px; }

/* ============== PROGRESS INDICATOR ============== */
.progress-indicator {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
}
.progress-step.dimmed { opacity: 0.4; }
.step-circle {
  width: 40px; height: 40px; border-radius: 12px;
  background: #e1e3e4; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text-sub);
}
.step-circle.active {
  background: var(--primary-dark); border-color: var(--primary-dark);
  color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.step-label { font-size: 20px; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.progress-step.active .step-label { color: var(--primary-dark); }
.step-underline {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 4px; background: var(--accent); border-radius: 2px;
}
.progress-divider {
  width: 128px; height: 2px; background: var(--border); flex-shrink: 0; margin: 0; align-self: flex-start; margin-top: 20px;
}

/* ============== AGREEMENT CARD ============== */
.agreement-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  overflow: hidden; position: relative;
}
.branding-watermark {
  position: absolute; top: 0; right: 0; width: 197px; height: 231px; pointer-events: none; z-index: 0;
}
.branding-watermark img { width: 100%; height: 100%; object-fit: cover; }
.agreement-inner {
  position: relative; z-index: 1;
  padding: 64px 278px 65px;
}
.agreement-title-block {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-bottom: 33px; border-bottom: 1px solid var(--border);
}
.agreement-title { font-size: 36px; font-weight: 700; color: var(--primary-dark); text-align: center; }
.agreement-meta-row { text-align: center; }
.agreement-version { font-size: 14px; color: var(--text-sub); }

.agreement-section { padding: 40px 0 0; }
.agreement-section ul,
.agreement-section ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.agreement-section li {
  list-style: none;
  list-style-type: none;
}
.agreement-section li::marker {
  content: none;
}
.section-h2 { font-size: 24px; font-weight: 500; color: var(--primary-dark); margin-bottom: 24px; }
.section-intro { font-size: 18px; color: var(--text-main); line-height: 1.65; margin-bottom: 16px; }
.req-list { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 11px; }
.req-list li { font-size: 18px; color: var(--text-main); line-height: 1.65; }
.req-list li strong { margin-right: 4px; }

.integrity-blockquote {
  background: #fafbfc; border-left: 4px solid var(--primary-dark);
  border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 56px;
}
.integrity-quote { font-size: 14px; font-weight: 500; color: var(--primary-dark); }
.integrity-desc { font-size: 14px; color: var(--text-main); line-height: 1.65; }

/* Agreement footer */
.agreement-footer {
  border-top: 2px solid var(--border); padding-top: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.agree-label {
  display: flex; align-items: center; gap: 16px; cursor: pointer; margin-bottom: 32px;
  user-select: none;
}
.agree-protocol-check {
  width: 24px; height: 24px; flex-shrink: 0; margin: 0;
  accent-color: var(--primary-dark); cursor: pointer;
}
.agree-checkbox {
  width: 24px; height: 24px; border: 2px solid #747780; border-radius: 2px;
  flex-shrink: 0; transition: all 0.15s; display: flex; align-items: center; justify-content: center;
}
.agree-checkbox.checked {
  background: var(--primary-dark); border-color: var(--primary-dark);
}
.agree-checkbox.checked::after { content: '✓'; font-size: 14px; color: #fff; }
.agree-text { font-size: 18px; font-weight: 700; color: var(--text-main); }

.btn-next-step {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--primary-dark); color: #fff;
  font-size: 20px; font-weight: 700; padding: 16px 48px; border-radius: 12px;
  transition: opacity 0.2s, background 0.2s;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.btn-next-step.disabled {
  background: var(--border); opacity: 0.5; pointer-events: none; cursor: not-allowed;
}
.btn-next-step:hover:not(.disabled) { background: #000d20; }
.btn-arrow { width: 16px; height: 16px; }

.privacy-note {
  margin-top: 16px; font-size: 10px; font-weight: 700; color: #8b92ab;
  letter-spacing: 2px;
}
.privacy-link { color: #e02020; }

/* ============== FORM LAYOUT (Step 2) ============== */
.form-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start;
}
.form-card {
  background: #f8f9fa; border-top: 4px solid var(--primary-dark);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  padding: 35px 32px 48px; display: flex; flex-direction: column; gap: 32px;
}
.form-card-header { display: flex; align-items: center; gap: 8px; }
.form-header-icon { width: 20px; height: 19px; }
.form-card-title { font-size: 24px; font-weight: 700; color: var(--primary-dark); }

.merchant-form { display: flex; flex-direction: column; gap: 24px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--text-sub); }
.required { color: var(--error); }
.field-input {
  background: #f3f4f5; border: 1px solid var(--border);
  padding: 13px 17px; font-size: 16px; color: var(--text-main);
  outline: none; width: 100%; transition: border-color 0.2s;
}
.field-input:focus { border-color: var(--primary); background: #fff; }
.field-input::placeholder { color: #6b7280; }
.field-textarea {
  background: #f3f4f5; border: 1px solid var(--border);
  padding: 13px 17px; font-size: 16px; color: var(--text-main);
  outline: none; width: 100%; resize: vertical; min-height: 96px;
  font-family: inherit; transition: border-color 0.2s;
}
.field-textarea:focus { border-color: var(--primary); background: #fff; }
.field-textarea::placeholder { color: #6b7280; }

.phone-row { display: flex; gap: 8px; }
.phone-row .field-input { flex: 1; }
.btn-get-code {
  background: #e7e8e9; border: 1px solid var(--border);
  padding: 13px 17px; font-size: 16px; color: var(--primary-dark);
  cursor: pointer; white-space: nowrap; border-radius: 2px;
  transition: background 0.15s;
}
.btn-get-code:hover { background: #d5d6d7; }
.btn-get-code:disabled { opacity: 0.6; cursor: not-allowed; }

/* Upload zone */
.upload-zone {
  background: #fff; border: 2px dashed var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 34px; gap: 8px; cursor: pointer; position: relative;
  transition: border-color 0.2s;
}
.upload-zone:hover { border-color: var(--primary); }
.upload-zone.drag-over { border-color: var(--accent); background: #fffbf0; }
.upload-icon { width: 33px; height: 32px; }
.upload-hint { font-size: 14px; font-weight: 500; color: var(--text-sub); }
.upload-hint-sub { font-size: 10px; font-weight: 700; color: var(--border); letter-spacing: 2px; }
.upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Form agree */
.form-agree-row { padding-top: 24px; }
.agree-label-small { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.agree-native-check { width: 16px; height: 16px; border-radius: 2px; accent-color: var(--primary-dark); cursor: pointer; }
.agree-text-small { font-size: 14px; font-weight: 500; color: var(--text-sub); }
.agree-link { color: var(--primary-dark); text-decoration: underline; }

/* Submit button */
.form-submit-row { padding-top: 32px; }
.btn-submit-form {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--text-main);
  font-size: 20px; font-weight: 700; padding: 16px 48px; border-radius: 12px; border: none;
  cursor: pointer; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.btn-submit-form:hover { background: #e89a10; }

/* ============== SIDEBAR ============== */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-process {
  background: var(--primary-dark); padding: 32px; overflow: hidden;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.sidebar-process-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 32px;
}
.sidebar-header-icon { width: 20px; height: 18px; }
.sidebar-process-header span { font-size: 20px; font-weight: 700; color: #fff; }
.sidebar-process-body { display: flex; flex-direction: column; gap: 32px; position: relative; }
.process-line {
  position: absolute; top: 0; bottom: 0; left: 16px; width: 2px;
  background: rgba(255,255,255,0.2);
}
.process-item { display: flex; gap: 16px; align-items: flex-start; position: relative; z-index: 1; }
.process-dot {
  width: 32px; height: 32px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.process-dot-icon { width: 12px; height: 12px; }
.dot-active { background: var(--accent); }
.dot-normal { background: rgba(255,255,255,0.2); }
.process-info { display: flex; flex-direction: column; gap: 4px; }
.process-title { font-size: 14px; font-weight: 700; color: #fff; }
.process-desc { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 2px; }
.sidebar-process-deco {
  position: absolute; bottom: -40px; right: -40px; width: 133px; height: 120px;
}
.sidebar-process-deco img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-hotline {
  background: #e7e8e9; border: 1px solid var(--border);
  padding: 25px; display: flex; align-items: center; gap: 16px;
}
.hotline-icon-wrap {
  width: 48px; height: 48px; background: var(--primary-dark);
  border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hotline-icon { width: 18px; height: 21px; }
.hotline-info { display: flex; flex-direction: column; gap: 4px; }
.hotline-label { font-size: 12px; font-weight: 700; color: var(--text-sub); letter-spacing: 2px; }
.hotline-num { font-size: 20px; font-weight: 700; color: var(--primary-dark); }

/* ============== SUCCESS BLOCK (Step 3) ============== */
.success-card {
  width: 100%;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.success-icon-wrap { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; }
.success-icon { width: 100%; height: 100%; object-fit: contain; }
.success-title { font-size: 48px; font-weight: 700; color: var(--primary-dark); text-align: center; letter-spacing: -1.2px; }
.success-desc { font-size: 16px; color: var(--text-sub); text-align: center; line-height: 1.65; max-width: 448px; }
.success-desc strong { color: var(--primary-dark); font-weight: 700; }
.btn-back-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 700; padding: 12px 48px; border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.btn-back-home:hover { background: var(--primary-dark); }
.btn-home-icon { width: 16px; height: 18px; }

/* ============== Responsive ============== */
@media (max-width: 1200px) {
  .agreement-inner { padding: 64px 120px 65px; }
  .form-layout { grid-template-columns: 1fr 280px; }
}
@media (max-width: 1024px) {
  .form-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .agreement-inner { padding: 40px 24px; }
  .progress-divider { width: 48px; }
  .step-label { font-size: 14px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .agreement-title { font-size: 28px; }
  .success-title { font-size: 36px; }
  .page-container { padding: 0 16px; }
}
@media (max-width: 480px) {
  .progress-divider { width: 16px; }
  .step-label { font-size: 11px; }
  .step-num { width: 28px; height: 28px; font-size: 13px; }
  .btn-next-step { width: 100%; font-size: 15px; padding: 13px 24px; }
  .btn-submit-form { width: 100%; font-size: 15px; padding: 13px 24px; }
  .form-input { font-size: 16px; }
  .form-select { font-size: 16px; }
  .agreement-inner { padding: 24px 16px; }
  .agreement-title { font-size: 22px; }
  .success-title { font-size: 28px; }
  .success-icon-wrap { width: 120px; height: 120px; }
  .success-desc { font-size: 14px; }
  .btn-back-home { width: 100%; justify-content: center; font-size: 15px; padding: 12px 24px; }
  .sidebar { padding: 16px; }
  .page-container { padding: 0 14px; }
  .progress-bar { padding: 16px 14px; gap: 4px; }
}
