.tech-tree-node-active {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.55), 0 0 18px rgba(34, 211, 238, 0.35);
  border-color: rgba(34, 211, 238, 0.65) !important;
}

.promo-carousel-track {
  transition: transform 0.6s ease;
}

section[aria-label="Featured"] {
  overflow: hidden;
}

/* ── Header / Nav ── */
.bs-site-header .bs-main-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bs-site-header .bs-main-nav::-webkit-scrollbar {
  display: none;
}
.bs-nav-link.is-active {
  color: rgb(167, 139, 250);
}

/* ── Dashboard stat cards ── */
.bs-stat-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.65));
  padding: 1.25rem;
}
.bs-stat-card strong {
  font-size: 1.5rem;
  line-height: 1.2;
  color: rgb(34, 211, 238);
}

/* ── 通用 Tab / 分段按钮选中态 ── */
.tab-btn.is-active,
button.is-active[data-tab],
button.is-active[data-side],
button.is-active[data-plan-tab] {
  outline: none;
}
/* 记录页等独立 tab：白底+深色字，一眼能看出当前项 */
.tab-btn.is-active:not(.bs-tab-btn) {
  background: rgb(255, 255, 255) !important;
  color: rgb(15, 23, 42) !important;
  border-color: rgb(255, 255, 255) !important;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55), 0 4px 14px rgba(34, 211, 238, 0.25);
}
.tab-btn:not(.is-active):not(.bs-tab-btn) {
  opacity: 0.85;
}

/* ── Savings page (ref alignment) ── */
.bs-savings-tabs .bs-tab-btn {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.65);
  color: rgb(148, 163, 184);
}
.bs-savings-tabs .bs-tab-btn:last-child { border-right: 0; }
.bs-savings-tabs .bs-tab-btn.is-active {
  background: rgb(255, 255, 255);
  color: rgb(15, 23, 42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.bs-subtabs button {
  background: transparent;
  border: none;
  color: rgb(148, 163, 184);
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.bs-subtabs button.is-active {
  color: rgb(34, 211, 238);
  border-bottom-color: rgb(34, 211, 238);
  font-weight: 600;
}
.bs-vip-card {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 30px rgba(109, 40, 217, 0.15);
}
.bs-vip-hero {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.95));
}
.bs-vip-hero-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}
.bs-vip-hero-1 { background: radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.35), transparent 55%), linear-gradient(135deg, #1e1b4b, #0f172a); }
.bs-vip-hero-2 { background: radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.4), transparent 50%), linear-gradient(135deg, #312e81, #0f172a); }
.bs-vip-hero-3 { background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.35), transparent 55%), linear-gradient(135deg, #1e3a5f, #0f172a); }
.bs-vip-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border: 1px solid rgba(34, 197, 94, 0.65);
  color: #4ade80;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bs-vip-vault {
  display: none;
}
.bs-vip-title {
  background: linear-gradient(90deg, #c084fc, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.bs-vip-rate {
  font-size: 2rem;
  font-weight: 800;
  color: rgb(34, 211, 238);
  line-height: 1.1;
}
.bs-vip-stat p {
  letter-spacing: 0.01em;
}
.bs-vip-cta {
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.bs-acc-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.65rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(226, 232, 240);
  cursor: pointer;
}
.bs-loan-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0.05));
  border: 2px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  position: relative;
}
.bs-loan-icon::before {
  content: "◎";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: rgb(34, 211, 238);
}
.bs-dep-section {
  border-color: rgba(34, 211, 238, 0.2);
}
.bs-loan-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.55));
}
.price-up { color: rgb(34, 197, 94); }
.price-down { color: rgb(239, 68, 68); }

/* ── Mobile drawer：实心底 + 可点（不依赖 Tailwind 任意值） ── */
#bs-mobile-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99980 !important;
}
#bs-mobile-drawer.hidden {
  display: none !important;
}
#bs-mobile-drawer:not(.hidden) {
  display: block !important;
}
#bs-mobile-drawer-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  z-index: 1 !important;
}
#bs-mobile-drawer .bs-drawer-panel {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: min(18rem, 86vw) !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0b1220 !important;
  border-right: 1px solid rgba(34, 211, 238, 0.35) !important;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55) !important;
  padding: 1rem !important;
  pointer-events: auto !important;
  color: #e2e8f0 !important;
}
#bs-mobile-drawer .bs-drawer-panel a {
  color: #cbd5e1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 3 !important;
}
#bs-mobile-drawer .bs-drawer-panel a:hover,
#bs-mobile-drawer .bs-drawer-panel a:active {
  background: rgba(34, 211, 238, 0.12) !important;
  color: #a78bfa !important;
}
#bs-mobile-drawer .bs-drawer-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 0.75rem !important;
}
#bs-mobile-drawer .bs-drawer-lang {
  flex-shrink: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.25) !important;
  padding-top: 0.75rem !important;
  margin-top: 0.5rem !important;
}

/* ── layer 弹层：暗色站 body 浅色字继承到白底弹窗 → 字看不见 ── */
.layui-layer,
.layui-layer-dialog,
.layui-layer-msg:not(.layui-layer-hui) {
  color: #0f172a !important;
}
.layui-layer .layui-layer-content,
.layui-layer-dialog .layui-layer-content,
.layui-layer-msg:not(.layui-layer-hui) .layui-layer-content {
  color: #0f172a !important;
}
.layui-layer-hui,
.layui-layer-hui .layui-layer-content {
  color: #ffffff !important;
}
.layui-layer-title {
  color: #0f172a !important;
}

/* 自建提示条（不依赖 layer 白底） */
#bs-toast-host {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 2147483000;
  max-width: min(92vw, 360px);
  pointer-events: none;
}
.bs-toast {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #f8fafc !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  word-break: break-word;
}
.bs-toast.is-ok {
  border-color: rgba(34, 197, 94, 0.55);
}
.bs-toast.is-err {
  border-color: rgba(251, 191, 36, 0.65);
}

/* 首页 · 我们的优势 手风琴 */
.bs-advantages-accordion details.bs-advantage-item summary::-webkit-details-marker {
  display: none;
}
.bs-advantages-accordion .bs-advantage-item[open] .bs-advantage-chevron {
  transform: rotate(180deg);
}
.bs-advantages-accordion .bs-advantage-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 12px;
}
.bs-advantages-accordion .bs-advantage-item summary:hover span {
  color: var(--color-warning, #fbbf24);
}

.bs-advantages-tree-stage {
  min-height: 520px;
}
.advantages-tree-desktop .bs-advantages-tree-stage {
  min-height: 560px;
}
.bs-advantages-tech-tree-canopy .tech-tree-node-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.advantages-tree-desktop .bs-advantages-tech-tree-canopy .tech-tree-node-title {
  max-width: 7.5rem;
  font-size: 11px;
  -webkit-line-clamp: 3;
  white-space: normal;
}

/* 移动端：隐藏科技树装饰，仅展示手风琴列表 */
.advantages-tree-mobile .advantages-tech-tree-stage {
  display: none !important;
}
.advantages-tree-mobile .bs-advantages-accordion {
  border-top: none;
  padding: 0.25rem 0.85rem 1rem;
}
.advantages-tree-mobile .bs-advantage-item {
  margin-bottom: 0.55rem;
  border: 1px solid rgba(40, 120, 255, 0.28);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(7, 17, 32, 0.92), rgba(3, 8, 20, 0.88));
  box-shadow: inset 0 0 0 1px rgba(246, 248, 255, 0.04);
}
.advantages-tree-mobile .bs-advantage-item summary {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  line-height: 1.45;
}
.advantages-tree-mobile .bs-advantage-item[open] {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 18px rgba(40, 120, 255, 0.18);
}
.advantages-tree-mobile .bs-advantage-item .text-muted {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* 防止 iOS 聚焦输入框自动放大（字号 <16px 会触发） */
input.bs-nozoom-input,
select.bs-nozoom-input,
textarea.bs-nozoom-input,
input[type="text"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="email"],
input[type="password"],
select,
textarea {
  font-size: 16px !important;
  line-height: 1.4;
}

/* 底部导航固定，不受键盘/轻微缩放影响 */
nav[aria-label="Mobile navigation"] {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

