/* 我的页 —— 3D 黄白立体 */
.m-me-page.yx-me {
  --mm-yellow: #ff642e;
  --mm-ink: #1c1914;
  --mm-sub: #8a8070;
  --mm-line: #efe6d2;
  --mm-title: #2a2418;
  color: var(--mm-ink);
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  background-color: #f7f5ef;
  background-image: var(--yx-page-bg, none);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.m-me-page.yx-me::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 210, 190, 0.55) 0%,
    rgba(247, 245, 239, calc(var(--yx-overlay, 0.86))) 45%,
    rgba(247, 245, 239, 0.96) 100%
  );
}
.m-me-page.yx-me > *:not(.m-tabbar):not(.m-auth-mask) {
  position: relative;
  z-index: 1;
}
.m-me-page.yx-me .m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

.yx-me-hero {
  padding: 12px 16px 24px;
  /* 状态栏下预留一段空白，头像不要贴太顶 */
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(180deg, #ff642e 0%, #ffef66 62%, rgba(255, 243, 168, 0.35) 100%);
  color: var(--mm-ink);
  box-shadow: 0 10px 24px rgba(232, 78, 26, 0.18);
}

.yx-me-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.yx-me-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f3f3f3);
  color: var(--mm-ink);
  border: 3px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  flex-shrink: 0;
}
.yx-me-avatar.has-img,
.m-prof-avatar-preview.has-img {
  padding: 0;
  font-size: 0;
}
.yx-me-avatar img,
.m-prof-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yx-me-user-txt {
  flex: 1;
  min-width: 0;
}
.yx-me-user-txt strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yx-me-user-txt p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(28, 25, 20, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yx-me-homebtn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a2a2a, #111);
  color: #ff642e;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2), 0 2px 0 #000;
}

.yx-me-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 230, 0.94) 55%, rgba(255, 255, 255, 0.96));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.yx-me-stat-bal {
  display: block;
  text-decoration: none;
  color: var(--mm-ink);
  padding: 14px 16px 12px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 228, 17, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  transition: background 0.15s ease;
}
.yx-me-stat-bal:active {
  background: rgba(255, 228, 17, 0.18);
}
.yx-me-stat-bal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.yx-me-stat-bal-hd em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: rgba(28, 25, 20, 0.55);
}
.yx-me-stat-bal-hd span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(28, 25, 20, 0.42);
}
.yx-me-stat-bal-num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.yx-me-stat-bal-num i {
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
  color: #c45a00;
  flex-shrink: 0;
}
.yx-me-stat-bal-num strong {
  font-size: clamp(22px, 7vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1c1914;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.yx-me-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.55);
}
.yx-me-stat-row a {
  position: relative;
  text-align: center;
  text-decoration: none;
  color: var(--mm-ink);
  padding: 12px 6px 14px;
  min-width: 0;
  transition: background 0.15s ease;
}
.yx-me-stat-row a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
}
.yx-me-stat-row a:active {
  background: rgba(255, 228, 17, 0.16);
}
.yx-me-stat-row strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.yx-me-stat-row em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--mm-sub);
}

.yx-me-main {
  padding: 0 14px;
  margin-top: 2px;
}

.yx-me-card {
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  border-radius: 20px;
  padding: 16px 14px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
}

.yx-me-card-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}
.yx-me-card-hd h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--mm-title);
}

/* 核心三入口 3D 方块 */
.yx-me-core {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 12px 14px;
}
.yx-me-core-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--mm-ink);
  padding: 12px 6px 10px;
  border-radius: 18px;
  background: linear-gradient(165deg, #fffef8 0%, #fff6d0 55%, #ffe98a 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 10px 18px rgba(240, 180, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 0 rgba(200, 150, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.yx-me-core-item:nth-child(2) {
  background: linear-gradient(165deg, #fffef8 0%, #fff0d8 55%, #ffd9a8 100%);
}
.yx-me-core-item:nth-child(3) {
  background: linear-gradient(165deg, #fffef8 0%, #eef6ff 55%, #d6ebff 100%);
  box-shadow:
    0 10px 18px rgba(80, 140, 220, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 0 rgba(100, 140, 180, 0.15);
}
.yx-me-core-item:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.yx-me-core-item img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  animation: yx-me-ico-float 3s ease-in-out infinite;
}
.yx-me-core-item:nth-child(2) img {
  animation-delay: 0.35s;
}
.yx-me-core-item:nth-child(3) img {
  animation-delay: 0.7s;
}
.yx-me-core-item b {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}
.yx-me-core-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--mm-sub);
  line-height: 1.2;
}

.yx-me-invite {
  padding: 14px 14px 12px;
}
.yx-me-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.yx-me-invite-row em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--mm-sub);
  margin-bottom: 4px;
}
.yx-me-invite-row strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.yx-me-yellowbtn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a5c, #ff642e 50%, #e84e1a);
  color: var(--mm-ink);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow:
    0 8px 16px rgba(232, 78, 26, 0.28),
    0 2px 0 rgba(200, 60, 20, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.yx-me-yellowbtn:active {
  transform: translateY(2px);
}
.yx-me-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--mm-sub);
}

.yx-me-slider {
  position: relative;
  margin-bottom: 12px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 12px 24px rgba(255, 160, 40, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
}
.yx-me-slides {
  position: relative;
  min-height: 88px;
}
.yx-me-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px 16px 22px;
  text-decoration: none;
  color: var(--mm-ink);
  background: linear-gradient(105deg, #ff642e 0%, #ffd24a 48%, #ffb347 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  z-index: 0;
}
.yx-me-slide.is-on {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 1;
  animation: yx-me-slide-bg 7s ease-in-out infinite alternate;
}
.yx-me-slide.is-leaving {
  position: absolute;
  opacity: 0;
  visibility: visible;
  transform: translateX(-16px) scale(0.985);
  pointer-events: none;
  z-index: 2;
}
.yx-me-slide.has-bg {
  color: #fff;
  background-color: #222;
  background-size: cover;
  animation: none;
}
.yx-me-slide.has-bg.is-on {
  animation: yx-me-slide-zoom 8s ease-in-out infinite alternate;
}
.yx-me-slide.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}
.yx-me-slide > * {
  position: relative;
  z-index: 1;
}
.yx-me-slide.is-on .yx-me-slide-ico {
  animation: yx-me-ico-float 2.4s ease-in-out infinite;
}
.yx-me-slide.is-on .yx-me-slide-txt strong {
  animation: yx-me-fade-up 0.5s ease both;
}
.yx-me-slide.is-on .yx-me-slide-txt span {
  animation: yx-me-fade-up 0.55s ease 0.08s both;
}
.yx-me-slide.is-on .yx-me-slide-cta {
  animation: yx-me-cta-in 0.55s ease 0.12s both, yx-me-cta-pulse 2.2s ease-in-out 0.8s infinite;
}
.yx-me-slide-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.yx-me-slide.has-bg .yx-me-slide-ico {
  display: none;
}
.yx-me-slide-txt {
  flex: 1;
  min-width: 0;
}
.yx-me-slide-txt strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yx-me-slide-txt span {
  display: block;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yx-me-slide.has-bg .yx-me-slide-txt span {
  color: rgba(255, 255, 255, 0.85);
}
.yx-me-slide-cta {
  flex-shrink: 0;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a2a2a, #111);
  color: #ff642e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.yx-me-slide.has-bg .yx-me-slide-cta {
  background: linear-gradient(180deg, #ff8a5c, #ff642e);
  color: #111;
}
.yx-me-slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 3;
  pointer-events: none;
}
.yx-me-slide-dots button {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}
.yx-me-slide-dots button.is-on {
  width: 16px;
  border-radius: 999px;
  background: #111;
}
.yx-me-slider.has-photo .yx-me-slide-dots button {
  background: rgba(255, 255, 255, 0.45);
}
.yx-me-slider.has-photo .yx-me-slide-dots button.is-on {
  background: #ff642e;
}

@keyframes yx-me-slide-bg {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes yx-me-slide-zoom {
  0% { background-size: 100% 100%; }
  100% { background-size: 112% 112%; }
}
@keyframes yx-me-ico-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}
@keyframes yx-me-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes yx-me-cta-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes yx-me-cta-pulse {
  0%, 100% { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transform: scale(1); }
  50% { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .yx-me-slide,
  .yx-me-slide.is-on,
  .yx-me-slide.is-on .yx-me-slide-ico,
  .yx-me-slide.is-on .yx-me-slide-txt strong,
  .yx-me-slide.is-on .yx-me-slide-txt span,
  .yx-me-slide.is-on .yx-me-slide-cta,
  .yx-me-slide-dots button {
    animation: none !important;
    transition: none !important;
  }
}

.yx-me-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
}
.yx-me-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--mm-title);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.15s ease;
}
.yx-me-grid a:active {
  transform: scale(0.94);
}
.yx-me-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  background: #fff;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.yx-me-grid i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.yx-me-grid .g-faq {
  background: #e8e0ff;
}
.yx-me-grid .g-about {
  background: #ffe0c2;
}

.yx-me-listcard {
  padding: 4px 14px;
}
.yx-me-listcard a,
.yx-me-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--mm-line);
  background: transparent;
  color: var(--mm-title);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
  box-sizing: border-box;
}
.yx-me-listcard a:last-child {
  border-bottom: 0;
}
.yx-me-listcard b {
  color: #ccc;
  font-weight: 400;
}
.yx-me-logout {
  color: #c0392b;
  cursor: pointer;
  justify-content: center;
}

.yx-me-foot {
  text-align: center;
  font-size: 12px;
  color: #b0a696;
  margin: 10px 0 0;
}

.m-prof-avatar-block {
  margin-bottom: 12px;
}
.m-prof-avatar-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.m-prof-avatar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #ececec;
  background: #fafafa;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}
.m-prof-avatar-btn > span {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.m-prof-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  border: 2px solid #eee;
  flex-shrink: 0;
}

.m-auth-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.m-auth-sheet {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.m-auth-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.m-auth-sheet header button {
  border: 0;
  background: #f3f3f3;
  border-radius: 999px;
  padding: 6px 12px;
}
.m-auth-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #888;
}
.m-auth-form input {
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  background: #fafafa;
}
.m-auth-submit {
  width: 100%;
  border: 0;
  margin-top: 6px;
  padding: 12px;
  border-radius: 999px;
  background: #ff642e;
  color: #111;
  font-weight: 800;
}
.m-auth-msg {
  text-align: center;
  font-size: 13px;
  color: #cf1322;
  min-height: 1.2em;
  margin: 8px 0 0;
}
