/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 玻璃拟态效果 */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 导航菜单项 */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  text-decoration: none;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
  transform: translateX(0);
}

.nav-item.active:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.nav-group-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  padding: 0.5rem 0.75rem;
  margin: 0.125rem 0;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
}

.nav-group-title:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.nav-group-title:hover .nav-group-arrow {
  color: #64748b;
}

.nav-group-active {
  background-color: #eff6ff;
  color: #2563eb;
}

.nav-group-active:hover {
  background-color: #dbeafe;
}

.nav-group-active .nav-group-arrow {
  color: #3b82f6;
}

.nav-group-items {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid #e2e8f0;
}

.nav-group-arrow {
  transition: transform 0.2s ease, color 0.2s ease;
  color: #94a3b8;
  font-size: 0.875rem;
}

.nav-group-title:hover .nav-group-arrow {
  color: #64748b;
}


/* ===== 子菜单样式（智能上架等）===== */
.nav-item-with-children {
  display: flex;
  align-items: center;
}
.nav-item-with-children .flex-1 {
  flex: 1;
}
.nav-chevron {
  transition: transform 0.2s ease;
  font-size: 0.7rem;
  margin-left: auto;
  padding: 2px;
}

.nav-item-parent-active {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}
.nav-item-parent-active:hover {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.nav-children-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-left: 0.5rem;
  padding: 6px 4px 6px 12px;
  border-left: 2px solid #e2e8f0;
  margin-top: 2px;
  margin-bottom: 4px;
}

.nav-child-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-child-item:hover {
  background-color: #f1f5f9;
  color: #334155;
}
.nav-child-item.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}
.nav-child-item.active i {
  color: rgba(255,255,255,0.85) !important;
}

/* ===== 智能上架子标签按钮（页面内2×2网格）===== */
.inv-subtab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.inv-subtab:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-1px);
}
.inv-subtab.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
  font-weight: 600;
}
.inv-subtab i { font-size: 1rem; }


/* 统计卡片 */
.stat-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  background: white;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* 标签页 */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.tab-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-item:hover {
  color: #3b82f6;
}

.tab-item.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* 汇率列表居中对齐 */
.data-table th.text-center,
.data-table td.text-center {
  text-align: center !important;
}

/* 状态标签 */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.status-info {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.status-default {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

/* 卡片 */
.card {
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.card-body {
  padding: 1.5rem;
}

/* 输入框 */
.input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: #1e293b;
  background: white;
  transition: all 0.2s;
  outline: none;
}

.input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input::placeholder {
  color: #94a3b8;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #475569;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast */
.toast {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #94a3b8;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.5rem;
}

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

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.tag-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.tag-red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.tag-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.tag-gray {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

/* 进度条 */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  transition: width 0.3s ease;
}

/* 上传区域 */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}

.dropzone:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.dropzone.dragover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.dropzone i {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.dropzone h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.25rem;
}

.dropzone p {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* 标签页按钮 */
.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.tab-btn.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
}

/* 合计行 */
.tr-total td {
  font-weight: 700 !important;
  background: #f0f4ff !important;
  border-top: 2px solid #3b82f6;
}

/* 正负金额 */
.pos {
  color: #10b981;
}

.neg {
  color: #ef4444;
}

/* 隐藏 */
.hidden {
  display: none !important;
}

/* ========== 跟卖监控深色卡片（参考管理面板）========== */
.comp-card {
  background: linear-gradient(135deg, #f8f7fc 0%, #f0edfa 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.comp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), transparent);
}

.comp-card:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.comp-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.comp-badge-green {
  font-size: 11px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 500;
  line-height: 1.5;
}

.comp-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  margin-top: 2px;
}

.comp-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}
.comp-result-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.comp-result-card .section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.comp-result-card .gray-text {
  font-size: 12px;
  color: #9ca3af;
}

/* ========== 商品列表页面样式 ========== */

/* 状态标签导航 */
.product-status-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

.status-tab {
  position: relative;
  padding: 0.625rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}

.status-tab:hover {
  color: #2563eb;
}

/* 商品表格优化 */
.data-table .product-info-cell {
  min-width: 280px;
}

.data-table .product-info-cell img {
  flex-shrink: 0;
}

.data-table .product-info-cell .product-title {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 操作列链接 */
.data-table .action-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.data-table .action-links a {
  font-size: 0.75rem;
  color: #3b82f6;
  text-decoration: none;
}

.data-table .action-links a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 分页器 */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.pagination-bar .page-input {
  width: 3rem;
  text-align: center;
  padding: 0.25rem 0.375rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* 评分圆环占位 */
.rating-ring-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #9ca3af;
  font-size: 0.75rem;
}

/* 商品状态标签 */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}

/* ========== 数据大屏深色主题 ========== */

.ds-panel {
  background: rgba(8, 18, 35, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.ds-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  pointer-events: none;
}

.ds-tab {
  font-size: 11px;
  color: #5a6a88;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.ds-tab:hover {
  color: #8a9bb8;
  background: rgba(0, 212, 255, 0.05);
}

.ds-tab-active {
  font-size: 11px;
  color: #00d4ff;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.ds-empty {
  color: #3a4a68;
  font-size: 13px;
  text-align: center;
  padding: 32px 0;
}

/* ========== 数据大屏同步按钮 ========== */

.ds-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.08);
  color: #00d4ff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  outline: none;
}

.ds-sync-btn:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.ds-sync-btn:active {
  transform: scale(0.97);
}

.ds-sync-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.ds-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ds-sync-dot.active {
  animation: ds-pulse 2s ease-in-out infinite;
}

.ds-sync-dot.idle {
  background: #5a6a88;
  box-shadow: none;
}

.ds-sync-dot.syncing {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  animation: ds-pulse 1s ease-in-out infinite;
}

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

/* ========== 数据大屏日期筛选按钮 ========== */

.ds-date-btn {
  padding: 3px 10px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 3px;
  background: transparent;
  color: #8a9bb8;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.ds-date-btn:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: #c8d4e8;
  background: rgba(0, 212, 255, 0.05);
}

.ds-date-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  font-weight: 500;
}


/* ========== 数据大屏科技感动画 ========== */

/* 扫描线 */
.ds-scanline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  box-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}
.ds-boot .ds-scanline {
  animation: ds-scan-sweep 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes ds-scan-sweep {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 背景网格 */
.ds-grid-bg {
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: ds-grid-move 20s linear infinite;
}
@keyframes ds-grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* 角标装饰 */
.ds-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,212,255,0.4);
  pointer-events: none;
}
.ds-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.ds-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.ds-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.ds-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* 面板入场动画 - 初始 opacity 在 .ds-boot 内设置，移除后不残留 */
[data-ds-panel] { }
.ds-boot [data-ds-panel] {
  opacity: 0;
  transform: scale(0.92);
  animation: ds-panel-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ds-boot [data-ds-panel="0"] { animation-delay: 0.2s; }
.ds-boot [data-ds-panel="1"] { animation-delay: 0.35s; }
.ds-boot [data-ds-panel="2"] { animation-delay: 0.5s; }
.ds-boot [data-ds-panel="3"] { animation-delay: 0.65s; }
.ds-boot [data-ds-panel="4"] { animation-delay: 0.8s; }
.ds-boot [data-ds-panel="5"] { animation-delay: 0.95s; }
.ds-boot [data-ds-panel="6"] { animation-delay: 1.1s; }
.ds-boot [data-ds-panel="7"] { animation-delay: 1.25s; }

@keyframes ds-panel-in {
  0% { opacity: 0; transform: scale(0.92); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* KPI 数字翻滚 */
.ds-kpi-value {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
.ds-kpi-value.updating {
  animation: ds-kpi-pulse 0.4s ease;
}
@keyframes ds-kpi-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: #00d4ff; text-shadow: 0 0 20px rgba(0,212,255,0.5); }
  100% { transform: scale(1); }
}

/* 边框流光 */
.ds-card {
  position: relative;
  overflow: hidden;
}
.ds-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  opacity: 0;
}
.ds-boot .ds-card::after {
  animation: ds-border-flow 2s ease-in-out 1s;
}
@keyframes ds-border-flow {
  0% { left: -100%; opacity: 1; }
  50% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* 标题逐字出现 - 初始 opacity 在 .ds-boot 内设置 */
.ds-title-char {
  display: inline-block;
}
.ds-boot .ds-title-char {
  opacity: 0;
  transform: translateY(10px);
  animation: ds-char-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes ds-char-in {
  to { opacity: 1; transform: translateY(0); }
}

/* 实时订单表格行入场 - 初始 opacity 在 .ds-boot 内设置 */
.ds-order-row { }
.ds-boot .ds-order-row {
  opacity: 0;
  transform: translateX(-20px);
  animation: ds-row-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ds-boot .ds-order-row:nth-child(1) { animation-delay: 0.8s; }
.ds-boot .ds-order-row:nth-child(2) { animation-delay: 0.88s; }
.ds-boot .ds-order-row:nth-child(3) { animation-delay: 0.96s; }
.ds-boot .ds-order-row:nth-child(4) { animation-delay: 1.04s; }
.ds-boot .ds-order-row:nth-child(5) { animation-delay: 1.12s; }
.ds-boot .ds-order-row:nth-child(6) { animation-delay: 1.20s; }
.ds-boot .ds-order-row:nth-child(7) { animation-delay: 1.28s; }
.ds-boot .ds-order-row:nth-child(8) { animation-delay: 1.36s; }
.ds-boot .ds-order-row:nth-child(9) { animation-delay: 1.44s; }
.ds-boot .ds-order-row:nth-child(10) { animation-delay: 1.52s; }
@keyframes ds-row-slide {
  to { opacity: 1; transform: translateX(0); }
}

/* 同步中脉冲 */
.ds-syncing-pulse {
  animation: ds-sync-pulse 1.5s ease-in-out infinite;
}
@keyframes ds-sync-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0,212,255,0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 12px rgba(0,212,255,0.8); }
}

/* 数据更新闪烁 */
.ds-data-flash {
  animation: ds-flash 0.6s ease;
}
@keyframes ds-flash {
  0% { background: rgba(0,212,255,0.15); }
  100% { background: transparent; }
}

/* 热销榜单项入场 - 初始 opacity 在 .ds-boot 内设置 */
.ds-rank-item { }
.ds-boot .ds-rank-item {
  opacity: 0;
  transform: translateX(-10px);
  animation: ds-rank-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ds-boot .ds-rank-item:nth-child(1) { animation-delay: 0.5s; }
.ds-boot .ds-rank-item:nth-child(2) { animation-delay: 0.56s; }
.ds-boot .ds-rank-item:nth-child(3) { animation-delay: 0.62s; }
.ds-boot .ds-rank-item:nth-child(4) { animation-delay: 0.68s; }
.ds-boot .ds-rank-item:nth-child(5) { animation-delay: 0.74s; }
.ds-boot .ds-rank-item:nth-child(6) { animation-delay: 0.80s; }
.ds-boot .ds-rank-item:nth-child(7) { animation-delay: 0.86s; }
.ds-boot .ds-rank-item:nth-child(8) { animation-delay: 0.92s; }
.ds-boot .ds-rank-item:nth-child(9) { animation-delay: 0.98s; }
.ds-boot .ds-rank-item:nth-child(10) { animation-delay: 1.04s; }
@keyframes ds-rank-in {
  to { opacity: 1; transform: translateX(0); }
}

/* 数字矩阵背景装饰 */
.ds-matrix-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.03;
  font-family: monospace;
  font-size: 10px;
  line-height: 14px;
  color: #00d4ff;
  white-space: pre;
}

/* 背景粒子 */
.ds-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00d4ff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.ds-boot .ds-particle {
  animation: ds-particle-float 3s ease-in-out infinite;
}
@keyframes ds-particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
  80% { opacity: 0.3; transform: translateY(-60px) scale(0.5); }
  100% { opacity: 0; transform: translateY(-80px) scale(0); }
}

/* 透视眼 · 宇宙数据加载画面 */
.vision-loading {
  position: fixed;
  inset: 64px 0 0 260px;
  min-height: 430px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #eaf7ff;
  background: #03101f url('../images/vision-cosmos.png') center / cover no-repeat;
  border-radius: 18px;
  transition: opacity .38s ease, transform .38s ease, filter .38s ease;
}
.vision-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(0, 157, 255, .08) 0 18%, rgba(1, 10, 25, .25) 50%, rgba(0, 4, 13, .78) 100%), linear-gradient(180deg, rgba(0, 8, 20, .12), rgba(0, 8, 20, .62));
  backdrop-filter: saturate(1.15);
}
.vision-loading__nebula {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 190, 255, .20), rgba(21, 106, 225, .07) 38%, transparent 68%);
  filter: blur(12px);
  animation: vision-nebula 4s ease-in-out infinite;
}
.vision-eye { position: relative; width: 240px; height: 150px; display: grid; place-items: center; filter: drop-shadow(0 0 25px rgba(0, 167, 255, .62)); }
.vision-eye__shell {
  position: relative;
  width: 214px;
  height: 112px;
  overflow: hidden;
  border: 2px solid rgba(158, 229, 255, .78);
  border-radius: 52% 48% 52% 48% / 66% 66% 34% 34%;
  background: radial-gradient(circle at 50% 50%, #020b16 0 11%, #044e80 12% 20%, #16baff 21% 24%, #052441 25% 42%, rgba(0, 89, 164, .55) 43% 55%, rgba(2, 14, 29, .9) 72%);
  box-shadow: inset 0 0 22px #10bfff, inset 0 -18px 30px rgba(1, 7, 18, .9), 0 0 9px #46caff, 0 0 36px rgba(0, 133, 255, .8);
  animation: vision-eye-open 2.8s ease-in-out infinite;
}
.vision-eye__shell::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(126, 220, 255, .42); border-radius: inherit; }
.vision-eye__iris { position: absolute; left: 50%; top: 50%; width: 94px; height: 94px; margin: -47px; border-radius: 50%; }
.vision-eye__iris--a { background: repeating-conic-gradient(from 2deg, rgba(99, 218, 255, .95) 0 2deg, transparent 2deg 9deg); -webkit-mask: radial-gradient(circle, transparent 0 25%, #000 27% 49%, transparent 51%); animation: vision-spin 5s linear infinite; }
.vision-eye__iris--b { width: 70px; height: 70px; margin: -35px; border: 1px dashed rgba(195, 241, 255, .8); box-shadow: 0 0 12px #00b7ff; animation: vision-spin-reverse 3.2s linear infinite; }
.vision-eye__pupil { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; display: grid; place-items: center; background: #00040a; border: 2px solid #76dfff; box-shadow: 0 0 8px #fff, 0 0 22px #00b7ff; animation: vision-focus 1.8s ease-in-out infinite; }
.vision-eye__pupil span { width: 8px; height: 8px; border-radius: 50%; background: white; box-shadow: 0 0 8px 3px #49cfff; }
.vision-eye__glint { position: absolute; left: 61%; top: 27%; width: 18px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.9); filter: blur(1px); transform: rotate(-20deg); }
.vision-eye__scan { position: absolute; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, transparent, #fff, #28c8ff, transparent); box-shadow: 0 0 12px #00bfff; animation: vision-scan 2s ease-in-out infinite; }
.vision-eye__orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(89, 208, 255, .55); }
.vision-eye__orbit::before, .vision-eye__orbit::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px #17bfff; }
.vision-eye__orbit--outer { width: 276px; height: 140px; transform: rotate(-12deg); animation: vision-orbit 6s linear infinite; }
.vision-eye__orbit--outer::before { left: 22px; top: 18px; }
.vision-eye__orbit--outer::after { right: 31px; bottom: 8px; }
.vision-eye__orbit--inner { width: 246px; height: 126px; border-style: dashed; opacity: .7; transform: rotate(10deg); animation: vision-orbit-reverse 4.5s linear infinite; }
.vision-eye__ticks { position: absolute; width: 294px; height: 154px; border-radius: 50%; background: repeating-conic-gradient(transparent 0 7deg, rgba(101, 215, 255, .55) 7deg 8deg, transparent 8deg 15deg); -webkit-mask: radial-gradient(ellipse, transparent 0 68%, #000 69% 71%, transparent 72%); animation: vision-spin 12s linear infinite; }
.vision-loading__copy { position: relative; z-index: 2; margin-top: 18px; text-align: center; text-shadow: 0 0 14px rgba(0, 166, 255, .7); }
.vision-loading__eyebrow { color: #69d7ff; font: 600 10px/1.4 monospace; letter-spacing: .34em; }
.vision-loading__title { margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: .1em; }
.vision-loading__status { margin-top: 7px; color: rgba(209, 235, 255, .72); font-size: 12px; letter-spacing: .08em; }
.vision-loading__pulse { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #62ddff; box-shadow: 0 0 8px #27c8ff; animation: vision-pulse 1s ease-in-out infinite; }
.vision-loading__progress { position: relative; z-index: 2; width: min(360px, 70%); margin-top: 24px; }
.vision-loading__track { height: 4px; overflow: hidden; border: 1px solid rgba(98, 202, 255, .28); border-radius: 99px; background: rgba(0, 14, 31, .76); box-shadow: inset 0 0 8px rgba(0, 0, 0, .75); }
.vision-loading__bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087fff, #68e7ff 70%, #fff); box-shadow: 0 0 12px #13beff; transition: width .3s ease; }
.vision-loading__meta { display: flex; justify-content: space-between; margin-top: 7px; color: rgba(129, 213, 255, .78); font: 10px/1.2 monospace; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.vision-loading__stars { position: absolute; inset: 0; pointer-events: none; }
.vision-loading__stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: white; box-shadow: 0 0 7px 2px #43c8ff; animation: vision-star 2.6s ease-in-out infinite; }
.vision-loading__stars i:nth-child(1){left:12%;top:22%}.vision-loading__stars i:nth-child(2){left:18%;top:71%;animation-delay:.4s}.vision-loading__stars i:nth-child(3){left:29%;top:14%;animation-delay:1.1s}.vision-loading__stars i:nth-child(4){left:37%;top:78%;animation-delay:.7s}.vision-loading__stars i:nth-child(5){left:46%;top:20%;animation-delay:1.6s}.vision-loading__stars i:nth-child(6){left:54%;top:81%;animation-delay:.2s}.vision-loading__stars i:nth-child(7){left:65%;top:13%;animation-delay:1.3s}.vision-loading__stars i:nth-child(8){left:72%;top:69%;animation-delay:.8s}.vision-loading__stars i:nth-child(9){left:84%;top:28%;animation-delay:1.9s}.vision-loading__stars i:nth-child(10){left:91%;top:61%;animation-delay:.5s}.vision-loading__stars i:nth-child(11){left:24%;top:47%;animation-delay:1.4s}.vision-loading__stars i:nth-child(12){left:78%;top:45%;animation-delay:1s}
@keyframes vision-spin { to { transform: rotate(360deg); } }
@keyframes vision-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes vision-orbit { to { transform: rotate(348deg); } }
@keyframes vision-orbit-reverse { to { transform: rotate(-350deg); } }
@keyframes vision-focus { 50% { transform: scale(.72); box-shadow: 0 0 15px #fff, 0 0 35px #00b7ff; } }
@keyframes vision-scan { 0%,100% { top: 18%; opacity: .2; } 50% { top: 79%; opacity: 1; } }
@keyframes vision-eye-open { 0%,100% { transform: scaleY(.93); } 48%,52% { transform: scaleY(1); } }
@keyframes vision-nebula { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes vision-pulse { 50% { opacity: .35; transform: scale(.65); } }
@keyframes vision-star { 0%,100% { opacity: .15; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) {
  .vision-loading *, .vision-loading *::before, .vision-loading *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 768px) {
  .vision-loading { left: 0; border-radius: 0; }
}
