/*
 * 开标大厅沉浸式视觉层 - 数据大屏风格
 * 仅负责空间背景、实时概览和动效，不承载业务数据或权限逻辑。
 */
:root {
  --oh3d-bg-deep: #050b1c;
  --oh3d-bg-mid: #0a1a38;
  --oh3d-panel: rgba(7, 22, 50, 0.82);
  --oh3d-panel-strong: rgba(5, 16, 38, 0.94);
  --oh3d-border: rgba(93, 190, 255, 0.34);
  --oh3d-border-bright: rgba(111, 222, 255, 0.82);
  --oh3d-text: #ffffff;
  --oh3d-text-muted: #b6d3ee;
  --oh3d-cyan: #53eaff;
  --oh3d-blue: #3d8dff;
  --oh3d-green: #52ffc4;
  --oh3d-amber: #ffd36a;
  --oh3d-red: #ff718c;
  --oh3d-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.oh-body {
  position: relative;
  isolation: isolate;
  background: var(--oh3d-bg-deep);
  color: var(--oh3d-text);
  overflow-x: hidden;
}

.oh3d-scene {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  perspective: 1400px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(38, 130, 220, 0.34), transparent 26%),
    radial-gradient(circle at 12% 12%, rgba(22, 102, 186, 0.3), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(90, 72, 200, 0.22), transparent 30%),
    radial-gradient(circle at 50% 118%, rgba(20, 66, 130, 0.42), transparent 52%),
    linear-gradient(165deg, #082048 0%, #051033 46%, #020612 100%);
}

/* 缓慢漂移的极光色块 */
.oh3d-scene::before,
.oh3d-scene::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
}

.oh3d-scene::before {
  opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 0%, rgba(53, 224, 255, 0.1) 50%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 12vw, rgba(53, 224, 255, 0.035) 12.05vw 12.14vw),
    repeating-linear-gradient(0deg, transparent 0 12vh, rgba(53, 224, 255, 0.028) 12.05vh 12.14vh);
}

.oh3d-scene::after {
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 4, 16, 0.72) 100%),
    linear-gradient(
      180deg,
      transparent 0 55%,
      rgba(53, 224, 255, 0.05) 55%,
      rgba(53, 224, 255, 0.02) 70%,
      transparent 72%
    );
}

/* 会场背景网格（保留克制的空间感，去除极光/光束/扫描线等炫技装饰） */
.oh3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.oh3d-grid {
  position: absolute;
  right: -12%;
  bottom: -34%;
  left: -12%;
  height: 74%;
  opacity: 0.5;
  transform: perspective(520px) rotateX(62deg) translateZ(-20px);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(53, 224, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 255, 0.24) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 84%);
  mask-image: linear-gradient(to top, #000, transparent 84%);
}

.oh3d-horizon {
  position: absolute;
  top: 38%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 224, 255, 0.85), transparent);
  box-shadow: 0 0 28px 4px rgba(53, 224, 255, 0.4);
  animation: oh3d-horizon-pulse 4.5s ease-in-out infinite;
}
@keyframes oh3d-horizon-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.oh3d-stage-core {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(53, 224, 255, 0.3);
  border-radius: 50%;
  opacity: 0.85;
  transform: translate(-50%, -50%) rotateX(62deg);
  transform-style: preserve-3d;
  background: radial-gradient(circle, rgba(53, 224, 255, 0.2), transparent 60%);
  box-shadow:
    0 0 90px rgba(61, 141, 255, 0.28),
    inset 0 0 55px rgba(53, 224, 255, 0.16);
  animation: oh3d-stage-pulse 5s ease-in-out infinite;
}
@keyframes oh3d-stage-pulse {
  0%,
  100% {
    box-shadow:
      0 0 90px rgba(61, 141, 255, 0.28),
      inset 0 0 55px rgba(53, 224, 255, 0.16);
  }
  50% {
    box-shadow:
      0 0 130px rgba(82, 255, 196, 0.34),
      inset 0 0 70px rgba(53, 224, 255, 0.22);
  }
}

.oh3d-stage-core::before,
.oh3d-stage-core::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(53, 224, 255, 0.38);
  border-radius: 50%;
  content: '';
  animation: oh3d-ring-spin 16s linear infinite;
}
.oh3d-stage-core::after {
  inset: 27%;
  border-color: rgba(82, 255, 196, 0.4);
  border-top-color: transparent;
  box-shadow: 0 0 34px rgba(82, 255, 196, 0.3);
  animation-duration: 11s;
  animation-direction: reverse;
}
@keyframes oh3d-ring-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.oh3d-pillars {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}
.oh3d-pillars::before,
.oh3d-pillars::after {
  position: absolute;
  top: 13%;
  bottom: 20%;
  width: 9vw;
  min-width: 80px;
  max-width: 160px;
  border: 1px solid rgba(53, 224, 255, 0.24);
  content: '';
  background: linear-gradient(180deg, rgba(45, 140, 235, 0.18), transparent 72%);
  box-shadow:
    inset 0 0 34px rgba(53, 224, 255, 0.1),
    0 0 40px rgba(20, 120, 225, 0.12);
  transform: perspective(420px) rotateY(20deg);
}
.oh3d-pillars::before {
  left: 4%;
}
.oh3d-pillars::after {
  right: 4%;
  transform: perspective(420px) rotateY(-20deg);
}

/* 层级：所有业务内容浮于场景之上 */
.oh-topbar,
.oh-project-banner,
.oh-alert,
.oh-main,
.oh-footer,
.oh3d-console {
  position: relative;
  z-index: 1;
}

/* ===== 顶部栏：大屏顶部光带 ===== */
.oh-topbar {
  min-height: 66px;
  border-bottom: 1px solid var(--oh3d-border);
  background: linear-gradient(
    90deg,
    rgba(3, 16, 40, 0.96),
    rgba(8, 38, 84, 0.9),
    rgba(3, 16, 40, 0.96)
  );
  box-shadow:
    0 8px 34px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(53, 224, 255, 0.28) inset;
}
.oh-topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(53, 224, 255, 0.85), transparent);
  opacity: 0.7;
}

.oh-logo,
.oh-page-title,
.oh-project-info h1,
.oh-panel-title,
.oh-sidebar-title {
  color: var(--oh3d-text);
  text-shadow: 0 0 20px rgba(53, 224, 255, 0.28);
}

.oh-divider {
  color: var(--oh3d-cyan);
}
.oh-user-tag {
  border: 1px solid var(--oh3d-border);
  background: rgba(53, 224, 255, 0.1);
  color: var(--oh3d-text);
}
.oh-back-btn {
  border-color: var(--oh3d-border);
  color: var(--oh3d-text);
}

/* ===== 玻璃拟态面板统一质感 ===== */
.oh-project-banner,
.oh-panel,
.oh-progress-bar,
.oh-sidebar-section,
.oh-footer,
.oh3d-console {
  position: relative;
  border: 1px solid var(--oh3d-border);
  background: linear-gradient(150deg, rgba(10, 34, 74, 0.9), rgba(5, 16, 38, 0.88));
  box-shadow:
    var(--oh3d-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.oh-project-banner {
  margin-top: 22px;
  border-radius: 14px;
}
.oh-panel {
  border-radius: 12px;
}
.oh-sidebar-section,
.oh-footer,
.oh-progress-bar {
  border-radius: 12px;
}

/* 面板角落科技装饰 */
.oh-panel::before,
.oh-panel::after,
.oh3d-console::before,
.oh3d-console::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: '';
  pointer-events: none;
}
.oh-panel::before,
.oh3d-console::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--oh3d-border-bright);
  border-left: 2px solid var(--oh3d-border-bright);
}
.oh-panel::after,
.oh3d-console::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--oh3d-border-bright);
  border-bottom: 2px solid var(--oh3d-border-bright);
}

.oh-project-info h1,
.oh-project-meta em,
.oh-project-owner em,
.oh-decrypt-window .oh-value,
.oh-panel-title,
.oh-sidebar-title {
  color: #9ff0ff;
  text-shadow: 0 0 16px rgba(83, 234, 255, 0.35);
}

.oh-project-info h1 {
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff, #9ff0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(83, 234, 255, 0.35));
}

.oh-project-meta span,
.oh-project-owner,
.oh-project-meta b,
.oh-project-owner b,
.oh-empty-text,
.oh-chat-note,
.oh-chat-status,
.oh-footer,
.oh-chat-meta span,
.oh-chat-meta em {
  color: var(--oh3d-text-muted);
}

.oh-decrypt-window,
.oh-chat-note,
.oh-my-bid-card,
.oh-announcement-item,
.oh-table thead,
.oh-chat-list {
  border-color: rgba(53, 224, 255, 0.28);
  background: rgba(12, 50, 96, 0.55);
}

.oh-panel-header {
  border-bottom-color: var(--oh3d-border-bright);
  background: linear-gradient(90deg, rgba(12, 74, 128, 0.6), rgba(8, 34, 78, 0.45));
}

.oh-panel-title .oh-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(53, 224, 255, 0.4);
  border-radius: 6px;
  color: var(--oh3d-cyan);
  background: rgba(53, 224, 255, 0.1);
  box-shadow: 0 0 12px rgba(53, 224, 255, 0.18);
}

.oh-table th,
.oh-table td {
  border-color: rgba(93, 190, 255, 0.2);
  color: #eef8ff;
}
.oh-table tbody tr:hover {
  background: rgba(53, 224, 255, 0.1);
}
.oh-table th {
  color: #cdf3ff;
  font-weight: 700;
}
.oh-table td strong {
  color: #ffffff;
  font-weight: 700;
}
.oh-table td {
  color: #dcefff;
}
.oh-chat-item {
  border: 1px solid rgba(93, 190, 255, 0.16);
  background: rgba(7, 27, 58, 0.72);
}
.oh-chat-text {
  color: var(--oh3d-text);
}
.oh-chat-item.is-self {
  background: rgba(39, 123, 207, 0.28);
  border-left: 3px solid var(--oh3d-cyan);
}
.oh-chat-form textarea,
.oh-quote-agent-form input,
.oh-quote-agent-form textarea {
  border-color: var(--oh3d-border);
  background: rgba(2, 12, 28, 0.78);
  color: var(--oh3d-text);
}

/* 状态徽标：发光点缀 */
.oh-status-success {
  background: rgba(82, 255, 196, 0.14);
  color: var(--oh3d-green);
  box-shadow: inset 0 0 0 1px rgba(82, 255, 196, 0.4);
}
.oh-status-warning {
  background: rgba(255, 211, 106, 0.14);
  color: var(--oh3d-amber);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 106, 0.4);
}
.oh-status-danger {
  background: rgba(255, 113, 140, 0.14);
  color: var(--oh3d-red);
  box-shadow: inset 0 0 0 1px rgba(255, 113, 140, 0.4);
}
.oh-status-info {
  background: rgba(83, 234, 255, 0.14);
  color: var(--oh3d-cyan);
  box-shadow: inset 0 0 0 1px rgba(83, 234, 255, 0.4);
}

.oh-btn-primary {
  background: linear-gradient(135deg, #1f8ce6, #2a5ee0);
  box-shadow: 0 0 22px rgba(40, 140, 240, 0.34);
  border: 1px solid rgba(111, 222, 255, 0.35);
}
.oh-btn-primary:hover {
  background: linear-gradient(135deg, #35aef0, #3b74f0);
  box-shadow: 0 0 30px rgba(60, 160, 250, 0.5);
}
.oh-btn-outline {
  border-color: var(--oh3d-border-bright);
  background: rgba(11, 50, 100, 0.46);
  color: var(--oh3d-text);
}
.oh-btn-outline:hover {
  background: rgba(53, 224, 255, 0.16);
  color: #fff;
  box-shadow: 0 0 16px rgba(53, 224, 255, 0.25);
}
.oh-btn-success {
  background: linear-gradient(135deg, #16c98f, #0e9a72);
  box-shadow: 0 0 18px rgba(22, 201, 143, 0.3);
}
.oh-btn-danger {
  background: linear-gradient(135deg, #ff5c7a, #e23a57);
  box-shadow: 0 0 18px rgba(255, 92, 122, 0.3);
}

/* ===== 数据大屏控制台 ===== */
.oh3d-console {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3.2fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 24px 20px;
  padding: 16px 20px;
  border-radius: 14px;
}

.oh3d-console-heading {
  min-width: 0;
}
.oh3d-console-title {
  display: block;
  margin-top: 3px;
  color: var(--oh3d-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}
.oh3d-console-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--oh3d-text-muted);
  font-size: 12px;
}

.oh3d-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 12px;
}
.oh3d-metric {
  position: relative;
  min-width: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--oh3d-border-bright);
  background: linear-gradient(160deg, rgba(20, 70, 130, 0.42), rgba(4, 18, 44, 0.55));
  box-shadow:
    inset 0 0 24px rgba(53, 224, 255, 0.06),
    0 0 18px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.oh3d-metric::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  content: '';
  border-top: 1px solid rgba(53, 224, 255, 0.3);
  border-right: 1px solid rgba(53, 224, 255, 0.3);
  opacity: 0.6;
}
.oh3d-metric-label {
  display: block;
  color: var(--oh3d-text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.oh3d-metric-value {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #b8f4ff;
  font-size: clamp(18px, 2.2vw, 30px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    0 0 18px rgba(83, 234, 255, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.6);
}
.oh3d-metric-value[data-tone='success'] {
  color: #b9ffea;
  text-shadow:
    0 0 18px rgba(82, 255, 196, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.6);
}
.oh3d-metric-value[data-tone='warning'] {
  color: #ffe9b3;
  text-shadow:
    0 0 18px rgba(255, 211, 106, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.6);
}
.oh3d-metric-value[data-tone='danger'] {
  color: #ffc2cf;
  text-shadow:
    0 0 18px rgba(255, 113, 140, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

.oh3d-console-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.oh3d-console-actions .oh-btn {
  min-width: 42px;
  padding: 8px 12px;
}
.oh3d-icon-btn {
  font-size: 16px;
}
.oh3d-motion-btn[aria-pressed='true'] {
  border-color: var(--oh3d-green);
  color: var(--oh3d-green);
}
.oh3d-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--oh3d-green);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.oh3d-live::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: '';
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  animation: oh3d-blink 1.6s ease-in-out infinite;
}
.oh3d-live[data-state='stale'] {
  color: var(--oh3d-amber);
}
.oh3d-live[data-state='error'] {
  color: var(--oh3d-red);
}
@keyframes oh3d-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.oh3d-console-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--oh3d-text-muted);
  font-size: 11px;
}
.oh3d-console-status strong {
  color: var(--oh3d-cyan);
}
.oh3d-fallback-note {
  display: none;
}
.oh3d-fallback .oh3d-canvas {
  display: none;
}
.oh3d-fallback .oh3d-fallback-note {
  display: inline;
}
.oh-body:fullscreen {
  overflow: auto;
}

/* ===== 进度条：发光状态点 ===== */
.oh-progress-bar {
  justify-content: flex-start;
  overflow: hidden;
}
.oh-progress-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(120, 170, 220, 0.28);
  border: 3px solid rgba(6, 18, 42, 0.9);
  box-shadow: 0 0 0 2px rgba(120, 170, 220, 0.3);
}
.oh-progress-done .oh-progress-dot {
  background: var(--oh3d-green);
  box-shadow:
    0 0 0 2px var(--oh3d-green),
    0 0 14px rgba(82, 255, 196, 0.7);
}
.oh-progress-active .oh-progress-dot {
  background: var(--oh3d-cyan);
  box-shadow:
    0 0 0 2px var(--oh3d-cyan),
    0 0 18px rgba(83, 234, 255, 0.8);
  animation: oh-pulse 1.6s infinite;
}
.oh-progress-line {
  background: rgba(120, 170, 220, 0.25);
}
.oh-progress-done + .oh-progress-line,
.oh-progress-active + .oh-progress-line {
  background: linear-gradient(90deg, var(--oh3d-green), var(--oh3d-cyan));
  box-shadow: 0 0 10px rgba(83, 234, 255, 0.5);
}
.oh-progress-done .oh-progress-label {
  color: var(--oh3d-green);
}
.oh-progress-active .oh-progress-label {
  color: var(--oh3d-cyan);
}

@keyframes oh-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 2px var(--oh3d-cyan),
      0 0 14px rgba(83, 234, 255, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 0 3px var(--oh3d-cyan),
      0 0 26px rgba(83, 234, 255, 1);
  }
}

/* ===== 底部栏 ===== */
.oh-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--oh3d-border);
  background: linear-gradient(
    90deg,
    rgba(3, 16, 40, 0.92),
    rgba(8, 38, 84, 0.86),
    rgba(3, 16, 40, 0.92)
  );
}

@media (max-width: 1180px) {
  .oh3d-console {
    grid-template-columns: 1fr auto;
  }
  .oh3d-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .oh3d-console-status {
    grid-row: 3;
  }
}

@media (max-width: 700px) {
  .oh3d-scene {
    position: absolute;
    min-height: 100%;
  }
  .oh3d-grid {
    opacity: 0.25;
  }
  .oh3d-stage-core {
    width: 56vw;
    top: 30%;
  }
  .oh3d-pillars {
    opacity: 0.18;
  }
  .oh3d-console {
    grid-template-columns: 1fr;
    margin: 0 12px 12px;
    padding: 14px;
    gap: 12px;
  }
  .oh3d-metrics {
    grid-column: auto;
    grid-row: auto;
  }
  .oh3d-console-actions {
    justify-content: flex-end;
  }
  .oh3d-console-status {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 420px) {
  .oh3d-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oh3d-console-actions .oh-btn {
    flex: 1;
  }
}

@media (prefers-contrast: more) {
  .oh3d-scene {
    opacity: 0.7;
  }
  .oh-project-banner,
  .oh-panel,
  .oh-progress-bar,
  .oh-sidebar-section,
  .oh-footer,
  .oh3d-console {
    background: var(--oh3d-panel-strong);
    border-color: var(--oh3d-border-bright);
  }
  .oh3d-console-subtitle,
  .oh3d-metric-label,
  .oh3d-console-status {
    color: #c1ddf5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh3d-scene *,
  .oh3d-scene *::before,
  .oh3d-scene *::after {
    animation: none !important;
    transition: none !important;
  }
}

.oh-body.oh3d-motion-reduced .oh3d-scene *,
.oh-body.oh3d-motion-reduced .oh3d-scene *::before,
.oh-body.oh3d-motion-reduced .oh3d-scene *::after {
  animation: none !important;
  transition: none !important;
}
.oh-body.oh3d-motion-reduced .oh3d-canvas {
  opacity: 0.28;
}
