/* 订单页面样式 */

/* 页面容器 */
.order-page-container {
    background-color: #f8f8f8;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* 顶部导航 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f3f3f3;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    width: 24px;
}

.close-icon, .more-icon {
    font-size: 18px;
    color: #333;
}

.header-center {
    text-align: center;
}

.header-center h1 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 2px;
}

.site-url {
    font-size: 12px;
    color: #999;
}

/* 订单状态选项卡 */
.order-tabs {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    padding: 0 15px;
}

.tab-item {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    text-align: center;
    flex: 1;
}

.tab-item.active {
    color: #34c759;
    font-weight: 500;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #34c759;
    border-radius: 1px;
}

/* 订单列表 */
.order-list {
    padding: 0;
}

.order-item {
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 0;
    overflow: hidden;
  margin: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 12px;
}

.order-number {
    color: #666;
}

.order-status {
    color: #34c759;
    font-weight: 500;
}

.order-status.completed {
    color: #34c759;
}
.order-status.unpay {
    color: #797b7a;
}
.order-status.back {
    color: #fb5454;
}
.order-status.default {
    color: #5863ec
}

.order-content {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.service-image {
    width: 70px;
    height: 70px;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    flex: 1;
    position: relative;
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #333;
    position: relative;
}

.service-quantity {
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.technician-info, .appointment-time {
    font-size: 12px;
    color: #999;
    margin: 3px 0;
}

.price-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 5px;
    float:left;
}

.total-label {
    font-size: 12px;
    color: #666;
}

.price {
    font-size: 14px;
    color: #ff3b30;
    font-weight: 600;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
}

.delete-btn {
    color: #666;
}

.review-btn {
    color: #666;
}

.repeat-btn {
    color: #fff;
    background-color: #34c759;
    border-color: #34c759;
}

.pay-btn{
    color: #fff;
    background-color: #34c759;
    border-color: #34c759;
}

/* 底部导航栏 */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 8px 0;
    z-index: 100;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
}

.nav-link i {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-link.active {
    color: #34c759;
}