/* 用户端样式表 */

/* 全局样式 */
:root {
    --primary-color: #ff8200;
    --primary-hover: #e67500;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* 登录页样式 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease-out;
}

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

.login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--muted-text);
    font-size: 1rem;
}

/* 二维码区域 */
.qrcode-section {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.qrcode-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
}

.qrcode-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    text-align: center;
}

.qrcode-placeholder-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.qrcode-placeholder-text {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin: 0;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-loading,
.qrcode-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 20px;
    text-align: center;
}

.qrcode-error i {
    font-size: 3rem;
    color: var(--danger-color);
    margin-bottom: 1rem;
}

/* 登录操作按钮 */
.login-actions {
    text-align: center;
}

.login-actions .btn {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.login-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* 登录状态指示器 */
.login-status {
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

.status-dot.scanned {
    background-color: var(--warning-color);
    animation: none;
}

.status-dot.success {
    background-color: var(--success-color);
    animation: none;
}

.status-dot.expired {
    background-color: var(--danger-color);
    animation: none;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 功能预览 */
.features-preview h5 {
    color: var(--dark-text);
    font-weight: 600;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-item span {
    font-size: 0.8rem;
    color: var(--muted-text);
    text-align: center;
}

/* 功能页样式 */
.functions-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.functions-header {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.functions-container {
    padding: 30px 0;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.function-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.function-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9500);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.function-card:hover::before {
    transform: scaleX(1);
}

.function-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
}

.function-icon i {
    font-size: 1.8rem;
    color: white;
}

.function-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.function-description {
    color: var(--muted-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.function-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    background: var(--success-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 订单页样式 */
.orders-page {
    background: var(--light-bg);
    min-height: 100vh;
    padding: 30px 0;
}

.orders-header {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.orders-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.stat-card.secondary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.orders-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.orders-table .table {
    margin-bottom: 0;
}

.orders-table thead {
    background: var(--light-bg);
}

.orders-table th {
    font-weight: 600;
    color: var(--dark-text);
    border-bottom: 2px solid var(--border-color);
    padding: 15px;
}

.orders-table td {
    padding: 15px;
    vertical-align: middle;
}

/* 状态徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-badge.pending {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
}

.status-badge.processing {
    background: linear-gradient(135deg, #17a2b8, #00bcd4);
    color: white;
}

.status-badge.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-badge.failed {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.status-badge.cancelled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

/* 任务页样式 */
.tasks-page {
    background: var(--light-bg);
    min-height: 100vh;
    padding: 30px 0;
}

.tasks-filter {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.task-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.task-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.task-id {
    font-weight: 600;
    color: var(--dark-text);
}

.task-time {
    color: var(--muted-text);
    font-size: 0.85rem;
}

.task-body {
    margin-bottom: 15px;
}

.task-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.task-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.task-info-item i {
    color: var(--primary-color);
}

.task-progress {
    margin-bottom: 15px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--light-bg);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #ff9500);
    transition: width 0.3s ease;
}

.task-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 按钮样式 */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-hover), #e68a00);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        padding: 25px;
    }
    
    .login-icon {
        font-size: 3rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .qrcode-container {
        width: 180px;
        height: 180px;
    }
    
    .functions-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .orders-stats {
        grid-template-columns: 1fr;
    }
    
    .task-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .task-actions {
        width: 100%;
    }
    
    .task-actions .btn {
        flex: 1;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-text);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.empty-state p {
    font-size: 0.9rem;
}

/* Toast 提示 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
    max-width: 300px;
    min-width: 200px;
}

.toast.show {
    opacity: 1;
    transform: scale(1);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

/* 支付页面样式 - 与首页保持一致 */
.payment-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

.payment-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.payment-subtitle {
    color: var(--muted-text);
    font-size: 1rem;
}

/* 支付状态区域 */
.payment-status {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.payment-status .status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-countdown {
    margin: 15px 0;
}

.countdown-timer {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    display: inline-block;
    margin: 10px 0;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.payment-method {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.payment-method.active {
    background: var(--primary-color);
    color: white;
}

.payment-method i {
    font-size: 1.2rem;
}

.countdown-hint {
    color: var(--muted-text);
    font-size: 0.9rem;
    text-align: center;
}

/* 订单信息区域 */
.order-info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.info-item label {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 5px;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 600;
}

/* 操作按钮区域 */
.payment-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 支付页面响应式设计 */
@media (max-width: 768px) {
    .payment-icon {
        font-size: 3rem;
    }
    
    .payment-title {
        font-size: 1.5rem;
    }
    
    .payment-subtitle {
        font-size: 0.9rem;
    }
    
    .payment-status {
        padding: 15px;
        margin: 15px 0;
    }
    
    .payment-status .status-indicator {
        font-size: 1rem;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
    
    .order-info-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .payment-actions {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .payment-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .payment-actions .btn:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    /* 桌面端优化 */
    .payment-status {
        padding: 25px;
    }
    
    .payment-status .status-indicator {
        font-size: 1.2rem;
    }
    
    .countdown-timer {
        font-size: 2rem;
    }
    
    .order-info-section {
        padding: 30px;
    }
}

/* 任务详情页样式 */
.task-detail-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.task-detail-container:hover {
    box-shadow: var(--shadow-md);
}

.task-detail-header {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: white;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.task-detail-header.completed {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.task-detail-header.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20v20h20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(40px); }
}

.task-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.task-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.task-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.task-detail-body {
    padding: 30px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.section-title.completed {
    border-bottom-color: var(--success-color);
}

.section-title.completed::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--success-color);
    border-radius: 1px;
}

.section-title i {
    color: var(--primary-color);
}

.section-title.completed i {
    color: var(--success-color);
}

/* 任务信息 */
.task-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 15px;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 5px;
}

.info-item .info-value {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
}

/* 任务进度 */
.task-progress-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.task-progress-section.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.1);
}

.progress-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.progress-wrapper.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--success-color);
}

.progress-wrapper.completed::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-labels .label {
    font-weight: 600;
    color: var(--dark-text);
}

.progress-labels .percentage {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-wrapper.completed .progress-labels .percentage {
    color: var(--success-color);
    font-size: 1.1rem;
}

.progress {
    height: 12px;
    border-radius: 6px;
    background: var(--light-bg);
    overflow: hidden;
    position: relative;
}

.progress-wrapper.completed .progress {
    height: 14px;
    border: 2px solid var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #ff9500);
    transition: width 0.3s ease;
    position: relative;
}

.progress-wrapper.completed .progress-bar {
    background: linear-gradient(90deg, var(--success-color), #20c997);
    animation: progress-shine 2s ease-in-out infinite alternate;
}

@keyframes progress-shine {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.progress-stats {
    text-align: right;
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-top: 10px;
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-item.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.stat-item.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success-color), #20c997);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.stat-icon-success {
    background-color: var(--success-color);
}

.stat-icon-danger {
    background-color: var(--danger-color);
}

.stat-icon-warning {
    background-color: var(--warning-color);
}

.stat-icon-info {
    background-color: var(--info-color);
}

.stat-item.completed .stat-icon-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.stat-item.completed .stat-value {
    color: var(--success-color);
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* 当前操作 */
.current-operation {
    background: linear-gradient(135deg, rgba(255, 130, 0, 0.1), rgba(255, 149, 0, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.operation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.operation-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.operation-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 任务日志 */
.task-logs-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.task-logs-section.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.02), rgba(32, 201, 151, 0.02));
    border: 2px solid rgba(40, 167, 69, 0.1);
}

.task-logs-section.completed .section-title {
    color: var(--success-color);
}

.logs-container {
    max-height: 400px;
    overflow-y: auto;
    background: var(--light-bg);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.task-logs-section.completed .logs-container {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(248, 249, 250, 1));
    border: 2px solid rgba(40, 167, 69, 0.1);
}

.logs-container::-webkit-scrollbar {
    width: 6px;
}

.logs-container::-webkit-scrollbar-track {
    background: var(--light-bg);
}

.logs-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.log-item {
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.log-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.log-item.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-left: 4px solid var(--success-color);
}

.log-item.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--success-color), transparent);
    opacity: 0.6;
}

.log-time {
    color: var(--muted-text);
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 5px;
}

.log-time::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
}

.task-logs-section.completed .log-time::before {
    background: var(--success-color);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.log-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.log-level {
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.log-level.info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.log-level.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.log-level.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #b45309;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.log-level.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.task-logs-section.completed .log-level.success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    animation: level-glow 3s ease-in-out infinite alternate;
}

@keyframes level-glow {
    0% { box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3); }
    100% { box-shadow: 0 2px 8px rgba(40, 167, 69, 0.6); }
}

.log-message {
    color: var(--dark-text);
    line-height: 1.6;
    flex: 1;
    font-weight: 500;
}

.task-logs-section.completed .log-message {
    color: #2d3748;
}

.log-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted-text);
    font-style: italic;
}

.task-logs-section.completed .log-empty {
    color: var(--success-color);
    font-weight: 500;
}

/* 操作按钮 */
.task-actions {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.task-actions.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-color: var(--success-color);
    position: relative;
}

.task-actions.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2328a745' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-16.569-13.431-30-30-30v30h30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    border-radius: 13px;
    animation: pattern-move 30s linear infinite;
}

@keyframes pattern-move {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.task-actions-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 130, 0, 0.3);
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #e68a00);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 130, 0, 0.4);
    color: white;
}

.action-btn-secondary {
    background: white;
    color: var(--dark-text);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn-secondary:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.2);
}

.action-btn-danger {
    background: white;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.action-btn-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.action-btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.action-btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.task-actions.completed .action-btn-success {
    animation: success-pulse 2s ease-in-out infinite;
}

@keyframes success-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(40, 167, 69, 0.5); }
}

.action-btn i {
    font-size: 1.1rem;
}

.action-btn:active {
    transform: translateY(-1px);
}

.task-actions.completed .action-btn:hover {
    animation: button-shine 0.6s ease-out;
}

@keyframes button-shine {
    0% { transform: translateY(-3px) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
    100% { transform: translateY(-3px) scale(1); }
}

/* 支付页面样式 */
.payment-container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* 订单信息区域 */
.order-info-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.order-info-section .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item label {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* 支付区域 - 扫码支付样式 */
.payment-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.payment-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section .section-title i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* 订单信息区域样式 - 更紧凑 */
/* 订单信息区域样式 - 更紧凑 */
.order-info-section {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 130, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.order-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9500);
}

.order-info-section .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-info-section .section-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.order-info-section .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
}

.order-info-section .info-item label {
    font-size: 0.85rem;
    color: var(--muted-text);
    font-weight: 500;
    margin-bottom: 0;
}

.order-info-section .info-item .info-value {
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 600;
}

.order-info-section .info-item .info-value.text-primary {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 移动端样式 */
@media (max-width: 576px) {
    .payment-container {
        padding: 20px;
        margin: 10px;
    }
    
    .order-info-section,
    .payment-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .qrcode-wrapper {
        padding: 25px 15px;
    }
    
    .qrcode-container {
        width: 160px;
        height: 160px;
    }
    
    .payment-section .section-title,
    .order-info-section .section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .countdown-timer {
        font-size: 1.3rem;
    }
    
    .countdown-timer span {
        padding: 5px 8px;
        min-width: 30px;
        font-size: 0.9rem;
    }
    
    .info-item .info-value {
        font-size: 0.9rem;
    }
    
    .info-item .info-value.text-primary {
        font-size: 1.1rem;
    }
}

/* 二维码包装器 - 优化布局 */
.qrcode-wrapper {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin-bottom: 30px;
}

/* 二维码容器 - 居中显示 */
.qrcode-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 3px solid #fff;
}

/* 支付二维码图片 */
.payment-qrcode {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
    margin: 0 auto;
}

/* 二维码加载状态 */
.qrcode-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: white;
    color: var(--muted-text);
}

.qrcode-loading p {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* 二维码错误状态 */
.qrcode-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: white;
    color: var(--danger-color);
    padding: 20px;
    text-align: center;
}

.qrcode-error i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.qrcode-error p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* 支付倒计时 - 放在二维码下方 */
.payment-countdown {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 10px;
    font-weight: 500;
}

.countdown-timer {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.countdown-timer span {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 0 4px;
    min-width: 40px;
    display: inline-block;
}

.countdown-hint {
    font-size: 0.8rem;
    color: var(--muted-text);
}

/* 支付方式提示 */
.payment-instructions {
    margin-bottom: 25px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(255, 130, 0, 0.1);
    color: var(--primary-color);
}

.payment-method i {
    font-size: 1.2rem;
}

/* 支付状态 */
.payment-status {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 支付状态内的元素 - 桌面端样式 */
@media (min-width: 992px) {
    /* 支付状态容器 */
    .payment-status {
        padding: 30px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        margin-bottom: 30px;
    }
    
    /* 状态指示器 */
    .payment-status .status-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    /* 倒计时区域 */
    .payment-status .payment-countdown {
        margin: 20px auto;
        text-align: center;
    }
    
    /* 倒计时数字 */
    .payment-status .countdown-timer {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--primary-color);
        font-family: 'Courier New', monospace;
        display: inline-block;
        margin: 15px 0;
    }
    
    /* 倒计时数字样式 */
    .payment-status .countdown-timer span {
        background: var(--primary-color);
        color: white;
        padding: 10px 15px;
        border-radius: 10px;
        margin: 0 6px;
        min-width: 60px;
        display: inline-block;
        text-align: center;
        box-shadow: 0 2px 8px rgba(255, 130, 0, 0.2);
    }
    
    /* 支付方式区域 */
    .payment-status .payment-instructions {
        margin: 20px auto 10px;
        text-align: center;
    }
    
    /* 支付方式容器 */
    .payment-status .payment-methods {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 15px auto;
    }
    
    /* 支付方式项 */
    .payment-status .payment-method {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 18px;
        background: #f8f9fa;
        border-radius: 10px;
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    /* 支付方式图标 */
    .payment-status .payment-method i {
        font-size: 1.8rem;
        color: #1677FF;
    }
    
    /* 支付提示文字 */
    .payment-status .countdown-hint {
        font-size: 0.95rem;
        color: var(--muted-text);
        margin-top: 15px;
        text-align: center;
    }
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.status-dot.waiting {
    background-color: var(--warning-color);
    animation: none;
}

.status-dot.success {
    background-color: var(--success-color);
    animation: none;
}

.status-dot.error {
    background-color: var(--danger-color);
    animation: none;
}

/* 支付操作按钮 */
.payment-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-actions .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
}

.payment-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 安全提示 */
.security-tips {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.security-tips h6 {
    color: var(--success-color);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-tips ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.security-tips li {
    padding: 8px 0;
    color: var(--dark-text);
    position: relative;
    padding-left: 25px;
}

.security-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* 二维码放大覆盖层 */
.qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.qrcode-container:hover .qrcode-overlay {
    opacity: 1;
}

.qrcode-overlay i {
    font-size: 2rem;
    color: white;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .payment-container {
        padding: 25px;
        margin: 15px;
        border-radius: 15px;
    }
    
    .qrcode-container {
        width: 180px;
        height: 180px;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
    
    .countdown-timer span {
        padding: 6px 10px;
        min-width: 35px;
    }
    
    .payment-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-method {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .payment-container {
        padding: 20px;
        margin: 10px;
    }
    
    .qrcode-wrapper {
        padding: 25px 15px;
    }
    
    .qrcode-container {
        width: 160px;
        height: 160px;
    }
    
    .countdown-timer {
        font-size: 1.3rem;
    }
    
    .countdown-timer span {
        padding: 5px 8px;
        min-width: 30px;
        font-size: 0.9rem;
    }
}
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-info-section {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 130, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.order-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9500);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 500;
    margin-bottom: 0;
}

.info-item .info-value {
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 600;
}

.info-item .info-value.text-primary {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.payment-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.payment-countdown {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.06) 0%, rgba(24, 144, 255, 0.06) 100%);
    border: 2px solid #1677FF;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(22, 119, 255, 0);
    }
}

.payment-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.countdown-label {
    font-size: 0.9rem;
    color: #595959;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.countdown-timer {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1677FF;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    letter-spacing: 2px;
}

@keyframes countdown-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

.countdown-timer span {
    display: inline-block;
    min-width: 50px;
}

.countdown-hint {
    font-size: 0.8rem;
    color: #8C8C8C;
    opacity: 0.9;
    font-weight: 400;
    text-align: center;
}

.qrcode-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 35px;
}

.qrcode-container {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 4px solid var(--light-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.qrcode-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.payment-qrcode {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.payment-qrcode:hover {
    transform: scale(1.08);
}

.qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.qrcode-container:hover .qrcode-overlay {
    opacity: 1;
}

.qrcode-overlay i {
    font-size: 2.5rem;
    color: white;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.qrcode-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 20px;
    text-align: center;
}

.qrcode-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 20px;
    text-align: center;
}

.qrcode-error i {
    font-size: 3.5rem;
    color: var(--danger-color);
    margin-bottom: 1rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.payment-instructions {
    flex: 1;
}

.payment-instructions h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method.active {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(24, 144, 255, 0.08));
    border-color: #1677FF;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15);
}

.payment-method i {
    font-size: 1.5rem;
    color: #1677FF;
}

.payment-method span {
    font-weight: 600;
    color: #262626;
    font-size: 0.95rem;
}

.payment-steps .step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-steps .step:hover {
    background: #FAFAFA;
    transform: translateX(3px);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1677FF, #1890FF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(22, 119, 255, 0.25);
}

.step-text {
    color: #595959;
    font-size: 0.9rem;
    font-weight: 400;
}

.payment-status {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px currentColor;
}

.status-waiting {
    background-color: var(--warning-color);
    color: var(--warning-color);
}

.status-success {
    background-color: var(--success-color);
    color: var(--success-color);
    animation: none;
}

.status-expired {
    background-color: var(--danger-color);
    color: var(--danger-color);
    animation: none;
}

.payment-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.payment-actions .btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 150px;
}

.payment-actions .btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.payment-actions .btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.payment-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border: none;
    color: white;
}

.payment-actions .btn-primary:hover {
    background: linear-gradient(135deg, #e67500, #e68500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 130, 0, 0.4);
}

.security-tips {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.08) 0%, rgba(0, 188, 212, 0.08) 100%);
    border: 2px solid var(--info-color);
    border-radius: 18px;
    padding: 25px;
}

.security-tips h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-tips h6 i {
    color: var(--info-color);
}

.security-tips ul {
    margin: 0;
    padding-left: 20px;
}

.security-tips li {
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.security-tips li:last-child {
    margin-bottom: 0;
}

/* 响应式设计 - 支付页面 */
@media (max-width: 768px) {
    .payment-container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .order-info-section,
    .payment-section {
        padding: 20px;
    }
    
    .qrcode-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .qrcode-container {
        width: 180px;
        height: 180px;
    }
    
    .countdown-timer {
        font-size: 2rem;
    }
    
    .payment-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .payment-container {
        padding: 15px;
    }
    
    .qrcode-container {
        width: 160px;
        height: 160px;
    }
    
    .countdown-timer {
        font-size: 1.8rem;
    }
    
    .payment-method,
    .payment-steps .step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

/* 支付页面动画效果 */
.payment-container {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown-timer {
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.qrcode-container {
    transition: all 0.3s ease;
}

.qrcode-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 支付状态动画 */
.status-dot.status-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        background-color: var(--success-color);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 - 任务详情页 */
@media (max-width: 768px) {
    .task-detail-header {
        padding: 20px;
    }
    
    .task-detail-title {
        font-size: 1.2rem;
    }
    
    .task-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .task-detail-body {
        padding: 20px;
    }
    
    .task-info-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-actions-section {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .progress-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 用户协议和隐私条款页面样式 */
.agreement-page,
.privacy-page {
    background: var(--light-bg);
    min-height: 100vh;
    padding: 40px 0;
}

.agreement-card,
.privacy-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease-out;
}

.agreement-header,
.privacy-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.agreement-title,
.privacy-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.agreement-content,
.privacy-content {
    line-height: 1.8;
    color: var(--dark-text);
}

.agreement-content h3,
.privacy-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.agreement-content h3:first-child,
.privacy-content h3:first-child {
    margin-top: 0;
}

.agreement-content p,
.privacy-content p {
    margin-bottom: 15px;
    color: var(--dark-text);
}

.agreement-content ul,
.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.agreement-content li,
.privacy-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.agreement-content strong,
.privacy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.agreement-content .text-muted,
.privacy-content .text-muted {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* 响应式设计 - 用户协议和隐私条款页面 */
@media (max-width: 768px) {
    .agreement-page,
    .privacy-page {
        padding: 20px 0;
    }
    
    .agreement-card,
    .privacy-card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .agreement-title,
    .privacy-title {
        font-size: 1.5rem;
    }
    
    .agreement-content h3,
    .privacy-content h3 {
        font-size: 1.1rem;
    }
    
    .agreement-content ul,
    .privacy-content ul {
        padding-left: 20px;
    }
}

/* ========================================
   订单页面优化样式
   ======================================== */

/* 主内容区域 */
.main-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: calc(100vh - 70px);
    padding: 30px 0;
}

/* 页面标题 */
.page-header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9500, #ff6b6b);
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--muted-text);
    font-size: 1rem;
    margin: 0;
}

/* 筛选区域 */
.filter-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filter-section .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    height: 42px;
}

.filter-section .input-group-text {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: white;
    border: none;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-section .input-group-text i {
    font-size: 1.1rem;
}

.filter-section .form-control {
    border: 2px solid transparent;
    border-radius: 0;
    padding: 0 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 100%;
}

.filter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.filter-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}

.filter-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #e68a00);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.3);
}

/* 搜索图标按钮 */
.search-icon-btn {
    padding: 0 20px !important;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-icon-btn i {
    font-size: 1.1rem;
    margin: 0;
}

/* 状态筛选按钮 */
.status-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--muted-text);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 100px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.3);
}

/* 状态数量显示 */
.status-count {
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: inherit;
    min-width: 20px;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
}

.filter-btn:hover .status-count {
    background: rgba(255, 130, 0, 0.15);
}

.filter-btn.active .status-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* 订单总数显示 */
.total-orders-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.3);
    height: 42px;
    min-width: 120px;
    justify-content: center;
}

.total-orders-display .total-label {
    opacity: 0.9;
}

.total-orders-display .total-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 订单统计卡片 */
.order-stats {
    margin-bottom: 25px;
}

.order-stats .stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.order-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.order-stats .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.order-stats .stat-card:hover::before {
    transform: scaleX(1);
}

.order-stats .stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.order-stats .stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.order-stats .stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #17a2b8, #00bcd4);
}

.order-stats .stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.order-stats .stat-card:nth-child(5)::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.order-stats .stat-card:nth-child(6)::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.order-stats .stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.stat-icon-info {
    background: linear-gradient(135deg, #17a2b8, #00bcd4);
}

.stat-icon-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-icon-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.stat-info {
    flex: 1;
}

.stat-info .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-info .stat-label {
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 500;
}

/* 订单列表 */
.order-list {
    min-height: 400px;
}

/* 订单卡片 */
.order-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), #ff9500);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 130, 0, 0.1);
}

.order-card:hover::before {
    transform: scaleY(1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
}

.order-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-no {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: 8px;
}

.order-time {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.order-header .badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-body {
    margin-bottom: 20px;
}

.order-function {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.order-function i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.order-function span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-text);
}

.order-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item .label {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.detail-item .value {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
}

.detail-item .value.text-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.order-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border: none;
    color: white;
}

.order-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #e68a00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.3);
}

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

.order-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.2);
}

.order-actions .btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--muted-text);
    background: transparent;
}

.order-actions .btn-outline-secondary:hover {
    background: var(--light-bg);
    border-color: var(--dark-text);
    color: var(--dark-text);
    transform: translateY(-2px);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 25px;
}

.empty-state .btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #e68a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 130, 0, 0.3);
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.loading-state .spinner-border {
    width: 50px;
    height: 50px;
    border-width: 3px;
    margin-bottom: 20px;
}

.loading-state p {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin: 0;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 30px;
}

.pagination-wrapper .pagination {
    gap: 8px;
}

.pagination-wrapper .page-link {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--dark-text);
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-wrapper .page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.3);
}

.pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 130, 0, 0.3);
}

.pagination-wrapper .page-item.disabled .page-link {
    background: var(--light-bg);
    color: var(--muted-text);
    cursor: not-allowed;
}

/* 订单详情模态框优化 */
#orderDetailModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#orderDetailModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px 25px;
    border-bottom: none;
}

#orderDetailModal .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
}

#orderDetailModal .btn-close {
    filter: brightness(0) invert(1);
}

#orderDetailModal .modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

#orderDetailModal .modal-footer {
    border-top: 2px solid var(--light-bg);
    padding: 20px 25px;
    border-radius: 0 0 20px 20px;
}

/* 任务详情模态框样式 - 与订单详情保持一致 */
#taskDetailModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#taskDetailModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), #ff9500);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px 25px;
    border-bottom: none;
}

#taskDetailModal .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
}

#taskDetailModal .btn-close {
    filter: brightness(0) invert(1);
}

#taskDetailModal .modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

#taskDetailModal .modal-footer {
    border-top: 2px solid var(--light-bg);
    padding: 20px 25px;
    border-radius: 0 0 20px 20px;
}

/* 详情信息样式 */
.order-detail-info,
.task-detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-detail-info .detail-row,
.task-detail-info .detail-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-bg);
    transition: all 0.3s ease;
}

.order-detail-info .detail-row:last-child,
.task-detail-info .detail-row:last-child {
    border-bottom: none;
}

.order-detail-info .detail-row:hover,
.task-detail-info .detail-row:hover {
    background: var(--light-bg);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
    margin: 0 -10px;
}

.order-detail-info .detail-row .label,
.task-detail-info .detail-row .label {
    min-width: 100px;
    font-weight: 600;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.order-detail-info .detail-row .value,
.task-detail-info .detail-row .value {
    flex: 1;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.order-detail-info .detail-row .value.text-primary,
.task-detail-info .detail-row .value.text-primary {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.order-detail-info .detail-row .value.text-success,
.task-detail-info .detail-row .value.text-success {
    color: var(--success-color) !important;
    font-weight: 600;
}

.order-detail-info .detail-row .value.text-danger,
.task-detail-info .detail-row .value.text-danger {
    color: var(--danger-color) !important;
    font-weight: 600;
}

/* 进度条样式优化 */
.task-detail-info .detail-row .progress {
    background: var(--light-bg);
    border-radius: 10px;
    height: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.task-detail-info .detail-row .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #ff9500);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* 日志区域样式 */
.task-logs {
    background: var(--light-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.task-logs div {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.task-logs div:last-child {
    border-bottom: none;
}

/* 响应式设计 - 订单页面 */
@media (max-width: 992px) {
    .order-details {
        gap: 20px;
    }
    
    .stat-info .stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 0;
    }
    
    .page-header {
        padding: 20px;
        border-radius: 12px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .filter-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .filter-section .row {
        gap: 15px;
    }
    
    .status-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 80px;
        height: 36px;
    }
    
    .total-orders-display {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 100px;
        height: 36px;
    }
    
    .total-orders-display .total-value {
        font-size: 1rem;
    }
    
    .order-stats .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .stat-info .stat-value {
        font-size: 1.5rem;
    }
    
    .order-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-footer {
        justify-content: flex-start;
    }
    
    .order-actions {
        width: 100%;
    }
    
    .order-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .page-header h2 {
        font-size: 1.3rem;
    }
    
    .page-header h2 i {
        font-size: 1.2rem;
    }
    
    .filter-section .input-group {
        height: 36px;
    }
    
    .filter-section .input-group-text {
        height: 100%;
        padding: 0 12px;
    }
    
    .filter-section .form-control {
        height: 100%;
        padding: 0 12px;
    }
    
    .filter-section .input-group .btn {
        border-radius: 12px;
        margin-top: 0;
    }
    
    .search-icon-btn {
        padding: 0 16px !important;
        min-width: 45px;
        height: 36px;
    }
    
    .search-icon-btn i {
        font-size: 1rem;
    }
    
    .order-stats .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .stat-info .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-info .stat-label {
        font-size: 0.85rem;
    }
    
    .order-function {
        padding: 10px 12px;
    }
    
    .order-function span {
        font-size: 1rem;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
    }
    
    .pagination-wrapper .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
