/* 用户中心样式 */

/* 用户中心抽屉宽度 */
.offcanvas {
    width: 100% !important;
    max-width: 500px;
}

/* 用户中心按钮样式 */
.usercenter-container .btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    color: white;
}

.usercenter-container .btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.usercenter-container .btn-light {
    background: #f8f9fa;
    border-color: #dee2e6;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    color: #495057;
}

.usercenter-container .btn-light:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 无边框按钮样式 - 用于退出登录和刷新按钮 */
.usercenter-container .btn-outline-light {
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    color: #6c757d;
}

.usercenter-container .btn-outline-light:hover {
    background: rgba(108, 117, 125, 0.1);
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #495057;
}

.usercenter-container .btn-outline-light:focus {
    border: none;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* 用户信息卡片 */
.user-info-card {
  background: linear-gradient(135deg, #f8f9fa 60%, #e9ecef 100%);
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px rgba(52,71,219,0.06);
  margin: 0 1.5rem;
}

/* Tab导航样式 */
.usercenter-tabs .nav-link {
  border-radius: 0.5rem !important;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s;
  border: 1px solid #dee2e6;
  margin-right: 0.5rem;
  background: transparent;
}

.usercenter-tabs .nav-link.active {
  background: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd !important;
}

.usercenter-tabs .nav-link:hover {
  background: #f8f9fa;
  color: #0d6efd;
}

.usercenter-tabs .nav-link.active:hover {
  background: #0d6efd !important;
  color: #fff !important;
}

/* 卡片圆角 */
.card.rounded-4 {
  border-radius: 1.5rem !important;
}

/* 服务进度时间轴样式 */
.service-progress-timeline {
  position: relative;
}

.progress-item {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border: 1px solid #f1f3f4;
  transition: all 0.3s ease;
}

.progress-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #e3e6ea;
}

.progress-item.completed {
  background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.progress-item.processing {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.progress-item.pending {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* 为不同阶段添加更丰富的主题颜色 - 线条更细 */
.progress-item[data-stage="已完成"] {
  border-left: 2px solid #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.progress-item[data-stage="收尾阶段"] {
  border-left: 2px solid #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.progress-item[data-stage="进行中"] {
  border-left: 2px solid #17a2b8;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.progress-item[data-stage="开始中"] {
  border-left: 2px solid #007bff;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.progress-item[data-stage="准备中"] {
  border-left: 2px solid #6c757d;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.progress-item[data-stage="待开始"] {
  border-left: 2px solid #f8f9fa;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

.progress-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.progress-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.progress-item.completed .progress-item-icon {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.progress-item.processing .progress-item-icon {
  background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
}

/* 为不同阶段添加更丰富的图标颜色 */
.progress-item[data-stage="已完成"] .progress-item-icon {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.progress-item[data-stage="收尾阶段"] .progress-item-icon {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.progress-item[data-stage="进行中"] .progress-item-icon {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.progress-item[data-stage="开始中"] .progress-item-icon {
  background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
}

.progress-item[data-stage="准备中"] .progress-item-icon {
  background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
}

.progress-item[data-stage="待开始"] .progress-item-icon {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.progress-item-info {
  flex: 1;
  min-width: 0;
}

.progress-item-title {
  font-weight: 600;
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.progress-item-time {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

.progress-item-status {
  flex-shrink: 0;
}

.progress-item-status .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
}

.progress-item-body {
  padding-left: 0.5rem;
}

.progress-item-stage {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
}

.progress-item-manager {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #6c757d;
  font-size: 0.875rem;
}

.progress-item-remark {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1.4;
}

.progress-item-remark i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.progress-item-bar {
  margin-top: 1rem;
}

.progress-item-bar .progress {
  height: 6px;
  border-radius: 3px;
  background-color: #f1f3f4;
  overflow: visible;
}

.progress-item-bar .progress-bar {
  border-radius: 3px;
  position: relative;
  transition: width 0.6s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 为不同服务类型添加渐变效果 */
.progress-item-bar .progress-bar.bg-success {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.progress-item-bar .progress-bar.bg-warning {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.progress-item-bar .progress-bar.bg-primary {
  background: linear-gradient(90deg, #007bff, #0056b3);
}

.progress-item-bar .progress-bar.bg-purple {
  background: linear-gradient(90deg, #6f42c1, #5a2d91);
}

.progress-item-bar .progress-bar.bg-info {
  background: linear-gradient(90deg, #17a2b8, #138496);
}

.progress-item-bar .progress-bar.bg-secondary {
  background: linear-gradient(90deg, #6c757d, #545b62);
}

.progress-item-connector {
  position: absolute;
  left: 2.25rem;
  top: 100%;
  width: 1px;
  height: 1.5rem;
  background: linear-gradient(to bottom, #dee2e6 0%, transparent 100%);
  z-index: 1;
}

/* 空状态和错误状态样式 */
.empty-state, .error-state {
  padding: 2rem 1rem;
}

.empty-state i, .error-state i {
  opacity: 0.6;
}

/* 中等屏幕优化 */
@media (max-width: 768px) {
  .offcanvas {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .user-info-card {
    margin: 0 1rem;
    padding: 1.5rem 1rem;
  }
  
  .tab-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .card.rounded-4 {
    border-radius: 1rem !important;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .progress-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
  }
  
  .progress-item-header {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .progress-item-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  .progress-item-info {
    flex: 1;
    min-width: 0;
  }
  
  .progress-item-title {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }
  
  .progress-item-time {
    font-size: 0.8rem;
  }
  
  .progress-item-status {
    flex-shrink: 0;
  }
  
  .progress-item-status .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .progress-item-body {
    padding-left: 0;
  }
  
  .progress-item-stage,
  .progress-item-manager {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .progress-item-remark {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  .progress-item-bar {
    margin-top: 0.75rem;
  }
  
  .progress-item-bar .progress {
    height: 4px;
  }
  
  .progress-item-connector {
    left: 1.75rem;
    height: 1rem;
  }
  
  /* 移动端特殊优化 - 线条更细 */
  .progress-item[data-stage="已完成"] {
    border-left: 1px solid #28a745;
  }
  
  .progress-item[data-stage="收尾阶段"] {
    border-left: 1px solid #ffc107;
  }
  
  .progress-item[data-stage="进行中"] {
    border-left: 1px solid #007bff;
  }
  
  .progress-item[data-stage="开始中"] {
    border-left: 1px solid #17a2b8;
  }
  
  .progress-item[data-stage="准备中"] {
    border-left: 1px solid #6c757d;
  }
  
  .progress-item[data-stage="待开始"] {
    border-left: 1px solid #f8f9fa;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-item {
  animation: fadeInUp 0.5s ease forwards;
}

.progress-item:nth-child(1) { animation-delay: 0.1s; }
.progress-item:nth-child(2) { animation-delay: 0.2s; }
.progress-item:nth-child(3) { animation-delay: 0.3s; }
.progress-item:nth-child(4) { animation-delay: 0.4s; }

/* 用户中心单选框蓝色样式 */
.form-check-input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-check-input[type="radio"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-input[type="radio"]:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.form-check-input[type="radio"]:hover:not(:checked) {
    border-color: #0d6efd;
}

.form-check-label {
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-check-input[type="radio"]:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 500;
}

/* 复选框样式 */
.form-check-input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-input[type="checkbox"]:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.form-check-input[type="checkbox"]:hover:not(:checked) {
    border-color: #0d6efd;
}

.form-check-input[type="checkbox"]:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 500;
} 

/* 增值服务板块样式 */
.order-services-section {
    margin-top: 1.5rem;
}

.order-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* 只保留两个服务卡片：投放学习、探店套餐 */

/* 投放学习卡片样式 */
.order-service-item[data-service="toufang"] .order-service-icon {
    background: linear-gradient(135deg, #0d6efd, #0056b3);
}

/* 探店套餐卡片样式 */
.order-service-item[data-service="tandian"] .order-service-icon {
    background: linear-gradient(135deg, #0d6efd, #0056b3);
}

.order-service-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.order-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #0056b3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.order-service-item:hover::before {
    transform: scaleX(1);
}

.order-service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.12);
    border-color: #0d6efd;
}

.order-service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 3px 12px rgba(13, 110, 253, 0.25);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.order-service-item:hover .order-service-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 5px 18px rgba(13, 110, 253, 0.35);
}

.order-service-info {
    flex: 1;
}

.order-service-title {
    color: #2c3e50;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.order-service-price {
    color: #0d6efd;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(13, 110, 253, 0.15);
}

.order-service-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
    border-left: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.order-service-item:hover .order-service-desc {
    border-left-color: #0d6efd;
    color: #495057;
}

.order-service-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.2rem !important;
    transition: all 0.3s ease !important;
    border: 1px solid #0d6efd !important;
    color: #0d6efd !important;
    background: transparent !important;
    font-size: 0.9rem !important;
}

.order-service-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25) !important;
    background: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
}

.order-service-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
}

.order-service-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* 已订购增值服务样式 */
#user-vip-services {
    color: #0d6efd;
    font-weight: 600;
}

#user-vip-services.has-vip {
    color: #198754;
    font-weight: 700;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .order-services-grid {
        gap: 0.8rem;
    }
    
    .order-service-item {
        padding: 1.2rem;
        border-radius: 10px;
    }
    
    .order-service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .order-service-title {
        font-size: 1rem;
    }
    
    .order-service-price {
        font-size: 1.1rem;
    }
    
    .order-service-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .order-service-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
} 

/* 付费弹窗样式 */
.order-payment-modal {
    border-radius: 16px;
}

.order-payment-modal .swal2-popup {
    border-radius: 16px;
}

.order-payment-modal .swal2-confirm {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
}

.order-payment-modal .swal2-confirm:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 12px rgba(13, 110, 253, 0.25) !important;
}

.order-payment-modal .swal2-cancel {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
}

.order-payment-modal .swal2-cancel:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.25) !important;
}

.order-payment-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.order-service-icon-large {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.25);
    transition: all 0.3s ease;
}

.order-service-icon-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
}

.order-price-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.order-price-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.12);
    transform: translateY(-1px);
}

.order-price-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.order-price-symbol {
    color: #0d6efd;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 0.2rem;
}

.order-price-number {
    color: #0d6efd;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(13, 110, 253, 0.15);
}

.order-price-unit {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.3rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .order-service-icon-large {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .order-price-amount {
        font-size: 1.8rem;
    }
    
    .order-price-unit {
        font-size: 1rem;
    }
    
    .order-payment-info {
        padding: 1.2rem;
    }
    
    .order-price-display {
        padding: 1rem 1.2rem;
    }

    .order-price-card {
        padding: 1.2rem;
    }
    
    .order-price-symbol {
        font-size: 1.3rem;
    }
    
    .order-price-number {
        font-size: 2rem;
    }
    
    .order-price-unit {
        font-size: 1rem;
    }
} 