.app-view-panel__body--xingchenxu {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.14) 34%, transparent 35%),
    linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(239, 246, 255, 0.98) 52%, rgba(255, 247, 237, 0.98));
}

.xingchenxu-page {
  min-height: 100%;
  overflow-x: hidden;
}

.xingchenxu-shell {
  min-height: 100%;
  box-sizing: border-box;
}

.xingchenxu-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px;
}

.paibiao-page {
  gap: 12px;
  overflow-x: hidden;
}

.paibiao-content {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
  overflow-x: hidden;
}

.paibiao-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.paibiao-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paibiao-head strong {
  font-size: 15px;
  color: #111827;
}

.paibiao-head span,
.paibiao-note,
.paibiao-empty,
.paibiao-day-meta {
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.paibiao-form {
  display: grid;
  gap: 10px;
}

.paibiao-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.paibiao-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.paibiao-input,
.paibiao-select,
.paibiao-weight-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font-size: 12px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.paibiao-input:focus,
.paibiao-select:focus,
.paibiao-weight-input:focus {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.paibiao-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paibiao-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.paibiao-btn.primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
}

.paibiao-btn.soft {
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
  color: #334155;
}

.paibiao-btn.danger {
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: #fff;
}

.paibiao-weights {
  display: grid;
  gap: 8px;
}

.paibiao-weight-item {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.paibiao-weight-name {
  min-width: 0;
  font-size: 13px;
  color: #111827;
}

.paibiao-result-list {
  display: grid;
  gap: 10px;
}

.paibiao-day-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.paibiao-day-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.paibiao-day-top strong {
  font-size: 14px;
  color: #111827;
}

.paibiao-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paibiao-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd);
  color: #1e1b4b;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.paibiao-empty {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

.paibiao-status {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.6;
  display: none;
}

.paibiao-status.visible {
  display: block;
}

.paibiao-draw-panel {
  display: grid;
  gap: 12px;
}

.paibiao-green-area {
  min-height: 156px;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
}

.paibiao-green-stack,
.paibiao-dice-board {
  position: relative;
  width: min(100%, 100%);
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
  outline: none;
}

.paibiao-green-stack {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #b98a65, #8d5c3d);
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.12),
    inset 0 -10px 16px rgba(88, 46, 24, 0.2),
    0 12px 22px rgba(88, 46, 24, 0.14);
}

.paibiao-green-stack:focus-visible,
.paibiao-dice-board:focus-visible {
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.18),
    inset 0 4px 10px rgba(255, 255, 255, 0.12),
    inset 0 -10px 16px rgba(88, 46, 24, 0.2),
    0 12px 22px rgba(88, 46, 24, 0.14);
}

.paibiao-green-card-cover {
  position: relative;
  width: 28px;
  height: 86px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4ade80, #15803d);
  border: 1px solid rgba(21, 128, 61, 0.44);
  box-shadow: 0 6px 14px rgba(21, 128, 61, 0.16);
  flex: none;
}

.paibiao-green-card-cover::before {
  content: "";
  position: absolute;
  inset: 8px 5px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.paibiao-green-card-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.24);
}

.paibiao-green-count {
  position: absolute;
  right: 12px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.95);
  color: #7c3f1d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.paibiao-green-hint,
.paibiao-dice-hint {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: rgba(255, 247, 237, 0.96);
  font-size: 12px;
  z-index: 2;
  white-space: nowrap;
}

.paibiao-dice-board {
  height: 132px;
  border-radius: 28px;
  background: linear-gradient(180deg, #c7d2fe, #93c5fd);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.18),
    inset 0 -10px 16px rgba(59, 130, 246, 0.16),
    0 12px 22px rgba(59, 130, 246, 0.14);
}

.paibiao-dice-face {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.16);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
  padding: 16px;
  align-content: center;
  justify-items: center;
}

.paibiao-dice-face span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
}

.paibiao-dice-face span:nth-child(5) {
  grid-column: 1 / span 2;
}

.paibiao-flip-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.paibiao-flip-card {
  min-height: 72px;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dcfce7, #86efac);
  color: #14532d;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.14);
  transform-origin: center;
  animation: paibiaoFlipIn 0.35s ease;
}

.paibiao-flip-card.empty {
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  box-shadow: none;
  animation: none;
}

.paibiao-draw-order {
  display: grid;
  gap: 8px;
}

.paibiao-draw-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.paibiao-draw-order-head strong {
  font-size: 13px;
  color: #111827;
}

.paibiao-inline-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}

.paibiao-order-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.paibiao-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.paibiao-order-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex: none;
}

.paibiao-order-name {
  min-width: 0;
  font-size: 13px;
  color: #111827;
  word-break: break-all;
}

@keyframes paibiaoFlipIn {
  0% {
    transform: rotateY(90deg) scale(0.94);
    opacity: 0.3;
  }

  100% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .paibiao-form-row,
  .paibiao-weight-item {
    grid-template-columns: 1fr;
  }

  .paibiao-day-top,
  .paibiao-draw-order-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .paibiao-green-stack,
  .paibiao-dice-board {
    width: 100%;
  }

  .paibiao-green-stack {
    gap: 5px;
    padding: 18px 10px 22px;
    border-radius: 22px;
  }

  .paibiao-dice-board {
    border-radius: 22px;
  }

  .paibiao-green-card-cover {
    width: 24px;
    height: 74px;
  }

  .paibiao-green-hint,
  .paibiao-dice-hint {
    font-size: 11px;
  }
}
