/* 页面基础样式 */
body {
    background-color: #141428;
    color: #fff;
    padding: 90px 15px 20px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

/* 顶部导航 */
.orders-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
}

.orders-header h1 {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 18px;
    margin: 0;
}

/* 订单类型切换 */
.order-tabs {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    height: 40px;
    background: #1a1a2e;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 15px;
    z-index: 90;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 8px 15px;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #40ffff;
    border-radius: 1px;
}

/* 订单列表 */
.orders-container {
    max-width: 480px;
    margin: 0 auto;
}

.order-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-type i {
    font-size: 16px;
}

/* 不同类型订单的图标颜色 */
.order-item.vip .order-type i {
    color: #ffd700;
}

.order-item.coins .order-type i {
    color: #ff9f43;
}

.order-item.agent .order-type i {
    color: #ff6b6b;
}

.order-status {
    font-size: 13px;
}

.order-status.success {
    color: #4cd964;
}

.order-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info .title {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-info .time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.order-price .amount {
    font-size: 18px;
    font-weight: bold;
    color: #ff4757;
}

/* 适配刘海屏 */
@supports (padding-top: env(safe-area-inset-top)) {
    .orders-header {
        padding-top: env(safe-area-inset-top);
        height: calc(50px + env(safe-area-inset-top));
    }
    
    body {
        padding-top: calc(90px + env(safe-area-inset-top));
    }
    
    .order-tabs {
        top: calc(50px + env(safe-area-inset-top));
    }
} 