/* 订单管理页面样式 */ /* 管理员导航 - 已移除 */ /* 统计卡片 */ .stats-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-card { background: linear-gradient(145deg, #1a1a1a, #2d2d2d); padding: 25px; border-radius: 15px; text-align: center; border: 1px solid #444; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); position: relative; overflow: hidden; } .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ffd700, #ffed4a); } .stat-card h3 { color: #b0b0b0; font-size: 1.1em; margin-bottom: 10px; font-weight: 500; } .stat-card span { color: #ffd700; font-size: 2.2em; font-weight: bold; display: block; text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); } /* 订单表格区域 */ .orders-section { background: linear-gradient(145deg, #1a1a1a, #2d2d2d); border-radius: 15px; padding: 30px; border: 1px solid #444; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #333; flex-wrap: wrap; gap: 15px; } .section-header h2 { color: #ffffff; font-size: 1.5em; margin: 0; } .header-controls { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; } .search-box { display: flex; gap: 10px; } .search-box input { padding: 10px 15px; background: #0a0a0a; border: 2px solid #444; border-radius: 8px; color: #e0e0e0; width: 250px; font-size: 14px; } .search-box input:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); } .search-btn { padding: 10px 18px; background: linear-gradient(135deg, #ffd700, #ffed4a); color: #000; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; } .search-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3); } .section-header select { padding: 10px 15px; background: #0a0a0a; border: 2px solid #444; border-radius: 8px; color: #e0e0e0; font-size: 14px; min-width: 120px; } .section-header select:focus { outline: none; border-color: #ffd700; } /* 表格容器 */ .orders-table-container { overflow-x: auto; background: #0a0a0a; border-radius: 10px; border: 1px solid #333; } .orders-table { width: 100%; border-collapse: collapse; font-size: 14px; } .orders-table th { background: linear-gradient(145deg, #2d2d2d, #3d3d3d); color: #ffd700; padding: 15px 12px; text-align: left; font-weight: bold; border-bottom: 2px solid #444; position: sticky; top: 0; z-index: 10; } .orders-table td { padding: 12px; border-bottom: 1px solid #333; color: #e0e0e0; vertical-align: middle; } .orders-table tbody tr { transition: background-color 0.3s ease; } .orders-table tbody tr:hover { background-color: rgba(255, 215, 0, 0.05); } .loading { text-align: center; color: #b0b0b0; font-style: italic; padding: 50px !important; } /* 状态标签 */ .status-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; } .status-pending { background: rgba(255, 193, 7, 0.2); color: #ffc107; border: 1px solid #ffc107; } .status-finished { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; } .status-shipped { background: rgba(0, 123, 255, 0.2); color: #007bff; border: 1px solid #007bff; } .status-completed { background: rgba(108, 117, 125, 0.2); color: #6c757d; border: 1px solid #6c757d; } .status-failed { background: rgba(220, 53, 69, 0.2); color: #dc3545; border: 1px solid #dc3545; } /* 操作按钮 */ .action-btn { padding: 6px 12px; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: bold; margin-right: 5px; margin-bottom: 4px; transition: all 0.3s ease; display: inline-block; } .btn-copy { background: linear-gradient(135deg, #3498db, #2980b9); color: #fff; border: 1px solid #3498db; } .btn-copy:hover { background: linear-gradient(135deg, #2980b9, #1f639a); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4); } .btn-ship { background: linear-gradient(135deg, #ffd700, #ffed4a); color: #000; border: 1px solid #ffd700; } .btn-ship:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4); } /* 订单详情模态框 */ .order-detail-content { color: #e0e0e0; } .detail-section { margin-bottom: 25px; padding: 20px; background: linear-gradient(145deg, #0a0a0a, #1a1a1a); border-radius: 10px; border: 1px solid #333; } .detail-section h4 { color: #ffd700; margin-bottom: 15px; font-size: 1.1em; padding-bottom: 8px; border-bottom: 1px solid #333; } .detail-row { display: flex; justify-content: space-between; margin-bottom: 10px; padding: 8px 0; } .detail-row:last-child { margin-bottom: 0; } .detail-label { font-weight: bold; color: #b0b0b0; } .detail-value { color: #e0e0e0; } /* 发货表单 */ .shipping-form .form-group { margin-bottom: 20px; } .shipping-form label { display: block; margin-bottom: 8px; color: #ffffff; font-weight: 600; } .shipping-form input, .shipping-form select, .shipping-form textarea { width: 100%; padding: 12px; background: #0a0a0a; border: 2px solid #444; border-radius: 8px; color: #e0e0e0; font-size: 14px; } .shipping-form input:focus, .shipping-form select:focus, .shipping-form textarea:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); } .form-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 25px; } .btn-primary { padding: 12px 25px; background: linear-gradient(135deg, #ffd700, #ffed4a); color: #000; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4); } .btn-secondary { padding: 12px 25px; background: linear-gradient(145deg, #333, #444); color: #e0e0e0; border: 1px solid #555; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; } .btn-secondary:hover { background: linear-gradient(145deg, #444, #555); transform: translateY(-2px); } /* 复制按钮样式 */ .copy-btn { background: none; border: none; color: #ffd700; cursor: pointer; font-size: 12px; margin-left: 8px; padding: 2px 4px; border-radius: 3px; transition: all 0.3s ease; opacity: 0.7; } .copy-btn:hover { opacity: 1; background: rgba(255, 215, 0, 0.1); transform: scale(1.1); } /* 复制成功提示 */ .copy-toast { position: fixed; top: 20px; right: 20px; background: linear-gradient(135deg, #00ff88, #00cc6a); color: #000; padding: 12px 20px; border-radius: 8px; font-weight: bold; font-size: 14px; z-index: 9999; box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3); animation: slideIn 0.3s ease-out; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* 响应式设计 */ @media (max-width: 768px) { .stats-section { grid-template-columns: repeat(2, 1fr); } .section-header { flex-direction: column; align-items: stretch; } .header-controls { justify-content: space-between; } .search-box input { width: 180px; } .orders-table { font-size: 12px; } .orders-table th, .orders-table td { padding: 8px 6px; } .action-btn { padding: 4px 8px; font-size: 11px; } .copy-btn { font-size: 10px; margin-left: 4px; } }