/* 移动端头部 */
.mobile-header {
    background: #fff;
    padding: 15px;
  
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 50px;
}

.mobile-header .back-btn {
    position: absolute;
    left: 15px;
    color: #333;
    font-size: 18px;
}

.mobile-header h1 {
    font-size: 18px;
    margin: 0;
    flex: 1;
    text-align: center;
}

.back-btn {
    font-size: 20px;
    color: var(--text-color);
    text-decoration: none;
    padding: 5px;
}

/* PC端头部 */
.pc-header {
    margin-top: 15px;
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-header h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

/* 订单搜索 */
.order-search {
    background: #fff;
   
    border-radius: var(--radius);
  
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-search .layui-input {
    border-radius: var(--radius);
}

.order-search .layui-btn {
    background: var(--primary-color);
    border-radius: var(--radius);
}

/* 优惠券标签页 */
.coupon-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
}

.coupon-tab {
    padding: 12px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.coupon-tab.active {
    color: #d95517;
    font-weight: 500;
}

.coupon-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d95517;
}

/* 订单列表样式 */
.order-list {
    margin-top: 15px;
}

.order-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.order-status {
    color: var(--primary-color);
    font-weight: 500;
}

.order-number {
    color: #999;
    font-size: 13px;
}

.order-content {
    padding: 15px;
}

.product-list {
    margin: -10px 0;
}

.product-item {
    display: flex;
    padding: 10px 0;
    gap: 12px;
}

.product-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-spec {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.product-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
}

.product-quantity {
    color: #999;
    font-size: 13px;
}

.order-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.order-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.order-count {
    color: #666;
    font-size: 13px;
}

.order-total {
    color: #666;
    font-size: 14px;
}

.order-total .price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    margin-left: 5px;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.order-btn {
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-detail {
    text-decoration: none;
}

.detail-section {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.btn-cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-pay {
    background: var(--primary-color);
    border: none;
    color: #fff;
}

.btn-pay:hover {
    background: #c14915;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .order-item {
        margin-bottom: 10px;
    }
    .btn-pay {
        background: var(--primary-color);
        border: none;
        color: #fff;
    }
    .order-header {
        padding: 12px;
    }
    
    .order-meta {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .order-number {
        font-size: 12px;
    }
    
    .order-content {
        padding: 12px;
    }
    
    .product-img {
        width: 70px;
        height: 70px;
    }
    
    .product-title {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .product-spec {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-quantity {
        font-size: 12px;
    }
    
    .order-footer {
        padding: 12px;
    }
    
    .order-summary {
        margin-bottom: 10px;
        gap: 12px;
    }
    
    .order-count {
        font-size: 12px;
    }
    
    .order-total {
        font-size: 13px;
    }
    
    .order-total .price {
        font-size: 16px;
    }
    
    .order-btn {
        padding: 6px 15px;
        font-size: 13px;
    }

    .col-md-9 {
        padding-top: 50px;
    }

    .order-list {
        margin-top:50px;
    }
    

    .coupon-tabs {
        padding: 0;
        gap: 0;
        margin: 0 -10px 15px -10px;
        justify-content: space-between;
        border-bottom: 1px solid #f0f0f0;
        
        position: fixed;
        z-index: 1;
        width: 100%;
    }
    
    .coupon-tab {
        padding: 10px 0;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }
}

/* PC端分页 */
.pagination-pc {
    justify-content: flex-end;
    margin-top: 30px;
}

.pagination .page-link {
    color: #666;
    border-color: #ddd;
}

.pagination .page-item.active .page-link {
    background-color: #d95517;
    border-color: #d95517;
    color: #fff;
}

.pagination .page-link:hover {
    color: #d95517;
    background-color: #fff;
    border-color: #d95517;
}

.pagination .page-item.active .page-link:hover {
    color: #fff;
}

    /* 加载更多按钮样式优化 */
    .load-more {
        padding: 10px;
    }
    
    .load-more .btn {
        border-radius: 4px;
        padding: 8px 0;
        font-size: 14px;
        border: none;
        background: #f5f5f5;
        color: #666;
    }
    
    .load-more .btn:hover {
        background: #eee;
        color: #d95517;
    }
    
    .section-title {
        padding: 12px 15px;
    }

    .section-content {
        padding: 15px;
    }
    