* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Microsoft YaHei, sans-serif;
  border: none;
  outline: none;
  background: none;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth !important;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --pri: #f7a81b;
  --sec: #17458f;
  --prirgb: #55a960;
  --secrgb: #022c46;
  --swiper-theme-color: #009248;
}

/* PC Mobile Frame Styles */
@media (min-width: 576px) {
  body {
    background-color: #e0e0e0 !important;
    padding: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    overflow: hidden !important;
  }

  body::after {
    display: none;
  }

  .mobile-frame {
    width: 375px;
    height: 812px;
    max-height: 90vh;
    border-radius: 36px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 12px solid #222;
    position: relative;
    overflow: hidden;
    background-color: white;
    z-index: 10;
  }

  .mobile-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 24px;
    background-color: #222;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 11;
  }

  .inner-content {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    overflow-y: auto !important;
    padding: 0 !important;
    top: 0 !important;
    left: 0 !important;
  }
}

/* Original Mobile Styles */
body {
  scroll-behavior: smooth !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100dvh;
  position: relative;
  /* padding: 0 1.5rem; */
  display: flex;
  justify-content: center;
  align-items: center;
  background-attachment: fixed;
  overflow: hidden;
}

/* body::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  position: fixed;
} */

.home-view::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 1;
}

/* 页面视图切换样式 */
.page-view {
  display: none;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease-in-out;
}

.page-view.active {
  display: flex;
  flex-direction: column;
}

/* 主页样式 */
.home-view .inner-content {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 0 1rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  position: relative;
  min-height: 600px;
  max-width: 1100px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 2;
  overflow: hidden;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
  padding-bottom: 1rem;
}

.content .step-title {
  position: absolute;
  top: 50%;
  left: -10rem;
  transform: translateY(-50%);
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}

.content .step-title li {
  height: 5.5rem;
  min-width: 7rem;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  border-radius: 0 10rem 10rem 0;
  position: relative;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}

.content .step-title li.active::after {
  right: -0.4rem;
}

.content .step-title li.valueAdded {
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 9rem;
  padding: 0 0.5rem;
}

.content .step-title li.valueAdded .icon {
  height: 0;
  width: 0;
  opacity: 0;
}

.content .step-title li.valueAdded .selectedImage {
  height: 4.6rem;
  width: 4.6rem;
}

.content .step-title li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  background-color: #f57381;
  height: 5.4rem;
  width: 5.4rem;
  z-index: -1;
  border-radius: 50%;
}

.content .step-title li h4 {
  font-size: 1.2rem;
}

.content .step-title li .selectedImage {
  height: 0;
  width: 0;
  object-fit: cover;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}

.content .step-title li .icon {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}

.content .step-title li:nth-last-child(1) {
  display: none;
}

.content .custom-button {
  padding: 0.6rem 1.5rem;
  background-color: #000000;
  color: #ffffff;
  font-size: 1rem;
  border-radius: 3rem;
  font-family: Microsoft YaHei, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

.content .custom-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.content #intro {
  max-width: 1000px;
  padding: 1rem;
}

.content #intro h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.content #intro p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.content #intro p strong {
  color: #de061d;
  font-family: Microsoft YaHei, sans-serif;
  font-weight: 700;
}

.content #loadingScreen {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.content #loadingScreen h2 {
  font-size: 2.2rem;
  margin-bottom: 4rem;
  max-width: 700px;
}

.content #loadingScreen .progress-bar-area {
  height: 1rem;
  width: 20rem;
  background-color: #d9d9d9;
  margin-top: 3rem;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
}

.content #loadingScreen .progress-bar-area #progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #de061d;
  border-radius: 2rem;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}

.content #loadingScreen ul {
  margin-top: 4rem;
}

.content #loadingScreen ul li {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.content .step {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.content .step.profile h2 {
  font-size: 1.8rem;
}

.content .step.profile .option-list {
  align-items: flex-start;
  margin-top: 1rem;
  gap: 3rem;
}

.content .step.profile .option-list button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.content .step.profile .option-list button:hover .image::after {
  top: 53%;
  transform: translate(-50%, -50%) scale(1.17);
}

.content .step.profile .option-list button .image {
  height: 8rem;
  width: 8rem;
  border-radius: 50%;
}

.content .step.profile .option-list button .image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  z-index: 5;
}

.content .step.profile .option-list button .image img {
  border-radius: 50%;
}

.content .step.profile .option-list button .image::after {
  border-radius: 50%;
  background-color: #f57381;
}

.content .step.profile .option-list button .name {
  max-width: 7rem;
}

.content .step h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.content .step .option-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.content .step .option-list button {
  cursor: pointer;
}

.content .step .option-list button:hover .image::after {
  transform: translate(-50%, -50%) scale(1.18);
}

.content .step .option-list button .image {
  position: relative;
  height: 13rem;
  width: 100%;
  margin-bottom: 1rem;
}

.content .step .option-list button .image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
  width: 90%;
  border-radius: 20px;
  background-color: #de061d;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
  z-index: 1;
}

.content .step .option-list button img {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.content .step .option-list button .name {
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #000000;
}

.content #thankYouPage {
  max-width: 650px;
  text-align: left;
}

.content #thankYouPage h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.content #thankYouPage p {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 130%;
}

.content #thankYouPage h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content #thankYouPage h4 {
  font-size: 1.3rem;
  font-family: Microsoft YaHei, sans-serif;
  margin-bottom: 2rem;
}

.content #thankYouPage ul {
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.content #thankYouPage ul li {
  list-style: decimal;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-family: Microsoft YaHei, sans-serif;
  font-weight: 600;
}

/* 设置页面样式 */
.settings-view {
  background-color: #f0f0f0;
}

.settings-view .mobile-container {
  width: 100%;
  height: 100vh;
  max-width: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: white;
  overflow: hidden;
}

.header-container {
  position: relative;
  width: 100%;
  height: 250px;
}

.header-image {
  width: 100%;
  /* height: 100%; */
  /* object-fit: cover; */
  display: block;
}

.header-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #222;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
}

.main-content {
  flex-grow: 1;
  background-color: #666;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
  padding: 16px 20px;
  border-radius: 50px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  min-height: 48px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #e8e8e8;
}

.menu-item:active {
  background-color: #e0e0e0;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  fill: #666;
  margin-left: 8px;
}

/* 底部导航 */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ddd;
  background-color: white;
  z-index: 9999;
}

@media (min-width: 576px) {
  .footer-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-decoration: none;
  min-height: 60px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-item.active {
  background-color: #000;
  color: white;
}

.nav-item:not(.active) {
  background-color: #f5f5f5;
  color: #333;
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.nav-text {
  font-size: 13px;
}

/* 移动端适配 */
@media only screen and (max-width: 575px) {
  .home-view body {
    align-items: flex-start;
    padding: 0 1rem;
    padding-top: 1rem;
  }

  .home-view .inner-content {
    align-items: flex-start;
    padding-top: 1rem;
  }

  .content {
    padding-left: 1rem !important;
    padding: 1rem;
    min-height: 500px;
  }

  .content .sticky-button {
    position: fixed;
    margin-top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    border-radius: 0.3rem !important;
    background-color: #ff4155 !important;
    padding: 0.3rem !important;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    z-index: 100 !important;
    text-align: center !important;
  }

  .content .step-title {
    top: calc(5.5rem - 1.875rem + 15px);
    left: 0;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    opacity: 0;
  }

  .content .step-title li {
    height: 4.3rem;
    width: 4.3rem;
    min-width: auto;
    border-radius: 50%;
  }

  .content .step-title li.active::after {
    right: auto;
    height: 108%;
    width: 108%;
  }

  .content .step-title li.valueAdded {
    flex-direction: column;
    justify-content: center;
    min-width: auto;
    padding: 0;
    gap: 0.2rem;
  }

  .content .step-title li.valueAdded .selectedImage {
    height: 2.3rem;
    width: 2.3rem;
  }

  .content .step-title li .icon {
    height: 2.3rem;
    width: 2.3rem;
  }

  .content .step-title li::after {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    height: 90%;
    width: 90%;
  }

  .content .step-title li h4 {
    font-size: 0.7rem;
  }

  .content #intro {
    padding: 1rem;
  }

  .content #intro h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .content #intro p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .content #loadingScreen {
    padding: 1rem;
  }

  .content #loadingScreen h2 {
    font-size: 1.8rem;
  }

  .content #loadingScreen .progress-bar-area {
    width: 17rem;
  }

  .content #loadingScreen ul li {
    font-size: 1.1rem;
  }

  .content .step.profile h2 {
    font-size: 1.2rem;
  }

  .content .step.profile .option-list {
    gap: 2rem;
    margin-top: 5rem;
  }

  .content .step h2 {
    font-size: 1.2rem;
  }

  .content .step .option-list {
    gap: 1rem;
    margin-top: 5rem;
  }

  .content .step .option-list button {
    width: 40%;
  }

  .content .step .option-list button .name {
    font-size: 1.2rem;
  }

  .content .step .option-list button .image {
    height: 9.9rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .content .custom-button {
    font-size: 0.7rem;
  }

  .content #thankYouPage h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .content #thankYouPage p {
    font-size: 0.9rem;
  }

  .content #thankYouPage h3 {
    font-size: 1.1rem;
  }

  .content #thankYouPage h4 {
    font-size: 1rem;
  }

  .content #thankYouPage ul {
    padding-left: 1rem;
    margin-bottom: 1.5rem;
  }

  .content #thankYouPage ul li {
    font-size: 0.8rem;
  }

  .content #thankYouPage .custom-button {
    font-size: 0.7rem;
  }
}

@media only screen and (max-width: 350px) {
  .content {
    padding-left: 1rem !important;
    padding: 1rem;
    min-height: 400px;
  }

  .content .step-title {
    top: calc(8rem - 1.875rem + 15px);
  }

  .content .step-title li {
    height: 4rem;
    width: 4rem;
  }

  .content .step-title li.active::after {
    height: 104%;
    width: 104%;
  }

  .content .step-title li.valueAdded .selectedImage {
    height: 2rem;
    width: 2rem;
  }

  .content .step-title li .icon {
    height: 2rem;
    width: 2rem;
  }

  .content .step-title li h4 {
    font-size: 0.6rem;
  }

  .content #loadingScreen {
    padding: 1rem;
  }

  .content #loadingScreen h2 {
    font-size: 1.6rem;
  }

  .content #loadingScreen .progress-bar-area {
    height: 1rem;
    width: 15rem;
  }

  .content #loadingScreen ul li {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .content #intro {
    padding: 1rem;
  }

  .content #intro h1 {
    font-size: 1.8rem;
  }

  .content #intro p {
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
  }

  .content .step.profile h2 {
    font-size: 1.2rem;
  }

  .content .step.profile .option-list {
    gap: 2rem;
    margin-top: 5rem;
  }

  .content .step h2 {
    font-size: 1.4rem;
  }

  .content .step .option-list {
    gap: 1rem;
    margin-top: 5rem;
  }

  .content .step .option-list button .image {
    height: 7.2rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .content .custom-button {
    font-size: 0.7rem;
  }

  .content #thankYouPage h2 {
    font-size: 1rem;
  }

  .content #thankYouPage p {
    font-size: 0.8rem;
  }

  .content #thankYouPage h3 {
    font-size: 1rem;
  }

  .content #thankYouPage h4 {
    font-size: 0.8rem;
  }

  .content #thankYouPage ul li {
    font-size: 0.7rem;
  }

  .content #thankYouPage .custom-button {
    font-size: 0.6rem;
  }
}

/* 设置页面移动端适配 */
@media (max-width: 320px) {
  .header-container {
    height: 200px;
  }

  .menu-item {
    padding: 14px 16px;
    font-size: 14px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .header-container {
    height: 150px;
  }

  .main-content {
    padding: 12px;
  }
}
