/* ===== 全局重置样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro SC', 'Helvetica Neue', Arial, sans-serif;
  background-color: #F3F4F6;
  color: #1D2129;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 应用容器 ===== */
#app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #F3F4F6;
}

/* ===== 页面容器 ===== */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding-bottom: 120px; /* 为底部免责声明和tab栏留空间 */
}

.page.active {
  display: block;
  opacity: 1;
  z-index: 1;
}

.page.page-enter {
  display: block;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page.page-enter-active {
  opacity: 1;
  transform: translateX(0);
}

.page.page-leave {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.page.page-leave-active {
  opacity: 0;
}

/* ===== 页面头部 ===== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background-color: #165DFF;
  color: #FFFFFF;
}

.page-title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.header-back-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  filter: brightness(0) invert(1);
  position: absolute;
  left: 16px;
}

/* ===== 页面内容区 ===== */
.page-body {
  padding: 16px;
}

/* ===== 主色调 ===== */
.primary-color {
  color: #165DFF;
}

.primary-bg {
  background-color: #165DFF;
}

.white-color {
  color: #FFFFFF;
}

.white-bg {
  background-color: #FFFFFF;
}

.light-blue-bg {
  background-color: #E8F3FF;
}

/* ===== 辅助色 ===== */
.success-color {
  color: #00B42A;
}

.warning-color {
  color: #F53F3F;
}

.error-color {
  color: #F53F3F;
}

.accent-color {
  color: #FF7D00;
}

.gray-bg {
  background-color: #F2F3F5;
}

/* ===== 文字颜色 ===== */
.text-primary {
  color: #1D2129;
}

.text-secondary {
  color: #4E5969;
}

.text-tertiary {
  color: #86909C;
}

.text-disabled {
  color: #C9CDD4;
}

/* ===== 字体大小 ===== */
.font-size-xl {
  font-size: 20px;
}

.font-size-lg {
  font-size: 18px;
}

.font-size-md {
  font-size: 16px;
}

.font-size-sm {
  font-size: 14px;
}

.font-size-xs {
  font-size: 12px;
}

.font-size-xxs {
  font-size: 11px;
}

/* ===== 字重 ===== */
.font-weight-bold {
  font-weight: 700;
}

.font-weight-semibold {
  font-weight: 600;
}

.font-weight-medium {
  font-weight: 500;
}

.font-weight-normal {
  font-weight: 400;
}

/* ===== 行高 ===== */
.line-height-tight {
  line-height: 1.3;
}

.line-height-normal {
  line-height: 1.4;
}

.line-height-relaxed {
  line-height: 1.5;
}

/* ===== 布局 ===== */
.container {
  padding: 16px;
  background-color: #FFFFFF;
}

.card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1D2129;
  margin-bottom: 12px;
}

/* ===== 按钮 ===== */
.btn-primary {
  background-color: #165DFF;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border: none;
  cursor: pointer;
  display: inline-block;
  width: 100%;
}

.btn-primary:active {
  opacity: 0.8;
}

.btn-secondary {
  background-color: #E8F3FF;
  color: #165DFF;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border: none;
  cursor: pointer;
  display: inline-block;
  width: 100%;
}

.btn-secondary:active {
  opacity: 0.8;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-danger {
  background-color: #F53F3F;
  color: #FFFFFF;
}

/* ===== 间距 ===== */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }

/* ===== 蓝色背景 ===== */
.blue-bg {
  background: linear-gradient(180deg, #3B82F6 0%, #60A5FA 100%);
  padding-bottom: 30px;
  height: 210px;
  position: relative;
}

/* ===== 英雄卡片 ===== */
.hero-section {
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.hero-card {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #93C5FD 100%);
  border-radius: 0 0 16px 16px;
  padding: 60px 20px 20px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 40px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section-title {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-asset-value {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-return-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-return-value {
  color: #FDE68A;
  font-size: 26px;
  font-weight: 700;
}

/* 3D 插图 */
.hero-illustration {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
}

.iso-block {
  position: absolute;
  border-radius: 4px;
}

.iso-block-1 {
  width: 70px; height: 35px;
  background: rgba(255, 255, 255, 0.25);
  bottom: 30px; right: 10px;
  transform: skewX(-15deg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.iso-block-2 {
  width: 60px; height: 30px;
  background: rgba(255, 255, 255, 0.2);
  bottom: 50px; right: 20px;
  transform: skewX(-15deg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.iso-block-3 {
  width: 50px; height: 25px;
  background: rgba(255, 255, 255, 0.35);
  bottom: 68px; right: 30px;
  transform: skewX(-15deg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.iso-block-4 {
  width: 40px; height: 20px;
  background: rgba(255, 255, 255, 0.15);
  bottom: 18px; right: 30px;
  transform: skewX(-15deg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== 内容区域 ===== */
.content-area {
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: 10px;
  position: relative;
  z-index: 5;
  padding: 20px 16px 100px;
}

/* ===== 关注列表 ===== */
.fund-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fund-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F9FAFB;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background-color 0.15s;
}

.fund-item:active {
  background-color: #F3F4F6;
}

.fund-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fund-icon-blue {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.fund-icon-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 22px;
}

.fund-icon-info.blue div {
  background: #3B82F6;
  border-radius: 2px;
}

.fund-info {
  flex: 1;
  min-width: 0;
}

.fund-name {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.fund-code {
  font-size: 12px;
  color: #9CA3AF;
}

.fund-valuation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 70px;
}

.valuation-value {
  font-size: 14px;
  font-weight: 700;
  color: #6B7280;
}

.valuation-up {
  color: #EF4444;
}

.valuation-down {
  color: #10B981;
}

.valuation-price {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ===== 空状态 ===== */
.empty-favorites {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background: #F9FAFB;
  border-radius: 12px;
}

.empty-icon {
  font-size: 48px;
  color: #D1D5DB;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.empty-hint {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 16px;
}

.btn-add-favorite {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  padding: 10px 32px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  cursor: pointer;
}

.btn-add-favorite:active {
  opacity: 0.85;
}

/* ===== AI洞察卡片 ===== */
.ai-advice-section {
  margin-top: 20px;
}

.empty-ai-advice {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background: #F9FAFB;
  border-radius: 12px;
}

.empty-ai-advice .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-ai-advice .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.empty-ai-advice .empty-desc {
  font-size: 13px;
  color: #9CA3AF;
}

.ai-advice-section .advice-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ai-advice-section .advice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F3F4F6;
}

.ai-advice-section .advice-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
}

.ai-advice-section .advice-time {
  font-size: 11px;
  color: #9CA3AF;
}

.ai-advice-section .advice-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-advice-section .advice-stock-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 8px;
}

.ai-advice-section .stock-code {
  font-size: 13px;
  font-weight: 600;
  color: #1E40AF;
}

.ai-advice-section .stock-price {
  font-size: 13px;
  color: #374151;
}

.ai-advice-section .advice-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-advice-section .action-label {
  font-size: 13px;
  color: #6B7280;
}

.ai-advice-section .action-value {
  font-size: 20px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 6px;
}

.ai-advice-section .action-buy {
  color: #DC2626;
  background: #FEF2F2;
}

.ai-advice-section .action-sell {
  color: #10B981;
  background: #ECFDF5;
}

.ai-advice-section .action-hold {
  color: #6B7280;
  background: #F3F4F6;
}

.ai-advice-section .advice-row {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background: #F9FAFB;
  border-radius: 10px;
}

.ai-advice-section .advice-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ai-advice-section .item-label {
  font-size: 11px;
  color: #9CA3AF;
}

.ai-advice-section .item-value {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

.ai-advice-section .advice-summary {
  margin-top: 4px;
}

.ai-advice-section .summary-label {
  display: block;
  font-size: 11px;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.ai-advice-section .summary-content {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.5;
}

.ai-advice-section .advice-prices {
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid #F3F4F6;
}

.ai-advice-section .price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ai-advice-section .price-label {
  font-size: 11px;
  color: #9CA3AF;
}

.ai-advice-section .price-value {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
}

.ai-advice-section .price-value.stop-loss {
  color: #DC2626;
}

.ai-advice-section .price-value.take-profit {
  color: #10B981;
}

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 10px;
  padding: 10px 12px;
  gap: 8px;
  margin-bottom: 16px;
}

.search-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1F2937;
  outline: none;
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-results {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 110px;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 20;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
}

.search-result-item:active {
  background-color: #F9FAFB;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}

.search-result-code {
  font-size: 12px;
  color: #9CA3AF;
  margin-left: 8px;
}

.search-result-type {
  font-size: 11px;
  color: #6B7280;
  margin-left: auto;
  padding: 2px 6px;
  background: #F3F4F6;
  border-radius: 4px;
}

/* ===== 功能菜单网格 ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s;
}

.menu-item:active {
  transform: scale(0.95);
}

.menu-icon {
  width: 28px;
  height: 28px;
}

.menu-label {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
  text-align: center;
}

.menu-arrow {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg);
  flex-shrink: 0;
}

/* ===== 标的列表 ===== */
.stock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: background-color 0.15s;
}

.stock-item:active {
  background-color: #F9FAFB;
}

.stock-item-info {
  flex: 1;
  min-width: 0;
}

.stock-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 2px;
}

.stock-item-code {
  font-size: 12px;
  color: #9CA3AF;
}

.stock-item-price {
  text-align: right;
}

.stock-item-price-value {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

.stock-item-price-change {
  font-size: 12px;
  color: #9CA3AF;
}

/* ===== 个人中心 ===== */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #165DFF, #4080FF);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.profile-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.profile-menu {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background-color 0.15s;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:active {
  background-color: #F9FAFB;
}

/* ===== 免责声明 ===== */
.disclaimer-bar {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 8px 12px;
  background-color: #F7F8FA;
  color: #C0C4CC;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  z-index: 99;
  border-top: 1px solid #EBEDF0;
}

/* ===== 底部Tab导航栏 ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 65px;
  padding-bottom: 8px;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.05);
  border-top: 0.5px solid #E8E8E8;
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 20px;
  -webkit-user-select: none;
  user-select: none;
}

.tab-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg);
  transition: filter 0.2s;
}

.tab-item.active .tab-icon {
  filter: brightness(0) saturate(100%) invert(33%) sepia(55%) saturate(500%) hue-rotate(205deg) brightness(90%);
}

.tab-label {
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF;
  transition: color 0.2s;
}

.tab-item.active .tab-label {
  color: #2563EB;
}

/* 主页指示器 */
.home-indicator {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 2.5px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 3px;
  z-index: 101;
}

/* ===== Toast组件 ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  text-align: center;
  max-width: 260px;
  word-break: break-all;
  animation: toastFadeIn 0.2s ease;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== Loading组件 ===== */
.loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E8E8E8;
  border-top-color: #165DFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 10px;
  font-size: 14px;
  color: #86909C;
}

/* ===== 模态对话框 ===== */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
}

.modal-dialog {
  width: 280px;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
}

.modal-title {
  padding: 20px 16px 8px;
  font-size: 17px;
  font-weight: 600;
  color: #1D2129;
  text-align: center;
}

.modal-content {
  padding: 8px 16px 20px;
  font-size: 14px;
  color: #4E5969;
  text-align: center;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  border-top: 1px solid #E8E8E8;
}

.modal-btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.modal-btn:active {
  background-color: #F3F4F6;
}

.modal-btn-cancel {
  color: #86909C;
  border-right: 1px solid #E8E8E8;
}

.modal-btn-confirm {
  color: #165DFF;
}

/* ===== 数据详情页 ===== */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-info-item {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.detail-info-label {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.detail-info-value {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

/* ===== 操作记录列表 ===== */
.trade-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F9FAFB;
  border-radius: 10px;
  padding: 12px;
}

.trade-action {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 48px;
  text-align: center;
}

.trade-action.buy {
  color: #DC2626;
  background: #FEF2F2;
}

.trade-action.sell {
  color: #10B981;
  background: #ECFDF5;
}

.trade-action.hold {
  color: #6B7280;
  background: #F3F4F6;
}

.trade-info {
  flex: 1;
}

.trade-time {
  font-size: 12px;
  color: #9CA3AF;
}

.trade-code {
  font-size: 13px;
  font-weight: 500;
  color: #1F2937;
}

.trade-check {
  font-size: 12px;
  font-weight: 500;
}

.trade-check.correct {
  color: #10B981;
}

.trade-check.wrong {
  color: #DC2626;
}

/* ===== 深色模式 ===== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #17171A;
    color: #F2F3F5;
  }

  #app {
    background-color: #17171A;
  }

  .container {
    background-color: #17171A;
  }

  .card {
    background-color: #232324;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .text-primary {
    color: #F2F3F5;
  }

  .text-secondary {
    color: #C9CDD4;
  }

  .text-tertiary {
    color: #86909C;
  }

  .gray-bg {
    background-color: #333333;
  }

  .primary-bg {
    background-color: #2F67FF;
  }

  .light-blue-bg {
    background-color: #1E3A8A;
  }

  .success-color {
    color: #27BA5C;
  }

  .warning-color {
    color: #F75F5F;
  }

  .error-color {
    color: #F75F5F;
  }

  .tab-bar {
    background-color: #17171A;
    border-top-color: #333333;
  }

  .disclaimer-bar {
    background-color: #1E1E20;
    color: #6B7280;
    border-top-color: #333333;
  }

  .page-header {
    background-color: #2F67FF;
  }

  .content-area {
    background-color: #232324;
  }

  .fund-item,
  .stock-item,
  .menu-item {
    background-color: #232324;
  }

  .fund-item:active,
  .stock-item:active,
  .menu-item:active {
    background-color: #2A2A2C;
  }

  .fund-name,
  .stock-item-name {
    color: #F2F3F5;
  }

  .empty-favorites,
  .empty-ai-advice {
    background-color: #232324;
  }

  .empty-text,
  .empty-ai-advice .empty-title {
    color: #F2F3F5;
  }

  .search-bar {
    background-color: #232324;
  }

  .search-input {
    color: #F2F3F5;
  }

  .search-results {
    background-color: #232324;
  }

  .search-result-item {
    border-bottom-color: #333333;
  }

  .search-result-name {
    color: #F2F3F5;
  }

  .profile-card {
    background: linear-gradient(135deg, #2F67FF, #4080FF);
  }

  .profile-menu {
    background-color: #232324;
  }

  .profile-menu-item {
    border-bottom-color: #333333;
  }

  .detail-info-item {
    background-color: #2A2A2C;
  }

  .detail-info-value {
    color: #F2F3F5;
  }

  .trade-item {
    background-color: #232324;
  }

  .modal-dialog {
    background-color: #232324;
  }

  .modal-title {
    color: #F2F3F5;
  }

  .modal-content {
    color: #C9CDD4;
  }

  .modal-buttons {
    border-top-color: #333333;
  }

  .modal-btn-cancel {
    color: #86909C;
    border-right-color: #333333;
  }

  .loading-mask {
    background: rgba(0, 0, 0, 0.6);
  }

  .home-indicator {
    background: rgba(255, 255, 255, 0.15);
  }
}
