
.repair-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.repair-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.repair-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  gap: 2px;
}

.repair-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 8px 2px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.repair-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.repair-count {
  background: #e0e0e0;
  color: #666;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.repair-tab.active .repair-count {
  background: var(--primary-color);
  color: #fff;
}

.repair-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repair-item {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.repair-item:active {
  transform: scale(0.98);
}

.repair-item.hidden {
  display: none !important;
}

.repair-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.repair-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(79, 195, 247, 0.15);
  color: #4FC3F7;
}

.repair-status.pending {
  background: rgba(79, 195, 247, 0.15);
  color: #4FC3F7;
}

.repair-status.dispatched {
  background: rgba(251, 192, 45, 0.15);
  color: #FBC02D;
}

.repair-status.repairing,
.repair-status.processing {
  background: rgba(255, 112, 67, 0.15);
  color: #FF7043;
}

.repair-status.pending-confirmation,
.repair-status.pending_confirmation {
  background: rgba(149, 117, 205, 0.15);
  color: #9575CD;
}

.repair-status.completed {
  background: rgba(102, 187, 106, 0.15);
  color: #66BB6A;
}

.repair-status.cancelled {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.repair-time {
  font-size: 12px;
  color: var(--text-light);
}

.repair-item-content {
  margin-bottom: 12px;
}

.repair-item-summary {
  cursor: pointer;
}

.repair-title-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
  word-break: break-word;
}

.repair-view-tip {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary-color);
}

.repair-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.repair-icon {
  width: 16px;
  height: 16px;
}

.repair-location span {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.repair-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.repair-order {
  font-size: 12px;
  color: var(--text-light);
}

.repair-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin: 12px 0;
  border-top: 1px dashed #eee;
  border-bottom: 1px dashed #eee;
  width: 100%;
  box-sizing: border-box;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 44px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  transition: all var(--transition-fast);
}

.progress-step.completed .step-dot {
  background: var(--primary-color);
}

.progress-step.active .step-dot {
  background: var(--primary-color);
  animation: pulse 1.5s infinite;
}

.progress-step span {
  font-size: 11px;
  color: var(--text-light);
}

.progress-step.completed span,
.progress-step.active span {
  color: var(--text-primary);
  font-weight: 600;
}

.progress-line {
  flex: 1 1 0;
  min-width: 16px;
  height: 2px;
  background: #ddd;
  margin: 0 4px;
  margin-bottom: 20px;
}

.progress-step.completed + .progress-line {
  background: var(--primary-color);
}

.repair-item-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.repair-evaluate-btn {
  padding: 8px 20px;
  background: var(--primary-color);
  border: none;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.repair-evaluate-btn:active {
  opacity: 0.9;
}

.repair-confirm-btn {
  padding: 8px 20px;
  background: #ff6b6b;
  border: none;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.repair-confirm-btn:active {
  opacity: 0.9;
}

.repair-cancel-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1.5px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.repair-cancel-btn:active {
  background: var(--secondary-color);
  color: #fff;
}

/* 评价弹窗样式 */
.evaluate-modal {
  max-width: 420px;
  width: 90%;
  padding: 0;
  text-align: left;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(1);
  margin: auto;
  align-self: center;
}

.evaluate-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evaluate-icon svg {
  width: 100%;
  height: 100%;
}

.evaluate-order-info {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 16px;
}

.evaluate-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 评价弹窗标签样式与反馈弹窗保持一致 */
.evaluate-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.evaluate-rating {
  text-align: center;
  margin-bottom: 20px;
}

.star-rating {
  font-size: 36px;
  margin: 10px 0;
  cursor: pointer;
}

.star {
  color: #ddd;
  margin: 0 4px;
  transition: all 0.2s ease;
}

.star.active,
.star.hover {
  color: #ffc107;
  transform: scale(1.1);
}

.rating-text {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.evaluate-tags {
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #fafafa;
  border: 1.5px solid #e8e8e8;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.tag-item:hover {
  border-color: var(--primary-color);
  background: rgba(78, 205, 196, 0.05);
}

.tag-item.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(78, 205, 196, 0.08) 100%);
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
  color: var(--primary-color);
  font-weight: 600;
}

.tag-item:active {
  transform: scale(0.96);
}

.evaluate-comment {
  margin-bottom: 16px;
}

.evaluate-textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
  background: #fafafa;
  line-height: 1.6;
}

.evaluate-textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.evaluate-textarea::placeholder {
  color: var(--text-light);
}

.repair-detail-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.repair-detail-btn:active {
  background: var(--primary-color);
  color: #fff;
}

.copy-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  vertical-align: -2px;
  cursor: pointer;
}

.copy-phone-icon svg {
  display: block;
}

.feedback-form {
  padding: 20px 0;
}

.detail-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.detail-back-btn:active {
  background: transparent;
  transform: scale(0.95);
}

.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(78, 205, 196, 0.15);
  color: var(--primary-color);
}

.detail-status-badge.pending {
  background: rgba(79, 195, 247, 0.15);
  color: #4FC3F7;
}

.detail-status-badge.dispatched {
  background: rgba(251, 192, 45, 0.15);
  color: #FBC02D;
}

.detail-status-badge.repairing,
.detail-status-badge.processing {
  background: rgba(255, 112, 67, 0.15);
  color: #FF7043;
}

.detail-status-badge.pending-confirmation,
.detail-status-badge.pending_confirmation {
  background: rgba(149, 117, 205, 0.15);
  color: #9575CD;
}

.detail-status-badge.completed {
  background: rgba(102, 187, 106, 0.15);
  color: #66BB6A;
}

.detail-status-badge.cancelled {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.detail-status-badge.teal {
  background: rgba(0, 188, 212, 0.15);
  color: #00BCD4;
}

.detail-status-badge.purple {
  background: rgba(171, 71, 188, 0.15);
  color: #AB47BC;
}

.detail-status-badge.indigo {
  background: rgba(92, 107, 192, 0.15);
  color: #5C6BC0;
}

.detail-status-badge.pink {
  background: rgba(236, 64, 122, 0.15);
  color: #EC407A;
}

.detail-status-badge.brown {
  background: rgba(141, 110, 99, 0.15);
  color: #8D6E63;
}

.detail-status-badge.lime {
  background: rgba(156, 204, 101, 0.15);
  color: #9CCC65;
}

.detail-header-spacer {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-header-spacer .icon {
  width: 24px;
  height: 24px;
}

.detail-back-btn {
  border: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.detail-title {
  flex: 1;
  text-align: center;
}

.repair-history-page .loading-tip,
.repair-history-page .empty-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.repair-history-page .loading-tip {
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.repair-history-page .empty-tip p {
  margin-top: 12px;
  font-size: 14px;
  color: #999;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f0f0f0;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.detail-content {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.detail-icon path {
  fill: currentColor;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-info-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px;
}

.info-label {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.info-value.order-no {
  color: var(--primary-color);
}

.info-value.priority-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1.4;
}

.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.detail-timeline {
  position: relative;
  padding-left: 46px;
}

.detail-timeline::before {
  display: none;
}

.detail-timeline .timeline-item {
  position: relative;
  color: var(--step-color, #aaa);
  padding-bottom: 24px;
}

.detail-timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.detail-timeline .timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background-color: #e0e0e0;
  transform: translateX(-50%);
}

.detail-timeline .timeline-item:last-child::before {
  display: none;
}

.detail-timeline .timeline-item.completed::before {
  background-color: currentColor;
}

.detail-timeline .timeline-item.step-0 { --step-color: #4FC3F7; --step-shadow: rgba(79, 195, 247, 0.16); --step-bg: #E1F5FE; --step-border: #B3E5FC; --step-text: #0288D1; }
.detail-timeline .timeline-item.step-1 { --step-color: #FBC02D; --step-shadow: rgba(251, 192, 45, 0.16); --step-bg: #FFF9C4; --step-border: #FFF59D; --step-text: #F57F17; }
.detail-timeline .timeline-item.step-2 { --step-color: #FF7043; --step-shadow: rgba(255, 112, 67, 0.16); --step-bg: #FBE9E7; --step-border: #FFCCBC; --step-text: #D84315; }
.detail-timeline .timeline-item.step-3 { --step-color: #9575CD; --step-shadow: rgba(149, 117, 205, 0.16); --step-bg: #EDE7F6; --step-border: #D1C4E9; --step-text: #6A1B9A; }
.detail-timeline .timeline-item.step-4 { --step-color: #66BB6A; --step-shadow: rgba(102, 187, 106, 0.16); --step-bg: #E8F5E9; --step-border: #C8E6C9; --step-text: #2E7D32; }

.detail-timeline .timeline-dot {
  position: absolute;
  left: -44px;
  top: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background: #f5f5f5;
  color: #aaa;
  box-shadow: none;
}

.detail-timeline .timeline-dot::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.detail-timeline .timeline-item.completed .timeline-dot {
  background-color: #fff;
  border-color: var(--step-color);
  color: var(--step-color);
  box-shadow: 0 0 0 4px var(--step-shadow);
}

.detail-timeline .timeline-item.completed .timeline-dot::after {
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  transform: none;
}

.detail-timeline .timeline-item.active .timeline-dot {
  background-color: #fff;
  border-color: var(--step-color);
  color: var(--step-color);
  box-shadow: 0 0 0 4px var(--step-shadow);
  animation: none;
}

.detail-timeline .timeline-item.active .timeline-dot::after {
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--step-color);
}

.detail-timeline .timeline-item.cancelled {
  --step-color: var(--secondary-color);
  --step-shadow: rgba(255, 107, 107, 0.16);
  --step-bg: #fff5f5;
  --step-border: rgba(255, 107, 107, 0.32);
  --step-text: var(--secondary-color);
}

.detail-timeline .timeline-item.cancelled .timeline-dot {
  background-color: #fff;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.16);
}

.detail-timeline .timeline-item.cancelled .timeline-dot::after {
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
}

.detail-timeline .timeline-line {
  display: none;
}

.detail-timeline .timeline-content {
  position: relative;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.detail-timeline .timeline-item.completed .timeline-content,
.detail-timeline .timeline-item.active .timeline-content,
.detail-timeline .timeline-item.cancelled .timeline-content {
  background-color: var(--step-bg);
  border-color: var(--step-border);
}

.detail-timeline .timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.detail-timeline .timeline-item.completed .timeline-title,
.detail-timeline .timeline-item.active .timeline-title,
.detail-timeline .timeline-item.cancelled .timeline-title {
  color: var(--step-text);
}

.detail-timeline .timeline-item.active .timeline-title {
  font-weight: 700;
}

.detail-timeline .timeline-time {
  display: block;
  font-size: 12px;
  color: #bbb;
  margin-bottom: 4px;
}

.detail-timeline .timeline-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

.detail-timeline .timeline-item:not(.completed):not(.active) .timeline-desc {
  color: #999;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.detail-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.detail-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  display: flex;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.detail-btn {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.detail-btn.secondary {
  background: #f5f5f5;
  color: var(--text-secondary);
}

.detail-btn.secondary:active {
  background: #fff0f0;
  transform: scale(0.98);
}

.detail-btn.primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.detail-btn.primary:active {
  background: var(--primary-dark);
  transform: scale(0.98);
}
