/* 隐藏滚动条但保持滚动功能 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* 订单页面容器 */
.orders-container {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding-bottom: 20px;
}

/* 顶部导航 */
.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #f5f5f5;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.placeholder {
    width: 40px;
}

/* 订单状态筛选 */
.order-tabs {
    display: flex;
    background: #ffffff;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
}

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

.tab-item.active {
    color: #ff3366;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    border-radius: 2px;
}

/* 订单列表 */
.orders-list {
    padding: 12px 16px;
}

/* 订单卡片 */
.order-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.order-no-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-no-label {
    font-size: 11px;
    color: #bbb;
}

.order-no-value {
    font-size: 13px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.order-status {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
}

.order-status.pending {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
}

.order-status.paid {
    color: #07C160;
    background: rgba(7, 193, 96, 0.1);
}

.order-status.cancelled {
    color: #999;
    background: #f5f5f5;
}

.order-body {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.order-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.08);
}

.order-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.order-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.order-times {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-label {
    font-size: 12px;
    color: #bbb;
}

.time-value {
    font-size: 12px;
    color: #999;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px dashed #f0f0f0;
}

.order-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 12px;
    color: #bbb;
}

.price-value {
    font-size: 20px;
    font-weight: 800;
    color: #ff3366;
}

.order-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-outline {
    background: #f5f5f5;
    color: #666;
}

.btn-outline:hover {
    background: #e8e8e8;
}

.btn-primary {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e62e5c 0%, #e6608d 100%);
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.empty-icon {
    margin-bottom: 16px;
}

.empty-text {
    font-size: 15px;
    color: #999;
    margin-bottom: 20px;
}

.empty-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* 确认对话框样式 - 与删除收藏/观看历史保持一致 */
.delete-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.delete-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.delete-dialog-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    width: 280px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dialogShow 0.3s ease;
}

@keyframes dialogShow {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.delete-dialog-icon {
    margin-bottom: 16px;
}

.delete-dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.delete-dialog-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.delete-dialog-buttons {
    display: flex;
    gap: 12px;
}

.delete-dialog-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.delete-dialog-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.delete-dialog-btn-cancel:hover {
    background: #e8e8e8;
}

.delete-dialog-btn-confirm {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    color: #ffffff;
}

.delete-dialog-btn-confirm:hover {
    background: linear-gradient(135deg, #e62e5c 0%, #e6608d 100%);
}

/* 响应式 */
@media (max-width: 375px) {
    .order-body {
        gap: 10px;
    }

    .order-icon {
        width: 50px;
        height: 50px;
    }

    .order-title {
        font-size: 14px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
