.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--cmcc-blue) 0%, var(--cmcc-dark-blue) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 133, 208, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 168.49px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.header h1 {
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 700;
}

.header-right {
  display: flex;
  gap: 12px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 320px 320px;
  gap: 24px;
  align-items: start;
}

.left-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  height: 580px;
}

.middle-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 580px;
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 580px;
}

.wheel-container {
  padding: 20px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#spinBtn {
  font-size: 20px;
  padding: 16px 48px;
}

.hint {
  color: var(--text-secondary);
  font-size: 14px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cmcc-dark-blue);
  margin-bottom: 16px;
}

.stock-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.stock-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.history-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.history-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--cmcc-light-blue);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.stock-item.out-of-stock {
  background: #FFE5E5;
}

.stock-item:hover {
  transform: translateX(4px);
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stock-icon {
  font-size: 28px;
}

.stock-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.stock-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--cmcc-blue);
}

.stock-item.out-of-stock .stock-count {
  color: var(--cmcc-red);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.history-header .card-title {
  margin-bottom: 0;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.5s ease-in-out;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: var(--cmcc-light-blue);
}

.history-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-icon {
  font-size: 24px;
}

.history-prize {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.history-time {
  font-size: 13px;
  color: var(--text-secondary);
}



@media (max-width: 1400px) {
  .main-content {
    grid-template-columns: 1fr 280px 280px;
  }
}

@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .middle-panel {
    order: 2;
  }
  
  .right-panel {
    order: 3;
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}
