/* pages/dashouDingdan/dashouDingdan.wxss */

.ds-dingdan-page {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding-bottom: 20rpx;
  }
  
  .ds-dingdan-tabs-scroll {
    width: 100%;
    height: 90rpx;
    white-space: nowrap;
    background-color: #ffffff;
    border-bottom: 1rpx solid #f0f0f0;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
  }
  
  .ds-dingdan-tabs-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20rpx;
  }
  
  .ds-dingdan-tab-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60rpx;
    padding: 0 30rpx;
    margin-right: 20rpx;
    border-radius: 30rpx;
    background-color: #f5f5f5;
    color: #666666;
    font-size: 28rpx;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
  }
  
  .ds-dingdan-tab-item:last-child {
    margin-right: 0;
  }
  
  .ds-dingdan-tab-item.ds-tab-active {
    background-color: #e3f2fd;
    color: #1565c0;
    font-weight: 500;
    box-shadow: 0 4rpx 12rpx rgba(21, 101, 192, 0.1);
  }
  
  .ds-tab-active-line {
    width: 40rpx;
    height: 4rpx;
    background-color: #2196f3;
    border-radius: 2rpx;
    margin-top: 6rpx;
    animation: ds-fadeIn 0.3s ease;
  }
  
  @keyframes ds-fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }
  
  .ds-tab-text {
    font-weight: 400;
  }
  
  .ds-dingdan-list-container {
    padding: 20rpx;
  }
  
  .ds-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400rpx;
  }
  
  .ds-loading-spinner {
    width: 60rpx;
    height: 60rpx;
    border: 6rpx solid #e0e0e0;
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: ds-spin 1s linear infinite;
    margin-bottom: 20rpx;
  }
  
  @keyframes ds-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .ds-loading-text {
    font-size: 28rpx;
    color: #999999;
  }
  
  .ds-empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500rpx;
    padding-top: 80rpx;
  }
  
  .ds-empty-image {
    width: 200rpx;
    height: 200rpx;
    margin-bottom: 30rpx;
    opacity: 0.6;
  }
  
  .ds-empty-text {
    font-size: 32rpx;
    color: #999999;
    margin-bottom: 10rpx;
  }
  
  .ds-empty-subtext {
    font-size: 26rpx;
    color: #cccccc;
  }
  
  .ds-dingdan-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 16rpx;
    padding: 24rpx;
    margin-bottom: 20rpx;
    box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .ds-dingdan-card:active {
    transform: translateY(-2rpx);
    box-shadow: 0 6rpx 24rpx rgba(0, 0, 0, 0.08);
  }
  
  .ds-dingdan-card-left {
    flex-shrink: 0;
    margin-right: 24rpx;
  }
  
  .ds-dingdan-image {
    width: 160rpx;
    height: 160rpx;
    border-radius: 12rpx;
    background-color: #f5f5f5;
  }
  
  .ds-dingdan-card-center {
    flex: 1;
    height: 160rpx;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* 关键不同点：订单介绍显示三行 */
  .ds-dingdan-jieshao.ds-jieshao-three-line {
    font-size: 28rpx;
    line-height: 36rpx;
    color: #333333;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;  /* 改为3行 */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8rpx;
    min-height: 108rpx; /* 3 * 36rpx */
  }
  
  .ds-dingdan-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 160rpx;
    margin-left: 20rpx;
  }
  
  .ds-dingdan-zhuangtai {
    font-size: 24rpx;
    color: #ff6b6b;
    font-weight: 500;
    padding: 6rpx 16rpx;
    border-radius: 20rpx;
    background-color: #fff5f5;
    white-space: nowrap;
    text-align: center;
    min-width: 100rpx;
  }
  
  .ds-dingdan-jine {
    display: flex;
    align-items: center;
  }
  
  .ds-jine-symbol {
    font-size: 28rpx;
    color: #333333;
    font-weight: 500;
    margin-right: 4rpx;
  }
  
  .ds-jine-number {
    font-size: 32rpx;
    color: #333333;
    font-weight: 600;
  }
  
  .ds-load-more-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40rpx 0;
  }
  
  .ds-load-more-line {
    width: 80rpx;
    height: 1rpx;
    background-color: #e0e0e0;
    margin: 0 20rpx;
  }
  
  .ds-load-more-text {
    font-size: 26rpx;
    color: #999999;
    white-space: nowrap;
  }
  
  .ds-no-more-container {
    text-align: center;
    padding: 40rpx 0;
  }
  
  .ds-no-more-text {
    font-size: 26rpx;
    color: #cccccc;
  }
  
  @media (max-width: 375px) {
    .ds-dingdan-image {
      width: 140rpx;
      height: 140rpx;
    }
    
    .ds-dingdan-card-center {
      height: 140rpx;
    }
    
    .ds-dingdan-card-right {
      height: 140rpx;
    }
    
    .ds-jine-number {
      font-size: 30rpx;
    }
    
    .ds-dingdan-jieshao.ds-jieshao-three-line {
      min-height: 96rpx; /* 调整小屏幕下的最小高度 */
      font-size: 26rpx;
      line-height: 32rpx;
    }
  }