.btn:focus {
  box-shadow: none !important; /* 移除阴影（Bootstrap 默认的 focus 效果） */
  outline: none !important;   /* 移除浏览器默认的 outline */
}

table.dataTable.fixed-columns thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 100;
}

table.dataTable td:first-child, table.dataTable th:first-child {
  background-color: #fff;
}

/* 针对 table class 的 css */
.table {
  font-size: 12px;
  white-space: nowrap;
}

.table thead th {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: visible;
  min-width: 10px;
}

/* 针对 datatable 的 css */
.DTFC_LeftBodyWrapper {
  position: relative !important;
  z-index: 2 !important;
  background-color: white;
  width: auto !important;
  /* iOS 特定修复 */
  -webkit-overflow-scrolling: touch !important;
  transform: translate3d(0, 0, 0) !important;
  overflow: hidden !important;
}

.DTFC_LeftBodyLiner {
  overflow: visible !important;
  height: auto !important;
  background-color: white;
  /* -webkit-overflow-scrolling: touch !important; */
  /* clip: unset !important; */
  /* iOS 修复 */
  transform: translate3d(0, 0, 0) !important;
  position: relative !important;
}

.DTFC_LeftHeadWrapper {
  z-index: 2 !important; /* 比固定列更高 */
  background-color: white;
  /* position: relative !important; */
  /* iOS 修复 */
  -webkit-overflow-scrolling: touch !important;
  transform: translate3d(0, 0, 0) !important;
}

.dataTables_wrapper .dataTables_length label {
  font-size: 10px;
}

.dataTables_wrapper .dataTables_filter label {
  font-size: 10px;
}

.dataTables_info {
  font-size: 10px;
}

.paginate_button {
  font-size: 10px;
}

.nav-link {
  color: inherit;
  text-decoration: none;
}

/* 底部导航栏 */
.card {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  background: #fff; /* 确保背景色覆盖 */
  z-index: 1000;
}

.submit-botton {
  position: fixed;
  bottom: 12%;
  z-index: 1;
  left: 0;
}

.nav-item .nav-link.active:not([role="tab"]) {
  color: var(--bs-blue) !important;
  border: none !important;
  animation: none;
  text-decoration: none;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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


.watermark {
    position: absolute;
    top: 80%;
    left: 20%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    user-select: none;
}


/* 消息提醒样式 */
.message-badge {
  position: absolute;
  top: 3px;
  right: 8px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

/* 确保选择器优先级足够高 */
input.form-control::placeholder {
  color: #ddd !important; /* 浅灰色 */
  opacity: 0.8; /* 防止某些浏览器默认降低透明度 */
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 自定义 Tooltip 样式 */
.tooltip .tooltip-inner {
  background-color: rgba(74, 85, 104, 0.95) !important; /* 深灰色带 95% 不透明度 */
  background-color: #4a5568;  /* 深灰色背景 */
  color: #f8f9fa;            /* 浅色文字 */
  border-radius: 6px;         /* 圆角 */
  padding: 8px 12px;          /* 内边距 */
  font-size: 14px;            /* 字体大小 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 阴影 */
  max-width: 300px;           /* 最大宽度 */
  backdrop-filter: blur(0); /* 禁用可能存在的模糊效果 */
  opacity: 1 !important; /* 强制不透明度为 100% */
}

/* 缩小问号图标 */
.tooltip-icon {
  font-size: 0.8em !important;  /* 原始大小的80% */
  transform: scale(0.5);        /* 可选：更精确的缩放 */
  display: inline-block;        /* 确保transform生效 */
  margin-left: 4px;            /* 调整间距 */
  vertical-align: middle;      /* 与文字对齐 */
  background-color: #eee !important;
}

/* 箭头颜色 */
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #4a5568;  /* 与背景色一致 */
}
/* 其他方向箭头同理 */
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #4a5568;
}
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: #4a5568;
}
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: #4a5568;
}


/* 文件：home.css 或 global.css */
:root {
    --ios-viewport-height: 100vh; /* 默认值 */
}

/* 控制页面的滑动方式 */
/* 修复 iOS PWA 问题 */
html, body {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--ios-viewport-height);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available !important;
    }
}

/* 投资选项样式 */
.investment-option {
  display: inline-block;
  padding: 15px 25px;
  margin: 10px;
  border-radius: 8px;
  font-weight: 500;
  color: white;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  min-width: 300px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* 悬停效果 */
.investment-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 点击效果 */
.investment-option:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 不同选项的颜色 */
.conservative {
  background: linear-gradient(135deg, #4a89dc, #5d9cec);
  border-left: 4px solid #3a7bd5;
}

.moderate {
  background: linear-gradient(135deg, #3bafda, #4fc1e9);
  border-left: 4px solid #2c9ec8;
}

.aggressive {
  background: linear-gradient(135deg, #37bc9b, #48cfad);
  border-left: 4px solid #28a786;
}

.custom {
  background: linear-gradient(135deg, #8cc152, #a0d468);
  border-left: 4px solid #7cb342;
}

/* 添加小箭头图标 */
.investment-option::after {
  content: "→";
  margin-left: 10px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.investment-option:hover::after {
  margin-left: 15px;
  opacity: 1;
}

.investment-prompt {
  background-color: #f8f9fa;
  border-radius: 25px;
  color: #2c3e50;
  font-weight: 500;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.investment-prompt:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.prompt-icon {
  margin-left: 10px;
  font-weight: bold;
  color: #3498db;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-5px);
  }
  60% {
      transform: translateY(-3px);
  }
}
