* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

*:not(input,textarea) {
  user-select: none;
}

html,
body {
  -webkit-tap-highlight-color: transparent;
  background: #20224B;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
  color: #FFFFFF;
  overflow-x: hidden;
}

.hostitle {
  color: #8D84D9;
  margin-top: 10px;
}

.activebar {
  width: 100%;
  padding: 0 6%;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 200px;
  flex-flow: wrap row;
}

.activebar .chil {
  width: 24%;
}

.activebar .chil img {
  width: 52px;
  display: block;
  margin: 0px auto;
  padding: 6px;
}

.activebar .chil p {
  font-size: 14px;
  font-family: 'PingFang SC';
  font-weight: 300;
  color: #FFFFFF;
  text-align: center;
  line-height: 44px;
}

input {
  width: 100%;
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
}

img {
  border: 0;
  vertical-align: top;
}

a {
  text-decoration: none;
  color: inherit;
}

[v-cloak] {
  display: none !important;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 44px;
  background: #20224B;
}

.page-hd {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9;
  height: 44px;
  background: #20224B;
}

.app-title {
  line-height: 44px;
  text-align: center;
  font-size: 18px;
}

.go-back {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 44px;
  height: 44px;
  z-index: 9;
}

.go-back::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.page-bd {
  flex: 1;
  overflow-y: auto; /* 添加滚动条 */
}

.tab-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: flex;
  height: 56px;
  border-top: 1px solid #212122;
  background: #19191b;
}

.tab-item {
  display: inline-block;
  width: 100%;
  padding-top: 8px;
  line-height: 1;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.tab-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.tab-item.active .tab-icon {
  color: #4172d3;
}

.tab-icon img {
  width: 100%;
  height: 100%;
}

.tab-label {
  margin-top: 4px;
}

.tab-item.active .tab-label {
  margin-top: 2px;
  font-size: 14px;
}

.load-more {
  line-height: 32px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

.up {
  color: #ea3e3b !important;
}

.down {
  color: #4caa3b !important;
}

/* ============================================================
   APEX AI 算力云 · 深色科技风覆盖（追加于末尾，优先级最高）
   ============================================================ */
:root {
  --ai-bg: #0b0e22;
  --ai-surface: rgba(24, 26, 58, .72);
  --ai-surface-solid: #161a3a;
  --ai-border: rgba(139, 92, 246, .28);
  --ai-text: #e9ecf8;
  --ai-text-2: #94a0c8;
  --ai-primary: #8b5cf6;
  --ai-gradient: linear-gradient(135deg, #4f7cff 0%, #8b5cf6 60%, #a855f7 100%);
  --ai-glow: 0 0 14px rgba(139, 92, 246, .40);
}

html,
body,
.page {
  background: var(--ai-bg) !important;
  background-image:
    radial-gradient(60% 40% at 85% -5%, rgba(99, 102, 241, .18) 0%, transparent 60%),
    radial-gradient(50% 35% at 0% 0%, rgba(139, 92, 246, .14) 0%, transparent 55%) !important;
  background-attachment: fixed !important;
  color: var(--ai-text) !important;
}

.page-hd {
  background: rgba(10, 14, 26, .9) !important;
  border-bottom: 1px solid var(--ai-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab-bar {
  background: rgba(13, 20, 36, .94) !important;
  border-top: 1px solid var(--ai-border) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab-item {
  color: var(--ai-text-2) !important;
}

.tab-item.active .tab-label,
.tab-item.active .tab-icon {
  color: var(--ai-primary) !important;
  text-shadow: var(--ai-glow);
}

.hostitle {
  color: var(--ai-primary) !important;
}

/* 卡片化容器 */
.hot-list,
.wallet,
.order-item,
.panel,
.status-bar,
.van-cell,
.van-uploader,
.form-item {
  background: var(--ai-surface) !important;
  border: 1px solid var(--ai-border) !important;
  border-radius: 14px !important;
}

.stock-item {
  border-bottom: 1px solid rgba(94, 129, 244, .14) !important;
}

/* 输入框 */
input,
.form-input {
  color: var(--ai-text) !important;
}

input::placeholder {
  color: rgba(143, 163, 196, .7) !important;
}

/* 主按钮渐变 */
.button,
.van-button--primary,
.van-button--info {
  background: var(--ai-gradient) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, .4) !important;
}

/* 涨跌（中式：涨红跌绿） */
.up,
.change {
  color: #f87171 !important;
}

.down {
  color: #34d399 !important;
}

/* Vant 组件适配深色 */
.van-toast,
.van-dialog,
.van-popup,
.van-picker,
.van-action-sheet {
  background: var(--ai-surface-solid) !important;
  color: var(--ai-text) !important;
}

.van-toast .van-toast__text,
.van-dialog__message {
  color: var(--ai-text) !important;
}

.van-field__control {
  color: var(--ai-text) !important;
}

.van-nav-bar,
.van-hairline--bottom::after {
  background: rgba(10, 14, 26, .9) !important;
}

.van-nav-bar .van-nav-bar__title {
  color: var(--ai-text) !important;
}

/* 品牌字标 */
.brand {
  font-weight: 700;
  background: linear-gradient(135deg, #4f7cff 0%, #8b5cf6 60%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 滚动条隐藏 */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}
