:root {
  --ds-bg: #050b18;
  --ds-panel: rgba(8, 28, 58, 0.72);
  --ds-border: rgba(0, 180, 255, 0.35);
  --ds-glow: rgba(0, 132, 255, 0.45);
  --ds-text: #e8f4ff;
  --ds-muted: #7eb8e8;
  --ds-accent: #00d4ff;
  --ds-warn: #ffb347;
  --ds-success: #3dffa8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ds-page {
  width: 100vw;
  height: 100vh;
  padding: 16px 20px 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 82, 217, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #071022 0%, #050b18 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ds-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 132, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 132, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

.ds-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  min-height: 72px;
}

.ds-header__side {
  font-size: 13px;
  color: var(--ds-muted);
}

.ds-header__side--right {
  text-align: right;
}

.ds-header__back {
  color: var(--ds-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ds-header__back:hover {
  color: var(--ds-accent);
}

.ds-title-wrap {
  text-align: center;
}

.ds-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: linear-gradient(180deg, #fff 0%, #7ec8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(0, 180, 255, 0.25);
}

.ds-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ds-accent);
  letter-spacing: 0.35em;
}

.ds-title-deco {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(680px, 70vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ds-accent), transparent);
}

.ds-main {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 1.5fr 1.05fr;
  gap: 14px;
}

.ds-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.ds-panel {
  position: relative;
  background: var(--ds-panel);
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: inset 0 0 24px rgba(0, 100, 200, 0.08);
  overflow: hidden;
}

.ds-panel::before,
.ds-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ds-accent);
}

.ds-panel::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.ds-panel::after {
  right: -1px;
  bottom: -1px;
  border-left: none;
  border-top: none;
}

.ds-panel__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-panel__title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ds-accent), #0052d9);
}

.ds-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ds-kpi {
  padding: 12px;
  border-radius: 6px;
  background: rgba(0, 82, 217, 0.12);
  border: 1px solid rgba(0, 180, 255, 0.15);
}

.ds-kpi__label {
  font-size: 12px;
  color: var(--ds-muted);
  margin-bottom: 6px;
}

.ds-kpi__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ds-kpi__unit {
  font-size: 13px;
  font-weight: 600;
  margin-left: 4px;
  color: var(--ds-muted);
}

.ds-kpi__trend {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ds-success);
}

.ds-kpi__trend.is-down {
  color: #ff7b7b;
}

.ds-center-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.ds-center-hero__num {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 10%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ds-center-hero__label {
  margin-top: 10px;
  font-size: 18px;
  color: var(--ds-muted);
  letter-spacing: 0.2em;
}

.ds-center-hero__sub {
  margin-top: 18px;
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ds-muted);
}

.ds-center-hero__sub strong {
  color: var(--ds-text);
  font-size: 22px;
  margin-right: 4px;
}

.ds-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding-top: 8px;
}

.ds-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ds-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #00d4ff 0%, #0052d9 100%);
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.35);
  transition: height 0.8s ease;
}

.ds-bar-item span {
  font-size: 11px;
  color: var(--ds-muted);
}

.ds-platform-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ds-platform-row {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.ds-platform-row__name {
  font-weight: 700;
}

.ds-platform-row__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ds-platform-row__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0052d9, #00d4ff);
}

.ds-platform-row__fill--kfz {
  background: linear-gradient(90deg, #8b4513, #d4a574);
}

.ds-platform-row__fill--xy {
  background: linear-gradient(90deg, #e6cf00, #ffe60f);
}

.ds-platform-row__pct {
  text-align: right;
  color: var(--ds-accent);
  font-weight: 700;
}

.ds-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ds-category {
  text-align: center;
  padding: 14px 8px;
  border-radius: 6px;
  background: rgba(0, 82, 217, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.12);
}

.ds-category__name {
  font-size: 13px;
  color: var(--ds-muted);
  margin-bottom: 8px;
}

.ds-category__val {
  font-size: 24px;
  font-weight: 800;
  color: var(--ds-text);
}

.ds-scroll-body {
  will-change: transform;
}

.ds-footer {
  position: relative;
  z-index: 2;
  min-height: 180px;
}

.ds-scroll-wrap {
  height: 130px;
  overflow: hidden;
  position: relative;
}

.ds-scroll-wrap::before,
.ds-scroll-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 1;
  pointer-events: none;
}

.ds-scroll-wrap::before {
  top: 0;
  background: linear-gradient(180deg, rgba(8, 28, 58, 0.95), transparent);
}

.ds-scroll-wrap::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(8, 28, 58, 0.95), transparent);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ds-table th,
.ds-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 180, 255, 0.08);
}

.ds-table th {
  color: var(--ds-muted);
  font-weight: 600;
}

.ds-table td {
  color: var(--ds-text);
}

.ds-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.ds-tag--done {
  color: #3dffa8;
  background: rgba(61, 255, 168, 0.12);
}

.ds-tag--ship {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.12);
}

.ds-tag--wait {
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
}

@media (max-width: 1200px) {
  .ds-main {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  html,
  body,
  .ds-page {
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }

  .ds-center-hero__num {
    font-size: 52px;
  }
}
