/* 注册页面样式 */

/* 工具类 */
.hidden {
  display: none !important;
}

/* 页面基础样式 */
.register-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

/* 顶部导航 */
.register-navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #ff6b6b;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: #999;
  line-height: 1.2;
}

.nav-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #999;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.step-item.active {
  color: #ff6b6b;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-item.active .step-number {
  background: #ff6b6b;
  color: #fff;
}

.step-text {
  font-size: 14px;
  font-weight: 500;
}

.step-line {
  width: 60px;
  height: 2px;
  background: #e0e0e0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-line.active {
  background: #ff6b6b;
}

.nav-login {
  font-size: 14px;
  color: #666;
}

.nav-login a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.nav-login a:hover {
  text-decoration: underline;
}

/* 主要内容区域 */
.register-content {
  padding: 20px 0;
  min-height: calc(100vh - 70px);
}

/* 步骤1：角色选择 */
.step-1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.step-header {
  text-align: center;
  margin-bottom: 50px;
}

.step-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.step-header p {
  font-size: 16px;
  color: #666;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.role-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.role-card.selected {
  border-color: #ff6b6b;
  box-shadow: 0 10px 40px rgba(255,107,107,0.15);
}

.role-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.role-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

.role-card h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 8px;
}

.role-card > p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.role-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
  margin-bottom: 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.benefit-item i {
  color: #4ecdc4;
  font-size: 12px;
}

.role-select-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-select-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.role-comparison {
  text-align: center;
}

.role-comparison a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.role-comparison a:hover {
  color: #ff6b6b;
}

/* 步骤内容基础样式 */
.step-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

/* 步骤1：角色选择 */
.step-1 {
  animation: fadeIn 0.5s ease;
}

/* 步骤2：表单 */
.step-2 {
  animation: slideIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.selected-role-info {
  display: flex;
  align-items: center;
}

.role-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.form-section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.section-title h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 4px;
}

.section-title p {
  font-size: 13px;
  color: #999;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.form-field.field-fullwidth {
  grid-column: span 2;
}

.form-field label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 4px;
}

/* 法人信息和联系人信息样式 */
.legal-person-section,
.contact-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
  margin-top: 12px;
}

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

/* 同法人信息 - 单独一行醒目样式 */
.same-as-legal-field {
  margin-bottom: 16px;
}

.same-as-legal-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff5f5;
  border: 1px solid #ff6b6b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.same-as-legal-checkbox:hover {
  background: #ffe8e8;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
}

.same-as-legal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff6b6b;
}

.same-as-legal-checkbox .checkbox-text {
  font-size: 14px;
  font-weight: 500;
  color: #ff6b6b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.same-as-legal-checkbox .checkbox-text i {
  font-size: 16px;
  color: #ff6b6b;
}

.same-as-legal-checkbox .checkbox-text small {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  margin-left: 4px;
}

/* 旧的同法人信息样式（保留兼容） */
.same-as-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  cursor: pointer;
}

.same-as-legal input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 13px;
  color: #666;
}

.contact-fields.disabled {
  opacity: 0.6;
  pointer-events: none;
}

input[readonly] {
  background: #f0f0f0;
  color: #999;
}

/* 身份证照片上传布局 */
.idcard-upload-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.idcard-upload-item {
  width: 100%;
}

/* 身份证上传区域 - 标准身份证比例 85.6:54 (约 1.58:1) */
.idcard-upload {
  aspect-ratio: 1.58;
  min-height: 200px;
  max-height: 240px;
  width: 100%;
}

.idcard-upload .image-upload-area {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idcard-upload .upload-placeholder i {
  font-size: 36px;
  margin-bottom: 8px;
}

.idcard-upload .upload-placeholder span {
  font-size: 14px;
  margin-bottom: 4px;
}

.idcard-upload .upload-placeholder small {
  font-size: 11px;
}

/* 主营业务下拉多选样式 */
.business-category-section {
  position: relative;
}

.category-select-box {
  position: relative;
}

.category-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
}

.category-select-trigger:hover {
  border-color: #4ecdc4;
}

.category-select-trigger .placeholder {
  color: #999;
  font-size: 14px;
}

.category-select-trigger i {
  color: #999;
  transition: transform 0.3s ease;
}

.category-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 300px;
  overflow: hidden;
}

.category-search {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.category-search i {
  color: #999;
  margin-right: 8px;
}

.category-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
}

.category-options {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.category-option:hover {
  background: #f5f5f5;
}

.category-option.selected {
  background: #e6f7f5;
  color: #4ecdc4;
}

.category-option .option-check {
  color: #4ecdc4;
}

.category-option-empty {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.category-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #4ecdc4;
  color: #fff;
  border-radius: 16px;
  font-size: 13px;
}

.selected-tag i {
  cursor: pointer;
  font-size: 12px;
}

.field-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

/* 身份信息 Tab 样式 */
.identity-type-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.identity-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  border: none;
  border-right: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.identity-tab:last-child {
  border-right: none;
}

.identity-tab:hover {
  background: #f0f0f0;
}

.identity-tab.active {
  background: #ff6b6b;
  color: #fff;
}

.identity-tab i {
  font-size: 16px;
}

/* 运营主体类型选择 */
.business-type-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.business-type-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  border: none;
  border-right: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.business-type-tab:last-child {
  border-right: none;
}

.business-type-tab:hover {
  background: #f0f0f0;
}

.business-type-tab.active {
  background: #4ecdc4;
  color: #fff;
}

.business-type-tab i {
  font-size: 16px;
}

/* 身份信息内容区域 */
.identity-content {
  animation: fadeIn 0.3s ease;
}

/* 身份信息内容区域 */
.identity-content {
  animation: fadeIn 0.3s ease;
}

/* 分站身份信息区域 - 确保字段撑满宽度 */
#roleFields .form-field {
  width: 100%;
  margin-bottom: 20px;
}

#roleFields .input-with-icon {
  width: 100%;
}

#roleFields .form-field.field-fullwidth {
  grid-column: auto;
}

/* 分站企业用户的营业执照保持60%宽度 */
#roleFields .license-upload-full {
  width: 60%;
}

.required {
  color: #ff6b6b;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.input-with-icon input::placeholder {
  color: #bbb;
}

.input-with-icon .toggle-password {
  position: absolute;
  right: 14px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

.input-group {
  display: flex;
  gap: 12px;
}

.input-group .input-with-icon {
  flex: 1;
}

.send-code-btn {
  padding: 12px 20px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
  background: #ff5252;
  color: #fff;
}

.send-code-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 图片上传区域基础样式 */
.image-upload-area {
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-upload-area .upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-upload-area:hover {
  border-color: #ff6b6b;
  background: #fff9f9;
}

.upload-placeholder i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 12px;
}

.upload-placeholder span {
  display: block;
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.upload-placeholder small {
  font-size: 12px;
  color: #999;
}

.upload-preview {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.upload-preview.has-image {
  display: block;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

/* 企业LOGO/头像 - 正方形 */
#headimgUpload {
  width: 160px;
  height: 160px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#headimgUpload .upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#headimgUpload .upload-placeholder i {
  font-size: 40px;
  margin-bottom: 8px;
}

#headimgUpload .upload-placeholder span {
  font-size: 14px;
  margin-bottom: 4px;
}

#headimgUpload .upload-placeholder small {
  font-size: 11px;
}

/* 营业执照上传区域 - A4比例 1:1.414，横向展示 */
.license-upload {
  aspect-ratio: 1.414;
  min-height: 168px;
  max-height: 240px;
  width: 60%;
}

/* 分站企业用户营业执照 - 撑满宽度 */
.license-upload-full {
  width: 100%;
  max-width: 600px;
}

.license-upload .image-upload-area {
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-upload .upload-placeholder i {
  font-size: 48px;
  margin-bottom: 12px;
}

.license-upload .upload-placeholder span {
  font-size: 16px;
  margin-bottom: 8px;
}

.license-upload .upload-placeholder small {
  font-size: 12px;
}

/* 铺货平台选择样式 */
.platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-option {
  cursor: pointer;
}

.platform-option input {
  display: none;
}

.platform-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.platform-option:hover .platform-tag {
  border-color: #45b7d1;
  color: #45b7d1;
}

.platform-option input:checked + .platform-tag {
  background: #45b7d1;
  border-color: #45b7d1;
  color: #fff;
}

/* 协议同意 */
.agreement-box {
  margin: 30px 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-wrapper input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-wrapper input:checked + .checkmark {
  background: #ff6b6b;
  border-color: #ff6b6b;
}

.checkbox-wrapper input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agreement-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.agreement-text a {
  color: #ff6b6b;
  text-decoration: none;
}

.agreement-text a:hover {
  text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,107,107,0.3);
  color: #fff;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 步骤3：注册成功 */
.step-3 {
  animation: slideIn 0.5s ease;
}

.success-content {
  max-width: 600px;
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 48px;
  color: #fff;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-content h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 12px;
}

.success-content > p {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.next-steps {
  margin-bottom: 40px;
}

.next-steps h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

.step-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  background: #f8f9fa;
  border-radius: 12px;
  min-width: 120px;
}

.step-card i {
  font-size: 28px;
}

.step-card span {
  font-size: 14px;
  color: #666;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,107,107,0.3);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.success-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  color: #4ecdc4;
  width: 20px;
}

.info-item span {
  color: #666;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: #ff6b6b;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,107,0.3);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* 消息提示 */
.message-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.message-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.message-toast.success {
  background: #4ecdc4;
  color: #fff;
}

.message-toast.error {
  background: #ff6b6b;
  color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
  .register-navbar {
    padding: 0 20px;
  }

  .nav-steps {
    display: none;
  }

  .step-1 {
    padding: 40px 20px;
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 30px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.field-fullwidth {
    grid-column: span 1;
  }

  .idcard-upload-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .idcard-upload {
    min-height: 160px;
    max-height: 200px;
  }

  .license-upload {
    min-height: 132px;
    max-height: 180px;
    width: 100%;
  }

  #headimgUpload {
    width: 140px;
    height: 140px;
  }

  .success-content {
    margin: 40px 20px;
    padding: 40px 20px;
  }

  .success-actions {
    flex-direction: column;
  }
}

/* 协议状态区域 */
.agreement-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8f9fa;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.agreement-status.completed {
  background: #e8f5e9;
  border-color: #4caf50;
  border-style: solid;
}

.agreement-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #999;
  flex-shrink: 0;
}

.agreement-status.completed .agreement-status-icon {
  background: #4caf50;
  color: #fff;
}

.agreement-status-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.status-desc {
  font-size: 13px;
  color: #999;
}

.agreement-read-btn {
  padding: 10px 20px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.agreement-read-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.agreement-status.completed .agreement-read-btn {
  background: #4caf50;
}

.agreement-status.completed .agreement-read-btn:hover {
  background: #43a047;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 协议弹窗 */
.agreement-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.agreement-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.agreement-modal-content {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.agreement-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: #fff;
}

.agreement-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.agreement-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.agreement-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.agreement-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.agreement-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.agreement-tab {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.agreement-tab:hover {
  background: #f0f0f0;
  color: #333;
}

.agreement-tab.active {
  color: #ff6b6b;
  border-bottom-color: #ff6b6b;
  background: #fff;
  font-weight: 500;
}

.agreement-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scroll-behavior: smooth;
}

.agreement-text {
  line-height: 1.8;
  color: #333;
}

.agreement-text h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.agreement-text h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: #444;
}

.agreement-text p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #666;
}

.agreement-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.agreement-progress {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.agreement-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b 0%, #ff8e8e 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.agreement-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.agreement-timer i {
  color: #ff6b6b;
}

.timer-text {
  color: #ff6b6b;
  font-weight: 600;
}

.agreement-confirm-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.agreement-confirm-btn:disabled {
  background: #e0e0e0;
  cursor: not-allowed;
}

.agreement-confirm-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* 协议弹窗响应式 */
@media (max-width: 768px) {
  .agreement-modal {
    padding: 0;
  }

  .agreement-modal-content {
    max-height: 100vh;
    border-radius: 0;
  }

  .agreement-tabs {
    overflow-x: auto;
  }

  .agreement-tab {
    font-size: 13px;
    padding: 12px;
  }

  .agreement-content {
    padding: 16px;
  }

  .agreement-modal-footer {
    padding: 16px;
  }
}
