/* 客户端订单查询高级交互样式 */

.page-main-wrapper {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 85vh;
    position: relative;
    z-index: 10;
}

/* 通用动画类 */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating-icon { animation: floatAnimation 3s ease-in-out infinite; }

.hover-glow { transition: all 0.3s; }
.hover-glow:hover { box-shadow: 0 0 25px rgba(51, 128, 200, 0.2); transform: translateY(-2px); border-color: rgba(51, 128, 200, 0.4); }

/* 玻璃拟态基础卡片增强 */
.glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 50, 100, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Page Header 动效增强 */
.page-header {
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.pulse-ring-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(51, 128, 200, 0.05) 0%, transparent 70%);
    border-radius: 50%; z-index: -1; animation: breathe 4s ease-in-out infinite alternate;
}
@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.page-header .page-title {
    font-size: 2.8rem; font-weight: 800; color: var(--text-main);
    margin-bottom: 12px; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-header .page-subtitle { color: var(--text-sub); font-size: 1.15rem; font-weight: 500;}

/* 搜索卡片 */
.query-card { padding: 3.5rem 4rem; max-width: 800px; margin: 0 auto 3rem; position: relative; z-index: 10; }
.query-header { text-align: center; margin-bottom: 2.5rem; }
.query-icon {
    width: 75px; height: 75px; margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    color: #10b981; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1);
}
.query-header h2 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: 700;}
.query-header p { color: var(--text-sub); }

.input-wrapper {
    position: relative; display: flex; align-items: center; 
    background: rgba(255,255,255,0.8); border-radius: 50px; 
    padding: 8px; border: 1px solid rgba(51, 128, 200, 0.2); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.input-wrapper:focus-within {
    border-color: var(--primary-color); background: #fff;
    box-shadow: 0 0 0 6px rgba(51, 128, 200, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}
.input-svg-icon { position: absolute; left: 26px; font-size: 1.2rem;}
.query-input { 
    width: 100%; padding: 16px 170px 16px 60px; border: none; 
    background: transparent; font-size: 1.05rem; color: var(--text-main); outline: none; font-weight: 600;
}
.query-input::placeholder { color: #94a3b8; font-weight: 400; font-size: 0.95rem; transition: opacity 0.3s;}
.query-input:focus::placeholder { opacity: 0.5; }

/* 磁性按钮包装器 */
.search-btn {
    position: absolute; right: 8px; padding: 14px 32px; font-size: 1.05rem; gap: 8px;
    box-shadow: 0 4px 15px rgba(51, 128, 200, 0.3); border-radius: 40px;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s, opacity 0.3s;
    will-change: transform;
}
.search-btn:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; transform: none !important;}
.privacy-alert { text-align: center; color: var(--text-sub); font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px dashed rgba(0,0,0,0.1); }
.text-green { color: #10b981; }

/* 炫酷雷达欢迎状态 */
.welcome-state { text-align: center; padding: 4rem 2rem; max-width: 600px; margin: 0 auto; color: var(--text-sub); }
.radar-box { position: relative; width: 100px; height: 100px; margin: 0 auto 2.5rem; display: flex; align-items: center; justify-content: center; }
.radar-icon { font-size: 3.5rem; color: var(--primary-color); z-index: 5; position: relative; text-shadow: 0 0 20px rgba(51, 128, 200, 0.5);}
.radar-wave {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%; border: 2px solid var(--primary-color);
    animation: radarScan 2.5s cubic-bezier(0.2, 0, 0.2, 1) infinite;
    opacity: 0;
}
.radar-wave.delay { animation-delay: 1.25s; }
@keyframes radarScan {
    0% { transform: scale(0.8); opacity: 0.8; border-width: 3px; }
    100% { transform: scale(2.8); opacity: 0; border-width: 1px; }
}
.welcome-state h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: 700; }

/* 骨架屏加载状态修复 */
.skeleton-state { text-align: center; padding: 3rem 2rem; color: var(--text-sub); }
.skeleton-state h3 { font-size: 1.3rem; color: var(--text-main); margin-top: 1rem; margin-bottom: 0.5rem; }
.loader-spinner { font-size: 3rem; color: var(--primary-color); }

/* 订单列表容器 */
.orders-container { max-width: 1050px; margin: 0 auto; padding: 2.5rem; }
.orders-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 1.5rem;}
.orders-header h2 { font-size: 1.5rem; color: var(--text-main); display: flex; align-items: center; gap: 10px; margin:0;}
.order-count { background: rgba(51, 128, 200, 0.1); color: var(--primary-color); padding: 6px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(51, 128, 200, 0.2);}

/* 动态列表载入动画 */
.dynamic-show { opacity: 0; transform: translateY(30px) scale(0.98); animation: slideUpPop 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
@keyframes slideUpPop { to { opacity: 1; transform: translateY(0) scale(1); } }

/* 3D 卡片悬浮交互 + 动态反光 Glare */
.grid-list { display: grid; gap: 1.8rem; grid-template-columns: 1fr; perspective: 1500px; }
.simple-card {
    background: rgba(255,255,255,0.7);
    border-radius: var(--border-radius); padding: 2rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    border: 1px solid rgba(255,255,255,0.8);
    cursor: pointer; position: relative; overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
}
/* 鼠标跟随反光层 */
.card-glare {
    position: absolute; width: 250%; height: 250%; top: -75%; left: -75%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 40%);
    pointer-events: none; opacity: 0; mix-blend-mode: overlay; transition: opacity 0.3s ease; z-index: 10;
}
.simple-card:hover {
    box-shadow: 0 25px 50px -12px rgba(51, 128, 200, 0.2), 0 0 0 1px rgba(51, 128, 200, 0.3);
    background: rgba(255,255,255,0.95); z-index: 100;
}
.simple-card:hover .card-glare { opacity: 1; }

/* 内部结构布局补充（环形图修复） */
.sc-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.sc-content { flex: 1; }
.svg-progress-wrapper { width: 85px; height: 85px; flex-shrink: 0; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 250px; }
.circle-bg { fill: none; stroke: rgba(0,0,0,0.06); stroke-width: 2.5; }
.circle { fill: none; stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray 1.2s ease-out; }
.percentage { fill: var(--text-main); font-family: 'JetBrains Mono', monospace; font-size: 0.6em; text-anchor: middle; font-weight: 700; }
.completed .circle { stroke: var(--accent-color); }
.in-progress .circle { stroke: var(--primary-color); }
.pending .circle { stroke: #d97706; }

.sc-header { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; transform: translateZ(20px); }
.sc-title { font-size: 1.4rem; font-weight: 800; color: var(--text-main); margin-top: 15px; margin-bottom: 8px; letter-spacing: 0.5px;}
.sc-meta { font-family: 'JetBrains Mono', monospace; color: var(--text-sub); font-size: 0.85rem; background: rgba(0,0,0,0.03); padding: 4px 10px; border-radius: 6px; display: inline-flex; gap: 10px;}

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.status-badge.in-progress { background: rgba(51, 128, 200, 0.1); color: var(--primary-color); border: 1px solid rgba(51, 128, 200, 0.2);}
.status-badge.completed { background: rgba(16, 185, 129, 0.1); color: var(--accent-color); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-badge.pending { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }

/* 高级条纹动画能量条 */
.sc-progress { background: rgba(248, 250, 252, 0.8); padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.03); transform: translateZ(30px); position: relative; z-index: 2;}
.prog-info { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; font-weight: 600; color: var(--text-main);}
.prog-info span:last-child { color: var(--text-sub); font-weight: 500; font-family: 'JetBrains Mono', monospace;}
.prog-track { height: 10px; background: rgba(0,0,0,0.06); border-radius: 5px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.prog-fill { 
    height: 100%; border-radius: 5px; 
    background-size: 1rem 1rem;
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(51, 128, 200, 0.5);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); 
    animation: progress-stripes 1s linear infinite;
}
.prog-fill.done { background-color: var(--accent-color); box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); animation: none;}
@keyframes progress-stripes { from { background-position: 1rem 0; } to { background-position: 0 0; } }

/* 无结果提示 */
.no-results { text-align: center; padding: 5rem 2rem; max-width: 600px; margin: 0 auto; }
.no-results-icon { font-size: 4rem; color: #cbd5e1; margin-bottom: 1.5rem; }
.no-results h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: 700;}
.no-results p { color: var(--text-sub); margin-bottom: 2.5rem; }
.no-results-contact { display: inline-flex; flex-direction: column; text-align: left; background: rgba(255,255,255,0.6); padding: 1.5rem 3rem; border-radius: 16px; color: var(--text-main); font-weight: 500; border: 1px solid var(--border-color); }
.no-results-contact p { margin: 0.5rem 0; display: flex; align-items: center; gap: 12px; font-size: 1.05rem;}
.no-results-contact i { color: var(--primary-color); font-size: 1.2rem; }

/* ================= 模态框与生产轨迹动画 (Timeline) ================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.glass-modal { background: rgba(255,255,255,0.95); backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.8); border-radius: 24px; width: 90%; max-width: 700px; max-height: 85vh; display: flex; flex-direction: column; transform: scale(0.9) translateY(40px); opacity: 0; transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 30px 60px -12px rgba(0,0,0,0.3); }
.modal-overlay.active .glass-modal { transform: scale(1) translateY(0); opacity: 1; }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); background: linear-gradient(to right, rgba(248, 250, 252, 0.8), rgba(255,255,255,0.5)); border-radius: 24px 24px 0 0;}
.modal-header h3 { margin: 0; font-size: 1.3rem; color: var(--text-main); display: flex; align-items: center; gap: 10px; font-weight: 800;}
.modal-close { background: rgba(0,0,0,0.04); border: none; width: 36px; height: 36px; border-radius: 50%; color: var(--text-sub); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;}
.modal-close:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg) scale(1.1);}

.modal-body { padding: 2.5rem; overflow-y: auto; }

/* 生产轨迹节点 Timeline - 流水线灌注效果 */
.timeline-container { position: relative; display: flex; justify-content: space-between; margin-bottom: 2.5rem; padding: 0 10px; }
.timeline-track { position: absolute; top: 20px; left: 0; width: 100%; height: 3px; background: #e2e8f0; z-index: 1; }
.timeline-fill { position: absolute; top: 20px; left: 0; height: 3px; background: var(--primary-color); z-index: 2; width: 0; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; box-shadow: 0 0 10px var(--primary-color);}
.timeline-step { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 80px; opacity: 0.5; transform: translateY(10px); transition: all 0.4s ease;}
.modal-overlay.active .timeline-step { opacity: 1; transform: translateY(0); } /* 弹窗打开时浮现 */

.step-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid #e2e8f0; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 1.1rem; transition: all 0.5s; }
.step-text { font-size: 0.85rem; color: var(--text-sub); font-weight: 600; text-align: center; transition: color 0.3s;}
.timeline-step.active .step-icon { border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 0 0 4px rgba(51, 128, 200, 0.15); transform: scale(1.1);}
.timeline-step.active .step-text { color: var(--primary-color); }
.timeline-step.done .step-icon { background: var(--primary-color); border-color: var(--primary-color); color: #fff; transform: scale(1); }

/* 模态框基础数据 */
.m-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; background: #f8fafc; padding: 1.5rem; border-radius: 16px; border: 1px solid rgba(0,0,0,0.03);}
.m-info-item p { margin: 0; font-size: 0.8rem; color: var(--text-light); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;}
.m-info-item h4 { margin: 0; font-size: 1.1rem; color: var(--text-main); font-weight: 700; font-family: 'JetBrains Mono', monospace;}

.m-section-title { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 8px;}
.m-section-title i { color: var(--primary-color); }

/* 弹窗二级部件卡片 - 错落滑入动画 */
.comp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.comp-item { 
    background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; 
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    opacity: 0; transform: translateX(20px); 
}
.modal-overlay.active .comp-item {
    animation: slideInRight 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes slideInRight { to { opacity: 1; transform: translateX(0); } }

.comp-item:hover { border-color: var(--primary-color); transform: translateY(-3px) !important; box-shadow: 0 10px 20px rgba(51, 128, 200, 0.1);}
.comp-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.comp-name { font-weight: 700; color: var(--text-main); font-size: 1.1rem; display: block;}
.comp-tags { display: flex; flex-wrap: wrap; gap: 6px;}
.c-tag { font-size: 0.75rem; background: #f1f5f9; padding: 4px 10px; border-radius: 6px; color: var(--text-sub); font-weight: 500;}

.comp-data { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;}
.c-num { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 800; color: var(--text-main);}
.c-total { font-size: 0.85rem; color: var(--text-light); font-weight: 500;}

.m-notes { margin-top: 2.5rem; background: #fffbeb; border: 1px solid #fde68a; padding: 1.5rem; border-radius: 12px; font-size: 0.95rem; color: #92400e; line-height: 1.6;}

/* Toast 提示 */
.toast-container { position: fixed; top: 100px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;}
.toast { background: white; padding: 14px 24px; border-radius: 12px; box-shadow: 0 15px 30px -5px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-weight: 600; color: var(--text-main); border: 1px solid var(--border-color);}
.toast.show { transform: translateX(0); }
.toast-success i { color: #10b981; font-size: 1.2rem;}
.toast-error i { color: #ef4444; font-size: 1.2rem;}

/* 响应式 */
@media (max-width: 768px) {
    .page-main-wrapper { padding-top: 100px; padding-bottom: 40px;}
    .page-header { padding: 2.5rem 1rem; margin-bottom: 2rem;}
    .page-header .page-title { font-size: 2.2rem; }
    .query-card { margin: 0 15px 2rem; padding: 2.5rem 1.5rem; }
    .input-wrapper { flex-direction: column; border-radius: 16px; background: transparent; border: none; gap: 12px; padding: 0;}
    .input-wrapper:focus-within { box-shadow: none; transform: none;}
    .input-svg-icon { top: 18px; left: 18px;}
    .query-input { padding: 16px 15px 16px 50px; border-radius: 12px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.9); box-shadow: var(--shadow-sm);}
    .search-btn { position: relative; width: 100%; border-radius: 12px; right: 0; padding: 15px; display: flex; justify-content: center;}
    
    .orders-container { padding: 1.5rem; margin: 0 15px;}
    .sc-inner { flex-direction: column; gap: 12px;}
    .sc-meta { flex-wrap: wrap;}
    
    .timeline-step { width: 60px; }
    .step-text { font-size: 0.75rem; }
    .m-info-grid { grid-template-columns: 1fr; }
    .comp-list { grid-template-columns: 1fr; }
    .modal-body { padding: 1.5rem;}
    .modal-header { padding: 1.2rem 1.5rem;}
}