/* 我的订单页面样式 */
.orders-header {
    text-align: center;
    margin-bottom: 30px;
}

.orders-header h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.orders-header p {
    color: #666;
    font-size: 14px;
}

.order-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.order-no {
    font-size: 14px;
    color: #666;
}

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

.status-pending {
    background: #fff7e6;
    color: #fa8c16;
}

.status-shipped {
    background: #e6f7ff;
    color: #1890ff;
}

.status-completed {
    background: #f6ffed;
    color: #52c41a;
}

.order-body {
    padding: 20px;
}

.product-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.product-info .price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-info .price::before {
    /*content: '¥';*/
    font-size: 14px;
}

.receiver-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.receiver-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.receiver-info strong {
    color: #666;
}

.express-info {
    padding: 15px;
    background: #e6f7ff;
    border-radius: 6px;
    border-left: 3px solid #1890ff;
}

.express-info p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
}

.express-info strong {
    color: #666;
}

.order-footer {
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
    text-align: right;
}

.order-time {
    font-size: 13px;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-edit {
    padding: 6px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.btn-edit:hover {
    opacity: 0.9;
}

/* 去支付按钮样式 */
.btn-pay {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(238, 90, 111, 0.3);
}

.btn-pay:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.btn-pay:active {
    transform: translateY(0);
}

/* 编辑模态框 */
.edit-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.edit-modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.edit-modal-header h3 {
    margin: 0;
    color: #333;
}

.edit-form-group {
    margin-bottom: 20px;
}

.edit-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.edit-form-group input,
.edit-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.edit-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-save {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn-save:hover {
    opacity: 0.9;
}

.btn-cancel {
    width: 100%;
    padding: 12px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-cancel:hover {
    opacity: 0.9;
}

/* 筛选面板 */
.filter-panel {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    user-select: none;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.3s;
}
.filter-toggle:hover {
    background: #e8f4ff;
}
.filter-toggle.active {
    background: #e8f4ff;
    border-bottom-color: #1890ff;
}
.filter-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.filter-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    color: #666;
}
.filter-toggle.active .filter-icon {
    transform: rotate(180deg);
}
.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.filter-content.active {
    max-height: 400px;
}
.filter-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-row:last-of-type {
    border-bottom: none;
}
.filter-row label {
    font-size: 14px;
    color: #666;
    min-width: 90px;
}
.date-input-wrapper {
    flex: 1;
    cursor: pointer;
}
.date-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}
.date-input:focus,
.status-select:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}
.status-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}
.filter-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}
.btn-filter-reset,
.btn-filter-apply {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-filter-reset {
    background: #e0e0e0;
    color: #333;
}
.btn-filter-reset:hover {
    background: #d0d0d0;
}
.btn-filter-apply {
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: white;
}
.btn-filter-apply:hover {
    opacity: 0.9;
}
