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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
  }

  .lottery-tabs-wrap {
    max-width: 100%;
    margin: 0;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
  }

  .el-tabs__header {
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }

  .el-tabs__nav {
    display: flex;
    border-bottom: none;
  }

  .el-tabs__item {
    flex: 1;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: #888;
    border: none;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.1;
    min-height: 72px;
  }

  .tab-title {
    font-size: 16px;
    font-weight: 700;
    display: block;
  }

  .tab-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: block;
    line-height: 1.3;
  }

  .el-tabs__item:last-child {
    border-right: none;
  }

  .el-tabs__item[data-type="macao"] {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  }

  .el-tabs__item[data-type="xinxincai"] {
    background: linear-gradient(135deg, #4E9EFF 0%, #3B7DD6 100%);
  }

  .el-tabs__item[data-type="hongkong"] {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
  }

  .el-tabs__item:hover {
    color: #ffffff;
    opacity: 0.9;
  }

  .el-tabs__item.is-active {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    opacity: 1;
  }

  /* 未选中时各 tab 颜色 */
  .el-tabs__item[data-type="1"] { background: #5B8BD4; }
  .el-tabs__item[data-type="2"] { background: #8B6BAE; }
  .el-tabs__item[data-type="3"] { background: #45B87A; }
  .el-tabs__item[data-type="4"] { background: #E05050; }

  .el-tabs__item.is-active[data-type="1"] {
    background: linear-gradient(135deg, #4E9EFF 0%, #3B7DD6 100%);
  }

  .el-tabs__item.is-active[data-type="2"] {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  }

  .el-tabs__item.is-active[data-type="3"] {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  }

  .el-tabs__item.is-active[data-type="4"] {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
  }

  .el-tabs__item.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #2ecc71;
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  }

  .el-tabs__item.is-active[data-type="1"]::after {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
  }

  .el-tabs__item.is-active[data-type="2"]::after {
    background: #F1C40F;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.8);
  }

  .el-tabs__item.is-active[data-type="3"]::after {
    background: #FF416C;
    box-shadow: 0 0 8px rgba(255, 65, 108, 0.8);
  }

  .el-tabs__item.is-active[data-type="4"]::after {
    background: #4E9EFF;
    box-shadow: 0 0 8px rgba(78, 158, 255, 0.8);
  }

  .lottery-tai-wan {
    padding: 20px 15px 0 15px;
    background: #ffffff;
  }

  .lottery-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-wrap: nowrap;
  }

  .lottery-top p {
    font-size: 20px;
    color: #000000;
    margin: 0;
    white-space: normal;
    font-weight: 600;
    flex: 0 0 auto;
    line-height: 1.4;
  }

  .lottery-top > .lottery-next__date {
    flex: 1;
    text-align: center;
  }

  .lottery-top > p:last-child {
    flex: 0 0 auto;
  }

  .lottery-text {
    color: #FF0000;
    font-weight: bold;
    font-size: 22px;
  }

  .lottery-top a {
    color: #FF0000;
    text-decoration: none;
    font-size: 20px;
    white-space: nowrap;
    padding: 0;
    background: none;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    font-weight: 600;
  }

  .lottery-top a:hover {
    opacity: 0.8;
  }

  .lottery-nums {
    position: relative;
    min-height: 100px;
    background: transparent;
    border-radius: 0;
    padding: 15px 10px;
    box-shadow: none;
    margin-bottom: 15px;
  }

  .lottery-nums__ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0 10px;
  }

  .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
    border-radius: 8px;
  }

  .loading-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(46, 204, 113, 0.2);
    border-top: 4px solid #2ecc71;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  .loading-spinner.red {
    border: 4px solid rgba(255, 65, 108, 0.2);
    border-top: 4px solid #FF416C;
  }

  .loading-spinner.blue {
    border: 4px solid rgba(78, 158, 255, 0.2);
    border-top: 4px solid #4E9EFF;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 0.6;
    }
    50% {
      transform: scale(1.1);
      opacity: 1;
    }
  }

  @keyframes revealShake {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px) scale(1.05); }
    50% { transform: translateY(0) scale(0.95); }
    75% { transform: translateY(-4px) scale(1.02); }
  }

  @keyframes ballReveal {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .loading-text {
    font-size: 15px;
    color: #2ecc71;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .loading-text.red {
    color: #FF416C;
  }

  .loading-text.blue {
    color: #4E9EFF;
  }

  .lottery-nums__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 75px;
    margin: 0 11px;
  }

  .plus-sign {
    font-size: 28px;
    font-weight: bold;
    color: #f56c6c;
    line-height: 65px;
    margin: 0 15px;
    align-self: center;
  }

  .lottery-num {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    border: none;
    font-style: normal;
    transform: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .lottery-num i {
    font-style: normal;
    position: relative;
    z-index: 1;
    margin-top: -6px;
    margin-left: 2px;
  }

  .lottery-num:hover {
    transform: scale(1.05);
  }

  .lottery-num--red {
    background-image: url('../img/red.png');
  }

  .lottery-num--blue {
    background-image: url('../img/blue.png');
  }

  .lottery-num--green {
    background-image: url('../img/green.png');
  }

  .lottery-num--none {
    background: linear-gradient(135deg, #909399 0%, #606266 100%);
    color: white;
  }

  .lottery-num--none i {
    margin-top: -2px;
    margin-left: 2px;
  }

  .lottery-animal {
    font-size: 20px;
    color: #333;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    width: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 24px;
  }

  .lottery-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 10px 0 10px;
    background: transparent;
    border-radius: 0;
    margin: 0;
    flex-wrap: nowrap;
    box-shadow: none;
  }

  .lottery-next__date {
    font-size: 20px;
    color: #000000;
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 0 0 auto;
  }

  .countdown {
    font-weight: bold;
    color: #FF0000;
    margin-left: 5px;
    font-size: 20px;
  }

  .lottery-next__date .num {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
  }

  .lottery-button__refresh {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
    cursor: pointer;
    margin: 0;
    letter-spacing: 0.3px;
    flex: 0 0 auto;
    white-space: nowrap;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .lottery-button__refresh:hover {
    box-shadow: none;
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%);
    opacity: 0.9;
  }

  .lottery-button__refresh:active {
    box-shadow: none;
    outline: none;
    opacity: 0.8;
  }

  .lottery-button__refresh:focus {
    outline: none;
    box-shadow: none;
  }

  .el-tab-pane {
    display: none;
  }

  @media (max-width: 768px) {
    .lottery-top {
      flex-wrap: nowrap;
      gap: 8px;
      padding: 0 5px;
      margin-bottom: 6px;
      justify-content: space-between;
      align-items: center;
    }

    .lottery-top p {
      font-size: 14px;
      flex: 1 1 auto;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .lottery-top a {
      font-size: 14px;
      padding: 0;
      background: none;
      box-shadow: none;
      flex: 0 0 auto;
      white-space: nowrap;
    }

    .lottery-text {
      font-size: 14px;
    }

    .lottery-nums {
      padding: 8px 5px 2px 5px;
      min-height: 80px;
      margin-bottom: 0px;
    }

    .lottery-nums__ul {
      gap: 4px;
      padding: 0 2px;
    }

    .lottery-nums__item {
      min-width: 45px;
      gap: 12px;
      margin: 0 2px;
    }

    .lottery-num {
      width: 45px;
      height: 45px;
      font-size: 18px;
    }

    .lottery-num i {
      margin-top: -1px;
      margin-left: 1px;
    }

    .plus-sign {
      font-size: 20px;
      line-height: 45px;
      margin: 0 5px;
    }

    .lottery-animal {
      font-size: 16px;
      width: 45px;
      min-height: 18px;
    }

    .lottery-bottom {
      flex-wrap: nowrap;
      gap: 8px;
      padding: 0 5px 0 5px;
      margin-top: 0px;
    }

    .lottery-next__date {
      font-size: 14px;
      flex: 1 1 auto;
      text-align: left;
    }

    .lottery-next__date .num {
      font-size: 16px;
    }

    .countdown {
      font-size: 16px;
    }

    .lottery-button__refresh {
      padding: 5px 12px;
      font-size: 11px;
      flex: 0 0 auto;
      margin: 0;
    }

    .el-tabs__item {
      padding: 10px 6px;
      font-size: 13px;
      min-height: 60px;
    }

    .tab-title {
      font-size: 14px;
    }

    .tab-subtitle {
      font-size: 12px;
      font-weight: 500;
    }

    .lottery-tai-wan {
      padding: 12px 8px 0 8px;
    }
  }

  @media (max-width: 480px) {
    .lottery-top p {
      font-size: 13px;
    }

    .lottery-top a {
      font-size: 13px;
    }

    .lottery-text {
      font-size: 13px;
    }

    .lottery-nums {
      padding: 6px 3px 1px 3px;
      margin-bottom: 0px;
    }

    .lottery-nums__item {
      min-width: 40px;
      gap: 10px;
      margin: 0 1px;
    }

    .lottery-bottom {
      padding: 0 5px 0 5px;
      margin-top: 0px;
    }

    .lottery-num {
      width: 40px;
      height: 40px;
      font-size: 16px;
    }

    .plus-sign {
      font-size: 18px;
      line-height: 40px;
      margin: 0 3px;
    }

    .lottery-animal {
      font-size: 14px;
      width: 40px;
    }

    .lottery-next__date {
      font-size: 13px;
    }

    .lottery-next__date .num {
      font-size: 15px;
    }

    .countdown {
      font-size: 15px;
    }

    .el-tabs__item {
      padding: 8px 4px;
      font-size: 11px;
      min-height: 50px;
    }

    .tab-title {
      font-size: 12px;
    }

    .tab-subtitle {
      font-size: 10px;
      font-weight: 500;
    }
  }