/* ===== 页面专属样式 ===== */

.scroll-content {
  width: 100%;
  min-height: 100.1%;
}
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s
    cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}
.top-nav-bar {
  position: relative;
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
}
.title-anim-wrap {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  animation: titleSequence 1.5s
    cubic-bezier(0.25, 1, 0.5, 1)
    forwards;
}
.text-gray {
  background: linear-gradient(
    to right, #9e9e9e, #616161);
  -webkit-background-clip: text;
  color: transparent;
}
.text-black {
  color: #333333; margin: 0 2px;
}
.text-pink {
  background: linear-gradient(
    to right, #ff758c, #ff4d6d);
  -webkit-background-clip: text;
  color: transparent;
}
@keyframes titleSequence {
  0% {
    clip-path: inset(0 50% 0 50%);
    left: 50%;
    transform: translateX(-50%);
  }
  60% {
    clip-path: inset(0 0 0 0);
    left: 50%;
    transform: translateX(-50%);
  }
  100% {
    clip-path: inset(0 0 0 0);
    left: 20px;
    transform: translateX(0);
  }
}

.heart-3d {
  position: absolute;
  right: 30px; top: 40px;
  font-size: 110px;
  color: #ff4d6d;
  opacity: 0.25; z-index: 1;
  transform: perspective(600px)
    rotateY(-35deg) rotateX(15deg)
    scale(0);
  text-shadow: 8px 8px 0 #c9184a,
    15px 15px 20px rgba(255,77,109,0.6);
  animation: popHeart 0.8s
    cubic-bezier(0.175,0.885,0.32,1.275)
    1.5s forwards;
}
@keyframes popHeart {
  to {
    transform: perspective(600px)
      rotateY(-35deg) rotateX(15deg)
      scale(1);
  }
}

.carousel-container {
   margin: 0 15px 15px;
   border-radius: 18px;
   overflow: hidden;
   height: 160px;
   width: calc(100% - 30px);
   box-sizing: border-box;
   flex-shrink: 0;
   position: relative;
   z-index: 5;
   cursor: pointer;
   -webkit-touch-callout: none;
   user-select: none;
 }
 .carousel-track {
   display: flex;
   height: 100%;
   transition: transform 0.5s ease-in-out;
   width: auto !important;
 }
 .carousel-slide {
   width: 100%;
   height: 100%;
   object-fit: cover;
   flex-shrink: 0;
   display: block;
   box-sizing: border-box;
   background: #f5f5f5;
 }
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.8);
  border-radius: 3px;
  transition: all 0.3s;
}

.dot.active {
  width: 15px;
  background: var(--primary);
}


.notice-bar {
  margin: 0 15px 20px;
  background: #ffffff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  padding: 5px;
}
.notice-icon-bg {
  background: var(--primary-light);
  width: 30px; height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px; z-index: 2;
}
.notice-icon {
  color: var(--primary);
  font-size: 14px;
}
.notice-scroll-wrap {
  flex: 1; overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: bold;
}
.notice-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 12s linear infinite;
}
@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 15px;
}
.title-left {
  display: flex;
  align-items: center; gap: 10px;
}
.title-icon {
  color: var(--primary);
  font-size: 22px;
}
.title-text h2 {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-weight: 900;
}
.title-text p {
  font-size: 11px;
  color: var(--primary);
  font-weight: bold;
}
.title-right {
  font-size: 12px;
  color: var(--primary);
  font-weight: bold;
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 15px;
}

.game-module { margin-bottom: 20px; }
.module-trigger {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.5);
  position: relative; z-index: 10;
  transition: all 0.3s;
}
.module-trigger:active {
  transform: scale(0.98);
}
.trigger-left {
  display: flex;
  align-items: center; gap: 15px;
}
.trigger-icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.trigger-text h3 {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 900;
}
.trigger-text p {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 4px;
}
.arrow-icon {
  color: var(--text-gray);
  transition: transform 0.4s
    cubic-bezier(0.25, 1, 0.5, 1);
}
.arrow-icon.rotated {
  transform: rotate(180deg);
  color: var(--primary);
}
.module-sub-list {
  max-height: 0;
  overflow: hidden; opacity: 0;
  transition: all 0.6s
    cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0 15px;
}
.module-sub-list.show {
  max-height: 2000px;
  opacity: 1; padding-top: 15px;
}

.version-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  margin-bottom: 25px;
  text-decoration: none;
  -webkit-touch-callout: none !important;
  user-select: none !important;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.4s
    cubic-bezier(0.175,0.885,0.32,1.275);
}
.version-card:active {
  transform: rotateX(15deg) scale(0.95);
}
.version-card-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  clip-path: url(#smooth-slant);
  -webkit-clip-path: url(#smooth-slant);
  background-size: 400% 400%;
  animation: gradientFlow 6s
    ease infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.card-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transform: translateZ(20px);
}
.card-content h3 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 1px 2px 4px
    rgba(0,0,0,0.3);
}
.btn-play {
  background: rgba(255,255,255,0.95);
  color: #333;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px
    rgba(0,0,0,0.15);
}
.card-img {
  position: absolute;
  right: 10px; bottom: 25px;
  height: 90px; width: 90px;
  object-fit: cover;
  border-radius: 50%;
  z-index: 3;
  filter: drop-shadow(
    0 8px 10px rgba(0,0,0,0.3));
  transform: translateZ(30px);
  transition: transform 0.4s
    cubic-bezier(0.175,0.885,0.32,1.275);
  pointer-events: none;
}
.version-card:active .card-img {
  transform: translateZ(40px) scale(1.05);
}
.card-blue {
  background: linear-gradient(135deg,
    #0ea5e9, #60a5fa,
    #0284c7, #0ea5e9);
}
.card-orange {
  background: linear-gradient(135deg,
    #f97316, #fbbf24,
    #ea580c, #f97316);
}

/* ===== 我的页面 ===== */

.profile-header {
  padding: 0 20px 30px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar-wrap {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.avatar {
  width: 75px; height: 75px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.info-text h2 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 5px;
  font-weight: 900;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-id {
  font-size: 11px;
  color: var(--text-gray);
  background: #f0f0f5;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}
.info-text p {
  font-size: 13px;
  color: var(--primary);
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  font-weight: bold;
  cursor: pointer;
}
.menu-list {
  margin: 0 20px 20px;
  background: #ffffff;
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: bold;
}
.menu-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}
.arrow {
  color: #cccccc;
  font-size: 14px;
}

/* ===== 底部引导 ===== */

.footer-invite {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #999999;
  padding: 15px 20px 30px;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s
    cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-invite.visible {
  opacity: 0.3;
  transform: translateY(0);
}
.invite-link {
  color: #333333;
  font-weight: 900;
  text-decoration: none;
  margin-left: 4px;
}
.invite-link:active {
  opacity: 0.6;
}
.info-text h2 {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
/* ===== 用户名适配 ===== */
.info-text h2 {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
