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

html,
body {
  -webkit-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-page-head {
  display: block;
  box-sizing: border-box;
}

.uni-page-head {
  position: fixed;
  left: var(--window-left);
  right: var(--window-right);
  height: 44px;
  height: calc(44px + constant(safe-area-inset-top));
  height: calc(44px + env(safe-area-inset-top));
  padding: 7px 3px;
  padding-top: calc(7px + constant(safe-area-inset-top));
  padding-top: calc(7px + env(safe-area-inset-top));
  display: flex;
  overflow: hidden;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 998;
  color: #fff;
  background-color: #000;
  transition-property: all;
}

.uni-page-head * {
  box-sizing: border-box;
}

.uni-page-head .uni-btn-icon {
  overflow: hidden;
  min-width: 1em;
  font-style: normal;
}

.uni-page-head-titlePenetrate,
.uni-page-head-titlePenetrate .uni-page-head-bd,
.uni-page-head-titlePenetrate .uni-page-head-bd * {
  pointer-events: none;
}

.uni-page-head-titlePenetrate * {
  pointer-events: auto;
}

.uni-page-head.uni-page-head-transparent .uni-page-head-ft > div {
  justify-content: center;
}

.uni-page-head ~ .uni-placeholder {
  width: 100%;
  height: 44px;
  height: calc(44px + constant(safe-area-inset-top));
  height: calc(44px + env(safe-area-inset-top));
}

.uni-placeholder-titlePenetrate {
  pointer-events: none;
}

.uni-page-head-hd {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.uni-page-head-bd {
  position: absolute;
  left: 70px;
  right: 70px;
  min-width: 0;
  -webkit-user-select: auto;
          user-select: auto;
}

.uni-page-head-btn {
  position: relative;
  width: auto;
  margin: 0 2px;
  word-break: keep-all;
  white-space: pre;
  cursor: pointer;
  font-size: 0px;
}

/* .uni-page-head-btn svg {
} */

.uni-page-head-transparent .uni-page-head-btn {
  display: flex;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
}

.uni-page-head-btn-red-dot::after {
  content: attr(badge-text);
  position: absolute;
  right: 0;
  top: 0;
  background-color: red;
  color: white;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 18px;
  overflow: hidden;
  transform: scale(0.5) translate(40%, -40%);
  transform-origin: 100% 0;
}

.uni-page-head-btn-red-dot[badge-text]::after {
  font-size: 12px;
  width: auto;
  min-width: 18px;
  max-width: 42px;
  text-align: center;
  padding: 0 3px;
  transform: scale(0.7) translate(40%, -40%);
}

.uni-page-head-btn-select svg {
  vertical-align: middle;
  margin-left: 2px;
  transform: rotate(270deg) scale(0.8);
}

.uni-page-head-search {
  position: relative;
  display: flex;
  flex: 1;
  margin: 0 2px;
  line-height: 30px;
  font-size: 15px;
}

.uni-page-head-search-input {
  width: 100%;
  height: 100%;
  padding-left: 34px;
  text-align: left;
}

.uni-page-head-search-input .uni-input-input:disabled {
  pointer-events: none;
}

.uni-page-head-search-placeholder {
  position: absolute;
  max-width: 100%;
  height: 100%;
  padding-left: 34px;
  overflow: hidden;
  word-break: keep-all;
  white-space: pre;
}

.uni-page-head-search-placeholder-right {
  right: 0;
}

.uni-page-head-search-placeholder-center {
  left: 50%;
  transform: translateX(-50%);
}

.uni-page-head-search-icon {
  position: absolute;
  top: 0;
  left: 2px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.uni-page-head-ft {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  font-size: 13px;
}

.uni-page-head__title {
  font-weight: bold;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.uni-page-head__title .uni-loading {
  width: 16px;
  height: 16px;
  margin-top: -3px;
}

.uni-page-head__title .uni-page-head__title_image {
  width: auto;
  height: 26px;
  vertical-align: middle;
}

.uni-page-head-shadow {
  overflow: visible;
}

.uni-page-head-shadow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 5px;
  background-size: 100% 100%;
}

uni-page-head[uni-page-head-type='default'] ~ uni-page-wrapper {
  height: calc(100% - 44px);
  height: calc(100% - 44px - constant(safe-area-inset-top));
  height: calc(100% - 44px - env(safe-area-inset-top));
}

.uni-page-head-shadow-grey::after {
  background-image: url('https://cdn.dcloud.net.cn/img/shadow-grey.png');
}

.uni-page-head-shadow-blue::after {
  background-image: url('https://cdn.dcloud.net.cn/img/shadow-blue.png');
}

.uni-page-head-shadow-green::after {
  background-image: url('https://cdn.dcloud.net.cn/img/shadow-green.png');
}

.uni-page-head-shadow-orange::after {
  background-image: url('https://cdn.dcloud.net.cn/img/shadow-orange.png');
}

.uni-page-head-shadow-red::after {
  background-image: url('https://cdn.dcloud.net.cn/img/shadow-red.png');
}

.uni-page-head-shadow-yellow::after {
  background-image: url('https://cdn.dcloud.net.cn/img/shadow-yellow.png');
}
            
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)
  );
}

/* 彻底隐藏全局滚动条 */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Firefox 隐藏滚动条 */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* 消除 uni-app H5 端的默认占位和白闪 */
uni-tabbar, 
.uni-tabbar {
  display: none !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.uni-app--show-tabbar uni-page-wrapper,
uni-page-wrapper,
uni-page-body {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background-color: transparent !important; /* 让背景透出到 html/body */
}
body {
  padding-bottom: 0 !important;
  /* 使用变量确保背景跟随主题，防止加载瞬间的白底 */
  background-color: var(--bg-base, #0d0d12) !important;
}

/* 针对 iOS 安全区域的白条修正 */
.uni-page-wrapper::after {
  display: none !important;
}

/*
 * AI 文案智能体 - 全局设计系统
 * 深色高级感主题，适配 H5 和微信小程序
 */

/* 全局重置与视口锁定 */
html, body, uni-page-body {
  margin: 0;
  padding: 0;
  /* 强制默认深色背景，解决底部白条和加载闪烁 */
  background-color: #0d0d12 !important;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  background-color: #0d0d12 !important;
}

/* 仅在明确开启浅色模式时切换背景 */
html.light-mode, 
body.light-mode, 
uni-page-body.light-mode,
.light-mode {
  background-color: #ffffff !important;
}
body {
  background-color: #ffffff !important;
}

/* uni-app 页面容器默认深色背景 */
uni-page-body,
.uni-page-body,
uni-page-wrapper,
.uni-page-wrapper {
  background-color: #0d0d12 !important;
  min-height: 100vh;
}

/* 浅色模式下页面容器背景覆盖 */
.light-mode uni-page-body,
.light-mode .uni-page-body,
.light-mode uni-page-wrapper,
.light-mode .uni-page-wrapper,
html.light-mode uni-page-body,
html.light-mode uni-page-wrapper {
  background-color: #ffffff !important;
}

/* ============================================
   H5 端滚动条隐藏与触感优化
   ============================================ */

/* H5 隐藏滚动条 - 与小程序体验对齐 */
/* H5 隐藏滚动条 - 与小程序体验对齐 */
/* 注释掉强制隐藏滚动条，以便桌面端用户可以看到滚动进度 */
/*
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

page, view, scroll-view, textarea {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*/

/* iOS Safari 原生触感滚动 */
.scroll-container,
.list-scroll,
.message-scroll,
uni-scroll-view {
  -webkit-overflow-scrolling: touch;
}

/* 全局盒模型 */
/* * 不支持通配符，需手动指定元素 */
uni-page-body, uni-view, uni-scroll-view, uni-swiper, uni-swiper-item, uni-cover-view, uni-cover-image, uni-icon, uni-text, uni-rich-text, uni-progress, uni-button, uni-checkbox, uni-form, uni-input, uni-label, uni-picker, uni-picker-view, uni-radio, uni-slider, uni-switch, uni-textarea, uni-navigator, uni-audio, uni-camera, uni-image, uni-video {
  box-sizing: border-box;
}

/* 全局修复：uni-input placeholder 遮挡问题 */
.uni-input-placeholder,
.input-placeholder {
  pointer-events: none !important;
  z-index: 1 !important;
}
.uni-input-input {
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  position: relative !important;
  z-index: 100 !important;
  background: transparent !important;
}
uni-input,
.uni-input-wrapper {
  pointer-events: auto !important;
  cursor: text !important;
}

/* ============================================
   uni-input 组件 H5 端输入问题修复
   问题: placeholder 层遮挡输入层导致无法输入
   ============================================ */

/* 确保 activation-panel 下的输入框可点击 */
.activation-panel uni-input,
.activation-panel .uni-input-wrapper,
.activation-panel .uni-input-input {
  pointer-events: auto !important;
  z-index: 100 !important;
}
.activation-panel .uni-input-placeholder {
  pointer-events: none !important;
  z-index: 1 !important;
}

/* 全局修复: 所有 uni-input 的 placeholder 不应阻挡输入 */
uni-input .uni-input-placeholder,
.uni-input-wrapper .uni-input-placeholder,
.main-input .uni-input-placeholder {
  pointer-events: none !important;
  position: absolute !important;
  z-index: 1 !important;
}

/* 确保真正的输入层可交互 */
uni-input .uni-input-input,
.uni-input-wrapper .uni-input-input,
.main-input .uni-input-input {
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  position: relative !important;
  z-index: 10 !important;
  background: transparent !important;
  width: 100% !important;
  height: 100% !important;
}

/* 修复 input-container 内的输入框 */
.input-container uni-input,
.input-container .uni-input-wrapper {
  display: block !important;
  width: 100% !important;
  position: relative !important;
}
.input-container uni-input {
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* CSS 变量定义 */
:root, uni-page-body {
  /* 主色调 - 紫蓝渐变 (保持品牌一致性) */
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  
  /* 默认背景色 - 极淡灰白 (针对白天模式优化) */
  --bg-base: #F9FAFB;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hover: #f3f4f6;
  --bg-selected-translucent: rgba(99, 102, 241, 0.08);
  --glass-blur: blur(8px);
  --border-selected: 2px solid #6366f1;
  
  /* 默认文字颜色 - 深炭灰色 */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  
  /* 边框和分割线 */
  --border-color: #E5E7EB;
  --border-color-light: #F3F4F6;
  
  /* 状态颜色 */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* 阴影 - 柔和卡片感 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 1.25rem rgba(99, 102, 241, 0.15);
  
  /* 圆角 */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 312.46875rem;
  
  /* 间距 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  
  /* 字体 - 优化为更具高级感的字体栈 */
  --font-sans: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, monospace;
  
  /* 算力相关 */
  --quota-gradient: linear-gradient(90deg, #10b981 0%, #059669 100%);
  
  /* 分割线 */
  --divider-color: #F3F4F6;
  
  /* 图标颜色 */
  --icon-color: #4B5563;
  
  /* 输入框背景 */
  --input-bg: #ffffff;
  
  /* 卡片背景 */
  --bg-card: rgba(0, 0, 0, 0.02);
  
  /* Chat Bubbles (Default / Light) */
  --chat-ai-bg: transparent;
  --chat-ai-text: #111827;
  --chat-ai-border: transparent;
  --chat-user-bg: #e5e7eb;
  --chat-user-text: #111827;
  
  /* Sidebar (Default / Light) */
  --sidebar-bg: #f3f4f6;
  --session-active-bg: #ffffff;
  --session-active-text: #111827;
}

/* 深色模式变量覆盖 */
.dark-mode, .theme-dark {
  --bg-base: #000000;
  --bg-surface: #0e0e11;
  --bg-elevated: #0e0e11;
  --bg-hover: #2d2d4a;
  --bg-selected-translucent: rgba(124, 58, 237, 0.15);
  --glass-blur: blur(4px);
  --border-selected: 2px solid #7c3aed;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-light: rgba(148, 163, 184, 0.08);
  
  --shadow-sm: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.3);
  --shadow-md: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 1.25rem rgba(99, 102, 241, 0.3);
  
  --divider-color: rgba(255, 255, 255, 0.1);
  --icon-color: #94a3b8;
  --input-bg: #252542;
  --bg-card: rgba(255, 255, 255, 0.03);
  
  /* Chat Bubbles (Dark) */
  --chat-ai-bg: #18181b;
  --chat-ai-text: #e2e8f0;
  --chat-ai-border: #27272a;
  --chat-user-bg: var(--color-primary);
  --chat-user-text: #ffffff;
  
  /* Sidebar (Dark) */
  --sidebar-bg: #000000;
  --session-active-bg: #2d2d4a;
  --session-active-text: #e0e7ff;
}

/* H5 深色模式 - TabBar 和 Navigation Bar 覆盖 */
.dark-mode uni-tabbar,
.dark-mode .uni-tabbar {
  background-color: #0d0d12 !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}
.dark-mode uni-tabbar .uni-tabbar__bd,
.dark-mode .uni-tabbar .uni-tabbar__bd {
  background-color: #0d0d12 !important;
}
.dark-mode uni-tabbar .uni-tabbar__item .uni-tabbar__label,
.dark-mode .uni-tabbar .uni-tabbar__item .uni-tabbar__label {
  color: #94a3b8 !important;
}
.dark-mode uni-tabbar .uni-tabbar__item--active .uni-tabbar__label,
.dark-mode .uni-tabbar .uni-tabbar__item--active .uni-tabbar__label {
  color: #ffffff !important;
}
.dark-mode uni-page-head-hd,
.dark-mode .uni-page-head-hd {
  background-color: #0d0d12 !important;
}

/* H5 浅色模式 - TabBar 和 Navigation Bar 覆盖 */
.light-mode uni-tabbar,
.light-mode .uni-tabbar {
  background-color: #ffffff !important;
  border-top-color: #E5E7EB !important;
}
.light-mode uni-tabbar .uni-tabbar__bd,
.light-mode .uni-tabbar .uni-tabbar__bd {
  background-color: #ffffff !important;
}
.light-mode uni-tabbar .uni-tabbar__item .uni-tabbar__label,
.light-mode .uni-tabbar .uni-tabbar__item .uni-tabbar__label {
  color: #64748B !important;
}
.light-mode uni-tabbar .uni-tabbar__item--active .uni-tabbar__label,
.light-mode .uni-tabbar .uni-tabbar__item--active .uni-tabbar__label {
  color: #6366f1 !important;
}
.light-mode uni-page-head,
.light-mode .uni-page-head {
  background-color: #000000 !important;
}
.light-mode uni-page-head .uni-page-head__title,
.light-mode .uni-page-head .uni-page-head__title {
  color: #ffffff !important;
}


/* 极端窄屏缩放 (< 375px) */
@media screen and (max-width: 375px) {
:root {
    --base-font-scale: 0.8;
    --base-padding-scale: 0.6;
    --spacing-xs: 0.1875rem;
    --spacing-sm: 0.375rem;
    --spacing-md: 0.5625rem;
    --spacing-lg: 0.75rem;
    --spacing-xl: 1.125rem;
}
uni-page-body {
    font-size: 0.75rem;
}
}

/* 页面基础样式 */
uni-page-body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 100vh;
}
body {
  background: var(--bg-base);
}

/* 通用卡片样式 */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 0.03125rem solid var(--border-color);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}
.card-elevated {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 0.03125rem solid var(--border-color-light);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 0.03125rem solid var(--border-color);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:active {
  background: var(--bg-hover);
}

/* 输入框样式 */
.input {
  background: var(--bg-elevated);
  border: 0.03125rem solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}
.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.125rem rgba(99, 102, 241, 0.2);
}

/* Global Input Safeguard */
uni-input, uni-textarea {
  pointer-events: auto !important;
  z-index: 10; /* Ensure base level visibility */
}

/* 标签系统 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 0.03125rem solid var(--border-color);
}
.tag-primary {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
  border-color: rgba(99, 102, 241, 0.3);
}

/* 算力显示 */
.quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(34, 197, 94, 0.15);
  border: 0.03125rem solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-success);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* 过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 滚动条美化 (H5) */
::-webkit-scrollbar {
  width: 0.25rem;
  height: 0.25rem;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 0.125rem;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   通用 hover 反馈样式 - 小程序点击交互优化
   ============================================ */

/* 透明度变暗反馈 - 适用于大多数按钮和卡片 */
.hover-fade {
  opacity: 0.7 !important;
  transition: opacity 0.08s ease-out;
}

/* 缩放反馈 - 适用于小图标按钮 */
.hover-scale {
  transform: scale(0.96) !important;
  transition: transform 0.1s ease-out;
}

/* 背景变暗反馈 - 适用于列表项 */
.hover-bg-dim {
  background-color: rgba(255, 255, 255, 0.08) !important;
  transition: background-color 0.1s ease-out;
}

/* 组合反馈 - 透明度 + 缩放 */
.hover-active {
  opacity: 0.8 !important;
  transform: scale(0.98) !important;
  transition: all 0.1s ease-out;
}

/* ============================================
   列表刷新动画
   ============================================ */

/* 列表项淡入动画 */
.list-fade-enter-active {
  animation: listFadeIn 0.3s ease-out;
}
@keyframes listFadeIn {
from { 
    opacity: 0; 
    transform: translateY(0.3125rem);
}
to { 
    opacity: 1; 
    transform: translateY(0);
}
}

/* 刷新时的脉冲动画 */
.refresh-pulse {
  animation: refreshPulse 0.6s ease-in-out;
}
@keyframes refreshPulse {
0% { opacity: 1;
}
50% { opacity: 0.5;
}
100% { opacity: 1;
}
}

/* ============================================
   底部安全区域适配 (iPhone X+ 刘海屏)
   ============================================ */

/* 全局底部安全区域类 - 应用于所有底部固定容器 */
.safe-area-bottom {
  padding-bottom: constant(safe-area-inset-bottom) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

/* 底部固定容器自动适配 */
.fixed-bottom,
.batch-footer,
.bottom-action-bar {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

/* ============================================
   图片加载防抖 (CLS Optimization)
   ============================================ */

/* 图片容器占位 - 防止布局偏移 */
.img-placeholder {
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 图片加载中的骨架动画 */
.img-skeleton {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.03) 25%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
0% { background-position: 200% 0;
}
100% { background-position: -200% 0;
}
}

/* 常用图片尺寸占位 - 保持宽高比 */
.img-ratio-1-1 {
  aspect-ratio: 1 / 1;
}
.img-ratio-16-9 {
  aspect-ratio: 16 / 9;
}
.img-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

/* 列表图片通用样式 */
.list-image {
  width: 100%;
  height: auto;
  background-color: rgba(255, 255, 255, 0.05);
  transition: opacity 0.3s ease;
}
.list-image.loading {
  opacity: 0;
}
.list-image.loaded {
  opacity: 1;
}

/* 超大屏适配：不再缩放 html/body，改缩放页面内容包装器，防止 fixed 定位失效 */
@media (min-width: 1440px) {
.global-page-wrapper {
    zoom: 1.2;
}
}

/* 写在 App.vue 里，任何页面都能生效 */
.force-desktop-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.7) !important;
  z-index: 2000 !important; /* 降低层级，确保 toast (9999+) 能显示 */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 确保uni-app的toast始终显示在最前面 */
.uni-toast,
.uni-loading {
  z-index: 99999 !important;
}

/* 确保所有弹窗类组件的层级正确 */
.uni-modal,
.uni-actionsheet {
  z-index: 10000 !important;
}

/* 强制Toast显示在所有元素之上 */
uni-toast,
.uni-toast-wrapper {
  z-index: 999999 !important;
  position: fixed !important;
}
.force-desktop-panel {
  position: relative !important;
  width: 550px !important;
  max-width: 90vw !important;
  max-height: 85vh !important;
  transform: none !important;
  margin: 0 !important;
  left: auto !important;
  top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-elevated) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border-color) !important;
}
.force-desktop-panel .topic-panel-header {
  padding: 18px 24px;
  flex-shrink: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color-light);
}
.force-desktop-panel .topic-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.force-desktop-panel .topic-panel-close {
  padding: 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

/* 关键修复：针对超大屏 zoom: 1.2 的数学修正 (仅针对 >= 1440px) */
/* 1440px media query removed - handled by 1024px block with zoom:1 */

/* 
  桌面端适配通用规则 (>=1024px)：
  配合 Split Layout，给予足够的宽度和固定高度
  独立于 1440px 的 zoom 修正，确保所有宽屏都能正确显示布局
*/
@media (min-width: 1024px) {
.force-desktop-overlay {
    /* 
       面板已移出 zoom 容器，定位回归 1:1 坐标。
    */
    width: 100vw !important; 
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    zoom: 1 !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.force-desktop-panel {
    height: 85vh !important; 
    width: 85vw !important; 
    max-width: 1400px !important; 
    overflow: hidden !important; 
    display: flex !important;
    flex-direction: column !important;
    z-index: 2100 !important;
}

  
  /* 移除底部留白 */
.force-desktop-panel .topic-panel-body {
    flex: 1 !important;
    height: 0; /* Topic Panel 依然保持固定高度 */
    min-height: 0 !important;
    overflow: hidden !important; 
    padding: 24px 24px 0 24px !important;
}

  /* ==== 字体适配 ==== */
.force-desktop-panel .topic-panel-title { font-size: 16px !important;
}
.force-desktop-panel .form-label { font-size: 13px !important;
}
.force-desktop-panel .cognitive-textarea { font-size: 14px !important; line-height: 1.6 !important;
}
.force-desktop-panel .result-title { font-size: 15px !important;
}
.force-desktop-panel .viewpoint-text { font-size: 14px !important; margin-bottom: 8px !important;
}
.force-desktop-panel .section-content { font-size: 13px !important;
}
}


/* 移除冲突的低优先级样式，统一在 media query 中管理 */
