/* ========== 派Bot去旅行 弹窗 (升级版) ========== */
:root {
  --bt-bg: #ffffff;
  --bt-bg-hero-1: #f0f9ff;
  --bt-bg-hero-2: #eff6ff;
  --bt-bg-hero-3: #f5f3ff;
  --bt-bg-overlay: #ffffff;
  --bt-surface: #f5f8ff;
  --bt-glass: linear-gradient(160deg, #f8fbff 0%, #eef4ff 50%, #f5f3ff 100%);
  --bt-bg-ticket: linear-gradient(135deg, rgba(239,246,255,.9) 0%, rgba(249,250,251,.92) 100%);
  --bt-bg-foot-sep: #e2e8f0;
  --bt-bg-ghost-hover: rgba(37, 99, 235, .07);

  --bt-text-primary: #0f172a;
  --bt-text-secondary: #475569;
  --bt-text-tertiary: #64748b;
  --bt-text-muted: #94a3b8;
  --bt-text-ticket-label: #64748b;
  --bt-text-ticket-value: #0f172a;
  --bt-text-ticket-hours: #334155;
  --bt-text-vip: #b45309;
  --bt-text-btn-ghost: #2563eb;

  --bt-border-ticket: rgba(191, 219, 254, .6);

  --bt-shadow-card:
    0 32px 80px -16px rgba(15, 23, 42, .22),
    0 12px 32px -8px rgba(37, 99, 235, .18);
  --bt-shadow-mascot:
    0 18px 28px -6px rgba(37, 99, 235, .28),
    0 6px 12px -4px rgba(99, 102, 241, .2);
  --bt-shadow-btn:
    0 12px 24px -6px rgba(37, 99, 235, .35),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  --bt-shadow-btn-claim:
    0 12px 24px -6px rgba(245, 158, 11, .4),
    inset 0 1px 0 rgba(255, 255, 255, .25);

  --bt-mask: rgba(15, 23, 42, 0.55);
  --bt-close-bg: rgba(255, 255, 255, .75);
  --bt-close-color: #64748b;
  --bt-close-bg-hover: #ffffff;
  --bt-close-color-hover: #0f172a;
  --bt-close-shadow: 0 4px 12px rgba(99, 102, 241, .12);

  /* 状态主题色（默认 = idle 蓝） */
  --bt-accent: #2563eb;
  --bt-accent-soft: rgba(37, 99, 235, .14);
  --bt-accent-soft2: rgba(99, 102, 241, .10);
}

[data-theme="dark"] {
  --bt-bg: #1e1b2e;
  --bt-bg-hero-1: #20243a;
  --bt-bg-hero-2: #1c1f38;
  --bt-bg-hero-3: #251f44;
  --bt-bg-overlay: #1e1b2e;
  --bt-surface: #1e1b2e;
  --bt-glass: linear-gradient(160deg, #221d36 0%, #1d2138 50%, #271f44 100%);
  --bt-bg-ticket: linear-gradient(135deg, rgba(42,37,69,.9) 0%, rgba(38,42,85,.92) 100%);
  --bt-bg-foot-sep: #3a3552;
  --bt-bg-ghost-hover: rgba(99, 102, 241, .12);

  --bt-text-primary: #f1f0fb;
  --bt-text-secondary: #cbd5e1;
  --bt-text-tertiary: #94a3b8;
  --bt-text-muted: #64748b;
  --bt-text-ticket-label: #94a3b8;
  --bt-text-ticket-value: #e7e5fb;
  --bt-text-ticket-hours: #cbd5e1;
  --bt-text-vip: #fbbf24;
  --bt-text-btn-ghost: #a78bfa;

  --bt-border-ticket: rgba(99, 102, 241, .28);

  --bt-shadow-card:
    0 32px 80px -16px rgba(0, 0, 0, .6),
    0 12px 32px -8px rgba(0, 0, 0, .4);
  --bt-shadow-mascot:
    0 18px 28px -6px rgba(0, 0, 0, .5),
    0 6px 12px -4px rgba(0, 0, 0, .3);

  --bt-mask: rgba(0, 0, 0, .68);
  --bt-close-bg: rgba(30, 27, 46, .8);
  --bt-close-color: #cbd5e1;
  --bt-close-bg-hover: #2a2540;
  --bt-close-color-hover: #f1f0fb;
  --bt-close-shadow: 0 4px 12px rgba(0, 0, 0, .4);

  --bt-accent-soft: rgba(96, 165, 250, .12);
  --bt-accent-soft2: rgba(99, 102, 241, .10);
}

/* ===== 状态主题色（作用于整卡 data-state） ===== */
.bot-travel-card[data-state="idle"] {
  --bt-accent: #2563eb;
  --bt-accent-soft: rgba(37, 99, 235, .14);
  --bt-accent-soft2: rgba(99, 102, 241, .10);
}
.bot-travel-card[data-state="traveling"] {
  --bt-accent: #0891b2;
  --bt-accent-soft: rgba(6, 182, 212, .14);
  --bt-accent-soft2: rgba(14, 165, 233, .10);
}
.bot-travel-card[data-state="claimable"] {
  --bt-accent: #f59e0b;
  --bt-accent-soft: rgba(245, 158, 11, .14);
  --bt-accent-soft2: rgba(239, 68, 68, .10);
}
.bot-travel-card[data-state="cooling"],
.bot-travel-card[data-state="done"] {
  --bt-accent: #64748b;
  --bt-accent-soft: rgba(100, 116, 139, .12);
  --bt-accent-soft2: rgba(100, 116, 139, .08);
}

#botTravelModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bt-mask);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#botTravelModal.show { display: flex; overflow-y: auto; padding: 20px 12px; }
body.bot-travel-locked { overflow: hidden; }

.bot-travel-wrapper {
  position: relative;
  width: 760px;
  max-width: 92vw;
  max-height: min(800px, 96vh);
  background: var(--bt-glass);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  box-shadow:
    0 40px 100px -24px rgba(15, 23, 42, .30),
    0 16px 50px -12px rgba(37, 99, 235, .22),
    inset 0 1px 0 rgba(255, 255, 255, .65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-theme="dark"] .bot-travel-wrapper {
  border-color: rgba(255, 255, 255, .1);
  box-shadow:
    0 40px 100px -24px rgba(0, 0, 0, .65),
    0 16px 50px -12px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bot-travel-card {
  width: 100%;
  height: 560px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  animation: btPop .32s cubic-bezier(.2, .9, .3, 1.1);
}
.bot-travel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0 0 28px 28px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  z-index: 10;
}
@keyframes btPop {
  from { transform: scale(.92) translateY(20px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* ===== 顶部 header：融入玻璃面板的极简标题栏 ===== */
.bt-header {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 14px;
  background: transparent;
}
.bt-header::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(100, 116, 139, .18), transparent);
  pointer-events: none;
}
.bt-header-brand {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.2px;
  user-select: none;
}
.bt-header-brand-icon {
  width: 18px; height: 18px;
  color: var(--bt-accent);
  display: inline-flex;
}
.bt-header-brand-icon svg { width: 100%; height: 100%; }
.bt-header-brand-text {
  line-height: 1;
  background: linear-gradient(135deg, var(--bt-accent), #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bot-travel-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: transparent;
  border-radius: 9px;
  color: var(--bt-text-tertiary);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.bot-travel-close:hover { background: rgba(15, 23, 42, .06); color: var(--bt-text-primary); }
.bot-travel-close:active { transform: translateY(-50%) scale(.9); }
[data-theme="dark"] .bot-travel-close:hover { background: rgba(255, 255, 255, .1); }

/* ===== 主视觉区：场景化旅行舞台 ===== */
.bot-travel-hero {
  position: relative;
  width: 42%;
  min-width: 280px;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(140% 90% at 20% 20%, var(--bt-accent-soft), transparent 54%),
    radial-gradient(110% 70% at 90% 10%, var(--bt-accent-soft2), transparent 48%),
    linear-gradient(145deg, var(--bt-bg-hero-1) 0%, var(--bt-bg-hero-2) 45%, var(--bt-bg-hero-3) 100%);
  border-radius: 26px 0 0 26px;
}
.bot-travel-hero::after {
  content: '';
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 64px;
  background: linear-gradient(to left, var(--bt-surface), transparent);
  z-index: 3;
}
.bot-travel-stage {
  position: relative;
  width: 240px; height: 240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.bot-travel-mascot {
  width: 196px;
  height: 196px;
  transition: transform .6s ease, opacity .4s ease;
  transform-origin: center;
  filter: drop-shadow(var(--bt-shadow-mascot));
}
.bot-travel-mascot svg { width: 100%; height: 100%; }
.bot-travel-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: btIdle 3.6s ease-in-out infinite;
}
@keyframes btIdle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-1.5deg); }
}
.bot-travel-stage.is-traveling .bot-travel-mascot,
.bot-travel-stage.is-traveling .bot-travel-mascot-img {
  animation: btFly 2.4s ease-in-out infinite alternate;
}
@keyframes btFly {
  from { transform: translateX(0)    translateY(0)    scale(1)    rotate(0deg); }
  to   { transform: translateX(70px) translateY(-22px) scale(.85) rotate(6deg); }
}
.bot-travel-stage.is-returning .bot-travel-mascot,
.bot-travel-stage.is-returning .bot-travel-mascot-img {
  animation: btReturn .7s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes btReturn {
  0%   { transform: translateX(-220px) translateY(-55px) scale(.55) rotate(-12deg); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateX(0)      translateY(0)    scale(1)  rotate(0deg);  opacity: 1; }
}
.bt-return-trail {
  position: absolute;
  top: 50%; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--bt-accent) 50%, transparent 100%);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  opacity: .45;
  z-index: 2;
  pointer-events: none;
}
.bot-travel-card[data-state="claimable"] .bt-return-trail {
  animation: btReturnTrail .7s cubic-bezier(.2, .9, .3, 1.1) forwards;
}
@keyframes btReturnTrail {
  0%   { transform: translateY(-50%) scaleX(0); opacity: .6; }
  100% { transform: translateY(-50%) scaleX(1); opacity: 0; }
}

/* 星光点缀 */
.bt-sparkle {
  position: absolute;
  font-size: 14px;
  line-height: 1;
  opacity: .85;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, .55));
  pointer-events: none;
  z-index: 5;
  animation: btTwinkle 2.2s ease-in-out infinite;
}
.bt-sparkle-1 { top: 22%; left: 22%; animation-delay: 0s; }
.bt-sparkle-2 { top: 34%; right: 20%; font-size: 11px; animation-delay: .7s; }
.bt-sparkle-3 { top: 62%; left: 28%; font-size: 10px; animation-delay: 1.4s; }
@keyframes btTwinkle {
  0%, 100% { opacity: .4; transform: scale(.85) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.15) rotate(12deg); }
}

/* 云层 */
.bt-cloud {
  position: absolute;
  background: rgba(255, 255, 255, .9);
  border-radius: 50px;
  filter: blur(.4px);
  opacity: .85;
  z-index: 1;
}
[data-theme="dark"] .bt-cloud { background: rgba(255, 255, 255, .14); }
.bt-cloud-1 { width: 66px; height: 22px; top: 18%; left: 12%; animation: btDrift 9s ease-in-out infinite; }
.bt-cloud-2 { width: 46px; height: 16px; top: 30%; right: 15%; animation: btDrift 11s ease-in-out infinite reverse; }
.bt-cloud-3 { width: 54px; height: 18px; top: 60%; left: 60%; opacity: .55; animation: btDrift 13s ease-in-out infinite; }
@keyframes btDrift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(12px); }
}

/* 航线 */
.bt-route {
  position: absolute;
  top: 68%; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--bt-accent-soft) 0 8px, transparent 8px 15px);
  border-radius: 2px;
  z-index: 2;
}
.bt-route-dot {
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  background: var(--bt-bg-overlay);
  border: 2px solid var(--bt-accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px var(--bt-accent-soft);
}
.bt-route-start { left: 0; }
.bt-route-end {
  right: 0;
  background: var(--bt-accent);
  animation: btRoutePulse 2s ease-out infinite;
}
@keyframes btRoutePulse {
  0%   { box-shadow: 0 0 0 0 var(--bt-accent-soft); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
.bt-route-label {
  position: absolute;
  top: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bt-text-tertiary);
  letter-spacing: .3px;
  white-space: nowrap;
  text-shadow: 0 1px 2px var(--bt-bg-overlay);
}
.bt-route-label-start { left: -4px; }
.bt-route-label-end   { right: -4px; color: var(--bt-accent); }
.bt-route-plane {
  position: absolute;
  top: 50%;
  left: 0;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-55%) scaleX(-1);
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, .18));
  z-index: 3;
  animation: btPlaneFly 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btPlaneFly {
  0%   { left: 0; transform: translateY(-55%) scaleX(-1) rotate(-4deg); }
  50%  { transform: translateY(-70%) scaleX(-1) rotate(2deg); }
  100% { left: 100%; transform: translateY(-55%) scaleX(-1) rotate(-4deg); }
}
.bot-travel-card[data-state="traveling"] .bt-route-plane { animation-duration: 1.1s; }
.bot-travel-card[data-state="claimable"] .bt-route-plane { animation-duration: 3.2s; opacity: .7; }

/* 目的地终点光晕（与图鉴 spot 呼应） */
.bt-route-dot.bt-route-end {
  box-shadow:
    0 0 0 0 var(--bt-accent-soft),
    0 0 0 0 rgba(139, 92, 246, .25);
  animation: btDestPulse 2.4s ease-out infinite;
}
@keyframes btDestPulse {
  0%   { box-shadow: 0 0 0 0 var(--bt-accent-soft), 0 0 0 0 rgba(139, 92, 246, .35); }
  70%  { box-shadow: 0 0 0 10px transparent, 0 0 0 22px transparent; }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}

/* 航线粒子：从基地飞向目的地的小光点 */
.bt-route::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px; height: 6px;
  background: var(--bt-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px var(--bt-accent-soft);
  transform: translateY(-50%);
  opacity: .8;
  animation: btRouteParticle 2.4s linear infinite;
  pointer-events: none;
}
@keyframes btRouteParticle {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .9; }
  100% { left: 100%; opacity: 0; }
}

/* 目的地标签：emoji + 名称 + 主题册 pill，与图鉴数据同源 */
.bt-route-label-end {
  right: -4px;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 5px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bt-border-ticket);
  border-radius: 9999px;
  color: var(--bt-text-primary);
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
}
[data-theme="dark"] .bt-route-label-end {
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.bt-dest-emoji { font-size: 14px; line-height: 1; }
.bt-dest-name { font-size: 12px; font-weight: 700; }
.bt-dest-region {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--bt-bg-overlay);
  border: 1px solid var(--bt-border-ticket);
  color: var(--bt-text-tertiary);
}
.bt-dest-region[data-rarity="rare"] { color: #3b82f6; border-color: rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .1); }
.bt-dest-region[data-rarity="epic"] { color: #a855f7; border-color: rgba(168, 85, 247, .35); background: rgba(168, 85, 247, .1); }
.bt-dest-region[data-rarity="legendary"] { color: #f59e0b; border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .1); }

/* ===== 内容层 ===== */
.bot-travel-overlay {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  padding: 36px 40px;
  border-radius: 0 28px 28px 0;
  gap: 6px;
}
/* 历史面板展开时：右侧内容区独立滚动（左侧 hero 不动），
   切到 flex-start 避免 justify-content:center 把顶部内容裁掉导致无法滚动 */
.bot-travel-overlay.is-history-open {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 28px;
  padding-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--bt-border-ticket) transparent;
}
.bot-travel-overlay.is-history-open::-webkit-scrollbar { width: 8px; }
.bot-travel-overlay.is-history-open::-webkit-scrollbar-thumb {
  background: var(--bt-border-ticket);
  border-radius: 8px;
}
.bot-travel-overlay.is-history-open::-webkit-scrollbar-track { background: transparent; }
#botTravelModal.show .bot-travel-overlay > * {
  animation: btFadeUp .42s cubic-bezier(.2, .9, .3, 1.05) both;
}
#botTravelModal.show .bot-travel-overlay > *:nth-child(1) { animation-delay: .02s; }
#botTravelModal.show .bot-travel-overlay > *:nth-child(2) { animation-delay: .06s; }
#botTravelModal.show .bot-travel-overlay > *:nth-child(3) { animation-delay: .10s; }
#botTravelModal.show .bot-travel-overlay > *:nth-child(4) { animation-delay: .14s; }
#botTravelModal.show .bot-travel-overlay > *:nth-child(5) { animation-delay: .18s; }
#botTravelModal.show .bot-travel-overlay > *:nth-child(6) { animation-delay: .22s; }
#botTravelModal.show .bot-travel-overlay > *:nth-child(7) { animation-delay: .26s; }
#botTravelModal.show .bot-travel-overlay > *:nth-child(8) { animation-delay: .30s; }
@keyframes btFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bot-travel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bt-accent);
  background: var(--bt-accent-soft);
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
  transition: color .2s ease, background .2s ease;
}

.bot-travel-letter { margin: 0 0 16px; }
.bot-travel-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--bt-text-primary);
  margin: 0 0 8px;
  letter-spacing: -.4px;
  line-height: 1.2;
}
.bot-travel-sub {
  font-size: 14px;
  color: var(--bt-text-tertiary);
  line-height: 1.6;
  margin: 0;
}

/* ===== 旅行票券 ===== */
.bot-travel-ticket {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.55) 100%),
    var(--bt-bg-ticket);
  border: 1px solid var(--bt-border-ticket);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 0 0 18px;
  overflow: visible;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="dark"] .bot-travel-ticket {
  background:
    linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.04) 100%),
    var(--bt-bg-ticket);
}
.bot-travel-ticket::before,
.bot-travel-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  background: var(--bt-bg-overlay);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px var(--bt-border-ticket);
}
.bot-travel-ticket::before { left: -7px; }
.bot-travel-ticket::after  { right: -7px; }
.bt-ticket-stamp {
  position: absolute;
  top: -16px; right: -12px;
  width: 44px; height: 44px;
  border: 2px solid var(--bt-accent-soft);
  background: var(--bt-bg-overlay);
  color: var(--bt-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transform: rotate(12deg);
  opacity: 1;
  box-shadow:
    0 6px 16px -4px rgba(15, 23, 42, .16),
    0 0 0 4px var(--bt-bg);
}
.bt-ticket-stamp.bt-coupon-trigger {
  transform: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bt-ticket-stamp.bt-coupon-trigger:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 10px 22px -6px rgba(15, 23, 42, .22),
    0 0 0 5px var(--bt-bg);
}
.bt-ticket-stamp.bt-coupon-trigger:active { transform: scale(.95); }
.bt-coupon-trigger-icon { pointer-events: none; }
.bt-coupon-trigger-badge {
  position: absolute;
  top: -2px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(220, 38, 38, .35);
  pointer-events: none;
}
.bt-coupon-trigger-badge.is-zero { display: none; }
.bt-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.bt-ticket-cell-right { text-align: right; padding-right: 6px; }
.bt-ticket-label {
  font-size: 13px;
  color: var(--bt-text-ticket-label);
  margin-bottom: 4px;
}
.bt-ticket-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--bt-text-ticket-value);
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}
.bt-ticket-value small {
  font-size: 15px;
  color: var(--bt-text-tertiary);
  font-weight: 600;
}
.bt-ticket-hours {
  font-size: 18px;
  font-weight: 700;
  color: var(--bt-text-ticket-hours);
  font-variant-numeric: tabular-nums;
}
.bt-ticket-vip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--bt-border-ticket);
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-text-vip);
}
.bt-ticket-chip {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  flex: none;
  box-shadow:
    0 2px 6px rgba(245, 158, 11, .35),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  text-shadow: 0 1px 1px rgba(180, 83, 9, .35);
}

/* ===== 状态 / 倒计时（统一为计时卡片） ===== */
.bot-travel-timer {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 8px 0 18px;
  padding: 18px 24px;
  background: var(--bt-accent-soft);
  border: 1px solid var(--bt-accent-soft);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.bot-travel-timer.show { display: flex; }
.bot-travel-status {
  font-size: 14px;
  color: var(--bt-text-secondary);
  font-weight: 600;
  text-align: center;
  margin: 0;
}
.bot-travel-countdown {
  font-size: 34px;
  font-weight: 800;
  color: var(--bt-accent);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  display: none;
  text-align: center;
  margin: 0;
}
.bot-travel-countdown.show {
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 旅行中 / 冷却中：计时卡片更轻、更透气 */
.bot-travel-card[data-state="traveling"] .bot-travel-timer,
.bot-travel-card[data-state="cooling"] .bot-travel-timer {
  background: rgba(255, 255, 255, .55);
}

.bot-travel-foot {
  font-size: 13px;
  color: var(--bt-text-muted);
  padding: 10px 0 0;
  border-top: 1px dashed var(--bt-bg-foot-sep);
  margin-bottom: 16px;
  line-height: 1.5;
  text-align: center;
}

/* ===== 按钮 ===== */
.bot-travel-actions { display: flex; flex-direction: column; gap: 8px; }
.bot-travel-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
  box-shadow:
    0 10px 28px -8px rgba(37, 99, 235, .42),
    0 4px 8px -4px rgba(37, 99, 235, .25),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}
.bot-travel-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: translateX(-100%);
}
.bot-travel-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.bot-travel-btn:hover:not(:disabled)::after { animation: btShimmer 1.2s ease infinite; }
.bot-travel-btn:active:not(:disabled) { transform: scale(.98); }
@keyframes btShimmer { to { transform: translateX(100%); } }
.bot-travel-btn:disabled {
  background: #cbd5e1;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}
.bot-travel-btn.is-claim {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: var(--bt-shadow-btn-claim);
}
.bot-travel-btn-ghost {
  width: 100%;
  height: 46px;
  border: 1px solid var(--bt-border-ticket);
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  color: var(--bt-text-btn-ghost);
  cursor: pointer;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .15s ease, transform .1s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.bot-travel-btn-ghost:hover {
  background: var(--bt-bg-ghost-hover);
  border-color: var(--bt-accent-soft);
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
  transform: translateY(-1px);
}
.bot-travel-btn-ghost:active { transform: scale(.98); }
[data-theme="dark"] .bot-travel-btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
[data-theme="dark"] .bot-travel-btn-ghost:hover {
  background: rgba(99, 102, 241, .14);
  border-color: rgba(99, 102, 241, .34);
}

/* ===== 历史面板（旅行手账时间线）===== */
.bot-travel-history {
  margin-top: 14px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bt-border-ticket);
  border-radius: 16px;
  padding: 14px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
[data-theme="dark"] .bot-travel-history {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.bt-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bt-history-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bt-text-primary);
  letter-spacing: 0;
}
.bt-history-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--bt-text-muted);
  background: rgba(255, 255, 255, .5);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--bt-border-ticket);
}
[data-theme="dark"] .bt-history-count {
  background: rgba(255, 255, 255, .08);
}
.bt-history-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  position: relative;
}
.bt-history-item:last-child { padding-bottom: 0; }
.bt-history-time {
  width: 38px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 2px;
}
.bt-history-day {
  font-size: 13px;
  font-weight: 700;
  color: var(--bt-text-primary);
  line-height: 1.25;
}
.bt-history-clock {
  font-size: 11px;
  color: var(--bt-text-muted);
  line-height: 1.25;
  margin-top: 2px;
}
.bt-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bt-accent);
  margin-top: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
  position: relative;
}
.bt-history-dot::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 2px;
  height: calc(100% + 16px);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--bt-accent), transparent);
  opacity: .25;
}
.bt-history-item:last-child .bt-history-dot::after { display: none; }
.bt-history-body {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 12px;
  padding: 9px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
[data-theme="dark"] .bt-history-body {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}
.bt-history-main {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bt-history-points {
  font-size: 15px;
  font-weight: 700;
  color: var(--bt-text-primary);
}
.bt-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.bt-history-tag {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border-radius: 20px;
  padding: 2px 7px;
  letter-spacing: .3px;
}
.bt-history-tag.is-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: 0 3px 8px -3px rgba(245, 158, 11, .4);
}
.bt-history-tag.is-coupon {
  background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  box-shadow: 0 3px 8px -3px rgba(37, 99, 235, .4);
}
.bt-history-empty, .bt-history-loading {
  font-size: 13px;
  color: var(--bt-text-tertiary);
  text-align: center;
  padding: 10px 0;
}

/* ===== 角标（与弹窗分离，独立定义） ===== */
.mascot-travel-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  backdrop-filter: blur(2px);
  transition: transform .15s ease, filter .15s ease;
}
.mascot-travel-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: .25;
  filter: blur(5px);
  z-index: -1;
}
.mascot-travel-badge.is-visible {
  display: flex;
  animation: btBadgePop .22s ease;
}
@keyframes btBadgePop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.mascot-travel-badge:hover { transform: scale(1.12); filter: brightness(1.08); }
.mascot-travel-badge:active { transform: scale(.92); }
.mascot-travel-badge.is-idle {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 10px rgba(99, 102, 241, .4);
  animation: btBadgeFloat 2.4s ease-in-out infinite;
}
.mascot-travel-badge.is-traveling {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  box-shadow: 0 4px 10px rgba(14, 165, 233, .4);
  animation: btBadgeDash 1.8s ease-in-out infinite;
}
.mascot-travel-badge.is-claimable {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  animation: btBadgePulse 1.1s ease-in-out infinite;
}
.mascot-travel-badge.is-hidden { display: none; }
@keyframes btBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes btBadgeDash {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}
@keyframes btBadgePulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 4px 12px rgba(245, 158, 11, .45); }
  50%      { transform: scale(1.16); box-shadow: 0 6px 16px rgba(239, 68, 68, .6); }
}

/* ===== 平板/手机端：恢复单列竖屏 ===== */
@media (max-width: 720px) {
  .bot-travel-wrapper {
    width: 100%;
    max-width: 96vw;
    max-height: 94vh;
    border-radius: 24px;
  }
  .bt-header { height: 50px; padding: 0 10px; }
  .bt-header-brand-text { display: none; }
  .bot-travel-close { right: 10px; }
  .bot-travel-card {
    flex-direction: column;
    min-height: auto;
    height: auto;
    border-radius: 0 0 24px 24px;
  }
  .bot-travel-card::after { border-radius: 0 0 24px 24px; }
  .bot-travel-hero {
    width: 100%;
    height: 220px;
    min-height: auto;
    border-radius: 24px 24px 0 0;
  }
  .bot-travel-hero::after {
    left: 0; right: 0; top: auto; bottom: -1px;
    width: auto; height: 40px;
    background: linear-gradient(to top, var(--bt-bg), transparent);
  }
  .bt-route { top: 54%; }
  .bot-travel-stage { width: 180px; height: 180px; }
  .bot-travel-mascot { width: 172px; height: 172px; }
  .bot-travel-overlay {
    flex: none;
    padding: 18px 22px 22px;
    border-radius: 0 0 24px 24px;
  }
  .bot-travel-title { font-size: 20px; }
  .bot-travel-sub { font-size: 13px; }
  .bot-travel-ticket {
    border-radius: 16px;
    padding: 16px 18px;
  }
  .bt-ticket-value { font-size: 24px; }
  .bt-ticket-value small { font-size: 13px; }
  .bt-ticket-hours { font-size: 16px; }
  .bot-travel-btn { height: 50px; font-size: 15px; }
  .bot-travel-timer { padding: 14px 18px; }
  .bot-travel-countdown { font-size: 26px; }
  .bot-travel-codex { border-radius: 0 0 24px 24px; min-height: 0; height: auto; }
  .bt-codex-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
  }
}

/* ===== 更窄机型（≤ 420px）保底 ===== */
@media (max-width: 420px) {
  .bot-travel-wrapper { border-radius: 22px; }
  .bot-travel-card { border-radius: 0 0 22px 22px; }
  .bot-travel-card::after { border-radius: 0 0 22px 22px; }
  .bot-travel-hero { height: 196px; border-radius: 22px 22px 0 0; }
  .bot-travel-stage { width: 168px; height: 168px; }
  .bot-travel-mascot { width: 160px; height: 160px; }
  .bot-travel-overlay { padding: 14px 18px 18px; border-radius: 0 0 22px 22px; }
  .bot-travel-title { font-size: 18px; }
  .bt-ticket-value { font-size: 22px; }
  .bot-travel-btn { height: 46px; font-size: 15px; }
  .bot-travel-countdown { font-size: 22px; }
  .bot-travel-codex { border-radius: 0 0 22px 22px; }
}

/* ===== 更窄机型（≤ 360px）保底 ===== */
@media (max-width: 360px) {
  .bot-travel-hero { height: 172px; }
  .bot-travel-stage { width: 148px; height: 148px; }
  .bot-travel-mascot { width: 140px; height: 140px; }
  .bot-travel-overlay { padding: 12px 16px 16px; }
  .bot-travel-title { font-size: 17px; }
  .bt-ticket-value { font-size: 20px; }
}

/* ===== 出行券弹窗 ===== */
.bt-coupon-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bt-coupon-modal.show { display: flex; }
.bt-coupon-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.bt-coupon-modal-panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 80vh;
  background: var(--bt-bg-overlay);
  border-radius: 20px;
  box-shadow: var(--bt-shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: btCouponPop .22s ease backwards;
}
@keyframes btCouponPop {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.bt-coupon-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--bt-border-ticket);
}
.bt-coupon-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bt-text-primary);
}
.bt-coupon-modal-title-icon { color: var(--bt-accent); }
.bt-coupon-modal-close {
  width: 28px; height: 28px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--bt-text-tertiary);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.bt-coupon-modal-close:hover { background: var(--bt-accent-soft); color: var(--bt-text-primary); }
.bt-coupon-modal-body {
  padding: 14px 18px 10px;
  overflow-y: auto;
}
.bt-coupon-modal-sub {
  font-size: 12px;
  color: var(--bt-text-tertiary);
  margin-bottom: 12px;
  line-height: 1.5;
}
.bt-coupon-list { display: flex; flex-direction: column; gap: 8px; }
.bt-coupon-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px solid var(--bt-border-ticket);
  background: var(--bt-bg-card);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.bt-coupon-opt:hover { border-color: var(--bt-accent); }
.bt-coupon-opt:active { transform: scale(.99); }
.bt-coupon-opt input {
  accent-color: var(--bt-accent);
  width: 18px; height: 18px;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}
.bt-coupon-opt.is-checked {
  border-color: var(--bt-accent);
  background: var(--bt-accent-soft);
}
.bt-coupon-opt.is-disabled { opacity: .45; cursor: not-allowed; }
.bt-coupon-opt.is-disabled:hover { border-color: var(--bt-border-ticket); }
.bt-coupon-opt-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.bt-coupon-opt-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  color: var(--bt-text-primary);
}
.bt-coupon-opt-name b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--bt-accent); color: #fff;
  border-radius: 999px; font-size: 10px;
}
.bt-coupon-opt-desc { font-size: 12px; color: var(--bt-text-tertiary); line-height: 1.4; }
.bt-coupon-opt-tag {
  flex: none;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bt-accent-soft); color: var(--bt-accent);
}
.bt-coupon-modal-foot {
  padding: 10px 18px 16px;
  border-top: 1px solid var(--bt-border-ticket);
  display: flex; justify-content: flex-end;
}
.bt-coupon-modal-btn {
  border: none; border-radius: 12px;
  padding: 10px 22px;
  background: var(--bt-accent); color: #fff;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px var(--bt-accent);
  transition: transform .1s ease, box-shadow .15s ease;
}
.bt-coupon-modal-btn:hover { transform: translateY(-1px); }
.bt-coupon-modal-btn:active { transform: scale(.97); }

/* ===== 归来明信片（claimable 庆祝 / cooling 归档） ===== */
.bot-travel-return {
  position: relative;
  margin: 0 0 18px;
}
.bt-return-inner {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .5) 100%),
    var(--bt-bg-ticket);
  border: 1px solid var(--bt-border-ticket);
  border-radius: 18px;
  padding: 20px 22px 18px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 14px 34px -14px rgba(15, 23, 42, .2),
    inset 0 1px 0 rgba(255, 255, 255, .7);
}
[data-theme="dark"] .bt-return-inner {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .05) 100%),
    var(--bt-bg-ticket);
}
.bot-travel-return.is-claim .bt-return-inner {
  animation: btReturnPop .42s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes btReturnPop {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.bt-return-top { display: flex; align-items: flex-start; gap: 12px; }
.bt-return-stamp {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  background: var(--bt-accent-soft);
  border: 1.5px dashed var(--bt-accent);
  color: var(--bt-accent);
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 4px var(--bt-bg-overlay);
}
.bt-return-head { min-width: 0; flex: 1 1 auto; }
.bt-return-kicker {
  font-size: 13px; font-weight: 800;
  color: var(--bt-accent); letter-spacing: .3px;
}
.bt-return-dest {
  margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  font-size: 15px; font-weight: 700;
  color: var(--bt-text-primary);
}
.bt-return-dest-emoji { font-size: 18px; line-height: 1; }
.bt-return-dest-name.is-generic { color: var(--bt-text-secondary); }
.bt-return-dest-region {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bt-bg-overlay);
  border: 1px solid var(--bt-border-ticket);
  color: var(--bt-text-tertiary);
}
.bt-return-dest-region[data-rarity="rare"] { color: #3b82f6; border-color: rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .1); }
.bt-return-dest-region[data-rarity="epic"] { color: #a855f7; border-color: rgba(168, 85, 247, .35); background: rgba(168, 85, 247, .1); }
.bt-return-dest-region[data-rarity="legendary"] { color: #f59e0b; border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .1); }
.bt-return-divider {
  position: relative;
  text-align: center;
  margin: 14px 0;
}
.bt-return-divider::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--bt-border-ticket) 0 6px, transparent 6px 12px);
}
.bt-return-divider span {
  position: relative;
  background: var(--bt-bg-overlay);
  padding: 0 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--bt-text-muted);
}
.bt-return-reward {
  display: flex; align-items: baseline; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.bt-return-reward-label { font-size: 13px; color: var(--bt-text-tertiary); }
.bt-return-reward-num {
  font-size: 40px; font-weight: 800; line-height: 1;
  color: var(--bt-accent);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.bt-return-reward-unit { font-size: 15px; font-weight: 700; color: var(--bt-text-secondary); }
.bt-return-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.bt-return-tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; color: #fff;
}
.bt-return-tag.is-vip { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); box-shadow: 0 3px 8px -3px rgba(245, 158, 11, .4); }
.bt-return-tag.is-coupon { background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%); box-shadow: 0 3px 8px -3px rgba(37, 99, 235, .4); }
.bt-return-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px; color: var(--bt-text-muted);
  line-height: 1.5;
}
.bt-return-confetti {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  border-radius: 18px;
}
.bt-confetti {
  position: absolute; top: -8px;
  width: 8px; height: 8px; border-radius: 2px;
  opacity: 0;
  animation: btConfetti 1.4s ease-in forwards;
}
@keyframes btConfetti {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(220px) rotate(360deg); opacity: 0; }
}

/* ===== 尊重系统「减少动态效果」偏好（无障碍）===== */
@media (prefers-reduced-motion: reduce) {
  .bot-travel-card,
  .bot-travel-mascot,
  .bot-travel-btn::after,
  .bt-cloud,
  .bt-route-plane,
  .bt-route-end,
  .bt-sparkle-1,
  .bt-sparkle-2,
  .bt-sparkle-3,
  .bt-return-trail,
  .bot-travel-kicker,
  .bot-travel-letter,
  .bot-travel-ticket,
  .bot-travel-foot,
  .bot-travel-actions,
  .mascot-travel-badge,
  .bt-return-inner {
    animation: none !important;
    transition: none !important;
  }
  .bot-travel-mascot { transform: none !important; }
  .bot-travel-btn { background-position: 0 0 !important; }
  .bt-confetti { display: none !important; }
}

/* ===== 图鉴（收集养成）===== */
/* 分段控制器（融入 header 的 frosted 药丸轨道） */
.bt-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 4px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 4px 14px -6px rgba(37, 99, 235, .18);
}
[data-theme="dark"] .bt-tabs {
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 14px -6px rgba(0, 0, 0, .4);
}
.bt-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--bt-text-tertiary);
  font-size: 14px; font-weight: 600;
  padding: 7px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: color .2s ease, background .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.bt-tab:hover { color: var(--bt-text-secondary); background: rgba(15, 23, 42, .05); }
.bt-tab.is-active { color: var(--bt-text-primary); }
.bt-tab::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bt-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .22s cubic-bezier(.34, 1.26, .64, 1);
}
.bt-tab.is-active::after { width: 24px; }
[data-theme="dark"] .bt-tab:hover { background: rgba(255, 255, 255, .08); }

.bot-travel-codex {
  width: 100%;
  flex: 1 1 auto;
  height: 560px;
  padding: 14px;
  overflow-y: auto;
  background: transparent;
  border-radius: 0 0 28px 28px;
}
.bt-codex-progress { margin-bottom: 14px; }
.bt-codex-progress-bar {
  height: 10px; border-radius: 6px;
  background: var(--bt-bg-foot-sep);
  overflow: hidden;
}
.bt-codex-progress-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--bt-accent), #8b5cf6);
  border-radius: 6px; transition: width .4s ease;
}
.bt-codex-progress-text { margin-top: 6px; }
.bt-codex-progress-line {
  font-size: 12px; line-height: 1.5;
  color: var(--bt-text-tertiary);
}
.bt-codex-progress-line.is-secondary { font-size: 11px; }
.bt-codex-section-title {
  font-size: 13px; font-weight: 700;
  color: var(--bt-text-secondary);
  margin: 14px 0 8px;
}
.bt-codex-milestones { display: flex; flex-direction: column; gap: 8px; }
.bt-codex-ms {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--bt-bg-overlay);
  border: 1px solid var(--bt-border-ticket);
  opacity: .65;
}
.bt-codex-ms.is-done {
  opacity: 1;
  border-color: var(--bt-accent);
  background: var(--bt-accent-soft);
}
.bt-codex-ms-label { flex: 1; min-width: 0; font-size: 13px; color: var(--bt-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-codex-ms-meta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bt-codex-ms-reward { font-size: 12px; color: var(--bt-text-tertiary); white-space: nowrap; }
.bt-codex-ms-flag { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
.bt-codex-ms-flag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-codex-ms-flag .bt-icon-check { stroke: var(--bt-success); }
.bt-codex-ms-flag .bt-icon-lock { stroke: var(--bt-text-tertiary); }
.bt-codex-ms.is-done .bt-codex-ms-flag .bt-icon-check { stroke: var(--bt-success); }

.bt-codex-card.is-locked .bt-icon-q {
  width: 28px; height: 28px; margin: 4px 0;
  fill: none; stroke: var(--bt-text-tertiary);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: .35;
}

.bt-codex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
}
.bt-codex-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px; border-radius: 14px;
  background: var(--bt-bg-overlay);
  border: 1px solid var(--bt-border-ticket);
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease;
  text-align: center;
}
.bt-codex-card:hover { transform: translateY(-2px); box-shadow: var(--bt-shadow-mascot); }
.bt-codex-card.is-locked { cursor: default; opacity: .55; }
.bt-codex-card.is-locked:hover { transform: none; box-shadow: none; }
.bt-codex-card.is-locked .bt-codex-emoji { filter: grayscale(1); opacity: .5; }
.bt-codex-card.is-locked .bt-codex-name { color: var(--bt-text-muted); }
.bt-codex-card.is-locked .bt-codex-rarity { background: var(--bt-bg-foot-sep); color: var(--bt-text-tertiary); }
.bt-codex-lock {
  position: absolute; top: 5px; right: 5px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.bt-codex-lock svg {
  width: 14px; height: 14px; fill: none;
  stroke: var(--bt-text-tertiary); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bt-codex-emoji { font-size: 28px; line-height: 1; }
.bt-codex-name { font-size: 12px; color: var(--bt-text-secondary); line-height: 1.2; }
.bt-codex-rarity { font-size: 10px; padding: 1px 6px; border-radius: 6px; }
.bt-codex-visits {
  position: absolute; font-size: 9px;
  background: var(--bt-accent); color: #fff;
  border-radius: 6px; padding: 0 4px;
}
.bt-codex-card { position: relative; }
.r-common  .bt-codex-rarity { background: #e2e8f0; color: #475569; }
.r-rare    .bt-codex-rarity { background: #dbeafe; color: #2563eb; }
.r-epic    .bt-codex-rarity { background: #ede9fe; color: #7c3aed; }
.r-legendary .bt-codex-rarity { background: #fef3c7; color: #b45309; }
.bt-codex-card.is-shiny {
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, .35);
}
.bt-codex-loading, .bt-codex-empty {
  font-size: 13px; color: var(--bt-text-tertiary);
  text-align: center; padding: 24px 0;
}
.bt-codex-lore {
  margin-top: 14px; padding: 14px;
  border-radius: 12px;
  background: var(--bt-bg-ticket);
  border: 1px solid var(--bt-border-ticket);
  text-align: center;
}
.bt-codex-lore-emoji { font-size: 40px; }
.bt-codex-lore-name { font-size: 15px; font-weight: 700; color: var(--bt-text-primary); margin: 4px 0; }
.bt-codex-lore-region { font-size: 12px; color: var(--bt-text-tertiary); margin-bottom: 8px; }
.bt-codex-lore-text { font-size: 13px; color: var(--bt-text-secondary); line-height: 1.6; }
.bt-codex-lore-close {
  margin-top: 12px; padding: 6px 16px; border-radius: 10px;
  border: 1px solid var(--bt-border-ticket);
  background: var(--bt-bg-overlay); color: var(--bt-text-secondary);
  cursor: pointer; font-size: 13px;
}

/* ===== 卡片悬浮预览（hover / focus 触发）===== */
.bt-codex-preview {
  position: fixed;
  z-index: 99999;
  width: 250px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bt-bg);
  border: 1px solid var(--bt-border-ticket);
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .35), 0 8px 22px -10px rgba(37, 99, 235, .22);
  opacity: 0;
  transform: translateY(4px) scale(.97);
  transform-origin: left center;
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.bt-codex-preview.show { opacity: 1; transform: translateY(0) scale(1); }
.bt-codex-preview::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.bt-codex-pv-top { display: flex; align-items: center; gap: 12px; }
.bt-codex-pv-emoji {
  font-size: 40px; line-height: 1;
  width: 56px; height: 56px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--bt-bg-overlay);
  border: 1px solid var(--bt-border-ticket);
}
.bt-codex-pv-name { font-size: 15px; font-weight: 800; color: var(--bt-text-primary); line-height: 1.25; }
.bt-codex-pv-rarity { margin-top: 3px; font-size: 11px; font-weight: 700; }
.bt-codex-preview.r-common .bt-codex-pv-rarity { color: #64748b; }
.bt-codex-preview.r-rare .bt-codex-pv-rarity { color: #2563eb; }
.bt-codex-preview.r-epic .bt-codex-pv-rarity { color: #7c3aed; }
.bt-codex-preview.r-legendary .bt-codex-pv-rarity { color: #b45309; }
.bt-codex-preview.is-shiny { border-color: #fbbf24; box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .35), 0 0 0 2px rgba(251, 191, 36, .4); }
.bt-codex-preview.is-locked { border-style: dashed; }
.bt-codex-preview.is-locked .bt-codex-pv-emoji { filter: grayscale(1); opacity: .6; }
.bt-codex-preview.is-locked .bt-codex-pv-rarity { color: var(--bt-text-tertiary); }
.bt-codex-preview.is-locked .bt-icon-q {
  width: 30px; height: 30px; fill: none; stroke: var(--bt-text-tertiary);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55;
}
.bt-codex-pv-meta {
  margin: 12px 0 6px; padding-top: 10px;
  border-top: 1px dashed var(--bt-border-ticket);
  font-size: 12px; color: var(--bt-text-tertiary);
}
.bt-codex-pv-lore { font-size: 13px; color: var(--bt-text-secondary); line-height: 1.6; }



/* 旅行日记卡片 */
.bt-history-where { font-size: 12px; color: var(--bt-text-tertiary); margin-right: 6px; }
.bt-history-diary {
  margin-top: 8px; padding: 8px 10px;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(236,72,153,.06));
  border-left: 3px solid rgba(99,102,241,.4); border-radius: 8px;
  font-size: 12.5px; line-height: 1.6; color: var(--bt-text-secondary);
}
.bt-history-diary.is-shiny { border-left-color: #fbbf24; background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(245,158,11,.06)); }
.bt-history-diary-mark { margin-right: 4px; }
