
/* ======================================================== */
/* 美化中心 (Beautify Studio) - 高定极简冷灰样式集         */
/* ======================================================== */

:root {
  --icon-radius: 12px;
    --icon-size: 60px;
}

.app-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #8e8e93;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* 进入二级菜单时隐藏主顶栏大标题 */
.app-page[data-page="beautify"].in-sub-page .app-header {
  display: none !important;
}

.beautify-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 隐藏主列表与二级页面的滚动条 */
.beautify-main-view::-webkit-scrollbar,
.beautify-sub-view::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ======================================================== */
/* 1. 一级菜单列表                                          */
/* ======================================================== */
.beautify-main-view {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 8px 16px calc(12px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.beautify-main-view.slide-left {
  transform: translateX(-30%);
  opacity: 0.4;
  pointer-events: none;
}

.app-page[data-page="beautify"] .app-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.beautify-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f8f8fa;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.beautify-menu-item:active {
  background-color: #f0f0f4;
  transform: scale(0.985);
}

.beautify-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8f8fa;
  color: #A1A1A9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.beautify-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beautify-menu-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.beautify-menu-title {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  letter-spacing: 0.2px;
}
.beautify-menu-desc {
  font-size: 11.5px;
  color: #8e8e93;
}

.beautify-arrow {
  width: 16px;
  height: 16px;
  stroke: #c7c7cc;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ======================================================== */
/* 2. 二级详情页面骨架                                       */
/* ======================================================== */
.beautify-sub-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: calc(8px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.25s ease;
  z-index: 5;
  box-shadow: none !important;
  will-change: transform;
  box-sizing: border-box;
}
.beautify-sub-view.active {
  visibility: visible;
  transform: translateX(0);
}

.beautify-sub-header {
  display: flex;
  align-items: center;
  padding: 2px 0 6px;
  flex-shrink: 0;
}

.beautify-sub-back {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 600;
  color: #636366;
  cursor: pointer;
  padding: 4px 0;
}
.beautify-sub-back svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.beautify-sub-back:active {
  opacity: 0.5;
}

.beautify-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.beautify-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.beautify-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.beautify-card-title::before {
  content: '';
  width: 3.5px;
  height: 13px;
  background: #636366;
  border-radius: 2px;
}

.beautify-card-desc {
  font-size: 11.5px;
  color: #8e8e93;
  line-height: 1.45;
  padding-left: 9.5px;
}

/* PWA 图标网格 */
.pwa-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.pwa-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.pwa-icon-preview {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #e5e5ea;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pwa-icon-item.active .pwa-icon-preview {
  border-color: #8e8e93;
  box-shadow: 0 0 0 2px rgba(142, 142, 147, 0.25);
  transform: scale(1.03);
}
.pwa-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-svg-box {
  width: 100%;
  height: 100%;
  background-color: #88abda;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 300;
  user-select: none;
}

.pwa-snowflake-container {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pwa-snowflake-main {
  font-size: 42px;
  color: rgba(120, 165, 215, 0.65);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  filter: drop-shadow(0 0 4px rgba(120, 165, 215, 0.2));
}

.pwa-custom-placeholder {
  width: 100%;
  height: 100%;
  background: #f8f9fb;
  border: 1.5px dashed #c7c7cc;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
}
.pwa-custom-placeholder svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pwa-icon-name {
  font-size: 11px;
  color: #3a3a3c;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.pwa-tip-box {
  background: #f8f8fa;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  color: #636366;
  line-height: 1.5;
}

/* 背景双列卡片 */
.bg-dual-row {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

.bg-preview-card {
  flex: 1;
  min-width: 0;
  height: 290px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-screen-preview {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  border: 1.2px solid #d1d1d6;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.bg-screen-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  background-color: #f8f8fa;
  transition: background 0.25s ease;
}

.bg-preview-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.bg-preview-top-bar {
  width: 52%;
  height: 2.5px;
  border-radius: 1.5px;
  background: rgba(142, 142, 147, 0.65);
}

.bg-preview-panels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.bg-preview-panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03), inset 0 0.5px 1px rgba(255, 255, 255, 0.9);
}

.bg-preview-panel.tall { height: 48px; }
.bg-preview-panel.short { height: 28px; }

.bg-control-card {
  flex: 1;
  min-width: 0;
  height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
}

.bg-control-card .beautify-card-header { gap: 4px; }
.bg-control-card .beautify-card-desc {
  padding-left: 0;
  font-size: 11px;
  line-height: 1.4;
}

/* 调色盘 */
.bg-color-palette-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 4px;
}

.bg-color-mode-tabs {
  display: flex;
  background: #f2f2f7;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.bg-color-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 4px 0;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #8e8e93;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bg-color-tab-btn.active {
  background: #ffffff;
  color: #1c1c1e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.bg-color-inputs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0;
}

.bg-color-picker-box {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bg-color-picker-box input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.color-dot-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px #d1d1d6;
  pointer-events: none;
  transition: background-color 0.15s ease;
}

.bg-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.beautify-action-btn {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  background: #2c2c2e;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.beautify-action-btn:active {
  transform: scale(0.98);
  opacity: 0.85;
}
.beautify-action-btn.secondary {
  background: #f8f8fa;
  color: #48484a;
  border: 1px solid #d1d1d6;
}

/* 历史背景相册 */
.bg-history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.bg-history-item {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f2f7;
  border: 1px solid #e5e5ea;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.bg-history-item:active {
  transform: scale(0.95);
  border-color: #8e8e93;
}
.bg-history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-history-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11.5px;
  color: #c7c7cc;
  padding: 16px 0;
}

/* ======================================================== */
/* 3. 组件 UI 视口与单行紧凑控制                             */
/* ======================================================== */

.comp-preview-viewport {
  width: 100%;
  position: relative;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.comp-preview-viewport.for-card {
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

.comp-preview-viewport.for-msg,
.comp-preview-viewport.for-couple,
.comp-preview-viewport.for-tabbar {
  position: relative;
  background: #f4f5f8;
  border-radius: 14px;
  border: 1px solid #e5e5ea;
  overflow: hidden;
}

.comp-preview-viewport.for-msg {
  padding: 28px 16px 22px;
}

.comp-preview-viewport.for-couple {
  padding: 20px 16px;
}

.comp-preview-viewport.for-tabbar {
  padding: 18px 16px;
  min-height: 76px;
  align-items: center;
}

.comp-msg-bg-layer,
.comp-couple-bg-layer,
.comp-tabbar-bg-layer {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.comp-preview-scaler {
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.comp-tabbar-preview-clone {
  position: relative;
  z-index: 1;
  pointer-events: none;
  width: 100%;
}

.comp-preview-scaler *,
.comp-tabbar-preview-clone * {
  pointer-events: none !important;
  cursor: default !important;
}

.comp-preview-scaler .edit-btn {
  display: none !important;
}

.comp-preview-scaler [contenteditable] {
  caret-color: transparent !important;
  outline: none !important;
}

.comp-preview-scaler .profile-card,
.comp-preview-scaler .message-card,
.comp-preview-scaler .couple-section {
  width: 100% !important;
}

.comp-preview-scaler .profile-card {
  aspect-ratio: 16 / 11.5;
}

.couple-date-card {
  max-width: 175px !important;
  margin: 0 auto;
}

/* 单行强约束透明排布 */
.card-clean-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e5ea;
  box-sizing: border-box;
}

.card-clean-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  background: transparent !important;
  padding: 0 !important;
}

.card-clean-item .beautify-setting-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #2c2c2e;
  white-space: nowrap;
}

/* 纯净色块 */
.pure-color-picker {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
}

.pure-color-picker input[type="color"] {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
}

.pure-upload-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #2c2c2e;
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pure-upload-btn:active {
  opacity: 0.8;
  transform: scale(0.96);
}

.pure-reset-btn {
  border: none;
  background: #f2f2f7;
  color: #636366;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  margin-left: 6px;
  flex-shrink: 0;
}
.pure-reset-btn:active {
  background: #e5e5ea;
}

/* ======================================================== */
/* 4. 内部图标专属：2/3 桌面超大视口 + 8 图标自选照片       */
/* ======================================================== */

/* 2/3 页面超大手机视口卡片 */
.icons-preview-card {
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 520px;
  background: #eef1f5;
  border-radius: 20px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e6eb;
  position: relative;
  overflow: hidden;
}

.icons-phone-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 330px;
  border-radius: 26px;
  border: 2px solid #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #ffffff;
}

.icons-mockup-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.icons-mockup-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 375px;
  height: 650px;
  transform-origin: center center;
  pointer-events: none;
  z-index: 1;
}

/* 桌面自定义图标图片（CSS 变量统一接管圆角） */
.couple-icon-circle .custom-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  position: relative;
  z-index: 2;
}

/* PNG透明立绘：完整显示不裁切 */
.couple-icon-circle.has-png-icon .custom-icon-img {
  object-fit: contain;
}

/* 底栏自定义图标图片 */
.tab-icon .custom-icon-img {
  width: var(--tabbar-icon-size, 48px);
  height: var(--tabbar-icon-size, 48px);
  object-fit: cover;
  border-radius: var(--tabbar-icon-radius, 10px);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* 底栏PNG立绘：完整显示不裁切不变形 */
.tab-icon.has-png-icon .custom-icon-img {
  object-fit: contain;
  border-radius: 0;
}

/* 底栏图标容器在有自定义图片时自动适配 */
.tab-icon.has-custom-icon {
  position: relative;
  height: var(--tabbar-icon-box-size, 50px);
  width: var(--tabbar-icon-box-size, 50px);
  overflow: hidden;
  background: transparent !important;
}

/* 底栏PNG透明立绘：突破容器裁切 */
.tab-icon.has-custom-icon.has-png-icon {
  overflow: visible !important;
}

/* 8 图标相册自选网格流 */
.internal-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  padding: 4px 0;
}

.internal-icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.internal-icon-grid-item:active {
  opacity: 0.65;
}

.internal-icon-slot {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #d1d1d6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.internal-icon-grid-item span {
  font-size: 11px;
  color: #3a3a3c;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* 一键恢复所有默认图标按钮 */
.all-icons-reset-action-btn {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  background: #f8f8fa;
  color: #1c1c1e;
  border: 1px solid #d1d1d6;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 6px;
  font-family: inherit;
}
.all-icons-reset-action-btn:active {
  background: #e5e5ea;
  transform: scale(0.98);
}

/* ======================================================== */
/* 5. 通用控件行与纯白滑块                                   */
/* ======================================================== */
.beautify-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e5ea;
}
.beautify-setting-row:last-child {
  border-bottom: none;
}
.beautify-setting-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #2c2c2e;
}
.beautify-pills-group {
  display: flex;
  gap: 6px;
}
.beautify-pill-btn {
  padding: 5px 12px;
  border-radius: 8px;
  background: #f2f2f7;
  border: 1px solid #e5e5ea;
  font-size: 11px;
  font-weight: 600;
  color: #636366;
  cursor: pointer;
}
.beautify-pill-btn.active {
  background: #2c2c2e;
  border-color: #2c2c2e;
  color: #ffffff;
}

/* 统一纯白质感圆环滑块 */
.beautify-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 55%;
}
.beautify-slider-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: #e5e5ea;
  border-radius: 2px;
  outline: none;
}
.beautify-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.beautify-slider-val {
  font-size: 11px;
  color: #636366;
  width: 32px;
  text-align: right;
  font-weight: 600;
}

/* 外观模式 */
.theme-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.theme-box-card {
  padding: 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.theme-box-card.light {
  background: #f2f2f7;
  color: #1c1c1e;
  border-color: #e5e5ea;
}
.theme-box-card.dark {
  background: #1c1e24;
  color: #f0f4f8;
  border-color: #2c2c2e;
}
.theme-box-card.active {
  border-color: #8e8e93;
  box-shadow: 0 0 0 2px rgba(142, 142, 147, 0.25);
}
.theme-box-card span {
  font-size: 12px;
  font-weight: 700;
}

/* 快捷操作说明 */
.guide-main-card { gap: 16px; }
.guide-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f8f8fa;
  border-radius: 12px;
}

.guide-item-num {
  font-size: 14px;
  font-weight: 800;
  color: #8e8e93;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  letter-spacing: 0.5px;
  padding-top: 1px;
}

.guide-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1c1c1e;
  letter-spacing: 0.3px;
}

.guide-item-text {
  font-size: 13px;
  color: #636366;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* ======================================================== */
/* 全局暗黑深色适配                                          */
/* ======================================================== */
body.theme-dark {
  background: #121316 !important;
  color: #f2f2f7 !important;
}
body.theme-dark .app-page,
body.theme-dark .beautify-sub-view {
  background: #121316 !important;
}
body.theme-dark .beautify-card {
  background: #1c1d22 !important;
  border-color: #2c2d34 !important;
}
body.theme-dark .beautify-menu-title,
body.theme-dark .beautify-card-title,
body.theme-dark .beautify-sub-back {
  color: #ffffff !important;
}
body.theme-dark .beautify-menu-item {
  background: #1c1d22 !important;
  border-color: #2c2d34 !important;
}
body.theme-dark .beautify-menu-icon {
  background: #282a30 !important;
  color: #aeaeb2 !important;
}
body.theme-dark .beautify-pill-btn {
  background: #282a30 !important;
  border-color: #34373f !important;
  color: #aeaeb2 !important;
}
body.theme-dark .beautify-pill-btn.active {
  background: #ffffff !important;
  color: #121316 !important;
}
body.theme-dark .bg-color-mode-tabs {
  background: #24262c !important;
}
body.theme-dark .bg-color-tab-btn.active {
  background: #34373f !important;
  color: #ffffff !important;
}
body.theme-dark .color-dot-preview {
  box-shadow: 0 0 0 1px #48484a !important;
}
body.theme-dark .pwa-tip-box {
  background: #24262c !important;
  color: #8e8e93 !important;
}
body.theme-dark .pwa-icon-item.active .pwa-icon-preview {
  border-color: #aeaeb2;
  box-shadow: 0 0 0 2px rgba(174, 174, 178, 0.25);
}
body.theme-dark .bg-screen-preview {
  border-color: #48484a;
}
body.theme-dark .bg-preview-top-bar {
  background: rgba(174, 174, 178, 0.6);
}
body.theme-dark .bg-preview-panel {
  background: rgba(28, 29, 34, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2), inset 0 0.5px 1px rgba(255, 255, 255, 0.1);
}

body.theme-dark .comp-preview-viewport,
body.theme-dark .icons-preview-card {
  background: #24262c !important;
  border-color: #2c2d34 !important;
}

body.theme-dark .icons-phone-mockup {
  border-color: #34373f;
}

body.theme-dark .internal-icon-slot {
  background: #1c1d22 !important;
  border-color: #34373f !important;
}
body.theme-dark .internal-icon-grid-item span {
  color: #aeaeb2 !important;
}

body.theme-dark .all-icons-reset-action-btn {
  background: #24262c !important;
  border-color: #34373f !important;
  color: #ffffff !important;
}

body.theme-dark .guide-item {
  background: #24262c !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}
body.theme-dark .guide-item-title {
  color: #ffffff !important;
}
body.theme-dark .guide-item-text {
  color: #8e8e93 !important;
}

body.corner-sharp .profile-card,
body.corner-sharp .message-card,
body.corner-sharp .couple-date-card {
  border-radius: 6px !important;
}
body.corner-soft .profile-card,
body.corner-soft .message-card,
body.corner-soft .couple-date-card {
  border-radius: 26px !important;
}

.global-tint-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.bg-angle-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px 4px;
  box-sizing: border-box;
}

.bg-angle-slider-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 3.5px;
  background: #e5e5ea;
  border-radius: 2px;
  outline: none;
}

.bg-angle-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.bg-angle-val {
  font-size: 10.5px;
  color: #636366;
  width: 28px;
  text-align: right;
  font-weight: 600;
}
