* {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  width: 100%;
  height: 100%;
}

body {
  overflow-x: hidden;
  font-size: 16px;
}

uni-app,
uni-page,
uni-page-wrapper,
uni-page-body {
  display: block;
  box-sizing: border-box;
  width: 100%;
}

uni-page-wrapper {
  position: relative;
}

#app,
uni-app,
uni-page,
uni-page-wrapper {
  height: 100%;
}

/* toast,modal,actionSheet,picker,layout */
.uni-mask {
  position: fixed;
  z-index: 999;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* toast,modal,actionSheet,picker */
.uni-fade-enter-active,
.uni-fade-leave-active {
  transition-duration: 0.25s;
  transition-property: opacity;
  transition-timing-function: ease;
}

.uni-fade-enter-from,
.uni-fade-leave-active {
  opacity: 0;
}

.uni-loading,
uni-button[loading]:before {
  background-color: transparent;
  background-image: url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=');
  background-repeat: no-repeat;
}

.uni-loading {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  animation: uni-loading 1s steps(12, end) infinite;
  background-size: 100%;
}

@keyframes uni-loading {
  0% {
    transform: rotate3d(0, 0, 1, 0deg);
  }

  100% {
    transform: rotate3d(0, 0, 1, 360deg);
  }
}

html {
  /* --UI-BG-0: #ededed; */
  --primary-color: #007aff;
  --UI-BG: #fff;
  --UI-BG-1: #f7f7f7;
  --UI-BG-2: #fff;
  --UI-BG-3: #f7f7f7;
  --UI-BG-4: #4c4c4c;
  --UI-BG-5: #fff;
  --UI-FG: #000;
  --UI-FG-0: rgba(0, 0, 0, 0.9);
  --UI-FG-HALF: rgba(0, 0, 0, 0.9);
  --UI-FG-1: rgba(0, 0, 0, 0.5);
  --UI-FG-2: rgba(0, 0, 0, 0.3);
  --UI-FG-3: rgba(0, 0, 0, 0.1);
}

uni-page[data-type] uni-page-body {
  background-color: transparent;
}
body::after {
  position: fixed;
  content: '';
  left: -1000px;
  top: -1000px;
  animation: shadow-preload 0.1s;
  animation-delay: 3s;
}

@keyframes shadow-preload {
  0% {
    background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
  }
  100% {
    background-image: url(https://cdn.dcloud.net.cn/img/shadow-grey.png);
  }
}
.uni-async-error {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  color: #999;
  padding: 100px 10px;
  text-align: center;
}
.uni-async-loading {
  box-sizing: border-box;
  width: 100%;
  padding: 50px;
  text-align: center;
}

.uni-async-loading .uni-loading {
  width: 30px;
  height: 30px;
}
uni-tabbar {
  display: block;
  box-sizing: border-box;
  width: 100%;
  z-index: 998;
}

.uni-tabbar {
  display: flex;
  z-index: 998;
  box-sizing: border-box;
}

.uni-tabbar-top,
.uni-tabbar-bottom,
.uni-tabbar-top .uni-tabbar,
.uni-tabbar-bottom .uni-tabbar {
  position: fixed;
  left: var(--window-left);
  right: var(--window-right);
}

.uni-app--showlayout + .uni-tabbar-top,
.uni-app--showlayout + .uni-tabbar-bottom,
.uni-app--showlayout + .uni-tabbar-top .uni-tabbar,
.uni-app--showlayout + .uni-tabbar-bottom .uni-tabbar {
  left: var(--window-margin);
  right: var(--window-margin);
}

.uni-tabbar-bottom .uni-tabbar {
  bottom: 0;
  padding-bottom: 0;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

.uni-tabbar ~ .uni-placeholder {
  width: 100%;
  margin-bottom: 0;
  margin-bottom: constant(safe-area-inset-bottom);
  margin-bottom: env(safe-area-inset-bottom);
}

.uni-tabbar * {
  box-sizing: border-box;
}

.uni-tabbar__item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex: 1;
  font-size: 0;
  text-align: center;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.uni-tabbar__bd {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.uni-tabbar__icon {
  position: relative;
  display: inline-block;
  margin-top: 5px;
}

.uni-tabbar__icon.uni-tabbar__icon__diff {
  margin-top: 0px;
  width: 34px;
  height: 34px;
}

.uni-tabbar__icon img {
  width: 100%;
  height: 100%;
}

.uni-tabbar__iconfont {
  font-family: 'UniTabbarIconFont';
}

.uni-tabbar__label {
  position: relative;
  text-align: center;
  font-size: 10px;
}

.uni-tabbar-border {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  transform: scaleY(0.5);
}

.uni-tabbar__reddot {
  position: absolute;
  top: 2px;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #f43530;
  color: #ffffff;
  transform: translate(40%, 0%);
}

.uni-tabbar__badge {
  width: auto;
  height: 16px;
  line-height: 16px;
  border-radius: 16px;
  min-width: 16px;
  padding: 0 2px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.uni-tabbar__mid {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  background-size: 100% 100%;
}

.uni-app--showtabbar uni-page-wrapper {
  display: block;
  height: calc(100% - var(--tab-bar-height));
  height: calc(100% - var(--tab-bar-height) - constant(safe-area-inset-bottom));
  height: calc(100% - var(--tab-bar-height) - env(safe-area-inset-bottom));
}
uni-page[data-type] uni-page-wrapper {
  height: 100%;
}
.uni-app--showtabbar uni-page-wrapper::after {
  content: '';
  display: block;
  width: 100%;
  height: var(--tab-bar-height);
  height: calc(var(--tab-bar-height) + constant(safe-area-inset-bottom));
  height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
}
.uni-app--showtabbar
  uni-page-head[uni-page-head-type='default']
  ~ uni-page-wrapper {
  height: calc(100% - 44px - var(--tab-bar-height));
  height: calc(
    100% - 44px - constant(safe-area-inset-top) - var(--tab-bar-height) -
      constant(safe-area-inset-bottom)
  );
  height: calc(
    100% - 44px - env(safe-area-inset-top) - var(--tab-bar-height) -
      env(safe-area-inset-bottom)
  );
}
/**
 * 星盘通 — 品牌 Token (单一来源)
 * 国内 H5/小程序 Ephemeris 浅色主题
 */
/* 品牌色 — 铜绿墨线 */
/* 背景色 */
/* 文字色 */
/* 边框色 */
/* 功能色 */
/* 行星色 */
/**
 * uni-app 内置样式变量 — 引用品牌 Token
 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/**
 * 星盘通 — SCSS Mixins
 */
/* 页面纸面背景：恒定 bg-base 平铺（对齐 web body #f1eee2）。
   历史上铺 --bg-gradient，但渐变随内容高度拉伸后偏黄段 #e9e5d6 占满
   滚动视野，是国内版看起来「泛黄」的主因，故改平铺；mixin 名保留避免大改。 */
/* FortuneZone 光晕背景 */
/* 铜绿墨线光晕椭圆 */
/* 卡片基础样式 */
/* FortuneZone 卡片 — 低噪音天文历纸面 */
@keyframes fortune-breathe {
0%, 100% {
    background-size: 100% 100%;
    border-color: var(--accent-zone-border);
}
50% {
    background-size: 135% 135%;
    border-color: var(--border-accent-strong);
}
}
/* 主按钮 */
/* 次级按钮 */
/* 按压反馈 */
/* 展示层字体 */
/* 功能层字体 */
/* 文字截断 */
/* 安全区域底部 */
/* 底部固定 CTA */
/* 菜单列表组 */
/* 菜单列表项 */
/* 图标圆形容器 */
/* 菜单图标容器 */
/* Tab 筛选栏 */
/* Tab 筛选项 */
/* Tab 筛选文字 */
/* 空状态 */
/* 空状态文字 */
/* 加载更多 */
/* 加载更多文字 */
/* 骨架屏动画 */
@keyframes skeleton-pulse {
0% {
    background-position: -200% 0;
}
100% {
    background-position: 200% 0;
}
}
/**
 * 星盘通国内 H5/小程序 — 运行时 Design Tokens
 *
 * Source of truth:
 * - /Users/andy/codes/xingpantong-web/shared/styles/tokens.css
 * - /Users/andy/codes/xingpantong-web/design/交付包-PC+H5（最新版）V2/
 *
 * 默认主题为 Ephemeris：骨白历书纸 + 铜绿墨线的专业占星工具台。
 * 保留原变量名，便于现有页面直接继承，不再延续旧的深紫星空/铜色氛围主题。
 */
uni-page-body,
body,
uni-page-body {
  color-scheme: light;
  /* ── 背景 ── */
  --mood-tier-1: #d6cfba;
  --mood-tier-2: #b5c3bb;
  --mood-tier-3: #8fa49b;
  --mood-tier-4: #4f7d72;
  --mood-tier-5: #1f5b52;
  --bg-base: #f1eee2;
  --bg-gradient: linear-gradient(180deg, #f5f2e8 0%, #f1eee2 45%, #e9e5d6 100%);
  --bg-card: rgba(28, 32, 30, 0.028);
  --bg-card-elevated: #f8f6ec;
  --bg-surface: rgba(28, 32, 30, 0.02);
  --bg-overlay: rgba(28, 32, 30, 0.012);
  --bg-skeleton-edge: rgba(28, 32, 30, 0.025);
  --bg-skeleton-mid: rgba(28, 32, 30, 0.065);
  --bg-fortune: radial-gradient(ellipse at center, rgba(31, 91, 82, 0.08) 0%, transparent 72%);
  --bg-glow: radial-gradient(ellipse at center, rgba(31, 91, 82, 0.1) 0%, transparent 62%);
  --bg-list-item: #f1eee2;
  /* ── 品牌色（铜绿墨线） ── */
  --accent: #1f5b52;
  --accent-dark: #184740;
  --accent-light: #2d766b;
  --accent-muted: rgba(31, 91, 82, 0.55);
  --accent-60: rgba(31, 91, 82, 0.65);
  --accent-glow: rgba(31, 91, 82, 0.14);
  --accent-icon-bg: #dfe7e2;
  --accent-zone-border: #c3cfc8;
  --accent-soft-bg: rgba(31, 91, 82, 0.06);
  --accent-emphasis-bg: rgba(31, 91, 82, 0.14);
  --accent-emphasis-border: rgba(31, 91, 82, 0.16);
  --accent-shadow: rgba(31, 91, 82, 0.14);
  --accent-shadow-strong: rgba(31, 91, 82, 0.2);
  --accent-deco: rgba(31, 91, 82, 0.05);
  --accent-selected: rgba(31, 91, 82, 0.08);
  --accent-gradient: linear-gradient(135deg, #236258, #184740);
  /* ── 文字 ── */
  --text-primary: #1c201e;
  --text-secondary: rgba(28, 32, 30, 0.72);
  --text-tertiary: rgba(28, 32, 30, 0.55);
  --text-caption: rgba(28, 32, 30, 0.45);
  --text-muted: #5c6360;
  --text-disabled: #868c88;
  --text-placeholder: rgba(28, 32, 30, 0.35);
  --text-inverse: #f5f2e8;
  --text-inverse-muted: rgba(245, 242, 232, 0.36);
  --text-arrow: rgba(28, 32, 30, 0.28);
  /* ── 边框 ── */
  --border: rgba(28, 32, 30, 0.16);
  --border-strong: rgba(28, 32, 30, 0.26);
  --border-subtle: rgba(28, 32, 30, 0.08);
  --border-accent: #c3cfc8;
  --border-accent-strong: #8fa49b;
  /* ── 功能色 ── */
  --color-gold: #9a7d18;
  --color-gold-bg: rgba(154, 125, 24, 0.12);
  --color-gold-border: rgba(154, 125, 24, 0.32);
  --color-red: #a8392b;
  --color-red-bg: rgba(168, 57, 43, 0.1);
  --color-green: #2f6b4a;
  --color-green-bg: rgba(47, 107, 74, 0.12);
  --color-purple: #5f4a92;
  --color-purple-bg: rgba(95, 74, 146, 0.1);
  --color-blue: #2a5a86;
  --color-blue-bg: rgba(42, 90, 134, 0.12);
  --color-pink: #a8467a;
  --color-pink-bg: rgba(168, 70, 122, 0.1);
  --color-cyan: #1f6b78;
  --scrim-clear: rgba(0, 0, 0, 0);
  --scrim-strong: rgba(28, 32, 30, 0.5);
  --scrim-medium: rgba(28, 32, 30, 0.42);
  --shadow-sheet: rgba(28, 32, 30, 0.12);
  --bg-base-strong: rgba(245, 242, 232, 0.96);
  /* ── 行星色 ── */
  --planet-sun: #b07d18;
  --planet-moon: #5a635f;
  --planet-mercury: #2f6b4a;
  --planet-venus: #a8467a;
  --planet-mars: #a8392b;
  --planet-jupiter: #b15a2a;
  --planet-saturn: #8a6a1a;
  --planet-uranus: #1f6b78;
  --planet-neptune: #2a5a86;
  --planet-pluto: #474a8a;
  /* ── 元素色 ── */
  --element-fire: #a8392b;
  --element-earth: #6a5d3a;
  --element-air: #2a5a86;
  --element-water: #1f6b78;
  /* ── 字体 ── */
  --font-display: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-body: 'Inter', 'PingFang SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-symbol: 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'DejaVu Sans', 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
  /* ── 字号 ── */
  --fs-hero-score: 2.625rem;
  --fs-theme-title: 1.75rem;
  --fs-report-title: 1.625rem;
  --fs-category-score: 1.75rem;
  --fs-moon-title: 1.375rem;
  --fs-cta-price: 1.375rem;
  --fs-nav-title: 1.125rem;
  --fs-card-title: 1.125rem;
  --fs-section-title: 1rem;
  --fs-active-tab: 0.875rem;
  --fs-insight-title: 0.875rem;
  --fs-body: 0.8125rem;
  --fs-cta-btn: 0.875rem;
  --fs-label: 0.6875rem;
  --fs-caption: 0.625rem;
  --fs-micro: 0.5625rem;
  /* ── 圆角 ── */
  --radius-xxs: 0.1875rem;
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 31.21875rem;
  /* ── 间距 ── */
  --sp-1: 0.0625rem;
  --sp-4: 0.25rem;
  --sp-6: 0.375rem;
  --sp-8: 0.5rem;
  --sp-10: 0.625rem;
  --sp-12: 0.75rem;
  --sp-14: 0.875rem;
  --sp-16: 1rem;
  --sp-20: 1.25rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-40: 2.5rem;
  /* ── 动画 ── */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-dramatic: 600ms;
  --ease-default: ease-in-out;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  /* ── 页面尺寸 ── */
  --page-padding: 1rem;
  --tabbar-height: 4.375rem;
  --content-gap: 1rem;
  --fortune-radius: var(--radius-3xl);
  --tabbar-bg: rgba(245, 242, 232, 0.92);
}
/**
 * 星盘通 — SCSS Mixins
 */
/* 页面纸面背景：恒定 bg-base 平铺（对齐 web body #f1eee2）。
   历史上铺 --bg-gradient，但渐变随内容高度拉伸后偏黄段 #e9e5d6 占满
   滚动视野，是国内版看起来「泛黄」的主因，故改平铺；mixin 名保留避免大改。 */
/* FortuneZone 光晕背景 */
/* 铜绿墨线光晕椭圆 */
/* 卡片基础样式 */
/* FortuneZone 卡片 — 低噪音天文历纸面 */
@keyframes fortune-breathe {
0%, 100% {
    background-size: 100% 100%;
    border-color: var(--accent-zone-border);
}
50% {
    background-size: 135% 135%;
    border-color: var(--border-accent-strong);
}
}
/* 主按钮 */
/* 次级按钮 */
/* 按压反馈 */
/* 展示层字体 */
/* 功能层字体 */
/* 文字截断 */
/* 安全区域底部 */
/* 底部固定 CTA */
/* 菜单列表组 */
/* 菜单列表项 */
/* 图标圆形容器 */
/* 菜单图标容器 */
/* Tab 筛选栏 */
/* Tab 筛选项 */
/* Tab 筛选文字 */
/* 空状态 */
/* 空状态文字 */
/* 加载更多 */
/* 加载更多文字 */
/* 骨架屏动画 */
@keyframes skeleton-pulse {
0% {
    background-position: -200% 0;
}
100% {
    background-position: 200% 0;
}
}
/* ══════════════════════════════════════
   全局 Ephemeris 浅色基础样式
   ══════════════════════════════════════ */
uni-page-body,
body,
uni-page-body {
  /* 平铺 bg-base，对齐 web body；渐变拉伸到滚动全高会让 #e9e5d6 偏黄段占满视野 */
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 100vh;
}
body {
  background: var(--bg-base);
}
/* H5 额外保险 */
html {
  background-color: #f1eee2;
}
/* H5 会额外渲染 pages.json 的内置 TabBar；项目已使用支持动态配置的 CustomTabBar，
   隐藏重复层并释放其预留高度，避免页面产生 50px 的 window 级滚动。 */
uni-tabbar {
  display: none !important;
}
uni-page-wrapper {
  height: 100% !important;
}
/* 内置 TabBar 隐藏后，wrapper 的伪元素仍会留出 50px；一并释放，
   避免内部滚动到底后继续带动外层手机壳和自定义导航。 */
uni-page-wrapper::after {
  display: none !important;
}
html,
body,
uni-app {
  height: 100%;
  overflow: hidden;
}
/* ── PC 宽屏适配：居中手机壳 ──
   全站页面滚动都在内部 scroll-view（无 window 滚动依赖），因此给应用壳加
   transform 让所有 position:fixed 元素（TabBar / 弹层 / 底栏）以壳为包含块，
   一处适配全站收进壳内居中；壳外铺加深底色区分。
   H5 配合 pages.json 的 rpxCalcMaxDeviceWidth/BaseDeviceWidth=480，
   宽屏下 750rpx 恒等于壳宽 480px，布局与真机 480 宽设备完全一致。 */
@media (min-width: 600px) {
html,
  body {
    background-color: #e7e3d4;
}
uni-app {
    position: relative;
    max-width: 480px;
    height: 100vh;
    margin: 0 auto;
    background: var(--bg-base);
    box-shadow: 0 0 48px rgba(28, 32, 30, 0.14);
    /* 关键：为 fixed 后代建立包含块 */
    transform: translateZ(0);
    /* 壳自身承担滚动：无内部 scroll-view 的页面（如登录页）内容超高时
       在壳内滚，fixed 元素钉在壳上不随动 */
    overflow-y: auto;
    overflow-x: hidden;
}
}
/* 首页在平板扩宽；五个一级页面在桌面共用 Web 外框，二级页保留原壳。 */
@media (min-width: 600px) {
html.home-web-active uni-app {
    max-width: 800px;
    box-shadow: none;
    overflow: hidden;
}
}
@media (min-width: 1024px) {
html.primary-web-active,
  html.primary-web-active body {
    background: var(--bg-base);
}
html.primary-web-active uni-app {
    max-width: none;
    width: 100%;
    transform: none;
    box-shadow: none;
    overflow: hidden;
}
}
/* 隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
}
/* ── 安全区域 ── */
.safe-area-bottom {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}
/* ── 通用卡片 ── */
.card {
  background: var(--bg-card);
  border: 0.03125rem solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-16);
}
/* ── 文字工具类 ── */
.text-accent {
  color: var(--accent);
}
.text-gold {
  color: var(--color-gold);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-tertiary {
  color: var(--text-tertiary);
}
/* ── 分割线 ── */
.divider {
  height: 0.03125rem;
  background-color: var(--border);
  margin: var(--sp-16) 0;
}
/* ── 按钮 ── */
.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-xl);
  height: 3rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 0.03125rem solid var(--border);
  border-radius: var(--radius-xl);
  height: 3rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-primary,
.btn-secondary {
  transition: all var(--duration-fast) ease-out;
}
.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
  opacity: 0.85;
}
.btn-disabled,
uni-button[disabled],
.disabled {
  opacity: 0.45 !important;
  pointer-events: none;
}
/* ── 页面容器 ── */
.page-container {
  padding: 0 var(--page-padding);
  padding-bottom: calc(var(--sp-24) + env(safe-area-inset-bottom));
}
/* ── 全局 Input ── */
uni-input,
.uni-input-input,
uni-textarea {
  caret-color: var(--accent);
}
/* ── 可点击元素 ── */
.tappable {
  transition: all var(--duration-fast) ease-out;
}
.tappable:active {
  transform: scale(0.97);
  opacity: 0.85;
}
/* ── 骨架屏 ── */
.skeleton, .skeleton-card, .skeleton-text {
  background: linear-gradient(90deg, var(--bg-skeleton-edge) 25%, var(--bg-skeleton-mid) 50%, var(--bg-skeleton-edge) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text {
  height: 0.875rem;
  width: 60%;
  margin-bottom: 0.375rem;
}
.skeleton-card {
  height: 6.25rem;
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-16);
}