/* ---------- 页面基础 ---------- */
.page {
    padding: 40px 0 80px;
    background: #FFFFFF;
    font-family: 'Jost', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0;
}

.order-page {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    margin-left: auto;
}

/* ==================== 左栏：个人中心 ==================== */
.order-side {
    width: 260px;
    height: 358px;
    flex: none;
    background: #FFFFFF;
    border-radius: 7.17px / 8px;
    box-shadow: inset 0 0 0 1px #D3D3D3;
    overflow: hidden;
}

.order-side .side-head {
    display: flex;
    align-items: center;
    height: 60px;
    padding-left: 25px;
    background: #BCA085;
    border-radius: 7.17px 7.17px 0 0 / 8px 8px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 28.9px;
    color: #FFFFFF;
}

.order-side .side-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 13px 15px 0;
    border-top: 1px solid #DDDDDD;
}

.order-side .side-item {
    display: flex;
    align-items: center;
    height: 36px;
    padding-left: 15px;
    font-size: 16px;
    line-height: 23.12px;
    color: #333333;
    text-decoration: none;
}

.order-side .side-item:hover {
    background: #F2F2F2;
}

.order-side .side-item--active,
.order-side .side-item--active:hover {
    background: #F2F2F2;
    color: #BCA085;
}

/* ==================== 右栏：订单列表 ==================== */
.order-main {
    display: flex;
    flex-direction: column;
    max-width: 1110px;
    width: 100%;
    flex: none;
    padding: 24px 19px 30px;
    background: #FFFFFF;
    border: 1px solid #D3D3D3;
    border-radius: 6.88px / 7.74px;
    box-sizing: border-box;
}

/* ---------- 标题 + 搜索 ---------- */
.order-main .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-main .panel-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 26.01px;
    color: #262525;
}

.order-main .order-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 260px;
    height: 34px;
    padding: 0 10px 0 12px;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    box-sizing: border-box;
}

.order-main .search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    line-height: 18.8px;
    color: #333333;
}

.order-main .search-input::placeholder {
    color: #B3B3B3;
}

.order-main .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: none;
    cursor: pointer;
}

.order-main .search-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* ---------- 订单卡片 ---------- */
.order-main .item-card {
    margin-top: 16px;
    border: 1px solid #EBEBEB;
}

/* 状态栏：未评论 / 已评论 */
.order-main .order-status-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 42px;
    padding: 0 14px;
    background: #FFFFFF;
    border-bottom: 1px solid #EBEBEB;
    box-sizing: border-box;
    margin-top: 18px;
}

.order-main .status-tab {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 14px;
    line-height: 20.23px;
    color: #666666;
    cursor: pointer;
}

.order-main .status-tab:hover {
    color: #BCA085;
}

.order-main .status-tab--active {
    color: #BCA085;
    font-weight: 700;
}

.order-main .status-tab--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #BCA085;
}

.order-main .color-9 {
    color: #999999;
}

.order-main .text-overflow {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 表头 */
.order-main .item-card-title {
    display: flex;
    align-items: center;
    height: 36px;
    background: #F6F6F6;
    border-bottom: 1px solid #E5E5E5;
    font-size: 14px;
    line-height: 20.23px;
    color: #333333;
}

.order-main .item-card-title > span {
    flex: none;
    padding: 0 6px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}

.order-main .item-card-title > span:nth-child(1) {
    flex: 1;
    min-width: 0;
    padding-left: 14px;
    text-align: left;
}

.order-main .item-card-title > span:nth-child(2) { width: 78px; }
.order-main .item-card-title > span:nth-child(3) { width: 70px; }
.order-main .item-card-title > span:nth-child(4) { width: 84px; }
.order-main .item-card-title > span:nth-child(5) { width: 122px; }
.order-main .item-card-title > span:nth-child(6) { width: 90px; }

/* 列表 */
.order-main .item-card-content,
.order-main .order-list,
.order-main .order {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-main .order + .order {
    border-top: 1px solid #EBEBEB;
}

/* 订单信息条 */
.order-main .order-id {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    background: #F6F6F6;
    border-bottom: 1px solid #EBEBEB;
    font-size: 14px;
    line-height: 20.23px;
}

.order-main .order-id .ml-20 {
    margin-left: 20px;
}

/* 订单行 */
.order-main .order-item {
    display: flex;
    align-items: stretch;
}

/* 商品列 */
.order-main .order-item > .goods {
    flex: 1;
    min-width: 0;
}

.order-main .goods-information {
    display: flex;
    align-items: stretch;
}

.order-main .goods-information + .goods-information {
    border-top: 1px solid #F0F0F0;
}

.order-main .goods-cont {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    box-sizing: border-box;
}

.order-main .goods-cont > a {
    flex: none;
}

.order-main .goods-img {
    display: block;
    width: 130px;
    height: 130px;
    background: #F5F5F5;
    border: 1px solid #E1E1E1;
    /* border-radius: 8px; */
    /* overflow: hidden; */
    box-sizing: border-box;
}

.order-main .goods-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-main .goods-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.order-main .goods-title p {
    margin: 0;
    font-size: 16px;
    line-height: 20.23px;
    color: #333333;
}

.order-main .goods-title p > a {
    color: #333333;
    text-decoration: none;
}

.order-main .goods-title p.color-9 {
    font-size: 16px;
    line-height: 18.8px;
    color: #999999;
}

.order-main .goods-title i {
    font-style: italic;
}

.order-main .goods-price,
.order-main .goods-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 0 6px;
    box-sizing: border-box;
    text-align: center;
}

.order-main .goods-price {
    width: 78px;
    font-weight: 400;
    color: #f56c6c;
    font-size: 16px;
}

.order-main .goods-num {
    width: 70px;
    font-size: 16px;
}

/* 合并列：Full name / Actual payment / Action */
.order-main .order-item > div:nth-child(2),
.order-main .order-item > .actual-payment,
.order-main .order-item > .operate {
    box-sizing: border-box;
    border-left: 1px solid #EBEBEB;
}

.order-main .order-item > div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    padding: 12px 6px;
    text-align: center;
}

.order-main .actual-payment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 122px;
    padding: 12px 8px;
}

.order-main .actual-payment p {
    margin: 0;
    font-size: 12px;
    line-height: 17.34px;
    text-align: center;
}

.order-main .actual-payment p:first-child {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 20.23px;
    color: #333333;
}

.order-main .actual-payment .border-bottom {
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #EBEBEB;
}

/* 实付款列内的文本允许换行（列宽较窄） */
.order-main .actual-payment .text-overflow {
    white-space: normal;
    overflow-wrap: anywhere;
}

.order-main .operate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    padding: 12px 6px;
    gap: 6px;
}

.order-main .operate .el-button {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 20.23px;
    color: #CF9259;
    cursor: pointer;
}

.order-main .operate .el-button:hover {
    text-decoration: underline;
}

/* 空态 */
.order-main .order-empty {
    display: block;
    height: 50px;
    line-height: 120px;
    text-align: center;
    color: #999999;
}

/* ---------- 分页 ---------- */
.order-main .pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    margin-top: 26px;
}

.order-main .pager-arrow,
.order-main .pager-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    flex: none;
    padding: 0 4px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 23.12px;
    color: #666666;
    cursor: pointer;
}

.order-main .pager-arrow svg {
    display: block;
    width: 8px;
    height: 12px;
}

.order-main .pager-num--active {
    background: #BCA085;
    color: #FFFFFF;
}

.order-main .pager-arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
}


.order-main .item-card-title > span:nth-child(6){
    width: 110px;
}

@media screen and (max-width:768px){
    .order-side{
        width: 100%;
        height: unset;
        padding-bottom: 30px;
    }
    .order-page{
        flex-direction: column;
    }
    .order-main{
        padding-left: 0;
        padding-right: 0;
        border: 0;
        padding-top: 0;
    }
    .order-main > div:last-child{
        overflow-x: auto;
        
    }
    .order-main .item-card{
        width: 1110px;
    }
    .order-main .order-status-bar{
        padding-left: 0;
        padding-right: 0;
        position: sticky;
        left: 0;
    }

    .order-main .panel-head{
        flex-direction: column;
        align-items: flex-start;
        row-gap: 10px;
    }
    .order-main .goods-img{
        width: 80px;
        height: 80px;
    }
}