/**
 * 红海车域 - 我要卖车页样式表
 *
 * 仅包含卖车页专属样式（三大优势卡片、估价表单、卖车流程、成功弹窗）。
 * 通用样式（导航栏、底部、容器等）由 style.css 提供。
 *
 * 对应旧系统：D:\hhcyCar\oldCode\hhcy-car-mall\src\main\resources\templates\web\sell.html 中的 <style> 部分。
 * 旧系统内嵌的登录弹窗样式不再迁移（新系统使用独立登录页 /html/login.html）。
 */

/* ========== 三大优势卡片 ========== */
.sell-hero-adv {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.sell-hero-card {
  flex: 1;
  min-width: 200px;
  background: #fff5f4;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #ffe3df;
}
.sell-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(251,51,31,.12);
}
.sell-hero-card i {
  font-size: 40px;
  color: #FB331F;
  margin-bottom: 12px;
}
.sell-hero-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.sell-hero-card p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ========== 表单 ========== */
.sell-form-section {
  background: #fff;
  border-radius: 16px;
  padding: 44px 48px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #FB331F, #ff6b5b);
  border-radius: 2px;
}

.sell-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 8px;
}
.form-group .required { color: #FB331F; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  background: #fff;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #24549B;
  box-shadow: 0 0 0 3px rgba(36,84,155,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }

/* 表单错误提示 */
.sell-form-error {
  background: #FFF5F5;
  border: 1px solid #FFD7D7;
  color: #FB331F;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.sell-form-error.show { display: block; }

.sell-submit-btn {
  background: linear-gradient(135deg, #FB331F 0%, #e02a1a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 60px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(251,51,31,.25);
}
.sell-submit-btn:hover {
  opacity: .9;
  box-shadow: 0 6px 20px rgba(251,51,31,.35);
}
.sell-submit-btn:active { transform: translateY(1px); }
.sell-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* ========== 卖车流程 ========== */
.sell-process-section {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}
.step-item {
  flex: 1;
  max-width: 200px;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.step-num {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #FB331F 0%, #e02a1a 100%);
  color: #fff;
  border-radius: 50%;
  line-height: 52px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(251,51,31,.3);
}
.step-icon {
  width: 44px;
  height: 44px;
  background: #fff5f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #FB331F;
  font-size: 18px;
}
.step-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}
.step-arrow {
  color: #ddd;
  font-size: 18px;
  padding: 0 6px;
  flex-shrink: 0;
}

/* ========== 成功弹窗 ========== */
.sell-success-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.sell-success-mask.show { display: flex; }
.sell-success-box {
  background: #fff;
  width: 380px;
  border-radius: 16px;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.success-icon {
  font-size: 64px;
  color: #52c41a;
  margin-bottom: 12px;
  line-height: 1;
}
.sell-success-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}
.sell-success-box p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 24px;
}
.success-close-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #24549B 0%, #1a3d7a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.success-close-btn:hover { opacity: .88; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .sell-form-section { padding: 28px 20px; }
  .form-row { flex-direction: column; gap: 0; }
  .process-steps {
    flex-wrap: wrap;
    gap: 16px;
  }
  .step-arrow { display: none; }
  .step-item { max-width: none; flex: 1 1 45%; }
  .sell-process-section { padding: 28px 20px; }
  .sell-hero-card { min-width: 100%; }
  .sell-success-box { width: 86%; }
}
