/* =============================================
   数据大屏 - 全屏独立页（深蓝炫酷风格）
   中国（天水）跨境电子商务综合试验区
   ============================================= */
* { box-sizing: border-box; }

.dashboard-page {
  margin: 0; padding: 0;
  background: #050e2c;
  color: #c9d6ff;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* 背景 */
.ds-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(30, 64, 175, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(8, 145, 178, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #050e2c 0%, #0a1845 50%, #050e2c 100%);
}
.ds-bg-grid {
  position: fixed; inset: 0; z-index: 0; opacity: 0.15;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: dsGridMove 30s linear infinite;
}
@keyframes dsGridMove {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}
.ds-bg-glow {
  position: fixed; z-index: 0; border-radius: 50%; filter: blur(80px);
  animation: dsGlow 8s ease-in-out infinite alternate;
}
.ds-bg-glow-1 {
  width: 400px; height: 400px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
}
.ds-bg-glow-2 {
  width: 500px; height: 500px; bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent);
  animation-delay: -4s;
}
@keyframes dsGlow {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(1.2); opacity: 1; }
}

/* 顶部标题栏 */
.ds-header {
  position: relative; z-index: 10;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px;
  background: linear-gradient(180deg, rgba(8, 24, 69, 0.9) 0%, rgba(8, 24, 69, 0.5) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
}
.ds-header::before {
  content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, #06b6d4, #3b82f6, transparent);
  box-shadow: 0 0 12px #3b82f6;
}
.ds-header-left, .ds-header-right {
  flex: 1; display: flex; align-items: center; gap: 16px;
}
.ds-header-right { justify-content: flex-end; }
.ds-header-center {
  flex: 0 0 auto; text-align: center;
}
.ds-header-center h1 {
  margin: 0; font-size: 26px; font-weight: 700; color: #fff;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #60a5fa, #06b6d4, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}
.ds-header-sub {
  font-size: 10px; color: #64748b; letter-spacing: 2px; margin-top: 4px;
}
.ds-header-label {
  font-size: 13px; color: #60a5fa; padding: 6px 14px;
  border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
}
.ds-time {
  font-size: 22px; font-weight: 700; color: #06b6d4;
  font-family: 'DIN Alternate', 'Courier New', monospace;
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}
.ds-date { font-size: 12px; color: #64748b; }
.ds-fullscreen-btn {
  background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa; width: 36px; height: 36px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.ds-fullscreen-btn:hover {
  background: rgba(59, 130, 246, 0.4); color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.6);
}

/* 主体三列布局 */
.ds-main {
  position: relative; z-index: 5;
  height: calc(100vh - 70px - 40px);
  padding: 14px;
  display: grid;
  grid-template-columns: 25% 1fr 25%;
  gap: 14px;
}
.ds-col {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 0;
}

/* 面板卡片 */
.ds-panel {
  background: linear-gradient(135deg, rgba(8, 24, 69, 0.6) 0%, rgba(5, 14, 44, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  backdrop-filter: blur(8px);
}
.ds-panel::before {
  content: ''; position: absolute; top: 0; left: 0; width: 30px; height: 30px;
  border-top: 2px solid #06b6d4; border-left: 2px solid #06b6d4;
}
.ds-panel::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 30px;
  border-bottom: 2px solid #06b6d4; border-right: 2px solid #06b6d4;
}
.ds-panel-flex { flex: 1; min-height: 0; }
.ds-panel-title {
  padding: 10px 16px;
  font-size: 14px; font-weight: 600; color: #60a5fa;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
}
.ds-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  animation: dsDotPulse 1.5s ease-in-out infinite;
}
@keyframes dsDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.ds-live-dot {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 10px #ef4444;
  animation: dsDotPulse 1s ease-in-out infinite;
}
.ds-panel-body {
  flex: 1; padding: 10px; min-height: 0; overflow: hidden;
}
.ds-chart { width: 100%; height: 100%; min-height: 180px; }

/* 核心指标卡 */
.ds-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.ds-metric-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(8, 24, 69, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px; padding: 12px 10px; text-align: center;
  position: relative; overflow: hidden;
  transition: all 0.3s;
  opacity: 0; animation: dsCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes dsCardIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
.ds-metric-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
}
.ds-metric-card:hover {
  border-color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}
.ds-metric-icon {
  width: 28px; height: 28px; margin: 0 auto 6px;
  border-radius: 6px; background: rgba(59, 130, 246, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.ds-metric-value {
  font-size: 24px; font-weight: 700; color: #fff;
  font-family: 'DIN Alternate', 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
  line-height: 1.1;
}
.ds-metric-value .unit { font-size: 12px; color: #64748b; margin-left: 3px; }
.ds-metric-name {
  font-size: 11px; color: #94a3b8; margin-top: 4px;
}

/* 企业排行列表 */
.ds-rank-list {
  height: 100%; overflow: hidden;
  padding: 4px; position: relative;
}
.ds-rank-track {
  display: flex; flex-direction: column; gap: 6px;
  animation: dsRankScroll 30s linear infinite;
}
.ds-rank-list:hover .ds-rank-track {
  animation-play-state: paused;
}
@keyframes dsRankScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.ds-rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 4px;
  background: rgba(59, 130, 246, 0.06);
  border-left: 3px solid #3b82f6;
  font-size: 12px;
  animation: dsRankIn 0.5s ease-out forwards;
  opacity: 0;
}
@keyframes dsRankIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}
.ds-rank-num {
  width: 22px; height: 22px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
  background: #3b82f6;
  flex-shrink: 0;
}
.ds-rank-item:nth-child(1) .ds-rank-num { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.ds-rank-item:nth-child(2) .ds-rank-num { background: linear-gradient(135deg, #94a3b8, #64748b); }
.ds-rank-item:nth-child(3) .ds-rank-num { background: linear-gradient(135deg, #f97316, #ea580c); }
.ds-rank-name {
  flex: 1; color: #c9d6ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ds-rank-value {
  color: #06b6d4; font-weight: 600;
  font-family: 'DIN Alternate', 'Courier New', monospace;
}

/* 订单滚动 */
.ds-order-scroll {
  height: 100%; overflow: hidden; position: relative;
}
.ds-order-track {
  position: absolute; top: 0; left: 0; right: 0;
  animation: dsScrollUp 30s linear infinite;
}
@keyframes dsScrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.ds-order-item {
  padding: 8px 10px; margin-bottom: 6px;
  background: rgba(59, 130, 246, 0.06);
  border-left: 3px solid #06b6d4; border-radius: 4px;
  font-size: 12px; display: flex; flex-direction: column; gap: 4px;
  animation: dsOrderIn 0.5s ease-out;
}
@keyframes dsOrderIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.ds-order-row1 {
  display: flex; align-items: center; gap: 8px;
}
.ds-order-type {
  color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 600;
}
.ds-order-type.t9710 { background: #3b82f6; }
.ds-order-type.t9610 { background: #10b981; }
.ds-order-type.t9810 { background: #f59e0b; }
.ds-order-no {
  color: #94a3b8; font-family: 'Courier New', monospace; font-size: 11px;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ds-order-status { font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.ds-order-status.s800 { color: #10b981; background: rgba(16, 185, 129, 0.15); }
.ds-order-status.s100 { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.ds-order-status.sOther { color: #94a3b8; background: rgba(148, 163, 184, 0.15); }
.ds-order-row2 {
  display: flex; justify-content: space-between; color: #c9d6ff;
}
.ds-order-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ds-order-value {
  color: #06b6d4; font-weight: 600; margin-left: 8px;
  font-family: 'DIN Alternate', 'Courier New', monospace;
}

/* 顶部实时动态条（原底部footer移到顶部） */
.ds-footer {
  position: relative; z-index: 10;
  height: 40px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(8, 24, 69, 0.9) 0%, rgba(8, 24, 69, 0.5) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  overflow: hidden;
}
.ds-footer-label {
  flex-shrink: 0; font-size: 13px; color: #06b6d4; font-weight: 600;
  padding: 4px 12px; border: 1px solid rgba(6, 182, 212, 0.4); border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  display: flex; align-items: center; gap: 6px;
}
.ds-footer-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
  animation: dsDotPulse 1s ease-in-out infinite;
}
.ds-footer-marquee {
  flex: 1; overflow: hidden; position: relative; height: 30px;
}
.ds-footer-track {
  display: flex; gap: 60px; position: absolute; height: 30px; align-items: center;
  animation: dsFooterScroll 60s linear infinite;
  white-space: nowrap;
}
@keyframes dsFooterScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ds-log-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: #c9d6ff;
}
.ds-log-type {
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
}
.ds-log-type.order { color: #10b981; background: rgba(16, 185, 129, 0.15); }
.ds-log-type.customs { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.ds-log-type.logistics { color: #3b82f6; background: rgba(59, 130, 246, 0.15); }
.ds-log-type.enterprise { color: #ec4899; background: rgba(236, 72, 153, 0.15); }
.ds-log-time { color: #64748b; font-size: 11px; }
.ds-log-amount { color: #06b6d4; font-weight: 600; }
