html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  overscroll-behavior-y: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-x: auto;
}

* {
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
#root {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.PageFrameWrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #f0f0f0;
  background-size: 0 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.PageFrameWrapper:before {
  content: "";
  z-index: -1;
  position: inherit;
  left: inherit;
  top: inherit;
  width: inherit;
  height: inherit;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  -webkit-filter: blur(100px);
  filter: blur(100px);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

.pageFrame {
  overflow: auto;
  height: 100%;
  position: relative;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.Profile {
  background-position: 50% 15%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  overflow: auto;
  width: 100%;
  height: auto;
  min-height: 100%;
  background-image: none;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
}

.Profile-box {
  background-image: linear-gradient(rgb(65, 60, 47), rgb(205, 188, 157));
  border-radius: 24px;
  width: 720px;
  height: fit-content;
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .imgrow {
    margin: 0 -20px;
  }
  .Profile {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .Profile-box {
    border-radius: 0px !important;
    margin-bottom: 0px !important;
    height: auto !important;
    min-height: calc(100vh - 0px) !important;
  }

  body,
  html {
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .sticky-line-icon {
    bottom: 15px;
  }

  /* 移动端额外优化 */
  .content {
    padding-top: 5px;
    padding-bottom: 50px;
  }

  .line {
    height: 3px;
  }

  .txtbox h3,
  .txtbox h4 {
    margin: 3px 0;
  }

  .msgbox {
    padding: 15px 15px 25px;
    margin: 5px 0;
  }

  .imgbox {
    margin: 5px 0;
  }
}

/* 修复iOS底部弹性滚动问题 */
@supports (-webkit-touch-callout: none) {
  /* iOS设备特定样式 */
  .Profile-box {
    margin-bottom: 0;
  }

  @media (max-width: 600px) {
    .Profile {
      padding-bottom: 60px !important;
    }
  }
}

.content {
  padding: 0px 20px 60px;
  margin-left: auto;
  margin-right: auto;
  min-height: auto;
  height: 100%;
}

@media (min-width: 600px) {
  .content {
    max-width: 600px;
  }
}

.w-full {
  width: 100%;
}
.wh-full {
  width: 100%;
  height: 100%;
}

.relative {
  position: relative;
}

.flex {
  display: flex;
}

.css-m {
  justify-content: center;
  align-items: center;
}

.css-m span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: -40px;
}

.rowlink {
  border-radius: 36px;
  background-color: rgb(31, 33, 37);
  color: rgb(254, 254, 254);
  font-family: Poppins, sans-serif;
  text-transform: none;
  box-shadow: none;
  font-size: 15px;
  min-height: 65px;
  margin: 10px 0px;
  border: 2px solid rgb(254, 254, 254);
  display: flex;
  padding-left: 0px;
  padding-right: 0px;
  overflow: hidden;
}

.mb {
  margin-bottom: 23px;
  width: 100%;
}
.mt {
  margin-top: 23px;
}
.line {
  height: 5px;
}

.rowlink a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  border-radius: 36px;
}

.rowlink a span.line {
  position: absolute;
  right: 6px;
  display: inline-block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
}
.rowlink a span.avatar {
  position: absolute;
  left: 6px;
  display: inline-block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
}
.btn_txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.btn_txt p {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.txtbox {
  color: #fff;
}
.txtbox h3 {
  text-align: center;
  margin: 5px 0;
  color: rgb(254, 254, 254);
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.txtbox h4 {
  text-align: center;
  margin: 5px 0;
  line-height: 24px;
  color: rgb(254, 254, 254);
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.txtbox p {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 22px;
}

.msgbox {
  border-radius: 36px;
  background-color: rgb(31, 33, 37);
  padding: 20px 20px 30px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 0px, rgb(31, 33, 37) 0px 8px 0px;
  border: 2px solid rgb(254, 254, 254);
  color: rgba(255, 255, 255, 0.87);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  overflow: hidden;
  font-weight: 600;
  line-height: 24px;
  margin: 8px 0;
}

.imgbox {
  border-radius: 36px;
  color: rgb(254, 254, 254);
  text-align: center;
  margin: 8px 0;
}

.imgbox img {
  border-radius: 25px;
  display: block;
  width: 100%;
}
.btn {
  -webkit-animation: float 3s ease-in-out infinite;
  animation: float 3s ease-in-out infinite;
}
.btn2 {
  -webkit-animation-name: bounce_small_infinite;
  animation-name: bounce_small_infinite;
  -webkit-transform-origin: center bottom;
  transform-origin: center bottom;
  -webkit-animation-duration: 4s;
  animation-duration: 4s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}
@keyframes float {
  0% {
    -webkit-transform: translatey(0px);
    transform: translatey(0);
  }

  50% {
    -webkit-transform: translatey(-20px);
    transform: translatey(-20px);
  }

  to {
    -webkit-transform: translatey(0px);
    transform: translatey(0);
  }
}

@keyframes bounce_small_infinite {
  0%,
  10%,
  26.5%,
  40%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translateZ(0);
  }

  20%,
  21.5% {
    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
  }

  35% {
    -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
  }

  42.5% {
    -webkit-transform: translate3d(0, -2px, 0);
    transform: translate3d(0, -2px, 0);
  }
}

/* 添加Sticky LINE图标样式 */
.sticky-line-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #06c755;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  animation: pulse 1.5s infinite;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.sticky-line-icon img {
  width: 36px;
  height: 36px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

/* cta_btn类的样式增强 */
.cta_btn {
  transition: all 0.3s ease;
}

.cta_btn:hover {
  transform: scale(1.02);
}

.cta_btn:active {
  transform: scale(0.98);
}
