/* 订单详情页样式 - 基于tcb-shop-demo设计规范 */

/* 页面容器 */
.order-detail-page {
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* 顶部状态卡片 */
.order-status-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 0 0 40rpx 40rpx;
  padding: 40rpx 32rpx;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.order-status-header::before {
  content: '';
  position: absolute;
  top: -100rpx;
  right: -100rpx;
  width: 200rpx;
  height: 200rpx;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.order-status-header::after {
  content: '';
  position: absolute;
  bottom: -60rpx;
  left: -60rpx;
  width: 160rpx;
  height: 160rpx;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.order-status-text {
  font-size: 36rpx;
  font-weight: 600;
  margin-bottom: 16rpx;
}

.order-status-desc {
  font-size: 28rpx;
  opacity: 0.9;
}

/* 内容区域 */
.order-content {
  padding: 0 32rpx 32rpx;
  margin-top: -30rpx;
}

.order-section {
  background: white;
  border-radius: 24rpx;
  margin-bottom: 24rpx;
  overflow: hidden;
}

/* 第一个内容区块的特殊样式，与顶部状态栏融合 */
.order-section:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.order-section-header {
  padding: 32rpx;
  border-bottom: 2rpx solid #f0f0f0;
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.order-section-body {
  padding: 32rpx;
}

/* 收货地址区域 */
.address-section {
  display: flex;
  align-items: flex-start;
  gap: 24rpx;
}

.address-icon {
  width: 40rpx;
  height: 40rpx;
  color: #4f46e5;
  flex-shrink: 0;
  margin-top: 4rpx;
}

.address-info {
  flex: 1;
}

.address-receiver {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 8rpx;
}

.address-phone {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 8rpx;
}

.address-detail {
  font-size: 28rpx;
  color: #666;
  line-height: 1.4;
}

.address-edit {
  color: #4f46e5;
  font-size: 28rpx;
  padding: 16rpx 24rpx;
  border: 2rpx solid #4f46e5;
  border-radius: 12rpx;
  background: white;
}

/* 商品卡片 */
.goods-card {
  display: flex;
  align-items: center;
  padding: 24rpx 0;
  border-bottom: 2rpx solid #f0f0f0;
}

.goods-card:last-child {
  border-bottom: none;
}

.goods-image {
  width: 160rpx;
  height: 160rpx;
  border-radius: 16rpx;
  object-fit: cover;
  margin-right: 24rpx;
}

.goods-info {
  flex: 1;
}

.goods-name {
  font-size: 28rpx;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8rpx;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.goods-spec {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 8rpx;
}

.goods-price {
  font-size: 28rpx;
  color: #ff4444;
  font-weight: 600;
}

.goods-quantity {
  font-size: 24rpx;
  color: #999;
}

/* 支付详情 */
.pay-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 0;
  font-size: 28rpx;
}

.pay-detail-label {
  color: #666;
}

.pay-detail-value {
  color: #333;
}

.pay-detail-total {
  border-top: 2rpx solid #f0f0f0;
  margin-top: 16rpx;
  padding-top: 24rpx;
  font-size: 32rpx;
  font-weight: 600;
}

.pay-detail-total .pay-detail-value {
  color: #ff4444;
}

/* 订单信息 */
.order-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 0;
  font-size: 28rpx;
}

.order-info-label {
  color: #666;
}

.order-info-value {
  color: #333;
}

.order-copy-btn {
  color: #4f46e5;
  font-size: 24rpx;
  padding: 8rpx 16rpx;
  border: 2rpx solid #4f46e5;
  border-radius: 8rpx;
  background: white;
  margin-left: 16rpx;
}

/* 底部操作栏 */
.order-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2rpx solid #f0f0f0;
  padding: 24rpx 32rpx;
  display: flex;
  justify-content: flex-end;
  gap: 16rpx;
}

.action-btn {
  padding: 16rpx 32rpx;
  border-radius: 40rpx;
  font-size: 28rpx;
  font-weight: 500;
  border: 2rpx solid;
  cursor: pointer;
}

.action-btn-outline {
  background: white;
  color: #666;
  border-color: #ddd;
}

.action-btn-primary {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

.action-btn-danger {
  background: #ff4444;
  color: white;
  border-color: #ff4444;
}

/* 下拉刷新 */
.refresh-container {
  height: 100vh;
}

/* 底部占位区域 */
.order-bottom-padding {
  height: 120rpx; /* 与底部操作栏高度匹配 */
}

/* 响应式调整 */
@media (max-width: 375px) {
  .order-content {
    padding: 24rpx;
  }

  .order-section-body {
    padding: 24rpx;
  }

  .goods-image {
    width: 140rpx;
    height: 140rpx;
  }
}