
/* ======================================================== */
/* 微信模块 (WeChat Core) - 高定纯白手账完整重构版           */
/* ======================================================== */

.app-page[data-page="wechat"] {
  background: #ffffff !important;
}

.app-page[data-page="wechat"] .app-header {
  display: none !important;
}

.app-page[data-page="wechat"] .app-content {
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

/* 微信主外壳 */
.wx-shell {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

/* ======================================================== */
/* 1. 身份选择与切换页 (全屏浅灰背景蔓延到底部 + 紧凑半透明小卡) */
/* ======================================================== */
.wx-user-picker-stage {
  width: 100%;
  height: 100%;
  padding: calc(14px + var(--safe-top)) 12px calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-sizing: border-box;
  overflow-y: auto;
}

/* 短款半透明毛玻璃小卡 */
.wx-picker-card {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 580px !important;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-image: url('https://niveousmoon.top/images/img_1789408086498_dtwqu.jpg');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 标题与内容整体大幅向上移动 */
.wx-picker-inner-form {
  position: absolute;
  width: 72%;
  top: 42% !important;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
  max-height: 320px;
  box-sizing: border-box;
}

.wx-picker-header-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 2px;
}
.wx-picker-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: #7a8fa6;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.wx-picker-title {
  font-size: 21px;
  font-weight: 800;
  color: #1a1c22;
  letter-spacing: 4px;
  text-indent: 4px;
}
.wx-picker-divider {
  width: 26px;
  height: 1.5px;
  background: #1a1c22;
  margin-top: 2px;
  border-radius: 1px;
  opacity: 0.75;
}

/* 列表滚动容器 */
.wx-picker-list-box {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 4px 2px;
  box-sizing: border-box;
}
.wx-picker-list-box::-webkit-scrollbar {
  display: none;
}

/* 列表卡片：白色半透明质感 */
.wx-user-card-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}
.wx-user-card-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.9) !important;
}

.wx-user-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dcdce0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #88abda;
  overflow: hidden;
  flex-shrink: 0;
}
.wx-user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-user-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wx-user-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #1c1c1e;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wx-user-card-phone {
  font-size: 12px;
  color: #636366;
  font-family: monospace;
  font-weight: 600;
}

.wx-user-arrow {
  width: 14px;
  height: 14px;
  stroke: #8e8e93;
  stroke-width: 2.2;
  fill: none;
  flex-shrink: 0;
}

/* 微信首次注册小卡 (纯白外层背景) */
.wx-reg-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(14px + var(--safe-top)) 12px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.wx-reg-top-bar {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.wx-reg-back-btn {
  background: #fff;
  border: 1px solid #1c1c1e;
  border-radius: 16px;
  color: #1c1c1e;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}
.wx-reg-back-btn:active {
  background: #e5e5ea;
}
.wx-reg-back-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.wx-reg-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 580px;
  background-color: #ffffff;
  background-image: url('https://niveousmoon.top/images/img_1789408086498_dtwqu.jpg');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  flex-shrink: 0;
  margin: auto 0;
}

.wx-reg-form {
  position: absolute;
  width: 70%;
  top: 44% !important;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  z-index: 5;
}

.wx-reg-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 3px;
}

.wx-reg-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: #7a8fa6;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.wx-reg-title {
  font-size: 21px;
  font-weight: 800;
  color: #1a1c22;
  letter-spacing: 4px;
  text-indent: 4px;
}

.wx-reg-divider {
  width: 26px;
  height: 1.5px;
  background: #1a1c22;
  margin-top: 3px;
  border-radius: 1px;
  opacity: 0.75;
}

.wx-reg-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wx-reg-input-row {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 28, 34, 0.38);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 10px;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(136, 171, 218, 0.15);
}

.wx-reg-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #3e4856;
  white-space: nowrap;
  width: 44px;
  letter-spacing: 0.5px;
}

.wx-reg-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  font-weight: 600;
  color: #11141a;
  font-family: inherit;
  -webkit-user-select: text;
  user-select: text;
}

.wx-reg-input::placeholder {
  font-size: 11px;
  font-weight: 400;
  color: #9aa8b8;
}

.wx-reg-refresh-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: #eef4fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4a5a6e;
  flex-shrink: 0;
}
.wx-reg-refresh-btn:active {
  background: #dde7f2;
}
.wx-reg-refresh-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wx-reg-refresh-btn.rotating svg {
  transform: rotate(360deg);
}

.wx-reg-submit-btn {
  width: 100%;
  height: 38px;
  background: #1a1c22;
  color: #ffffff;
  border: 1px solid #0d0f12;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-indent: 4px;
  cursor: pointer;
  margin-top: 3px;
  box-shadow: 0 4px 14px rgba(26, 28, 34, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-reg-submit-btn:active {
  transform: scale(0.98);
  background: #0d0f12;
}

/* ======================================================== */
/* 2. 顶栏 (仅在聊天页显示，Chat 28px)                         */
/* ======================================================== */
.wx-header-wrapper {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 20;
}

.wx-header {
  position: relative;
  height: calc(52px + var(--safe-top));
  padding-top: var(--safe-top);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
  overflow: hidden;
}

.wx-header.hide-header {
  display: none !important;
}

.wx-header-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
}
.wx-header.has-bg .wx-header-bg-img {
  display: block;
}

.wx-header.curve-straight {
  clip-path: none;
  -webkit-clip-path: none;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.wx-header.curve-droop {
  clip-path: polygon(0% 0%, 100% 0%, 100% 82%, 92% 98%, 82% 100%, 18% 100%, 8% 98%, 0% 82%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 82%, 92% 98%, 82% 100%, 18% 100%, 8% 98%, 0% 82%);
  border-bottom: none;
}

.wx-header.curve-lift {
  clip-path: polygon(0% 0%, 100% 0%, 100% 72%, 90% 90%, 75% 100%, 25% 100%, 10% 90%, 0% 72%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 72%, 90% 90%, 75% 100%, 25% 100%, 10% 90%, 0% 72%);
  border-bottom: none;
}

.wx-header-back,
.wx-header-add {
  background: none;
  border: none;
  color: #111111;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(255,255,255,0.9));
}
.wx-header-back:active,
.wx-header-add:active {
  opacity: 0.5;
}

.wx-header-back svg,
.wx-header-add svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wx-header-title {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #111111;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(255, 255, 255, 0.9);
}

.wx-menu-mask {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: transparent;
  display: none;
}
.wx-menu-mask.show {
  display: block;
}

.wx-menu-popover {
  position: absolute;
  top: calc(52px + var(--safe-top));
  right: 10px;
  width: 165px;
  background: #2c2c2e;
  border-radius: 10px;
  padding: 4px 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 100;
}
.wx-menu-popover.show {
  display: flex;
}
.wx-menu-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #2c2c2e;
}

.wx-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
.wx-menu-item:last-child {
  border-bottom: none;
}
.wx-menu-item:active {
  background: rgba(255, 255, 255, 0.1);
}
.wx-menu-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ======================================================== */
/* 3. 主视口 (wx-body)                                       */
/* ======================================================== */
.wx-body {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  position: relative;
}
.wx-body::-webkit-scrollbar {
  display: none !important;
}

/* ======================================================== */
/* 4. 聊天页：玄月天体相位环 (空间与字号加大)                 */
/* ======================================================== */
.wx-chat-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.wx-orbit-container {
  padding: 12px 14px 8px;
  background: #ffffff;
}

.seg-celestial-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 14px;
  box-sizing: border-box;
}

.celestial-orbit-line {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, #d1d1d6 0%, #1c1c1e 50%, #d1d1d6 100%);
  opacity: 0.35;
  z-index: 1;
}

.celestial-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  background: #f8f8fa;
  border-radius: 20px;
  transition: all 0.2s ease;
  user-select: none;
}

.planet-orb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.2px solid #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  color: #8e8e93;
  transition: all 0.25s ease;
  line-height: 1;
  background: #ffffff;
}

.celestial-label {
  font-size: 15px;
  font-weight: 700;
  color: #8e8e93;
  letter-spacing: 1.2px;
  transition: all 0.2s ease;
}

.celestial-node.active .planet-orb {
  background: #1c1c1e;
  border-color: #1c1c1e;
  color: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.celestial-node.active .celestial-label {
  color: #111111;
  font-weight: 900;
}

/* ======================================================== */
/* 5. 消息框 (#f8f8fa 浅灰底色卡片)                           */
/* ======================================================== */
.wx-chat-list {
  width: 100%;
  padding: 4px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.wx-chat-card-frame {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  background: #f8f8fa;
  border-radius: 14px;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.wx-chat-card-frame:active {
  transform: scale(0.985);
  background: #f0f0f4;
}

.wx-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dcdce0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wx-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wx-avatar-box svg {
  width: 22px;
  height: 22px;
  stroke: #a0aec0;
  fill: none;
  stroke-width: 1.5;
}

.wx-chat-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wx-chat-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wx-chat-name {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
}

.wx-chat-time {
  font-size: 12.5px;
  color: #8e8e93;
  font-weight: 500;
}

.wx-chat-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wx-chat-msg {
  font-size: 13px;
  color: #8e8e93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.wx-unread-badge-num {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  background: #d06b78;
  border-radius: 9px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(208, 107, 120, 0.3);
}

/* ======================================================== */
/* 6. 通讯录 (Contacts：顶部NPC+新朋友，全浅灰卡片)           */
/* ======================================================== */
.wx-contacts-wrap {
  width: 100%;
  padding: calc(14px + var(--safe-top)) 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.wx-contacts-top-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wx-contact-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8f8fa;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.wx-contact-pill-item:active {
  background: #f0f0f3;
}

.wx-contact-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.wx-contact-pill-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.wx-contact-pill-title {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  flex: 1;
}

.wx-contact-pill-arrow {
  width: 14px;
  height: 14px;
  stroke: #c7c7cc;
  stroke-width: 2;
  fill: none;
}

.wx-contact-card-box {
  background: #f8f8fa;
  border-radius: 14px;
  padding: 6px 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.wx-contact-user-row {
  display: flex;
  align-items: center;
  padding: 10px 4px;
  gap: 12px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.wx-contact-user-row:last-child {
  border-bottom: none;
}
.wx-contact-user-row:active {
  opacity: 0.7;
}

.wx-contact-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wx-contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wx-contact-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #a0aec0;
  fill: none;
  stroke-width: 1.5;
}

.wx-contact-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}

/* ======================================================== */
/* 7. 发现 (Discover：纯灰背景 #e5e5ea，带签名，发布大按键)    */
/* ======================================================== */
.wx-moments-wrap {
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.wx-moments-cover-stage {
  width: 100%;
  height: 230px;
  position: relative;
  background-color: #e5e5ea !important;
  background-size: cover;
  background-position: center;
}

.wx-moments-img-btn {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  border: none;
  z-index: 10;
}
.wx-moments-img-btn:active {
  opacity: 0.7;
}
.wx-moments-img-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.wx-moments-user-dock {
  position: absolute !important;
  bottom: -12px !important;
  right: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  z-index: 10 !important;
}

.wx-moments-name-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.wx-moments-user-name {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #111111 !important;
  text-shadow: 0 1px 4px rgba(255,255,255,0.8) !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

.wx-moments-user-sig {
  position: absolute !important;
  top: calc(100% + 18px) !important;
  right: 0 !important;
  font-size: 14px !important;
  color: #636366 !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.wx-moments-avatar-col {
  position: relative !important;
  width: 62px !important;
  height: 62px !important;
  flex-shrink: 0 !important;
}

.wx-moments-user-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12) !important;
  overflow: hidden !important;
}
.wx-moments-user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.wx-moments-feed-list {
  padding: 44px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wx-moments-post-square-btn {
  width: 60px;
  height: 60px;
  background: #f2f2f7;
  border: 1px dashed #c7c7cc;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.wx-moments-post-square-btn:active {
  background: #e5e5ea;
}
.wx-moments-post-square-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* ======================================================== */
/* 8. 「我」(Me：拍立得完整高定细节，绝对尖角签名框)          */
/* ======================================================== */
.wx-me-page-wrap {
  width: 100%;
  min-height: 100%;
  padding-top: 0 !important;
  padding-bottom: calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  background: #f8f8fa !important;
}

/* 拍立得手账区域保持纯白卡片 */
.wx-me-pol-container {
  width: 100%;
  background: #ffffff !important;
  padding: calc(24px + var(--safe-top)) 14px 14px !important;
}

.pol-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 25px;
  max-width: 380px;
  box-sizing: border-box;
}

.pol-wrap .pol-bw {
  flex-shrink: 0;
  width: 130px;
}

/* 拍立得完整相框 */
.pol-wrap .frame {
  position: relative;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 15px 8px 30px 8px;
  box-sizing: border-box;
  border-radius: 6px;
}

/* 灰边胶带 */
.pol-wrap .tape-tl {
  position: absolute;
  top: -8px;
  left: 6px;
  width: 32px;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.6) 0px,
    rgba(255,255,255,.6) 2px,
    transparent 2px,
    transparent 5px
  );
  border: 1px solid #d1d1d6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transform: rotate(-8deg);
  opacity: .9;
  z-index: 5;
}

.pol-wrap .tape-tr {
  position: absolute;
  top: -7px;
  right: 6px;
  width: 30px;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.6) 0px,
    rgba(255,255,255,.6) 2px,
    transparent 2px,
    transparent 4px
  );
  border: 1px solid #d1d1d6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transform: rotate(6deg);
  opacity: .9;
  z-index: 5;
}

.pol-wrap .photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3.5;
  background: #fcfcfc;
  border: 1.5px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
}

.pol-wrap .corner {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: #e5e5e5;
  border-style: solid;
  z-index: 3;
}
.pol-wrap .corner.tl { top: 2px; left: 2px; border-width: 1.5px 0 0 1.5px; }
.pol-wrap .corner.tr { top: 2px; right: 2px; border-width: 1.5px 1.5px 0 0; }
.pol-wrap .corner.bl { bottom: 2px; left: 2px; border-width: 0 0 1.5px 1.5px; }
.pol-wrap .corner.br { bottom: 2px; right: 2px; border-width: 0 1.5px 1.5px 0; }

.upload-label {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 底部手账印章与细线 */
.pol-wrap .journal-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seal-img-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #d4d4d4;
  padding: 1px;
  box-sizing: border-box;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashed-border {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed #b8b8b8;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.dashed-border img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.journal-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5px;
}
.journal-lines span {
  display: block;
  height: 0;
  border-bottom: 1px dashed #e8e8e8;
}
.journal-lines span:first-child {
  border-bottom: 1px solid #d5d5d5;
}

.star-deco {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 7.5px;
  color: #bbb;
  letter-spacing: 0.5px;
}

/* 右侧：纯净大昵称 + 24px微格 + 微信号 + 纯尖角签名框 */
.pol-wrap .right-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
  gap: 6px;
}

.pol-wrap .right-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 28px;
  margin-top: -24px !important;
}

.pol-wrap .tiny-tiles-grid {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pol-wrap .tiny-tile-item {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0.8px dashed #c7c7cc;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #8e8e93;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.15s ease;
}
.pol-wrap .tiny-tile-item:active {
  transform: scale(0.92);
  border-color: #1c1c1e;
}
.pol-wrap .tiny-tile-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pol-wrap .me-clean-name {
  font-size: 21px;
  font-weight: 900;
  color: #111111;
  letter-spacing: -0.3px;
  outline: none;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pol-wrap .me-clean-id-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  color: #1c1c1e;
  font-weight: 600;
  outline: none;
}
.pol-wrap .me-clean-prefix {
  font-size: 15px;
  font-weight: 800;
  color: #8e8e93;
  font-family: monospace;
  letter-spacing: 0.5px;
}

/* 四角灰十字签名框 */
.pol-wrap .me-sig-cross-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: none !important;
  border-radius: 0 !important;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-top: 2px;
}

.pol-wrap .sig-cross {
  position: absolute;
  font-size: 10px;
  color: #c7c7cc;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pol-wrap .sig-cross.tl { top: 2px; left: 3px; }
.pol-wrap .sig-cross.tr { top: 2px; right: 3px; }
.pol-wrap .sig-cross.bl { bottom: 2px; left: 3px; }
.pol-wrap .sig-cross.br { bottom: 2px; right: 3px; }

.pol-wrap .me-sig-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
  letter-spacing: 0.3px;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  z-index: 2;
}

.pol-wrap .me-cursor-icon-gray {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: #8e8e93;
  stroke: none;
  transform: rotate(-5deg);
  z-index: 2;
}

/* 浅灰隔离带与底栏 #f8f8fa 彻底统一 */
.wx-me-divider-gap {
  width: 100%;
  height: 14px;
  background: #f8f8fa !important;
}
.wx-me-divider-gap.thick {
  height: 14px;
  background: #f8f8fa !important;
}

/* 纯白无外边框功能列表 */
.wx-me-white-group {
  width: 100%;
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
}

/* 列表项及加粗渐隐分割线 */
.wx-me-white-cell {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  background: #ffffff;
  border-bottom: none !important;
}

.wx-me-white-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.3px;
  background: linear-gradient(90deg, transparent 0%, #e2e2e7 15%, #e2e2e7 85%, transparent 100%);
  pointer-events: none;
}

.wx-me-white-cell:active {
  background: #f8f8fa;
}

.wx-me-cell-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f4f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1e;
  flex-shrink: 0;
}
.wx-me-cell-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.wx-me-cell-text {
  flex: 1;
  font-size: 14.5px;
  color: #1c1c1e;
  font-weight: 600;
}

.wx-me-cell-arrow {
  width: 14px;
  height: 14px;
  stroke: #c7c7cc;
  stroke-width: 2;
  fill: none;
}

/* ======================================================== */
/* 9. 原版底栏 (Safari 65px / PWA 78px 居中垫高)             */
/* ======================================================== */
.wx-tabbar {
  height: 65px !important;
  padding-bottom: 0 !important;
  background: #f8f8fa;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

.wx-tab-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8e8e93;
  cursor: pointer;
  transition: color 0.15s ease;
}

.wx-tab-item.active {
  color: #111111 !important;
}

.wx-tab-item svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 3.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wx-tab-item.active svg {
  stroke: #111111 !important;
}

.wx-tab-item text.snow-mark {
  fill: currentColor;
  stroke: none;
}

.wx-tab-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1;
  letter-spacing: 0.2px;
}

/* 仅在 PWA 独立桌面环境单独生效 */
@media (display-mode: standalone) {
  .wx-tabbar {
    height: 78px !important;
    padding-bottom: env(safe-area-inset-bottom, 20px) !important;
    display: flex !important;
    align-items: flex-start !important;
    padding-top: 6px !important;
  }

  .wx-tab-item {
    height: 48px !important;
  }
}
