/**
 * 客户端恢复版视觉层。
 *
 * 原压缩主题把桌面端固定为两列、封面固定成 8rem 高，导致 16:9 图片严重拉伸。
 * 本文件只覆盖稳定的业务类名，不修改 Vue 状态和点击事件，因此可安全复用原功能。
 */

:root {
  color-scheme: dark;
  --restored-bg: #070b14;
  --restored-panel: rgba(15, 23, 42, 0.92);
  --restored-border: rgba(148, 163, 184, 0.18);
  --restored-text: #f8fafc;
  --restored-muted: #94a3b8;
  --restored-accent: #8b5cf6;
  --restored-accent-2: #06b6d4;
}

html {
  min-height: 100%;
  background: var(--restored-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--restored-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(124, 58, 237, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(6, 182, 212, 0.14), transparent 28rem),
    var(--restored-bg);
}

#app {
  width: min(100%, 1380px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 5rem;
  box-sizing: border-box;
}

/* 顶部筛选区使用半透明面板，旧星空位图不再重复铺满整个屏幕。 */
.theme6_head {
  box-sizing: border-box !important;
  width: calc(100% - 2rem) !important;
  margin: 1rem !important;
  padding: 1rem 1.25rem 1.15rem !important;
  overflow: hidden;
  border: 1px solid var(--restored-border);
  border-radius: 1.25rem !important;
  background: var(--restored-panel) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.theme6_head > div:first-child {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.theme6_head > div:first-child::-webkit-scrollbar {
  display: none;
}

.theme6_head > div:first-child > div {
  flex: 0 0 auto;
  min-width: 3rem;
  padding: 0.45rem 0.8rem !important;
  color: var(--restored-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  line-height: 1.2rem !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.theme6_head .theme6_type-active {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: linear-gradient(135deg, var(--restored-accent), var(--restored-accent-2)) !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.theme6_head > div:nth-child(2) {
  gap: 0.65rem;
  justify-content: stretch !important;
  margin-top: 0.9rem !important;
}

.theme6_head input {
  box-sizing: border-box;
  flex: 1;
  width: auto !important;
  height: 2.8rem !important;
  margin: 0 !important;
  padding: 0 1rem !important;
  color: var(--restored-text);
  font-size: 0.95rem !important;
  outline: none;
  border: 1px solid var(--restored-border) !important;
  border-radius: 0.85rem !important;
  background: rgba(2, 6, 23, 0.72) !important;
}

.theme6_head input::placeholder {
  color: #64748b;
}

.theme6_head .van-button {
  height: 2.8rem;
  margin-left: 0 !important;
  padding: 0 1.2rem;
  color: #fff !important;
  font-weight: 700;
  border: 0 !important;
  border-radius: 0.85rem !important;
  background: linear-gradient(135deg, var(--restored-accent), var(--restored-accent-2)) !important;
}

/* 影片列表在桌面端为四列，按视口逐级降为三列和两列。 */
.van-list > div[style*="padding"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  padding: 0.25rem 1rem 2rem !important;
}

.theme2_list-item {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--restored-border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme2_list-item:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

/* 单条免费测试片作为“精选内容”横跨两列，避免稀疏数据在宽屏和手机上显得残缺。 */
.theme2_list-item:only-child {
  grid-column: span 2;
}

.theme2img-wrap {
  aspect-ratio: 16 / 9;
  height: auto !important;
  border-radius: 0 !important;
  background: #020617 !important;
  cursor: pointer;
}

.theme2img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 300ms ease;
}

.theme2_list-item:hover .theme2img-wrap img {
  transform: scale(1.035);
}

.theme2_img-tips-topleft,
.theme2_img-tips-left {
  padding: 0.28rem 0.48rem !important;
  color: #e2e8f0 !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  border-radius: 0.45rem !important;
  background: rgba(2, 6, 23, 0.8) !important;
  opacity: 1 !important;
  backdrop-filter: blur(8px);
}

.theme2_img-tips-topleft {
  top: 0.55rem !important;
  left: 0.55rem !important;
}

.theme2_img-tips-left {
  bottom: 0.55rem !important;
  left: 0.55rem !important;
}

.theme6_list {
  min-height: 2.8rem;
  padding: 0.8rem 0.85rem 0.9rem;
  background: transparent !important;
}

.theme6_list > div {
  color: var(--restored-text) !important;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left !important;
}

/* 播放页下方推荐列表沿用另一套无类名网格，覆盖它的固定 180×100 图片和白色卡片。 */
.van-list > .van-row[style*="color"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 0.65rem;
}

.van-list > .van-row[style*="color"] > .van-col {
  box-sizing: border-box;
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
  color: var(--restored-muted) !important;
  border: 1px solid var(--restored-border);
  border-radius: 1rem !important;
  background: rgba(15, 23, 42, 0.82) !important;
}

.van-list > .van-row[style*="color"] > .van-col:only-child {
  grid-column: span 2;
}

.van-list > .van-row[style*="color"] > .van-col img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0 !important;
}

.van-list > .van-row[style*="color"] > .van-col > div {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.van-list > .van-row[style*="color"] > .van-col > .van-multi-ellipsis--l2 {
  padding-top: 0.7rem;
  color: var(--restored-text) !important;
  font-size: 0.9rem;
  font-weight: 650;
}

.van-list > .van-row[style*="color"] > .van-col > .van-ellipsis {
  padding-top: 0.35rem;
  padding-bottom: 0.75rem;
  color: var(--restored-muted);
  font-size: 0.75rem;
}

/* 底部操作栏限制在内容宽度内，避免桌面端横跨两千像素。 */
.theme6_foot {
  right: 0;
  left: 0;
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 1348px) !important;
  height: 3.65rem !important;
  margin: 0 auto 0.7rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--restored-border);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.88) !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.theme2_foot-item {
  color: #cbd5e1;
  font-size: 0.88rem !important;
  font-weight: 650 !important;
}

.theme2_foot-active {
  padding: 0.55rem 0.85rem !important;
  color: #fff !important;
  border-radius: 0.75rem !important;
  background: rgba(139, 92, 246, 0.22) !important;
}

/*
 * 个人中心（Home chunk）没有稳定的业务类名，但 Vue 为本页所有根节点添加了
 * data-v-2d9ee850。借助该作用域标识进行限定，避免下列视觉增强误伤首页和播放器。
 */
#app > .van-notice-bar[data-v-2d9ee850] {
  box-sizing: border-box;
  width: calc(100% - 2rem);
  margin: 1rem auto 0;
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 0.9rem;
  background: rgba(76, 29, 149, 0.18);
}

/* 账户摘要改成居中的玻璃面板，同时保留头像点击/退出登录的原事件区域。 */
#app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] {
  box-sizing: border-box;
  align-items: center;
  width: calc(100% - 2rem);
  max-width: 920px;
  min-height: 11rem;
  margin: 1rem auto !important;
  padding: 1.5rem 2rem;
  border: 1px solid var(--restored-border);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 92% 12%, rgba(6, 182, 212, 0.17), transparent 18rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

#app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] > .van-col:first-child {
  display: flex;
  justify-content: center;
}

#app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] img {
  width: 7rem !important;
  height: 7rem;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

#app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] > .van-col:nth-child(2) {
  flex: 1;
  width: auto;
  max-width: none;
  margin-left: 1.5rem;
}

#app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] > .van-col:nth-child(2) > div {
  margin: 0 !important;
  color: var(--restored-text) !important;
  font-weight: 750;
}

/* “我的已购/观看历史”标题和列表形成同一内容区域，不再散落在大块白底中。 */
#app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850] {
  box-sizing: border-box;
  width: calc(100% - 2rem);
  max-width: 920px;
  margin: 1.4rem auto 0;
}

#app > .van-row[data-v-2d9ee850] > .van-col--24 .van-ellipsis {
  margin: 0 !important;
  color: var(--restored-text) !important;
  font-size: 1.15rem;
  font-weight: 750;
}

#app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850] + .van-row[data-v-2d9ee850] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  box-sizing: border-box;
  width: calc(100% - 2rem);
  max-width: 920px;
  min-height: 14rem;
  margin: 0.9rem auto 5rem;
  padding: 1rem;
  border: 1px solid var(--restored-border);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.68) !important;
}

#app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850] + .van-row[data-v-2d9ee850] > .van-col {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--restored-border);
  border-radius: 0.9rem;
  background: rgba(30, 41, 59, 0.85) !important;
}

#app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850] + .van-row[data-v-2d9ee850] img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0 !important;
}

#app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850] + .van-row[data-v-2d9ee850] .van-multi-ellipsis--l2 {
  padding: 0.75rem;
  color: var(--restored-text) !important;
  font-weight: 650;
}

/* 个人中心底栏与首页底栏采用相同的悬浮卡片视觉，三个原始入口保持不变。 */
#app > .van-tabbar[data-v-2d9ee850] {
  right: 0;
  left: 0;
  width: min(calc(100% - 2rem), 920px);
  height: 4rem;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border: 1px solid var(--restored-border);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

#app > .van-tabbar[data-v-2d9ee850] .van-tabbar-item {
  color: var(--restored-muted) !important;
}

#app > .van-tabbar[data-v-2d9ee850] .van-tabbar-item--active {
  color: #a78bfa !important;
  background: rgba(139, 92, 246, 0.12);
}

/* 套餐抽屉使用内容自适应宽度；原按钮色用于区分日/周/月产品。 */
.van-popup:has(.bj[data-v-2d9ee850]) {
  height: auto !important;
  max-height: 78vh;
  padding: 1rem 0 1.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
  background: #0f172a;
}

.bj[data-v-2d9ee850] {
  width: min(100%, 680px);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .van-list > div[style*="padding"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .van-list > .van-row[style*="color"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #app {
    padding-bottom: 4.5rem;
  }

  .theme6_head {
    width: calc(100% - 1rem) !important;
    margin: 0.5rem !important;
    padding: 0.8rem !important;
    border-radius: 1rem !important;
  }

  .theme6_head > div:nth-child(2) {
    gap: 0.45rem;
  }

  /* 五个原始分类在手机上同屏完整显示，不依赖横向滑动才能看到“城市”。 */
  .theme6_head > div:first-child {
    gap: 0.12rem;
    justify-content: space-between;
  }

  .theme6_head > div:first-child > div {
    flex: 1 1 20%;
    min-width: 0;
    padding: 0.42rem 0.2rem !important;
    font-size: 0.82rem !important;
  }

  .theme6_head input {
    min-width: 0;
  }

  .theme6_head .van-button {
    padding: 0 0.9rem;
  }

  .van-list > div[style*="padding"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.1rem 0.5rem 1.5rem !important;
  }

  .van-list > .van-row[style*="color"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem 0.5rem;
  }

  .theme2_list-item {
    border-radius: 0.8rem;
  }

  .theme6_list {
    min-height: 2.5rem;
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .theme6_list > div {
    font-size: 0.82rem;
  }

  .theme6_foot {
    width: calc(100% - 1rem) !important;
    height: 3.35rem !important;
    margin-bottom: 0.4rem;
  }

  #app > .van-notice-bar[data-v-2d9ee850],
  #app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850],
  #app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850],
  #app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850] + .van-row[data-v-2d9ee850] {
    width: calc(100% - 1rem);
  }

  #app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] {
    min-height: 8.5rem;
    padding: 1rem;
  }

  #app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] img {
    width: 5rem !important;
    height: 5rem;
  }

  #app > .van-notice-bar[data-v-2d9ee850] + .van-row[data-v-2d9ee850] > .van-col:nth-child(2) {
    margin-left: 0.5rem;
    font-size: 1.05rem !important;
  }

  #app > .van-hairline--bottom[data-v-2d9ee850] + .van-row[data-v-2d9ee850] + .van-row[data-v-2d9ee850] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.65rem;
  }

  #app > .van-tabbar[data-v-2d9ee850] {
    width: calc(100% - 1rem);
    height: 3.6rem;
    margin-bottom: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme2_list-item,
  .theme2img-wrap img,
  .theme6_head > div:first-child > div {
    transition: none;
  }
}
