/* ==========================================================================
   改区执行台与购买后服务流程样式 (修复白边与优化布局)
   ========================================================================== */

.workbench-wrapper {
  padding: 40px 0 80px;
}

.step-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.step-flow::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-glass);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.step-item.active .step-num {
  background: var(--primary);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.step-item.completed .step-num {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.step-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active .step-title {
  color: var(--cyan);
}

/* 扫码与操作卡片 */
.scan-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px;
  text-align: center;
}

/* 精准紧凑正方形二维码容器，彻底消除白条 */
.qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.4);
  margin: 0 auto 24px;
  width: 250px;
  height: 250px;
}

.qr-img {
  width: 222px;
  height: 222px;
  display: block;
  border-radius: 8px;
}

.scan-tips {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--cyan);
  max-width: 480px;
  margin-bottom: 24px;
  text-align: left;
  line-height: 1.6;
}

/* 进度条与状态动效 */
.pulse-loader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulseAnim 1.2s infinite ease-in-out both;
}

.pulse-dot:nth-child(1) { animation-delay: -0.32s; }
.pulse-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulseAnim {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* 电子生效凭证 */
.cert-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.cert-stamp {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 110px;
  height: 110px;
  border: 3px solid var(--emerald);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.85rem;
  transform: rotate(-15deg);
  opacity: 0.85;
  pointer-events: none;
}
