:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
               "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans",
               "MiSans", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-width: 20rem;
  font-size: 0.875rem;
  /* iOS 防止双击缩放 */
  touch-action: manipulation;
}

/* 全局隐藏滚动条 - 兼容所有页面 */
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html, body, #app {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

img {
  display: block;
  margin: 0 auto;
  padding: 0%;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: normal;
  margin: 0;
  padding: 0;
}

button {
  border-radius: 0.5rem;
  border: 0.0625rem solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 0.25rem auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  height: 100%;
  box-sizing: border-box;
}

/* 全局页面安全区域适配 */
.page, .home-page, .order-page, .my-page {
  box-sizing: border-box;
}

/* 全局页面容器滚动样式 - flexbox 布局 */
.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.page-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}

.custom-tabbar[data-v-9fdedd68] {
  height: 4.375rem;
  padding-bottom: calc(-0.625rem + var(--safe-area-inset-bottom, 0px));
  box-sizing: content-box;
}
.custom-tabbar-item[data-v-9fdedd68] {
  flex-direction: column;
  justify-content: center;
  padding-top: 0.375rem;
}

/* tabbar 图片图标：选中/未选中双图切换 */
.tab-icon[data-v-9fdedd68] {
  width: 1.625rem;
  height: 1.625rem;
  object-fit: contain;
  display: block;
}
[data-v-9fdedd68] .van-tabbar-item__text {
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

.update-dialog[data-v-4767d21a] {
  --van-dialog-border-radius: 1rem;
  --van-dialog-overlay-opacity: 0.3;
  width: 17.5rem; /* 固定宽度，缩小约 1/3 */
  max-width: 85%; /* 小屏幕自适应 */
}
.update-content[data-v-4767d21a] {
  padding: 1rem; /* 恢复合理的内边距 */
}
.version-info[data-v-4767d21a] {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background-color: #f7f8fa;
  border-radius: 0.5rem;
}
.current-version[data-v-4767d21a],
.latest-version[data-v-4767d21a] {
  font-size: 0.8125rem;
  color: #333;
}
.latest-version[data-v-4767d21a] {
  color: #1989fa;
  font-weight: 500;
}
.update-notes[data-v-4767d21a] {
  margin-bottom: 0.75rem;
}
.notes-title[data-v-4767d21a] {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.375rem;
}
.notes-content[data-v-4767d21a] {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
  white-space: pre-line;
  padding: 0.75rem;
  background-color: #f7f8fa;
  border-radius: 0.5rem;
  max-height: 7.5rem;
  overflow-y: auto;
}
.update-tip[data-v-4767d21a] {
  display: flex;
  align-items: center;
  padding: 0.625rem;
  background-color: #fff8f8;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #ff6034;
}
.update-tip .van-icon[data-v-4767d21a] {
  margin-right: 0.375rem;
  font-size: 1rem;
}

.privacy-consent-overlay[data-v-98f38b48] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.privacy-consent-dialog[data-v-98f38b48] {
  width: 100%;
  max-width: 21.25rem;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
}
.dialog-title[data-v-98f38b48] {
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1A1A1A;
  text-align: center;
}
.dialog-content[data-v-98f38b48] {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 1.25rem 0.75rem;
  font-size: 0.8125rem;
  color: #666666;
  line-height: 1.7;
}
.dialog-content p[data-v-98f38b48] {
  margin: 0 0 0.5rem 0;
}
.policy-link[data-v-98f38b48] {
  color: #0EA5E9;
  font-weight: 500;
}
.dialog-buttons[data-v-98f38b48] {
  display: flex;
  gap: 0.625rem;
  padding: 0.375rem;
}
.btn[data-v-98f38b48] {
  flex: 1;
  height: 2.375rem;
  font-size: 0.875rem;
  border: none;
  border-radius: 0.5rem;
  background: #F5F6F8;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s;
}
.btn[data-v-98f38b48]:active {
  transform: scale(0.98);
}
.btn-secondary[data-v-98f38b48] {
  background: #F5F6F8;
  color: #666666;
}
.btn-agree[data-v-98f38b48] {
  color: #FFFFFF;
  background: linear-gradient(90deg, #ff6309 0%, #ff5757 100%);
  font-weight: 600;
}
.van-tabbar {
  box-shadow: 0 -0.125rem 0.625rem rgba(0, 0, 0, 0.05);
}