@import "./birthdayCard.css";
@import "./registerResetPassword.css";
@import "./rechargeView.css";
@import "./bottomSheet.css";
@import "./couponPage.css";

/* 会员中心 */
#personalCenterPopup {
  display: none;
  height: 100%;
  height: -webkit-fill-available;
}
.personalCenterWarp {
  display: flex;
  flex-direction: column;
  /* height: 100vh;
    width: 100vw; */
  padding: 1rem 0.8rem 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(20deg, #f0f6ff 0%, #ffffff 100%);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake-once {
  animation: shake 0.5s;
}

.user-center-logout {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
}
.user-center-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
}

.user-center-close i {
  font-size: 0.8rem;
}
.user-center-logout img {
  width: 0.7rem;
}
.user-logo {
  text-align: center;
  margin-bottom: 0.2rem;
}
.user-logo img {
  max-height: 4rem;
}
  min-height: 0;
  /* align-items: center; */
}
.user-fade {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-out;
}
.user-fade.show {
  visibility: visible;
  opacity: 1;
  flex: 1;
  min-height: 0;
}

.user-logged-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.user-footer-btn {
  font-size: 0.38rem;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  padding: 0.27rem 0;
  width: 100%;
  background-color: var(--styleColor);
  border-radius: 0.18rem;
  margin: 0 auto;
  color: #fff;
}
.layui-customPanel-form,
.searchFoodDia-form,
.user-login .user-login-Form .layui-form-item {
  display: flex;
}
.layui-customPanel-label,
.searchFoodDia-label {
  width: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fafafa;
  border-width: 0.1px;
  border-style: solid;
  border-radius: 2px 0 0 2px;
  box-sizing: border-box;
  border: 0.1px solid #eee;
  border-right: none;
}
.layui-customPanel-label-icon,
.searchFoodDia-icon {
  font-size: 0.5rem !important;
  color: var(--styleColor);
}
.layui-customPanel-label-input,
.searchFoodDia-inputBox {
  flex: 1;
}

.user-account {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 90vw;
  margin: 0 auto;
}

.user-account-title {
  text-align: center;
  position: relative;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ebeef5;
  font-size: 0.35rem;
}

.user-account-title-main {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.user-account-title-text {
  white-space: nowrap;
}

.user-account-title i {
  font-size: 32px;
  color: var(--styleColor);
  display: block;
  margin-bottom: 10px;
}

.user-account-header {
  position: relative;
  margin-top: 15px;
  padding: 15px 8px;
  background: #f7f8fa;
  border-radius: 8px;
  word-break: keep-all;
}

.user-account-header p {
  color: #606266;
  font-size: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-account-header i {
  color: var(--styleColor);
}

.user-account-list {
  margin: 0.2rem 0;
  padding: 0.2rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ebeef5;
  transition: all 0.3s;
}

.user-account-num {
  font-weight: 500;
  color: #303133;
  font-size: 0.35rem;
}

.user-account-point {
  color: #67c23a;
  font-weight: 500;
  font-size: 0.35rem;
}

.select-account-btnWarp {
  display: flex;
  align-items: center;
  justify-content: end;
}
.select-account-btn {
  width: 1.8rem;
  padding: 0.15rem 0;
  background: var(--styleColor);
  border-radius: 0.1rem;
  color: #eee;
  text-align: center;
}
.select-account-btn i {
  margin-right: 4px;
}

.user-account-content div p {
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-account-header p:nth-child(1),
.user-account-content .user-account-list .user-account-num {
  justify-content: left;
}

.user-card {
  padding: 0.4rem 0.5rem;
  max-width: 92vw;
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.user-card-header {
  margin-bottom: 0.4rem;
  padding-bottom: 0.2rem;
  position: relative;
  border-bottom: 1px solid #edf1f7;
  display: flex;
  align-items: center;
}
.user-card-name {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #2c3e50;
}
.user-card-name::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 1.2rem;
  height: 0.06rem;
  background: linear-gradient(to right, var(--styleColor), rgba(64, 158, 255, 0.3));
  border-radius: 0.1rem;
}

.recharge-btn-img {
  width: 0.35rem;
  margin-right: 0.15rem;
  object-fit: contain;
}
.user-card-content {
  position: relative;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.user-card-content::-webkit-scrollbar {
  display: none;
}

.user-card-cell {
  padding: 1vh 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ebedf0;
  margin-bottom: 0.1rem;
  font-size: 0.355rem;
}

.user-card-cell > .card-cell-value:empty::before {
  /*–  –*/
  content: "–";
  display: flex;
  justify-content: center;
}

.user-card-cell:not(:last-child) {
  border-bottom: 1px solid #f0f3f7;
}

.card-cell-label {
  display: flex;
  align-items: center;
  color: #5a6577;
}

.card-cell-labelImg {
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.15rem;
  object-fit: contain;
}
.card-cell-value {
  color: #2c3e50;
  font-weight: 500;
}
button.card-cell-value[disabled] {
  color: #cccdcf;
}
.user-footer {
  margin-top: 0.4rem;
  padding: 0 0.15rem;
}
.user-footer-btn {
  font-size: 0.38rem;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  padding: 0.27rem 0;
  width: 100%;
  background-color: var(--styleColor);
  border-radius: 0.18rem;
  margin: 0 auto;
  color: #fff;
}

.bottom-tips {
  padding: 0.3rem;
  text-align: center;
  color: #c7c7c7;
  font-size: 0.34rem;
}

.grid3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.payAtCashierLayer .layui-layer-btn .layui-layer-btn1 {
  border-color: #1e9fff;
  background-color: #1e9fff;
  color: #fff;
}
.payAtCashierLayer .layui-layer-btn .layui-layer-btn0 {
  border-color: #ff5721;
  background-color: #ff5721;
  color: #fff;
}

/* 生日卡片 */

.happy-border {
  background-color: white;
  height: 850px;
  width: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid #72705bca;
  box-shadow: 50px 20px 10px rgb(213, 207, 207);
}

.user-footer-btn-loggedIn {
  font-size: 0.38rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: var(--styleColor);
  border-radius: 0.18rem;
  margin: 0 auto;
  color: #fff;
  min-height: 42px;
}
.user-footer-btn-notLoggedIn {
  font-size: 0.3rem;
  display: flex;
  justify-content: center;
  /* align-items: center; */
  /* padding: 0.27rem 0; */
  width: 1.5rem;
  align-items: center;
  background-color: var(--styleColor);
  border-radius: 0.1rem;
  margin: 0 auto;
  color: #fff;
  margin-left: 0.2rem;
}

/* 新加 */
.user-login-content {
  text-align: center;
}
.user-login-content1 {
  font-size: 0.75rem;
}
.user-login-content2 {
  padding-top: 0.2rem;
  font-size: 0.4rem;
}
.login-form-container {
  display: flex;
  gap: 10px;
  margin-bottom: 2vh;
}
.input-group {
  flex: 1;
}

.user-logo img {
  max-height: 3rem;
  margin-bottom: 0.3rem;
}

.user-card-content {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
.no-logo {
  margin-top: 2rem;
}
/* 针对没有 logo 时的额外样式 */
/* .no-logo .user-account {
  margin-top: 5vh;
}

.no-logo .user-account-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-logo .user-account-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--styleColor);
  border-radius: 2px;
} */
.member-warp .bottom-links {
  display: flex;
  justify-content: space-between;
}
.form-actions {
  margin-top: 1rem;
}
@media screen and (min-width: 320px) and (max-width: 375px) {
}

/* 小屏下保持底部按钮可见，个人信息区在剩余空间内滚动 */
#personalCenterPopup .personalCenterWarp {
  height: 100%;
}

#personalCenterPopup .user-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#personalCenterPopup .user-fade.show,
#personalCenterPopup .user-logged-content,
#personalCenterPopup .user-card {
  min-height: 0;
  overflow: hidden;
}

#personalCenterPopup .user-card {
  flex: 1 1 auto;
}

#personalCenterPopup .user-card-header,
#personalCenterPopup .user-footer,
#personalCenterPopup .bottom-tips,
#personalCenterPopup .user-footer-btn-loggedIn {
  flex-shrink: 0;
}

#personalCenterPopup .user-card-content {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#personalCenterPopup .user-footer {
  margin-top: 0.2rem;
}

#personalCenterPopup .bottom-tips {
  padding: 0.18rem 0.3rem 0.12rem;
}



/*recharge button*/
/* 基础容器 */
.action-container {
  display: flex;
  justify-content: center;
  /*width: 100%;*/
  margin-left: auto;
  box-sizing: content-box;
}

/* 核心按钮样式 */
.premium-topup-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.2rem 0.4rem;
  border: none;
  border-radius: 0.3rem;
  background: var(--styleColor);
  box-shadow: 0 0.25rem 0.5rem -0.12rem rgba(95, 140, 56, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.premium-topup-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0.12rem 0.25rem -0.07rem rgba(95, 140, 56, 0.3);
}

/* 禁用状态 */
.premium-topup-btn.is-disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* 内部布局 */
.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3077rem;
  position: relative;
  z-index: 2;
}

.topup-icon {
  width: 0.5rem;
  height: 0.5rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1538rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.main-text {
  font-size: 0.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.0128rem;
  line-height: 1.5;
}

.sub-text {
  font-size: 0.3077rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.1026rem;
  line-height: 1;
}

/* 吸引眼球的角标 */
.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #FF3B30;
  color: white;
  font-size: 0.25rem;
  font-weight: bold;
  padding: 0.10rem 0.30rem;
  border-radius: 0 0.41rem 0 0.30rem;
  z-index: 2;
}

/* CSS 扫光动效保持不变 (百分比不涉及像素) */
.premium-topup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer_normal 3s infinite;
  z-index: 1;
}

@keyframes shimmer_normal {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* 水波纹样式保持不变 */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear forwards;
  background-color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
