/* ========================================
   订单详情页面 - 现代化设计
   ======================================== */

/* CSS 变量定义 */
:root {
    --primary-color: #919191;
    --primary-hover: #a0a0a0;
    --success-color: #ff0000;
    --warning-color: #f59e0b;
    --danger-color: #d01f1f;
    --info-color: #4ab2ff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-hover: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.order-page-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}



/* 面包屑导航 */
.order-breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.order-breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.order-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.order-breadcrumb-item:hover {
    color: var(--primary-color);
}

.order-breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.order-breadcrumb-separator {
    color: var(--text-muted);
    font-size: 12px;
}

/* 订单视图容器 */
.order-view-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
}

/* 主容器 */
.order-detail-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: order-slideUp 0.5s ease-out;
}

@keyframes order-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面标题 */
.order-page-header {
    background: linear-gradient(135deg, #f9f9f9 0%, #fefefe 100%);
    padding: 15px 40px;
    color: #514d4d;
}

.order-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.order-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.order-page-title i {
    font-size: 32px;
}

.order-number-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.order-badge-label {
    font-size: 14px;
    opacity: 0.9;
}

.order-badge-value {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* 订单状态卡片 */
.order-status-section {
    padding: 10px;
    /* background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); */
    border-bottom: 1px solid var(--border-color);
}

.order-status-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 9px 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    /* box-shadow: var(--shadow-md); */
}

.order-status-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9e9e9 0%, #ffffff 100%);
    flex-shrink: 0;
}

.order-status-icon i {
    font-size: 36px;
    color: white;
}

.order-status-icon .order-status-pending {
    color: #fb9900;
}

.order-status-icon .order-status-waiting {
    color: #f59e0b;
}

.order-status-icon .order-status-processing {
    color: #3b82f6;
}

.order-status-icon .order-status-completed {
    color: #10b981;
}

.order-status-icon .order-status-refunded {
    color: #ec4899;
}

.order-status-info {
    flex: 1;
}

.order-status-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.order-status-text {
    font-size: 24px;
    font-weight: 700;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 20px;
    border-radius: 5px;
    font-size: 14px;
    /* font-weight: 600; */
}

.order-status-badge.order-status-pending {
    /* background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); */
    color: #9c9c9c;
    background-color: #f4f4f4;
}

.order-status-badge.order-status-waiting {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #9a3412;
}

.order-status-badge.order-status-processing {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.order-status-badge.order-status-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.order-status-badge.order-status-refunded {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
}

.order-status-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 信息区块 */
.order-info-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
}

.order-info-section:last-child {
    border-bottom: none;
}

.order-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.order-section-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.order-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* 信息网格 */
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.order-info-item {
    padding: 15px 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition);
}

.order-info-item:hover {
    /* border-color: var(--primary-color); */
    /* box-shadow: var(--shadow-md); */
    /* transform: translateY(-2px); */
}

.order-info-item.order-featured {
    grid-column: 1 / -1;
    /* background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); */
}

.order-info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-info-value i {
    color: var(--primary-color);
    font-size: 16px;
}

.order-info-value.order-price {
    color: var(--danger-color);
    font-size: 18px;
    font-weight: 700;
}

.order-info-value.order-price-total {
    color: #dc2626;
    font-size: 24px;
    font-weight: 700;
}

.order-product-link {
    color: #0087ec;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.order-product-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.order-product-link:hover {
    color: var(--primary-hover);
}

.order-product-link:hover::after {
    width: 100%;
}


/* 收件地址卡片 */
.order-address-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    /* border-left: 4px solid var(--warning-color); */
}

.order-address-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.order-address-icon i {
    font-size: 28px;
    color: var(--warning-color);
}

.order-address-details {
    flex: 1;
}

.order-address-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.order-address-phone,
.order-address-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.order-address-phone i,
.order-address-location i {
    color: var(--warning-color);
}

/* 自定义字段 */
.order-custom-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
}

.order-custom-field-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    /* border: 1px solid var(--info-color); */
    transition: var(--transition);
}

.order-custom-field-item:hover {
    /* box-shadow: var(--shadow-md); */
    /* transform: translateX(4px); */
}

.order-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.order-field-label i {
    color: var(--info-color);
}

.order-field-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--info-color);
    margin-bottom: 4px;
}

.order-field-info {
    font-size: 13px;
    color: var(--text-muted);
}

/* 物流信息卡片 */
.order-express-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.order-express-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.order-express-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.order-express-details {
    flex: 1;
}

.order-express-company {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.order-express-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.order-tracking-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

/* 备注卡片 */
.order-remark-card {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    /* border-left: 4px solid #ffffff; */
}

.order-remark-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

/* 时间轴 */
.order-timeline-container {
    position: relative;
    padding-left: 41px;
}

.order-timeline-container::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #6d6d6d 0%, #ffb702 100%);
}

.order-timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.order-timeline-item:last-child {
    padding-bottom: 0;
}

.order-timeline-dot {
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5722;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    animation: order-pulse 2s infinite;
}

.order-timeline-item:not(:first-child) .order-timeline-dot {
    background: #fff0df;
    box-shadow: 0 0 0 2px var(--text-muted);
    animation: none;
}

@keyframes order-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px var(--primary-color), 0 0 0 4px #ffbca6;
    }
    50% {
        box-shadow: 0 0 0 2px var(--primary-color), 0 0 0 8px rgba(37, 99, 235, 0.1);
    }
}

.order-timeline-content {
    padding: 0px 16px 8px 10px;
    background: #f9f9f9;
    border-radius: 3px;
    font-size: 14px;
    color: #737373;
    line-height: 1.6;
}

/* 空状态 */
.order-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.order-empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.order-empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 留言表单 */
.order-message-form {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.order-form-group {
    /* margin-bottom: 20px; */
}

.order-form-group:last-child {
    margin-bottom: 0;
}

.order-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.order-form-group label i {
    color: var(--primary-color);
}

.order-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    background: var(--bg-primary);
    font-family: inherit;
}

.order-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.order-form-input::placeholder {
    color: var(--text-muted);
}

/* 新增：内联表单行布局 */
.order-form-row-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

.order-verify-group-inline {
    flex: 1;
    margin-bottom: 0;
}

.order-submit-group-inline {
    margin-bottom: 0;
}

.order-submit-group-inline label {
    visibility: hidden;
    height: 30px;
    margin-bottom: 8px;
}

.order-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 125px;
    align-items: end;
}

.order-verify-group {
    flex: 1;
}

.order-verify-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.order-verify-input {
    padding-right: 110px;
}

.order-verify-image {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 136px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    object-fit: cover;
}

.order-verify-image:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.order-submit-group {
    margin-bottom: 0;
}

.order-form-tips {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 16px;
}

.order-form-tips i {
    color: var(--info-color);
    font-size: 16px;
    flex-shrink: 0;
}

.order-form-tips a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.order-form-tips a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}


/* 留言布局 - 左右分栏 */
.order-message-layout {
    display: flex;
    gap: 90px;
    align-items: flex-start;
}

.order-message-form-left {
    flex: 0 0 662px;
    max-width: 662px;
}

.order-message-tips-right {
    flex: 1;
    display: flex;
    gap: 16px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #fffaf0 0%, #fef5e0 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #fdd3ba;
}

.order-tips-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffad00 0%, #c77302 100%);
    border-radius: 50%;
    color: white;
    font-size: 24px;
}

.order-tips-content {
    flex: 1;
}

.order-tips-content h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #0c4a6e;
}

.order-tips-content p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #075985;
}

.order-tips-content p:last-child {
    margin-bottom: 0;
}

.order-tips-content a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.order-tips-content a:hover {
    color: #0369a1;
    text-decoration: underline;
}

.order-verify-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.order-verify-wrapper .order-verify-input {
    flex: 1;
    padding-right: 16px;
}

.order-verify-wrapper .order-verify-image {
    position: static;
    transform: none;
    flex-shrink: 0;
}

/* 按钮样式 */
.order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    /* font-weight: 600; */
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.order-btn:hover {
    /* transform: translateY(-2px); */
    box-shadow: var(--shadow-md);
}

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

.order-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.order-btn-success {
    background: linear-gradient(135deg, #ed1eff 0%, #ff0000 100%);
    color: white;
}

.order-btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
}

.order-btn-outline {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.order-btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.order-btn-submit {
    background: linear-gradient(135deg, #74c4ff 0%, #1e9fff 100%);
    color: white;
    padding: 12px 27px;
    font-size: 15px;
}

.order-btn-verify {
    width: 100%;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    padding: 14px;
    font-size: 15px;
}

/* 密码验证卡片 */
.order-password-verify-card {
    max-width: 500px;
    margin: 60px auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: order-slideUp 0.5s ease-out;
}

.order-verify-header {
    text-align: center;
    padding: 40px 32px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.order-verify-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.order-verify-icon i {
    font-size: 36px;
}

.order-verify-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.order-verify-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.order-verify-form {
    padding: 32px;
}

.order-number-display {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

/* 卡券提取 */
.order-card-extract-container {
    padding: 20px;
}

.order-card-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.order-card-tips {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-md);
    color: #92400e;
    font-size: 14px;
    margin-bottom: 20px;
}

.order-card-tips i {
    font-size: 20px;
    color: var(--warning-color);
}

.order-card-list {
    max-height: 500px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 8px;
}

.order-card-list::-webkit-scrollbar {
    width: 8px;
}

.order-card-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.order-card-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.order-card-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.order-card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    margin-bottom: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.order-card-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    /* transform: translateX(4px); */
}

.order-card-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e9fff 0%, #4fd8e2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.order-card-content {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.order-card-copy-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.order-card-item:hover .order-card-copy-icon {
    background: var(--primary-color);
    color: white;
}

/* 二维码网格 */
.order-qrcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.order-qrcode-card {
    padding: 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.order-qrcode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.order-qrcode-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.order-qrcode-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}



/* 动画效果 */
@keyframes order-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 旋转动画 */
.fa-spin {
    animation: order-fa-spin 1s linear infinite;
}

@keyframes order-fa-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* layui 兼容 */
.layui-anim-upbit {
    animation: order-slideUp 0.5s ease-out;
}

.layui-form {
    /* 保持表单功能 */
}

/* 辅助类 */
.blue {
    color: var(--primary-color);
}

.order_number {
    color: var(--text-secondary);
}

/* ========================================
   订单列表页面样式 - 简洁版
   ======================================== */

/* 订单列表容器 */
.order-list-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
}

/* 页面标题区域 */
.order-page-header {
    background: #fff;
    padding: 20px 24px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.order-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.order-page-title i {
    font-size: 24px;
    color: var(--primary-color);
}

.order-user-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #0ba5f5;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* 查单说明 */
.order-notice-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
}

.order-notice-header i {
    font-size: 18px;
    color: #f59e0b;
}

.order-notice-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #78350f;
    font-size: 13px;
    line-height: 1.6;
}

.order-notice-item i {
    color: #f59e0b;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.order-notice-item strong {
    color: #92400e;
}

/* 搜索区域 */
.order-search-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-search-form {
    margin-bottom: 12px;
}

.order-search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-search-icon {
    display: none;
}

.order-search-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.order-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.order-btn-search {
    height: 42px;
    padding: 0 28px;
    background: #ff5e00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.order-btn-search:hover {
    background: var(--primary-hover);
}

.order-search-tips {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.order-search-tips i {
    color: #ff8a00;
    font-size: 16px;
}

.order-search-tips a {
    color: var(--primary-color);
    text-decoration: none;
}

.order-search-tips a:hover {
    text-decoration: underline;
}

/* 状态筛选标签 */
.order-filter-tabs {
    background: #ffffff;
    /* border-bottom: 2px solid var(--border-color); */
    /* border-radius: 8px; */
    margin-bottom: 20px;
    overflow: hidden;
}

.order-filter-tabs .layui-tab {
    margin: 0;
}

.order-filter-tabs .layui-tab-title {
    display: flex;
    margin: 0;
    padding: 0;
    border-bottom: none;
    background: #fff;
}

.order-filter-tabs .layui-tab-title li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    cursor: pointer;
    /* font-size: 14px; */
    color: var(--text-secondary);
    border: 1px solid #e9e9e9;
    transition: all 0.2s;
    line-height: normal;
    margin: 3px;
    border-radius: 5px;
}

.order-filter-tabs .layui-tab-title li i {
    font-size: 16px;
}

.order-filter-tabs .layui-tab-title li:hover {
    color: var(--text-primary);
    background: #f9fafb;
    border-radius: 5px;
}

.order-filter-tabs .layui-tab-title li.layui-this {
    color: #ff6700;
    border-color: #ff0000;
    font-weight: 600;
    background: #ffefde;
    border-radius: 5px;
}

.order-filter-tabs .layui-tab-title li.layui-this::after {
    display: none;
}

/* 订单列表项 */
.order-list-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.order-list-item:hover {
    border-color: #d1d5db;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
}

.order-item-number {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.order-item-number i {
    color: var(--primary-color);
    font-size: 14px;
}

.order-item-number strong {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.order-item-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.order-item-time i {
    font-size: 13px;
}

.order-item-body {
    display: grid;
    grid-template-columns: 1fr 160px 179px 111px;
    gap: 20px;
    padding: 15px;
    align-items: center;
}

.order-item-product {
    display: flex;
    gap: 12px;
    align-items: center;
}

.order-product-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

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

.order-product-name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-product-name:hover {
    color: var(--primary-color);
}

.order-product-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.order-product-type,
.order-product-count {
    display: flex;
    align-items: center;
    gap: 3px;
}

.order-product-type i,
.order-product-count i {
    font-size: 13px;
}

.order-item-price {
    text-align: center;
}

.order-price-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.order-price-value {
    font-size: 20px;
    font-weight: 600;
    color: #ef4444;
}

.order-item-status {
    text-align: center;
}

.order-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 8px;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    /* font-weight: 500; */
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.order-btn i {
    font-size: 14px;
}

.order-btn-detail {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.order-btn-detail:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.order-btn-primary {
    background: #e96878;
    color: white;
}

.order-btn-primary:hover {
    background: var(--primary-hover);
}

/* 空状态 */
.order-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.order-empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.order-empty-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.order-empty-tips {
    font-size: 13px;
    color: var(--text-muted);
}

/* 分页 */
#order-pagination {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

#order-pagination .layui-laypage {
    display: flex;
    justify-content: center;
}

/* ========================================
   订单继续支付页面样式
   ======================================== */

/* 支付页面容器 */
.pay-container {
    max-width: 1354px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

/* 步骤条样式 */
.pay-steps-wrapper {
    background: #f9fafb;
    border-radius: 10px;
    padding: 32px 40px;
    margin-bottom: 24px;
}

.pay-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.pay-steps-container::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.pay-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.pay-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #9ca3af;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 12px;
    position: relative;
}

.pay-step-icon i {
    font-size: 20px;
}

.pay-step-title {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.pay-step-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    text-align: center;
}

/* 已完成步骤 */
.pay-step-item.completed .pay-step-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
}

.pay-step-item.completed .pay-step-title {
    color: #10b981;
    font-weight: 600;
}

.pay-step-item.completed .pay-step-desc {
    color: #059669;
}

/* 当前步骤 */
.pay-step-item.active .pay-step-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
    animation: pay-step-pulse 2s infinite;
}

.pay-step-item.active .pay-step-title {
    color: #ff6b35;
    font-weight: 700;
}

.pay-step-item.active .pay-step-desc {
    color: #f7931e;
}

@keyframes pay-step-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.1);
    }
}

/* 连接线进度 */
.pay-step-item.completed::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #10b981;
    z-index: -1;
}

.pay-step-item:last-child::after {
    display: none;
}

/* 响应式 - 步骤条 */
@media (max-width: 768px) {
    .pay-steps-wrapper {
        padding: 24px 16px;
    }

    .pay-steps-container::before {
        left: 40px;
        right: 40px;
    }

    .pay-step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pay-step-icon i {
        font-size: 16px;
    }

    .pay-step-title {
        font-size: 12px;
    }

    .pay-step-desc {
        display: none;
    }
}

/* 订单信息卡片 */
.pay-order-card {
    background: #fff;
    border-radius: 10px;
    /* box-shadow: var(--shadow-md); */
    margin-bottom: 20px;
    overflow: hidden;
}

.pay-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
    border-bottom: 2px solid #f0f0f0;
}

.pay-order-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
}

.pay-order-number i {
    font-size: 18px;
    color: var(--primary-color);
}

.pay-order-number strong {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.pay-order-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pay-amount-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pay-amount-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff4d4f;
}

/* 订单详情 */
.pay-order-details {
    padding: 24px 30px;
}

.pay-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.pay-detail-item i {
    font-size: 16px;
    color: var(--primary-color);
    width: 20px;
}

.pay-detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.pay-product-link {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pay-product-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}

.pay-detail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

/* 扩展信息 */
.pay-extend-info {
    margin-top: 20px;
    padding: 16px;
    background: #fffbf0;
    border-radius: 8px;
    border-left: 4px solid #faad14;
}

.pay-extend-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #d48806;
    margin-bottom: 12px;
}

.pay-extend-header i {
    font-size: 16px;
}

.pay-extend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 13px;
    color: #8c6e1f;
}

.pay-extend-item i {
    font-size: 12px;
    color: #faad14;
}

.pay-extend-label {
    font-weight: 500;
}

/* 收件地址 */
.pay-address-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 16px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pay-address-info i {
    font-size: 16px;
    color: #1890ff;
}

/* 支付方式卡片 */
.pay-method-card {
    background: #fff;
    border-radius: 10px;
    /* box-shadow: var(--shadow-md); */
    margin-bottom: 20px;
    overflow: hidden;
}

.pay-method-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
    border-bottom: 2px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.pay-method-header i {
    font-size: 20px;
    color: var(--primary-color);
}

.pay-method-list {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pay-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-method-item:hover {
    background: #f0f9ff;
    border-color: #91d5ff;
    /* transform: translateY(-2px); */
    box-shadow: var(--shadow-md);
}

.pay-method-item.pay-method-active {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.pay-method-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.pay-method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.pay-method-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pay-method-desc {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pay-method-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d9d9d9;
    font-size: 20px;
}

.pay-method-item.pay-method-active .pay-method-check {
    color: #1890ff;
}

/* 错误提示卡片 */
.pay-error-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background: #fff2e8;
    border: 2px dashed #ffbb96;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #d4380d;
}

.pay-error-card i {
    font-size: 24px;
}

/* 支付汇总卡片 */
.pay-summary-card {
    background: #fff;
    border-radius: 10px;
    /* box-shadow: var(--shadow-md); */
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.pay-summary-info {
    flex: 1;
}

.pay-summary-info p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pay-summary-info p:last-child {
    margin-bottom: 0;
}

.pay-summary-info b {
    color: var(--text-primary);
    font-weight: 600;
}

.pay-summary-info span {
    color: #ff4d4f;
    font-size: 20px;
    font-weight: 700;
}

.pay-submit-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pay-submit-btn:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

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

.pay-submit-btn i {
    font-size: 18px;
}

/* 二维码支付弹窗样式 */
.onlinepay {
    padding: 20px;
    text-align: center;
}

.onlinepay_msg {
    font-size: 14px;
    color: #ff4d4f;
    font-weight: 500;
    margin-bottom: 20px;
}

.onlinepay_content {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qrcode {
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.onlinepay_price {
    font-size: 32px;
    font-weight: 700;
    color: #ff4d4f;
    margin-bottom: 12px;
}

.onlinepay_msg_box {
    margin-top: 20px;
}

.onlinepay_msg_box .order {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.onlinepay_msg_box .order p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.onlinepay_msg_box .order span {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.onlinepay_msg_box .info {
    font-size: 13px;
    color: var(--text-muted);
}

.onlinepay_msg_box .info a {
    color: #1890ff;
    text-decoration: none;
}

.onlinepay_msg_box .info a:hover {
    text-decoration: underline;
}

 
