
/* ==================== 评估页面专用样式 ==================== */
/* 注意：通用样式已在 main.css 中定义 */

/* 评估页面横幅 */
.assessment-banner {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.9), rgba(245, 197, 66, 0.2));
  padding: 1.5rem 0 1.2rem;
  text-align: center;
}

.assessment-banner h1 {
  color: var(--secondary-color);
  margin-bottom: 0.6rem;
  line-height: 1.0;
}

.assessment-banner .subtitle {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

/* 进度条 */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin: 1.0rem auto 1.5rem;
  position: relative;
  max-width: 700px;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.3rem;
  background: var(--dark-color);
  transition: all 0.3s ease;
  min-width: 0;
}

.progress-step.active {
  color: var(--secondary-color);
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: -1;
}

.progress-step.active::before {
  background: var(--secondary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.3); }
  70% { box-shadow: 0 0 0 6px rgba(245, 197, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0); }
}

/* 评估表单容器 */
.assessment-container {
  padding: 1.0rem 0 1.2rem;
}

.assessment-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-step {
  display: none;
  animation: slideIn 0.4s ease;
}

.form-step.active {
  display: block;
}

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

.form-step h2 {
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  text-align: center;
  line-height: 1.1;
}

/* 品牌选择 */
.brand-selection {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 1.5rem 0 1.5rem;
  flex-wrap: wrap;
}

.brand-option {
  cursor: pointer;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
  min-width: 90px;
  max-width: 110px;
}

.brand-option:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-option.active {
  background: rgba(245, 197, 66, 0.1);
  border-color: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(245, 197, 66, 0.15);
}

/* Logo */
.brand-logo-img {
  width: 75px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto 5px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.brand-option:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-option.active .brand-logo-img {
  border: 1px solid #f5c542;
  padding: 1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.2);
}

.brand-name {
  font-weight: 600;
  pointer-events: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 表单项布局 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-light);
  font-weight: 600;
}

/* 里程滑块 */
.mileage-slider {
  margin-top: 0.6rem;
}

.mileage-slider input[type="range"] {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.mileage-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--secondary-color);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--dark-color);
}

.mileage-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  color: var(--text-muted);
}

/* 车况选项 */
.condition-section {
  margin-bottom: 1.0rem;
}

.condition-section h3 {
  color: var(--text-light);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.condition-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

@media (max-width: 768px) {
  .condition-options {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.condition-option {
  position: relative;
}

.condition-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  padding: 1rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  height: 100%;
  min-height: 100px;
}

.condition-option input[type="radio"]:checked + .option-content {
  border-color: var(--secondary-color);
  background: rgba(245, 197, 66, 0.08);
  transform: translateY(-1px);
}

.condition-option:hover .option-content {
  background: rgba(255, 255, 255, 0.08);
}

.option-icon {
  font-size: 1.5rem;
  min-height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.option-title {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.option-desc {
  color: var(--text-muted);
  line-height: 1.2;
  flex-grow: 1;
  display: flex;
  align-items: center;
  font-size: 0.9em;
}

/* 照片上传 */
.photo-upload {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .photo-upload {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .photo-upload {
    grid-template-columns: 1fr;
  }
}

.upload-area {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 1.2rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 100px;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.upload-area.has-image {
  border-style: solid;
  border-color: var(--secondary-color);
  background: rgba(245, 197, 66, 0.05);
}

.upload-icon {
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  color: var(--secondary-color);
}

.upload-text {
  color: var(--text-light);
  transition: opacity 0.2s ease;
  font-size: 0.9em;
}

.form-note {
  background: rgba(245, 197, 66, 0.08);
  border-radius: var(--border-radius);
  padding: 0.8rem;
  margin: 1rem 0;
  border-left: 3px solid var(--secondary-color);
  color: var(--text-light);
  line-height: 1.3;
}

/* 表单导航 */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.0rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-prev, .btn-next, .btn-submit {
  padding: 0.65rem 1.5rem;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95em;
}

.btn-prev {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-prev:hover {
  border-color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.btn-next {
  background: var(--secondary-color);
  color: var(--dark-color);
}

.btn-next:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 197, 66, 0.25);
}

.btn-submit {
  background: linear-gradient(135deg, #f5c542, #e0b339);
  color: var(--dark-color);
  padding: 0.75rem 2rem;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(245, 197, 66, 0.3);
}

/* 评估结果 */
.estimation-result {
  max-width: 540px;
  margin: 0 auto;
}

.estimation-card {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.25), rgba(245, 197, 66, 0.08));
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 197, 66, 0.15);
  animation: resultAppear 0.6s ease;
}

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

.estimation-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.estimation-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

.estimation-header h3 {
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.1;
}

.estimation-value {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: rgba(11, 44, 74, 0.7);
  border-radius: var(--border-radius);
  border: 1px solid var(--secondary-color);
}

.value-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.range-min, .range-max {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.range-label {
  color: var(--text-light);
  margin-bottom: 0.3rem;
  font-size: 0.9em;
}

.range-separator {
  color: var(--secondary-color);
  font-weight: bold;
}

.value-average {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.average-label {
  color: var(--text-light);
  margin-right: 0.3rem;
  font-size: 0.95em;
}

.currency {
  color: var(--secondary-color);
  font-weight: bold;
}

.value {
  font-weight: 900;
  color: var(--secondary-color);
  margin: 0 0.2rem;
  line-height: 1;
}

.range {
  color: var(--text-light);
  opacity: 0.8;
  font-size: 0.9em;
}

.estimation-details {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.estimation-details p {
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.breakdown-list {
  list-style: none;
  color: var(--text-muted);
}

.breakdown-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

.breakdown-list li:last-child {
  border-bottom: none;
}

.total-adjustment {
  font-weight: bold;
  color: var(--secondary-color) !important;
}

.adjustment-info {
  margin-bottom: 1rem;
}

.adjustment-info h4 {
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.adjustment-factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

@media (max-width: 768px) {
  .adjustment-factors {
    grid-template-columns: 1fr;
  }
}

.factor-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
}

.factor-icon {
  color: var(--secondary-color);
  flex-shrink: 0;
  font-size: 0.95em;
}

.factor-item p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.3;
  font-size: 0.9em;
}

.estimation-note {
  background: rgba(245, 197, 66, 0.08);
  border-radius: var(--border-radius);
  padding: 1rem;
  border-left: 3px solid var(--secondary-color);
}

.estimation-note p {
  color: var(--secondary-color);
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 0.95em;
}

.estimation-note ul {
  color: var(--text-light);
  list-style: none;
  padding-left: 0.8rem;
  font-size: 0.9em;
}

.estimation-note li {
  padding: 0.15rem 0;
  position: relative;
}

.estimation-note li::before {
  content: '•';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: -0.8rem;
}

/* 行动按钮 */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.btn-whatsapp, .btn-recalculate, .btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.95em;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-recalculate {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-recalculate:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-home {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--secondary-color);
}

.btn-home:hover {
  background: rgba(245, 197, 66, 0.08);
  transform: translateY(-1px);
}

/* 人工调整说明 */
.manual-adjustment {
  background: rgba(15, 76, 129, 0.25);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.manual-adjustment h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.1;
}

.adjustment-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .adjustment-process {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .adjustment-process {
    grid-template-columns: 1fr;
  }
}

.process-step {
  text-align: center;
}

.step-number {
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  color: var(--dark-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 0.6rem;
  font-size: 0.9em;
}

.process-step p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.3;
  font-size: 0.85em;
}

.process-step p strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.9em;
}

.process-note {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  font-size: 0.85em;
}

/* 常见问题 */
.faq-section {
  background: rgba(11, 44, 74, 0.9); /* 深蓝色背景，90%不透明度 */
  padding: 1.1rem 0;                /* 上下内边距1.5rem，左右为0 */
  margin-top: 1.5rem;                 /* 上外边距2rem */
}

.faq-section h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  padding: 1rem;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
  font-size: 0.95em;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.08);
}

.faq-question::after {
  content: '▶';
  color: var(--secondary-color);
  transition: transform 0.2s ease;
  font-size: 0.8em;
}

.faq-item.active .faq-question::after {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: none;
  font-size: 0.9em;
}

.faq-item.active .faq-answer {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 所有下拉框深色主题 */
select {
  background-color: #0b2c4a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 11px 13px !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 5px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23f5c542' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  padding-right: 35px !important;
  cursor: pointer !important;
  font-size: 0.95em;
}

select option {
  background-color: #0b2c4a !important;
  color: #ffffff !important;
  padding: 8px !important;
  font-size: 0.9em;
}

/* 输入框 */
.assessment-container input[type="text"],
.assessment-container input[type="number"],
.assessment-container input[type="tel"] {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 11px 13px !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 5px !important;
  transition: all 0.2s ease !important;
  font-size: 0.95em;
}

/* 焦点状态 */
select:focus,
.assessment-container input[type="text"]:focus,
.assessment-container input[type="number"]:focus,
.assessment-container input[type="tel"]:focus {
  outline: none !important;
  border-color: #f5c542 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.2) !important;
}

select:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.assessment-container ::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
  font-size: 0.9em;
}

select:disabled {
  background-color: rgba(11, 44, 74, 0.4) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* Honda Logo 增强 */
.brand-option[data-brand="honda"] .brand-logo-img {
  filter: brightness(0.95) contrast(1.1) saturate(1.1);
}

.contact-link:hover img {
  opacity: 1;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* 手机端 */
@media (max-width: 600px) {
  .brand-selection {
    gap: 8px;
  }
  
  .brand-logo-img {
    width: 65px;
    height: 30px;
  }
  
  .brand-option {
    min-width: 80px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    width: 55px !important;
    height: 25px !important;
  }
  
  .brand-option {
    min-width: 70px;
    padding: 6px 8px;
  }
}

/* 响应式优化 */
@media (max-width: 768px) {
  .assessment-banner {
    padding: 1.5rem 0 1rem !important;
  }
  
  .assessment-banner h1 {
    margin-bottom: 0.5rem !important;
  }
  
  .assessment-banner .subtitle {
    margin-bottom: 1rem !important;
    line-height: 1.2;
  }
  
  .progress-bar {
    margin: 1rem auto 1.5rem !important;
  }
  
  .contact-link img {
    width: 14px;
    height: 14px;
  }
  
  .estimation-card {
    padding: 1.2rem;
  }
  
  .value {
    font-size: 1.8rem !important;
  }
  
  .progress-bar::before {
    left: 5%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  .assessment-banner {
    padding: 1.2rem 0 0.8rem !important;
  }
  
  .brand-logo-img {
    width: 50px !important;
    height: 23px !important;
  }
  
  .condition-options {
    gap: 0.5rem !important;
  }
  
  .contact-link img {
    width: 13px;
    height: 13px;
    margin-right: 3px;
  }
  
  .value {
    font-size: 1.6rem !important;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .btn-prev, .btn-next, .btn-submit {
    width: 100%;
  }
}

