:root {
  --color: #fff;
  --btnPrimary: #12adf4;
  --main: #e34930;
  --headHeight: 80px;
  --leftMenuWidth: 220px;
  --background: rgb(33, 33, 33);
  --boxShadow: rgba(63, 61, 61, 0.76);
  --hover: #2b2b2b;
  --transBackground: #303133;
  --textColor: #d9d9d9;
  --input-bg-color: #283542;
  --lightMember: none;
}
@media (max-width: 1000px) {
  --headHeight: 60px;
}
body {
  background: #22272d;
  color: var(--color);
  font-size: 14px;
}

h1 {
  font-size: 2em;
  font-weight: bold;
}

h2 {
  font-size: 1.5em;
  font-weight: bold;
}

h3 {
  font-size: 1.17em;
  font-weight: bold;
}

h4 {
  font-size: 1em;
  font-weight: bold;
}

h5 {
  font-size: 0.83em;
  font-weight: bold;
}


.el-backtop {
  z-index: 20 !important;
}

#paginate {
  margin-top: 15px;
  padding: 10px 15px 5px;
  background: var(--background);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bg {
  background: var(--background);
}


.el-dialog {
  border-radius: 15px !important;
}


.colors {
  color: var(--color);
}


[v-cloak] {
  opacity: 0;
}



.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}

.layui-layer-hui .layui-layer-content {
  padding: 12px 25px !important;
}

.layui-layer-msg {
  background-color: #4D4D4D !important;
}

.layui-layer-msg,
.layui-layer-page {
  border-radius: 12px !important;
}

.folderMiniCard {
  >.miniCard {
    >.folderMiniCard-img {
      position: relative;
      width: 100%;
      height: calc(~'100% - 30px');
      overflow: hidden;
      border-radius: 8px;

      >.mask {
        pointer-events: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: 9;

        >.collect {
          pointer-events: all;
          position: absolute;
          border-radius: 10px;
          background: rgba(66, 62, 62, 0.48);
          font-size: 16px;
          display: flex;
          justify-content: center;
          align-items: center;
          bottom: 10px;
          right: 10px;
          z-index: 9;
          padding: 3px;
          color: #5691ff;
        }

        >.viewNum {
          position: absolute;
          border-radius: 10px;
          font-size: 12px;
          display: flex;
          justify-content: center;
          align-items: center;
          top: 5px;
          text-align: center;
          right: 5px;
          text-shadow: 0 0 4px #cccccc;
          padding: 3px 10px;
          color: #ffffff;
          background-color: rgba(66, 66, 66, 0.466);
        }
      }

      >img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 2s;
        object-position: top;

        &:hover {
          object-position: bottom;
          filter: blur(10);
          transform: scale(1.1);
        }
      }

    }

    .folderMiniCard-title {
      font-weight: bold;
      margin-top: 8px;
      width: 100%;
      font-size: 14px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}

.folderCard {
  >.folderCard-a {
    >.folderCard-img {
      position: relative;
      width: 100%;
      height: calc(~'100% - 30px');
      border-radius: 15px;
      overflow: hidden;

      >.mask {
        pointer-events: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: 9;

        >.collect {
          z-index: 9;
          pointer-events: all;
          position: absolute;
          border-radius: 10px;
          background: rgba(66, 62, 62, 0.48);
          font-size: 16px;
          display: flex;
          justify-content: center;
          align-items: center;
          bottom: 10px;
          right: 10px;
          padding: 3px;
          color: #5691ff;
        }

        >.viewNum {
          position: absolute;
          border-radius: 10px;
          background: rgba(66, 62, 62, 0.48);
          font-size: 12px;
          display: flex;
          justify-content: center;
          align-items: center;
          top: 10px;
          text-align: center;
          right: 10px;
          padding: 3px 10px;
          color: #fff;
        }
      }

      >img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 2s;
        object-position: top;

        &:hover {
          object-position: bottom;
          filter: blur(10);
          transform: scale(1.1);
        }
      }
    }

    .folderCard-title {
      font-weight: bold;
      margin-top: 8px;
      width: 100%;
      font-size: 14px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

  }
}

.imageCard {
  >.imageCard-a {
    >.imageCard-img {
      position: relative;
      width: 100%;
      height: calc(~"100% - 30px");
      border-radius: 15px;
      overflow: hidden;

      >img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 2s;
        object-position: top;

        &:hover {
          object-position: bottom;
          filter: blur(10);
          transform: scale(1.1);
        }
      }

      .mask {
        pointer-events: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: 9;

        >.folder {
          position: absolute;
          border-radius: 10px;
          background: rgba(66, 62, 62, 0.48);
          font-size: 12px;
          display: flex;
          justify-content: center;
          align-items: center;
          bottom: 12px;
          left: 12px;
          z-index: 9;
          padding: 3px 10px;
          color: #ffffff;
        }

        >.collect {
          pointer-events: all;
          position: absolute;
          width: 25px;
          height: 25px;
          border-radius: 10px;
          background: rgba(66, 62, 62, 0.68);
          font-size: 17px;
          font-weight: bold;
          display: flex;
          justify-content: center;
          align-items: center;
          bottom: 12px;
          right: 12px;
          z-index: 9;
        }

        >.viewNum {
          position: absolute;
          border-radius: 10px;
          background: rgba(66, 62, 62, 0.48);
          font-size: 12px;
          display: flex;
          justify-content: center;
          align-items: center;
          top: 12px;
          right: 12px;
          padding: 2px 10px;
          color: #ffffff;
        }
      }
    }

    .imageCard-title {
      font-weight: bold;
      margin-top: 8px;
      width: 100%;
      font-size: 14px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}

.layui-laypage .layui-laypage-skip {
  background: transparent !important;
}

.layui-laypage a,
.layui-laypage button,
.layui-laypage input {
  background: var(--transBackground) !important;
  color: var(--color) !important;
}


.payController {
  min-height: 300px;
  border-radius: 10px;
  padding: 15px;

  .syt {
    margin-top: 10px;
    text-align: center;
    height: 32px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0em;
    color: #1E1E1E;
  }

  .price_syt {
    margin-top: 15px;
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    color: #000000;
  }

  .tipsss {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 350;
    color: #9E9E9E;
  }

  .goodsName {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #1A1A1A;
  }

  .paytype {
    margin-top: 20px;

    display: flex;
    justify-content: space-around;

    >.zfb {
      display: flex;
      align-items: center;
      width: 120px;
      height: 40px;
      border-radius: 8px;
      opacity: 1;
      background: #2D93FF;
      color: #fff;
      font-weight: bold;
      font-size: 14px;
      box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
      cursor: pointer;

      >span {
        font-weight: 100;
        font-size: 20px;
      }
    }

    >.wx {
      display: flex;
      align-items: center;
      cursor: pointer;
      width: 120.34px;
      height: 40.45px;
      border-radius: 8px;
      background: rgb(21,209,105);
      color: #fff;
      font-size: 14px;
      font-weight: bold;
      box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);

      >span {
        font-weight: 100;
        font-size: 20px;
      }
    }
  }
}

.cancel-syt {
  margin-top: 15px;
  display: flex;
  justify-content: center;

  >span {
    cursor: pointer;
    position: relative;
    color: #9E9E9E;
  }
}

.addScroeComponent {
  width: 100%;
  border-radius: 10px;
  background-color: var(--background);
  padding: 15px;

  >.title-sc {
    margin-top: 10px;
    text-align: center;
    height: 32px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0em;
    color: var(--color) !important;
  }

  >.jifen {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(2, 40px);
    justify-content: center;
    gap: 10px;

    >div {
      border-radius: 5px;
      background-color: #f0f0f0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.1);

      >* {
        background-color: transparent;
        width: 100%;
        height: 100%;
        border: none;
        padding: 10px;
        font-size: 16px;
        text-align: center;
        color: #092455;
        font-weight: 600;

        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
          -webkit-appearance: none !important;
          margin: 0;
        }
      }
    }
  }

  >.submit-score {
    margin-top: 15px;
    margin-bottom: 10px;

    >button {
      width: 100%;
      padding: 10px 15px;
      border-radius: 10px;
      color: #fff;
      background: var(--btnPrimary);
    }
  }
}

.score-select {
  background-color: var(--btnPrimary) !important;
  color: #fff !important;
}


.globalNotifly {
  position: relative;
  border-radius: 10px;
  background-color: var(--background);
  padding: 15px;

  >h2 {
    text-align: center;
    font-size: 18px;
    font-weight: bolder;
  }

  >.article {
    position: relative;
    overflow-y: scroll;
    margin-top: 20px;
    max-height: 376px;

    >img,
    >p>img {
      width: 100%;
    }
  }

  >.btna {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;

    >a {
      padding: 5px 10px;
      font-size: 14px;
      border-radius: 5px;
      background-color: var(--btnPrimary);
      color: #fff !important;
    }
  }

  .closeThis {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 25px;
  }
}


footer {
  background-color: #0d1821;
  padding:0px 0px 20px 0px;

  >.footer-item {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 15px;

    >.left {
      >.logo-footer {
        display: flex;

        >img {
          width: 40px;
          height: 40px;
          border-radius: 6px;
          margin-right: 10px;
        }

        >h2 {
          font-size: 30px;
        }
      }

      >p {
        margin-top: 5px;
        font-size: 14px;
      }
    }

    >.rightBox {
      display: grid;
      grid-template-columns: 300px 300px;
      >.nav {
        padding-top: 0px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        >b {
          font-size: 16px;
        }

        >div {
          display: grid;
          grid-template-columns:1fr 1fr;
          grid-template-rows: 30px 30px;
        }
      }

      >.right {
        padding-top: 0px;
        display: flex;
        flex-direction: column;
        gap: 12px;

        >b {
          font-size: 16px;
        }

        >div {
          display: grid;
          grid-template-columns:1fr 1fr;
          grid-template-rows: 30px 30px;
        }
      }
    }

  }

}

.footer-d {
  background-color: var(--hover);
}

@media (max-width:500px) {
  .footer-item {
    grid-template-columns: 1fr !important;
    >.rightBox {
      display: grid;
      grid-template-columns:1fr 1fr !important;
    }
  }
}

/* ===== BUTTON TEXT CENTERING FIXES ===== */
/* Fix for all LayUI buttons to ensure text is properly centered */
.layui-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for LayUI badges and status indicators */
.layui-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for custom button classes */
.xufei,
.lookMail,
.lookPas,
.useTips,
.bindAccount,
.afterSale,
.chewei {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for login and form buttons */
.login-button,
.cta-button,
.contact-button,
.floating-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for back buttons and navigation buttons */
#backBtn,
#backbtn,
.back button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for submit and action buttons */
#submit_yhm,
.submit-score button,
.grade button,
button[type="submit"],
button[type="button"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for Element UI buttons */
.el-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for status text and badges */
.layui-bg-orange,
.layui-bg-green,
.layui-bg-blue,
.layui-bg-red {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for generic button elements */
button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Fix for input buttons and upload buttons */
.layui-upload-button,
input[type="button"],
input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Ensure icons in buttons are properly aligned */
.layui-btn .layui-icon,
button .layui-icon,
button i {
  vertical-align: middle !important;
  line-height: 1 !important;
}

/* Fix for specific button containers */
.layui-btn-container .layui-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Fix for form buttons */
.layui-form-item button,
.form-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* ===== END BUTTON TEXT CENTERING FIXES ===== */