* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body,
html {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-y;
  position: fixed;
}
body {
  background: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  padding: 0;
  margin: 0;
  touch-action: manipulation;
  --right-col-offset: 42px;
}
input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: -1;
}
input[type="file"].file-input-local {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.01 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
  display: block !important;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 通用居中弹窗 */
.akini-center-modal-overlay {
  transition: opacity 0.2s ease;
}
.akini-center-modal-panel {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.dark-mode .akini-center-modal-panel {
  background: #2c2c30 !important;
  color: #e8e8e8 !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}
body.dark-mode .akini-center-modal-panel .akini-modal-btn-cancel {
  background: #3a3a3e !important;
  border-color: #555 !important;
  color: #e8e8e8 !important;
}
body.dark-mode .akini-center-modal-panel .akini-modal-btn-ok {
  background: #07c160 !important;
  color: #fff !important;
}
input[type="file"].file-input-local::-webkit-file-upload-button {
  cursor: pointer !important;
  -webkit-appearance: none;
  appearance: none;
}
.phone-frame {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  transition: background 0.3s;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 1;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.phone-frame.has-custom-bg .bg-wave {
  opacity: 0 !important;
}
.bg-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(200, 200, 200, 0.12) 0,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(180, 180, 180, 0.1) 0,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
}
.content-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* 整体由 .middle-row 负责滚动，避免多层嵌套滚动器互相抢占 */
  overflow: hidden;
  overflow-x: hidden;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.top-card {
  margin: calc(16px + env(safe-area-inset-top, 0px)) 16px 4px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  padding: 0 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}
.top-card .cover-img {
  width: 100%;
  height: 160px;
  border-radius: 22px;
  background: #e6e6e6;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: default;
  position: relative;
  z-index: 1;
  margin-top: 14px;
  flex-shrink: 0;
}
.top-card .cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-card .dual-avatar-wrap {
  width: 148px;
  height: 74px;
  margin-top: -37px;
  margin-bottom: 4px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}
.top-card .dual-avatar-wrap .avatar-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #e8e8e8;
  border: 3.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.top-card .dual-avatar-wrap .avatar-right {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #e8e8e8;
  border: 3.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.top-card .dual-avatar-wrap .avatar-left img,
.top-card .dual-avatar-wrap .avatar-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-card .dual-avatar-wrap.swapped .avatar-left {
  left: auto;
  right: 0;
  z-index: 1;
}
.top-card .dual-avatar-wrap.swapped .avatar-right {
  right: auto;
  left: 0;
  z-index: 2;
}
.top-card .subtitle {
  font-size: 13px;
  color: rgba(60, 60, 60, 0.8);
  margin-top: 0;
  letter-spacing: 0.8px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.middle-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 16px 12px;
  flex: 1;
  min-height: 0;
  align-items: flex-start;
  overflow-x: hidden;
  /* 应用/纪念日/聊天预览区统一滚动 */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  gap: 16px;
  /* 图二圈起内容上移 3px */
  margin-top: -3px;
}
.left-apps-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: 17px;
  width: 204px;
  align-self: stretch;
  min-height: 0;
  /* 由 .middle-row 统一滚动，避免嵌套滚动器 */
  overflow: visible;
  padding-bottom: 12px;
}
.left-apps-row {
  display: flex;
  gap: 12px;
}
.left-apps-row.bottom-row .app-item,
.left-apps-row.top-row .app-item {
  width: 60px;
}
#appBtnMail {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
#appBtnMail .icon-wrap {
  background: transparent;
  border: none;
}
.app-item {
  background: 0 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  font-family: inherit;
  padding: 2px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}
.app-item:active {
  transform: scale(0.92);
}
.app-item .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #666;
  background: transparent;
  padding: 0;
  margin-bottom: 4px;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
}
.app-item .icon-wrap img,
.app-item .icon-wrap svg {
  border-radius: 0 !important;
  pointer-events: none;
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}
/* 自定义图标：保留容器圆角/边框/背景，仅替换内部图标 */
.app-item .icon-wrap.custom-icon img {
  border-radius: 10px !important;
  object-fit: cover;
}
.app-item .icon-wrap.custom-icon span {
  font-size: 26px;
}
/* 自定义图标（底部 dock）同样保留容器样式 */
.bottom-btn .icon-wrap.custom-icon img {
  border-radius: 10px !important;
  object-fit: cover;
}
.bottom-btn .icon-wrap.custom-icon span {
  font-size: 26px;
}
.app-item .label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-left: 0;
  margin-right: 0;
  transform: translateX(0);
  align-self: stretch;
  min-height: 0;
  /* 由 .middle-row 统一滚动，避免嵌套滚动器 */
  overflow: visible;
}
.right-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  max-width: none;
  max-height: none;
  cursor: default;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-right: 0;
  margin-left: 0;
  transform: translateX(0) !important;
}
.right-card .label {
  font-size: 15px;
  color: #2a2a2a;
  margin-bottom: 6px;
  z-index: 2;
  position: relative;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.right-card .number {
  font-size: 44px;
  font-weight: 300;
  color: #2a2a2a;
  line-height: 1;
  margin-bottom: 6px;
  z-index: 2;
  position: relative;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.right-card .unit {
  font-size: 15px;
  color: #2a2a2a;
  z-index: 2;
  position: relative;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.chat-preview {
  width: 220px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  left: -80px;
  margin-left: 0;
  top: -3px;
}
.preview-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.preview-row:nth-child(2) {
  justify-content: flex-end;
}
.preview-row:first-child {
  transform: translateX(-20px);
}
.preview-row:first-child .preview-bubble {
  margin-right: 50px;
}
.preview-row:nth-child(2) .preview-bubble {
  margin-left: 50px;
}
.preview-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-bubble {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  outline: 0;
  -webkit-user-modify: read-write;
  user-select: text;
  cursor: text;
  word-break: break-word;
  max-width: 160px;
}
.preview-bubble:focus {
  background: rgba(255, 255, 255, 0.75);
}
.bottom-bar {
  padding: 15px 16px 16px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.bottom-btn-container {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 6px 12px;
  display: flex;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.bottom-btn {
  background: 0 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
}
.bottom-btn:active {
  transform: scale(0.92);
}
.bottom-btn .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #666;
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.bottom-btn .icon-wrap img,
.bottom-btn .icon-wrap svg {
  border-radius: 0 !important;
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}
.bottom-btn .label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.settings-area {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  z-index: 300;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  overflow-y: auto;
  padding-bottom: 20px;
}
.settings-area.show {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}
.settings-header {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}
.settings-header .back-btn {
  margin-right: 12px;
}
.settings-header .title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  flex: 1;
}
.settings-body {
  padding: 19px 16px 16px; /* v20260830ay: 内容下移 3px */
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-card {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.settings-body .settings-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.settings-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 10px;
}
.settings-row .info {
  flex: 1;
}
.settings-row .info .label {
  font-size: 14px;
  color: #222;
}
.settings-row .info .desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  line-height: 1.4;
}
.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ddd;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
  border: none;
  flex-shrink: 0;
}
.toggle-switch.on {
  background: #4f7cff;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.3s;
}
.toggle-switch.on::after {
  left: 22px;
}
.num-input {
  width: 70px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  outline: 0;
  background: #fafafa;
  flex-shrink: 0;
}
.num-input:focus {
  border-color: #4f7cff;
}
.time-input {
  width: 92px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  outline: 0;
  background: #fafafa;
  flex-shrink: 0;
}
.time-input:focus {
  border-color: #4f7cff;
}
.input-unit {
  font-size: 13px;
  color: #888;
  margin-left: 4px;
  flex-shrink: 0;
}
.test-btn {
  width: 100%;
  padding: 12px 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.test-btn:active {
  background: #f5f5f5;
}
.style-select-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.style-btn {
  flex: 1;
  padding: 8px 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: 0.2s;
}
.style-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
.ts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.ts-option {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  color: #333;
}
.ts-option .icon-box {
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}
.ts-option.active {
  border-color: #333;
  background: #f5f5f5;
}
.ts-option.active .icon-box {
  background: #333;
  color: #fff;
}
.beautify-area {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  z-index: 300;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  overflow-y: auto;
  padding-bottom: 20px;
}
.beautify-area.show {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}
.beautify-header {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}
.beautify-header .back-btn {
  margin-right: 12px;
}
.beautify-header .title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  flex: 1;
}
.beautify-body {
  padding: 19px 16px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* 美化界面：强制所有 settings-card 与设置页完全一致 */
.beautify-body .settings-card {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  padding: 16px 20px !important;
  box-sizing: border-box !important;
}

.beautify-img-btn {
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.beautify-img-btn:active {
  background: #f0f0f0;
}
.beautify-img-btn input[type="file"] {
  pointer-events: auto !important;
  z-index: 2 !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.01 !important;
  display: block !important;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer !important;
}
.chat-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}
.chat-top-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0px + env(safe-area-inset-top, 0px)) 12px 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e8e8e8;
  z-index: 100;
  height: calc(50px + env(safe-area-inset-top, 0px));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
}
.chat-top-bar .left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-top-bar .back-btn {
  margin-right: 0;
}
.chat-top-bar .ta-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-top-bar .ta-info .ta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}
.chat-top-bar .ta-info .ta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-top-bar .ta-info .ta-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.chat-top-bar .center-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
@keyframes typingBlink {
  0%,
  10% {
    opacity: 0;
  }
  30%,
  60% {
    opacity: 1;
  }
  100%,
  80% {
    opacity: 0;
  }
}
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 64px;
  min-height: 40px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #777;
  animation: typingPulse 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(1) {
  animation-delay: 0s;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingPulse {
  0%,
  60%,
  100% {
    transform: translateY(0);
    background: #777;
  }
  30% {
    transform: translateY(-4px);
    background: #111;
  }
}
@keyframes typingFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes neteaseDiscSpin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes inviteDot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
/* 商店卡片样式 */
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.12s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.shop-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.shop-card-icon {
  font-size: 48px;
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
}
.shop-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.shop-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: left;
  word-break: break-all;
  width: 100%;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #ff3b30;
}
.shop-card-buy {
  width: 100%;
  height: 36px;
  border-radius: 18px;
  border: none;
  background: #07c160;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}
.shop-picker-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.shop-picker-item:active {
  background: #f2f2f2;
}
.shop-picker-item.selected {
  background: #f5f5f5;
}
.shop-picker-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  object-fit: cover;
  overflow: hidden;
}
.shop-picker-item span {
  font-size: 13px;
  color: #1a1a1a;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.shop-picker-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.shop-picker-item.selected .shop-picker-check {
  border-color: #07c160;
  background: #07c160;
}
.shop-picker-check-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.shop-picker-item.selected .shop-picker-check-inner {
  display: block;
}

.shop-order-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.shop-order-footer span {
  font-size: 12px;
  color: #999;
}
.shop-card-bubble {
  min-width: 260px;
  max-width: 320px;
  padding: 12px !important;
  background: #2c2c2c !important;
  color: #fff !important;
  border-radius: 12px !important;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}
.shop-card-bubble-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.shop-card-bubble .shop-card-bubble-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card-bubble .shop-card-bubble-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-card-bubble-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.shop-card-bubble-title {
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}
.shop-card-bubble-name {
  font-size: 14px;
  color: #fff;
  opacity: 0.85;
}
.shop-card-signature {
  color: #ff6b6b;
}
.shop-card-amount {
  color: #ff6b6b;
  font-weight: 600;
}
.shop-card-bubble-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.shop-card-bubble-status {
  font-size: 13px;
  color: #fff;
  opacity: 0.7;
}
.shop-card-bubble-status.done {
  color: #fff;
  opacity: 1;
}

.shop-order-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.shop-order-badge.badge-delegate {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
}
.shop-order-badge.badge-gift {
  background: rgba(7, 193, 96, 0.2);
  color: #07c160;
}
.shop-order-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.shop-order-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
}
.shop-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.shop-picker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
#musicProgress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  margin-top: -3.5px;
}
#musicProgress::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}
#musicProgress::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}
#musicProgress::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: calc(64px + env(safe-area-inset-top, 0px)) 14px 16px;
  transition: background 0.3s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-list-item {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.chat-list-item:active {
  background: #f2f2f2;
}
.chat-list-item-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
}
.chat-list-item.show-actions .chat-list-item-inner {
  transform: translateX(-70px);
}
.chat-list-actions {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07c160;
  z-index: 1;
}
.chat-list-actions button {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
}
/* 置顶文字标签：放在聊天列表昵称右侧，类似 iCity 置顶日记的灰色小 pill */
.chat-pin-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  background: #f2f2f2;
  color: #999;
  font-size: 11px;
  font-weight: 500;
  border-radius: 10px;
  vertical-align: middle;
  line-height: 1.2;
  pointer-events: none;
}
.chat-list-item .cli-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8e8e8;
  overflow: visible;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.chat-list-item .cli-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chat-list-item .cli-avatar .cli-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff3b30;
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-list-item .cli-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chat-list-item .cli-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list-item .cli-msg {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list-item .cli-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}
.chat-list-empty {
  text-align: center;
  color: #999;
  padding: 60px 20px;
  font-size: 14px;
}
.chat-list-tabs {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.chat-list-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
}
.chat-list-tab.active .chat-list-tab-label {
  color: #07c160;
  font-weight: 600;
}
.chat-list-tab .chat-list-tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.contact-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.contact-list-item:active {
  background: #f2f2f2;
}
.contact-list-item .contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8e8e8;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.contact-list-item .contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-list-item .contact-name {
  flex: 1;
  font-size: 15px;
  color: #1a1a1a;
}
.contacts-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}
.contacts-header-row .contacts-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}
.contacts-header-row .contacts-add-btn {
  font-size: 24px;
  background: 0 0;
  border: none;
  color: #333;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.group-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.group-contact-item:last-child {
  border-bottom: none;
}
.group-contact-item .gcc-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c7c7cc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.group-contact-item .gcc-checkbox.checked {
  background: #007aff;
  border-color: #007aff;
}
.group-contact-item .gcc-checkbox.checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
}
.group-contact-item .gcc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8e8e8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.group-contact-item .gcc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-contact-item .gcc-name {
  font-size: 15px;
  color: #1a1a1a;
}
.chat-body .msg-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  width: 100%;
  position: relative;
}
.chat-body .msg-row.other .msg-content-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.chat-body .msg-row.me .msg-content-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: wrap;
}
.chat-body .msg-row .msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  background: #ddd;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}
.chat-body .msg-row .msg-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.chat-body .msg-row .bubble {
  padding: 9px 14px;
  border-radius: 10px;
  max-width: 65%;
  font-size: 14px;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  writing-mode: horizontal-tb;
  line-height: 1.5;
}
.chat-body .msg-row .bubble.sticker-bubble {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 200px !important;
  border: none !important;
  outline: none !important;
  min-width: 0 !important;
  height: auto !important;
}
.chat-body .msg-row .bubble img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.chat-body .msg-row .bubble.sticker-bubble img {
  max-width: 100%;
  width: 100%;
  display: block;
}
.chat-body .msg-row .bubble.transfer-bubble {
  border: none !important;
  outline: none !important;
}
.chat-body .msg-row .bubble.sticker-bubble img {
  display: block !important;
}
.chat-body .msg-row.me .bubble.sticker-bubble,
.chat-body .msg-row.other .bubble.sticker-bubble,
.chat-body .msg-row.ta .bubble.sticker-bubble {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}
.chat-body .msg-row.other .bubble.sticker-bubble {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.chat-body .msg-row.me .bubble.sticker-bubble {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.chat-body .msg-row .bubble.transfer-bubble {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  outline: none !important;
}
.chat-body .msg-row .bubble.survey-bubble {
  background: #2f2f2f !important;
  color: #fff !important;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  border-radius: 10px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
.chat-body .msg-row.me .bubble.survey-bubble {
  border-top-right-radius: 2px !important;
}
.chat-body .msg-row.other .bubble.survey-bubble,
.chat-body .msg-row.ta .bubble.survey-bubble {
  border-top-left-radius: 2px !important;
}
.survey-bubble-inner {
  display: flex;
  gap: 10px;
  padding: 12px;
}
.survey-bubble-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.survey-bubble-content {
  flex: 1;
  min-width: 0;
}
.survey-bubble-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
.survey-bubble-q {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.survey-bubble-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0;
}
.survey-bubble-footer {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.survey-bubble-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.survey-bubble-status {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}
.chat-body .msg-row.me .bubble:not(.transfer-bubble):not(.sticker-bubble) {
  background: #ffd1dc;
  color: #111;
  border-top-right-radius: 2px;
}
body.bubble-pink
  .chat-body
  .msg-row.me
  .bubble:not(.transfer-bubble):not(.sticker-bubble) {
  background: #ffd1dc;
  color: #111;
}
body.bubble-blue
  .chat-body
  .msg-row.me
  .bubble:not(.transfer-bubble):not(.sticker-bubble) {
  background: #007aff;
  color: #fff;
}
body.bubble-green
  .chat-body
  .msg-row.me
  .bubble:not(.transfer-bubble):not(.sticker-bubble) {
  background: #07c160;
  color: #fff;
}
body.bubble-black
  .chat-body
  .msg-row.me
  .bubble:not(.transfer-bubble):not(.sticker-bubble) {
  background: #111;
  color: #fff;
}
.chat-body .msg-row .bubble.transfer-bubble {
  background: #222 !important;
  color: #fff !important;
}
.chat-body .msg-row.me .bubble.transfer-bubble {
  background: #222 !important;
}
.chat-body .msg-row.other .bubble.transfer-bubble,
.chat-body .msg-row.ta .bubble.transfer-bubble {
  background: #222 !important;
}
.chat-body .msg-row.other .bubble {
  background: #fff;
  color: #111;
  border-top-left-radius: 2px;
}
.chat-body .msg-row.me .bubble .quote-bubble {
  background: #fff !important;
  color: #333 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 4px 10px !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  max-width: 90% !important;
  line-height: 1.3 !important;
  font-size: 11px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  position: relative !important;
  z-index: 1 !important;
  vertical-align: top !important;
}
.chat-body .msg-row.other .bubble .quote-bubble {
  background: #fff !important;
  color: #333 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 4px 10px !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  max-width: 90% !important;
  line-height: 1.3 !important;
  font-size: 11px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  position: relative !important;
  z-index: 1 !important;
  vertical-align: top !important;
}
.chat-body .msg-row.system {
  justify-content: center;
  margin: 4px 0 10px;
  flex-direction: row;
}
.chat-body .msg-row.system .bubble {
  background: rgba(180, 180, 180, 0.32);
  color: #888;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  max-width: 90%;
  text-align: center;
  box-shadow: none;
}
.timestamp-row {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}
.timestamp-row::before {
  content: attr(data-time);
  background: rgba(180, 180, 180, 0.32);
  backdrop-filter: blur(2px);
  color: #888;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
}
#msgContextMenu {
  position: fixed;
  z-index: 9000;
  background: #1c1c1e;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
#msgContextMenu .ctx-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
#msgContextMenu .ctx-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 120px;
}
#msgContextMenu .ctx-item:last-child {
  border-right: none;
}
#msgContextMenu .ctx-item:active {
  background: rgba(255, 255, 255, 0.1);
}
#msgContextMenu .ctx-item.danger {
  color: #ff453a;
}
.ctx-item:last-child {
  border-bottom: none !important;
}
#msgContextMenu .ctx-sep {
  display: none;
}
.chat-body .msg-row .msg-meta {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 2px;
  font-size: 11px;
  color: #999;
  gap: 4px;
  line-height: 1.2;
}
.chat-body .msg-row.other .msg-meta {
  padding-left: 46px;
  justify-content: flex-start;
}
.chat-body .msg-row.me .msg-meta {
  padding-right: 46px;
  justify-content: flex-end;
}
.chat-body .msg-row.group .msg-bubble-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.chat-body .msg-row.group .msg-bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.chat-body .msg-row.group .msg-sender-name {
  display: none;
}
.chat-body .msg-row.group .msg-content-line {
  align-items: flex-start;
}
.chat-body .msg-row.group .bubble {
  margin-top: 0;
}
.chat-body .msg-row.group .msg-avatar {
  margin-top: 0;
}
.chat-body .msg-row.group .msg-meta {
  padding-left: 46px;
}
.chat-body .msg-row .bubble.transfer-bubble {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  cursor: pointer;
  box-sizing: border-box;
  flex: none;
  align-self: flex-start;
  height: auto;
  display: inline-block;
  vertical-align: top;
  white-space: normal;
}
.chat-body .msg-row .bubble.transfer-bubble.tr-finished .tr-claim-tip {
  color: #fff !important;
}
.transfer-bubble .tr-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}
.chat-body .msg-row.me .bubble.transfer-bubble.me-tr {
  background: #222 !important;
  color: #fff;
  border-top-right-radius: 2px;
}
.chat-body .msg-row.other .bubble.transfer-bubble.ta-tr,
.chat-body .msg-row.ta .bubble.transfer-bubble.ta-tr {
  background: #222 !important;
  color: #fff;
  border-top-left-radius: 2px;
}
.transfer-bubble .tr-status {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}
.chat-input-bar-area {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10;
  padding-bottom: calc(env(safe-area-inset-bottom) + 4px);
}
.chat-quote-bar {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 8px);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  z-index: 20;
}
.chat-quote-bar.show {
  display: flex;
}
.chat-quote-bar .quote-text {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 8px;
}
.chat-quote-bar .quote-close {
  cursor: pointer;
  color: #999;
  font-size: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.chat-quote-bar .quote-close:active {
  color: #333;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
}
.chat-quote-bar::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 24px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.06);
}
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 54px;
  position: relative;
  margin-bottom: 4px;
}
.transfer-preset {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: #f0f0f0;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.transfer-preset.active {
  background: #333;
  color: #fff;
}
.bubble-color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.bubble-color-option .bubble-color-preview {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.bubble-color-option.active .bubble-color-preview {
  border-color: #333;
}
.bubble-color-option span {
  font-size: 12px;
  color: #666;
}
.bubble-color-option.active span {
  color: #222;
  font-weight: 600;
}
.music-chat-bubble {
  position: relative;
  max-width: 120px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.music-chat-bubble.show {
  opacity: 1;
  transform: translateY(0);
}
.music-chat-bubble.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}
.music-chat-bubble::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.76);
  transform: rotate(45deg);
}
.music-chat-left::after {
  left: 24px;
}
.music-chat-right::after {
  right: 24px;
}
.chat-input-bar .action-btn {
  height: 36px;
  width: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-input-bar .action-btn:active {
  opacity: 0.85;
}
.chat-input-bar .action-btn .wechat-send {
  width: 18px;
  height: 18px;
  stroke: #fff;
}
.chat-input-bar .input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 20px;
  padding: 2px 14px;
  box-shadow: inset 0 0 0 1px #e8e8e8;
}
.chat-input-bar .input-wrap input {
  flex: 1;
  height: 34px;
  border: none;
  outline: 0;
  background: 0 0;
  padding: 0;
  font-size: 16px;
  min-width: 0;
}
.chat-input-bar .plus-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.chat-input-bar .plus-btn:active {
  background: #e8e8e8;
}
.chat-input-bar .plus-btn .plus-icon-img,
.chat-input-bar .emoji-btn .emoji-icon-img {
  pointer-events: none;
}
.chat-input-bar .emoji-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.chat-input-bar .emoji-btn:active {
  background: #e8e8e8;
}
.wechat-icon {
  width: 28px;
  height: 28px;
  color: #000 !important;
  stroke: #000 !important;
  fill: none;
}
.wechat-icon [fill] {
  fill: #000 !important;
}
.plus-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  gap: 14px;
  min-width: 260px;
}
.plus-menu.show {
  display: flex;
}
.plus-menu-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 14px;
  transition: background 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.plus-menu-item:active {
  background: #f2f2f2;
}
.plus-menu-item span {
  font-size: 12px;
  color: #333;
}
.plus-menu-item label span {
  font-size: 12px;
  color: #333;
}
.wechat-menu-icon {
  width: 22px;
  height: 22px;
  color: #000 !important;
  stroke: #000 !important;
  fill: none;
}
.plus-menu-item {
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.plus-menu-item .icon-circle {
  width: 46px;
  height: 46px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plus-menu-item span {
  color: #000 !important;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.plus-menu-item .icon-circle,
.plus-menu-item .icon-circle * {
  pointer-events: none;
}
.emoji-panel {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px;
  max-height: 40vh;
  overflow-y: auto;
  border: 1px solid #e8e8e8;
  z-index: 20;
  flex-wrap: wrap;
  gap: 10px;
}
.emoji-panel.show {
  display: flex;
}
.emoji-panel .sticker {
  width: 60px;
  height: 60px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.15s;
}
.emoji-panel .sticker:active {
  transform: scale(0.9);
}
.chat-menu-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  border-radius: 0;
  overflow: hidden;
}
.chat-menu-overlay.show {
  display: block;
}
.chat-menu-overlay .menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.chat-menu-overlay .menu-panel {
  position: absolute;
  top: 60px;
  right: 10px;
  background: #fff;
  border-radius: 16px;
  width: 240px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  max-height: 80%;
  overflow-y: auto;
}
.chat-menu-overlay .menu-panel .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}
.chat-menu-overlay .menu-panel .menu-item:last-child {
  border-bottom: none;
}
.friends-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  overflow: hidden;
}
.friends-header {
  height: 200px;
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 40%, #8ec5fc 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.friends-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(255,255,255,0.35) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.friends-header .bg-avatar,
.friends-header .friends-profile-signature,
.friends-header .back-btn,
.friends-header .camera-btn,
.friends-header .change-bg-btn {
  position: relative;
  z-index: 1;
}
.friends-header .back-btn {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 10;
}
.friends-header .camera-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: 0 0;
  border: none;
  font-size: 22px;
  color: #555;
  cursor: pointer;
  z-index: 5;
}
.friends-header .change-bg-btn {
  position: absolute;
  top: 16px;
  right: 60px;
  background: rgba(240, 240, 240, 0.8);
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  z-index: 5;
}
.friends-header .bg-avatar {
  position: relative;
  margin-top: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.friends-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.friends-profile-signature {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-bottom: 20px;
  margin-top: -10px;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.post-item {
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
}
.post-item:last-child {
  border-bottom: none;
}
.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.post-content {
  font-size: 15px;
  line-height: 1.6;
  color: #222;
  margin-top: 2px;
}
.post-image {
  margin-top: 6px;
  width: 100%;
  max-width: 200px;
  border-radius: 6px;
  overflow: hidden;
}
.post-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.post-time {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}
.post-actions {
  display: flex;
  gap: 14px;
  font-size: 16px;
  color: #999;
  margin-top: 4px;
  flex-shrink: 0;
}
.post-action-area {
  background: #f5f5f5;
  border-radius: 8px;
  margin: 8px 14px 0;
  padding: 8px 12px;
}
.post-like-area {
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 3px;
  margin-bottom: 3px;
}
.post-comment-area {
  font-size: 13px;
  color: #333;
}
.post-comment-item {
  padding: 2px 0;
  line-height: 1.5;
}
.post-comment-item .author {
  font-weight: 600;
}
.post-reply-item {
  padding-left: 4px;
  font-size: 12px;
  color: #444;
}
.icity-diary-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid #f0f0f0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icity-diary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.icity-diary-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8e8e8;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icity-diary-meta {
  flex: 1;
  min-width: 0;
}
.icity-diary-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icity-diary-handle {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icity-diary-date {
  text-align: right;
  flex-shrink: 0;
}
.icity-diary-date div:first-child {
  font-size: 12px;
  color: #aaa;
}
.icity-diary-date div:last-child {
  font-size: 11px;
  color: #ccc;
  margin-top: 2px;
}
.icity-diary-text {
  font-size: 15px;
  color: #222;
  line-height: 1.7;
  white-space: normal;
  word-break: break-all;
  margin-bottom: 8px;
}
.icity-diary-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.icity-contact-preview-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid #f0f0f0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icity-contact-preview-bg {
  height: 120px;
  background: linear-gradient(135deg, #f0c8a8, #d4a8d4);
  background-size: cover;
  background-position: center;
  position: relative;
}
.icity-contact-preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #e8e8e8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.icity-contact-preview-info {
  padding: 38px 16px 16px;
  text-align: center;
}
.icity-contact-preview-name {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}
.icity-contact-preview-handle {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}
.icity-contact-preview-bio {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.4;
}
.icity-contact-preview-count {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.icity-contact-preview-label {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}
#icityTaProfileModal {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  transform: translateX(100%);
  opacity: 0;
}
#icityTaProfileModal.show {
  transform: translateX(0);
  opacity: 1;
}
.icity-diary-time {
  font-size: 11px;
  color: #bbb;
}
.friends-publish-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 220;
  align-items: flex-end;
  justify-content: center;
}
.friends-publish-modal .modal-content {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.friends-publish-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}
.friends-publish-modal .modal-header .close-btn {
  background: 0 0;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
}
.friends-publish-modal .modal-header .title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.friends-publish-modal .modal-header .submit-btn {
  background: 0 0;
  border: none;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}
.friends-publish-modal .publish-input {
  width: 100%;
  border: none;
  outline: 0;
  resize: none;
  font-size: 15px;
  padding: 4px 0;
  height: 80px;
  font-family: inherit;
  color: #333;
}
.friends-publish-modal .add-image-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
}
.friends-publish-modal .add-image-btn .label {
  font-size: 14px;
  color: #666;
}
.content-header {
  display: flex;
  align-items: center;
  padding: 16px 18px 10px;
  background: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}
.content-header .back-btn {
  margin-right: 16px;
}
.content-header .title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}
.content-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 60px 16px 16px;
  overflow-y: auto;
  background: #f9f9f9;
  padding-top: calc(60px + env(safe-area-inset-top, 0px)) !important;
}
.mail-tab {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  text-align: center;
}
.mail-tab.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
.chat-menu-overlay .menu-panel .menu-item:active {
  background: #f5f5f5;
}
.chat-menu-overlay .menu-panel .menu-item .label {
  flex: 1;
}
.chat-menu-overlay .menu-panel .menu-item input[type="text"] {
  width: 100px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
}
.sticker-manager-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 45;
  border-radius: 0;
  overflow: hidden;
}
.sticker-manager-overlay.show {
  display: block;
}
.sticker-manager-overlay .manage-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sticker-manager-overlay .manage-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 24px;
  width: 92%;
  max-width: 360px;
  max-height: 72%;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}
.sticker-manager-overlay .manage-panel h3 {
  text-align: center;
  margin-bottom: 12px;
  font-size: 18px;
}
.sticker-manager-overlay .manage-panel .manage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 12px;
}
.sticker-manager-overlay .manage-panel .manage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
.sticker-manager-overlay .manage-panel .manage-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid transparent;
}
.sticker-manager-overlay .manage-panel .manage-item input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: #2b2b2b;
}
.sticker-manager-overlay .manage-panel .manage-item.selected img {
  border-color: #2b2b2b;
}
.sticker-manager-overlay .manage-panel .actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.sticker-manager-overlay .manage-panel .actions button {
  padding: 10px 26px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.sticker-manager-overlay .manage-panel .actions .close-btn {
  background: #f0f0f0;
  color: #555;
}
.sticker-manager-overlay .manage-panel .actions .del-btn {
  background: #ff4d4f;
  color: #fff;
}
.sticker-manager-overlay .manage-panel .actions .del-btn:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}
.wordbank-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  z-index: 300;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
}
.wordbank-overlay.show {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}
.wb-header {
  display: flex;
  align-items: center;
  padding: 16px 18px 10px;
  background: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}
.wb-header .icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
}
.wb-header .icon-title span {
  font-size: 20px;
}
.wb-tabs {
  display: flex;
  gap: 12px;
  padding: 0 18px 12px;
  background: #fff;
  flex-shrink: 0;
}
.wb-tabs .tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 20px;
  background: #f0f0f0;
  text-align: center;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: 0.2s;
}
.wb-tabs .tab.active {
  background: #a0a0a0;
  color: #fff;
}
.wb-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 6px 18px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 4px;
}
.wb-toolbar .left-group,
.wb-toolbar .right-group {
  display: flex;
  gap: 6px;
}
.wb-toolbar .tool-btn {
  min-width: 44px;
  padding: 0 10px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.wb-toolbar .tool-btn:active {
  background: #f0f0f0;
  transform: translateY(1px);
}
body.dark-mode .wb-toolbar .tool-btn {
  background: #3a3a3e !important;
  border-color: #555 !important;
  color: #e8e8e8 !important;
}
body.dark-mode .wb-toolbar .tool-btn:active {
  background: #444448 !important;
}
.wb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 29px 16px 20px; /* v20260830bc: 字卡库内容再下移 3px */
  overflow-y: auto;
  background: transparent;
}
.wb-content .empty-text {
  color: #999;
  font-size: 14px;
}
.wb-bottom {
  display: flex;
  padding: 12px 18px 20px;
  background: #fff;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  gap: 12px;
}
.wb-bottom .btn-add {
  flex: 1;
  padding: 14px 0;
  border: none;
  border-radius: 14px;
  background: #a0a0a0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.wb-bottom .btn-add:active {
  opacity: 0.8;
}
.wb-bottom .btn-close {
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  background: #f0f0f0;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
.wb-bottom .btn-close:active {
  opacity: 0.8;
}
.group-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 500;
  justify-content: center;
  align-items: center;
  border-radius: 0;
}
.group-modal.show {
  display: flex;
}
.group-modal .modal-box {
  background: #fff;
  width: 85%;
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  max-height: 70%;
  overflow-y: auto;
}
.group-modal .modal-box .title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.group-modal .modal-box .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f0f0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.group-modal .modal-box .empty-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: #888;
  font-size: 14px;
  gap: 8px;
}
.group-modal .modal-box .group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 10px 0;
}
.group-modal .modal-box .group-list .g-item {
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.group-modal .modal-box .group-list .g-item .del-group {
  color: #ff4d4f;
  cursor: pointer;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.group-modal .modal-box .group-list .g-item .del-group:active {
  background: #ffecec;
}
.group-modal .modal-box .add-group-btn {
  width: 100%;
  padding: 16px;
  border: 2px dashed #a0a0a0;
  border-radius: 14px;
  background: 0 0;
  color: #a0a0a0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: auto;
}
.group-modal .modal-box .add-group-btn:active {
  background: #fafafa;
}
.add-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 350;
  flex-direction: column;
  border-radius: 0;
  padding: 20px;
}
.add-modal.show {
  display: flex;
}
.add-modal h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 4px;
}
.add-modal .sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.add-modal .group-select-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
}
.add-modal .group-select-area select {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  outline: 0;
  background: #fff;
}
.add-modal textarea {
  flex: 1;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  resize: none;
  outline: 0;
  font-family: inherit;
}
.add-modal textarea:focus {
  border-color: #a0a0a0;
}
.add-modal .count {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}
.add-modal .actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.add-modal .actions button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.add-modal .actions .cancel {
  background: #f0f0f0;
  color: #333;
}
.add-modal .actions .confirm {
  background: #a0a0a0;
  color: #fff;
}
.music-player {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: #fafafa;
  gap: 20px;
}
.music-player .album-cover {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.music-player .song-info {
  text-align: center;
}
.music-player .song-info .title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.music-player .song-info .artist {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}
.music-player .controls {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}
.music-player .controls button {
  background: 0 0;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}
.music-player .controls button:active {
  transform: scale(0.9);
}
.music-player .progress-bar {
  width: 80%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  position: relative;
}
.music-player .progress-bar .fill {
  width: 45%;
  height: 100%;
  background: #a0a0a0;
  border-radius: 2px;
}
.content-area {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #f2f2f2;
  z-index: 300;
  flex-direction: column;
  border-radius: 0;
  overflow: auto;
  transition: background 0.3s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.content-area.show {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}
.chat-body::-webkit-scrollbar {
  width: 2px;
}
.chat-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.wb-content::-webkit-scrollbar {
  width: 2px;
}
.wb-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.wb-gf-btn {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  margin-right: 6px;
  white-space: nowrap;
}
.wb-gf-btn.active {
  background: #a0a0a0;
  color: #fff;
  border-color: #a0a0a0;
}
.wb-word-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.wb-word-item.selected {
  background: #edf6ff;
  border: 1.5px solid #7ec8ff;
}
.wb-word-item .wb-word-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 12px;
}
.wb-word-item.selected .wb-word-check {
  background: #7ec8ff;
  border-color: #7ec8ff;
  color: #fff;
}
.wb-word-item .wb-word-text {
  flex: 1;
  font-size: 14px;
  color: #333;
  word-break: break-all;
  line-height: 1.4;
}
.wb-word-item .wb-word-group {
  font-size: 11px;
  color: #aaa;
  flex-shrink: 0;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-word-item .wb-word-del {
  flex-shrink: 0;
  background: 0 0;
  border: none;
  color: #ddd;
  font-size: 18px;
  cursor: pointer;
  padding: 0 0 0 6px;
}
.call-mini-window {
  position: fixed;
  width: 300px;
  height: 440px;
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  border-radius: 28px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
  z-index: 999999990 !important;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    border-radius 0.28s cubic-bezier(0.2, 0.8, 0.4, 1),
    width 0.28s,
    height 0.28s,
    padding 0.28s;
}
.call-mini-window .call-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  margin-bottom: 12px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  overflow: hidden !important;
}
.call-mini-window .call-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}
.call-mini-window .call-name {
  color: #111;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.call-mini-window .call-status {
  color: #666;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.call-mini-window .call-time {
  color: #666;
  font-size: 13px;
  margin-bottom: 30px;
}
.call-mini-window .call-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}
.call-mini-window .call-actions button {
  background: 0 0;
  border: none;
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.15s;
  padding: 10px;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.call-mini-window .call-actions button:active {
  transform: scale(0.85);
}
.call-mini-window .call-actions .minimize-btn {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 50%;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.call-mini-window .call-actions .answer-btn {
  background: #34c759;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(52, 199, 89, 0.35);
}
.call-mini-window .call-actions .hangup-btn {
  background: #ff3b30;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(255, 59, 48, 0.35);
}
.call-mini-shrunk {
  width: auto !important;
  height: 48px !important;
  min-width: 110px !important;
  padding: 4px 14px 4px 6px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  cursor: pointer !important;
}
.call-mini-shrunk .call-avatar {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border: none !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}
.call-mini-shrunk .call-actions,
.call-mini-shrunk .call-name,
.call-mini-shrunk .call-status {
  display: none !important;
}
.call-mini-shrunk .call-time {
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  display: block !important;
}
.icity-area {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 300;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  overflow-y: auto;
  padding-bottom: 0;
}
.icity-area::before {
  content: none;
}
.icity-area > * {
  position: relative;
  z-index: 1;
}
/* iCity 我的主页 - 封面区域与头像定位 */
#icityMyBgArea {
  position: relative;
  overflow: visible;
  z-index: 0;
}
#icityMyBgArea > div {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  z-index: 5;
}
#icityMyAvatar3 {
  position: relative;
  z-index: 10;
}
#icityBackBtn {
  position: relative;
  z-index: 100;
}
/* iCity TA 主页 - 封面区域 */
.icity-ta-bg-div {
  position: relative;
  overflow: visible;
  z-index: 0;
}
#icityTaProfileBack,
#icityTaProfileEditBtn {
  position: relative;
  z-index: 100;
}
#icityTaAvatar3 {
  position: relative;
  z-index: 50;
}
/* iCity 背景图强制居中，避免被任何内联样式覆盖为顶部 */
#icityMyBgArea,
.icity-ta-bg-div {
  background-position: center !important;
  background-size: cover !important;
}
.icity-area.show {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}
.icity-header {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}
.icity-header .back-btn {
  margin-right: 12px;
}
.icity-header .title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  flex: 1;
}
.icity-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.icity-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.icity-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}
.icity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 10px;
}
.icity-row .info {
  flex: 1;
}
.icity-row .info .label {
  font-size: 14px;
  color: #222;
}
.icity-row .info .desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  line-height: 1.4;
}
.icity-input {
  width: 70px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  outline: 0;
  background: #fafafa;
  flex-shrink: 0;
}
.icity-input:focus {
  border-color: #4f7cff;
}
.icity-input-full {
  width: 100%;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  outline: 0;
  background: #fafafa;
}
.icity-input-full:focus {
  border-color: #4f7cff;
}
.icity-textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  resize: none;
  outline: 0;
  font-family: inherit;
  min-height: 120px;
}
.icity-textarea:focus {
  border-color: #4f7cff;
}
.icity-save-btn {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 12px;
  background: #a0a0a0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}
.icity-save-btn:active {
  opacity: 0.8;
}
body.dark-mode {
  background: #1a1a1e !important;
}
body.dark-mode #phoneFrame,
body.dark-mode .beautify-header,
body.dark-mode .call-header,
body.dark-mode .chat-header,
body.dark-mode .friends-header,
body.dark-mode .icity-header,
body.dark-mode .mail-header,
body.dark-mode .music-header,
body.dark-mode .beautify-area,
body.dark-mode .friends-page,
body.dark-mode .mail-page,
body.dark-mode .music-area,
body.dark-mode .home-card,
body.dark-mode .card-title,
body.dark-mode .home-name,
body.dark-mode .label,
body.dark-mode .desc,
body.dark-mode .chat-input {
  background: #3a3a3e !important;
  color: #e8e8e8 !important;
}
body.dark-mode .icity-area {
  background: #1c1c1e !important;
}
body.dark-mode .icity-area::before {
  content: none;
}
#icityTaProfileBack {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #000 !important;
}
#icityTaProfileBack svg {
  stroke: #000 !important;
}
body.dark-mode .friends-header {
  background: linear-gradient(135deg, #2d2b44 0%, #3d2b3d 40%, #1f2e3d 100%) !important;
}
body.dark-mode .friends-header::before {
  background: radial-gradient(circle at 25% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 45%);
}
body.dark-mode .sticker-manager-overlay .manage-panel {
  background: #2c2c30 !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}
body.dark-mode .sticker-manager-overlay .manage-panel h3 {
  color: #e8e8e8 !important;
}
body.dark-mode .sticker-manager-overlay .manage-panel .actions .close-btn {
  background: #3a3a3e !important;
  color: #e8e8e8 !important;
}
body.dark-mode .tab-bar {
  background: #2a2a2e !important;
  border-color: #333 !important;
}
body.dark-mode .tab-item {
  color: #888 !important;
}
body.dark-mode .tab-item.active {
  color: #4f7cff !important;
}
body.dark-mode .home-bg {
  background-color: #1c1c20 !important;
  background-image: inherit !important;
}
body.dark-mode #phoneFrame {
  background-color: #1c1c20 !important;
  background-image: inherit !important;
}
body.dark-mode .number {
  color: #e8e8e8 !important;
}
.poke-text {
  font-size: 12px;
  color: #888;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(200, 200, 200, 0.35);
  backdrop-filter: blur(2px);
  max-width: 90%;
  text-align: center;
  display: inline-block;
}
body.dark-mode #dayLabel,
body.dark-mode #dayNumber,
body.dark-mode .friends-post,
body.dark-mode .friends-post-text,
body.dark-mode .poke-text {
  color: #aaa !important;
}
body.dark-mode .friends-post-time,
body.dark-mode #wbGroupFilter,
body.dark-mode #wbPickGroupModal > div,
body.dark-mode #wbSearchBar,
body.dark-mode #wordbankOverlay,
body.dark-mode .add-modal,
body.dark-mode .group-modal .modal-box,
body.dark-mode .wb-bottom,
body.dark-mode .wb-content,
body.dark-mode .wb-header,
body.dark-mode .wb-tabs,
body.dark-mode .wb-toolbar,
body.dark-mode .wb-word-item {
  background: #2a2a2e !important;
}
body.dark-mode .wb-word-text {
  color: #e8e8e8 !important;
}
body.dark-mode .wb-gf-btn {
  background: #2a2a2e !important;
  color: #aaa !important;
  border-color: #444 !important;
}
body.dark-mode .wb-gf-btn.active {
  background: #555 !important;
  color: #fff !important;
}
body.dark-mode #app-chat,
body.dark-mode #app-friends,
body.dark-mode #app-mail,
#friendsHeader {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
}
#musicBgLayer {
  inset: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
  height: 100% !important;
  filter: blur(18px);
  transform: scale(1.1);
}
#app-friends,
#app-music {
  overflow: hidden !important;
}
#app-friends .friends-container,
#app-music .music-container {
  overflow: hidden !important;
}
body.dark-mode #app-mail .content-header,
body.dark-mode #app-mail .content-body,
body.dark-mode .mail-tab {
  background: #2a2a2e !important;
  color: #aaa !important;
  border-color: #444 !important;
}
body.dark-mode #wbSearchBar input {
  background: #2a2a2e !important;
  color: #e8e8e8 !important;
}
body.dark-mode .bottom-row,
body.dark-mode .bottom-btn-container,
body.dark-mode .right-card,
body.dark-mode .app-item .icon-wrap {
  background: #2a2a2e !important;
}
body.dark-mode .app-item .app-label {
  color: #aaa !important;
}
body.dark-mode .bottom-btn .label {
  color: #aaa !important;
}
body.dark-mode .bottom-btn .icon-wrap {
  background: #2a2a2e !important;
}
body.dark-mode .right-card .label,
body.dark-mode .right-card .number,
body.dark-mode .right-card .unit {
  color: #e8e8e8 !important;
  text-shadow: none !important;
}
body.dark-mode .wbItem {
  background: #2a2a2e !important;
  color: #e8e8e8 !important;
  border-color: #333 !important;
}
#inAppNotifBanner {
  display: none;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: min(360px, 92vw);
  z-index: 999999999;
  cursor: pointer;
  animation: notifSlideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes notifSlideDown {
  from {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
#inAppNotifBanner .notif-inner {
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  width: auto;
  box-sizing: border-box;
}
.notif-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.notif-body {
  display: flex;
  flex: 1;
  min-width: 0;
}
.notif-text {
  flex: 1;
  min-width: 0;
}
.notif-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.notif-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.notif-time {
  font-size: 12px;
  color: #666;
  flex-shrink: 0;
  margin-left: 8px;
}
.notif-from {
  font-size: 12px;
  color: #555;
  margin-top: 2px;
}
.notif-msg {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-msg.full {
  white-space: normal;
}
.notif-just {
  display: none;
}
.notif-header {
  display: none;
}
#inAppNotifBanner .notif-header {
  display: none;
}
#inAppNotifBanner .notif-body {
  display: flex;
  flex: 1;
  min-width: 0;
}
#inAppNotifBanner .notif-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
#inAppNotifBanner .notif-text {
  flex: 1;
  min-width: 0;
  padding-left: 6px;
}
#inAppNotifBanner .notif-name {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
#inAppNotifBanner .notif-msg {
  font-size: 13px;
  color: #333;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-just {
  font-size: 11px;
  color: #999;
  flex-shrink: 0;
  margin-left: 4px;
}
#inAppNotifBanner .notif-msg.full {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  touch-action: manipulation;
}
input,
textarea,
select {
  font-size: 16px;
}
/* Ensure all page headers are sticky for always-accessible back button */
.wb-header,
.icity-header,
.settings-header,
.beautify-header,
.content-header,
.chat-top-bar,
.friends-header {
  position: relative !important;
  z-index: 1 !important;
}
.friends-header .back-btn {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  left: 12px !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Force reply button in chat input bar */
/* 统一跨设备布局：以 430px 手机宽度为基准居中，保证所有设备显示一致 */
html,
body {
  max-width: none;
  margin: 0 auto;
}
.phone-frame,
.content-area,
.settings-area,
.beautify-area,
.icity-area,
.wordbank-overlay,
.call-mini-window,
#app-music {
  max-width: none;
  left: 0;
  right: 0;
  margin: 0 auto;
}
.call-fullscreen {
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  max-width: none;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

#__akiniDiag {
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 4px !important;
  max-width: calc(100% - 16px) !important;
  width: calc(100% - 16px) !important;
}
/* === Akini 自定义：应用图标更换 / 模糊滑块 === */
.akini-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin-top: 4px;
}
.akini-icon-grid .akini-icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.akini-icon-grid .akini-icon-cell:active {
  background: #f5f5f5;
}
.akini-icon-grid .akini-icon-cell.active {
  border-color: #4f7cff;
  background: #f0f5ff;
}
.akini-icon-grid .akini-icon-cell .akini-icon-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-size: 22px;
  color: #666;
}
.akini-icon-grid .akini-icon-cell .akini-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0 !important;
}
.akini-icon-grid .akini-icon-cell .akini-icon-name {
  font-size: 11px;
  color: #666;
  text-align: center;
  line-height: 1.2;
}
.akini-icon-preview {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-size: 26px;
  color: #666;
  flex-shrink: 0;
}
.akini-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0 !important;
}
.akini-range {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin-top: 4px;
}
.akini-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4f7cff;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.akini-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4f7cff;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.akini-slider-value {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #4f7cff;
  flex-shrink: 0;
}
body.dark-mode .akini-icon-grid .akini-icon-cell:active {
  background: #3a3a3e !important;
}
body.dark-mode .akini-icon-grid .akini-icon-cell.active {
  background: rgba(79, 124, 255, 0.15) !important;
  border-color: #4f7cff !important;
}
body.dark-mode .akini-icon-grid .akini-icon-cell .akini-icon-name {
  color: #aaa !important;
}
body.dark-mode .akini-icon-grid .akini-icon-cell .akini-icon-thumb,
body.dark-mode .akini-icon-preview {
  background: #2a2a2e !important;
  border-color: #444 !important;
  color: #aaa !important;
}
body.dark-mode .akini-range {
  background: #444 !important;
}
body.dark-mode .akini-slider-value {
  color: #4f7cff !important;
}
#app-friends #friendsBody {
  background: #fff !important;
}
#app-friends #friendsBody #postList .post-item {
  background: #fff !important;
  border-radius: 0 !important;
  padding: 14px 16px !important;
  border: none !important;
  border-bottom: 1px solid #e5e5e5 !important;
  margin: 0 !important;
}
#app-friends #friendsBody #postList .post-item:last-child {
  border-bottom: none !important;
}
#friendsHeader {
  width: 100% !important;
  box-sizing: border-box !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#app-music {
  overflow: auto !important;
}
#app-music .music-container {
  overflow: auto !important;
}
.chat-input-bar {
  position: relative !important;
}
.chat-input-bar body.dark-mode .chat-top-bar {
  background: rgba(42, 42, 46, 0.92) !important;
}
/* v20260821o: 移除 padding-top:0 覆盖，恢复各页面固定顶栏所需的顶部留白，避免内容被顶栏遮挡导致界面变长 */
.akini-mic-btn {
  transition: all 0.15s !important;
}
.akini-mic-btn:active {
  opacity: 0.6;
  transform: scale(0.92) !important;
}
.akini-mic-btn:hover {
  color: #07c160;
}
.input-wrap {
  display: flex !important;
  align-items: center !important;
}
.input-wrap input {
  flex: 1 !important;
  min-width: 0 !important;
}
.akini-mic-btn {
  flex-shrink: 0 !important;
}
@keyframes akikiniTextScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.akini-scroll-text {
  display: inline-block;
  white-space: nowrap;
  animation: akikiniTextScroll 30s linear infinite;
}
.akini-scroll-wrap {
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}
.shop-order-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  position: relative;
}
.shop-order-icon {
  font-size: 28px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.shop-order-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-order-main {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 70px;
}
.shop-order-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.shop-order-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-order-price {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ff3b30;
}
.shop-order-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #888;
} /* 固定顶部栏：除朋友圈外所有页面 */
.chat-top-bar,
.chat-list-header,
.content-header,
.settings-header,
.beautify-header,
.icity-header,
.create-group-header,
#musicContactPicker > div > div:first-child {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000 !important;
}
.chat-list-body,
#contactsListBody {
  padding-top: 50px !important;
}
.settings-body,
.beautify-body {
  padding-top: 65px !important; /* v20260830bc: 设置/美化内容再下移 3px */
}
#icityArea > div:nth-child(2) {
  padding-top: 50px !important;
}
#musicContactPicker > div {
  padding-top: 54px !important;
}
.content-body {
  padding-top: 60px !important;
}

/* === v20260821d: 彻底禁止界面缩放，防止 iOS 聚焦输入框自动放大且无法还原 === */
html,
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100% !important;
  height: 100dvh !important;
  width: 100% !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
}
input,
textarea,
select,
#createGroupNameInput,
#surveyTitleInput,
#bubbleCssInput,
#selectChatPreviewContact,
#previewBubbleLeftInput,
#previewBubbleRightInput {
  font-size: 16px !important;
}
input,
textarea,
select,
button,
a,
.msg-avatar,
.post-avatar,
[onclick] {
  touch-action: manipulation;
}
* {
  -webkit-tap-highlight-color: transparent;
}

/* === 创建群聊页面顶部防遮挡与全屏适配 === */
#app-create-group {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  z-index: 1000 !important;
  background: #f6f6f6 !important;
  box-sizing: border-box !important;
}
.create-group-wrapper {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  background: #f6f6f6 !important;
}
.create-group-header {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
  background: #fff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  z-index: 10 !important;
}
.create-group-body {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 24px)) !important;
  box-sizing: border-box !important;
}



/* === 统一返回按钮样式：透明无底图、大号箭头、覆盖所有内联样式 === */
.back-btn,
button.back-btn,
.back-btn[type="button"],
button.back-btn[type="button"] {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #333 !important;
  border: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  font-size: 24px !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

/* 创建群聊页面顶部内容被 header 遮挡，统一增大上内边距 */
.create-group-body {
  padding-top: 50px !important;
}

.music-player-section {
  margin: 8px 16px 12px;
  flex-shrink: 0;
}
.music-player-card {
  width: 100%;
  border-radius: 24px;
  background: linear-gradient(145deg, #4a4a4a, #1a1a1a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@keyframes disc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.music-player-disc {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    #111 0,
    #111 3px,
    #222 4px,
    #222 5px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 8px #1a1a1a;
  animation: disc-spin 10s linear infinite;
  animation-play-state: paused;
}
.music-player-cover {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #333;
}
.music-player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.music-player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  padding: 2px 0;
}
.music-player-meta {
  min-width: 0;
}
.music-player-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  outline: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-player-artist {
  font-size: 13px;
  color: #aaa;
  outline: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-player-controls {
  display: flex;
  align-items: center;
  gap: 22px;
}
.music-player-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.15s, transform 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.music-player-btn:active {
  opacity: 1;
  transform: scale(0.92);
}
.music-player-btn svg {
  display: block;
}


/* 网易云播放器新版 */
.music-player-card {
  padding: 12px !important;
  gap: 10px !important;
  justify-content: space-between !important;
}
.music-player-left {
  flex-shrink: 0;
}
.music-player-disc {
  width: 68px !important;
  height: 68px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 0 0 6px #1a1a1a !important;
}
.music-player-cover {
  width: 44px !important;
  height: 44px !important;
}
.music-player-info {
  align-self: stretch !important;
  align-items: flex-start !important;
  padding: 0 !important;
  width: 100%;
  min-width: 0;
}
.music-player-meta {
  width: 100%;
  min-width: 0;
}
.music-player-title {
  font-size: 15px !important;
  margin-bottom: 2px !important;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-player-artist {
  font-size: 12px !important;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-player-controls {
  gap: 6px !important;
  justify-content: flex-start !important;
  width: 100% !important;
}
.music-player-btn svg {
  width: 18px !important;
  height: 18px !important;
}
.music-player-play-btn svg {
  width: 20px !important;
  height: 20px !important;
}
.music-player-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 90px;
  cursor: pointer;
  padding: 4px 0;
  gap: 5px;
}
.music-player-avatars {
  display: flex;
  align-items: center;
  gap: 6px;
}
.music-player-avatars.swapped {
  flex-direction: row-reverse;
}
.music-player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.25);
}
.music-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.music-player-ecg {
  width: 42px;
  height: 28px;
  color: rgba(255,255,255,0.85);
}
.music-player-ecg svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.music-player-ecg path {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}
.music-player-status {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.music-player-time {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* player-only fixes */
.music-player-card {
  padding: 12px !important;
  gap: 8px !important;
}
.music-player-disc {
  width: 84px !important;
  height: 84px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 0 0 6px #1a1a1a !important;
}
.music-player-cover {
  width: 60px !important;
  height: 60px !important;
}
.music-player-right {
  min-width: 100px !important;
  gap: 5px !important;
  padding: 2px 0 !important;
  position: relative !important;
}
.music-player-right::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.music-player-avatars {
  width: auto !important;
  height: auto !important;
  gap: 3px !important;
}
.music-player-avatar {
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
}
.music-player-ecg {
  width: 48px !important;
  height: 24px !important;
}
.music-player-ecg svg {
  overflow: visible !important;
}
.music-player-ecg path {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}
.music-player-status {
  font-size: 11px !important;
}
.music-player-time {
  font-size: 10px !important;
}
.music-player-controls {
  gap: 6px !important;
}
.music-player-btn {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  color: #d0d0d0 !important;
}
.music-player-btn svg {
  width: 18px !important;
  height: 18px !important;
}
.music-player-play-btn {
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  border: none !important;
  color: #d0d0d0 !important;
  box-shadow: none !important;
}
.music-player-play-btn svg {
  width: 20px !important;
  height: 20px !important;
}
.music-player-play-btn .pause-icon {
  width: 20px !important;
  height: 20px !important;
}
.music-player-play-btn.playing {
  color: #d0d0d0 !important;
}
.music-player-brand {
  text-align: center;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* v20260828u 播放器与首页美化 */
.music-player-card {
  background: linear-gradient(145deg, #3a3a40, #1c1c20) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  border-radius: 24px !important;
}
.music-player-disc {
  background: radial-gradient(circle at 30% 30%, #2d2d33, #111113) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 0 0 5px #151518, inset 0 0 0 6px rgba(255,255,255,0.08) !important;
}
.music-player-avatar {
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}
.music-player-ecg {
  color: rgba(255,255,255,0.55) !important;
}
.music-player-controls {
  gap: 6px !important;
  justify-content: center !important;
}
.music-player-btn {
  color: rgba(255,255,255,0.85) !important;
}
.music-player-play-btn {
  color: #fff !important;
}
.music-player-right::before {
  left: -14px !important;
  background: rgba(255,255,255,0.12) !important;
}
.music-player-brand {
  color: #888 !important;
  text-shadow: none !important;
}
/* v20260830ay: 首页红色圈起的应用区域可上下滚动（保留横向隐藏） */
.middle-row {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* v20260828v 播放器与首页布局微调 */
.music-player-controls {
  gap: 2px !important;
  justify-content: flex-start !important;
  padding-left: 0 !important;
}
.music-player-btn {
  padding: 2px !important;
  width: 24px !important;
  height: 24px !important;
}
.music-player-btn svg {
  width: 16px !important;
  height: 16px !important;
}
.music-player-play-btn {
  width: 28px !important;
  height: 28px !important;
}
.music-player-play-btn svg {
  width: 18px !important;
  height: 18px !important;
}
.music-player-ecg {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  width: 42px !important;
}
.music-player-avatars {
  gap: 2px !important;
  justify-content: center !important;
}
.music-player-right::before {
  left: -12px !important;
}
/* v20260828aj 播放器心电图与聊天预览修复 */
.music-player-ecg {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  width: 42px !important;
  overflow: hidden !important;
}
.music-player-ecg img {
  mix-blend-mode: screen !important;
  opacity: 1 !important;
  filter: none !important;
}
.music-player-controls {
  gap: 2px !important;
  justify-content: flex-start !important;
  align-self: flex-start !important;
  padding-left: 0 !important;
  margin-left: -1px !important;
  width: auto !important;
  transform: translateY(2px) !important;
}
.music-player-btn {
  padding: 2px !important;
  width: 28px !important;
  height: 28px !important;
  color: rgba(255,255,255,0.85) !important;
}
.music-player-btn svg {
  width: 20px !important;
  height: 20px !important;
}
.music-player-play-btn {
  width: 32px !important;
  height: 32px !important;
  color: #fff !important;
}
.music-player-play-btn svg {
  width: 22px !important;
  height: 22px !important;
}
.music-player-left {
  justify-content: flex-start !important;
  gap: 8px !important;
}
.music-player-info {
  align-items: flex-start !important;
  padding: 0 !important;
}
.settings-body,
.beautify-body,
.icity-body,
.create-group-body {
  padding-top: 66px !important;
}
#app-create-group .create-group-body,
#app-create-group.create-group-wrapper .create-group-body {
  padding-top: calc(16px + max(12px, env(safe-area-inset-top, 12px)) + 44px) !important;
}
.settings-header,
.beautify-header,
.icity-header,
.create-group-header {
  padding-top: max(12px, env(safe-area-inset-top, 12px)) !important;
  min-height: 56px !important;
}

/* 导入入口和菜单按钮始终可见，避免登录后消失 */
#musicImportRow,
#musicMenuBtn,
#musicImportBtn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* v20260831: 首页播放器不再显示一起听面板，保持简洁 */
.music-player-card {
  justify-content: flex-start !important;
}
.music-player-info {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}
/* 恢复首页播放器一起听面板显示，不再隐藏 */

.settings-input-full {
  width: 100%;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  outline: 0;
  background: #fafafa;
  box-sizing: border-box;
}
.settings-input-full:focus {
  border-color: #4f7cff;
}

