* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body,
.phone-frame {
  overscroll-behavior-x: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #E5E7EB;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font-family: inherit;
}

/* 桌面端预览工具栏（真机自动隐藏） */
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  color: #4B5563;
}

.preview-toolbar button {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #111827;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.preview-toolbar button.active {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

/* 手机外框容器 */
.phone-frame {
  width: 390px;
  height: 844px;
  background: #F9FAFB;
  border-radius: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), 0 0 0 10px #1F2937;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-frame.desktop-wide {
  width: 100%;
  max-width: 720px;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 520px) {
  body {
    background: #F9FAFB;
    display: block;
  }

  .preview-toolbar {
    display: none;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

.view-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.view-panel[hidden] {
  display: none;
}

.view-panel.view-enter {
  animation: viewFadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 顶部导航 */
.header {
  background: #FFFFFF;
  padding: 10px 14px 9px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.catalog-header {
  padding: 8px 12px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-brand {
  min-width: 0;
  flex: 1;
}

.shop-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.flow-inline {
  margin-top: 2px;
  font-size: 11px;
  color: #6B7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.back-home-btn {
  flex-shrink: 0;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #111827;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.catalog-game-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.guide-mini-btn {
  font-size: 11px;
  font-weight: 500;
  color: #4B5563;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.guide-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #374151;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 强化右上角「定制剪辑 · 加V」视觉醒目度 */
.custom-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: #111827;
  border: 1px solid #111827;
  padding: 6px 11px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.16);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.custom-btn:active {
  background: #1F2937;
  transform: scale(0.97);
}

/* ================= 首页：游戏入口 ================= */
.home-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px calc(82px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.home-hero {
  margin-bottom: 12px;
}

.home-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.home-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #6B7280;
  line-height: 1.5;
}

.home-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 14px;
}

.game-cards-mount {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.game-entry-card {
  width: 100%;
  text-align: left;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.game-entry-card:active {
  border-color: #111827;
  transform: scale(0.985);
}

.game-entry-card.primary-game {
  border-color: #111827;
}

.game-entry-card.locked {
  background: #F3F4F6;
  border-color: #E5E7EB;
  opacity: 0.72;
  cursor: not-allowed;
}

.game-entry-card.locked:active {
  border-color: #E5E7EB;
  transform: none;
}

.game-entry-card.locked .game-entry-name {
  color: #6B7280;
}

.game-entry-lock {
  font-size: 11.5px;
  font-weight: 600;
  color: #6B7280;
  background: #E5E7EB;
  padding: 2px 8px;
  border-radius: 5px;
}

.game-entry-main {
  min-width: 0;
  flex: 1;
}

.game-entry-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.game-entry-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.game-entry-sub {
  margin-top: 5px;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

.game-entry-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.game-entry-count {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.game-entry-arrow {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

/* 顶部一键开关活动横幅 */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  color: #92400E;
  font-size: 12px;
  line-height: 1.35;
  flex-shrink: 0;
}

.promo-banner[hidden] {
  display: none;
}

.promo-badge {
  flex-shrink: 0;
  background: #111827;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.promo-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.promo-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #92400E;
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.home-tip-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 13px;
}

.home-tip-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
}

.home-tip-text {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.5;
}

/* ================= 子页：筛选区（统一极简样式，自动换行） ================= */
.filters {
  background: #FFFFFF;
  padding: 7px 12px 8px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-row-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.filter-price-search {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sub-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3.5px 9px;
  border-radius: 5px;
  background: #FFFFFF;
  color: #4B5563;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  line-height: 1.3;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.sub-pill:active {
  transform: scale(0.96);
}

.sub-pill.active {
  border-color: #111827;
  color: #FFFFFF;
  font-weight: 600;
  background: #111827;
}

.filter-toolbar {
  display: flex;
  align-items: center;
}

.price-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.price-tabs::-webkit-scrollbar {
  display: none;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  font-size: 12.5px;
  padding: 5.5px 28px 5.5px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 7px;
  background: #F9FAFB;
  color: #111827;
  outline: none;
  line-height: 1.35;
}

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

.search-input:focus {
  border-color: #111827;
  background: #FFFFFF;
}

.search-clear-btn {
  position: absolute;
  right: 6px;
  width: 19px;
  height: 19px;
  border: none;
  border-radius: 50%;
  background: #E5E7EB;
  color: #4B5563;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn[hidden] {
  display: none;
}

.audio-notice {
  font-size: 11.5px;
  color: #1E40AF;
  background: #EFF6FF;
  padding: 6px 12px;
  border-bottom: 1px solid #BFDBFE;
  flex-shrink: 0;
  line-height: 1.4;
}

.audio-notice[hidden] {
  display: none;
}

.cat-notice {
  font-size: 11.5px;
  color: #78350F;
  background: #FEF3C7;
  padding: 6px 12px;
  border-bottom: 1px solid #FDE68A;
  flex-shrink: 0;
  line-height: 1.4;
}

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

/* 主列表区 */
.list-container {
  flex: 1;
  overflow-y: auto;
  padding: 7px 12px calc(76px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.phone-frame.has-discount-tip .list-container {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

.list-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #4B5563;
  padding: 0 2px 6px;
  font-variant-numeric: tabular-nums;
  min-height: 28px;
}

.list-meta-bar strong {
  color: #111827;
  font-weight: 700;
}

.list-meta-tip {
  font-size: 12px;
  color: #6B7280;
}

/* 顶部「已隐藏 · 恢复」醒目胶囊按钮 */
.top-hidden-btn {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #111827;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.top-hidden-btn:active {
  background: #F3F4F6;
  border-color: #111827;
}

/* 紧凑高可读卡片 */
.clip-card {
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 7px 9px;
  margin-bottom: 6px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.clip-card.card-enter {
  animation: cardRise 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.clip-card.selected {
  border: 2.5px solid #111827;
  background: #FAFAFA;
  padding: 6px 8px;
}

.clip-card.locate-pulse {
  animation: locatePulse 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes locatePulse {
  0% {
    border-color: #111827;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    transform: scale(1);
    background: #FFFBEB;
  }
  25% {
    border-color: #D97706;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.25);
    transform: scale(1.015);
    background: #FFFBEB;
  }
  55% {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
    transform: scale(1);
    background: #FAFAFA;
  }
  78% {
    border-color: #D97706;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
    background: #FFFBEB;
  }
  100% {
    border-color: #111827;
    box-shadow: none;
    transform: scale(1);
    background: #FAFAFA;
  }
}

/* 左侧 106×64 封面缩略图 */
.thumb-box {
  width: 106px;
  height: 64px;
  border-radius: 6px;
  background: #1F2937;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
}

.play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 11px;
  border-color: transparent transparent transparent #FFFFFF;
  margin-left: 2px;
}

.duration-tag {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #FFFFFF;
  background: rgba(17, 24, 39, 0.78);
  padding: 1px 4px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

/* 右侧三行结构 */
.info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.clip-id-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
}

.clip-id-prefix {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.clip-id-num {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  background: #111827;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.new-badge {
  font-size: 10px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.25;
}

.clip-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* 第二行：刀皮/枪皮/角色 */
.skins-text {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  word-break: break-word;
}

/* 第三行：极简简介 + 选入按钮 */
.row-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 1px;
}

.action-text {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.32;
  word-break: break-word;
  flex: 1;
}

.select-btn {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #111827;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.select-btn.btn-pop {
  animation: btnPop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes btnPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.clip-card.selected .select-btn {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.65;
}

.empty-restore-wrap {
  margin-top: 12px;
}

.load-more-wrap {
  text-align: center;
  padding: 8px 0 4px;
}

.load-more-btn {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #111827;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.text-link-btn {
  background: none;
  border: none;
  color: #111827;
  text-decoration: underline;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px;
}

/* 底部固定停靠区（凑单提示条 + 结算栏） */
.bottom-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.discount-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #FFFBEB;
  border-top: 1px solid #FDE68A;
  font-size: 11.5px;
  color: #92400E;
  line-height: 1.35;
}

.discount-bar.achieved {
  background: #ECFDF5;
  border-top-color: #A7F3D0;
  color: #065F46;
}

.discount-bar[hidden] {
  display: none;
}

.discount-bar-tag {
  flex-shrink: 0;
  background: #111827;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.discount-bar.achieved .discount-bar-tag {
  background: #059669;
}

.discount-bar-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-bar {
  position: relative;
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-origin {
  color: #9CA3AF;
  text-decoration: line-through;
  font-weight: 400;
  font-size: 11.5px;
  margin-right: 3px;
}

.cart-summary {
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-summary-main {
  font-size: 12.5px;
  color: #374151;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.cart-summary-main.cart-bump {
  animation: cartBump 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cartBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.cart-summary-main strong {
  font-size: 15px;
  color: #111827;
  font-weight: 700;
}

.cart-summary-sub {
  font-size: 11px;
  color: #6B7280;
}

.copy-order-btn {
  background: #111827;
  color: #FFFFFF;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, background-color 0.14s ease;
}

.copy-order-btn:not(:disabled):active {
  transform: scale(0.97);
}

.copy-order-btn:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
}

/* ================= 聚光灯交互式新手引导 ================= */
.tour-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  pointer-events: auto;
}

.tour-overlay[hidden] {
  display: none;
}

.tour-mask-pane {
  position: absolute;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-spotlight {
  position: absolute;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-popover {
  position: absolute;
  width: 288px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  z-index: 92;
  transition: top 0.26s cubic-bezier(0.22, 1, 0.36, 1), left 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  animation: arrowFloat 1.2s ease-in-out infinite;
}

.tour-arrow.arrow-up {
  top: -9px;
  border-width: 0 8px 9px 8px;
  border-color: transparent transparent #FFFFFF transparent;
}

.tour-arrow.arrow-down {
  bottom: -9px;
  border-width: 9px 8px 0 8px;
  border-color: #FFFFFF transparent transparent transparent;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.tour-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tour-step-badge {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  background: #F3F4F6;
  padding: 2px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.tour-skip-btn {
  background: none;
  border: none;
  font-size: 11.5px;
  color: #6B7280;
  cursor: pointer;
  padding: 2px 4px;
}

.tour-pop-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
}

.tour-demo-tag {
  font-size: 11px;
  font-weight: 600;
  color: #1E40AF;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.tour-demo-tag[hidden] {
  display: none;
}

.tour-pop-desc {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tour-pop-desc strong {
  color: #111827;
  font-weight: 700;
}

.tour-pop-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tour-prev-btn {
  background: #F3F4F6;
  color: #374151;
  border: none;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tour-prev-btn[hidden] {
  display: none;
}

.tour-next-btn {
  background: #111827;
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 通用遮罩弹窗 */
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.modal-mask.center {
  align-items: center;
  padding: 16px;
}

.modal-mask.show {
  display: flex;
}

.modal-sheet {
  background: #FFFFFF;
  width: 100%;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  max-height: 82%;
  display: flex;
  flex-direction: column;
}

.modal-mask.show .modal-sheet {
  animation: sheetSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheetSlideUp {
  from { transform: translateY(24px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-card {
  background: #FFFFFF;
  width: 100%;
  border-radius: 14px;
  padding: 16px;
}

.modal-mask.show .modal-card {
  animation: cardPopIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardPopIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  background: #F3F4F6;
  color: #111827;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 大号绿勾复制成功横幅 */
.copy-success-banner {
  background: #ECFDF5;
  border: 1.5px solid #10B981;
  color: #065F46;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 11px;
  border-radius: 8px;
  margin-bottom: 9px;
  line-height: 1.4;
}

.recopy-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 9px;
}

.recopy-btn {
  background: #F3F4F6;
  color: #111827;
  border: 1px solid #D1D5DB;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  cursor: pointer;
}

.drawer-list {
  overflow-y: auto;
  margin-bottom: 12px;
  max-height: 46vh;
}

.drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F3F4F6;
}

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

.drawer-item-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 3px 5px;
  margin: -3px -5px;
  border-radius: 6px;
  transition: background-color 0.12s ease;
}

.drawer-item-main:active {
  background: #F3F4F6;
}

.drawer-item-hint {
  font-size: 11px;
  color: #6B7280;
  margin-top: 2px;
}

.drawer-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.drawer-item-sub {
  font-size: 12px;
  color: #4B5563;
  margin-top: 2px;
  line-height: 1.35;
}

.drawer-item-btn {
  flex-shrink: 0;
  background: #F3F4F6;
  color: #111827;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}

.drawer-discount-tip {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 7px;
  margin-bottom: 10px;
}

.drawer-discount-tip.achieved {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.drawer-discount-tip[hidden] {
  display: none;
}

.drawer-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.continue-pick-btn {
  flex: 0 0 auto;
  background: #F3F4F6;
  color: #111827;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.continue-pick-btn[hidden] {
  display: none;
}

.drawer-submit-btn {
  flex: 1;
  width: 100%;
}

/* 满屏预览播放器弹窗 */
.player-modal {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 60;
  display: none;
  flex-direction: column;
  color: #FFFFFF;
}

.player-modal.show {
  display: flex;
  animation: viewFadeIn 0.18s ease;
}

.player-top {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.85);
  flex-shrink: 0;
}

.player-id-badge {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.player-close-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

.video-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #000000;
}

.video-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
  touch-action: none;
}

.video-viewport video {
  width: 100%;
  max-height: 100%;
  display: block;
  pointer-events: none;
}

.video-overlay-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-size: 13px;
  z-index: 3;
}

.video-overlay-state[hidden] {
  display: none;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.retry-btn {
  background: #FFFFFF;
  color: #111827;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.zoom-hint {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.82);
  color: #F9FAFB;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 4;
  pointer-events: none;
}

.zoom-hint[hidden] {
  display: none;
}

.player-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.play-toggle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.progress-slider {
  flex: 1;
  accent-color: #FFFFFF;
  height: 4px;
  cursor: pointer;
}

.time-display {
  font-size: 11px;
  color: #D1D5DB;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.player-bottom {
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #0B0F19;
  flex-shrink: 0;
}

.player-meta {
  margin-bottom: 10px;
}

.player-skins {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 3px;
}

.player-action {
  font-size: 12px;
  color: #D1D5DB;
  line-height: 1.35;
}

.player-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.p-ctrl-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  padding: 7px 4px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}

.p-ctrl-btn.active {
  background: #FFFFFF;
  color: #111827;
  border-color: #FFFFFF;
  font-weight: 600;
}

.p-select-btn {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: #FFFFFF;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 联系卡片 */
.modal-desc,
.custom-desc {
  font-size: 12.5px;
  color: #4B5563;
  line-height: 1.5;
  margin-bottom: 10px;
}

.contact-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.contact-label {
  font-size: 11px;
  color: #6B7280;
}

.contact-value {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-top: 1px;
  user-select: all;
}

.copy-mini-btn {
  background: #111827;
  color: #FFFFFF;
  border: none;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.copied-preview {
  background: #F3F4F6;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #111827;
  margin-bottom: 10px;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 165px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.45;
  user-select: all;
}

.modal-footer-link {
  text-align: center;
  margin-top: 10px;
}

/* 隐藏商家 1 秒核单弹窗 */
.verify-textarea {
  width: 100%;
  min-height: 112px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #111827;
  background: #F9FAFB;
  resize: vertical;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.verify-textarea:focus {
  border-color: #111827;
  background: #FFFFFF;
}

.verify-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.verify-run-btn {
  flex: 1;
}

.verify-clear-btn {
  flex: 0 0 auto;
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.verify-result {
  border-top: 1px solid #E5E7EB;
  padding-top: 10px;
}

.verify-result[hidden] {
  display: none;
}

.verify-status {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.verify-status.ok {
  background: #ECFDF5;
  border: 1px solid #10B981;
  color: #065F46;
}

.verify-status.warn {
  background: #FEF2F2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

.verify-rows {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #E5E7EB;
  border-radius: 7px;
  background: #F9FAFB;
  padding: 6px 9px;
  margin-bottom: 8px;
}

.verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #111827;
  padding: 4px 0;
  border-bottom: 1px solid #E5E7EB;
  font-variant-numeric: tabular-nums;
}

.verify-row:last-child {
  border-bottom: none;
}

.verify-row-sold {
  color: #DC2626;
  font-weight: 600;
}

.verify-clean-btn {
  width: 100%;
  background: #FFFFFF;
  color: #111827;
  border: 1px solid #111827;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.verify-clean-btn[hidden] {
  display: none;
}

/* 醒目轻提示 */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  background: rgba(17, 24, 39, 0.95);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 95;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
