body{background-color:#f0f0f0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:100vh}.navbar{background-color:#fff;border-bottom:1px solid #e7e7e7}.user-left-box .user-avatar{display:block;width:100px;height:100px;border-radius:50%;border:1px solid #e7e7e7;margin:0 auto}.user-dashboard-container{padding-top:30px;padding-bottom:30px}.card{border:none;border-radius:8px;-webkit-box-shadow:0 4px 8px rgba(0,0,0,.05);box-shadow:0 4px 8px rgba(0,0,0,.05)}.card-header{background-color:#fff;border-bottom:1px solid #eee;font-weight:600;padding:1rem 1.5rem}.card-header h6{font-size:1rem}.card-body{padding:1.5rem}.sidebar-card .card-body{padding-top:2rem;padding-bottom:1rem}.sidebar-card h5{font-size:1.1rem}.sidebar-card .list-group-item{border-left:0;border-right:0;padding:0}.sidebar-card .nav-link{padding:12px 20px;color:#333;font-size:14px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.sidebar-card .nav-link:hover{background-color:#f5f5f5;color:#ff6c02}.sidebar-card .nav-link.active{background-color:#f0f0f0;color:#ff6c02;border-left:3px solid #ff6c02;font-weight:600}.sidebar-card .layui-icon{font-size:17px;vertical-align:middle;margin-right:8px}.sidebar-card .badge{font-size:12px;padding:5px 10px;background-color:#f0f0f0 !important;color:#555 !important}.account-info-detail p{margin-bottom:.5rem;font-size:13px}.account-info-detail .fw-bold{font-size:15px;color:#333}.account-info-detail .text-orange{color:#ff6c02 !important}.account-info-detail .text-muted{color:#888 !important}@media(min-width: 992px){.col-lg-custom-sidebar{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:20%}.col-lg-custom-main-content{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:80%}}.profile-avatar-container{position:relative;width:100px;border-radius:50%;border:1px solid #e7e7e7;overflow:hidden}.profile-avatar-container .profile-user-img{width:100px;height:100px}.profile-avatar-container .profile-avatar-text{display:none}.profile-avatar-container:hover .profile-avatar-text{display:block;position:absolute;height:100px;width:100px;background:#444;opacity:.6;color:#fff;top:0;left:0;line-height:100px;text-align:center}.profile-avatar-container button{position:absolute;top:0;left:0;width:100px;height:100px;opacity:0 !important}.layui-form-label{width:100px;text-align:right;padding:9px 10px}.layui-input-group{width:100%}.layui-input-group .layui-input-suffix{text-align:left}.layui-btn-default{background-color:#ff6c02}.layui-border-orange{border-color:#ff6c02 !important;color:#ff6c02 !important}.form-layer{height:100%;min-height:150px;min-width:300px}.form-body{width:100%;overflow:auto;top:0;position:absolute;z-index:10;bottom:50px;padding:15px}.form-layer .form-footer{height:50px;line-height:50px;background-color:#ecf0f1;width:100%;position:absolute;z-index:200;bottom:0;margin:0}.form-footer .form-group{margin-left:0;margin-right:0}
/* 弹窗设计 */
.mask{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  overflow-y: auto;        /* PC：允许遮罩内垂直滚动 */
  padding: 24px 0;        /* 顶底留白，避免贴边 */
}
.vip-shop {
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
  
}

.vip-shop-box h3{
  font-size: 20px;
  color: #000;
  margin-bottom: 10px;
}
.vip-shop-box h3,
.vip-shop-box .title2 {
  display: block;
  text-align: center;
  margin: 0 auto;
}
.vip-shop-box .title2 {
  margin-bottom: 20px;
}
.vip-shop-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-top: 10px;
  max-width: 780px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-height: 90vh;        /* PC：整体高度不超过视口 */
  /*overflow-y: auto;         超出时内部可滚动 */
  overflow-y: auto;
  scrollbar-width: none;
}
.vip-shop-box::-webkit-scrollbar{
    display: none;
}
.vip-shop .closeBtn{
  position: absolute;
  top: -5px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: #ccc;
  font-size: 16px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0px 1px #8c8888;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transform: rotate(45deg);
}
/* 模式切换样式 */
.vip-mode-switch {
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.vip-mode-switch h4 {
  margin-bottom: 12px;
  color: #333;
  font-size: 16px;
}
.mode-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: nowrap;
}
.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 10px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}
.mode-btn .mode-text-sm{ display:none; }
.mode-btn .mode-text-lg{ display:inline; }
.mode-btn:hover {
  border-color: #ff6a00;
  background: #fff;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15);
}
.mode-btn.active {
  border-color: #ff6a00;
  background: #ff6a00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}
.mode-btn i {
  font-size: 20px;
  margin-bottom: 6px;
}
.mode-desc {
  font-size: 12px;
  color: inherit;
  opacity: 0.8;
  margin-top: 4px;
  line-height: 1.3;
}
.mode-btn.active .mode-desc {
  opacity: 0.9;
}

/* 加载状态样式 */
.loading-regions, .error-regions, .empty-regions {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}
.loading-regions i {
  margin-right: 8px;
  color: #ff6a00;
}
.error-regions {
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}
.empty-regions {
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.vip-times,
.vip-regions {
   /* 声明一个容器 */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 5px;
}
.vip-time-title,
.vip-region {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  user-select: none;
}
.vip-time-title:hover,
.vip-region:hover {
  background: #f0f0f0;
  border-color: #ff6a00;
  transform: translateY(-1px);
}
.vip-time input,
.vip-region input {
  margin-right: 6px;
}
.vip-region .region-name {
  flex: 1;
  margin-right: 8px;
}
.vip-region .region-price {
  color: #ff6a00;
  font-weight: bold;
  font-size: 14px;
}
.vip-region .region-expire {
  color: #888;
  font-size: 12px;
  margin-left: 8px;
}
.vip-region input:checked + .region-name {
  color: #ff6a00;
  font-weight: 500;
}
.vip-region:has(input:checked) {
  background: #fff5f0;
  border-color: #ff6a00;
  box-shadow: 0 2px 4px rgba(255, 106, 0, 0.1);
}

.vip-regions-box{
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.vip-summary {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}
.vip-summary strong {
  color: #ff6a00;
  font-size: 18px;
}

.vip-actions {
  text-align: center;
  background: #fff;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.vip-actions .vip-hint{
  text-align: left;
  margin: 0 0 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
}
.vip-actions .vip-hint-header{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  cursor:pointer;
  color:#333;
}
.vip-actions .vip-hint-header .caret{
  margin-left:auto;
  transition: transform .2s ease;
}
.vip-actions .vip-hint.open .vip-hint-header .caret{
  transform: rotate(180deg);
}
.vip-actions .vip-hint-details{
  display:none;
  padding:8px 12px 10px;
  color:#666;
  font-size: 14px;
}
.vip-actions .vip-hint.open .vip-hint-details{
  display:block;
}
.vip-actions .vip-summary{
  display:flex;
  gap:16px;
  flex-wrap: wrap;
  padding-top:6px;
}
.vip-actions .vip-formula{
  font-size: 13px;
  color:#888;
}
.vip-actions .btn {
  background: #ff6a00;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vip-actions .btn:hover:not(:disabled) {
  background: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}
.vip-actions .btn:disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  font-weight: 500;
}
.vip-actions .btn:disabled:hover {
  background: #c82333;
  transform: none;
  box-shadow: none;
}
.vip-options{
  margin-bottom: 10px;
}
.vip-options h4{
  margin-bottom: 10px;
  font-size: 14px;
}
.vip-options .tips{
    color:red;
    margin-bottom: 10px;
    font-size:12px;
}
.vip-times{
  margin: 10px 0;
  display: flex;
}
.vip-times .vip-time{
  flex-wrap: nowrap;
}
.vip-times .vip-time input{
  display: none;
}
.vip-times .vip-time input:checked + .vip-time-title{
  background: #ff6a00;
  color: #fff;
}
.vip-times .vip-time label{
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.vip-times .vip-time label:hover{
  background: #e55a00;
}
.vip-region-tip{
  margin-top: 20px;
}
.selectBox{
    grid-template-columns: repeat(2, 1fr)!important;
    overflow-y: auto;
    margin-top:20px;
}
/* 响应式设计 */
@media (max-width: 768px) {
  /* 首页 */
  .home-new .home-item .home-title {
    height: 40px;
    line-height: 30px;
    padding: 0 10px;
}
  .home-new .home-item .home-title .s-title {
    font-size: 14px;
    text-indent: 10px;
}
.home-new .home-item .home-list li{
  text-indent: 12px;
}
.log-box{
  display: none;
}
/* 弹窗 */
  .mode-buttons {
    align-items: center;
    flex-wrap: nowrap; /* 两个按钮同排显示 */
    gap: 8px;
  }
  .mode-btn {
    width: auto;       /* 不占满整行 */
    max-width: none;
    flex: 1 1 0;       /* 平分一行空间 */
    min-width: 0;      /* 允许收缩避免换行 */
    font-size: 12px;
    padding: 5px 10px;
  }
  .mode-btn .mode-text-sm{ display:inline; }
  .mode-btn .mode-text-lg{ display:none; }
  .mode-btn .mode-desc{
    font-size: 12px;
    display: none;
  }
  .mode-btn i{
    font-size: 14px;
  }
  .vip-shop{
    width: 90%;
  }
  .vip-times,
  .vip-regions {
  grid-template-columns: repeat(4, 95px);
   font-size: 13px;
  }
  .vip-time,
  .vip-region {
    font-size: 13px;
  }
  .vip-mode-switch{
    padding-bottom: 5px;
  }
  .vip-mode-switch,.vip-options,.vip-options h4{
    margin-bottom: 5px;
  }
  .vip-regions-box{
    max-height: 60vh;
  }
  .vip-summary,.vip-region-tip{
    font-size: 13px;
  }
  .vip-actions .vip-hint{
    margin-bottom:8px;
  }
  .vip-actions .vip-summary{ gap:8px; }
  .vip-actions{
    /*position: sticky;*/
    /*bottom: 0;*/
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
    /*z-index: 2;*/
  }
  .vip-actions .btn{
    padding: 10px;
    font-size: 15px;
    width: 100%;
  }
}

/* 超小屏优化 */
@media (max-width: 420px) {
  .vip-times,
  .vip-regions {
    grid-template-columns: repeat(3, 92px);
    grid-gap: 8px;
  }
  .vip-regions-box{
    max-height: 160px;
  }
  .vip-actions .btn{
    font-size: 15px;
  }
}

/* PC优化：增加地区滚动高度，避免遮挡 */
@media (min-width: 992px) {
  .vip-shop {
    width: 70%;
    max-width: 780px;
  }
  .vip-regions-box{
    max-height: 50vh;
  }
}
