/* 燃情村BA · H5 客户预览（全屏 App + 悬浮页面导航） */
html, body.h5 { margin: 0; height: 100%; background: var(--canvas); }
body.h5 {
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.h5 button { touch-action: manipulation; }

.h5-app { position: fixed; inset: 0; background: var(--canvas); overflow: hidden; }
.h5-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas);
}
.h5-sizer { position: relative; flex: 0 0 auto; }
body.h5.is-frame { background: #e6dfd0; }
body.h5.is-frame .h5-stage { background: #e6dfd0; padding: 0; }
body.h5.is-frame .h5-phone {
  box-shadow: 0 20px 50px rgba(41, 30, 8, 0.16), 0 0 0 1px rgba(23, 19, 13, 0.08);
  border-radius: 12px;
}
.h5-phone {
  position: absolute; left: 0; top: 0;
  width: 390px; height: 844px;
  overflow: hidden;
  background: var(--canvas);
  transform-origin: top left;
}
.h5-phone .screen { width: 100%; height: 100%; }
.h5-screen { position: absolute; inset: 0; }
.h5-overlay { position: absolute; inset: 0; z-index: 35; pointer-events: none; }
.h5-overlay .h5-float, .h5-overlay .h5-toast { pointer-events: auto; }
.h5-phone .screen { box-shadow: none; }
.h5-phone .proto-hot { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .h5-phone .proto-hot:hover { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 4px; }
}

/* 悬浮导航 */
.h5-float {
  position: absolute; z-index: 40;
  height: 40px; border: 0; border-radius: 7px;
  background: rgba(20, 32, 26, 0.9); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  box-shadow: 0 6px 18px rgba(20, 16, 8, 0.28);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.h5-float { opacity: 1; pointer-events: auto; }
.h5-float .icon { width: 19px; height: 19px; }

.h5-float--nav {
  right: 12px; bottom: 90px;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--amber);
}
.h5-float:active { background: rgba(20, 32, 26, 0.98); }


.h5-toast {
  position: absolute; right: 14px; bottom: 142px;
  z-index: 39; padding: 7px 12px; border-radius: 5px; pointer-events: none;
  background: rgba(23, 19, 13, 0.86); color: #fff;
  font-size: 10px; letter-spacing: 0.02em; white-space: nowrap;
  opacity: 0; transition: opacity 0.4s ease;
}
.h5-toast.is-on { opacity: 1; }
.h5-toast.is-off { opacity: 0 !important; }

/* 封面 */
.h5-cover {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end;
  background: #0d0b07; color: #fff;
  overflow: hidden;
}
.h5-cover.is-hidden { display: none; }
.h5-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h5-cover__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 6, 0.4) 0%, rgba(6, 8, 6, 0.12) 32%, rgba(6, 8, 6, 0.94) 100%);
}
.h5-cover__body {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
  padding: 0 24px calc(26px + env(safe-area-inset-bottom));
}
.h5-cover__mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center;
}
.h5-cover__mark .icon { width: 28px; height: 28px; }
.h5-cover h1 { margin: 16px 0 0; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.h5-cover p { margin: 10px 0 0; font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }
.h5-cover__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.h5-cover__tags span {
  padding: 4px 9px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10px; color: rgba(255, 255, 255, 0.82);
}
.h5-cta {
  width: 100%; height: 50px; margin-top: 22px;
  border: 0; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink);
  font-size: 16px; font-weight: 800; letter-spacing: 0.02em;
  cursor: pointer;
}
.h5-cta:active { background: #f0560a; }
.h5-link {
  width: 100%; height: 42px; margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 8px;
  background: transparent; color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.h5-cover__note { display: block; margin-top: 14px; font-size: 9.5px; color: rgba(255, 255, 255, 0.4); }

/* 页面导航 */
.h5-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.52); }
.h5-drawer[hidden], .h5-scrim[hidden] { display: none; }
.h5-drawer {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  z-index: 80; width: min(440px, 100%);
  max-height: 74dvh;
  display: flex; flex-direction: column;
  background: #1a1610; color: #f4f0e7;
  border-radius: 14px 14px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
}
.h5-drawer__head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.h5-drawer__head b { font-size: 14px; }
.h5-drawer__head small { font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.h5-drawer__close { margin-left: auto; width: 32px; height: 32px; border-radius: 5px; }
.h5-drawer__close .icon { width: 16px; height: 16px; }
.h5-quick { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.h5-quick button {
  flex: 1; height: 38px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px; background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.h5-quick button:active { background: rgba(255,255,255,.12); }
.h5-quick .icon { width: 16px; height: 16px; }
.h5-drawer__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 0 14px; }
.h5-flow { padding: 12px 14px 4px; font-size: 9px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.36); }
.h5-item {
  width: 100%; min-height: 40px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; border: 0; background: none;
  color: rgba(255, 255, 255, 0.72); font-size: 12.5px; text-align: left; cursor: pointer;
}
.h5-item .no { font-family: var(--font-num); font-size: 9.5px; color: rgba(255, 255, 255, 0.35); min-width: 16px; }
.h5-item:active { background: rgba(255, 255, 255, 0.06); }
.h5-item.is-on { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.h5-item.is-on .no { color: rgba(58, 27, 6, 0.6); }

@media (max-width: 520px) {
  .h5-cover h1 { font-size: 34px; }
  .h5-cover__body { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}