/* 旗舰深海星图检索导购舱 + 沉浸式互动历史实付热销榜（不使用 GIF，采用静态氛围立绘暗纹 + 60fps 光斑/微倾/进度条互动） */
body {
  background:
    radial-gradient(1100px 420px at 18% 0%, rgba(30, 64, 175, 0.07), transparent 70%),
    radial-gradient(900px 360px at 85% 4%, rgba(217, 119, 6, 0.05), transparent 65%),
    linear-gradient(180deg, #ecf1f8 0, #f4f7fb 26rem, #f5f7fb 100%);
}

/* 1. 顶栏与旗舰导购检索舱 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    radial-gradient(680px 200px at 50% -20%, rgba(56, 189, 248, 0.14), transparent 72%),
    linear-gradient(115deg, #09192b 0%, #0f2742 52%, #153454 100%);
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(234, 197, 125, 0.38);
  box-shadow: 0 8px 26px rgba(7, 19, 36, 0.2);
  backdrop-filter: none;
}

.topbar .topbar-main {
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
  grid-template-columns: auto minmax(280px, 600px) auto;
  justify-content: space-between;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.topbar .brand {
  gap: 11px;
}

.topbar .brand-portrait {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(242, 208, 139, 0.8);
  box-shadow: 0 3px 12px rgba(4, 12, 24, 0.45), 0 0 0 3px rgba(242, 208, 139, 0.12);
  background: #10263b;
}

.topbar .brand-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.voyage-brand {
  display: grid;
  gap: 1px;
  color: #fff8eb;
  line-height: 1.15;
}

.voyage-brand strong {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.voyage-brand small {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: #bfd1e3;
  white-space: nowrap;
}

/* 旗舰级检索框 + 热门一键直达胶囊 */
.search-deck {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.topbar .compact-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 4px 5px 4px 13px;
  box-shadow: 0 4px 16px rgba(5, 16, 31, 0.22), inset 0 1px 0 #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar .compact-search:focus-within {
  background: #ffffff;
  border-color: #f5b942;
  box-shadow: 0 6px 22px rgba(5, 16, 31, 0.28), 0 0 0 3px rgba(245, 185, 66, 0.28);
}

.topbar .search-icon {
  color: #1e3a8a;
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.topbar .compact-search:focus-within .search-kbd {
  display: none;
}

.topbar .search-btn {
  height: 34px;
  padding: 0 17px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f3d999 0%, #e5be6d 100%);
  color: #0e2338;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(180, 125, 24, 0.25);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.topbar .search-btn:hover {
  filter: brightness(1.05);
}

.quick-intent-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  padding: 0 2px;
}

.quick-intent-bar::-webkit-scrollbar {
  display: none;
}

.quick-intent-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: #9cb3c9;
}

.intent-chip {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #dbe7f4;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.intent-chip:hover,
.intent-chip.is-active {
  background: rgba(245, 204, 122, 0.2);
  border-color: rgba(245, 204, 122, 0.62);
  color: #ffebb8;
}

.topbar .header-actions {
  gap: 8px;
}

.topbar .hdr-btn,
.topbar .hdr-time-btn {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e6eef5;
}

.topbar .hdr-btn:hover,
.topbar .hdr-btn.active,
.topbar .hdr-time-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(244, 214, 152, 0.58);
  color: #ffe8b3;
}

.topbar .hdr-badge {
  color: #ffe4a8;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.topbar .hdr-time-btn .time-dot,
.topbar .hdr-time-btn #freshnessShortText {
  display: none;
}

.time-clock {
  width: 18px;
  height: 18px;
}

.buyer-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 148px;
  min-height: 38px;
  height: 38px;
  padding: 0 13px 0 9px;
  background: linear-gradient(180deg, #f5e2b8, #e6c889);
  border: 1px solid #ffedb8;
  border-radius: 999px;
  color: #0e2438;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(6, 16, 30, 0.25);
  transition: filter 0.14s ease;
}

.buyer-entry:hover {
  filter: brightness(1.05);
}

.buyer-entry svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.buyer-entry span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar a:focus-visible,
.topbar button:focus-visible {
  outline: 2px solid #ffe39b;
  outline-offset: 2px;
}

/* 2. 沉浸式深海星图互动历史实付热销榜 (#voyageSection) */
.voyage-section {
  --aura-color: rgba(245, 179, 53, 0.26);
  --aura-secondary: rgba(56, 189, 248, 0.16);
  --aura-art: url('./luffy.webp');
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  margin: 10px 0 6px;
  padding: 16px 18px 13px;
  border-radius: 18px;
  border: 1px solid rgba(148, 179, 218, 0.34);
  background: linear-gradient(132deg, #09172a 0%, #0e233e 48%, #143154 100%);
  box-shadow:
    0 14px 34px rgba(10, 25, 47, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.voyage-section[hidden] {
  display: none;
}

/* 随交互切换品类光晕与右侧氛围立绘暗纹 */
.voyage-section[data-aura="openai"] {
  --aura-color: rgba(245, 179, 53, 0.28);
  --aura-art: url('./luffy.webp');
}

.voyage-section[data-aura="mail"],
.voyage-section[data-aura="sms"],
.voyage-section[data-aura="mail_sms"] {
  --aura-color: rgba(251, 146, 60, 0.26);
  --aura-art: url('./nami.webp');
}

.voyage-section[data-aura="gemini"] {
  --aura-color: rgba(56, 189, 248, 0.28);
  --aura-art: url('./chopper.webp');
}

.voyage-section[data-aura="muse"],
.voyage-section[data-aura="coding"] {
  --aura-color: rgba(52, 211, 153, 0.25);
  --aura-art: url('./zoro.webp');
}

.voyage-section[data-aura="claude"],
.voyage-section[data-aura="grok"] {
  --aura-color: rgba(167, 139, 250, 0.25);
  --aura-art: url('./luffy.webp');
}

.voyage-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* 精细航海经纬网格线 */
.voyage-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 86% 24%, rgba(251, 191, 36, 0.28) 0, transparent 42%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25));
}

/* 动态极光光晕 */
.voyage-bg-glow {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(460px 240px at 16% 18%, var(--aura-color), transparent 70%),
    radial-gradient(420px 260px at 82% 65%, var(--aura-secondary), transparent 72%);
  transition: background 0.45s ease;
}

/* 右侧静态氛围立绘暗纹（柔和渐隐，绝不压卡片正文） */
.voyage-bg-art {
  position: absolute;
  top: -8%;
  right: -2%;
  bottom: -8%;
  width: min(420px, 44%);
  background-image: var(--aura-art);
  background-size: cover;
  background-position: center 22%;
  opacity: 0.2;
  filter: saturate(1.08) contrast(1.04);
  mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.32) 48%, transparent 92%);
  -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.32) 48%, transparent 92%);
  transition: background-image 0.35s ease, opacity 0.35s ease;
}

.voyage-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 12px;
}

.voyage-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.voyage-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.voyage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.24), rgba(217, 119, 6, 0.32));
  border: 1px solid rgba(251, 207, 116, 0.55);
  color: #fde69e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.voyage-heading h2 {
  font-size: 18.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.voyage-stats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.voyage-stats[hidden] {
  display: none;
}

.voyage-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 22, 40, 0.55);
  color: #cbd8e8;
  font-size: 12px;
  line-height: 26px;
  white-space: nowrap;
}

.voyage-stat-pill.is-today {
  border-color: rgba(251, 191, 36, 0.62);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(217, 119, 6, 0.16));
  color: #fff2c6;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.18);
}

.voyage-stat-pill.is-week {
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(14, 41, 74, 0.68);
  color: #e0f2fe;
}

.voyage-stat-dot {
  align-self: center;
  width: 6px;
  height: 6px;
  margin-right: 1px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
  flex: 0 0 auto;
}

.voyage-stat-label,
.voyage-stat-unit {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.9;
}

.voyage-stat-num {
  font-size: 14.5px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #fde68a;
}

.voyage-stat-pill.is-today .voyage-stat-num {
  color: #ffd659;
  font-size: 15px;
}

.voyage-stat-pill.is-units .voyage-stat-num {
  color: #93c5fd;
}

.voyage-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

/* 榜单内品类实时筛选胶囊 */
.voyage-cat-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  border-radius: 999px;
  background: rgba(8, 20, 36, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.voyage-cat-tabs::-webkit-scrollbar {
  display: none;
}

.voyage-cat-tabs[hidden] {
  display: none;
}

.voyage-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.voyage-cat-metric {
  font-size: 10.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  opacity: 0.88;
}

.voyage-cat-pill.is-active .voyage-cat-metric {
  color: #5c3305;
  opacity: 0.95;
}

.voyage-cat-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.voyage-cat-pill.is-active {
  background: linear-gradient(135deg, #f3da9b, #e3bc68);
  color: #0e2238;
  box-shadow: 0 2px 8px rgba(245, 185, 66, 0.3);
}

.voyage-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.voyage-controls button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 34, 58, 0.72);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.voyage-controls .voyage-auto-btn {
  width: auto;
  padding: 0 10px;
  gap: 6px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #dbeafe;
  white-space: nowrap;
}

.voyage-auto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  flex: 0 0 auto;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.voyage-controls .voyage-auto-btn[data-state="paused"] .voyage-auto-dot {
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.55);
}

.voyage-controls .voyage-auto-btn[data-state="off"] .voyage-auto-dot {
  background: #94a3b8;
  box-shadow: none;
}

.voyage-controls button:hover:not(:disabled) {
  background: rgba(245, 200, 108, 0.22);
  border-color: rgba(251, 211, 130, 0.72);
  color: #ffebb8;
  transform: translateY(-1px);
}

.voyage-controls button:disabled {
  opacity: 0.32;
  cursor: default;
}

.voyage-rail-shell {
  position: relative;
  min-width: 0;
}

.voyage-rail-shell::before,
.voyage-rail-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 32px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.voyage-rail-shell::before {
  left: 0;
  background: linear-gradient(270deg, rgba(11, 26, 46, 0), rgba(11, 26, 46, 0.82));
}

.voyage-rail-shell::after {
  right: 0;
  background: linear-gradient(90deg, rgba(16, 39, 68, 0), rgba(16, 39, 68, 0.86));
}

.voyage-rail-shell[data-can-prev="true"]::before {
  opacity: 1;
}

.voyage-rail-shell[data-can-next="true"]::after {
  opacity: 1;
}

@keyframes voyageCardRise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.voyage-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(326px, calc((100% - 28px) / 3.25), 378px);
  gap: 13px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  padding: 4px 6px 8px 2px;
  scrollbar-width: none;
  cursor: grab;
}

.voyage-rail::-webkit-scrollbar {
  display: none;
}

.voyage-rail.is-auto-gliding {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.voyage-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* 海贼王手持名片典藏横卡：左侧真实角色名片插画 + 右侧实时热卖规格与价格 */
.voyage-card {
  --mx: 50%;
  --my: 30%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  min-height: 152px;
  padding: 11px 13px 11px 11px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 232, 179, 0.16), transparent 72%),
    linear-gradient(165deg, rgba(22, 44, 74, 0.9) 0%, rgba(12, 27, 48, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  text-decoration: none;
  scroll-snap-align: start;
  scroll-margin-inline-start: 2px;
  opacity: 0.92;
  animation: voyageCardRise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transition:
    opacity 0.22s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.voyage-role-frame {
  position: relative;
  width: 124px;
  height: 128px;
  align-self: center;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid rgba(251, 207, 116, 0.45);
  background: #0b1c32;
  box-shadow:
    0 6px 16px rgba(4, 12, 26, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.voyage-card.is-rank-1 .voyage-role-frame {
  border-color: rgba(253, 224, 138, 0.85);
}

.voyage-role-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 18%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.voyage-card:hover .voyage-role-img {
  transform: scale(1.05);
}

.voyage-role-caption {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(8, 20, 38, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(253, 230, 138, 0.28);
  color: #fde69e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voyage-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.voyage-card.is-in-view {
  opacity: 1;
}

.voyage-card:hover,
.voyage-card.is-hovered {
  opacity: 1;
  border-color: rgba(248, 212, 134, 0.62);
  box-shadow:
    0 12px 26px rgba(4, 12, 26, 0.42),
    0 0 0 1px rgba(248, 212, 134, 0.22);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px);
}

/* 前三名冠军金、亚军铂银、季军暖铜高光识别 */
.voyage-card.is-rank-1 {
  border-color: rgba(246, 200, 106, 0.52);
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(253, 224, 138, 0.22), transparent 72%),
    linear-gradient(165deg, rgba(44, 38, 28, 0.72) 0%, rgba(17, 34, 58, 0.94) 58%);
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.3);
}

.voyage-card.is-rank-2 {
  border-color: rgba(147, 197, 253, 0.42);
}

.voyage-card.is-rank-3 {
  border-color: rgba(110, 231, 183, 0.38);
}

.voyage-card.is-rank-1::before,
.voyage-card.is-rank-2::before,
.voyage-card.is-rank-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.voyage-card.is-rank-1::before {
  background: linear-gradient(90deg, #f59e0b, #fde68a, #d97706);
}

.voyage-card.is-rank-2::before {
  background: linear-gradient(90deg, #60a5fa, #dbeafe, #3b82f6);
}

.voyage-card.is-rank-3::before {
  background: linear-gradient(90deg, #34d399, #a7f3d0, #10b981);
}

.voyage-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.voyage-rank {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.voyage-card.is-rank-1 .voyage-rank {
  background: linear-gradient(135deg, #fde68a, #f5b942);
  color: #451a03;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.voyage-card.is-rank-2 .voyage-rank {
  background: linear-gradient(135deg, #e2e8f0, #93c5fd);
  color: #0f172a;
}

.voyage-card.is-rank-3 .voyage-rank {
  background: linear-gradient(135deg, #a7f3d0, #5eead4);
  color: #064e3b;
}

.voyage-item-brand {
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.32);
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 6px;
  padding: 2px 7px;
}

.voyage-card[data-shop="16688"] .voyage-item-brand {
  background: rgba(14, 116, 144, 0.34);
  border-color: rgba(103, 232, 249, 0.3);
  color: #cffafe;
}

.voyage-card[data-muse="true"] .voyage-item-brand {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(110, 231, 183, 0.3);
  color: #a7f3d0;
}

.voyage-card-mid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.voyage-item-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.42;
  min-height: calc(1.42em * 2);
  color: #f8fafc;
  word-break: break-word;
}

.voyage-item-spec {
  font-size: 11.5px;
  color: #94acc6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 历史实付热度条 */
.voyage-heat-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1px;
}

.voyage-heat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.voyage-sold-count {
  color: #fde69e;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voyage-stock-live {
  flex: 0 0 auto;
  color: #93c5fd;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.voyage-heat-track {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
}

.voyage-heat-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.35s ease;
}

.voyage-card.is-rank-1 .voyage-heat-fill {
  background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.voyage-card.is-rank-2 .voyage-heat-fill {
  background: linear-gradient(90deg, #60a5fa, #bfdbfe);
}

.voyage-card.is-rank-3 .voyage-heat-fill {
  background: linear-gradient(90deg, #34d399, #a7f3d0);
}

.voyage-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.voyage-price {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.voyage-card.is-rank-1 .voyage-price {
  color: #fde68a;
}

.voyage-price small {
  font-size: 12.5px;
  font-weight: 700;
  margin-right: 1px;
  opacity: 0.9;
}

.voyage-card-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.voyage-card:hover .voyage-card-cta {
  background: #f3da9b;
  border-color: #f3da9b;
  color: #0e2238;
  transform: translateX(2px);
}

/* 底部可交互滑动进度轨道 */
.voyage-footer-bar {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.voyage-progress-track {
  flex: 1;
  max-width: 240px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.voyage-progress-thumb {
  height: 100%;
  width: 24%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3da9b, #f59e0b);
  transition: width 0.15s ease;
}

.voyage-rank-status {
  font-size: 11.5px;
  color: #a9bed6;
  font-weight: 600;
  white-space: nowrap;
}

.voyage-card:focus-visible,
.voyage-controls button:focus-visible,
.voyage-cat-pill:focus-visible,
.voyage-rail:focus-visible,
.voyage-progress-track:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .topbar .topbar-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 9px;
  }

  .topbar .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
  }

  .search-deck {
    width: 100%;
  }

  .search-kbd {
    display: none;
  }

  .voyage-head-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .topbar .brand-portrait {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .voyage-brand strong {
    font-size: 16px;
  }

  .voyage-brand small {
    font-size: 10px;
  }

  .topbar .header-actions {
    gap: 4px;
  }

  .topbar .hdr-btn,
  .topbar .hdr-time-btn,
  .buyer-entry {
    min-height: 38px;
    height: 38px;
  }

  .topbar .hdr-btn {
    padding: 0 7px;
    font-size: 12px;
  }

  .topbar .hdr-time-btn {
    min-width: 36px;
    padding: 0 7px;
  }

  .buyer-entry {
    max-width: 90px;
    padding: 0 10px 0 7px;
    font-size: 12.5px;
  }

  .voyage-section {
    margin: 6px 0 4px;
    padding: 13px 12px 11px;
    border-radius: 15px;
  }

  .voyage-bg-art {
    width: 56%;
    opacity: 0.16;
  }

  .voyage-heading {
    gap: 8px;
    margin-bottom: 9px;
  }

  .voyage-title-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .voyage-heading h2 {
    font-size: 16.5px;
  }

  .voyage-stats {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    gap: 5px;
    scrollbar-width: none;
  }

  .voyage-stats::-webkit-scrollbar {
    display: none;
  }

  .voyage-stat-pill {
    flex: 0 0 auto;
    height: 24px;
    padding: 0 7px;
    gap: 3px;
    font-size: 11px;
    line-height: 24px;
  }

  .voyage-stat-label,
  .voyage-stat-unit {
    font-size: 10.5px;
  }

  .voyage-stat-num,
  .voyage-stat-pill.is-today .voyage-stat-num {
    font-size: 13px;
  }

  .voyage-controls button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .voyage-controls .voyage-auto-btn {
    width: auto;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    gap: 5px;
  }

  /* 390/360 手机展示海贼王角色名片横卡 + 右侧下一张露边，明确邀请手指横滑 */
  .voyage-rail {
    grid-auto-columns: clamp(278px, 84vw, 318px);
    gap: 10px;
    padding-bottom: 6px;
  }

  .voyage-card {
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 138px;
    padding: 9px 10px 9px 9px;
    gap: 9px;
  }

  .voyage-role-frame {
    width: 98px;
    height: 112px;
    border-radius: 9px;
  }

  .voyage-role-caption {
    font-size: 9.5px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    padding: 1.5px 4px;
  }

  .voyage-item-title {
    font-size: 13px;
    line-height: 1.38;
    min-height: calc(1.38em * 2);
  }

  .voyage-price {
    font-size: 17.5px;
  }

  .voyage-progress-track {
    max-width: 140px;
  }

  .voyage-rank-status {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .topbar .brand-portrait {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .voyage-brand strong {
    font-size: 15px;
  }

  .voyage-brand small {
    display: none;
  }

  .topbar .header-actions {
    gap: 3px;
  }

  .topbar .hdr-btn {
    padding: 0 6px;
    font-size: 11.5px;
  }

  .buyer-entry {
    max-width: 82px;
    padding: 0 8px 0 6px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voyage-card,
  .voyage-card:hover,
  .voyage-card.is-hovered {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}
