:root {
  --bg: #0e0f12;
  --bg-elev: #17181d;
  --bg-card: #1c1e24;
  --line: #2a2d36;
  --text: #eef0f4;
  --muted: #8b909c;
  --accent: #ff4d6d;
  --accent-2: #ff7a45;
  --nav: #0b0c0f;
  --radius: 8px;
  --container: 1200px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-brand: "ZCOOL XiaoWei", "Noto Sans SC", "PingFang SC", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(255, 122, 69, 0.14), transparent 55%),
    radial-gradient(900px 380px at 88% 0%, rgba(255, 77, 109, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 24px, var(--container)); margin: 0 auto; }

.site-header {
  background:
    linear-gradient(180deg, rgba(22, 24, 30, 0.96), rgba(11, 12, 15, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

/* 经典影院 PC：顶栏+分类随页面滚动；仅手机端保持悬停固定 */
@media (min-width: 721px) {
  body.tpl-classic .site-header {
    position: relative;
    top: auto;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 12px;
}
.header-top-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 0;
  min-height: 42px;
}
.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.header-top-right { margin-left: auto; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}
.header-tools .search-form { flex: 1; max-width: 420px; }
.header-dl-desktop { display: none; flex-shrink: 0; }
.header-short-desktop { display: none; flex-shrink: 0; }
.header-user {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-auth-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.header-auth-btn.is-reg {
  border-color: rgba(255, 77, 109, 0.55);
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.95), rgba(225, 29, 72, 0.9));
  color: #fff;
}
.header-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
}
.header-user-link:hover { background: rgba(255, 255, 255, 0.09); }
.header-user-avatar-wrap{
  position:relative;
  display:inline-grid;
  place-items:center;
  flex-shrink:0;
  overflow:visible;
}
.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff5a7a, #e11d48);
  flex-shrink: 0;
}
.nav-msg-badge{
  position:absolute;
  top:-6px;right:-8px;z-index:3;
  min-width:16px;height:16px;padding:0 4px;border-radius:999px;
  background:#ef4444;color:#fff!important;font-size:10px;font-weight:800;font-style:normal;
  display:inline-flex;align-items:center;justify-content:center;
  border:2px solid #fff;line-height:1;box-sizing:border-box;
  box-shadow:0 2px 6px rgba(239,68,68,.35);pointer-events:none
}
.nav-msg-badge.is-header{top:-4px;right:-6px}
.nav-msg-badge.is-tab{top:-4px;right:-10px;min-width:15px;height:15px;font-size:9px;border-width:1.5px}
body.tpl-qingmeng .nav-msg-badge{border-color:#fff}
.mobile-tab.has-msg .mobile-tab-ico{overflow:visible}
.header-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.header-user-name {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-badge {
  font-size: 10px;
  color: #93a0b4;
  font-weight: 650;
}
.header-user-badge.is-vip { color: #f6c453; }
.header-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.95), rgba(255, 122, 69, 0.92));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.header-dl-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(255, 77, 109, 0.36);
}
.header-dl-btn:active { transform: scale(0.97); }
.header-dl-btn.is-active {
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.55), 0 6px 16px rgba(255, 77, 109, 0.28);
}
.header-dl-ico { display: block; flex-shrink: 0; }

@media (min-width: 721px) {
  body.m-download-btn .header-dl-desktop { display: block; }
  .header-short-desktop { display: block; }
  .header-top-bar { display: none !important; }
  .header-user { display: flex; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  white-space: nowrap;
  min-width: 0;
  transition: transform 0.2s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--mark-c2, var(--accent)) 40%, transparent));
}
.logo-mark svg,
.logo-mark-svg {
  display: block;
  border-radius: 12px;
}

.logo--favicon {
  gap: 0;
}
.logo-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.15;
}
.logo-mark--favicon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  font-size: 26px; 
  filter: none;
  border-radius: 6px;
  overflow: hidden;
}
.logo-mark--favicon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo-name {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--name-c1, #fff);
}

body.name-gradient .logo-name,
.name-gradient .logo-name {
  background: linear-gradient(110deg, var(--name-c1, #fff) 18%, var(--name-c2, #ff8fa3) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.name-solid .logo-name,
.name-solid .logo-name {
  color: var(--name-c1, #fff);
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.name-glow .logo-name,
.name-glow .logo-name {
  color: var(--name-c1, #fff);
  text-shadow:
    0 0 8px color-mix(in srgb, var(--name-c2, #f0abfc) 70%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  background: none;
}
body.name-shine .logo-name,
.name-shine .logo-name {
  background: linear-gradient(
    100deg,
    var(--name-c1, #fff7ed) 0%,
    var(--name-c2, #fbbf24) 35%,
    #fff 50%,
    var(--name-c2, #fbbf24) 65%,
    var(--name-c1, #fff7ed) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mayiShine 4.5s linear infinite;
}
@keyframes mayiShine {
  0% { background-position: 100% center; }
  100% { background-position: -100% center; }
}

.logo-tag {
  margin: 0;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
body.tag-spaced .logo-tag,
.tag-spaced .logo-tag { letter-spacing: 0.18em; }
body.tag-plain .logo-tag,
.tag-plain .logo-tag { letter-spacing: 0.02em; opacity: 0.9; }
body.tag-badge .logo-tag,
.tag-badge .logo-tag {
  display: inline-flex;
  align-self: flex-start;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}


body.header-glass .site-header {
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.96), rgba(11, 12, 15, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.header-solid .site-header {
  background: color-mix(in srgb, var(--bg) 88%, #000);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.header-flat .site-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

.search-form {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search-form:focus-within {
  border-color: rgba(255, 122, 69, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.search-ico {
  flex-shrink: 0;
  margin-left: 14px;
  color: var(--muted);
}
.search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 11px 10px;
  outline: none;
  font-size: 14px;
  min-width: 0;
}
.search-form input::placeholder { color: #6f7583; }
.search-form button {
  border: 0;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 40px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.search-form button:hover { filter: brightness(1.06); }

.main-nav {
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0 12px;
}
.header-mobile-bar { display: none; }
.nav-mobile {
  display: none;
  position: relative;
  z-index: 60;
}
.nav-scroll-wrap { display: none; }
.nav-scroll {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  margin: 0 -2px;
  padding: 0 2px 10px;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll.is-dragging { cursor: grabbing; }
.nav-scroll.is-dragging .nav-scroll-item { pointer-events: none; }
.qm-cat-track.is-dragging .qm-cat-item,
.mogu-cat-track.is-dragging .mogu-cat-item { pointer-events: none; }
.qm-cat-item,
.mogu-cat-item,
.nav-scroll-item { cursor: pointer; -webkit-tap-highlight-color: rgba(255,107,157,.15); }
.nav-scroll-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  padding: 2px 0;
}
.nav-scroll-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 9.5em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #c8ccd6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.nav-scroll-item.is-active {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.55);
  background: rgba(255, 77, 109, 0.18);
}
.nav-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-cat-btn:hover,
.nav-mobile.is-open .nav-cat-btn {
  border-color: rgba(255, 77, 109, 0.5);
  background: rgba(255, 77, 109, 0.12);
}
.nav-cat-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
  height: 12px;
}
.nav-cat-burger i {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile.is-open .nav-cat-burger i:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-mobile.is-open .nav-cat-burger i:nth-child(2) { opacity: 0; }
.nav-mobile.is-open .nav-cat-burger i:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}
.nav-cat-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(78vw, 280px);
  max-height: min(68vh, 420px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1a1d24 0%, #12141a 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.nav-cat-panel[hidden] { display: none !important; }
.nav-cat-panel-head {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9aa0ab;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.nav-cat-list {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
}
.nav-cat-item {
  display: block;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 8px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.nav-cat-item:hover,
.nav-cat-item:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-cat-item.is-active {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.4);
  background: rgba(255, 77, 109, 0.16);
}
.nav-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 8px 6px;
  color: #c8ccd6;
  font-size: 13px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.14);
}

.notice {
  margin: 16px 0;
  padding: 10px 14px;
  background: #24181c;
  border: 1px solid #3a242c;
  color: #ffb4c0;
  border-radius: var(--radius);
  font-size: 13px;
}
.notice-marquee-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 0 0 0 12px;
  min-height: 40px;
  overflow: hidden;
  background: linear-gradient(90deg, #2a1820, #24181c 40%, #1c1218);
  border: 1px solid #3a242c;
  border-radius: var(--radius);
  color: #ffb4c0;
}
.notice-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.notice-marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0;
  white-space: nowrap;
  animation: notice-marquee-scroll 28s linear infinite;
  will-change: transform;
}
.notice-marquee-bar:hover .notice-marquee-track {
  animation-play-state: paused;
}
.notice-marquee-item {
  display: inline-block;
  padding: 10px 48px 10px 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
@keyframes notice-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.notice-bookmark-btn {
  flex: 0 0 auto;
  margin: 6px 8px 6px 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}
.notice-bookmark-btn:hover { filter: brightness(1.08); }
.notice-bookmark-btn:active { transform: scale(0.98); }
.mayi-bookmark-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 12000;
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mayi-bookmark-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 560px) {
  .notice-marquee-bar {
    gap: 6px;
    padding-left: 8px;
    min-height: 44px;
  }
  .notice-marquee-item { font-size: 12px; padding-right: 36px; }
  .notice-bookmark-btn {
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 7px;
  }
  .mayi-bookmark-toast { bottom: 72px; }
  .notice-marquee-track { animation-duration: 22s; }
}

.ad-banner {
  display: block;
  margin: 14px 0;
  padding: 14px 16px;
  text-align: center;
  background: linear-gradient(90deg, #2a1a12, #3a2218 40%, #2a1a12);
  border: 1px dashed #6a4030;
  color: #ffd0a8;
  border-radius: var(--radius);
  font-size: 14px;
}
.ad-banner:hover { filter: brightness(1.08); }
.ad-banner-img {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: #1a1210;
}
.ad-banner-img img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
}


.mayi-slideshow-wrap {
  display: none;
  padding: 8px 0 10px;
}
.mayi-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a1520 0%, #0e0c12 55%, #16101a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 7.2;
  isolation: isolate;
}
.mayi-slide-track {
  position: absolute;
  inset: 0;
}
.mayi-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.7s ease;
  z-index: 1;
  text-decoration: none;
  color: #fff;
}
.mayi-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.mayi-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mayi-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mayi-slide-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.mayi-slideshow:hover .mayi-slide-nav {
  display: inline-flex;
}
.mayi-slide-prev { left: 8px; }
.mayi-slide-next { right: 8px; }
.mayi-slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.mayi-slide-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.mayi-slide-dot.is-active {
  width: 16px;
  background: #fff;
}

.ad-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.ad-icon-item {
  text-align: center;
  color: var(--text);
  text-decoration: none;
}
.ad-icon-thumb {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 14px;
  overflow: hidden;
  background: #24181c;
  border: 1px solid #3a242c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-icon-fallback {
  font-size: 14px;
  color: #ffb4c0;
  font-weight: 600;
}
.ad-icon-name {
  font-size: 12px;
  color: #c9b8bc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-html { margin: 12px 0; }

.section { margin: 22px 0 28px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  position: relative;
  padding-left: 12px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head .more {
  color: var(--muted);
  font-size: 13px;
}
.section-head .more:hover { color: var(--accent); }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dir-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  transition: border-color .15s, transform .15s;
}
.dir-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.dir-item strong {
  display: block;
  color: var(--accent-2);
  font-size: 20px;
  margin-bottom: 4px;
}
.dir-item span {
  color: #ddd;
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.video-card:hover {
  border-color: #444;
  transform: translateY(-2px);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}
.thumb-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1;
}
.thumb.is-previewing img { opacity: 0; }
.thumb.is-previewing .thumb-preview { opacity: 1; }
.thumb.is-loading::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: thumbSpin .7s linear infinite;
}
@keyframes thumbSpin {
  to { transform: rotate(360deg); }
}
.thumb-preview-tip {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,.7);
  color: #fff;
}
.duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
}
.video-card .title {
  margin: 8px 8px 4px;
  font-size: 13px;
  font-weight: 500;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #eee;
}
.video-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px 10px;
  color: var(--muted);
  font-size: 11px;
}

.player-section { margin: 18px 0; }
.play-title {
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.35;
}
/* 解析播放器 iframe */

/* 手机百度等限制跨站 iframe：点击全屏播放 */
.mayi-parse-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0a0a0a;
  padding: 16px;
  text-align: center;
}
.player-wrap.is-parse-fallback .mayi-parse-fallback {
  display: flex;
}
.mayi-parse-fallback-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #1e9fff;
  cursor: pointer;
}
.mayi-parse-fallback-tip {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.5;
  max-width: 16em;
}

.mayi-parse-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  z-index: 2;
}
.player-wrap.is-parse-mode {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 70vh;
  min-height: 220px;
}
.player-wrap.is-parse-mode video,
.player-wrap.is-parse-mode .player-bar {
  display: none !important;
}
.player-wrap.is-parse-mode .mayi-parse-frame[hidden] {
  display: block !important;
}
.player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 70vh;
  min-height: 200px;
  --wm-scale: 1;
}
.player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  background: #000;
  object-fit: contain;
}

.player-wrap.is-preroll-open {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 70vh;
  min-height: 200px;
}
.player-wrap.is-preroll-open video {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
}

/* 竖屏片源也固定 16:9 画框（与商业版贴片广告时一致），画面 contain 居中 */
.player-wrap.is-v-portrait:not(.is-preroll-open) {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  margin-left: 0;
  margin-right: 0;
}
.player-wrap.is-v-portrait:not(.is-preroll-open) video {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
}
.player-wrap.is-v-portrait:not(.is-preroll-open) .wm-mask-br {
  
  width: var(--wm-w, 48%);
  height: var(--wm-h, 30%);
  max-width: calc(100% - var(--wm-right, 0px));
  max-height: calc(100% - var(--wm-bottom, 0px));
  right: var(--wm-right, 0px);
  bottom: var(--wm-bottom, 0px);
}
@media (max-width: 560px) {
  .player-wrap {
    max-height: 56vh;
    min-height: 180px;
  }
  .player-wrap video {
    max-height: none;
    min-height: 0;
  }
  .player-wrap.is-preroll-open {
    max-height: 56vh;
    min-height: 180px;
  }
  .player-wrap.is-v-portrait:not(.is-preroll-open) {
    max-height: 56vh;
  }
}

.mayi-preroll {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mayi-preroll::before {
  content: '推荐';
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.mayi-preroll.is-hidden::before,
.mayi-preroll[hidden]::before {
  display: none;
}
.mayi-preroll-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0;
}
.mayi-preroll-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}
.mayi-preroll-top {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  pointer-events: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mayi-preroll-timer {
  --ad-progress: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  max-width: 100%;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  position: relative;
}
.mayi-preroll-timer.is-done {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.mayi-preroll-ring {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.mayi-preroll-ring-bg {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2.5;
}
.mayi-preroll-ring-fg {
  stroke: #f5c542;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: calc(97.4 * (1 - var(--ad-progress)));
  transition: stroke-dashoffset 0.85s linear;
}
.mayi-preroll-timer-num {
  position: absolute;
  left: 3px;
  width: 32px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 32px;
  color: #fff;
}
.mayi-preroll-timer-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  padding-right: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mayi-preroll-close {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.82);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: opacity .28s ease, transform .28s ease, background .2s ease, border-color .2s ease;
  flex-shrink: 0;
}
.mayi-preroll-close.is-ready {
  opacity: 1;
  transform: none;
}
.mayi-preroll-close:disabled {
  opacity: 0;
  cursor: default;
}
.mayi-preroll-close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.mayi-preroll-close-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mayi-preroll-close.is-ready:not(:disabled):hover {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}
.mayi-preroll-close.is-ready:not(:disabled):hover .mayi-preroll-close-x {
  background: rgba(255, 255, 255, 0.2);
}
.mayi-preroll-close.is-ready:not(:disabled):active {
  transform: scale(0.97);
}
.player-wrap:fullscreen .mayi-preroll,
.player-wrap:-webkit-full-screen .mayi-preroll,
.player-wrap.is-fullscreen .mayi-preroll {
  position: absolute;
  inset: 0;
}
@media (max-width: 560px) {
  .mayi-preroll-timer-label { max-width: 7.5em; }
  .mayi-preroll-top {
    top: 6px;
    right: 6px;
    gap: 6px;
  }
  .mayi-preroll-timer,
  .mayi-preroll-close {
    min-height: 32px;
  }
  .mayi-preroll-ring,
  .mayi-preroll-timer-num {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }
}

.player-wrap:fullscreen,
.player-wrap:-webkit-full-screen,
.player-wrap:-moz-full-screen,
.player-wrap:-ms-fullscreen,
.player-wrap.is-fullscreen {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000 !important;
  overflow: hidden !important;
}
.player-wrap:fullscreen video,
.player-wrap:-webkit-full-screen video,
.player-wrap:-moz-full-screen video,
.player-wrap:-ms-fullscreen video,
.player-wrap.is-fullscreen video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  background: #000;
}

html.mayi-fs-lock,
html.mayi-fs-lock body {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
}
.player-wrap.is-fs-fallback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.35) 70%, transparent);
  pointer-events: auto;
}
.player-wrap.is-preroll-open .player-bar {
  z-index: 30;
  pointer-events: none;
}
.player-wrap.is-preroll-open .player-bar .pbtn,
.player-wrap.is-preroll-open .player-bar .pseek,
.player-wrap.is-preroll-open .player-bar .pvol {
  pointer-events: none;
}
.player-bar .pbtn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}
.player-bar .pbtn:hover { background: rgba(255,255,255,.12); }
.player-bar .pseek {
  flex: 1;
  height: 10px;
  margin: 8px 0;
  background: rgba(255,255,255,.25);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.player-bar .pseek::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  bottom: -14px;
}
.player-bar .pseek.is-seeking,
.player-bar .pseek:active {
  height: 12px;
}
.player-bar .pseek-fill {
  height: 100%;
  width: 0%;
  background: #22c55e;
  border-radius: 99px;
  pointer-events: none;
}
.player-bar .pseek-fill::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.45);
  opacity: 0.95;
  pointer-events: none;
}
.player-bar .pseek-fill {
  position: relative;
}
.player-bar .ptime {
  color: #e5e7eb;
  font-size: 12px;
  white-space: nowrap;
  min-width: 84px;
  text-align: right;
}
.player-bar .pvol {
  width: 72px;
  accent-color: #22c55e;
  cursor: pointer;
}

.wm-mask-br {
  position: absolute;
  right: var(--wm-right, 0px);
  bottom: var(--wm-bottom, 0px);
  width: min(var(--wm-w, 48%), var(--wm-w-cap, 100%));
  height: min(var(--wm-h, 30%), var(--wm-h-cap, 100%));
  max-width: calc(100% - var(--wm-right, 0px));
  max-height: 100%;
  pointer-events: none;
  z-index: 5;
  background: var(--wm-bg, #000);
  opacity: var(--wm-op, 0.92);
  box-shadow: -8px -8px 20px rgba(0,0,0,.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(4px, 1.4vw, 10px) clamp(6px, 1.8vw, 12px) clamp(6px, 1.6vw, 12px);
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}
.player-wrap.wm-cover .wm-mask-br {
  display: flex;
}
.wm-mask-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  line-height: 1.15;
  gap: 2px;
  overflow: hidden;
}
.wm-mask-logo {
  display: block;
  height: auto;
  max-height: min(var(--wm-lh, 42%), 58%);
  width: auto;
  max-width: 92%;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.wm-mask-logo.is-shake {
  animation: wm-title-shake 1.8s ease-in-out infinite;
  transform-origin: center center;
}
.wm-mask-title {
  color: var(--wm-tc, #fff);
  font-size: clamp(10px, calc(var(--wm-ts, 14px) * var(--wm-scale, 1)), 36px);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: normal;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.2;
  text-shadow:
    0 1px 0 rgba(255,255,255,.25),
    0 2px 6px rgba(0,0,0,.55);
}
.wm-mask-title.is-shake {
  display: block;
  max-width: 100%;
  animation: wm-title-shake 1.8s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes wm-title-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-1px, 0.5px) rotate(-0.6deg); }
  20% { transform: translate(1.2px, -0.8px) rotate(0.7deg); }
  30% { transform: translate(-0.8px, 0) rotate(0.4deg); }
  40% { transform: translate(0.9px, 0.6px) rotate(-0.5deg); }
  50% { transform: translate(-1.1px, -0.4px) rotate(0.5deg); }
  60% { transform: translate(0.7px, 0.3px) rotate(-0.3deg); }
  70% { transform: translate(-0.5px, -0.6px) rotate(0.4deg); }
  80% { transform: translate(0.8px, 0.2px) rotate(-0.4deg); }
  90% { transform: translate(-0.6px, 0.5px) rotate(0.3deg); }
}
.wm-mask-url {
  margin-top: 0;
  color: var(--wm-tc, #fff);
  font-size: clamp(8px, calc(var(--wm-ts, 14px) * 0.7 * var(--wm-scale, 1)), 22px);
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  word-break: break-all;
  white-space: normal;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.player-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 15;
  text-align: center;
  color: #fff;
  font-size: 13px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.player-tip.error { color: #ffb4c0; }
.play-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.source-btn {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.source-btn:hover,
.source-btn.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 77, 109, 0.15);
}
.source-btn.vip-channel-btn {
  border: 1px solid #ff4d6d;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.source-btn.vip-channel-btn:hover,
.source-btn.vip-channel-btn.active {
  border-color: #ff6b88;
  color: #fff;
  background: rgba(255, 77, 109, 0.22);
}
.source-btn.vip-channel-promo {
  color: #ffc9d4;
}
.vip-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  background: linear-gradient(180deg, #f6c453, #e8a317);
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: middle;
  margin-left: 6px;
}
.player-lock {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 20px;
}
.player-lock[hidden] { display: none !important; }
.player-lock-card {
  width: min(360px, 100%);
  background: #141a22;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  color: #f3f6fb;
}
.player-lock-card h3 { margin: 0 0 8px; font-size: 18px; }
.player-lock-card p { margin: 0 0 16px; font-size: 13px; opacity: .78; line-height: 1.5; }
.player-lock-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-lock {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 650;
}
.btn-lock-vip {
  background: linear-gradient(180deg, #f6c453, #e8a317);
  color: #111;
}
.play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.play-meta a { color: var(--accent); }
.play-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}
.play-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: #eee;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.play-action-btn.is-on {
  border-color: rgba(255, 209, 102, .55);
  background: rgba(255, 209, 102, .12);
  color: #ffd166;
}
.play-action-ico { font-size: 15px; line-height: 1; }
.play-action-hint {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.play-action-hint:hover { color: var(--accent); }
.mayi-lib-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 24, .92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.mayi-lib-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.member-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .member-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.member-video-grid .video-card {
  margin: 0;
}
.member-video-grid .title {
  font-size: 13px;
  -webkit-line-clamp: 2;
}
.play-desc {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #ccc;
  font-size: 14px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 22px 0 10px;
}
.pager a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  color: #ddd;
  font-size: 13px;
  padding: 0 8px;
}
.pager a.active,
.pager a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.static-page .page-content {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: #ddd;
}
.empty { color: var(--muted); grid-column: 1 / -1; }

.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: #0d0d0d;
  text-align: center;
}
.friend-links,
.footer-friend-links,
.footer-site-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: #bbb;
  font-size: 13px;
}
.footer-friend-links {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-fl-label {
  color: #888;
  margin-right: 4px;
}
.footer-friend-links a,
.footer-site-pages a,
.friend-links a { color: #bbb; text-decoration: none; }
.footer-friend-links a:hover,
.footer-site-pages a:hover,
.friend-links a:hover { color: var(--accent); }
.footer-friend-links .dot,
.footer-site-pages .dot { color: #555; margin: 0 2px; }
.copy {
  margin: 6px 0 0;
  color: #777;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.m-cat-dropdown .header-top-bar,
  body.m-download-btn .header-top-bar {
    display: flex;
  }
  body.m-cat-dropdown .nav-mobile {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  body.m-cat-scroll .nav-scroll-wrap {
    display: block;
    padding: 0 0 2px;
  }
  body.m-cat-scroll .nav-scroll {
    display: block;
  }
  .mayi-slideshow-wrap {
    display: block;
  }
  body.m-cat-scroll .header-inner {
    padding-bottom: 4px;
  }
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 0 12px;
  }
  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .header-tools .search-form {
    max-width: none;
    width: 100%;
  }
  .header-dl-desktop { display: none !important; }
  .header-short-desktop { display: none !important; }
  .logo {
    justify-content: center;
    text-align: center;
    gap: 10px;
    white-space: normal;
    max-width: 100%;
  }
  .logo-text {
    align-items: center;
  }
  .logo-name { font-size: 24px; }
  .logo-tag {
    letter-spacing: 0.08em;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }
  .logo-mark svg { width: 36px; height: 36px; }
  .logo-mark--favicon { font-size: 24px; } 
  .logo--favicon .logo-text { align-items: center; }
  .logo-name-row { justify-content: center; }
  .search-form { width: 100%; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .video-card .title { font-size: 12px; }
  .main-nav { display: none; }
  body.m-tabbar-on .mobile-tabbar { display: flex; flex-wrap: nowrap; }
  body.m-tabbar-on {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  body.m-tabbar-on .site-footer { padding-bottom: 8px; }
  .player-bar {
    gap: 4px;
    padding: 6px 8px;
  }
  .player-bar .pvol { display: none; }
  .player-bar .ptime {
    min-width: 0;
    font-size: 11px;
  }
  .player-bar .pseek { height: 12px; margin: 10px 0; }
  .wm-mask-br {
    --wm-w-cap: 100%;
    --wm-h-cap: 100%;
    align-items: flex-end;
    padding-bottom: 8px;
  }
}


html.popup-lock,
html.popup-lock body {
  overflow: hidden;
}
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.site-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-popup[hidden] { display: none !important; }
.site-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.site-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1f2937;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.site-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}
.site-popup-timer {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.site-popup-timer-num {
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}
.site-popup-x {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #9ca3af;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.site-popup-x:hover { background: #6b7280; }
.site-popup-body {
  padding: 16px 16px 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.7;
}
.site-popup-content img,
.site-popup-content video {
  max-width: 100%;
  height: auto;
  display: block;
}
.site-popup-content a { color: #2563eb; text-decoration: underline; }
.site-popup-content strong { color: #111827; }
.site-popup-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.popup-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #e11d48;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
}
.popup-mini-btn:hover { filter: brightness(1.08); }
.site-popup-content .popup-domain-val {
  color: #111827;
  font-weight: 700;
}
.site-popup-content .popup-content-extra {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13px;
}
.site-popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}
.site-popup-foot-left {
  min-width: 0;
  flex: 1;
}
.popup-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  background: #16a34a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popup-promo.is-static { cursor: default; }
.popup-promo:hover { filter: brightness(1.06); }
.site-popup-close-now {
  flex-shrink: 0;
  border: 0;
  border-radius: 4px;
  background: #e11d48;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.site-popup-close-now:hover { filter: brightness(1.06); }

@media (max-width: 560px) {
  .site-popup {
    padding: 16px;
    align-items: center;
    justify-content: center;
  }
  .site-popup-dialog {
    width: 100%;
    max-width: 420px;
    max-height: 82vh;
    margin: auto;
    border-radius: 12px;
  }
  .site-popup-head { padding: 10px 12px; }
  .site-popup-timer { font-size: 13px; }
  .site-popup-x {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    font-size: 20px;
  }
  .site-popup-body { padding: 12px; font-size: 13px; }
  .site-popup-foot {
    flex-wrap: wrap;
    padding: 10px 12px 12px;
  }
  .site-popup-foot-left { flex: 1 1 100%; }
  .popup-promo { width: 100%; justify-content: center; white-space: normal; }
  .site-popup-close-now { width: 100%; padding: 12px 16px; }
}


.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  /* 单排自适应：条目再多也不换行 */
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  min-height: 54px;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 16, 20, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
body.m-tabbar-5 .mobile-tabbar,
body.m-tabbar-6 .mobile-tabbar,
body.m-tabbar-7 .mobile-tabbar {
  /* 兼容旧类名，布局统一走 flex 单排 */
  grid-template-columns: unset;
}


body.page-short {
  background: #000;
}
body.page-short .site-header,
body.page-short .site-footer,
body.page-short .mayi-slideshow-wrap {
  display: none !important;
}
body.page-short main.container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
body.page-short.m-tabbar-on {
  padding-bottom: 0;
}
.short-app {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  background: #050506;
  overflow: hidden;
  color: #fff;
  margin: 0 auto;
}
body.m-tabbar-on .short-app {
  height: calc(100svh - 54px - env(safe-area-inset-bottom, 0px));
  height: calc(100dvh - 54px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100svh - 54px - env(safe-area-inset-bottom, 0px));
}
.short-app.is-off {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.short-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.18) 70%, transparent);
  pointer-events: none;
}
.short-top-back,
.short-top-title,
.short-top-spacer {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.short-top-mine {
  pointer-events: auto;
}
.short-top-back {
  pointer-events: auto !important;
  position: relative;
  z-index: 101;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.08);
}
.short-top-title {
  flex: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.short-top-mine {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.1);
}
.short-feed {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.short-feed::-webkit-scrollbar { display: none; }
.short-slide {
  position: relative;
  height: 100%;
  min-height: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
/* native 直连：禁止 flex 居中，否则未铺满时会露出中间 300x150 横屏默认框 */
.short-slide[data-mode="native"] {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
}
.short-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  overflow: hidden;
  /* 部分安卓 WebView 会把 video/iframe 盖过兄弟节点，限制在媒体层内 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.short-ui {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  /* 强制合成层，盖过部分机型的 iframe/video 顶层 */
  transform: translate3d(0, 0, 1px);
  -webkit-transform: translate3d(0, 0, 1px);
  will-change: transform;
}
.short-parse-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #000;
  z-index: 3;
  /* 哈希片：交给自建播放器原生暂停/进度 */
  pointer-events: auto;
}
/* 透明点按层：仅直连 M3U8 用（本地点暂停/横滑快进） */
.short-tap-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: auto;
  background: transparent;
}
.short-slide[data-mode="iframe"] .short-tap-layer {
  display: none !important;
  pointer-events: none !important;
}
/* iframe 本站播放器：底部留给进度条，避免短视频 UI 挡住拖拽 */
.short-slide[data-mode="iframe"] .short-ui {
  top: 0;
  left: 0;
  right: 0;
  bottom: 58px;
  height: auto;
}
.short-slide[data-mode="iframe"] .short-slide-meta {
  padding-bottom: 12px;
}
.short-slide[data-mode="iframe"] .short-progress {
  display: none !important;
}
/* 左侧细条：上下滑切下一条（中间区域点播放器） */
.short-swipe-edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 46;
  pointer-events: auto;
  background: transparent;
}
.short-slide-meta,
.short-rail,
.short-slide-play,
.short-top-back,
.short-top-mine {
  pointer-events: auto;
}

.short-vstage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  aspect-ratio: auto;
}
/* 短视频专用竖屏播放器 MayiShortVPlayer */
.svp-host,
.svp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  z-index: 1;
}
.svp-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.svp-video,
.svp video,
.short-slide .svp-video {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #000;
  pointer-events: none;
  border: 0;
  outline: none;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.svp-chrome-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
}
.svp-progress {
  position: absolute;
  left: 10px;
  right: 78px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  height: 32px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.svp-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  overflow: visible;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.svp-progress.is-seeking .svp-progress-track,
.svp-progress:active .svp-progress-track {
  height: 6px;
}
.svp-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: #fff;
}
.svp-progress-fill::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.svp video::-webkit-media-controls,
.svp video::-webkit-media-controls-enclosure,
.svp video::-webkit-media-controls-panel,
.svp video::-webkit-media-controls-start-playback-button,
.svp video::-webkit-media-controls-overlay-play-button,
.short-slide video::-webkit-media-controls,
.short-slide video::-webkit-media-controls-enclosure,
.short-slide video::-webkit-media-controls-panel,
.short-slide video::-webkit-media-controls-start-playback-button,
.short-slide video::-webkit-media-controls-overlay-play-button,
.short-vstage video::-webkit-media-controls,
.short-vstage video::-webkit-media-controls-enclosure,
.short-vstage video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  pointer-events: none !important;
  -webkit-appearance: none !important;
}
/* 非 SVP 的旧 video；svp-video 由 JS 计算 cover，勿用 !important 抢尺寸 */
.short-slide video:not(.svp-video),
.short-vstage video:not(.svp-video) {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  background: #000;
  pointer-events: none;
}
/* 部分内核仍绘原生条：用遮罩层盖住 video 控件区，只留底部自定义进度 */
.short-slide[data-mode="native"] .short-tap-layer {
  display: block !important;
  z-index: 4;
  background: transparent;
}
.short-progress {
  position: absolute;
  left: 10px;
  right: 78px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  height: 32px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
/* native 改用 svp 自带进度条，隐藏旧条避免双进度 */
.short-slide[data-mode="native"] .short-progress {
  display: none !important;
}
.short-slide[data-mode="native"] .short-slide-meta {
  padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}
.short-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  overflow: visible;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.short-progress:active .short-progress-track,
.short-progress.is-seeking .short-progress-track {
  height: 6px;
}
.short-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: #fff;
}
.short-progress-fill::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  opacity: .98;
}
.short-slide[data-mode="iframe"] .short-progress {
  display: none !important;
}
.short-slide.is-await-play .short-slide-play {
  display: inline-flex !important;
  opacity: 1 !important;
}
/* 取流失败提示（默认隐藏，不再做全屏黑遮罩） */
.short-slide-fail {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  background: transparent;
  color: rgba(255,255,255,.92);
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
  pointer-events: none;
}
.short-slide.is-fail .short-slide-fail {
  display: none;
}
/* iframe 哈希片：隐藏本地大播放钮，用自建播放器暂停/进度 */
.short-slide[data-mode="iframe"] .short-slide-play {
  display: none !important;
}
.short-slide[data-mode="iframe"] .short-seek-toast {
  z-index: 60;
}
.short-slide-meta {
  position: absolute;
  left: 0;
  right: 72px;
  bottom: 0;
  z-index: 50;
  padding: 28px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 55%, transparent);
  color: #fff;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.short-slide-author {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  text-decoration: none;
  display: inline-block;
  pointer-events: auto;
}
.short-slide-author:hover {
  opacity: 0.92;
  text-decoration: underline;
}
.short-slide-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.short-slide-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.short-slide-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.short-slide.is-paused .short-slide-play {
  display: inline-flex;
}
.short-rail {
  position: absolute;
  right: 10px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.short-rail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  background: linear-gradient(145deg, #ff6b4a, #ff3d6e);
  display: block;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.short-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.short-avatar-letter {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.short-slide-author:hover {
  opacity: 0.92;
  text-decoration: underline;
}
.short-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  min-width: 48px;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.short-rail-btn em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.short-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 20px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease;
  color: #fff;
}
/* 不用 emoji：部分机型缺字形会导致右侧栏看起来像“没了” */
.short-ico-heart::before,
.short-ico-star::before,
.short-ico-sound::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.short-ico-heart::before {
  width: 18px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21s-7.2-4.6-9.4-8.2C.8 9.6 2.4 6 6 6c1.9 0 3.4 1 4 2.4C10.6 7 12.1 6 14 6c3.6 0 5.2 3.6 3.4 6.8C19.2 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21s-7.2-4.6-9.4-8.2C.8 9.6 2.4 6 6 6c1.9 0 3.4 1 4 2.4C10.6 7 12.1 6 14 6c3.6 0 5.2 3.6 3.4 6.8C19.2 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: currentColor;
}
.short-ico-star::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2.8l2.7 6.3 6.8.6-5.2 4.5 1.6 6.6L12 17.2 6.1 20.8l1.6-6.6L2.5 9.7l6.8-.6L12 2.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2.8l2.7 6.3 6.8.6-5.2 4.5 1.6 6.6L12 17.2 6.1 20.8l1.6-6.6L2.5 9.7l6.8-.6L12 2.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: currentColor;
}
.short-ico-sound::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 9v6h3l5 4V5L7 9H4zm12.5 3a4 4 0 0 0-2-3.4v6.8a4 4 0 0 0 2-3.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 9v6h3l5 4V5L7 9H4zm12.5 3a4 4 0 0 0-2-3.4v6.8a4 4 0 0 0 2-3.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: currentColor;
}
.short-rail-btn.is-on .short-ico {
  background: rgba(255, 45, 85, .22);
  border-color: rgba(255, 90, 120, .45);
  color: #ff5a78;
}
.short-rail-btn.is-on .short-ico-heart::before {
  background-color: #ff3b6b;
}
.short-rail-btn.is-on .short-ico-star::before {
  background-color: #ffd166;
}
.short-rail-btn.is-on .short-ico-sound::before {
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 9v6h3l5 4V5L7 9H4zm11.5 3a3.5 3.5 0 0 0-1.8-3.1v6.2A3.5 3.5 0 0 0 15.5 12zM14 4.2v2.1a5.5 5.5 0 0 1 0 10.4v2.1a7.5 7.5 0 0 0 0-14.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 9v6h3l5 4V5L7 9H4zm11.5 3a3.5 3.5 0 0 0-1.8-3.1v6.2A3.5 3.5 0 0 0 15.5 12zM14 4.2v2.1a5.5 5.5 0 0 1 0 10.4v2.1a7.5 7.5 0 0 0 0-14.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.short-rail-btn:active .short-ico {
  transform: scale(0.92);
}
.short-empty {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #c8ccd6;
  font-size: 15px;
  line-height: 1.6;
  padding: 24px;
  background: #0e0f12;
}

.short-empty[hidden],
.short-empty.is-hide {
  display: none !important;
}
.short-empty.is-static {
  position: static;
  background: transparent;
}
.short-empty .muted { color: #8b909a; font-size: 13px; }


.short-pub-page { padding: 8px 0 28px; }
.short-pub-hero {
  text-align: center;
  padding: 18px 12px 22px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,77,109,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
}
.short-pub-back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.short-pub-back:hover { color: #fff; }
.short-pub-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.35);
  background: linear-gradient(145deg, #ff6b4a, #ff3d6e);
}
.short-pub-avatar span {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.short-pub-avatar em {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.short-pub-hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
}
.short-pub-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 721px) {
  .short-app {
    max-width: 420px;
    width: min(100%, 420px);
    height: min(100svh, 860px);
    max-height: min(100svh, 860px);
    margin: 0 auto;
    border-left: 1px solid rgba(255,255,255,.06);
    border-right: 1px solid rgba(255,255,255,.06);
  }
  body.m-tabbar-on .short-app {
    height: min(100svh, 860px);
    max-height: min(100svh, 860px);
  }
  body.page-short main.container {
    display: flex;
    justify-content: center;
    min-height: 100svh;
  }
}
@media (max-width: 720px) {
  .short-app {
    max-width: 100%;
  }
  .short-slide-meta {
    bottom: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .short-rail {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 8px;
  }
}
.mobile-tab {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  max-width: none;
  padding: 6px 2px;
  color: #8b909a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.mobile-tab-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  overflow: visible;
}
.mobile-tab-ico svg {
  width: 20px;
  height: 20px;
}
.mobile-tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(9px, 2.6vw, 11px);
}
.mobile-tab.is-active {
  color: var(--accent, #ff4d6d);
}
body.m-tabbar-6 .mobile-tab,
body.m-tabbar-7 .mobile-tab {
  padding-left: 1px;
  padding-right: 1px;
}

@media (max-width: 720px) {
  body.m-tabbar-on .mobile-tabbar { display: flex; flex-wrap: nowrap; }
}


.rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.rec-row:hover {
  background: rgba(255, 77, 109, 0.08);
  border-color: rgba(255, 77, 109, 0.28);
}
.rec-cover {
  flex: 0 0 108px;
  width: 108px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1d24;
}
.rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.rec-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.rec-score-label {
  flex: 0 0 auto;
  min-width: 56px;
}
.stars {
  display: inline-flex;
  gap: 2px;
  letter-spacing: 0;
  line-height: 1;
}
.star {
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.18);
}
.star.is-on { color: #f5b301; }


.mine-page { padding-bottom: 8px; }
.mine-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mine-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}
.mine-avatar.has-img {
  padding: 0;
  background: #121018;
}
.mine-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mine-hero-text h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.mine-hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.mine-card {
  margin-bottom: 12px;
  padding: 4px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.mine-card-title {
  padding: 10px 14px 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.mine-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mine-row:last-child { border-bottom: 0; }
.mine-row span { color: var(--muted); flex-shrink: 0; }
.mine-row em {
  font-style: normal;
  text-align: right;
  color: #e5e7eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mine-link {
  display: block;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.mine-link:last-child { border-bottom: 0; }
.mine-link:active { background: rgba(255, 255, 255, 0.04); }


.member-page {
  padding-bottom: 20px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.member-toast {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.member-toast.is-ok {
  background: rgba(5, 150, 105, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}
.member-toast.is-err {
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}
.member-hero {
  position: relative;
  padding: 20px 16px 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(232, 163, 23, 0.14), transparent 55%),
    linear-gradient(145deg, rgba(255, 77, 109, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.member-hero.is-vip {
  background:
    radial-gradient(480px 180px at 100% 0%, rgba(232, 163, 23, 0.28), transparent 50%),
    linear-gradient(145deg, rgba(232, 163, 23, 0.2), rgba(255, 77, 109, 0.12));
  border-color: rgba(232, 163, 23, 0.35);
}
.member-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff5a7a, #e11d48);
  flex-shrink: 0;
  text-transform: uppercase;
}
.member-hero h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.member-uid {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.member-uid code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffd28a;
  font-size: 12px;
}
.member-mini-btn {
  border: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.member-vip-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  margin-bottom: 6px;
}
.member-hero:not(.is-vip) .member-vip-pill {
  color: #ffc9d4;
  background: rgba(255, 77, 109, 0.2);
}
.member-vip-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.member-stat {
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.member-stat .n {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.member-stat .l {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.member-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.member-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.member-card-head strong { font-size: 15px; }
.member-card-head span { font-size: 12px; color: var(--muted); }
.member-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.member-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.member-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ff4d6d);
}
.member-share-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.member-share-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #e5e7eb;
  font-size: 12px;
}
.member-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff5a7a, #e11d48);
  white-space: nowrap;
}
.member-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.member-btn.danger { color: #fecaca; }
.member-benefits {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #d1d5db;
}
.member-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-invite-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.member-invite-list li:last-child { border-bottom: 0; }
.member-invite-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.member-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.member-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 14px;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 520px) {
  .member-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .member-stat .n { font-size: 18px; }
  .member-share-row { flex-direction: column; }
}


.download-page { padding-bottom: 12px; }
.download-hero {
  text-align: center;
  padding: 28px 16px 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 77, 109, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.download-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #ff4d6d), var(--accent-2, #ff7a45));
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.28);
  overflow: hidden;
}
.download-badge.has-img {
  padding: 0;
  background: #111;
}
.download-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.download-hero h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.download-hero p {
  margin: 0 auto;
  max-width: 28em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.download-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.dl-btn-android {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.dl-btn-ios {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.dl-btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #9aa0ab;
  cursor: not-allowed;
}
.dl-btn:active { filter: brightness(1.06); }
.download-tip {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .rec-cover {
    flex-basis: 96px;
    width: 96px;
  }
  .apps-page .ad-icon-grid,
  .section .ad-icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .ad-icon-thumb {
    width: 58px;
    height: 58px;
  }
}


/* ========== 蘑菇风模板 body.tpl-mogu ========== */
body.tpl-mogu {
  --mogu-bg: #000000;
  --mogu-panel: #121212;
  --mogu-line: rgba(255, 255, 255, 0.08);
  background: var(--bg, var(--mogu-bg)) !important;
  color: #f5f5f5;
  font-family: "Noto Sans SC", system-ui, sans-serif;
}
body.tpl-mogu.mogu-app {
  padding-bottom: 0;
}
body.tpl-mogu .site-header,
body.tpl-mogu .main-nav,
body.tpl-mogu .header-top-bar,
body.tpl-mogu .nav-scroll-wrap {
  display: none !important;
}

/* Header */
body.tpl-mogu .mogu-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mogu-line);
}
body.tpl-mogu .mogu-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  max-width: 1200px;
  margin: 0 auto;
}
body.tpl-mogu .mogu-brand {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  max-width: 120px;
}
body.tpl-mogu .mogu-brand .logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transform: scale(0.9);
  transform-origin: left center;
}
body.tpl-mogu .mogu-brand .logo-text,
body.tpl-mogu .mogu-brand .logo span:last-child {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
body.tpl-mogu .mogu-brand .logo-mark-svg,
body.tpl-mogu .mogu-brand .logo-mark svg {
  width: 28px;
  height: 28px;
}
body.tpl-mogu .mogu-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1c1c1e;
  border: 1px solid var(--mogu-line);
  border-radius: 999px;
  padding: 0 0 0 12px;
  height: 34px;
  overflow: hidden;
}
body.tpl-mogu .mogu-search-ico {
  color: #888;
  flex: 0 0 auto;
}
body.tpl-mogu .mogu-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  outline: none;
}
body.tpl-mogu .mogu-search-btn {
  flex: 0 0 auto;
  align-self: stretch;
  border: 0;
  margin: 0;
  padding: 0 14px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--accent-2, #ff9a5a), var(--accent, #ff7a45));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
body.tpl-mogu .mogu-search-btn:hover {
  filter: brightness(1.06);
}
body.tpl-mogu .mogu-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
body.tpl-mogu .mogu-header-actions .header-user {
  display: none;
}
/* PC 短视频入口：后台开启短视频后显示；手机端用底栏，隐藏顶栏入口 */
body.tpl-mogu .mogu-short-desktop {
  display: none;
}
body.tpl-mogu .mogu-short-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, #ff2d6a) 55%, transparent);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 45, 106, 0.16);
}
body.tpl-mogu .mogu-short-btn.is-active,
body.tpl-mogu .mogu-short-btn:hover {
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
  border-color: transparent;
}
body.tpl-mogu .mogu-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
body.tpl-mogu .mogu-dl-btn svg {
  flex: 0 0 auto;
}

/* Category scroll */
body.tpl-mogu .mogu-cat-scroll {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px 8px;
}
body.tpl-mogu .mogu-cat-track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
body.tpl-mogu .mogu-cat-track::-webkit-scrollbar {
  display: none;
}
body.tpl-mogu .mogu-cat-item {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #bdbdbd;
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}
body.tpl-mogu .mogu-cat-item.is-active {
  color: #fff;
  font-weight: 700;
  position: relative;
}
body.tpl-mogu .mogu-cat-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--accent, #ff2d6a);
}

/* Main */
body.tpl-mogu .mogu-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 12px 24px;
}
body.tpl-mogu .mogu-slide-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 12px 0;
}
body.tpl-mogu .mogu-slide-wrap .mayi-slideshow {
  border-radius: 10px;
  overflow: hidden;
}
body.tpl-mogu .notice-marquee-bar {
  margin: 6px 0 8px;
  min-height: 28px;
  gap: 6px;
  padding: 0 0 0 8px;
  border-radius: 6px;
}
body.tpl-mogu .notice-marquee-item {
  padding: 5px 36px 5px 0;
  font-size: 12px;
  line-height: 1.3;
}
body.tpl-mogu .notice-bookmark-btn {
  margin: 3px 6px 3px 0;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
}
@media (max-width: 560px) {
  body.tpl-mogu .notice-marquee-bar {
    min-height: 28px;
    padding-left: 8px;
  }
  body.tpl-mogu .notice-marquee-item {
    font-size: 11px;
    padding-right: 28px;
  }
}

/* Function grid */
body.tpl-mogu .mogu-func-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 6px;
  margin: 12px 0 14px;
}
body.tpl-mogu .mogu-func-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.tpl-mogu .mogu-func-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #eee;
  font-size: 11px;
}
body.tpl-mogu .mogu-func-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent, #ff2d6a);
  border: 1.5px solid color-mix(in srgb, var(--accent, #ff2d6a) 70%, transparent);
  background: color-mix(in srgb, var(--accent, #ff2d6a) 10%, transparent);
}
body.tpl-mogu .mogu-func-label {
  text-align: center;
  line-height: 1.2;
  max-width: 4.5em;
}

/* Partner / icon ads denser */
body.tpl-mogu .mogu-partner-ads .ad-icon-grid,
body.tpl-mogu .home-icon-ads .ad-icon-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 8px;
}
body.tpl-mogu .mogu-partner-ads .ad-icon-thumb,
body.tpl-mogu .home-icon-ads .ad-icon-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
body.tpl-mogu .mogu-partner-ads .ad-icon-name,
body.tpl-mogu .home-icon-ads .ad-icon-name {
  font-size: 11px;
}

/* Sections & video grid: mobile-first 2 cols */
body.tpl-mogu .section {
  margin: 14px 0 18px;
}
body.tpl-mogu .section-head {
  margin-bottom: 10px;
}
body.tpl-mogu .section-head h2 {
  font-size: 16px;
  font-weight: 800;
}
body.tpl-mogu .section-head h2::before {
  background: var(--accent, #ff2d6a);
  width: 3px;
  height: 1em;
  border-radius: 2px;
}
body.tpl-mogu .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
}
body.tpl-mogu .video-card .title {
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
body.tpl-mogu .video-card .meta {
  display: none;
}
body.tpl-mogu .video-card .thumb {
  border-radius: 8px;
  overflow: hidden;
}
body.tpl-mogu .video-card .duration {
  font-size: 11px;
}

/* Sticky download + VIP float */
body.tpl-mogu .mogu-sticky-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(28, 28, 30, 0.96);
  border-top: 1px solid var(--mogu-line);
}
body.tpl-mogu .mogu-sticky-dl-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.tpl-mogu .mogu-sticky-dl-text strong {
  font-size: 13px;
  color: #fff;
}
body.tpl-mogu .mogu-sticky-dl-text span {
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.tpl-mogu .mogu-sticky-dl-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
body.tpl-mogu .mogu-vip-float {
  position: fixed;
  right: 12px;
  bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  z-index: 46;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #c9a227 55%, #8a6b12);
  color: #1a1200;
  font-weight: 900;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
body.tpl-mogu.mogu-dl-bar-on.m-tabbar-on {
  padding-bottom: calc(56px + 52px + env(safe-area-inset-bottom, 0px));
}
body.tpl-mogu.m-tabbar-on:not(.mogu-dl-bar-on) {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
body.tpl-mogu .mogu-footer {
  padding-bottom: 16px;
  opacity: 0.85;
}
body.tpl-mogu .mogu-tabbar {
  border-top: 1px solid var(--mogu-line);
  background: rgba(0, 0, 0, 0.96);
}
body.tpl-mogu .mobile-tab.is-active {
  color: var(--accent, #ff2d6a);
}

/* List / inner pages reuse mogu shell */
body.tpl-mogu .rec-list,
body.tpl-mogu .mine-page,
body.tpl-mogu .apps-page {
  max-width: 100%;
}

/* Desktop / tablet */
@media (min-width: 721px) {
  body.tpl-mogu .mogu-header-row {
    padding: 12px 20px 8px;
    gap: 14px;
  }
  body.tpl-mogu .mogu-brand {
    max-width: 180px;
  }
  body.tpl-mogu .mogu-brand .logo {
    transform: scale(1);
  }
  body.tpl-mogu .mogu-search {
    height: 40px;
    max-width: 520px;
  }
  body.tpl-mogu .mogu-search-btn {
    padding: 0 18px;
    font-size: 14px;
  }
  body.tpl-mogu .mogu-header-actions .header-user {
    display: flex;
  }
  body.tpl-mogu .mogu-header-actions {
    margin-left: auto;
  }
  body.tpl-mogu .mogu-short-desktop {
    display: block;
  }
  body.tpl-mogu .mogu-cat-scroll {
    padding: 0 20px 10px;
  }
  body.tpl-mogu .mogu-cat-item {
    font-size: 14px;
    padding: 8px 12px;
  }
  body.tpl-mogu .mogu-main,
  body.tpl-mogu .mogu-slide-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  body.tpl-mogu .mogu-func-grid {
    gap: 16px 12px;
    margin: 16px 0 20px;
  }
  body.tpl-mogu .mogu-func-ico {
    width: 52px;
    height: 52px;
  }
  body.tpl-mogu .mogu-func-item {
    font-size: 12px;
  }
  body.tpl-mogu .mogu-partner-ads .ad-icon-grid,
  body.tpl-mogu .home-icon-ads .ad-icon-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px 12px;
  }
  body.tpl-mogu .mogu-partner-ads .ad-icon-thumb,
  body.tpl-mogu .home-icon-ads .ad-icon-thumb {
    width: 64px;
    height: 64px;
  }
  body.tpl-mogu .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }
  body.tpl-mogu .video-card .meta {
    display: flex;
  }
  /* Hide mobile chrome on PC */
  body.tpl-mogu .mobile-tabbar,
  body.tpl-mogu .mogu-sticky-dl {
    display: none !important;
  }
  body.tpl-mogu.mogu-dl-bar-on.m-tabbar-on,
  body.tpl-mogu.m-tabbar-on:not(.mogu-dl-bar-on) {
    padding-bottom: 0;
  }
  body.tpl-mogu .mogu-vip-float {
    bottom: 40px;
    right: 28px;
  }
}
@media (min-width: 1100px) {
  body.tpl-mogu .video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body.tpl-mogu .mogu-partner-ads .ad-icon-grid,
  body.tpl-mogu .home-icon-ads .ad-icon-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  body.tpl-mogu .mogu-brand .logo-text {
    display: none;
  }
  body.tpl-mogu .mogu-dl-btn span {
    display: none;
  }
  body.tpl-mogu .mogu-dl-btn {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
}


/* v1.5.6 首页广告开关：PC/手机均生效（勿再塞进仅手机的 media 里） */
body.m-home-icon-off .home-icon-ads {
  display: none !important;
}
body.m-home-banner-off .home-banner-ads {
  display: none !important;
}
body.m-home-global-ads-off .ad-global-wrap {
  display: none !important;
}
/* 手机端：图标广告强制不出现在首页（仅福利应用页展示） */
@media (max-width: 720px) {
  .home-icon-ads {
    display: none !important;
  }
}

/* 蘑菇风友链 / 页脚 */
body.tpl-mogu .mogu-footer {
  margin-top: 28px;
  padding: 22px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18,18,18,0.96), #000);
  text-align: center;
}
body.tpl-mogu .mogu-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
body.tpl-mogu .mogu-friend-links {
  margin: 0 0 14px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
body.tpl-mogu .mogu-fl-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
}
body.tpl-mogu .mogu-fl-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
body.tpl-mogu .mogu-fl-item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #ddd;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
body.tpl-mogu .mogu-fl-item:hover {
  color: #fff;
  border-color: rgba(255, 45, 106, 0.55);
  background: rgba(255, 45, 106, 0.18);
}
body.tpl-mogu .mogu-site-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 10px;
  font-size: 12px;
}
body.tpl-mogu .mogu-site-pages a {
  color: #aaa;
  text-decoration: none;
}
body.tpl-mogu .mogu-site-pages a:hover { color: var(--accent, #ff2d6a); }
body.tpl-mogu .mogu-dot { color: #555; }
body.tpl-mogu .mogu-copy {
  margin: 4px 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}
@media (min-width: 721px) {
  body.tpl-mogu .mogu-footer {
    padding: 28px 20px 24px;
  }
  body.tpl-mogu .mogu-fl-item {
    min-height: 32px;
    font-size: 13px;
  }
}


/* ========== 清新萌模板 body.tpl-qingmeng ========== */
body.tpl-qingmeng {
  --qm-bg: #fff5f8;
  --qm-panel: #ffffff;
  --qm-line: rgba(255, 107, 157, 0.16);
  --accent: #ff6b9d;
  --accent-2: #ff9f6b;
  background: linear-gradient(180deg, #fff7fb 0%, #fff5f0 45%, #fff9f6 100%) !important;
  color: #3a2a32;
  font-family: "Noto Sans SC", system-ui, sans-serif;
}
body.tpl-qingmeng.qm-app {
  padding-bottom: 0;
}
body.tpl-qingmeng .site-header,
body.tpl-qingmeng .main-nav,
body.tpl-qingmeng .header-top-bar,
body.tpl-qingmeng .nav-scroll-wrap {
  display: none !important;
}

/* Header */
body.tpl-qingmeng .qm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--qm-line);
}
body.tpl-qingmeng .qm-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  max-width: 1200px;
  margin: 0 auto;
}
body.tpl-qingmeng .qm-brand {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  max-width: 120px;
}
body.tpl-qingmeng .qm-brand .logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transform: scale(0.9);
  transform-origin: left center;
}
body.tpl-qingmeng .qm-brand .logo-text,
body.tpl-qingmeng .qm-brand .logo span:last-child {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
body.tpl-qingmeng .qm-brand .logo-mark-svg,
body.tpl-qingmeng .qm-brand .logo-mark svg {
  width: 28px;
  height: 28px;
}
body.tpl-qingmeng .qm-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--qm-line);
  border-radius: 999px;
  padding: 0 0 0 12px;
  height: 34px;
  overflow: hidden;
}
body.tpl-qingmeng .qm-search-ico {
  color: #c48a9a;
  flex: 0 0 auto;
}
body.tpl-qingmeng .qm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #3a2a32;
  font-size: 13px;
  outline: none;
}
body.tpl-qingmeng .qm-search-btn {
  flex: 0 0 auto;
  align-self: stretch;
  border: 0;
  margin: 0;
  padding: 0 14px;
  min-width: 52px;
  background: linear-gradient(135deg, #ff8fb3, #ff6b9d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
body.tpl-qingmeng .qm-search-btn:hover {
  filter: brightness(1.05);
}
body.tpl-qingmeng .qm-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
body.tpl-qingmeng .qm-header-actions .header-user {
  display: none;
}
/* PC 短视频入口：后台开启短视频后显示；手机端用底栏，隐藏顶栏入口 */
body.tpl-qingmeng .qm-short-desktop {
  display: none;
}
body.tpl-qingmeng .qm-short-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, #ff2d6a) 55%, transparent);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 45, 106, 0.16);
}
body.tpl-qingmeng .qm-short-btn.is-active,
body.tpl-qingmeng .qm-short-btn:hover {
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
  border-color: transparent;
}
body.tpl-qingmeng .qm-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
body.tpl-qingmeng .qm-dl-btn svg {
  flex: 0 0 auto;
}

/* Category scroll */
body.tpl-qingmeng .qm-cat-scroll {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px 8px;
}
body.tpl-qingmeng .qm-cat-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
body.tpl-qingmeng .qm-cat-scroll > .qm-cat-all {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  margin-left: 2px;
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(255,247,251,0), #fff7fb 28%, #fff7fb 100%);
}
body.tpl-qingmeng .qm-cat-track::-webkit-scrollbar {
  display: none;
}
body.tpl-qingmeng .qm-cat-item {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #8a6a75;
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}
body.tpl-qingmeng .qm-cat-item.is-active {
  color: #ff6b9d;
  font-weight: 700;
  position: relative;
}
body.tpl-qingmeng .qm-cat-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--accent, #ff2d6a);
}

/* Main */
body.tpl-qingmeng .qm-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 12px 24px;
}
body.tpl-qingmeng .qm-slide-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 12px 0;
}
body.tpl-qingmeng .qm-slide-wrap .mayi-slideshow {
  border-radius: 10px;
  overflow: hidden;
}
body.tpl-qingmeng .notice-marquee-bar {
  margin: 6px 0 8px;
  min-height: 28px;
  gap: 6px;
  padding: 0 0 0 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fff3c4, #ffe0ef);
  border: 1px solid rgba(255, 159, 107, 0.35);
  color: #6a3a28;
}
body.tpl-qingmeng .notice-marquee-item {
  padding: 5px 36px 5px 0;
  font-size: 12px;
  line-height: 1.3;
}
body.tpl-qingmeng .notice-bookmark-btn {
  margin: 3px 6px 3px 0;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
}
@media (max-width: 560px) {
  body.tpl-qingmeng .notice-marquee-bar {
    min-height: 28px;
    padding-left: 8px;
  }
  body.tpl-qingmeng .notice-marquee-item {
    font-size: 11px;
    padding-right: 28px;
  }
}

/* Function grid */
body.tpl-qingmeng .qm-func-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 6px;
  margin: 12px 0 14px;
}
body.tpl-qingmeng .qm-func-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.tpl-qingmeng .qm-func-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #5a3d48;
  font-size: 11px;
}
body.tpl-qingmeng .qm-func-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent, #ff2d6a);
  border: 1.5px solid color-mix(in srgb, var(--accent, #ff2d6a) 70%, transparent);
  background: color-mix(in srgb, var(--accent, #ff2d6a) 10%, transparent);
}
body.tpl-qingmeng .qm-func-label {
  text-align: center;
  line-height: 1.2;
  max-width: 4.5em;
}

/* Partner / icon ads denser */
body.tpl-qingmeng .qm-partner-ads .ad-icon-grid,
body.tpl-qingmeng .home-icon-ads .ad-icon-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 8px;
}
body.tpl-qingmeng .qm-partner-ads .ad-icon-thumb,
body.tpl-qingmeng .home-icon-ads .ad-icon-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
body.tpl-qingmeng .qm-partner-ads .ad-icon-name,
body.tpl-qingmeng .home-icon-ads .ad-icon-name {
  font-size: 11px;
}

/* Sections & video grid: mobile-first 2 cols */
body.tpl-qingmeng .section {
  margin: 14px 0 18px;
}
body.tpl-qingmeng .section-head {
  margin-bottom: 10px;
}
body.tpl-qingmeng .section-head h2 {
  font-size: 16px;
  font-weight: 800;
}
body.tpl-qingmeng .section-head h2::before {
  background: var(--accent, #ff2d6a);
  width: 3px;
  height: 1em;
  border-radius: 2px;
}
body.tpl-qingmeng .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
}
body.tpl-qingmeng .video-card .title {
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
body.tpl-qingmeng .video-card .meta {
  display: none;
}
body.tpl-qingmeng .video-card .thumb {
  border-radius: 8px;
  overflow: hidden;
}
body.tpl-qingmeng .video-card .duration {
  font-size: 11px;
}

/* Sticky download + VIP float */
body.tpl-qingmeng .qm-sticky-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--qm-line);
}
body.tpl-qingmeng .qm-sticky-dl-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.tpl-qingmeng .qm-sticky-dl-text strong {
  font-size: 13px;
  color: #fff;
}
body.tpl-qingmeng .qm-sticky-dl-text span {
  font-size: 11px;
  color: #a07a88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.tpl-qingmeng .qm-sticky-dl-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
body.tpl-qingmeng .qm-vip-float {
  position: fixed;
  right: 12px;
  bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  z-index: 46;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #c9a227 55%, #8a6b12);
  color: #1a1200;
  font-weight: 900;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.28);
}
body.tpl-qingmeng.qm-dl-bar-on.m-tabbar-on {
  padding-bottom: calc(56px + 52px + env(safe-area-inset-bottom, 0px));
}
body.tpl-qingmeng.m-tabbar-on:not(.qm-dl-bar-on) {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
body.tpl-qingmeng .qm-footer {
  padding-bottom: 16px;
  opacity: 0.85;
}
body.tpl-qingmeng .qm-tabbar {
  border-top: 1px solid var(--qm-line);
  background: rgba(255, 255, 255, 0.96);
}
body.tpl-qingmeng .mobile-tab.is-active {
  color: var(--accent, #ff2d6a);
}

/* List / inner pages reuse mogu shell */
body.tpl-qingmeng .rec-list,
body.tpl-qingmeng .mine-page,
body.tpl-qingmeng .apps-page {
  max-width: 100%;
}

/* Desktop / tablet */
@media (min-width: 721px) {
  body.tpl-qingmeng .qm-header-row {
    padding: 12px 20px 8px;
    gap: 14px;
  }
  body.tpl-qingmeng .qm-brand {
    max-width: 180px;
  }
  body.tpl-qingmeng .qm-brand .logo {
    transform: scale(1);
  }
  body.tpl-qingmeng .qm-search {
    height: 40px;
    max-width: 520px;
  }
  body.tpl-qingmeng .qm-search-btn {
    padding: 0 18px;
    font-size: 14px;
  }
  body.tpl-qingmeng .qm-header-actions .header-user {
    display: flex;
  }
  body.tpl-qingmeng .qm-short-desktop {
    display: block;
  }
  body.tpl-qingmeng .qm-cat-scroll {
    padding: 0 20px 10px;
  }
  body.tpl-qingmeng .qm-cat-item {
    font-size: 14px;
    padding: 8px 12px;
  }
  body.tpl-qingmeng .qm-main,
  body.tpl-qingmeng .qm-slide-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  body.tpl-qingmeng .qm-func-grid {
    gap: 16px 12px;
    margin: 16px 0 20px;
  }
  body.tpl-qingmeng .qm-func-ico {
    width: 52px;
    height: 52px;
  }
  body.tpl-qingmeng .qm-func-item {
    font-size: 12px;
  }
  body.tpl-qingmeng .qm-partner-ads .ad-icon-grid,
  body.tpl-qingmeng .home-icon-ads .ad-icon-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px 12px;
  }
  body.tpl-qingmeng .qm-partner-ads .ad-icon-thumb,
  body.tpl-qingmeng .home-icon-ads .ad-icon-thumb {
    width: 64px;
    height: 64px;
  }
  body.tpl-qingmeng .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }
  body.tpl-qingmeng .video-card .meta {
    display: flex;
  }
  /* Hide mobile chrome on PC */
  body.tpl-qingmeng .mobile-tabbar,
  body.tpl-qingmeng .qm-sticky-dl {
    display: none !important;
  }
  body.tpl-qingmeng.qm-dl-bar-on.m-tabbar-on,
  body.tpl-qingmeng.m-tabbar-on:not(.qm-dl-bar-on) {
    padding-bottom: 0;
  }
  body.tpl-qingmeng .qm-vip-float {
    bottom: 40px;
    right: 28px;
  }
}
@media (min-width: 1100px) {
  body.tpl-qingmeng .video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body.tpl-qingmeng .qm-partner-ads .ad-icon-grid,
  body.tpl-qingmeng .home-icon-ads .ad-icon-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  body.tpl-qingmeng .qm-brand .logo-text {
    display: none;
  }
  body.tpl-qingmeng .qm-dl-btn span {
    display: none;
  }
  body.tpl-qingmeng .qm-dl-btn {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
}

/* 清新萌友链 / 页脚 */
body.tpl-qingmeng .qm-footer {
  margin-top: 28px;
  padding: 22px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,247,251,0.96), #fff5f0);
  text-align: center;
}
body.tpl-qingmeng .qm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
body.tpl-qingmeng .qm-friend-links {
  margin: 0 0 14px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.14);
}
body.tpl-qingmeng .qm-fl-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(90deg, var(--accent, #ff2d6a), var(--accent-2, #ff7a45));
}
body.tpl-qingmeng .qm-fl-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
body.tpl-qingmeng .qm-fl-item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #6a4a55;
  text-decoration: none;
  background: #fff7fb;
  border: 1px solid rgba(255, 107, 157, 0.14);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
body.tpl-qingmeng .qm-fl-item:hover {
  color: #fff;
  border-color: rgba(255, 45, 106, 0.55);
  background: rgba(255, 45, 106, 0.18);
}
body.tpl-qingmeng .qm-site-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 10px;
  font-size: 12px;
}
body.tpl-qingmeng .qm-site-pages a {
  color: #a07a88;
  text-decoration: none;
}
body.tpl-qingmeng .qm-site-pages a:hover { color: var(--accent, #ff2d6a); }
body.tpl-qingmeng .qm-dot { color: #d0a8b4; }
body.tpl-qingmeng .qm-copy {
  margin: 4px 0 0;
  color: #a07a88;
  font-size: 12px;
  line-height: 1.5;
}
@media (min-width: 721px) {
  body.tpl-qingmeng .qm-footer {
    padding: 28px 20px 24px;
  }
  body.tpl-qingmeng .qm-fl-item {
    min-height: 32px;
    font-size: 13px;
  }
}

/* 清新萌：视频卡片（白底软阴影，去掉深色框） */
body.tpl-qingmeng {
  --bg-card: #ffffff;
}
body.tpl-qingmeng .video-card {
  background: #fff !important;
  border: 1px solid rgba(255, 107, 157, 0.14) !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body.tpl-qingmeng .video-card:hover {
  border-color: rgba(255, 107, 157, 0.45) !important;
  box-shadow: 0 10px 22px rgba(255, 107, 157, 0.18);
  transform: translateY(-3px);
}
body.tpl-qingmeng .video-card .thumb {
  background: #ffe8f0 !important;
  border-radius: 0 !important; /* 由外层卡片统一圆角，避免双重圆角 */
  box-shadow: none !important;
}
body.tpl-qingmeng .video-card .thumb img,
body.tpl-qingmeng .video-card .thumb-preview {
  border-radius: 0;
}
body.tpl-qingmeng .video-card .duration {
  background: rgba(255, 77, 125, 0.88);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 650;
}
body.tpl-qingmeng .video-card .title {
  margin: 10px 10px 4px !important;
  color: #3a2a32 !important;
  font-weight: 650 !important;
  font-size: 13px !important;
  min-height: 2.6em;
}
body.tpl-qingmeng .video-card .meta {
  display: flex !important;
  padding: 0 10px 10px !important;
  color: #9a6a78 !important;
  font-size: 11px;
}
body.tpl-qingmeng .video-card .meta .likes {
  color: #ff6b9d;
}
@media (max-width: 720px) {
  body.tpl-qingmeng .video-card .meta {
    display: none !important; /* 手机仍简洁双列 */
  }
  body.tpl-qingmeng .video-card {
    border-radius: 12px !important;
  }
  body.tpl-qingmeng .video-card .title {
    margin: 8px 8px 8px !important;
    font-size: 12px !important;
  }
}

body.tpl-qingmeng .qm-func-ico {
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}
body.tpl-qingmeng .qm-search {
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.1);
}
body.tpl-qingmeng .section-head h2 {
  color: #3a2a32;
}
body.tpl-qingmeng .qm-short-btn {
  color: #ff6b9d;
  background: rgba(255, 107, 157, 0.1);
}
body.tpl-qingmeng .qm-header {
  border-bottom-color: rgba(255, 107, 157, 0.12);
}
/* qingmeng-ui-fix */
body.tpl-qingmeng {
  --muted: #7a5562;
  --name-c1: #ff4d7d;
  --name-c2: #ff9f6b;
  color: #3a2a32;
}
body.tpl-qingmeng .qm-brand .logo-name,
body.tpl-qingmeng.name-solid .qm-brand .logo-name,
body.tpl-qingmeng .logo-name {
  color: #ff4d7d !important;
  -webkit-text-fill-color: #ff4d7d !important;
  background: none !important;
}
body.tpl-qingmeng .qm-brand .logo-tag { color: #a06a7a !important; }
body.tpl-qingmeng .qm-brand { max-width: 148px; min-width: 36px; }
body.tpl-qingmeng .qm-brand .logo--favicon .logo-name-row {
  display: flex; align-items: center; gap: 6px;
}
@media (max-width: 380px) {
  body.tpl-qingmeng .qm-brand .logo-text { display: flex !important; }
  body.tpl-qingmeng .qm-brand .logo-name,
  body.tpl-qingmeng .qm-brand .logo-tag { display: none; }
  body.tpl-qingmeng .qm-brand .logo-name-row .logo-name { display: none; }
}
body.tpl-qingmeng .notice-marquee-bar,
body.tpl-qingmeng .notice-marquee-item {
  color: #5c3218 !important;
  font-weight: 600;
}
body.tpl-qingmeng .notice-bookmark-btn {
  color: #fff !important;
  background: linear-gradient(90deg, #ff6b9d, #ff9f6b) !important;
}
body.tpl-qingmeng .empty,
body.tpl-qingmeng .muted { color: #8a6572 !important; }
body.tpl-qingmeng .qm-sticky-dl-text strong { color: #3a2a32 !important; }
body.tpl-qingmeng .qm-sticky-dl-text span { color: #7a5562 !important; }
body.tpl-qingmeng .qm-short-btn { color: #ff4d7d !important; }
body.tpl-qingmeng .qm-func-ico {
  width: 48px; height: 48px; border: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
body.tpl-qingmeng .qm-func-ico svg {
  width: 44px; height: 44px; display: block;
  filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.18));
}
body.tpl-qingmeng .qm-func-label { color: #4a3038; font-weight: 650; }
body.tpl-qingmeng .mine-card {
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.14);
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.08);
}
body.tpl-qingmeng .mine-card-title { color: #9a6a78; }
body.tpl-qingmeng .mine-link {
  display: flex; align-items: center; gap: 10px;
  color: #3a2a32 !important; font-weight: 650;
  border-bottom-color: rgba(255, 107, 157, 0.1) !important;
}
body.tpl-qingmeng .mine-link:active { background: rgba(255, 107, 157, 0.06); }
body.tpl-qingmeng .mine-ico {
  width: 30px; height: 30px; border-radius: 10px;
  display: inline-grid; place-items: center; flex: 0 0 auto;
  color: #ff4d7d;
  background: linear-gradient(145deg, #ffe8f0, #fff1e6);
  border: 1px solid rgba(255, 107, 157, 0.18);
}
body.tpl-qingmeng .mine-row {
  border-bottom-color: rgba(255, 107, 157, 0.1) !important;
  color: #3a2a32;
}
body.tpl-qingmeng .mine-row span,
body.tpl-qingmeng .mine-row-label {
  color: #5a3d48 !important;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 650;
}
body.tpl-qingmeng .mine-row-txt { font-style: normal; color: inherit; }
body.tpl-qingmeng .mine-row em { color: #7a5562 !important; }
body.tpl-qingmeng .mine-hero {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.16), rgba(255, 159, 107, 0.12));
  border: 1px solid rgba(255, 107, 157, 0.18);
}
body.tpl-qingmeng .mine-hero-text h2 { color: #3a2a32; }
body.tpl-qingmeng .mine-hero-text p { color: #7a5562 !important; }
body.tpl-qingmeng .mobile-tab { color: #8a6572; }
body.tpl-qingmeng .mobile-tab.is-active { color: #ff4d7d !important; }
body.tpl-qingmeng .header-user-link,
body.tpl-qingmeng .header-auth-btn {
  color: #ff4d7d !important;
  border-color: rgba(255, 77, 125, 0.35);
  background: rgba(255, 107, 157, 0.08);
}
/* /qingmeng-ui-fix */

/* qingmeng-ui-v3 */
body.tpl-qingmeng .qm-header-auth,
body.tpl-qingmeng .qm-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
@media (min-width: 721px) {
  /* 整组按钮靠右：登录 + 短视频/聊天室/下载 */
  body.tpl-qingmeng .qm-header-auth {
    margin-left: auto;
  }
  body.tpl-qingmeng .qm-header-tools {
    margin-left: 0;
  }
  body.tpl-qingmeng .qm-short-desktop { display: block !important; }
  body.tpl-qingmeng .qm-header-auth .header-user { display: flex !important; }
  body.tpl-qingmeng .qm-short-btn,
  body.tpl-qingmeng .qm-dl-btn { height: 36px; padding: 0 14px; font-size: 13px; }
}
/* /qingmeng-ui-v3 */

/* qingmeng-ui-v4：Logo/宫格 + 去 VIP 球 */
body.tpl-qingmeng .qm-brand {
  max-width: 240px;
  min-width: 40px;
  flex: 0 0 auto;
}
body.tpl-qingmeng .qm-brand .logo {
  transform: none !important;
  gap: 8px;
  align-items: flex-end; /* PC 站名与图标底部对齐 */
}
body.tpl-qingmeng .qm-brand .logo-text {
  justify-content: flex-end;
  padding-bottom: 1px;
}
body.tpl-qingmeng .qm-brand .logo-mark--favicon,
body.tpl-qingmeng .qm-brand .logo-mark {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}
body.tpl-qingmeng .qm-brand .logo-mark--favicon img,
body.tpl-qingmeng .qm-brand .logo-mark img,
body.tpl-qingmeng .qm-brand .logo-mark svg,
body.tpl-qingmeng .qm-brand .logo-mark-svg {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}
body.tpl-qingmeng .qm-brand .logo-name {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #ff4d7d !important;
  -webkit-text-fill-color: #ff4d7d !important;
}
/* 手机端 Logo 再小一点 */
@media (max-width: 720px) {
  body.tpl-qingmeng .qm-brand .logo {
    align-items: center;
    gap: 6px;
  }
  body.tpl-qingmeng .qm-brand .logo-text { display: flex !important; }
  body.tpl-qingmeng .qm-brand .logo-name,
  body.tpl-qingmeng .qm-brand .logo-tag { display: none !important; }
  body.tpl-qingmeng .qm-brand .logo-mark--favicon,
  body.tpl-qingmeng .qm-brand .logo-mark,
  body.tpl-qingmeng .qm-brand .logo-mark--favicon img,
  body.tpl-qingmeng .qm-brand .logo-mark img,
  body.tpl-qingmeng .qm-brand .logo-mark svg {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px;
  }
}
@media (min-width: 721px) {
  body.tpl-qingmeng .qm-brand { max-width: 320px; }
  body.tpl-qingmeng .qm-brand .logo-mark--favicon,
  body.tpl-qingmeng .qm-brand .logo-mark,
  body.tpl-qingmeng .qm-brand .logo-mark--favicon img,
  body.tpl-qingmeng .qm-brand .logo-mark img,
  body.tpl-qingmeng .qm-brand .logo-mark svg {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px;
  }
  body.tpl-qingmeng .qm-brand .logo-name {
    font-size: 24px !important;
    line-height: 1 !important;
  }
  /* 登录与短视频/聊天室/下载成组靠右 */
  body.tpl-qingmeng .qm-header-auth {
    margin-left: auto;
  }
  body.tpl-qingmeng .qm-header-tools {
    margin-left: 8px;
  }
}

/* 宫格：不重叠——图标不超出格子 */
body.tpl-qingmeng .qm-func-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 8px;
  margin: 16px 0 18px;
  align-items: start;
}
body.tpl-qingmeng .qm-func-item {
  gap: 6px;
  min-width: 0;
  width: 100%;
}
body.tpl-qingmeng .qm-func-ico {
  width: min(58px, 100%) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-width: 58px;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #ffe8f0 !important;
  box-shadow: 0 6px 14px rgba(255, 107, 157, 0.16) !important;
  display: block !important;
  clip-path: circle(49% at 50% 50%);
  -webkit-clip-path: circle(49% at 50% 50%);
}
body.tpl-qingmeng .qm-func-ico img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 50%;
  transform: none !important; /* 禁止放大溢出导致重叠 */
  filter: none;
}
body.tpl-qingmeng .qm-func-label {
  font-size: 12px;
  font-weight: 750;
  color: #4a3038;
  white-space: nowrap;
}
@media (min-width: 721px) {
  body.tpl-qingmeng .qm-func-grid { gap: 18px 16px; }
  body.tpl-qingmeng .qm-func-ico {
    width: min(84px, 100%) !important;
    max-width: 84px;
  }
  body.tpl-qingmeng .qm-func-label { font-size: 13px; }
}

/* 全站去掉 VIP 悬浮球 */
.mogu-vip-float,
.qm-vip-float,
.vip-float,
a.mogu-vip-float,
a.qm-vip-float {
  display: none !important;
}
/* /qingmeng-ui-v4 */

/* qingmeng-cat-video */
/* 全部分类页 */
.cat-all-page {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.cat-all-group { margin: 0 0 22px; }
.cat-all-group-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #3a2a32;
}
.cat-all-flat .cat-all-group-title { display: none; }
.cat-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.cat-all-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  color: #5a3d48;
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.18);
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.07);
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
}
.cat-all-item-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.cat-all-item:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff6b9d, #ff9f6b);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.22);
  transform: translateY(-1px);
}
@media (min-width: 721px) {
  .cat-all-page .section-head h2 {
    font-size: 22px;
  }
  .cat-all-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
  .cat-all-item {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
  }
}
@media (min-width: 1100px) {
  .cat-all-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
  }
}
body.tpl-qingmeng .qm-cat-all,
body.tpl-mogu .mogu-cat-all,
.nav-scroll-all {
  color: #ff4d7d !important;
  font-weight: 800;
}
body.tpl-qingmeng .qm-cat-all.is-active,
body.tpl-mogu .mogu-cat-all.is-active,
.nav-scroll-all.is-active {
  color: #ff4d7d !important;
}

/* 清新萌：视频详情页浅色可读 */
body.tpl-qingmeng .player-section h1 {
  color: #3a2a32 !important;
  font-weight: 800;
}
body.tpl-qingmeng .play-sources {
  gap: 10px;
}
body.tpl-qingmeng .source-btn {
  background: #fff !important;
  color: #ff4d7d !important;
  border: 1px solid rgba(255, 77, 125, 0.35) !important;
  border-radius: 999px !important;
  font-weight: 700;
}
body.tpl-qingmeng .source-btn:hover,
body.tpl-qingmeng .source-btn.active {
  background: linear-gradient(90deg, #ff6b9d, #ff9f6b) !important;
  color: #fff !important;
  border-color: transparent !important;
}
body.tpl-qingmeng .source-btn.vip-channel-btn,
body.tpl-qingmeng .source-btn.vip-channel-promo {
  background: linear-gradient(90deg, #ff9f6b, #ff6b9d) !important;
  color: #fff !important;
  border: 0 !important;
}
body.tpl-qingmeng .play-action-btn {
  background: #fff !important;
  color: #3a2a32 !important;
  border: 1px solid rgba(255, 107, 157, 0.28) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
}
body.tpl-qingmeng .play-action-btn.is-on {
  background: #fff3c4 !important;
  border-color: #f0c14a !important;
  color: #6a4a00 !important;
}
body.tpl-qingmeng .play-action-hint {
  color: #8a6572 !important;
  text-decoration: none;
  font-size: 12px;
}
body.tpl-qingmeng .play-meta {
  color: #6a4a55 !important;
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  gap: 10px 16px;
}
body.tpl-qingmeng .play-meta a {
  color: #ff4d7d !important;
  font-weight: 700;
  text-decoration: none;
}
body.tpl-qingmeng .play-meta span {
  color: #6a4a55 !important;
}
body.tpl-qingmeng .play-desc {
  margin: 12px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff !important;
  color: #3a2a32 !important;
  border: 1px solid rgba(255, 107, 157, 0.14);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.08);
  line-height: 1.65;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
body.tpl-qingmeng .player-tip {
  color: #8a6572 !important;
}
body.tpl-qingmeng .player-lock-card {
  background: #fff !important;
  color: #3a2a32 !important;
  border: 1px solid rgba(255, 107, 157, 0.2) !important;
}
body.tpl-qingmeng .player-lock-card p { color: #7a5562 !important; opacity: 1 !important; }
body.tpl-qingmeng .player-lock-card h3 { color: #3a2a32 !important; }
body.tpl-qingmeng .muted { color: #8a6572 !important; }
body.tpl-qingmeng .player-tip.error { color: #d9486f !important; text-shadow: none; }
body.tpl-qingmeng .btn-lock {
  background: linear-gradient(90deg, #ff6b9d, #ff9f6b) !important;
  color: #fff !important;
}
body.tpl-qingmeng .btn-lock-vip {
  background: linear-gradient(180deg, #f6c453, #e8a317) !important;
  color: #3a2a00 !important;
}
/* /qingmeng-cat-video */

/* qingmeng-menu-color */
/* 强制浅色 token + 禁止系统暗色模式改色 */
html:has(body.tpl-qingmeng),
body.tpl-qingmeng {
  color-scheme: light only !important;
  --bg: #fff5f8 !important;
  --bg-elev: #ffffff !important;
  --bg-card: #ffffff !important;
  --line: rgba(255, 107, 157, 0.18) !important;
  --text: #3a2a32 !important;
  --muted: #8a6572 !important;
  --nav: #ffffff !important;
  --accent: #ff6b9d !important;
  --accent-2: #ff9f6b !important;
  --mark-c1: #ff9f6b !important;
  --mark-c2: #ff6b9d !important;
  --name-c1: #ff4d7d !important;
  --name-c2: #ff9f6b !important;
  --qm-bg: #fff5f8 !important;
  --qm-panel: #ffffff !important;
  --qm-line: rgba(255, 107, 157, 0.18) !important;
  background: #fff5f8 !important;
  background-image: linear-gradient(180deg, #fff7fb 0%, #fff5f0 45%, #fff9f6 100%) !important;
  color: #3a2a32 !important;
  -webkit-text-fill-color: unset;
}
body.tpl-qingmeng .qm-cat-all {
  color: #ff4d7d !important;
  font-weight: 800;
}
body.tpl-qingmeng .qm-cat-all.is-active::after {
  background: #ff4d7d;
}
/* 站名：避免经典白字/透明裁切在浅底上看不见 */
body.tpl-qingmeng .logo-name,
body.tpl-qingmeng.name-gradient .logo-name,
body.tpl-qingmeng.name-solid .logo-name,
body.tpl-qingmeng.name-glow .logo-name,
body.tpl-qingmeng.name-shine .logo-name {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #ff4d7d !important;
  -webkit-text-fill-color: #ff4d7d !important;
  text-shadow: none !important;
  animation: none !important;
}
body.tpl-qingmeng .mobile-tabbar.qm-tabbar,
body.tpl-qingmeng .qm-tabbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid rgba(255, 107, 157, 0.18) !important;
  color: #8a6572 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.tpl-qingmeng .qm-tabbar .mobile-tab {
  color: #8a6572 !important;
}
body.tpl-qingmeng .qm-tabbar .mobile-tab.is-active {
  color: #ff4d7d !important;
}
body.tpl-qingmeng .section-head h2,
body.tpl-qingmeng .video-card .title {
  color: #3a2a32 !important;
}
body.tpl-qingmeng .video-card .meta,
body.tpl-qingmeng .muted {
  color: #8a6572 !important;
}
body.tpl-qingmeng .video-card {
  background: #fff !important;
  border: 1px solid rgba(255, 107, 157, 0.14) !important;
}

/* 手机：隐藏分类栏「全部分类」；下载改下拉（含全部分类列表） */
body.tpl-qingmeng .qm-menu { display: none; position: relative; flex: 0 0 auto; z-index: 50; }
body.tpl-qingmeng .qm-menu-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff6b9d, #ff9f6b);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.28);
}
body.tpl-qingmeng .qm-menu-btn:active { transform: scale(0.96); }
body.tpl-qingmeng .qm-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(86vw, 320px);
  max-height: min(70vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.18);
  box-shadow: 0 14px 32px rgba(255, 107, 157, 0.2);
  z-index: 80;
  color: #3a2a32;
}
body.tpl-qingmeng .qm-menu.is-open .qm-menu-panel { display: block; }
body.tpl-qingmeng .qm-menu-section + .qm-menu-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 107, 157, 0.12); }
body.tpl-qingmeng .qm-menu-title {
  font-size: 12px;
  font-weight: 800;
  color: #ff4d7d;
  margin: 0 0 8px;
}
body.tpl-qingmeng .qm-menu-item,
body.tpl-qingmeng .qm-menu-util {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #3a2a32 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  background: #fff7fb;
  margin-bottom: 6px;
}
body.tpl-qingmeng .qm-menu-item:active,
body.tpl-qingmeng .qm-menu-util:active {
  background: linear-gradient(90deg, rgba(255,107,157,0.16), rgba(255,159,107,0.16));
  color: #ff4d7d !important;
}
body.tpl-qingmeng .qm-menu-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.tpl-qingmeng .qm-menu-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  color: #5a3d48 !important;
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.2);
}
body.tpl-qingmeng .qm-menu-cat.is-active,
body.tpl-qingmeng .qm-menu-cat:active {
  color: #fff !important;
  background: linear-gradient(90deg, #ff6b9d, #ff9f6b);
  border-color: transparent;
}
@media (max-width: 720px) {
  body.tpl-qingmeng .qm-dl-pc { display: none !important; }
  body.tpl-qingmeng .qm-menu { display: block; }
  body.tpl-qingmeng .qm-cat-all { display: none !important; }
  body.tpl-qingmeng .qm-cat-scroll {
    display: block;
    padding-right: 8px;
  }
  body.tpl-qingmeng .qm-cat-track {
    width: 100%;
  }
  body.tpl-qingmeng .qm-header {
    background: #fff7fb !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.tpl-qingmeng .qm-search {
    background: #fff !important;
    border-color: rgba(255, 107, 157, 0.22) !important;
  }
  body.tpl-qingmeng .qm-search input {
    color: #3a2a32 !important;
    -webkit-text-fill-color: #3a2a32 !important;
  }
}
@media (min-width: 721px) {
  body.tpl-qingmeng .qm-menu { display: none !important; }
  body.tpl-qingmeng .qm-dl-pc { display: inline-flex !important; }
}
@media (prefers-color-scheme: dark) {
  body.tpl-qingmeng {
    color-scheme: light only !important;
    background: #fff5f8 !important;
    background-image: linear-gradient(180deg, #fff7fb 0%, #fff5f0 45%, #fff9f6 100%) !important;
    color: #3a2a32 !important;
  }
}

/* 短视频：保持全屏黑底 */
body.tpl-qingmeng.page-short {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
  --bg: #000 !important;
  --bg-elev: #111 !important;
  --bg-card: #151515 !important;
  --text: #fff !important;
  --muted: #b0b0b0 !important;
  --nav: #000 !important;
  color-scheme: dark !important;
}
body.tpl-qingmeng.page-short .qm-header,
body.tpl-qingmeng.page-short .qm-footer,
body.tpl-qingmeng.page-short .qm-cat-scroll,
body.tpl-qingmeng.page-short .qm-slide-wrap,
body.tpl-qingmeng.page-short .qm-sticky-dl,
body.tpl-qingmeng.page-short .qm-menu {
  display: none !important;
}
body.tpl-qingmeng.page-short .qm-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.tpl-qingmeng.page-short .short-app,
body.tpl-qingmeng.page-short .short-top,
body.tpl-qingmeng.page-short .short-slide-meta,
body.tpl-qingmeng.page-short .short-rail-btn {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* /qingmeng-menu-color */


.short-top-mine { display: none !important; }

/* lottery-wallet */
.wallet-page .wallet-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.wallet-stat{background:#fff;border:1px solid rgba(255,107,157,.18);border-radius:14px;padding:14px;text-align:center}
.wallet-stat span{display:block;color:#8a6572;font-size:12px}
.wallet-stat strong{display:block;margin-top:6px;font-size:22px;color:#ff4d7d}
.wallet-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.vip-plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:12px}
.vip-plan-card{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:14px;background:#fff;border:1px solid rgba(255,107,157,.18);box-shadow:0 6px 16px rgba(255,107,157,.08)}
.vip-plan-card em{color:#ff4d7d;font-style:normal;font-weight:800;font-size:20px}
.lottery-page{max-width:520px;margin:0 auto;padding:0 12px calc(28px + env(safe-area-inset-bottom,0px));color:#fff;box-sizing:border-box;width:100%}
.lot-hero{position:relative;display:flex;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-top,0px)) 8px 8px;gap:8px}
.lot-back{position:absolute;left:4px;top:max(10px,env(safe-area-inset-top,0px));width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2);color:#fff;text-decoration:none;font-size:28px;line-height:1}
.lot-title{margin:0;font-size:clamp(20px,6vw,28px);font-weight:900;letter-spacing:.06em;text-shadow:0 2px 8px rgba(0,0,0,.25);text-align:center;max-width:62%;line-height:1.2}
.lot-rules-btn{position:absolute;right:4px;top:max(14px,calc(env(safe-area-inset-top,0px) + 4px));border:0;border-radius:999px;padding:6px 12px;background:rgba(255,255,255,.22);color:#fff;font-weight:700;font-size:clamp(12px,3.2vw,14px)}
body.page-lottery,body.tpl-qingmeng.page-lottery,body.tpl-mogu.page-lottery{background:linear-gradient(180deg,#ff4d7d 0%,#ff6b9d 40%,#ff9f6b 100%)!important;color:#fff;min-height:100dvh}
body.tpl-qingmeng.page-lottery .qm-header,
body.tpl-qingmeng.page-lottery .qm-footer,
body.tpl-qingmeng.page-lottery .qm-cat-scroll,
body.tpl-qingmeng.page-lottery .qm-sticky-dl{display:none!important}
body.tpl-qingmeng.page-lottery .qm-main{padding:0;max-width:none;width:100%}
body.tpl-mogu.page-lottery .mogu-header,
body.tpl-mogu.page-lottery .mogu-footer,
body.tpl-mogu.page-lottery .mogu-cat-scroll,
body.tpl-mogu.page-lottery .mogu-sticky-dl,
body.tpl-mogu.page-lottery .site-footer{display:none!important}
body.tpl-mogu.page-lottery .mogu-main{padding:0;max-width:none;width:100%}
body.page-lottery .site-header,body.page-lottery .site-footer,body.page-lottery .nav-scroll-wrap{display:none!important}
body.page-lottery .mobile-tabbar{display:none!important}
.lot-wheel-wrap{position:relative;width:min(92vw,70vh,380px);max-width:100%;margin:10px auto 0;aspect-ratio:1}
.lot-wheel{position:absolute;inset:7%;border-radius:50%;border:clamp(6px,2.2vw,10px) solid #fff;box-shadow:0 12px 32px rgba(0,0,0,.28),inset 0 0 0 6px rgba(255,215,120,.55);overflow:hidden}
.lot-wheel-inner{position:absolute;inset:0;border-radius:50%}
.lot-seg-label{position:absolute;left:50%;top:50%;width:0;height:0;transform:rotate(calc(var(--i, 0) * 45deg));transform-origin:center center;pointer-events:none}
.lot-seg-label span{position:absolute;left:0;top:0;width:4.6em;transform:translate(-50%, -50%) translateY(calc(-1 * clamp(88px, 30vw, 132px)));text-align:center;font-size:clamp(10px, 3vw, 13px);font-weight:800;line-height:1.2;color:#7a3b00;text-shadow:0 1px 0 rgba(255,255,255,.65);white-space:normal;word-break:keep-all;overflow:hidden;max-height:2.5em}
.lot-pointer{position:absolute;left:50%;top:1%;z-index:5;width:0;height:0;margin-left:-12px;border-left:12px solid transparent;border-right:12px solid transparent;border-top:22px solid #fff;filter:drop-shadow(0 3px 3px rgba(0,0,0,.28))}
.lot-go{position:absolute;left:50%;top:50%;z-index:6;width:clamp(64px,22vw,86px);height:clamp(64px,22vw,86px);margin:0;transform:translate(-50%,-50%);border:clamp(3px,1.2vw,5px) solid #fff;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe9a8,#ff6b9d 60%,#ff4d7d);color:#fff;font-size:clamp(18px,5.5vw,24px);font-weight:900;box-shadow:0 10px 22px rgba(0,0,0,.3);cursor:pointer;letter-spacing:.04em}
.lot-go:disabled{opacity:.7;cursor:wait}
.lot-chance{margin:16px auto 0;width:fit-content;max-width:min(96%,420px);padding:10px 14px;border-radius:16px;background:rgba(255,255,255,.95);color:#ff4d7d;font-weight:700;text-align:center;box-shadow:0 6px 16px rgba(0,0,0,.12);font-size:clamp(12px,3.4vw,14px);line-height:1.45;word-break:break-word}
.lot-records-link{position:absolute;right:0;top:14%;z-index:4;padding:7px 10px;border-radius:999px;background:linear-gradient(135deg,#ff5a8a,#ff2d6a);color:#fff;text-decoration:none;font-size:clamp(11px,3vw,12px);font-weight:800;box-shadow:0 6px 14px rgba(255,45,106,.35);white-space:nowrap}
.lot-prize-box{margin:18px 0 0;padding:16px 12px calc(18px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;background:#fff;color:#3a2a32}
.lot-prize-box h2{margin:0 0 12px;text-align:center;color:#ff4d7d;font-size:clamp(16px,4.5vw,20px)}
.lot-prize-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:380px){.lot-prize-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.lot-prize-item{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:clamp(10px,2.8vw,12px);text-align:center;min-width:0}
.lot-prize-item em{font-style:normal;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lot-prize-ico{width:clamp(40px,12vw,48px);height:clamp(40px,12vw,48px);border-radius:12px;background:#fff5f8;border:1px solid rgba(255,107,157,.2);display:grid;place-items:center;overflow:hidden}
.lot-prize-ico img{width:100%;height:100%;object-fit:cover}
.lot-prize-ico span{color:#ff4d7d;font-weight:900;font-size:18px}
.lot-modal{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top,0px)) 16px max(16px,env(safe-area-inset-bottom,0px));box-sizing:border-box}
.lot-modal[hidden]{display:none!important}
.lot-modal-card{width:min(92vw,360px);max-height:min(86dvh,640px);overflow:auto;background:#fff;color:#3a2a32;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
@media (max-height:640px){
  .lot-wheel-wrap{width:min(86vw,56vh,340px)}
  .lot-hero{padding-top:max(6px,env(safe-area-inset-top,0px))}
  .lot-chance{margin-top:10px;padding:8px 12px}
  .lot-prize-box{margin-top:12px;padding-top:12px}
}
@media (min-width:900px){
  .lottery-page{padding-bottom:40px}
  .lot-wheel-wrap{width:min(420px,62vh)}
}
.lot-login-card h3{margin:0;color:#ff4d7d;text-align:center}
.lot-login-card p{margin:0;line-height:1.6;text-align:center;color:#5c4550}
.lot-login-card strong{color:#ff4d7d}
.lot-login-actions{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.lot-login-actions .btn,.lot-login-actions .btn-primary{display:block;text-align:center;text-decoration:none;border-radius:999px;padding:12px 14px;font-weight:800}
.lot-login-actions .btn-primary{background:linear-gradient(135deg,#ff7aa8,#ff4d7d);color:#fff;border:0}
.lot-login-actions .btn{background:#fff5f8;color:#ff4d7d;border:1px solid rgba(255,77,125,.25)}
.lot-addr-form label{display:block;font-size:13px;margin-bottom:8px}
.lot-addr-form input,.lot-addr-form textarea{width:100%;margin-top:4px;padding:8px 10px;border:1px solid rgba(255,107,157,.25);border-radius:10px}
/* /lottery-wallet */

/* lot-float + mall */
.lot-float{position:fixed;right:2px;left:auto;z-index:47;width:84px;height:84px;display:block;text-decoration:none;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;animation:lotFloatBob 2.6s ease-in-out infinite;/* 默认：底栏上方，避开下载条 */
  bottom:calc(132px + env(safe-area-inset-bottom, 0px))}
.lot-float-img{display:block;width:100%;height:100%;object-fit:contain;background:transparent;filter:drop-shadow(0 8px 14px rgba(255,70,90,.35));pointer-events:none}
.lot-float-badge{
  position:absolute;top:2px;right:2px;z-index:3;
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:#ef4444;color:#fff;font-size:12px;font-weight:800;font-style:normal;
  display:inline-flex;align-items:center;justify-content:center;
  border:2px solid #fff;line-height:1;box-sizing:border-box;
  box-shadow:0 2px 8px rgba(239,68,68,.45);pointer-events:none
}
/* 有底部下载条：再抬高，避免挡住「立即下载」 */
body.qm-dl-bar-on .lot-float,
body.tpl-qingmeng.qm-dl-bar-on .lot-float,
body.tpl-mogu.mogu-dl-bar-on .lot-float{bottom:calc(148px + env(safe-area-inset-bottom, 0px))}
/* 无下载条仅底栏 */
body.tpl-qingmeng:not(.qm-dl-bar-on) .lot-float,
body.tpl-mogu:not(.mogu-dl-bar-on) .lot-float{bottom:calc(72px + env(safe-area-inset-bottom, 0px))}
@keyframes lotFloatBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (min-width:900px){
  .lot-float,
  body.qm-dl-bar-on .lot-float,
  body.tpl-qingmeng.qm-dl-bar-on .lot-float,
  body.tpl-qingmeng:not(.qm-dl-bar-on) .lot-float,
  body.tpl-mogu:not(.mogu-dl-bar-on) .lot-float{bottom:28px;right:20px;width:96px;height:96px}
}
body.page-lottery .lot-float,body.page-short .lot-float{display:none!important}
.mall-page .mall-rules{margin:0 0 14px;line-height:1.55}
.mall-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:800px){.mall-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
.mall-card{border-radius:16px;overflow:hidden;background:rgba(255,255,255,.92);border:1px solid rgba(255,107,157,.18);box-shadow:0 8px 20px rgba(255,120,160,.1)}
body:not(.tpl-qingmeng) .mall-card{background:var(--card,#151922);border-color:rgba(255,255,255,.08)}
.mall-card-cover{aspect-ratio:1.2;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ffe3ec,#fff1e6);font-size:36px;font-weight:800;color:#ff4d7d}
.mall-card-cover img{width:100%;height:100%;object-fit:cover}
.mall-card-body{padding:12px}
.mall-card-body h3{margin:0 0 6px;font-size:15px}
.mall-meta,.mall-price{margin:0 0 8px;font-size:13px}
.mall-price strong{color:#ff4d7d;font-size:18px}
.mall-addr{display:grid;gap:6px;margin:0 0 8px}
.mall-addr input,.mall-addr textarea{width:100%;padding:8px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.12)}
.mall-orders-link{margin:18px 0 0;text-align:center}
.mall-buy-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;margin-top:4px;padding:11px 14px;border:0;border-radius:999px;cursor:pointer;text-decoration:none;font-size:14px;font-weight:800;letter-spacing:.04em;color:#fff;background:linear-gradient(135deg,#ff7aa8,#ff4d7d 55%,#ff8a4d);box-shadow:0 8px 18px rgba(255,77,125,.32);transition:transform .15s ease,box-shadow .15s ease}
.mall-buy-btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(255,77,125,.4)}
.mall-buy-btn:active{transform:translateY(1px)}
.mall-buy-btn:disabled,.mall-card .btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
/* /lot-float + mall */

/* member center readability (esp. qingmeng light) */
.member-wallet{margin:0 0 12px}
.member-wallet-balance{margin:0 0 10px;font-size:14px;font-weight:650}
.member-wallet-balance strong{color:#ff4d7d;font-size:20px;margin-left:4px}
.member-wallet-actions{display:flex;flex-wrap:wrap;gap:8px}
.member-chip{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:750;text-decoration:none;color:#fff;background:linear-gradient(135deg,#ff7aa8,#ff4d7d);box-shadow:0 4px 12px rgba(255,77,125,.22)}
body.tpl-qingmeng .member-page{color:#3a2a32}
body.tpl-qingmeng .member-hero{
  background:linear-gradient(145deg,#fff5f8,#ffe8ef 55%,#fff1e6);
  border:1px solid rgba(255,107,157,.22);
  box-shadow:0 10px 24px rgba(255,120,160,.12);
  color:#3a2a32;
}
body.tpl-qingmeng .member-hero.is-vip{
  background:linear-gradient(145deg,#fff8e8,#ffe9c8 50%,#fff0f4);
  border-color:rgba(245,158,11,.35);
}
body.tpl-qingmeng .member-hero h1{color:#2f2430}
body.tpl-qingmeng .member-uid{color:#8a6572}
body.tpl-qingmeng .member-uid code{background:rgba(255,77,125,.12);color:#d94874}
body.tpl-qingmeng .member-mini-btn{background:rgba(255,77,125,.14);color:#ff4d7d}
body.tpl-qingmeng .member-hero:not(.is-vip) .member-vip-pill{color:#fff;background:linear-gradient(135deg,#ff7aa8,#ff4d7d)}
body.tpl-qingmeng .member-vip-sub{color:#8a6572}
body.tpl-qingmeng .member-stat{
  background:#fff;
  border:1px solid rgba(255,107,157,.16);
  box-shadow:0 6px 14px rgba(255,120,160,.08);
}
body.tpl-qingmeng .member-stat .n{color:#ff4d7d}
body.tpl-qingmeng .member-stat .l{color:#8a6572}
body.tpl-qingmeng .member-card{
  background:#fff;
  border:1px solid rgba(255,107,157,.14);
  box-shadow:0 8px 18px rgba(255,120,160,.08);
  color:#3a2a32;
}
body.tpl-qingmeng .member-card-head strong{color:#2f2430}
body.tpl-qingmeng .member-card-head span,
body.tpl-qingmeng .member-hint{color:#8a6572}
body.tpl-qingmeng .member-progress{background:rgba(255,77,125,.12)}
body.tpl-qingmeng .member-share-row input{
  background:#fff7fa;
  border:1px solid rgba(255,107,157,.25);
  color:#3a2a32;
}
body.tpl-qingmeng .member-benefits{color:#5c4550}
body.tpl-qingmeng .member-invite-list li{border-bottom-color:rgba(255,107,157,.12);color:#3a2a32}
body.tpl-qingmeng .member-invite-list em{color:#8a6572}
body.tpl-qingmeng .member-form label{color:#8a6572}
body.tpl-qingmeng .member-form input{
  background:#fff7fa;
  border:1px solid rgba(255,107,157,.25);
  color:#3a2a32;
}
body.tpl-qingmeng .member-btn.ghost{
  background:#fff;
  border:1px solid rgba(255,107,157,.25);
  color:#ff4d7d;
}
body.tpl-qingmeng .member-btn.danger{color:#e11d48}
body.tpl-qingmeng .member-toast.is-ok{color:#047857;background:rgba(16,185,129,.12);border-color:rgba(16,185,129,.3)}
body.tpl-qingmeng .member-toast.is-err{color:#b91c1c;background:rgba(248,113,113,.14);border-color:rgba(248,113,113,.35)}
/* /member center readability */


/* short horizontal seek */
.short-seek-toast{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:40;pointer-events:none;padding:10px 16px;border-radius:12px;background:rgba(0,0,0,.62);color:#fff;font-size:15px;font-weight:700;letter-spacing:.02em;opacity:0;transition:opacity .15s ease;backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12)}
.short-seek-toast.is-on{opacity:1}
.recharge-plan{cursor:pointer;position:relative}
.recharge-plan input{position:absolute;opacity:0;pointer-events:none}
.recharge-plan:has(input:checked){outline:2px solid var(--accent,#ff4d8d);outline-offset:2px}
.recharge-pay{display:inline-flex;align-items:center;gap:6px;margin-right:14px;font-weight:600}
.recharge-pay-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* qingmeng-brand-align-v158b */
body.tpl-qingmeng .qm-brand{max-width:none!important;min-width:0;flex:0 1 auto}body.tpl-qingmeng .qm-brand .logo,body.tpl-qingmeng .qm-brand .logo--favicon{display:flex!important;align-items:flex-end!important;gap:8px!important;transform:none!important;white-space:normal}body.tpl-qingmeng .qm-brand .logo-mark--favicon,body.tpl-qingmeng .qm-brand .logo-mark{width:52px!important;height:52px!important;font-size:52px!important;border-radius:14px!important;flex:0 0 auto}body.tpl-qingmeng .qm-brand .logo-mark--favicon img,body.tpl-qingmeng .qm-brand .logo-mark img,body.tpl-qingmeng .qm-brand .logo-mark svg{width:52px!important;height:52px!important;border-radius:14px!important}body.tpl-qingmeng .qm-brand .logo-text{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-end!important;gap:3px!important;min-width:0;padding-bottom:0!important}body.tpl-qingmeng .qm-brand .logo-name-row{display:contents}body.tpl-qingmeng .qm-brand .logo-name{display:block!important;font-size:22px!important;font-weight:800!important;line-height:1.05!important;white-space:nowrap}body.tpl-qingmeng .qm-brand .logo-tag{display:block!important;margin:0!important;font-size:11px!important;font-weight:600!important;line-height:1.15!important;color:#a06a7a!important;letter-spacing:.02em;white-space:nowrap;max-width:11em;overflow:hidden;text-overflow:ellipsis}@media (min-width:721px){body.tpl-qingmeng .qm-brand .logo-mark--favicon,body.tpl-qingmeng .qm-brand .logo-mark,body.tpl-qingmeng .qm-brand .logo-mark--favicon img,body.tpl-qingmeng .qm-brand .logo-mark img,body.tpl-qingmeng .qm-brand .logo-mark svg{width:56px!important;height:56px!important;font-size:56px!important;border-radius:16px!important}body.tpl-qingmeng .qm-brand .logo-name{font-size:24px!important}body.tpl-qingmeng .qm-brand .logo-tag{font-size:12px!important;max-width:none}body.tpl-qingmeng .qm-search{flex:1 1 auto;max-width:420px;margin-left:8px}}@media (max-width:720px){body.tpl-qingmeng .qm-header-row{gap:6px;padding:7px 10px 6px}body.tpl-qingmeng .qm-brand{flex:0 1 auto;max-width:46vw!important}body.tpl-qingmeng .qm-brand .logo{gap:6px!important;transform:scale(.92)!important;transform-origin:left bottom!important}body.tpl-qingmeng .qm-brand .logo-mark--favicon,body.tpl-qingmeng .qm-brand .logo-mark,body.tpl-qingmeng .qm-brand .logo-mark--favicon img,body.tpl-qingmeng .qm-brand .logo-mark img,body.tpl-qingmeng .qm-brand .logo-mark svg{width:38px!important;height:38px!important;font-size:38px!important;border-radius:11px!important}body.tpl-qingmeng .qm-brand .logo-name{display:block!important;font-size:15px!important}body.tpl-qingmeng .qm-brand .logo-tag{display:block!important;font-size:9.5px!important;max-width:9.5em}body.tpl-qingmeng .qm-search{flex:1 1 0;min-width:0;max-width:none;height:32px;padding:0 10px}body.tpl-qingmeng .qm-search input{font-size:12px}}@media (max-width:380px){body.tpl-qingmeng .qm-brand .logo{transform:scale(.86)!important}body.tpl-qingmeng .qm-brand .logo-tag{max-width:8em}}

/* site-popup-theme-v158c */
.site-popup-mask{
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(6px);
}
.site-popup-dialog{
  border:0;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 28px 80px rgba(15,23,42,.38),0 0 0 1px rgba(255,255,255,.08);
  overflow:hidden;
  animation:popupIn .28s cubic-bezier(.22,1,.36,1);
}
@keyframes popupIn{
  from{opacity:0;transform:translateY(12px) scale(.96)}
  to{opacity:1;transform:none}
}
.site-popup-head{
  padding:14px 16px;
  border-bottom:1px solid rgba(148,163,184,.22);
  background:linear-gradient(90deg,rgba(225,29,72,.08),rgba(56,189,248,.06));
}
.site-popup-brand{display:flex;align-items:center;gap:10px;min-width:0}
.site-popup-badge{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  height:24px;padding:0 10px;border-radius:999px;
  font-size:12px;font-weight:800;letter-spacing:.04em;
  color:#fff;background:linear-gradient(135deg,#f43f5e,#e11d48);
  box-shadow:0 4px 12px rgba(225,29,72,.28);
}
.site-popup-timer{font-size:13px;font-weight:650;color:#334155}
.site-popup-timer-num{color:#e11d48;font-size:16px;font-weight:800;margin-right:2px}
.site-popup-x{
  width:34px;height:34px;min-width:34px;min-height:34px;flex:0 0 34px;
  border-radius:12px;background:rgba(15,23,42,.08);color:#475569;font-size:20px;
}
.site-popup-x:hover{background:rgba(15,23,42,.14);color:#0f172a}
.site-popup-body{padding:16px 16px 14px}
.popup-lead{margin:0 0 12px;font-size:14px;font-weight:700;color:#0f172a}
.popup-info-grid{display:grid;gap:8px}
.popup-info-card{
  display:flex;flex-direction:column;gap:4px;
  padding:12px 14px;border-radius:14px;
  background:#fff;border:1px solid rgba(148,163,184,.22);
  box-shadow:0 6px 16px rgba(15,23,42,.04);
}
.popup-info-label{font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8}
.site-popup-content .popup-domain-val{font-size:15px;font-weight:800;color:#0f172a;word-break:break-all}
.site-popup-content .popup-content-extra{
  margin-top:12px;padding:12px;border-radius:12px;border:1px dashed rgba(148,163,184,.35);
  background:rgba(248,250,252,.9);font-size:13px;color:#475569;
}
.site-popup-minis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.site-popup-minis--single{grid-template-columns:1fr}
.popup-mini-btn{
  flex:none;width:100%;padding:12px 10px;border-radius:12px;
  font-size:14px;font-weight:800;letter-spacing:.02em;
  box-shadow:0 8px 18px rgba(225,29,72,.18);
  transition:transform .15s ease,filter .15s ease;
}
.popup-mini-btn:hover{transform:translateY(-1px)}
.popup-mini-btn--pub{background:linear-gradient(135deg,#fb7185,#e11d48)}
.popup-mini-btn--entry{background:linear-gradient(135deg,#38bdf8,#2563eb);box-shadow:0 8px 18px rgba(37,99,235,.2)}
.site-popup-foot{
  padding:12px 16px 14px;border-top:1px solid rgba(148,163,184,.2);
  background:rgba(248,250,252,.95);
}
.popup-promo{
  border-radius:10px;padding:9px 12px;
  background:linear-gradient(135deg,#34d399,#059669);
  box-shadow:0 6px 14px rgba(5,150,105,.2);
}
.site-popup-close-now{
  border-radius:12px;padding:11px 18px;
  background:linear-gradient(135deg,#64748b,#334155);
  box-shadow:0 6px 14px rgba(15,23,42,.16);
}
@media (max-width:560px){
  .site-popup-minis{grid-template-columns:1fr}
  .popup-mini-btn{padding:13px 12px}
}

/* mogu */
body.tpl-mogu .site-popup-dialog{
  background:linear-gradient(180deg,#1a1520 0%,#121018 100%);
  color:#f3e8ff;border:1px solid rgba(232,121,249,.22);
  box-shadow:0 28px 80px rgba(0,0,0,.55),0 0 0 1px rgba(232,121,249,.12);
}
body.tpl-mogu .site-popup-head{
  background:linear-gradient(90deg,rgba(232,121,249,.16),rgba(129,140,248,.1));
  border-bottom-color:rgba(232,121,249,.18);
}
body.tpl-mogu .site-popup-badge{background:linear-gradient(135deg,#e879f9,#a855f7)}
body.tpl-mogu .site-popup-timer{color:#e9d5ff}
body.tpl-mogu .site-popup-timer-num{color:#f0abfc}
body.tpl-mogu .site-popup-x{background:rgba(255,255,255,.08);color:#e9d5ff}
body.tpl-mogu .popup-lead{color:#faf5ff}
body.tpl-mogu .popup-info-card{
  background:rgba(255,255,255,.04);border-color:rgba(232,121,249,.18);
  box-shadow:none;
}
body.tpl-mogu .popup-info-label{color:#c4b5fd}
body.tpl-mogu .site-popup-content .popup-domain-val{color:#f5d0fe}
body.tpl-mogu .site-popup-content .popup-content-extra{
  background:rgba(255,255,255,.03);border-color:rgba(232,121,249,.2);color:#d8b4fe;
}
body.tpl-mogu .popup-mini-btn--pub{background:linear-gradient(135deg,#e879f9,#c026d3)}
body.tpl-mogu .popup-mini-btn--entry{background:linear-gradient(135deg,#818cf8,#6366f1)}
body.tpl-mogu .site-popup-foot{
  background:rgba(0,0,0,.25);border-top-color:rgba(232,121,249,.16);
}
body.tpl-mogu .site-popup-close-now{background:linear-gradient(135deg,#6b7280,#374151)}

/* qingmeng */
body.tpl-qingmeng .site-popup-dialog{
  background:linear-gradient(180deg,#fff 0%,#fff7fa 100%);
  border:1px solid rgba(255,107,157,.22);
  box-shadow:0 24px 60px rgba(255,120,160,.22);
}
body.tpl-qingmeng .site-popup-head{
  background:linear-gradient(90deg,rgba(255,107,157,.14),rgba(255,159,107,.1));
  border-bottom-color:rgba(255,107,157,.16);
}
body.tpl-qingmeng .site-popup-badge{background:linear-gradient(135deg,#ff7aa8,#ff4d7d)}
body.tpl-qingmeng .site-popup-timer{color:#5c4550}
body.tpl-qingmeng .site-popup-timer-num{color:#ff4d7d}
body.tpl-qingmeng .site-popup-x{background:rgba(255,77,125,.1);color:#ff4d7d}
body.tpl-qingmeng .popup-lead{color:#2f2430}
body.tpl-qingmeng .popup-info-card{
  background:#fff;border-color:rgba(255,107,157,.18);
  box-shadow:0 6px 14px rgba(255,120,160,.08);
}
body.tpl-qingmeng .popup-info-label{color:#c48a9a}
body.tpl-qingmeng .site-popup-content .popup-domain-val{color:#2f2430}
body.tpl-qingmeng .site-popup-content .popup-content-extra{
  background:#fff7fa;border-color:rgba(255,107,157,.22);color:#7a5562;
}
body.tpl-qingmeng .popup-mini-btn--pub{background:linear-gradient(135deg,#ff7aa8,#ff4d7d)}
body.tpl-qingmeng .popup-mini-btn--entry{background:linear-gradient(135deg,#ffb087,#ff8a4c);box-shadow:0 8px 18px rgba(255,138,76,.22)}
body.tpl-qingmeng .site-popup-foot{
  background:#fff7fa;border-top-color:rgba(255,107,157,.16);
}
body.tpl-qingmeng .popup-promo{background:linear-gradient(135deg,#86efac,#22c55e)}
body.tpl-qingmeng .site-popup-close-now{background:linear-gradient(135deg,#f9a8d4,#fb7185)}


/* load more */
.load-more-wrap{display:flex;justify-content:center;padding:18px 12px 8px}
.btn-load-more{appearance:none;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:inherit;border-radius:999px;padding:10px 28px;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s ease,border-color .2s ease,opacity .2s ease}
.btn-load-more:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22)}
.btn-load-more.is-loading,.btn-load-more:disabled{opacity:.55;cursor:wait}
body.tpl-qingmeng .btn-load-more{border-color:rgba(255,105,145,.28);background:linear-gradient(180deg,#fff7fa,#ffe8f0);color:#c2185b;box-shadow:0 4px 14px rgba(255,105,145,.12)}
body.tpl-qingmeng .btn-load-more:hover{filter:brightness(1.02)}
body.tpl-mogu .btn-load-more{border-color:rgba(120,180,255,.25);background:rgba(40,60,100,.35)}


/* 短视频 M3U8 独立 iframe 播放器 */
.short-slide[data-mode="svp"] {
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}
.short-slide[data-mode="svp"] .short-parse-frame {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #000 !important;
  z-index: 3 !important;
  pointer-events: auto !important;
}
.short-slide[data-mode="svp"] .svp-host,
.short-slide[data-mode="svp"] .short-vstage video,
.short-slide[data-mode="svp"] .short-progress,
.short-slide[data-mode="svp"] .short-tap-layer {
  display: none !important;
}
.short-slide[data-mode="svp"] .short-slide-play {
  display: none !important;
}
.short-slide[data-mode="svp"].is-await-play .short-slide-play {
  display: inline-flex !important;
  z-index: 60;
}
.short-slide[data-mode="svp"] .short-ui {
  bottom: 0;
  height: auto;
  top: 0;
}

/* chat room base (legacy hooks) */
.chat-gate{font-size:13px}
.chat-disabled{padding:24px;text-align:center}
.chat-user{color:inherit;text-decoration:none;font-weight:600}
.chat-user:hover{text-decoration:underline}
.messages-page .msg-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px;align-items:center}
.msg-list,.msg-threads,.pm-pane{padding:14px}
.msg-card{padding:12px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.msg-card.is-unread{background:rgba(91,141,239,.06);margin:0 -8px;padding:12px 8px;border-radius:8px}
.msg-card-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px}
.msg-thread{
  display:flex;align-items:center;gap:12px;
  padding:12px 4px;border-bottom:1px solid rgba(0,0,0,.08);
  color:inherit;text-decoration:none
}
.msg-thread.is-unread{font-weight:600}
.msg-thread-av{
  position:relative;flex:0 0 48px;width:48px;height:48px;border-radius:50%;
  overflow:visible;background:#94a3b8;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font-weight:700
}
.msg-thread-av img{
  width:48px;height:48px;border-radius:50%;object-fit:cover;display:block
}
.msg-thread-av > span{font-size:18px;line-height:1}
.msg-av-badge{
  position:absolute;top:-4px;right:-4px;z-index:2;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:#ef4444;color:#fff;font-size:11px;font-weight:800;font-style:normal;
  display:inline-flex;align-items:center;justify-content:center;
  border:2px solid #fff;line-height:1;box-sizing:border-box
}
.msg-thread-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.msg-thread-name{display:flex;align-items:center;gap:6px;font-size:15px;color:inherit}
.msg-thread-preview{
  font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.msg-thread-time{flex:0 0 auto;font-size:11px;align-self:flex-start}
.msg-badge{
  display:inline-block;margin-left:4px;padding:0 6px;border-radius:999px;
  background:#ef4444;color:#fff;font-size:11px;font-weight:700;font-style:normal
}
.pm-pane-head{display:flex;gap:10px;align-items:center;margin-bottom:10px}
.pm-back{text-decoration:none;color:inherit;font-size:14px}
.pm-peer-av{
  width:36px;height:36px;border-radius:50%;overflow:hidden;background:#94a3b8;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;font-weight:700
}
.pm-peer-av img{width:100%;height:100%;object-fit:cover;display:block}
.pm-list{max-height:50vh;overflow:auto;margin-bottom:12px}
.pm-bubble{margin:0 0 10px;max-width:85%}
.pm-bubble.is-mine{margin-left:auto;text-align:right}
.pm-text{display:inline-block;padding:8px 12px;border-radius:10px;background:rgba(0,0,0,.06);text-align:left}
.pm-bubble.is-mine .pm-text{background:rgba(255,77,125,.16)}
.pm-compose{display:flex;gap:8px}
.pm-compose input{flex:1;min-width:0;padding:10px 12px;border-radius:8px;border:1px solid rgba(0,0,0,.15)}

/* 会员功能卡片勿裁切红点 */
.mine-card.mine-links{overflow:visible}
.mine-link-pm,.mine-ico-wrap{overflow:visible}
.mine-badge.is-text{
  position:static;top:auto;right:auto;margin-left:6px;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:#ef4444;color:#fff!important;font-size:11px;font-weight:800;font-style:normal;
  display:inline-flex;align-items:center;justify-content:center;
  border:0;line-height:1;vertical-align:middle;box-sizing:border-box
}
.member-chip{position:relative;display:inline-flex;align-items:center;gap:6px}
.member-chip .mine-badge.is-text{margin-left:0}
/* 会员功能 · 私信入口红点 */
.mine-link-pm{position:relative}
.mine-ico-wrap{position:relative;display:inline-grid;place-items:center;flex:0 0 auto}
.mine-ico-wrap .mine-ico{display:inline-grid;place-items:center}
.mine-badge{
  position:absolute;top:-6px;right:-8px;z-index:2;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:#ef4444;color:#fff!important;font-size:11px;font-weight:800;font-style:normal;
  display:inline-flex;align-items:center;justify-content:center;
  border:2px solid #fff;line-height:1;box-sizing:border-box
}
body.tpl-qingmeng .mine-badge{border-color:#fff}
body.tpl-qingmeng .msg-av-badge{border-color:#fff}
body.tpl-qingmeng .msg-thread{border-bottom-color:rgba(255,107,157,.12)}
body.tpl-qingmeng .msg-thread-name{color:#3a2a32}
body.tpl-qingmeng .pm-text{background:#fff1f5}
body.tpl-qingmeng .pm-bubble.is-mine .pm-text{background:rgba(255,77,125,.18);color:#3a2a32}

/* nickname / avatar / chat entry (PC 右上) */
.header-chat-btn,.qm-chat-btn,.mogu-chat-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  padding:7px 12px;margin:0 8px 0 0;border-radius:999px;
  border:1px solid rgba(255,77,109,.35);
  background:linear-gradient(135deg,rgba(255,77,109,.16),rgba(255,77,109,.06));
  color:var(--accent,#ff4d6d);font-size:13px;font-weight:700;
  text-decoration:none;white-space:nowrap;line-height:1;flex:0 0 auto
}
.header-chat-btn:hover,.qm-chat-btn:hover,.mogu-chat-btn:hover{
  background:linear-gradient(135deg,rgba(255,77,109,.28),rgba(255,77,109,.12));
  border-color:rgba(255,77,109,.55)
}
.header-chat-ico{font-size:14px;line-height:1}
body.tpl-qingmeng .qm-chat-btn{
  border-color:rgba(255,77,125,.4);
  background:linear-gradient(135deg,#ff4d7d,#ff7aa3);
  color:#fff;box-shadow:0 4px 12px rgba(255,77,125,.28)
}
body.tpl-qingmeng .qm-chat-btn:hover{filter:brightness(1.05)}
.qm-header-auth,.mogu-header-actions,.header-actions,.header-tools{
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:6px;min-width:0
}
.member-avatar-form{margin:0}
.member-avatar.is-upload{cursor:pointer;position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#64748b;color:#fff;font-size:28px;font-weight:700}
.member-avatar.is-upload img{width:100%;height:100%;object-fit:cover;display:block}
.member-avatar.is-upload:after{content:"换头像";position:absolute;left:0;right:0;bottom:0;font-size:10px;line-height:18px;background:rgba(0,0,0,.45);text-align:center;opacity:0;transition:opacity .15s}
.member-avatar.is-upload:hover:after{opacity:1}

/* chat room v1.5.9h — 左名单 / 右聊天，浅色可读 */
body.page-chat{
  --chat-dock-h:52px;
  --chat-head-h:48px;
  --chat-tabbar:0px;
  --chat-top:0px;
  overflow:hidden;
  background:#f4f5f7;
}
body.page-chat .mayi-slideshow-wrap,
body.page-chat .site-footer,
body.page-chat .qm-footer,
body.page-chat .mogu-footer,
body.page-chat .qm-sticky-dl,
body.page-chat .mogu-sticky-dl,
body.page-chat .qm-vip-float,
body.page-chat .mogu-vip-float,
body.page-chat .lot-float,
body.page-chat a.lot-float{display:none!important}

body.page-chat main.container,
body.page-chat .qm-main,
body.page-chat .mogu-main{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
body.page-chat.m-tabbar-on{padding-bottom:0!important}

@media (max-width:900px){
  body.page-chat .qm-header,
  body.page-chat .mogu-header,
  body.page-chat .site-header,
  body.page-chat .qm-cat-scroll,
  body.page-chat .mogu-cat-scroll,
  body.page-chat .qm-menu,
  body.page-chat .main-nav{display:none!important}
}

.chat-room-app{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:none;
  height:calc(100dvh - var(--chat-top, 0px) - var(--chat-tabbar, 0px));
  max-height:calc(100dvh - var(--chat-top, 0px) - var(--chat-tabbar, 0px));
  margin:0;
  background:#fff;
  color:#1f2937;
  overflow:hidden;
  box-sizing:border-box;
}
body.tpl-qingmeng .chat-room-app,
body.tpl-mogu .chat-room-app,
body.tpl-classic .chat-room-app{
  background:#fff!important;
  color:#1f2937!important;
}
@media (max-width:900px){
  body.m-tabbar-on .chat-room-app{
    height:calc(100dvh - 54px - env(safe-area-inset-bottom,0px));
    max-height:calc(100dvh - 54px - env(safe-area-inset-bottom,0px));
  }
}
@media (min-width:901px){
  .chat-room-app{
    max-width:1200px;
    margin:10px auto;
    height:calc(100dvh - 130px);
    max-height:calc(100dvh - 130px);
    border-radius:12px;
    border:1px solid #e8eaed;
    box-shadow:0 8px 28px rgba(0,0,0,.08);
  }
}

.chat-app-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:8px 12px;
  min-height:var(--chat-head-h);
  border-bottom:1px solid #ececec;
  background:#fff;
  z-index:4;
}
body.tpl-qingmeng .chat-app-head,
body.tpl-mogu .chat-app-head,
body.tpl-classic .chat-app-head{
  background:#fff!important;
  border-bottom-color:#ececec!important;
  color:#1f2937!important;
}
.chat-app-head-main{min-width:0;flex:1}
.chat-app-head h2{margin:0;font-size:16px;line-height:1.2;color:#111}
.chat-tip{margin:2px 0 0;font-size:12px;line-height:1.4;color:#6b7280!important}
.chat-online-toggle{
  appearance:none;flex:0 0 auto;
  border:1px solid #ffc0d0;background:#fff5f8;color:#ff4d7d;
  border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;
  cursor:pointer;white-space:nowrap;line-height:1.2
}
.chat-online-toggle em{font-style:normal;font-weight:800;margin-left:2px}
.chat-online-toggle[aria-expanded="true"]{
  background:#ff4d7d;color:#fff;border-color:#ff4d7d
}

.chat-app-body{
  flex:1;min-height:0;min-width:0;
  display:flex;flex-direction:row;
  width:100%;position:relative;
  background:#fff;
  overflow:hidden;
}

/* 在线名单：默认隐藏，抽屉从左侧滑出 */
.chat-online-panel{
  position:absolute!important;
  left:0;top:0;bottom:0;
  width:min(240px,78vw);
  max-width:78vw;
  height:auto;
  background:#fff!important;
  color:#1f2937!important;
  border:0;
  border-right:1px solid #ececec;
  z-index:25;
  display:none;
  flex-direction:column;
  box-shadow:8px 0 24px rgba(0,0,0,.12)!important;
  transform:translateX(-105%);
  transition:transform .2s ease;
}
.chat-room-app.online-open .chat-online-panel,
.chat-online-panel:not([hidden]){
  display:flex!important;
  transform:translateX(0);
}
.chat-online-panel[hidden]{
  display:none!important;
  transform:translateX(-105%);
}
.chat-online-backdrop{
  display:none;position:absolute;inset:0;z-index:20;background:rgba(0,0,0,.28);border:0;padding:0;margin:0;cursor:pointer
}
.chat-online-backdrop[hidden]{display:none!important}
.chat-room-app.online-open .chat-online-backdrop{display:block!important}
body.tpl-qingmeng .chat-online-panel,
body.tpl-mogu .chat-online-panel,
body.tpl-classic .chat-online-panel{
  background:#fff!important;
  color:#1f2937!important;
  border-left:0!important;
  border-right:1px solid #ececec!important;
}
.chat-online-head{
  display:flex;align-items:center;justify-content:space-between;gap:6px;
  padding:10px 8px;font-weight:700;font-size:13px;color:#111;
  border-bottom:1px solid #f0f0f0;flex:0 0 auto
}
.chat-online-head em{
  font-style:normal;font-weight:800;color:#ff4d7d;margin-left:4px
}
.chat-online-close{
  appearance:none;border:0;background:transparent;color:#6b7280;
  font-size:22px;line-height:1;cursor:pointer;padding:0 4px;display:inline!important
}
.chat-online-list{list-style:none;margin:0;padding:4px 0;overflow:auto;flex:1;-webkit-overflow-scrolling:touch}
.chat-online-item{
  display:flex;align-items:center;gap:8px;padding:8px;
  cursor:pointer;-webkit-tap-highlight-color:transparent
}
.chat-online-item:hover,.chat-online-item:active{background:#f7f7f8}
.chat-online-av{
  width:32px;height:32px;border-radius:50%;overflow:hidden;background:#ff8aa8;
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 32px;color:#fff;font-size:12px;font-weight:700
}
.chat-online-av img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.chat-online-name{
  flex:1;min-width:0;font-size:12px;font-weight:600;color:#111;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.chat-online-role{display:none}
@media (min-width:721px){
  .chat-online-role{display:inline;font-size:11px;color:#9ca3af;flex:0 0 auto}
}
.chat-mod-badge{
  display:inline-block;margin-left:4px;padding:0 4px;border-radius:4px;
  background:#ef4444;color:#fff;font-size:10px;font-weight:700;vertical-align:middle
}
.chat-online-item.is-mod .chat-online-name{color:#d97706}

/* 聊天主区占满 */
.chat-main{
  order:0;
  flex:1 1 auto;
  min-width:0;min-height:0;
  display:flex;flex-direction:column;
  background:#f5f6f8!important;
  width:100%;
}
.chat-messages{
  flex:1;min-height:0;overflow:auto;
  padding:12px 10px 8px;
  background:#f5f6f8!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.chat-msg{display:flex;align-items:flex-start;gap:8px;margin:0 0 14px;max-width:100%}
.chat-msg.is-mine{flex-direction:row-reverse}
.chat-msg-main{min-width:0;max-width:min(82%,520px)}
.chat-msg.is-mine .chat-msg-main{display:flex;flex-direction:column;align-items:flex-end}
.chat-msg-meta{
  display:flex;gap:6px;align-items:center;flex-wrap:wrap;
  font-size:11px;color:#6b7280;margin:0 0 4px;line-height:1.2
}
.chat-msg.is-mine .chat-msg-meta{flex-direction:row-reverse}
.chat-user{font-size:12px;font-weight:600;text-decoration:none;color:#374151}
.chat-user:hover{color:#ff4d7d}
.chat-role{
  padding:0 5px;border-radius:999px;border:1px solid #e5e7eb;
  font-size:10px;line-height:16px;color:#6b7280
}
.chat-msg.role-vip .chat-role,.chat-msg.role-vip_permanent .chat-role{border-color:#f3d19a;color:#b45309}
.chat-time{color:#9ca3af}

.chat-avatar{
  appearance:none;border:0;padding:0;margin:0;
  width:40px!important;height:40px!important;min-width:40px;min-height:40px;
  border-radius:50%!important;overflow:hidden!important;
  flex:0 0 40px;background:#94a3b8;cursor:pointer;
  box-shadow:0 0 0 1px rgba(0,0,0,.06);
  display:inline-flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent;
}
.chat-avatar:active{transform:scale(.96)}
.chat-avatar img{
  width:40px!important;height:40px!important;
  max-width:40px!important;max-height:40px!important;
  object-fit:cover!important;display:block;border-radius:50%;pointer-events:none;
  filter:none!important;opacity:1!important
}
.chat-avatar-letter{color:#fff;font-size:15px;font-weight:700;line-height:1;pointer-events:none}

.chat-bubble{
  display:inline-block;max-width:100%;
  padding:8px 12px;border-radius:12px 12px 12px 4px;
  background:#fff!important;color:#111!important;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  word-break:break-word
}
.chat-msg.is-mine .chat-bubble{
  border-radius:12px 12px 4px 12px;
  background:#95ec69!important;color:#111!important
}
body.tpl-qingmeng .chat-bubble,body.tpl-mogu .chat-bubble,body.tpl-classic .chat-bubble{
  background:#fff!important;color:#111!important
}
body.tpl-qingmeng .chat-msg.is-mine .chat-bubble,
body.tpl-mogu .chat-msg.is-mine .chat-bubble,
body.tpl-classic .chat-msg.is-mine .chat-bubble{
  background:#95ec69!important;color:#111!important
}
.chat-bubble-text{font-size:15px;line-height:1.45;color:#111}
.chat-bubble-media{
  padding:0!important;background:transparent!important;box-shadow:none!important
}
.chat-msg.is-mine .chat-bubble-media{background:transparent!important}
.chat-bubble-caption{font-size:13px;margin:0 0 4px;color:#374151}
.chat-media-img{
  display:block;width:auto;height:auto;
  max-width:min(260px,70vw)!important;
  max-height:min(320px,48vh)!important;
  border-radius:8px;object-fit:contain;
  background:#fff;filter:none!important;opacity:1!important;
  mix-blend-mode:normal!important;-webkit-filter:none!important;
  box-shadow:none!important
}
.chat-bubble-media a{display:inline-block;background:#fff;border-radius:8px;line-height:0}
.chat-messages{
  flex:1;min-height:0;overflow:auto;
  padding:12px 10px 8px;
  background:#f5f6f8!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.chat-messages::before,.chat-messages::after{display:none!important;content:none!important}
.chat-media-video{
  display:block;width:min(240px,62vw);max-height:min(240px,42vh);
  border-radius:8px;background:#111
}

/* 输入栏：白底深字，保证能看见、能点 */
.chat-dock{
  position:relative;z-index:30;
  flex:0 0 auto;
  padding:8px 8px;
  background:#fff!important;
  border-top:1px solid #ececec;
  box-sizing:border-box;
  pointer-events:auto;
}
body.m-tabbar-on .chat-dock{padding-bottom:8px}
body.tpl-qingmeng .chat-dock,body.tpl-mogu .chat-dock,body.tpl-classic .chat-dock{
  background:#fff!important;border-top-color:#ececec!important
}
.chat-gate{padding:10px 4px;text-align:center;font-size:13px;color:#6b7280}
.chat-gate a{color:#ff4d7d;font-weight:700}
.chat-compose{display:flex;gap:6px;align-items:center;width:100%;pointer-events:auto}
.chat-compose-tools{display:flex;gap:4px;flex:0 0 auto}
.chat-tool-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:50%;
  border:1px solid #e5e7eb;font-size:13px;cursor:pointer;
  user-select:none;background:#f3f4f6;color:#374151
}
body.tpl-qingmeng .chat-tool-btn,body.tpl-classic .chat-tool-btn,body.tpl-mogu .chat-tool-btn{
  border-color:#e5e7eb!important;background:#f3f4f6!important;color:#374151!important
}
#chat-input,
.chat-compose input[type="text"]{
  flex:1;min-width:0;height:38px;padding:0 14px;border-radius:19px;
  border:1px solid #d1d5db!important;
  background:#fff!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  caret-color:#111;
  font-size:15px;
  outline:none;
  pointer-events:auto!important;
  opacity:1!important;
}
#chat-input::placeholder,
.chat-compose input::placeholder{color:#9ca3af!important;-webkit-text-fill-color:#9ca3af!important}
body.tpl-qingmeng #chat-input,
body.tpl-mogu #chat-input,
body.tpl-classic #chat-input,
body.tpl-qingmeng .chat-compose input,
body.tpl-mogu .chat-compose input,
body.tpl-classic .chat-compose input{
  background:#fff!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  border-color:#d1d5db!important
}
.chat-send-btn{
  border-radius:19px;padding:0 14px;height:38px;flex:0 0 auto;white-space:nowrap;
  background:#ff4d7d!important;color:#fff!important;border:0;font-weight:700
}
.chat-upload-tip{font-size:12px;margin-top:6px}

.chat-mod-sheet{
  position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.45);
  display:flex;align-items:flex-end;justify-content:center;padding:12px
}
.chat-mod-sheet[hidden]{display:none!important}
.chat-mod-card{
  width:min(420px,100%);background:#fff;color:#111;border-radius:14px;padding:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.25)
}
body.tpl-qingmeng .chat-mod-card,body.tpl-mogu .chat-mod-card,body.tpl-classic .chat-mod-card{
  background:#fff!important;color:#111!important
}
.chat-mod-title{font-weight:700;margin:0 0 10px}
.chat-mod-actions{display:flex;flex-direction:column;gap:8px}
.chat-mod-actions button,.chat-mod-pm{
  appearance:none;border:1px solid rgba(0,0,0,.1);background:rgba(0,0,0,.04);
  border-radius:10px;padding:10px 12px;font-size:14px;cursor:pointer;color:inherit;text-align:center;text-decoration:none
}
.chat-mod-actions button.is-danger{color:#dc2626;border-color:rgba(220,38,38,.35)}
.chat-empty{padding:24px;text-align:center}
.member-avatar-link{display:inline-block;text-decoration:none;color:inherit}
.member-avatar-link .member-avatar.is-upload:after{content:"资料"}
.profile-avatar-row{display:flex;gap:14px;align-items:flex-start}
.profile-page .member-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}

/* chat entry 159f: PC 右上；手机仅底栏、强制单排 */
.mobile-tabbar{flex-wrap:nowrap}
body.m-tabbar-5 .mobile-tabbar,
body.m-tabbar-6 .mobile-tabbar,
body.m-tabbar-7 .mobile-tabbar{grid-template-columns:unset}
.header-inner{display:flex;align-items:center;gap:10px}
.header-chat-pc,.qm-chat-pc,.mogu-chat-pc{flex:0 0 auto;margin-right:0;order:0}
.qm-brand-with-chat,.mogu-brand-with-chat{display:flex;align-items:center;gap:8px;min-width:0}
@media (max-width: 900px){
  body.m-tabbar-on .header-chat-pc,
  body.m-tabbar-on .qm-chat-pc,
  body.m-tabbar-on .mogu-chat-pc{display:none!important}
}
@media (max-width: 720px){
  body.m-tabbar-on .mobile-tabbar{
    display:flex!important;
    flex-wrap:nowrap!important;
    grid-template-columns:unset!important;
  }
}
@media (min-width: 901px){
  .header-chat-pc,.qm-chat-pc,.mogu-chat-pc{display:inline-flex!important}
}
