.app { background: transparent !important; }
.profile-status-bg { height: env(safe-area-inset-top, 0); background: transparent; }
.profile-top-bar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); }
.profile-top-bar .top-bar-inner { padding: 0 16px; padding-top: env(safe-area-inset-top, 0); height: 44px; align-items: center; display: flex; }
.profile-top-bar .brand-logo { display: flex; align-items: center; gap: 6px; }
.profile-top-bar .top-duck-icon { width: 22px; height: 22px; position: relative; }
.profile-top-bar .top-duck-icon .td-head, .profile-top-bar .top-duck-icon .td-eye, .profile-top-bar .top-duck-icon .td-beak, .profile-top-bar .top-duck-icon .td-body, .profile-top-bar .top-duck-icon .td-wing, .profile-top-bar .top-duck-icon .td-tail { background: #FF9500; position: absolute; }
.profile-top-bar .top-duck-icon .td-head { width: 12px; height: 12px; border-radius: 50%; top: 2px; left: 2px; }
.profile-top-bar .top-duck-icon .td-eye { width: 3px; height: 3px; background: #fff; top: 5px; left: 8px; }
.profile-top-bar .top-duck-icon .td-beak { width: 4px; height: 4px; background: #FFB347; top: 7px; left: 11px; }
.profile-top-bar .top-duck-icon .td-body { width: 14px; height: 10px; border-radius: 6px; top: 8px; left: 4px; }
.profile-top-bar .top-duck-icon .td-wing { width: 6px; height: 6px; border-radius: 50%; top: 10px; left: 6px; background: rgba(255,255,255,.5); }
.profile-top-bar .top-duck-icon .td-tail { width: 4px; height: 4px; border-radius: 50%; top: 11px; left: 0; background: rgba(255,255,255,.5); }
.brand-name { font-size: 17px; font-weight: 700; color: #FF9500; }

.main-scroll { position: fixed; top: 88px; left: 0; right: 0; bottom: 64px; overflow-y: auto; }

.profile-header-wrap { padding-bottom: 60px; }
.profile-header {
  margin: 12px 16px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(12px);
  border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow-sm);
}
.header-row { display: flex; align-items: center; gap: 12px; }
.avatar-box {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD78E, #FF9500);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.avatar-text {
  color: #fff; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.user-info { flex: 1; }
.nickname { font-size: 18px; font-weight: 700; color: #1C1C1E; }
.user-id { font-size: 12px; color: rgba(28,28,30,.5); margin-top: 2px; }
.edit-btn {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,149,0,.12); color: #FF9500;
  font-size: 12px; font-weight: 600; cursor: pointer;
}

.stats-row {
  display: flex; justify-content: space-around;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.stat-item { text-align: center; cursor: pointer; flex: 1; }
.stat-item:active { opacity: .6; }
.stat-num { font-size: 22px; font-weight: 800; color: #1C1C1E; }
.stat-label { font-size: 11px; color: rgba(28,28,30,.6); margin-top: 2px; }

.menu-section { padding: 0 16px; }
.menu-group {
  background: rgba(255,255,255,.55); backdrop-filter: blur(12px);
  border-radius: 14px; overflow: hidden; margin-bottom: 12px;
}
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--card-inner-bg-hover); }
.menu-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-icon-info { background: rgba(94,139,255,.15); }
.menu-icon-posts { background: rgba(255,149,0,.15); }
.menu-icon-orders { background: rgba(48,209,88,.15); }
.menu-icon-fav { background: rgba(255,107,138,.15); }
.menu-icon-complaint { background: rgba(255,69,58,.15); }
.menu-icon-feedback { background: rgba(255,159,10,.15); }
.menu-icon-settings { background: rgba(142,142,147,.15); }
.menu-icon-about { background: rgba(94,139,255,.15); }
.menu-icon-logout { background: rgba(255,69,58,.15); }
.menu-icon > div {
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: var(--mask, none) center/contain no-repeat;
          mask: var(--mask, none) center/contain no-repeat;
}
.menu-text-area { flex: 1; min-width: 0; }
.menu-text { font-size: 14px; color: #1C1C1E; }
.logout-text { color: #FF453A; }
.menu-arrow { color: #999; font-size: 18px; }

.profile-bottom-safe { height: 80px; }

/* 关于弹窗 */
.about-modal-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.about-modal {
  background: #fff; border-radius: 16px; padding: 24px;
  width: 88%; max-width: 360px;
  animation: fadeIn .25s ease;
  max-height: 85vh; overflow-y: auto;
}
.about-logo-wrap { text-align: center; margin-bottom: 12px; }
.about-logo-text { font-size: 24px; font-weight: 800; color: #FF9500; }
.about-logo-sub { font-size: 11px; color: rgba(28,28,30,.5); letter-spacing: 1px; margin-top: 2px; }
.about-version { text-align: center; font-size: 12px; color: rgba(28,28,30,.4); margin-bottom: 18px; }
.about-title { font-size: 15px; font-weight: 700; color: #1C1C1E; margin-bottom: 6px; }
.about-desc { font-size: 12px; color: rgba(28,28,30,.65); line-height: 1.6; }
.about-slogan { text-align: center; font-size: 12px; color: rgba(28,28,30,.5); margin: 12px 0; padding: 10px; background: var(--card-inner-bg); border-radius: 8px; }
.about-contact { background: var(--card-inner-bg); border-radius: 12px; padding: 14px; margin-top: 16px; }
.about-contact-title { font-size: 13px; font-weight: 600; color: #1C1C1E; }
.about-contact-join { font-size: 11px; color: rgba(28,28,30,.5); margin-top: 4px; margin-bottom: 8px; }
.about-contact-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.about-contact-row:last-child { border-bottom: none; }
.about-contact-label { color: rgba(28,28,30,.5); }
.about-contact-value { color: #1C1C1E; font-weight: 500; }
.about-close-btn {
  margin-top: 16px; padding: 12px;
  background: var(--primary); color: #fff;
  border-radius: 999px; text-align: center; font-weight: 600;
  cursor: pointer;
}
