* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, 'PingFang SC', sans-serif;
  background: #fff;
}

body.hidden{
  overflow: hidden;
}

/* ===== 后台 ===== */
#admin { 
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: flex-end;
  margin-bottom: 16px;
  gap: 20px;
}

.admin-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity .15s;
}

.btn:hover {
  opacity: .8;
}

.btn-primary {
  background: #007aff;
  color: #fff;
}

.btn-success {
  background: #34c759;
  color: #fff;
}

.btn-danger {
  background: #ff3b30;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
}

.btn-danger-header{
  background: #ff3b30;
  color: #fff;
}

.btn-warning {
  background: #f0ad4e;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
}
.btn-warning:hover { background: #ec971f; }

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 5px;
}

.btn-outline {
  background: #fff;
  color: #007aff;
  border: 1px solid #007aff;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px dashed #c7c7cc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #007aff;
  font-weight: 500;
}

.file-label:hover {
  background: #f0f4ff;
}

#fileInput {
  display: none;
}

.add-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 260px;
  overflow: hidden;
}

.add-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  font-size: 14px;
}

.add-form input:focus {
  outline: none;
  border-color: #007aff;
}

.table-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5ea;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

thead {
  background: #f5f5f7;
}

th {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  color: #6e6e73;
  font-weight: 500;
}

td {
  padding: 10px 14px;
  font-size: 14px;
  color: #1d1d1f;
  border-top: 1px solid #f2f2f7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-cell {
  font-weight: 600;
  color: #007aff;
  font-family: monospace;
  font-size: 15px;
}

.content-cell {
  color: #3c3c43;
}

.empty-tip {
  padding: 32px;
  text-align: center;
  color: #aeaeb2;
  font-size: 14px;
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.count-tip {
  font-size: 13px;
  color: #8e8e93;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #d1d1d6;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #1d1d1f;
}

.page-btn:hover {
  border-color: #007aff;
  color: #007aff;
}

.page-btn.active {
  background: #007aff;
  color: #fff;
  border-color: #007aff;
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: #8e8e93;
  padding: 0 4px;
}

/* ===== 展示模式 ===== */
#display {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* background: #bfe283 url(/imgs/bg1.png) no-repeat center;
  background-size: contain; */
  background: #bfe283;
}

#display.active {
  display: flex;
}

.disp-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid #f0f0f0;
  z-index: 1;
  display: none !important;
}

.live-label {
  color: #c7c7cc;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 500;
}

.exit-btn {
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  color: #8e8e93;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.exit-btn:hover {
  color: #1d1d1f;
}

.position_bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url(../imgs/bg.png) no-repeat center;
  background-size: contain;
  width: 100vw;
  height: 100vh;
}

.imgs_bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

.slot-win {
  /* position: relative; */
  /* max-width: 760px; */
  border-radius: 16px;
  /* width: 83vw;
  height: calc(56vw / 1920 * 1080); */
  /* top: calc(26vw / 1920 * 1080); */
  overflow: hidden;
  /* background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgb(235, 235, 235); */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1800px;
  height: 690px;
  transform-origin: 0 0;
}

.slot_history{
  width: 150px;
  height: 70px;
  position: absolute;
  right: 126px;
  top: 60px;
  /* border: 1px solid red; */
  z-index: 2;
  cursor: pointer;
  
  opacity: 0;
  pointer-events: none;
  right: 5000px;
}

.slot_history_see{
  width: 150px;
  height: 70px;
  position: absolute;
  right: 126px;
  top: 60px;
  /* border: 1px solid red; */
  z-index: 2;
  cursor: pointer;
}

/* .slot-win::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  background: linear-gradient(to bottom, #f9f9f9, transparent);
  z-index: 2;
  pointer-events: none;
}

.slot-win::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to top, #f9f9f9, transparent);
  z-index: 2;
  pointer-events: none;
} */

.slot-center {
  /* position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-86%);
  height: 86px;
  border-top: 1.5px solid rgba(0, 122, 255, .3);
  border-bottom: 1.5px solid rgba(0, 122, 255, .3);
  border-radius: 10px;
  z-index: 3;
  pointer-events: none;
  background: rgba(0, 122, 255, .04); */



  position: absolute;
  left: 214px;
  right: 214px;
  top: 50%;
  transform: translateY(-86%);
  height: 106px;

  border-radius: 10px;
  z-index: 3;
  pointer-events: none;
  /* border-top: 1.5px solid rgba(0, 122, 255, .3);
  border-bottom: 1.5px solid rgba(0, 122, 255, .3);
  background: rgba(0, 122, 255, .04); */
}

.slot-track {
  position: absolute;
  left: 214px;
  right: 214px;
  top: 50%;
  transform: translateY(-86%);
  height: 106px;
  overflow: hidden;
}

.slot-item {
  position: absolute;
  left: 0;
  right: 0;
  height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 90px;
  text-align: center;
}

.slot-item .si-phone {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #c7c7cc;
  transition: color .15s;
  display: none;

  font-size: 48px;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-weight: bold;
}

.slot-track.slot-track-phone{
    /* top: 17%;
    left: 590px;
    right: 590px;
    height: 88px; */

    position: absolute;
    top: 17.4%;
    left: 590px;
    right: 590px;
    height: 86px;
    font-size: 48px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    /* opacity: 0; */
}

.slot-track.slot-track-phone .slot-item{
  height: 88px;
  padding: 0 30px;
}

/* 第二个 track（slotTrackPhone）：只显示 .si-phone，隐藏 .si-content */
.slot-track-phone .slot-item .si-phone {
  display: block;
}

.slot-track-phone .slot-item .si-content {
  display: none;
}

.show_result_phone{
  position: absolute;
  top: 17.4%;
  left: 590px;
  right: 590px;
  height: 86px;
  font-size: 48px;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  /* transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(-86%) scale(0.7); */
  
  transition: opacity 0.4s 0.5s ease;
  transform: translateY(-86%);
}

.show_result_phone.show{
  opacity: 1;
}

.slot-item .si-content {
  /* font-size: 13px;
  color: #d1d1d6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  transition: color .15s; */

  font-size: 48px;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  /* transition: color .15s; */
  font-weight: bold;
}

.slot-item.on-center .si-phone {
  /* color: #007aff; */
}

.slot-item.on-center .si-content {
  /* color: #3c3c43; */
}

.winner-card {
  display: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  overflow: hidden;
  z-index: 999;
}

.winner-card.show{
  display: block;
}

.winner-card.show .wIn {
  animation: wIn .55s cubic-bezier(.34, 1.56, .64, 1);
}



.mask_bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100vw;
  height: 100vh;
}

.wIn,.rIn{
  width: 100%;
  height: 100%;
}

@keyframes wIn {
  from {
    opacity: 0;
    transform: scale(.9)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.winner_inner {
  position: fixed;
  z-index: 1;
  /* width: 1920px;
  height: 1036px; */
  width: 1530px;
  height: 826px;
  left: 53%;
  top: 50%;
  transform-origin: 0 0;
  background: url(../imgs/pop.png) no-repeat center / contain;
}

.winner_inner_position {
  position: absolute;
  z-index: 2;
  width: 1082px;
  height: 652px;
  left: 142px;
  top: 122px;
  padding: 168px 0px 0;
}

.phone_box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 86px;
  padding: 0px 100px 0;
}

.wc-label {
  font-size: 30px;
  color: #000;
  flex-shrink: 0;
  font-weight: bold;
}

.wc-phone {
  font-size: 30px;
  font-weight: bold;
  color: #000;
  line-height: 1;
  flex: 1;
}

.context_box {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  height: 236px;
  padding: 30px 100px 0;
}

.context_box .wc-label {
  width: 100%;
}

.wc-content {
  font-size: 30px;
  font-weight: bold;
  color: #000;
  line-height: 1.5;
  overflow-y: auto;
  height: 150px;
}

.wc-badge {
  position: absolute;
  left: 49.6%;
  bottom: 54px;
  transform: translateX(-50%);
  width: 280px;
  height: 80px;
  /* border: 1px solid #000; */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wc-badge-text{
  width: 145px;
  height: 46px;
  background: url(../imgs/jixuchouqu.png) no-repeat center / contain;
}

.wc-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: dot 1.2s infinite;
}

@keyframes dot {

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

  50% {
    opacity: .3;
    transform: scale(.55)
  }
}

.disp-status {
  position: absolute;
  bottom: 104px;
  font-size: 12px;
  color: #d1d1d6;
}

@keyframes rIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0%);
  }
}

.winner_history{
  display: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  overflow: hidden;
  z-index: 998;
}

.winner_history.show {
  display: block;
}
.winner_history.show .rIn{
  animation: rIn .3s ease-out;
}
.history_inner{
  position: fixed;
  z-index: 1;
  width: 40vw;
  height: 100vh;
  /* left: 50%; */
  top: 0;
  right: 0;
  transform-origin: 0 0;
}

.history_inner_position{
  /* position: absolute;
  z-index: 2;
  width: 1200px;
  height: 800px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #FFF;
  border-radius: 24px;
  padding: 0 50px; */

  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  right:0;
  background: #bfe283;
  border-radius: 0;
  padding: 0 calc(50px / 1920px * 100vw);
}

.history_inner_title{
  font-size: calc(50px / 1920px * 100vw);
  line-height: 1;
  text-align: center;
  padding: calc(50px / 1920px * 100vw) 0;
  color: #000;
  font-weight: bold;
  position: relative;
}

.winner_history_close{
  position: absolute;
  top: calc(20px / 1920px * 100vw);
  right: 0;
  cursor: pointer;
}

.history_inner_scroll{
  width: 100%;
  height: calc(100vh - calc(50px / 1920px * 100vw) * 3 - calc(40px / 1920px * 100vw));
}
.history_inner_head{
  font-size: calc(34px / 1920px * 100vw);
  font-weight: 600;
  color: #000;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.history_inner_head .phone_title{
  width: 34%;
  flex-shrink: 0;
}
.history_inner_head .context_title{
  flex: 1;
}

.history_inner_body{
  height: calc(100% - 34px - 20px);
  overflow-y: auto;
  margin-top: calc(40px / 1920px * 100vw);
}
.history_inner_item{
  width: calc(100% - 20px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  /* font-size: calc(30px / 1920px * 100vw); */
  color: #000;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.4);
  padding: var(--item-padding) 0;
  cursor: pointer;
}
.history_inner_item:first-child{
  padding: 0 0 var(--item-padding) 0;
}
.history_inner_item:last-child{
  border-bottom: none;
}
.history_inner_item .phone_item{
  width: 34%;
  flex-shrink: 0;
}
.history_inner_item .context_item{
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.disp-bottom {
  /* position: absolute;
  bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center; */

  position: absolute;
  bottom: 62px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.draw-btn {
  /* display: flex;
  align-items: center;
  gap: 8px;
  background: #007aff;
  border: none;
  color: #fff;
  padding: 14px 44px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 122, 255, .35);
  transition: transform .15s, box-shadow .15s; */

  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  color: #000;
  border-radius: 0;
  cursor: pointer;
  font-size: 48px;
  font-weight: 600;
  width: 520px;
  height: 110px;
  text-align: center;
  justify-content: center;
  background: transparent;
  /* border: 1px solid #000; */
  padding-bottom: 16px;
  padding-right: 9px;
}

/* .draw-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 122, 255, .45);
} */

.draw-btn:disabled {
  /* background: #e5e5ea;
  color: #aeaeb2;
  box-shadow: none; */
  cursor: not-allowed;
}

.draw-btn .toggleBtn_text{
  width: 234px;
  height: 56px;
  background: url(../imgs/shouqu.png) no-repeat center / contain;
}

.draw-btn.show_stop .toggleBtn_text{
  width: 168px;
  height: 54px;
  background: url(../imgs/zanting.png) no-repeat center / contain;
}

.pause-btn {
  background: #fff;
  border: 1.5px solid #e5e5ea;
  color: #1d1d1f;
  padding: 12px 26px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s;
}

.pause-btn:hover:not(:disabled) {
  border-color: #007aff;
  color: #007aff;
}

.pause-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.again-btn {
  display: none !important;
  background: #f5f5f7;
  border: 1.5px solid #e5e5ea;
  color: #8e8e93;
  padding: 12px 22px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  opacity: 0 !important;
}

.again-btn:hover {
  border-color: #007aff;
  color: #007aff;
}

.again-btn.show {
  display: block;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #34c759;
  border: none;
  color: #fff;
  padding: 12px 26px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 20px rgba(52, 199, 89, .3);
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(52, 199, 89, .4);
}