/* pages/qiangdan/qiangdan.wxss - 逍遥梦抢单页 */
@import '../../styles/dashou-xym-theme.wxss';
@import '../../styles/dashou-xym-order-card.wxss';

page {
  background-color: #f7dc51;
}

.qiangdan-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at top, #1a1f30, #0b0f1a);
    overflow: hidden;
    position: relative;
  }
  
  /* 背景动态纹理，增加层次感 */
  .qiangdan-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(45deg, rgba(0, 247, 255, 0.02) 0%, transparent 30%),
      radial-gradient(circle at 30% 50%, rgba(255, 77, 109, 0.03) 0%, transparent 50%),
      repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 6px);
    pointer-events: none;
    z-index: 0;
  }
  
  /* ====== 1. 商品类型区域 ====== */
  .leixing-quyu {
    padding: 30rpx 0 20rpx;
    background: rgba(18, 22, 38, 0.9);
    backdrop-filter: blur(20rpx);
    border-bottom: 1rpx solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.5);
  }
  
  .leixing-scroll {
    width: 100%;
    white-space: nowrap;
    height: 180rpx;
  }
  
  .leixing-container {
    display: inline-flex;
    padding: 0 30rpx;
    gap: 20rpx;
  }
  
  .leixing-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 160rpx;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .leixing-active {
    transform: translateY(-8rpx);
  }
  
  .guangyun-effect {
    position: absolute;
    top: -15rpx;
    left: -15rpx;
    right: -15rpx;
    bottom: -15rpx;
    background: radial-gradient(circle at center, rgba(0, 200, 255, 0.3) 0%, transparent 70%);
    border-radius: 50rpx;
    z-index: 0;
    animation: guangyun-pulse 2s infinite ease-in-out;
  }
  
  @keyframes guangyun-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
  }
  
  .leixing-tupian {
    width: 120rpx;
    height: 120rpx;
    border-radius: 32rpx;
    z-index: 1;
    box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    border: 2rpx solid rgba(0, 200, 255, 0.4);
  }
  
  .leixing-active .leixing-tupian {
    box-shadow: 0 16rpx 40rpx rgba(0, 200, 255, 0.5);
    border: 2rpx solid #00c8ff;
  }
  
  .leixing-jieshao {
    margin-top: 16rpx;
    font-size: 24rpx;
    color: #b0c0e0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    z-index: 1;
    font-weight: 500;
  }
  
  .leixing-active .leixing-jieshao {
    color: #00c8ff;
    text-shadow: 0 0 8px rgba(0,200,255,0.5);
  }
  
  /* ====== 2. 分割线 ====== */
  .fenge-xian {
    height: 2rpx;
    background: linear-gradient(90deg, transparent, #00c8ff, #ff4d6d, transparent);
    flex-shrink: 0;
    margin: 0 30rpx;
    opacity: 0.5;
  }
  
  /* ====== 3. 页面主滚动（下拉刷新在顶部） ====== */
  .page-main-scroll {
    flex: 1;
    height: 0;
    -webkit-overflow-scrolling: touch;
    background: transparent;
  }

  .scroll-bottom-spacer {
    height: 24rpx;
  }

  .dingdan-list {
    padding: 0 20rpx;
    position: relative;
    z-index: 1;
  }

  .refresher-container {
    height: 100rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .refreshing-text,
  .pull-down-text {
    font-size: 26rpx;
    color: #6a9cff;
    text-shadow: 0 0 8px rgba(0,200,255,0.3);
  }
  
  /* ====== 4. 空状态提示 ====== */
  .empty-tip {
    padding: 160rpx 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .tip-icon {
    width: 180rpx;
    height: 180rpx;
    opacity: 0.5;
    margin-bottom: 30rpx;
    filter: drop-shadow(0 0 20px rgba(0,200,255,0.3));
  }
  
  .tip-text {
    font-size: 28rpx;
    color: #8a9ac0;
    letter-spacing: 2rpx;
  }
  
  /* ====== 5. 订单卡片通用样式（移除左右边框，改用顶部标识）====== */
  .dingdan-card {
    margin: 20rpx 0; /* 左右由容器控制 */
    border-radius: 36rpx;
    padding: 28rpx 24rpx;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    border: 1rpx solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30rpx);
  }
  
  .dingdan-card:active {
    transform: scale(0.998);
    box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.8);
  }
  
  /* 平台订单 - 冷色调，顶部光效 */
  .pingtai-card {
    background: linear-gradient(145deg, rgba(18, 28, 48, 0.95), rgba(8, 18, 35, 0.98));
  }
  
  .pingtai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 4rpx;
    background: linear-gradient(90deg, transparent, #00c8ff, transparent);
    border-radius: 2rpx;
    opacity: 0.7;
  }
  
  /* 商家订单 - 暖色调，顶部光效 */
  .shangjia-card {
    background: linear-gradient(145deg, rgba(38, 18, 48, 0.95), rgba(25, 8, 35, 0.98));
  }
  
  .shangjia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 4rpx;
    background: linear-gradient(90deg, transparent, #ff4d6d, transparent);
    border-radius: 2rpx;
    opacity: 0.7;
  }
  
  /* 卡片顶部 */
  .card-top {
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
    padding-bottom: 16rpx;
    border-bottom: 1rpx dashed rgba(255, 255, 255, 0.08);
  }
  
  .creat-time {
    font-size: 26rpx;
    color: #c0d0ff;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0,200,255,0.3);
  }
  
  .top-line {
    flex: 1;
    height: 1rpx;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 0 20rpx;
  }
  
  .pingtai-tag {
    font-size: 24rpx;
    color: #aac8ff;
    padding: 6rpx 18rpx;
    background: rgba(0,200,255,0.08);
    border-radius: 40rpx;
    border: 1rpx solid rgba(0,200,255,0.3);
    box-shadow: 0 0 10rpx rgba(0,200,255,0.2);
  }
  
  /* ====== 6. 指定单标识行（新设计）====== */
  .zhiding-row {
    display: flex;
    align-items: center;
    margin-bottom: 24rpx;
    padding: 12rpx 20rpx;
    background: rgba(255, 77, 109, 0.1);
    border-radius: 60rpx;
    border: 1rpx solid rgba(255, 77, 109, 0.3);
    box-shadow: 0 0 20rpx rgba(255, 77, 109, 0.2);
    backdrop-filter: blur(10rpx);
    gap: 12rpx;
  }
  
  .zhiding-icon {
    font-size: 28rpx;
    color: #ff4d6d;
    font-weight: 700;
    background: rgba(255, 77, 109, 0.2);
    padding: 4rpx 16rpx;
    border-radius: 40rpx;
    text-shadow: 0 0 8px #ff4d6d;
    letter-spacing: 2rpx;
  }
  
  .zhiding-avatar {
    width: 48rpx;
    height: 48rpx;
    border-radius: 50%;
    border: 2rpx solid #ff4d6d;
    box-shadow: 0 0 15rpx #ff4d6d;
    object-fit: cover;
  }
  
  .zhiding-nicheng {
    font-size: 26rpx;
    color: #ffc0d0;
    font-weight: 500;
    max-width: 160rpx;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .zhiding-uid {
    font-size: 24rpx;
    color: #ff9aab;
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
  }
  
  /* ====== 7. 平台订单内容区 ====== */
  .card-content {
    display: flex;
    margin-bottom: 24rpx;
    align-items: center;
  }
  
  .neirong-tupian {
    width: 140rpx;
    height: 140rpx;
    border-radius: 50%;
    margin-right: 24rpx;
    flex-shrink: 0;
    box-shadow: 0 10rpx 30rpx rgba(0,200,255,0.3);
    border: 2rpx solid #00c8ff;
    object-fit: cover;
  }
  
  .jieshao-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140rpx;
    padding: 8rpx 0;
  }
  
  .jieshao-label {
    font-size: 26rpx;
    color: #d0e0ff;
    font-weight: 600;
    margin-bottom: 6rpx;
    text-shadow: 0 0 5px rgba(0,200,255,0.3);
  }
  
  .jieshao-text {
    font-size: 26rpx;
    color: #b0c8f0;
    line-height: 1.4;
    word-break: break-word;
  }
  
  .jieshao-ellipsis .jieshao-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* ====== 8. 商家订单特有样式 ====== */
  .shangjia-info {
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
  }
  
  .shangjia-touxiang {
    width: 90rpx;
    height: 90rpx;
    border-radius: 50%;
    margin-right: 20rpx;
    border: 2rpx solid #ff4d6d;
    box-shadow: 0 6rpx 18rpx rgba(255, 77, 109, 0.5);
    object-fit: cover;
  }
  
  .shangjia-nicheng {
    font-size: 30rpx;
    color: #ffb3c6;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 77, 109, 0.4);
  }
  
  .shangjia-jieshao,
  .shangjia-beizhu {
    margin-bottom: 16rpx;
    padding: 14rpx 18rpx;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24rpx;
    border: 1rpx solid rgba(255, 77, 109, 0.2);
  }
  
  .shangjia-jieshao .jieshao-label,
  .shangjia-beizhu .beizhu-label {
    display: block;
    margin-bottom: 6rpx;
    font-size: 24rpx;
    color: #ff9aab;
  }
  
  .shangjia-jieshao .jieshao-text,
  .shangjia-beizhu .beizhu-text {
    font-size: 24rpx;
    color: #e0c8ff;
    line-height: 1.4;
  }
  
  .shangjia-jieshao.jieshao-ellipsis .jieshao-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .shangjia-beizhu.beizhu-ellipsis .beizhu-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* ====== 9. 通用备注区 ====== */
  .beizhu-box {
    margin-bottom: 20rpx;
    padding: 14rpx 18rpx;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24rpx;
    border: 1rpx solid rgba(0,200,255,0.2);
  }
  
  .beizhu-label {
    font-size: 24rpx;
    color: #80d0ff;
    font-weight: 600;
    margin-bottom: 6rpx;
    display: block;
  }
  
  .beizhu-text {
    font-size: 24rpx;
    color: #b0c8f0;
    line-height: 1.4;
  }
  
  .beizhu-ellipsis .beizhu-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .view-more {
    display: block;
    font-size: 22rpx;
    color: #00c8ff;
    margin-top: 6rpx;
    text-align: right;
    opacity: 0.8;
    text-shadow: 0 0 5px #00c8ff;
  }
  
  /* ====== 10. 卡片底部：分佣 + 按钮 ====== */
  .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20rpx;
    border-top: 1rpx solid rgba(255, 255, 255, 0.06);
  }
  
  /* 分佣容器（图标占位，用户可自定义） */
  .fenyong-box {
    display: flex;
    align-items: baseline;
    background: rgba(0, 0, 0, 0.3);
    padding: 8rpx 20rpx;
    border-radius: 60rpx;
    border: 1rpx solid rgba(255, 215, 0, 0.3);
  }
  
  /* 分佣图标占位符，用户可替换为自己图标 */
  .fenyong-icon {
    font-size: 32rpx;
    margin-right: 10rpx;
    filter: drop-shadow(0 0 8px gold);
  }
  
  .fenyong-text {
    font-size: 24rpx;
    color: #c0b0a0;
    margin-right: 8rpx;
  }
  
  .fenyong-price {
    font-size: 44rpx;
    color: #ffd700;
    font-weight: 800;
    margin-right: 4rpx;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
  
  .fenyong-unit {
    font-size: 24rpx;
    color: #a0a0b0;
  }
  
  /* ====== 11. 机甲风格抢单按钮（对称优化）====== */
  .qiangdan-btn {
    position: relative;
    padding: 16rpx 44rpx;
    border: none;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 1;
    /* 多边形形状，保证上下对称 */
    clip-path: polygon(10% 0%, 90% 0%, 100% 25%, 100% 75%, 90% 100%, 10% 100%, 0% 75%, 0% 25%);
  }
  
  /* 按钮统一基础样式，无上下不对称阴影 */
  .mecha-btn {
    background: linear-gradient(145deg, #2a3050, #181e38);
    box-shadow: 
      0 8rpx 0 #0a0a1a,
      0 12rpx 28rpx rgba(0, 0, 0, 0.7),
      inset 0 2rpx 6rpx rgba(255, 255, 255, 0.2),
      inset 0 -2rpx 4rpx rgba(0, 0, 0, 0.3);
    border: 1rpx solid rgba(255, 255, 255, 0.1);
  }
  
  /* 平台按钮冷光 */
  .pingtai-btn.mecha-btn {
    background: linear-gradient(145deg, #1a2a48, #0e1a30);
    box-shadow: 
      0 8rpx 0 #0a1525,
      0 12rpx 28rpx rgba(0, 0, 0, 0.7),
      inset 0 2rpx 6rpx #00c8ff,
      inset 0 -2rpx 4rpx rgba(0, 0, 0, 0.3);
  }
  
  /* 商家按钮暖光 */
  .shangjia-btn.mecha-btn {
    background: linear-gradient(145deg, #3a2048, #251030);
    box-shadow: 
      0 8rpx 0 #2a0a1a,
      0 12rpx 28rpx rgba(0, 0, 0, 0.7),
      inset 0 2rpx 6rpx #ff4d6d,
      inset 0 -2rpx 4rpx rgba(0, 0, 0, 0.3);
  }
  
  .btn-text {
    font-size: 32rpx;
    color: #fff;
    font-weight: 700;
    letter-spacing: 3rpx;
    position: relative;
    z-index: 3;
    text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.7), 0 0 15rpx currentColor;
  }
  
  /* 扫光效果 */
  .btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: btn-shimmer 2.8s infinite linear;
    z-index: 2;
  }
  
  /* 内发光，只在悬停/按下时出现，保证对称 */
  .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
  }
  
  .mecha-btn:hover .btn-glow,
  .mecha-btn:active .btn-glow {
    opacity: 0.3;
  }
  
  /* 按下效果，保持对称 */
  .mecha-btn:active {
    transform: translateY(4rpx) scale(0.98);
    box-shadow: 
      0 4rpx 0 #0a0a1a,
      0 8rpx 20rpx rgba(0, 0, 0, 0.7),
      inset 0 2rpx 6rpx rgba(255, 255, 255, 0.2),
      inset 0 -2rpx 4rpx rgba(0, 0, 0, 0.3);
  }
  
  /* 机械纹理，保持视觉丰富但不过分 */
  .mecha-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
  }
  
  @keyframes btn-shimmer {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
  }
  
  /* ====== 12. 加载状态 ====== */
  .loading-more,
  .no-more {
    padding: 40rpx 0;
    text-align: center;
  }
  
  .loading-text {
    font-size: 26rpx;
    color: #6a9cff;
    text-shadow: 0 0 10px rgba(0,200,255,0.5);
    animation: pulse 1.5s infinite;
  }
  
  .no-more-text {
    font-size: 26rpx;
    color: #4a5a8a;
    letter-spacing: 3rpx;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
  }
  
  .loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 18, 0.95);
    backdrop-filter: blur(30rpx);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .loading-spinner {
    width: 90rpx;
    height: 90rpx;
    border: 6rpx solid rgba(0,200,255,0.2);
    border-top: 6rpx solid #00c8ff;
    border-right: 6rpx solid #ff4d6d;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin-bottom: 30rpx;
    box-shadow: 0 0 50rpx #00c8ff;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .loading-mask-text {
    font-size: 30rpx;
    color: #c0d0ff;
    text-shadow: 0 0 15px rgba(0,200,255,0.7);
    letter-spacing: 4rpx;
  }





/* 🆕 标签筛选区 */
.biaoqian-quyu {
    padding: 12rpx 20rpx;
    background: rgba(18, 22, 38, 0.7);
    backdrop-filter: blur(10rpx);
  }
  .biaoqian-scroll {
    white-space: nowrap;
    height: 80rpx;
  }
  .biaoqian-container {
    display: inline-flex;
    gap: 16rpx;
    padding-right: 20rpx;
  }
  .biaoqian-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12rpx;
    border-radius: 20rpx;
    background: rgba(255,255,255,0.05);
    transition: all 0.2s;
  }
  .biaoqian-active {
    background: rgba(0,200,255,0.2);
    border: 1rpx solid #00c8ff;
  }
  .quanbu-text {
    font-size: 26rpx;
    color: #ccc;
    padding: 0 12rpx;
  }
  
  /* 订单卡片内标签滚动 */
  .xuqiu-biaoqian-area {
    display: flex;
    align-items: center;
    margin-top: 16rpx;
    padding: 8rpx 0;
  }
  .xuqiu-label {
    font-size: 24rpx;
    color: #80d0ff;
    margin-right: 12rpx;
    flex-shrink: 0;
  }
  .xuqiu-biaoqian-scroll {
    flex: 1;
    white-space: nowrap;
  }
  .biaoqian-inline-scroll {
    flex: 1;
    white-space: nowrap;
    margin-left: 10rpx;
  }
  /* 调整指定打手行内的标签滚动 */
  .zhiding-row .biaoqian-inline-scroll {
    margin-left: auto;
    max-width: 50%;
  }
