/* My Orders Page Styles */

/* Main container styles */
.order-center-container {
    display: flex;
    gap: 25px;
    margin: 25px 0 50px;
    background-color: #fff;
}

/* 右侧内容区样式覆盖 */
.user-content.order-content {
    padding: 0;
}

/* Order tabs for status filtering */
.order-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 0 25px;
}

.tab-item {
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    position: relative;
    transition: color 0.3s;
}

.tab-item:hover {
    color: #00823C;
}

.tab-item.active {
    color: #00823C;
    font-weight: 500;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00823C;
}

/* Order search */
.order-search {
    display: flex;
    margin-bottom: 25px;
    gap: 12px;
    padding: 0 25px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #00823C;
}

.search-btn {
    background-color: #00823C;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #006e32;
}

/* Order list container */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 25px 25px;
}

/* Individual order item */
.order-item {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f9f9f9;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.order-status {
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* Status colors */
.pending-payment {
    color: #e68a00;
    background-color: rgba(230, 138, 0, 0.1);
}

.pending-shipping {
    color: #00823C;
    background-color: rgba(0, 130, 60, 0.1);
}

.pending-receipt {
    color: #8957e5;
    background-color: rgba(137, 87, 229, 0.1);
}

.completed {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.cancelled {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
}

.refund {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Order products */
.order-products {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.product-item:not(:last-child) {
    border-bottom: 1px dashed #eaeaea;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.product-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-name {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

/* 优化编号和规格显示 */
.product-spec {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-right: 8px;
}

.product-spec:first-of-type {
    color: #00823C;
    font-weight: 500;
    border: 1px solid rgba(0, 130, 60, 0.2);
    background-color: rgba(0, 130, 60, 0.05);
}

.product-spec:last-of-type {
    color: #333;
    font-weight: 500;
    border: 1px solid rgba(108, 117, 125, 0.2);
    background-color: rgba(108, 117, 125, 0.05);
}

.product-price {
    color: #f85e5e;
    font-weight: 500;
    margin: 0 25px;
    white-space: nowrap;
    width: 80px;
    text-align: right;
}

.product-quantity {
    width: 40px;
    text-align: right;
    color: #666;
}

/* Order footer */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fafafa;
}

/* 订单支付信息样式优化 */
.order-payment {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #00823C;
}

.payment-method {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.payment-method span {
    color: #333;
    font-weight: 500;
    margin-left: 5px;
    background-color: rgba(0, 130, 60, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.monthly-payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2px;
    font-size: 13px;
}

.monthly-term {
    background-color: #f1f8ff;
    padding: 3px 10px;
    border-radius: 4px;
    color: #00823C !important;
    font-weight: 500;
    border: 1px solid rgba(0, 130, 60, 0.15);
}

.settlement-date {
    color: #666;
    background-color: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
}

.order-total {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e8e8e8;
}

.order-total div {
    white-space: nowrap;
}

.price {
    color: #f85e5e;
    font-weight: 600;
    font-size: 18px;
    flex: 1;
}

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

/* Button styles */
.btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: #00823C;
    color: #fff;
}

.btn-primary:hover {
    background-color: #006e32;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    border-color: #00823C;
    color: #00823C;
}

.cancel-btn:hover {
    border-color: #f85e5e;
    color: #f85e5e;
}

.pay-btn {
    background-color: #f85e5e;
}

.pay-btn:hover {
    background-color: #e64c4c;
}

.receive-btn {
    background-color: #8957e5;
}

.receive-btn:hover {
    background-color: #7642d1;
}

.aftersale-btn {
    background-color: #6c757d;
}

.aftersale-btn:hover {
    background-color: #5a6268;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
    padding-bottom: 25px;
}

.page-btn {
    min-width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not([disabled]) {
    border-color: #00823C;
    color: #00823C;
}

.page-btn.active {
    background-color: #00823C;
    color: white;
    border-color: #00823C;
}

.page-btn[disabled] {
    cursor: not-allowed;
    color: #ccc;
}

.page-ellipsis {
    margin: 0 5px;
}

.page-info {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

.page-jump-input {
    width: 50px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin: 0 5px;
}

.page-jump-btn {
    padding: 0 15px;
    height: 35px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-jump-btn:hover {
    border-color: #00823C;
    color: #00823C;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: all 0.3s;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Payment modal styles */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #00823C;
}

.payment-option.active {
    border-color: #00823C;
    background-color: rgba(0, 130, 60, 0.05);
}

.payment-option-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-option-icon img {
    max-width: 100%;
    max-height: 100%;
}

.payment-option-info {
    flex: 1;
}

.payment-option-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.payment-option-desc {
    font-size: 13px;
    color: #666;
}

.payment-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s;
}

.payment-option.active .payment-option-radio {
    border-color: #00823C;
}

.payment-option.active .payment-option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00823C;
}

/* QR Code modal styles */
.qrcode-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.qrcode-container {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.qrcode-container img {
    width: 100%;
    height: 100%;
}

.qrcode-tip {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.qrcode-amount {
    font-size: 20px;
    font-weight: 600;
    color: #f85e5e;
    margin-bottom: 20px;
}

.qrcode-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.qrcode-timer i {
    font-size: 16px;
    color: #999;
}

/* Cancel order modal styles */
.cancel-reason-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.cancel-reason-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-reason-item:hover {
    border-color: #00823C;
}

.cancel-reason-item.active {
    border-color: #00823C;
    background-color: rgba(0, 130, 60, 0.05);
}

.cancel-reason-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
}

.cancel-reason-item.active .cancel-reason-radio {
    border-color: #00823C;
}

.cancel-reason-item.active .cancel-reason-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00823C;
}

.cancel-reason-text {
    flex: 1;
    color: #333;
}

.cancel-reason-other {
    margin-top: 10px;
}

.cancel-reason-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    margin-top: 10px;
    font-family: inherit;
    font-size: 14px;
}

.cancel-reason-textarea:focus {
    outline: none;
    border-color: #00823C;
}

/* Logistics tracking modal styles */
.logistics-timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.logistics-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #eaeaea;
}

.logistics-item {
    position: relative;
    margin-bottom: 25px;
}

.logistics-item:last-child {
    margin-bottom: 0;
}

.logistics-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ddd;
    z-index: 1;
}

.logistics-item:first-child .logistics-dot {
    background-color: #00823C;
    border-color: #00823C;
}

.logistics-content {
    padding-bottom: 5px;
}

.logistics-time {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.logistics-info {
    font-size: 14px;
    color: #333;
}

.logistics-item:first-child .logistics-info {
    font-weight: 500;
    color: #00823C;
}

.logistics-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logistics-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.logistics-icon i {
    font-size: 20px;
    color: #00823C;
}

.logistics-company {
    flex: 1;
}

.logistics-company-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.logistics-tracking-number {
    font-size: 13px;
    color: #666;
}

/* Responsive styles */
@media (max-width: 992px) {
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .product-item {
        flex-wrap: wrap;
    }
    
    .product-info {
        width: calc(100% - 95px);
    }
    
    .product-price, .product-quantity {
        margin-top: 10px;
        margin-left: 95px;
    }
    
    .product-price {
        text-align: left;
    }
    
    .order-actions {
        flex-wrap: wrap;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .order-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .tab-item {
        padding: 12px 15px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .order-search {
        flex-direction: column;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-status {
        align-self: flex-start;
    }
    
    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .order-actions {
        justify-content: flex-start;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .payment-option {
        padding: 10px;
    }
} 

.product-spec-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
} 