/* 账户安全模态框优化样式 */
.security-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(211, 47, 47, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 30px;
  border: none;
}

.security-card:hover {
  box-shadow: 0 15px 50px rgba(211, 47, 47, 0.12);
  transform: translateY(-3px);
}

.security-card-header {
  background: linear-gradient(135deg, #ffefef, #ffe0e0);
  padding: 20px 24px;
  border-bottom: 1px solid #f8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-card-header h5 {
  color: #ff6b35;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.security-card-header h5 i {
  margin-right: 12px;
  font-size: 22px;
  background: rgba(211, 47, 47, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.security-card-body {
  padding: 30px;
}

/* 实名认证部分样式 */
.mb-4 {
  margin-bottom: 24px;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-0 {
  margin-bottom: 0;
}

.security-card-body h6 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  position: relative;
  padding-left: 16px;
  margin: 0;
}

.security-card-body h6::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #ff6b35;
  border-radius: 2px;
}

/* 表单容器样式优化 */
#securityBindSection {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.security-form {
  background: #fafafa;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(139, 0, 0, 0.06);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 320px;
  position: relative;
  border: 1px solid #f0f0f0;
}

.security-form:hover {
  box-shadow: 0 12px 35px rgba(139, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: #ffcdd2;
}

.security-form h4 {
  color: #ff6b35;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding-bottom: 14px;
}

.security-form h4::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #ffcdd2, #ff6b35);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.security-form h4 span {
  margin-left: 10px;
  font-size: 15px;
  vertical-align: middle;
  font-weight: 500;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #555;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-left: 12px;
}

.form-group label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  background: #ff6b35;
  opacity: 0.5;
  border-radius: 2px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  transition: all 0.3s;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03) inset;
}

.form-control:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: #bbb;
}

.agreement {
  margin-top: 24px;
  display: flex;
  align-items: center;
}

.agreement label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
  padding-left: 0;
}

.agreement label::before {
  display: none;
}

.agreement input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  accent-color: #ff6b35;
}

.agreement-link {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.agreement-link:hover {
  text-decoration: underline;
  color: #e65100;
}

.upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed #ddd;
  transition: all 0.3s;
}

.upload-box:hover {
  border-color: #ff6b35;
  background: #fff7f7;
}

.upload-icon {
  font-size: 32px;
  color: #ff6b35;
  opacity: 0.6;
}

.upload-btn {
  background: linear-gradient(to right, #ff6b35, #e65100);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(183, 28, 28, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  justify-content: center;
}

.upload-btn:disabled {
  cursor: not-allowed;
  background: linear-gradient(to right, #bbb, #999);
  box-shadow: none;
  opacity: 0.7;
  transform: none;
}

.upload-btn i {
  font-size: 12px;
}

.upload-btn:hover {
  background: linear-gradient(to right, #ff6b35, #a50f0f);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(183, 28, 28, 0.25);
}

.upload-status {
  font-size: 14px;
  color: #888;
  margin-left: auto;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.upload-status i {
  font-size: 12px;
}

.upload-status .fa-spin {
  animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.upload-preview {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s;
  border: 2px solid #fff;
}

.upload-preview:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-btn {
  background: linear-gradient(to right, #ff6b35, #e65100);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-top: 28px;
  transition: all 0.3s;
  box-shadow: 0 6px 12px rgba(183, 28, 28, 0.15);
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: linear-gradient(to right, #ff6b35, #a50f0f);
  box-shadow: 0 8px 20px rgba(183, 28, 28, 0.25);
  transform: translateY(-3px);
}

.submit-btn:disabled {
  background: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.status-badge i {
  margin-right: 8px;
}

.status-none {
  background-color: #f5f5f5;
  color: #757575;
  border: 1px solid #e0e0e0;
}

.status-pending {
  background-color: #fff8e1;
  color: #ff8f00;
  border: 1px solid #ffecb3;
}

.status-approved {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.status-rejected {
  background-color: #ffebee;
  color: #ff6b35;
  border: 1px solid #ffcdd2;
}

/* 信息展示区域样式 */
.info-display {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  border-left: 4px solid #ff6b35;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-display div {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #eee;
  display: flex;
}

.info-display div:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.info-display div span:first-child {
  font-weight: 500;
  width: 120px;
  color: #555;
  position: relative;
  padding-left: 16px;
}

.info-display div span:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  background: #ff6b35;
  opacity: 0.5;
  border-radius: 2px;
}

.info-display div span:last-child {
  color: #333;
  flex: 1;
  font-weight: 600;
}

/* 图片预览模态框样式 */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.preview-modal.active {
  opacity: 1;
  visibility: visible;
}

.preview-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.preview-modal.active .preview-content {
  transform: scale(1);
}

.preview-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #555;
  background: white;
  border: none;
  cursor: pointer;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.preview-close:hover {
  background: #ffebee;
  color: #ff6b35;
  transform: rotate(90deg);
}

.preview-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 5px solid white;
}

/* 联系客服样式已移除 */

/* 响应式适配 */
@media (max-width: 991px) {
  #securityBindSection {
    gap: 24px;
  }
  
  .security-form {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .security-card-body {
    padding: 20px;
  }
  
  .security-form {
    padding: 20px;
    min-width: 100%;
  }
  
  .form-control {
    padding: 12px;
    font-size: 15px;
  }
  
  .submit-btn {
    padding: 12px;
    font-size: 15px;
  }
  
  .security-card-header h5 {
    font-size: 18px;
  }
  
  .security-card-header h5 i {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .security-form {
    padding: 16px;
  }
  
  .security-card-body {
    padding: 15px;
  }
  
  .upload-box {
    flex-wrap: wrap;
  }
  
  .upload-status {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* 新增美化部分 */
/* 实名认证头部美化 */
.realname-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.realname-header .status-icon {
  font-size: 36px;
  margin-right: 15px;
  color: #ff6b35;
  background: #ffebee;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.realname-header .status-text {
  flex: 1;
}

.realname-header .status-text h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #333;
}

.realname-header .status-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* 表单组效果增强 */
.form-group:focus-within label {
  color: #ff6b35;
}

.form-group:focus-within label::before {
  opacity: 1;
}

/* 表单卡片位置标记 */
.security-form::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 30px;
  width: 80px;
  height: 8px;
  background: #ff6b35;
  border-radius: 4px 4px 0 0;
}

/* 表单状态效果 */
.security-form.pending::before {
  background: #ff8f00;
}

.security-form.approved::before {
  background: #2e7d32;
}

.security-form.rejected::before {
  background: #ff6b35;
}

/* 解除绑定相关样式 */
.info-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px dashed #eee;
  padding-top: 15px;
}

.unbind-btn {
  background: transparent;
  color: #ff6b35;
  border: 1px solid #ff6b35;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.unbind-btn:hover {
  background: #ffebee;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(211, 47, 47, 0.1);
}

.unbind-btn i {
  font-size: 14px;
}

/* 确认解除模态框按钮 */
.cancel-btn {
  background: #f1f1f1;
  color: #666;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.confirm-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 8px rgba(211, 47, 47, 0.15);
}

.confirm-btn:hover {
  background: #e65100;
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.25);
  transform: translateY(-2px);
} 