/* ===== 功能看板展示（全站可复用） ===== */
.dash-showcase-section {
  padding-top: 56px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.dash-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* ===== detail 模式：全宽一行 + 分类（roadmap） ===== */
.dash-showcase-section--detail {
  padding-bottom: 96px;
}

.dash-cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0 24px;
}
.dash-cat-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0369a1;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  transition: background 0.15s, box-shadow 0.15s;
}
.dash-cat-nav-chip:hover {
  background: #e0f2fe;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}

.dash-showcase-category {
  margin-top: 56px;
  scroll-margin-top: 88px;
}
.dash-showcase-category:first-of-type { margin-top: 40px; }
.dash-showcase-category-head {
  text-align: center;
  margin-bottom: 28px;
}
.dash-showcase-category-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}
.dash-showcase-category-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--text-primary);
  margin-bottom: 8px;
}
.dash-showcase-category-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.dash-showcase-category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.dash-showcase-category-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.dash-showcase-category-tag:hover {
  color: #0284c7;
  border-color: #bae6fd;
  background: #e0f2fe;
}

.dash-detail-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.dash-detail-row {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.dash-detail-row:hover {
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--dash-accent, #0ea5e9) 35%, var(--border));
}

.dash-detail-meta {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.dash-detail-index {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 12px;
}
.dash-detail-meta h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 10px 0 8px;
  line-height: 1.35;
}
.dash-detail-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
}
.dash-detail-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-detail-highlights li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  border-top: 1px dashed #e2e8f0;
}
.dash-detail-highlights li:first-child { border-top: none; }
.dash-detail-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dash-accent, #0ea5e9);
}

.dash-detail-stage {
  padding: 20px;
  background: #eef2f7;
  min-height: 380px;
  display: flex;
  align-items: stretch;
}
.dash-detail-frame {
  flex: 1;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dash-detail-frame.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.dash-detail-frame .dash-cmd {
  min-height: 100%;
}
.dash-detail-frame .dash-cmd-phone-wrap {
  justify-content: center;
  min-height: 340px;
}

.dash-cmd-inv-foot,
.dash-cmd-fin-foot,
.dash-cmd-rev-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.68rem;
  color: #94a3b8;
}
.dash-cmd-sales-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 12px !important;
}
.dash-cmd-sales-stats div {
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}
.dash-cmd-sales-stats strong {
  display: block;
  font-size: 1.1rem;
  color: #e2e8f0;
}
.dash-cmd-sales-stats span {
  font-size: 0.62rem;
  color: #94a3b8;
}
.dash-cmd-inbox-row .src.walk { background: #64748b; }

@media (max-width: 960px) {
  .dash-detail-row {
    grid-template-columns: 1fr;
  }
  .dash-detail-meta {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dash-detail-stage { min-height: 320px; }
}

@media (max-width: 640px) {
  .dash-detail-list { padding: 0 16px; gap: 20px; }
  .dash-cat-nav { padding: 0 16px; }
}

.dash-showcase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.dash-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 165, 233, 0.3);
}

.dash-showcase-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.dash-showcase-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.dash-showcase-head h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.dash-showcase-head p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.dash-showcase-preview {
  padding: 16px;
  background: #f1f5f9;
  min-height: 220px;
}

.dash-mock {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  font-size: 0.72rem;
  color: #475569;
}
.dash-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.dash-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.dash-mock-dot:nth-child(1) { background: #f87171; }
.dash-mock-dot:nth-child(2) { background: #fbbf24; }
.dash-mock-dot:nth-child(3) { background: #34d399; }
.dash-mock-title {
  margin-left: 6px;
  font-weight: 600;
  color: #64748b;
  font-size: 0.68rem;
}
.dash-mock-body {
  padding: 14px;
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dash-kpi {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #eef2f7;
}
.dash-kpi strong {
  display: block;
  font-size: 0.95rem;
  color: #0284c7;
  line-height: 1.2;
}
.dash-kpi span {
  display: block;
  font-size: 0.62rem;
  color: #94a3b8;
  margin-top: 4px;
}
.dash-kpi.up strong { color: #059669; }
.dash-kpi.warn strong { color: #d97706; }

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding-top: 8px;
}
.dash-bar-col {
  flex: 1;
  text-align: center;
}
.dash-bar {
  width: 70%;
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #38bdf8, #6366f1);
  min-height: 8px;
}
.dash-bar-label {
  font-size: 0.58rem;
  color: #94a3b8;
  margin-top: 4px;
}

.dash-queue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-queue-col {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
}
.dash-queue-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 8px;
}
.dash-queue-item {
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-left: 3px solid #0ea5e9;
  font-size: 0.62rem;
}
.dash-queue-item b { color: #1e293b; }
.dash-queue-item.wash { border-left-color: #10b981; }

.dash-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.dash-kanban-col {
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px;
  min-height: 90px;
}
.dash-kanban-col h4 {
  font-size: 0.58rem;
  color: #64748b;
  margin-bottom: 6px;
  text-align: center;
}
.dash-kanban-card {
  background: #fff;
  border-radius: 4px;
  padding: 5px;
  margin-bottom: 4px;
  font-size: 0.58rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dash-funnel {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dash-funnel-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #0ea5e9;
  font-size: 0.65rem;
}
.dash-funnel-step:nth-child(2) { width: 96%; border-color: #6366f1; }
.dash-funnel-step:nth-child(3) { width: 88%; border-color: #8b5cf6; }
.dash-funnel-step:nth-child(4) { width: 80%; border-color: #10b981; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.62rem;
}
.dash-table th,
.dash-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.dash-table th {
  color: #94a3b8;
  font-weight: 600;
}
.dash-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 600;
}
.dash-badge.ok { background: #dcfce7; color: #166534; }
.dash-badge.warn { background: #fef3c7; color: #92400e; }
.dash-badge.info { background: #e0f2fe; color: #0369a1; }

.dash-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-channel-row {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 0.62rem;
}
.dash-channel-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}
.dash-channel-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  border-radius: 3px;
}

.dash-mobile {
  max-width: 200px;
  margin: 0 auto;
  border-radius: 16px;
  border: 3px solid #1e293b;
  overflow: hidden;
  background: #fff;
}
.dash-mobile-notch {
  height: 18px;
  background: #1e293b;
}
.dash-mobile-body {
  padding: 12px;
}
.dash-mobile-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.dash-mobile-stat div {
  background: #f0f9ff;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.dash-mobile-stat strong {
  display: block;
  font-size: 0.85rem;
  color: #0284c7;
}

.dash-sync {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-sync-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.65rem;
}
.dash-sync-item span:first-child { font-weight: 600; color: #1e293b; }

@media (max-width: 960px) {
  .dash-showcase-grid { grid-template-columns: 1fr; }
  .dash-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dash-kanban { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .dash-kpi-row { grid-template-columns: 1fr 1fr; }
}

/* ===== 一模块一屏 · 大屏沉浸模式（roadmap） ===== */
.dash-showcase-section--cinema {
  padding-top: 0;
  padding-bottom: 0;
  background: #030712;
}

.dash-showcase-section--cinema .section-header {
  position: relative;
  z-index: 2;
  padding: 56px 0 24px;
  color: #e2e8f0;
}
.dash-showcase-section--cinema .section-header .section-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.dash-showcase-section--cinema .section-header h2 {
  color: #f8fafc;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.dash-showcase-section--cinema .section-desc {
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
}

.dash-screen-nav {
  position: sticky;
  top: var(--header-height, 72px);
  z-index: 50;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dash-screen-nav-inner {
  display: flex;
  gap: 4px;
  padding: 10px 24px;
  max-width: 1400px;
  margin: 0 auto;
  min-width: max-content;
}
.dash-screen-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.dash-screen-nav-item:hover { color: #cbd5e1; background: rgba(255,255,255,0.04); }
.dash-screen-nav-item.active {
  color: #f0f9ff;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}
.dash-screen-nav-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  opacity: 0.85;
}

.dash-screen-stack { scroll-snap-type: y proximity; }

.dash-screen {
  position: relative;
  min-height: min(92vh, 900px);
  padding: 64px 0 80px;
  scroll-snap-align: start;
  overflow: hidden;
}
.dash-screen-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, color-mix(in srgb, var(--screen-accent) 18%, transparent), transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99, 102, 241, 0.08), transparent 60%),
    linear-gradient(180deg, #030712 0%, #0f172a 50%, #030712 100%);
}
.dash-screen-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}

.dash-screen-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.dash-screen-index {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #475569;
  margin-bottom: 12px;
}
.dash-screen-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--screen-accent);
  background: color-mix(in srgb, var(--screen-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--screen-accent) 30%, transparent);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.dash-screen-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.dash-screen-desc {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0;
}

.dash-screen-stage {
  position: relative;
  perspective: 1200px;
}
.dash-screen-glow {
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--screen-accent) 35%, transparent), transparent 65%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}
.dash-screen-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px color-mix(in srgb, var(--screen-accent) 25%, transparent);
  overflow: hidden;
  transform: rotateX(4deg) scale(0.96);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}
.dash-screen-frame.is-visible {
  transform: rotateX(0deg) scale(1);
  opacity: 1;
}

/* 大屏内嵌 UI */
.dash-cmd {
  --dash-accent: #38bdf8;
  background: #0b1220;
  color: #cbd5e1;
  font-size: 0.78rem;
  min-height: 420px;
}
.dash-cmd-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.dash-cmd-dots { display: flex; gap: 6px; }
.dash-cmd-dots i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
  background: #334155;
}
.dash-cmd-dots i:nth-child(1) { background: #f87171; }
.dash-cmd-dots i:nth-child(2) { background: #fbbf24; }
.dash-cmd-dots i:nth-child(3) { background: #34d399; }
.dash-cmd-title { flex: 1; font-weight: 600; color: #94a3b8; font-size: 0.72rem; }
.dash-cmd-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 700; color: #34d399;
}
.dash-cmd-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: dash-pulse 2s infinite;
}
@keyframes dash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.dash-cmd-layout { display: flex; min-height: 380px; }
.dash-cmd-side {
  width: 52px;
  background: rgba(15, 23, 42, 0.6);
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.dash-cmd-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--dash-accent), #6366f1);
  color: #fff; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.dash-cmd-nav { display: flex; flex-direction: column; gap: 10px; }
.dash-cmd-nav i {
  width: 28px; height: 6px; border-radius: 3px; background: #334155; display: block;
}
.dash-cmd-nav i.on { background: var(--dash-accent); box-shadow: 0 0 10px color-mix(in srgb, var(--dash-accent) 60%, transparent); }

.dash-cmd-main { flex: 1; padding: 20px; overflow: hidden; }

.dash-cmd-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dash-cmd-kpi {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 14px 12px;
}
.dash-cmd-kpi em {
  display: block; font-style: normal; font-size: 0.65rem;
  color: #64748b; margin-bottom: 6px;
}
.dash-cmd-kpi strong {
  display: block; font-size: 1.35rem; font-weight: 800;
  color: #f1f5f9; line-height: 1.1;
}
.dash-cmd-kpi span { display: block; font-size: 0.62rem; color: #64748b; margin-top: 6px; }
.dash-cmd-kpi span.up { color: #34d399; }
.dash-cmd-kpi.hero {
  border-color: color-mix(in srgb, var(--dash-accent) 40%, transparent);
  background: color-mix(in srgb, var(--dash-accent) 8%, rgba(15,23,42,0.8));
}
.dash-cmd-kpi.hero strong { color: var(--dash-accent); }
.dash-cmd-kpi.warn strong { color: #fbbf24; }

.dash-cmd-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.dash-cmd-panel {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 12px;
  padding: 14px;
}
.dash-cmd-panel h4 {
  font-size: 0.68rem; color: #64748b; font-weight: 600;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.dash-cmd-chart {
  display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px;
}
.dash-cmd-bar {
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, rgba(56,189,248,0.9), rgba(99,102,241,0.5));
  border-radius: 4px 4px 0 0;
  min-height: 12px;
  animation: dash-bar-rise 1.2s ease backwards;
}
.dash-cmd-bar.hot {
  background: linear-gradient(180deg, #38bdf8, #6366f1);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}
.dash-cmd-bar:nth-child(1) { animation-delay: 0.05s; }
.dash-cmd-bar:nth-child(2) { animation-delay: 0.1s; }
.dash-cmd-bar:nth-child(3) { animation-delay: 0.15s; }
.dash-cmd-bar:nth-child(4) { animation-delay: 0.2s; }
.dash-cmd-bar:nth-child(5) { animation-delay: 0.25s; }
.dash-cmd-bar:nth-child(6) { animation-delay: 0.3s; }
.dash-cmd-bar:nth-child(7) { animation-delay: 0.35s; }
@keyframes dash-bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

.dash-cmd-donut-wrap { display: flex; align-items: center; gap: 16px; }
.dash-cmd-donut {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(#38bdf8 0 38%, #6366f1 38% 79%, #10b981 79% 91%, #f59e0b 91% 100%);
  mask: radial-gradient(circle, transparent 52%, #000 53%);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}
.dash-cmd-legend { list-style: none; font-size: 0.62rem; color: #94a3b8; }
.dash-cmd-legend li { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dash-cmd-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.dash-cmd-funnel-lg { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dash-cmd-funnel-step {
  width: var(--w);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 10px;
  border-left: 4px solid #6366f1;
  margin: 0 auto;
}
.dash-cmd-funnel-step strong { font-size: 1.2rem; color: #f1f5f9; }
.dash-cmd-funnel-step b { font-size: 0.72rem; color: #64748b; }
.dash-cmd-funnel-step.hot { border-color: #10b981; background: rgba(16, 185, 129, 0.08); }

.dash-cmd-rank-row {
  display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px;
  align-items: center; padding: 10px 12px;
  border-radius: 8px; margin-bottom: 6px;
  background: rgba(15, 23, 42, 0.5);
  font-size: 0.72rem;
}
.dash-cmd-rank-row.gold { border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.dash-cmd-rank-row span:first-child { font-weight: 800; color: #64748b; }
.dash-cmd-rank-row em { color: var(--dash-accent); font-style: normal; font-weight: 700; }
.dash-cmd-rank-row i { color: #64748b; font-style: normal; }

.dash-cmd-queue-lg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-cmd-queue-pane {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 14px;
}
.dash-cmd-queue-pane header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 0.72rem; font-weight: 700; color: #e2e8f0;
}
.dash-cmd-queue-pane header em { font-style: normal; font-size: 0.62rem; color: #64748b; font-weight: 500; }
.dash-cmd-queue-pane.a { border-top: 3px solid #0ea5e9; }
.dash-cmd-queue-pane.b { border-top: 3px solid #10b981; }
.dash-cmd-slot {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
  border-left: 3px solid #0ea5e9;
}
.dash-cmd-slot time { display: block; font-size: 0.6rem; color: #64748b; margin-bottom: 4px; }
.dash-cmd-slot b { color: #f1f5f9; font-size: 0.82rem; }
.dash-cmd-slot p { font-size: 0.65rem; color: #94a3b8; margin-top: 2px; }
.dash-cmd-slot.busy { border-color: #6366f1; box-shadow: 0 0 12px rgba(99, 102, 241, 0.2); }
.dash-cmd-slot.warn { border-color: #f59e0b; }
.dash-cmd-slot.wash { border-color: #10b981; }
.dash-cmd-slot.free { opacity: 0.55; border-style: dashed; }

.dash-cmd-kanban-lg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-cmd-kanban-col {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px; padding: 10px; min-height: 200px;
  border-top: 2px solid #334155;
}
.dash-cmd-kanban-col.active { border-top-color: #10b981; background: rgba(16, 185, 129, 0.06); }
.dash-cmd-kanban-col h4 {
  font-size: 0.65rem; color: #94a3b8; margin-bottom: 10px;
  display: flex; justify-content: space-between;
}
.dash-cmd-kanban-col h4 em { font-style: normal; color: var(--dash-accent); }
.dash-cmd-card {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 8px;
  font-size: 0.68rem; color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.dash-cmd-card.hot { border: 1px solid rgba(16, 185, 129, 0.35); }
.dash-cmd-card.ok { border-left: 3px solid #10b981; }
.dash-cmd-progress {
  height: 4px; background: #334155; border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.dash-cmd-progress i {
  display: block; height: 100%; background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 2px;
}

.dash-cmd-inbox-head,
.dash-cmd-inbox-row {
  display: grid;
  grid-template-columns: 72px 1fr 80px 56px;
  gap: 10px; align-items: center;
  padding: 10px 12px; font-size: 0.68rem;
}
.dash-cmd-inbox-head { color: #64748b; font-weight: 600; border-bottom: 1px solid rgba(148,163,184,0.1); }
.dash-cmd-inbox-row { border-bottom: 1px solid rgba(148,163,184,0.06); }
.dash-cmd-inbox-row b { color: #f1f5f9; }
.src { font-weight: 700; padding: 3px 8px; border-radius: 4px; text-align: center; font-size: 0.6rem; }
.src.wecom { background: rgba(56,189,248,0.15); color: #7dd3fc; }
.src.meituan { background: rgba(251,191,36,0.15); color: #fcd34d; }
.src.referral { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.src.douyin { background: rgba(236,72,153,0.15); color: #f9a8d4; }
.pill {
  display: inline-block; padding: 3px 8px; border-radius: 100px;
  font-size: 0.58rem; font-weight: 700; text-align: center;
}
.pill.ok { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.pill.warn { background: rgba(251,191,36,0.15); color: #fcd34d; }
.pill.info { background: rgba(56,189,248,0.15); color: #7dd3fc; }
.pill.new { background: rgba(139,92,246,0.15); color: #c4b5fd; }

.dash-cmd-inbox-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.dash-cmd-inbox-stats div {
  text-align: center; padding: 12px;
  background: rgba(15, 23, 42, 0.6); border-radius: 10px;
}
.dash-cmd-inbox-stats strong { display: block; font-size: 1.2rem; color: var(--dash-accent); }
.dash-cmd-inbox-stats span { font-size: 0.62rem; color: #64748b; }

.dash-cmd-inv-alert {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; margin-bottom: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
}
.dash-cmd-inv-alert i {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f59e0b; color: #000; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-style: normal;
}
.dash-cmd-inv-alert strong { display: block; color: #fcd34d; font-size: 0.82rem; }
.dash-cmd-inv-alert span { font-size: 0.65rem; color: #94a3b8; }

.dash-cmd-table { width: 100%; border-collapse: collapse; font-size: 0.68rem; }
.dash-cmd-table th, .dash-cmd-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid rgba(148,163,184,0.08); }
.dash-cmd-table th { color: #64748b; font-weight: 600; }
.dash-cmd-meter {
  display: inline-block; width: 60px; height: 6px; background: #334155;
  border-radius: 3px; vertical-align: middle; margin-right: 6px; overflow: hidden;
}
.dash-cmd-meter i { display: block; height: 100%; width: var(--p); border-radius: 3px; }
.dash-cmd-meter.ok i { background: #10b981; }
.dash-cmd-meter.warn i { background: #f59e0b; }

.dash-cmd-ch-lg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dash-cmd-ch-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 12px; padding: 14px;
}
.dash-cmd-ch-item header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; color: #e2e8f0; }
.dash-cmd-ch-item header strong { color: var(--dash-accent); font-size: 1.1rem; }
.dash-cmd-ch-item.hot { border-color: rgba(16, 185, 129, 0.3); }
.dash-cmd-ch-bar { height: 8px; background: #1e293b; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.dash-cmd-ch-bar i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #6366f1); border-radius: 4px; }
.dash-cmd-ch-bar.meituan i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.dash-cmd-ch-bar.referral i { background: linear-gradient(90deg, #10b981, #059669); }
.dash-cmd-ch-bar.douyin i { background: linear-gradient(90deg, #ec4899, #db2777); }
.dash-cmd-ch-item footer { font-size: 0.62rem; color: #64748b; }

.dash-cmd-rev-kpi { margin-bottom: 16px; }
.dash-cmd-rev-kpi em { display: block; font-style: normal; font-size: 0.65rem; color: #64748b; }
.dash-cmd-rev-kpi strong { font-size: 2rem; font-weight: 800; color: #f1f5f9; }
.dash-cmd-rev-kpi .up { font-size: 0.72rem; color: #34d399; }
.dash-cmd-rev-bars { display: flex; align-items: flex-end; gap: 16px; height: 160px; }
.dash-cmd-rev-col { flex: 1; text-align: center; }
.dash-cmd-rev-col .bar {
  height: var(--h); min-height: 16px;
  background: linear-gradient(180deg, rgba(56,189,248,0.85), rgba(99,102,241,0.4));
  border-radius: 6px 6px 0 0; margin-bottom: 8px;
}
.dash-cmd-rev-col.hot .bar { background: linear-gradient(180deg, #38bdf8, #6366f1); box-shadow: 0 0 20px rgba(56,189,248,0.35); }
.dash-cmd-rev-col span { font-size: 0.62rem; color: #64748b; }
.dash-cmd-rev-col b { display: block; font-size: 0.72rem; color: #e2e8f0; margin-top: 4px; }

.dash-cmd-fin-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
.dash-cmd-fin-summary div {
  padding: 12px; background: rgba(15, 23, 42, 0.6); border-radius: 10px; text-align: center;
}
.dash-cmd-fin-summary em { display: block; font-style: normal; font-size: 0.62rem; color: #64748b; }
.dash-cmd-fin-summary strong { font-size: 1.15rem; color: #f1f5f9; }

.dash-cmd-sync-lg { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.dash-cmd-sync-card {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 12px;
}
.dash-cmd-sync-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.dash-cmd-sync-card .icon.mt { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.dash-cmd-sync-card .icon.dy { background: linear-gradient(135deg, #ec4899, #db2777); }
.dash-cmd-sync-card strong { display: block; color: #f1f5f9; font-size: 0.85rem; }
.dash-cmd-sync-card span { font-size: 0.65rem; color: #64748b; }
.dash-cmd-sync-card .pill { margin-left: auto; }
.dash-cmd-sync-flow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; font-size: 0.65rem; color: #64748b; padding-top: 8px;
}
.dash-cmd-sync-flow span.dash-arrow {
  padding: 0; background: none; border: none; color: var(--dash-accent); font-weight: 700;
}
.dash-cmd-sync-flow span:not(.dash-arrow) {
  padding: 6px 12px; background: rgba(15, 23, 42, 0.8);
  border-radius: 100px; border: 1px solid rgba(148, 163, 184, 0.12); color: #94a3b8;
}

.dash-cmd-phone-wrap {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 24px; min-height: 420px;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.08), transparent 70%);
}
.dash-cmd-phone {
  width: 220px; border-radius: 28px; border: 4px solid #1e293b;
  background: #0f172a; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(56,189,248,0.15);
}
.dash-cmd-phone-notch { height: 24px; background: #1e293b; }
.dash-cmd-phone-screen { padding: 16px; }
.dash-cmd-phone-screen header { font-size: 0.65rem; font-weight: 700; color: #64748b; margin-bottom: 14px; }
.dash-cmd-phone-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.dash-cmd-phone-kpis div {
  background: rgba(30, 41, 59, 0.9); border-radius: 10px; padding: 12px 8px; text-align: center;
}
.dash-cmd-phone-kpis div.hero { border: 1px solid rgba(56,189,248,0.3); }
.dash-cmd-phone-kpis em { display: block; font-style: normal; font-size: 0.55rem; color: #64748b; }
.dash-cmd-phone-kpis strong { display: block; font-size: 1rem; color: #38bdf8; font-weight: 800; }
.dash-cmd-phone-kpis span { font-size: 0.52rem; color: #64748b; }
.dash-cmd-phone-card {
  background: rgba(30, 41, 59, 0.8); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
  border-left: 3px solid #334155;
}
.dash-cmd-phone-card b { font-size: 0.68rem; color: #e2e8f0; }
.dash-cmd-phone-card p { font-size: 0.6rem; color: #94a3b8; margin-top: 2px; }
.dash-cmd-phone-card.warn { border-color: #f59e0b; }
.dash-cmd-phone-card.ok { border-color: #10b981; }
.dash-cmd-phone-caption h4 { color: #f1f5f9; font-size: 1.1rem; margin-bottom: 8px; }
.dash-cmd-phone-caption p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; max-width: 260px; }

@media (max-width: 1024px) {
  .dash-screen-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dash-screen-copy { text-align: center; }
  .dash-cmd-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-cmd-split { grid-template-columns: 1fr; }
  .dash-cmd-kanban-lg { grid-template-columns: repeat(2, 1fr); }
  .dash-cmd-ch-lg { grid-template-columns: 1fr; }
  .dash-cmd-phone-wrap { flex-direction: column; text-align: center; }
  .dash-cmd-phone-caption p { max-width: none; }
}

@media (max-width: 640px) {
  .dash-screen { min-height: auto; padding: 48px 0 64px; }
  .dash-screen-nav-item { padding: 6px 10px; font-size: 0.75rem; }
  .dash-cmd-kpis { grid-template-columns: 1fr 1fr; }
  .dash-cmd-queue-lg { grid-template-columns: 1fr; }
  .dash-cmd-inbox-head, .dash-cmd-inbox-row {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .dash-cmd-inbox-head span:nth-child(3),
  .dash-cmd-inbox-head span:nth-child(4),
  .dash-cmd-inbox-row span:nth-child(3),
  .dash-cmd-inbox-row span:nth-child(4) { display: none; }
  .dash-cmd-layout { flex-direction: column; }
  .dash-cmd-side { width: 100%; flex-direction: row; justify-content: space-between; padding: 10px 16px; }
  .dash-cmd-nav { flex-direction: row; }
}
