﻿.topup {
  margin-top: 60px;
  margin-bottom: 102px;
  display: flex;
  justify-content: space-between;
}

.topup-left {
  width: 25%;
  height: fit-content;
  padding: 30px;
  border: 1px solid #dde2e6;
  border-radius: 24px;
  margin-right: 2.778%;
}

.topup-left h4 {
  font-size: 24px;
  font-weight: bold;
  line-height: 32px;
  color: #000;
  text-align: center;
}

.topup-left p {
  font-size: 16px;
  line-height: 32px;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

.topup-line {
  width: 100%;
  height: 1px;
  background: #dde2e6;
  margin-top: 30px;
  margin-bottom: 30px;
}

.topup-left ul li {
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 32px;
  color: #666666;
}

.tab-active {
  background: #fff9f0;
  color: #9c8663 !important;
}
.topup .mobile-search{
  display: none;
}
.topup-right .pc-search{
  display: block;
}
/* 搜索 */
.search-main {
  width: 100%;
  height: 60px;
  border: 1px solid #e0e0e0;
  border-radius: 58px !important;
}

.search-main input {
  border: none;
  background: none;
  outline: none;
}

.search-main input.pro-search-input {
  float: left;
  width: calc(100% - 190px);
  height: 58px;
  padding: 12px 20px;
  font-size: 16px;
  color: #000;
  line-height: 34px;
}

.search-main input.pro-search-btn {
  float: right;
  width: 190px;
  height: 58px;
  background: #caae82;
  color: #fff;
  font-size: 16px;
  border-radius: 0px 56px 58px 0px;
  line-height: 58px;
}

/* 套餐详情 */
.topup-right {
  flex: 1;
}

.right-content {
  width: 100%;
  padding: 40px 40px 10px 40px;
  border-radius: 24px;
  border: 1px solid #dde2e6;
  margin-top: 40px;
}

.content-header {
  border: 1px solid #dde2e6;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  /* 兼容 Safari 浏览器 */
  width: -webkit-fit-content;
  margin: 0 auto 40px auto;
}

.topup-btn {
 
  padding: 4px 12px;
  font-size: 16px;
  line-height: 44px;
  border-radius: 12px;

  color: #3d3d3d;
  text-align: center;
  cursor: pointer;
}

.tabs-active {
  background: #caae82;
  color: #fff !important;
}



.content-body ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
  gap: 20px;
}

.content-body ul li {
  width: 31.9%;
  padding: 20px 25px 40px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  cursor: pointer;

  color: #666666;
  border-radius: 24px;

  background: #fcfcfc;

  border: 1px solid #dde2e6;
  overflow: hidden;
  position: relative;
}

.tipl {
  border-radius: 24px 0px 24px 0px;
  padding: 7px 30px;
  width: fit-content;
  background: #caae82;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  position: absolute;
  top: 0;
  left: 0;
}
.purchaseds .content-body .topup-list h4{
  margin-top: 15px;
}
.tipl-gary {
  background: #e0e0e0;
  color: #999999;
}

.content-body ul .newtopup-list {
  background: linear-gradient(180deg, #fff9f0 0%, rgba(255, 249, 240, 0) 100%);
}

.list-img {
  display: flex;
  justify-content: end;
}

.list-img .img-box {
  width: 28px;
  height: 28px;
  padding: 6px 10px;
  border: 1px solid #cdd1d4;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.list-img .img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.topup-list h4 {
  font-size: 24px;
  color: #000000;
  line-height: normal;
  font-weight: 400;
  text-align: center;
}

.topup-money {
  text-align: center;
  margin-top: 42px;
}

.topup-money span {
  font-weight: bold;
  line-height: normal;
  font-size: 40px;
  color: #caae82;
  letter-spacing: 0em;
}
.expired .topup-money span {
  color: #888888;
}
.topup-money span text {
  font-size: 16px;
  font-weight: 400;
}

.topup-money s {
  font-size: 16px;
  color: #878787;
}

.topup-list p {
  font-size: 16px;
  color: #caae82;
  text-align: center;
  margin-top: 30px;
}
.expired p {
  color: #888888;
}
.expired-img{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.expired-img img{
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  vertical-align: middle;
}
.list-btn {
  width: 100%;
  line-height: 58px;
  background: #caae82;
  font-size: 16px;
  text-align: center;
  color: #fff;
  border-radius: 58px;
  margin-top: 30px;
}

.topup-time {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  color: #888888;
  position: relative;
  padding-left: 10px;
}

.topup-time::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0px;
  color: #878787;
  font-size: 16px;
}
.body-no-scroll {
  overflow: hidden !important;
  width: 100%;
}
/* 弹出层 */
.maskss {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: none;
  /* 默认隐藏 */
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none; /* 增强移动端兼容性 */
}

/* 弹窗容器 */
.package-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: fit-content;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  z-index: 1000;
  display: none;
  /* 默认隐藏 */
  box-sizing: border-box;
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
}

.modal-header h4 {
  font-size: 16px;
  font-weight: bold;
}

/* 关闭按钮 */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

/* 账号提示 */
.account-tip {
  text-align: center;
  color: #28a745;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
}

/* 套餐详情 */
.package-info {
  margin-top: 40px;
  margin-bottom: 25px;
}

.package-search {
  padding: 40px 80px;
  margin: 0;
  max-width: fit-content;
}
.search-info {
  height: fit-content !important;
}
.package-info p {
  font-size: 16px;
  line-height: 32px;
  margin-bottom: 20px;
  font-weight: 600;
}

.package-info ul {
  padding-left: 20px;
}

.package-info ul,
.package-info li {
  font-size: 16px;
  line-height: 32px;
  font-weight: 400;
  list-style: unset;
  color: #878787;
}

.package-info a {
  color: #caae82 !important;
  text-decoration: none !important;
}

.info-img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.package-name {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.package-price {
  margin-bottom: 15px;
}

.package-price span {
  font-size: 24px;
  color: #dc3545;
  font-weight: bold;
  margin-right: 8px;
}

.package-price s {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.package-desc p {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.package-info {
  overflow-y: auto;
  height: 400px;
  margin-top: 20px;
  overscroll-behavior: contain;
}

.package-info::-webkit-scrollbar {
  width: 2px;
}

.package-info::-webkit-scrollbar-thumb {
  background-color: #caae82;
  border-radius: 3px;
}

/* 操作按钮 */
.modal-btns {
  display: flex;
  gap: 15px;
}

.buy-btn,
.cancel-btn {
  flex: 1;
  text-align: center;

  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.search-btn {
  margin-top: 20px;
}

.buy-btn {
  border-radius: 58px;
  line-height: 58px;

  text-decoration: none;
   color: #fff;
   background-color: #caae82;
}

.buy-btn:hover {
  color: #fff;
  
}

.cancel-btn {
  border-radius: 58px;
  line-height: 58px;
   color: #caae82;
 border: 1px solid #caae82;
}

@media (max-width: 1280px) {
  .content-body ul li {
    width: 49%;
  }

  .right-content {
    padding: 30px 30px 10px 30px;
  }
}

@media (max-width: 1080px) {
  .content-body ul li {
    width: 49%;
    
  }

  .right-content {
    padding: 20px 20px 10px 20px;
  }

  .list-btn {
    line-height: 38px;
  }

  .topup-money {
    margin-top: 20px;
  }

  .topup-money span {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .topup {
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 50px;
  }

  .topup-left {
    width: 100%;
    padding: 20px;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .content-body ul li {
    width: 49%;
    
  }

  .content-header {
    margin: 0 auto 20px auto;
  }
}

@media (max-width: 769px) {
  
  .topup {
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 50px;
  }

  .topup-left {
    width: 100%;
    padding: 16px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .right-content {
    margin-top: 10px;
    padding: 16px 16px 6px 16px;
  }

 .content-header {
    margin: 0 auto 20px auto;
  }

  .topup-btn {
    width: fit-content;
    font-size: 14px;
    line-height: 20px;
  }

  .content-body ul {
    flex-direction: column;
  }

  .content-body ul li {
    width: 100%;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .package-modal {
    left: 5%;
    transform: translate(-0%, -50%);
  }

  .package-info {
    overflow-y: scroll;
    height: 300px;
    margin-top: 20px;
  }

  .package-info::-webkit-scrollbar {
    width: 2px;
  }

  .package-info::-webkit-scrollbar-thumb {
    background-color: #caae82;
    border-radius: 3px;
  }

  .buy-btn,
  .cancel-btn {
    line-height: 48px;
  }

  .package-info p {
    font-size: 14px;
    line-height: 28px;
    margin-bottom: 10px;
  }

  .package-info ul,
  .package-info li {
    font-size: 14px;
    line-height: 28px;
  }

 
  .package-search {
    padding: 20px 40px;
  }
  .topup-right .pc-search{
    display: none;
    width: 100%;
    height: 40px;
  }
  .topup .mobile-search{
    display: block;
    width: 100%;
    height: 40px;
    margin-bottom: 20px;
  }
  

  .search-main input.pro-search-input {
    height: 38px;

    font-size: 14px;

    line-height: 34px;
  }

  .search-main input.pro-search-btn {
    height: 38px;

    font-size: 14px;

    line-height: 38px;
  }
  .topup-time {
    font-size: 14px;
  }
}
