/*
Theme Name: riprov5-child
Template: ripro-v5
Description: Ripro v5 的子主题，Steam风格
Author: 你的名字
Version: 1.2
*/

/* ========== XMT-自适应Banner组件响应式优化 ========== */


.ratio-21x9{
    --ri-aspect-ratio: 46.8571428571%!important;
    
}

.uc-page .uc-menu-warp .menu-item a:hover, .uc-page .uc-menu-warp .menu-item.current-menu-item a{
    color: #0cbc87!important;
    background: #f0ffff52;
    border-radius: 8px;
}

.uc-page .uc-menu-warp .menu-item{
    padding: 1.5px;
}

.theiaStickySidebar{
    position: static!important;
}

/* Banner基础样式 */
.custom-banner-widget {
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
}

/* 自定义高度模式的响应式优化 */
.xmt-banner-custom-height {
  /* PC端保持设定高度 */
}

@media (max-width: 768px) {
  .xmt-banner-custom-height {
    /* 手机端高度自动调整，避免过高 */
    height: auto !important;
    min-height: 180px;
    max-height: 50vh;
  }
  
  .xmt-banner-custom-height img,
  .xmt-banner-custom-height video {
    height: auto !important;
    max-height: 50vh;
    object-fit: cover;
  }
}

/* contain模式自适应高度优化 */
.xmt-banner-auto-height {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.xmt-banner-auto-height img,
.xmt-banner-auto-height video {
  max-height: 400px;
}

@media (max-width: 768px) {
  .xmt-banner-auto-height {
    min-height: 150px;
  }
  
  .xmt-banner-auto-height img,
  .xmt-banner-auto-height video {
    max-height: 250px;
  }
}

/* 16:9比例模式的响应式优化 */
@media (max-width: 768px) {
  .xmt-banner-aspect-ratio {
    aspect-ratio: 16/10; /* 手机端稍微调整比例 */
  }
}

@media (max-width: 480px) {
  .xmt-banner-aspect-ratio {
    aspect-ratio: 4/3; /* 小屏幕使用更方的比例 */
  }
}





/* xmt-极简3图悬浮卡片小工具样式（严格还原原始HTML/CSS） */
.xmt-3card-hover-wrap {
  display: flex;
  flex-wrap: wrap; /* 新增：允许自动换行 */
  justify-content: center;
  align-items: flex-end;
  gap: 48px;
  margin: 40px 0;
}
.xmt-3card-hover-card {
  width: 200px;
  height: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 2500px;
  margin: 0 24px;
}
.xmt-3card-hover-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: block;
}
.xmt-3card-hover-wrapper {
  transition: all 0.5s;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}
.xmt-3card-hover-card:hover .xmt-3card-hover-wrapper {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}
.xmt-3card-hover-title {
  width: 70%;
  min-width: 80px;
  max-width: 140px;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow 0.5s;
  pointer-events: none;
  display: block;
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.28);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
  transform: translateY(0) scale(1);
}
.xmt-3card-hover-card:hover .xmt-3card-hover-title {
  transform: translateY(-32px) scale(1.12);
  box-shadow: 0 16px 32px 0 rgba(0,0,0,0.38);
}
.xmt-3card-hover-character {
  width: 100%;
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%) translateY(60px) scale(1);
  opacity: 0;
  z-index: 3;
  transition: all 0.5s;
  pointer-events: none;
  display: block;
}
.xmt-3card-hover-card:hover .xmt-3card-hover-character {
  opacity: 1;
  transform: translateX(-50%) translateY(-30px) scale(1.08);
}
/* 渐变遮罩伪元素还原 */
.xmt-3card-hover-wrapper::before,
.xmt-3card-hover-wrapper::after {
  content: "";
  opacity: 0;
  width: 100%;
  position: absolute;
  left: 0;
  pointer-events: none;
  transition: all 0.5s;
}
.xmt-3card-hover-wrapper::before {
  top: 0;
  height: 100%;
  background-image: linear-gradient(
    to top,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
  );
}
.xmt-3card-hover-wrapper::after {
  bottom: 0;
  height: 80px;
  opacity: 1;
  background-image: linear-gradient(
    to bottom,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
  );
}
.xmt-3card-hover-card:hover .xmt-3card-hover-wrapper::before,
.xmt-3card-hover-wrapper::after {
  opacity: 1;
}
.xmt-3card-hover-card:hover .xmt-3card-hover-wrapper::after {
  height: 120px;
}
@media (max-width: 900px) {
  .xmt-3card-hover-wrap { gap: 18px; }
  .xmt-3card-hover-card { width: 140px; height: 200px; }
  .xmt-3card-hover-title { max-width: 90px; }
  .xmt-3card-hover-character { max-width: 70px; }
}
@media (max-width: 600px) {
  .xmt-3card-hover-wrap {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between; /* 两端对齐 */
    padding: 0 2vw;
  }
  .xmt-3card-hover-card {
    width: 48vw;   /* 每行2个，留点间距 */
    max-width: 180px;
    min-width: 0;
    height: 120px;
    margin: 0 0 8px 0;
  }
  .xmt-3card-hover-title { max-width: 60px; }
  .xmt-3card-hover-character { max-width: 40px; }
}

/* ========== 像素风格文章卡片小工具样式 ========== */

.pixel-posts-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px auto 0 auto;
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
}

.pixel-card {
  background: #181a20;
  border: 3.5px solid #222;
  box-shadow: 0 0 0 2px #000, 0 2px 12px 0 #000a;
  color: #e0e0e0;
  /* 宽度自适应：大屏4列 */
  width: calc(25% - 18px); /* 4列，减去gap影响 */
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0; /* 直角像素风格 */
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

/* 中屏：3列 */
@media (max-width: 1200px) {
  .pixel-card { width: calc(33.333% - 16px); }
}
/* 小屏和极小屏：2列 */
@media (max-width: 900px) {
  .pixel-posts-wrap {
    gap: 8px;
  }
  .pixel-card {
    width: calc(50% - 4px);
    flex-basis: calc(50% - 4px);
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .pixel-posts-wrap {
    gap: 4px;
  }
  .pixel-card {
    width: calc(50% - 2px);
    flex-basis: calc(50% - 2px);
    min-width: 0;
    max-width: 100%;
  }
}

.pixel-card-thumb {
  width: 100%;
  aspect-ratio: 16/7.6;
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
  background-color: #23272e;
  border-bottom: 3.5px solid #222;
}

.pixel-card-body {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 12px 16px;
  flex: 1 1 auto;
}

.pixel-card-title {
  font-size: 1.18rem;
  color: #fff;
  font-weight: bold;
  text-align: left;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pixel-card-excerpt {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.5;
  min-height: 32px;
  padding: 0;
}

.pixel-card-excerpt-one-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-height: unset;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.pixel-card-meta-grid {
  display: grid;
  justify-content: space-between;
  align-content: center;
  /*grid-template-columns: 1fr 1fr;*/
  /*grid-template-rows: 1fr 1fr;*/
  gap: 0;
  width: 100%;
  min-height: 60px;
  margin-top: 18px;
  border-top: 2px solid #222;
  padding-top: 10px;
  position: relative;
}

.meta-category {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  align-self: start;
  justify-self: start;
}
.meta-author {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: start;
  justify-self: end;
}
.meta-time {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  align-self: end;
  justify-self: start;
}
.meta-price {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: end;
  justify-self: end;
}

.pixel-card-meta-item {
  align-items: center;
  gap: 4px;
  color: #b0b0b0;
  font-size: 0.98rem;
  font-family: 'xiangsu1', inherit;
}

.pixel-card-meta-item a {
  color: #b0b0b0;
  text-decoration: none;
  font-weight: normal;
}

.pixel-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.pixel-card-cat a {
  color: #2d8cf0;
  text-decoration: none;
  font-weight: bold;
}

.pixel-card-author {
  color: #ffb300;
}

.pixel-card-time {
  color: #00e676;
}

.pixel-card-meta-price {
  display: flex;
  align-items: center;
}

.pixel-card-price {
  display: inline-block;
  min-width: 64px;
  text-align: right;
  font-size: 1.08rem;
  font-weight: bold;
  /* padding: 4px 16px; */
  box-sizing: border-box;
  border-radius: 0;
  letter-spacing: 1px;
  line-height: 1.2;
  /* background: #23272e; */
  /*border: 2px solid #ffb300;*/
  color: #ffb300;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pixel-card-free {
  /*border: 2px dashed #00e676 !important;*/
  color: #00e676 !important;
  /*background: #181a20 !important;*/
}

.pixel-card:hover {
  box-shadow: 10px 10px #333;
  /*border-color: #2d8cf0;*/
  transform: translateY(-10px) translateX(-10px) scale(1.01);
}

/* 音频卡片正方形自适应布局 */
.pixel-audio-square {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 320px;
  min-width: 160px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}
/* APlayer封面变为全宽大圆 */
.pixel-audio-square .aplayer-pic {
  border-radius: 50% !important;
  overflow: hidden;
  box-shadow: 0 0 0 4px #23272e, 0 2px 12px 0 #000a;

  margin: 0 auto;
  transition: box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pixel-audio-square .aplayer-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* 唱片旋转动画 */
@keyframes record-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pixel-audio-square .aplayer-playing .aplayer-pic {
  animation: record-spin 2.5s linear infinite;
}
.pixel-audio-square .aplayer-pic {
  animation-play-state: paused;
}
.pixel-audio-square .aplayer-playing .aplayer-pic {
  animation-play-state: running;
}
/* 只隐藏APlayer不需要的内容，保留封面和播放按钮 */
.pixel-audio-square .aplayer-info,
.pixel-audio-square .aplayer-controller,
.pixel-audio-square .aplayer-list,
.pixel-audio-square .aplayer-time,
.pixel-audio-square .aplayer-bar-wrap,
.pixel-audio-square .aplayer-volume-wrap,
.pixel-audio-square .aplayer-miniswitcher,
.pixel-audio-square .aplayer-menu,
.pixel-audio-square .aplayer-lrc,
.pixel-audio-square .aplayer-notice {
  display: none !important;
}
/* 修正APlayer封面显示问题，移除background色，保留背景图相关属性 */
.pixel-audio-square .aplayer-pic {
  border-radius: 50% !important;
  box-shadow: 0 0 0 4px #23272e, 0 2px 12px 0 #000a;
  margin: 0 auto;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  /* 不要写width/height/max-width/max-height */
}

/* 让APlayer整体居中且紧凑 */
.pixel-audio-square .aplayer {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ========== 现代简洁风格APlayer样式（可选） ========== */
.modern-audio-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  max-width: 1200px; /* 5*220+4*18=1150px，保证一行最多5个 */
  margin-left: auto;
  margin-right: auto;
}
.aplayer-modern {
    background: #181a20 !important;
    border: 3px #262626 solid;
    border-radius: 16px !important;
    padding: 16px 12px 12px 12px;
    max-width: 220px;
    min-width: 160px;
    width: 20%;
    margin: 9px;
    color: #E1E1E6;
    flex: 0 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: .1s;
}

.aplayer-modern:hover{
    box-shadow: 9px 9px rgb(72 72 72);
    transform: translateY(-10px) translateX(-10px) scale(1.01);
}
.aplayer-modern .aplayer-pic,
.aplayer-modern .modern-player-cover {
  width: 90px !important;
  height: 90px !important;
  border-radius: 30% !important;
  box-shadow: 0 2px 8px #0e2a47;
  margin: 0 auto 12px auto;
  overflow: hidden;
}
.aplayer-modern .aplayer-pic img,
.aplayer-modern .modern-player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30%;
}
.aplayer-modern .aplayer-info {
  text-align: center;
  margin-bottom: 8px;
}
.aplayer-modern .aplayer-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #E1E1E6;
  margin-bottom: 2px;
}
.aplayer-modern .aplayer-author {
  font-size: 0.92rem;
  color: #b0b0b0;
}
.aplayer-modern .aplayer-controller {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.aplayer-modern .aplayer-bar-wrap {
  width: 100%;
  margin: 0 auto 4px auto;
  background: #D9D9D9;
  border-radius: 8px;
  height: 6px;
  box-shadow: none;
  opacity: 0.3;
}
.aplayer-modern .aplayer-bar {
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2d8cf0, #00e676);
  box-shadow: none;
}
.aplayer-modern .aplayer-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: gainsboro;
  margin-bottom: 4px;
}
.aplayer-modern .aplayer-play,
.aplayer-modern .aplayer-pause,
.aplayer-modern .aplayer-icon {
  width: 32px !important;
  height: 32px !important;
  background: #181a20 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 4px #2d8cf0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  transition: box-shadow 0.2s, background 0.2s;
}
.aplayer-modern .aplayer-play:hover,
.aplayer-modern .aplayer-pause:hover,
.aplayer-modern .aplayer-icon:hover {
  box-shadow: 0 0 8px #2d8cf0, 0 0 2px #fff;
  background: #2d8cf0 !important;
}
.aplayer-modern .aplayer-volume-wrap,
.aplayer-modern .aplayer-lrc,
.aplayer-modern .aplayer-list,
.aplayer-modern .aplayer-miniswitcher,
.aplayer-modern .aplayer-menu,
.aplayer-modern .aplayer-notice {
  display: none !important;
}
.aplayer-modern .info h1 {
  font-size: 1.05rem;
  margin: 0 0 2px 0;
  text-align: center;
  font-weight: bold;
  color: #fff;
}
.aplayer-modern .info p {
  font-size: 0.92rem;
  color: #b0b0b0;
  margin: 0 0 6px 0;
  text-align: center;
}
.aplayer-modern .controls {
  margin-top: 8px;
}
.aplayer-modern .track-time {
  margin-top: 8px;
}
.aplayer-modern .track {
  height: 6px;
  margin-bottom: 2px;
}
.aplayer-modern .total-time,
.aplayer-modern .last-time {
  font-size: 0.92rem;
}
@media (max-width: 1200px) {
  .aplayer-modern { width: 25%; max-width: 240px; }
  .modern-audio-player-list { max-width: 980px; }
}
@media (max-width: 900px) {
  .aplayer-modern { width: 33.333%; max-width: 300px; }
  .modern-audio-player-list { max-width: 700px; }
}
@media (max-width: 700px) {
  .aplayer-modern { width: 50%; min-width: 120px; max-width: 360px; }
  .modern-audio-player-list { max-width: 480px; gap: 8px; }
}
@media (max-width: 480px) {
  .aplayer-modern {
    width: 45vw;
    min-width: 0;
    max-width: 100vw;
    margin: 0 0 8px 0;
    padding: 8px 2vw 8px 2vw;
  }
  .modern-audio-player-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    max-width: 100vw;
  }
}

@media (max-width: 412px) {
  .aplayer-modern {
    width: 45vw;
    min-width: 0;
    max-width: 45vw;
  }

}

.modern-audio-title-ellipsis,
.modern-audio-title-ellipsis a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.audio-author-placeholder {
  height: 1.2em;
  visibility: hidden;
}

.aplayer-modern {
  position: relative;
  overflow: hidden;
}
.modern-audio-visualizer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.random-post-card-stack .card-view-btn {
  display: block;
  width: 100%;
  padding: 0.7em 0;
  background: linear-gradient(90deg, #2d8cf0, #00e676);
  color: #fff;
  border: none;
  border-radius: 0.5em;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(45,140,240,0.08);
  margin-top: 1.2rem;
}
.random-post-card-stack .card-view-btn:hover {
  background: linear-gradient(90deg, #00e676, #2d8cf0);
  box-shadow: 0 4px 16px rgba(45,140,240,0.18);
}

/* ========== 随机文章堆叠卡片小工具堆叠与滑动样式 ========== */

:root {
  --card-perspective: 700px;
  --card-z-offset: 12px;
  --card-y-offset: 7px;
  --card-max-z-index: 100;
  --card-swap-duration: 0.3s;
  --swipe-x: 0px;
  --swipe-rotate: 0deg;
}
.random-post-card-stack {
  width: 18rem;
  height: 22rem;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  user-select: none;
  touch-action: none;
  transform-style: preserve-3d;
  margin: 0 auto;
}
.random-post-card-stack .random-card-stack-card {
  cursor: grab;
  background-color: #eee;
  display: flex;
  place-self: center;
  position: absolute;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  border: 1px solid #fff;
  border-radius: 0.75rem;
  z-index: calc(var(--card-max-z-index) - var(--i));
  transform: perspective(var(--card-perspective))
    translateZ(calc(-1 * var(--card-z-offset) * var(--i)))
    translateY(calc(var(--card-y-offset) * var(--i)))
    translateX(var(--swipe-x, 0px)) rotateY(var(--swipe-rotate, 0deg));
  transition: transform var(--card-swap-duration) ease, opacity var(--card-swap-duration) ease;
  will-change: transform;
  backface-visibility: hidden;
  box-shadow: 0 2px 2px #00000061;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
}
.random-post-card-stack .random-card-stack-card:active {
  cursor: grabbing;
}
.random-post-card-stack .random-card-stack-card-content {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.random-post-card-stack .random-card-stack-card-content img {
  border-radius: 0.75rem;
  pointer-events: none;
  user-select: none;
}
.random-post-card-stack .random-card-stack-card-content .card-title {
  font-size: 1.6rem;
  letter-spacing: -1px;
  color: #293457;
}
.random-post-card-stack .random-card-stack-card-content p {
  font-size: 0.9rem;
  color: #2d2e31;
}
@media (max-width: 600px) {
  .random-post-card-stack {
    width: 96vw !important;
    min-width: 0;
    max-width: 100vw;
    min-height: unset !important;
    margin: 20px auto !important;
    padding: 0 !important;
  }
  .random-post-card-stack .random-card-stack-card {
    width: 100% !important;
    aspect-ratio: 5/7;
    min-height: unset !important;
    max-width: 100vw;
    max-height: 90vw;
    padding: 0.4rem !important;
    gap: 0.4rem !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
  }
}

@media (max-width: 900px) {
  .pixel-card { width: 90vw; min-width: 0; }
  .pixel-card-title { font-size: 1.05rem; }
  .pixel-card-excerpt { font-size: 0.92rem; }
  .xmt-3card-hover-wrap {
    display: none !important;
  }
  .pixel-card-title {
    font-size: 1rem;
  }
  .pixel-card-excerpt {
    font-size: 0.9rem;
  }
  .pixel-card-meta-item {
    font-size: 0.9rem;
  }
  .pixel-card-price {
    font-size: 1rem;
    padding: 2px 10px;
    min-width: 48px;
  }
}
@media (max-width: 600px) {
  .pixel-card { width: 98vw; }
  .pixel-card-title { font-size: 0.82rem; }
  .pixel-card-excerpt { font-size: 0.72rem; }
  .pixel-card-meta-item {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .pixel-card-price {
    font-size: 0.82rem;
    padding: 1px 4px;
    min-width: 28px;
  }
}

/* ========== 修正随机文章堆叠卡片标题和摘要长度，防止内容撑开卡片 ========== */
.random-post-card-stack .random-card-stack-card .card-title,
.random-post-card-stack .random-card-stack-card .card-content .card-title {
  font-size: 1.18rem;
  color: #293457;
  font-weight: bold;
  text-align: left;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.random-post-card-stack .random-card-stack-card .card-excerpt,
.random-post-card-stack .random-card-stack-card .card-content .card-excerpt {
  font-size: 0.98rem;
  color: #555;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.5;
  min-height: 2.9em; /* 2行高度 */
  max-height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 600px) {
  .random-post-card-stack .random-card-stack-card .card-title,
  .random-post-card-stack .random-card-stack-card .card-content .card-title {
    font-size: 1rem;
  }
  .random-post-card-stack .random-card-stack-card .card-excerpt,
  .random-post-card-stack .random-card-stack-card .card-content .card-excerpt {
    font-size: 0.85rem;
  }
}

/* ========== 优化随机文章堆叠卡片内容紧凑度 ========== */
.random-post-card-stack .random-card-stack-card {
  gap: 0.5rem !important;
  padding: 0.7rem !important;
  min-height: 220px;
  box-sizing: border-box;
  background: #181a20;
    border: 3px #262626 solid;
    color: #fff !important;
}
.random-post-card-stack .random-card-stack-card .card-title,
.random-post-card-stack .random-card-stack-card .card-content .card-title {
  margin-bottom: 4px !important;
}
.random-post-card-stack .random-card-stack-card .card-excerpt,
.random-post-card-stack .random-card-stack-card .card-content .card-excerpt {
  margin-bottom: 8px !important;
}
.random-post-card-stack .random-card-stack-card .card-content {
  gap: 0.5rem !important;
}
@media (max-width: 600px) {
  .random-post-card-stack .random-card-stack-card {
    padding: 0.4rem !important;
    min-height: 140px;
  }
}

/* ========== 调高随机文章堆叠卡片最小高度，保证按钮完整显示 ========== */
.random-post-card-stack .random-card-stack-card {
  min-height: 370px !important;
}
@media (max-width: 600px) {
  .random-post-card-stack .random-card-stack-card {
    min-height: 180px !important;
  }
}

/* ========== 随机文章堆叠卡片区域高度自适应并增加上下间距 ========== */
.random-post-card-stack {
  height: auto !important;
  min-height: 370px;
  margin: 32px 0 !important;
  padding: 0 !important;
  display: grid;
  place-content: center;
}

@media (max-width: 1400px) {
  .random-post-card-groups {
    display: none !important;
  }
}

/* ========== 批量拖拽随机卡片组横向排列与自适应 ========== */
.random-post-card-groups {
  display: block;
  width: 100%;
  margin: 0 auto;
}
.random-post-card-groups-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.random-post-card-group {
  /*width: 320px;*/
  margin-bottom: 32px;
}
@media (max-width: 1400px) {
  .random-post-card-group { width: 24vw; min-width: 220px; max-width: 340px; }
}
@media (max-width: 900px) {
  .random-post-card-group { width: 48vw; min-width: 160px; max-width: 98vw; }
}
@media (max-width: 600px) {
  .random-post-card-groups { flex-direction: column; align-items: center; }
  .random-post-card-group { width: 98vw; }
}
.random-post-card-groups-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 1px;
  line-height: 1.2;
}
.random-post-card-groups-subtitle {
  font-size: 1.02rem;
  color: #b0b0b0;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.5;
}

.douyin-live-area-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 4px;
  color: #fff;
}

.epic-free-area-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: #fff;
}
.epic-free-area-subtitle {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 14px;
  color: #9aa0a6;
}
.xmt-epic-free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.xmt-epic-free-grid > a { text-decoration: none; }
.epic-card {
  position: relative;
  background: #0e0f14;
  border-radius: 14px;
  box-shadow: 0 10px 28px #0008;
  overflow: hidden;
  transform: translateZ(0);
}
.epic-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}
.epic-card-info {
  padding: 10px 12px 12px 12px;
}
.epic-card-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.epic-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #9aa0a6;
  font-size: 0.9rem;
}
.epic-price { color: #c8d1ff; }
.epic-date { color: #8aa2ff; }
.epic-card-desc {
  margin-top: 6px;
  color: #cfd5ff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.92;
}
.epic-free-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #00ffc6 0%, #00a3ff 100%);
  color: #001013;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 4px 16px #00ffc633;
}
.epic-card:hover {
  box-shadow: 0 18px 52px #000a, 0 0 0 1px #0ff3;
  transform: translateY(-2px);
}
.epic-skeleton {
  animation: epicShimmer 1.2s linear infinite;
}
.epic-skeleton .epic-card-media { background: linear-gradient(90deg, #1a1c24 25%, #23252f 50%, #1a1c24 75%); }
.epic-skeleton .epic-card-title { height: 18px; background: #1a1c24; border-radius: 8px; }
.epic-skeleton .epic-card-meta { height: 14px; background: #13151c; border-radius: 6px; }
@keyframes epicShimmer { 0% { filter: brightness(0.9); } 50% { filter: brightness(1.15); } 100% { filter: brightness(0.9); } }
.epic-free-error { color: #ff5f5f; text-align: center; padding: 20px; background: #14161c; border-radius: 12px; }

@media (max-width: 600px) {
  .xmt-epic-free-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .epic-card-info { padding: 8px 10px; }
  .epic-card-title { font-size: 0.96rem; margin-bottom: 4px; }
  .epic-price { display: none; }
  .epic-card-desc { display: none; }
}
.douyin-live-area-subtitle {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 12px;
  color: #aaa;
}
.douyin-live-area {
  width: 100%;
  margin: 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.douyin-live-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.douyin-live-player {
  background: #181a20;
  border-radius: 14px;
  box-shadow: 0 2px 12px #0002;
  padding: 10px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 220px;
  /* 高度自适应，不要强制height */
}
.douyin-live-player-title {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.douyin-live-player-content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
}
.douyin-live-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 20;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 16px;
  padding: 2px 12px 2px 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px #0003;
  pointer-events: none;
  user-select: none;
      transform: scale(.8);
}
.douyin-live-badge .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff2d2d;
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 6px #ff2d2d;
}
.douyin-live-player video,
.douyin-live-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
  object-fit: cover;
  margin: 0 auto;
}
/* 自适应宫格布局 */
.douyin-live-count-1 .douyin-live-player video,
.douyin-live-count-1 .douyin-live-player iframe {
  max-height: 520px;
  min-height: 180px;
}
.douyin-live-count-2 .douyin-live-player video,
.douyin-live-count-2 .douyin-live-player iframe {
  max-height: 320px;
  min-height: 140px;
}
.douyin-live-count-3 .douyin-live-player video,
.douyin-live-count-3 .douyin-live-player iframe {
  max-height: 260px;
  min-height: 120px;
}
.douyin-live-count-4 .douyin-live-player video,
.douyin-live-count-4 .douyin-live-player iframe,
.douyin-live-count-5 .douyin-live-player video,
.douyin-live-count-5 .douyin-live-player iframe,
.douyin-live-count-6 .douyin-live-player video,
.douyin-live-count-6 .douyin-live-player iframe,
.douyin-live-count-7 .douyin-live-player video,
.douyin-live-count-7 .douyin-live-player iframe,
.douyin-live-count-8 .douyin-live-player video,
.douyin-live-count-8 .douyin-live-player iframe,
.douyin-live-count-9 .douyin-live-player video,
.douyin-live-count-9 .douyin-live-player iframe {
  max-height: 200px;
  min-height: 80px;
}
@media (max-width: 1200px) {
  .douyin-live-player { width: calc(33.333% - 16px); }
}
@media (max-width: 900px) {
  .douyin-live-player { width: calc(50% - 8px); }
  .douyin-live-list { gap: 12px; }
  .douyin-live-player video, .douyin-live-player iframe { max-height: 120px; }
}
@media (max-width: 600px) {
  .douyin-live-player { width: 98vw; min-width: 0; }
  .douyin-live-list { gap: 6px; }
  .douyin-live-player video, .douyin-live-player iframe { max-height: 90px; }
}
/* 移除.douyin-live-card相关样式 */
.douyin-live-card, .douyin-live-card-title, .douyin-live-card-content { display: none !important; }

.douyin-live-title-float {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 1.08rem;
  font-weight: bold;
  text-align: center;
  padding: 8px 12px 6px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border-radius: 0 0 8px 8px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.douyin-live-player-content:hover .douyin-live-title-float {
  opacity: 1;
}

/* 抖音直播全屏渐变遮罩美化 */
.douyin-live-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 0 1px #222;
  overflow: hidden;
}
.video-blur-bg {
  position: absolute;
  z-index: 0;
  left: 0; top: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  /* filter: blur(32px) brightness(0.7); */
  transform: scale(1.12);
  pointer-events: none;
}
.douyin-live-video-wrapper video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  display: block;
}
.video-side-mask {
  position: absolute;
  top: 0; bottom: 0;
  width: 10vw;
  pointer-events: none;
  z-index: 2;
  display: none;
}
.video-side-mask.left {
  left: 0;
  background: linear-gradient(to right, #000 60%, transparent 100%);
}
.video-side-mask.right {
  right: 0;
  background: linear-gradient(to left, #000 60%, transparent 100%);
}


/* 仅在预览状态下隐藏 video 的进度条和时间组件 */
.douyin-live-video-wrapper:not(:fullscreen) video::-webkit-media-controls-timeline,
.douyin-live-video-wrapper:not(:fullscreen) video::-webkit-media-controls-current-time-display,
.douyin-live-video-wrapper:not(:fullscreen) video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}
.douyin-live-video-wrapper:not(:fullscreen) video::-webkit-media-controls-panel {
  background: transparent !important;
}
/* Firefox 部分兼容 */
.douyin-live-video-wrapper:not(:fullscreen) video::-moz-range-thumb,
.douyin-live-video-wrapper:not(:fullscreen) video::-moz-range-track {
  display: none !important;
}

.custom-video-controls {
    background: #0000009c;
    margin-top: 20px;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px 12px 18px;
  height: 48px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s;
}
.custom-video-controls button {
  margin: 0 8px;
  pointer-events: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.custom-video-controls button:hover {
  background: #2d8cf0;
  color: #fff;
}
.btn-quality .quality-list {
  display: none;
  position: absolute;
  bottom: 48px;
  left: 0;
  background: rgba(24,26,32,0.98);
  border-radius: 6px;
  box-shadow: 0 2px 8px #0003;
  padding: 6px 0;
  min-width: 60px;
  z-index: 30;
}
.quality-item {
  padding: 6px 18px;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
  font-size: 1.02rem;
}
.quality-item:hover {
  background: #2d8cf0;
  color: #fff;
}
.douyin-live-video-wrapper:fullscreen,
.douyin-live-video-wrapper:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  background: #000;
  position: fixed;
  left: 0; top: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.douyin-live-video-wrapper:fullscreen video,
.douyin-live-video-wrapper:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  display: block;
  max-width: 100vw;
  max-height: 100vh;
  min-width: 60vw;
  min-height: 60vh;
}
.douyin-live-video-wrapper:fullscreen .video-blur-bg,
.douyin-live-video-wrapper:-webkit-full-screen .video-blur-bg {
  width: 100vw !important;
  height: 100vh !important;
}
.custom-video-controls button svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
  fill: currentColor;
}

/* 音量竖条 */
.btn-mute { position: relative; }
.volume-slider-vertical {
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  width: 32px;
  height: 100px;
  display: none;
  background: rgba(24,26,32,0.98);
  border-radius: 8px;
  box-shadow: 0 2px 8px #0003;
  padding: 8px 0;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.btn-mute:hover .volume-slider-vertical,
.volume-slider-vertical:hover {
  display: flex;
}
.volume-slider-vertical input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 24px;
  height: 80px;
  margin: 0;
}

/* 画质菜单优化 */
.quality-list {
  font-size: 12px;
  min-width: 80px;
  padding: 4px 0;
}
.quality-item {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.custom-video-controls .btn-quality {
  position: relative !important;
  display: inline-block;
  vertical-align: middle;
}
.custom-video-controls .quality-list {
  position: absolute !important;
  left: 50% !important;
  bottom: 120% !important;
  transform: translateX(-50%) !important;
  z-index: 9999;
}

.douyin-live-player,
.douyin-live-player-content {
  overflow: visible !important;
}

/* ========== XMT-瀑布流卡片小工具 Masonry 优化 ========== */
.xmt-waterfall-list {
  column-count: 4;
  column-gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}
@media (max-width: 1200px) {
  .xmt-waterfall-list { column-count: 3; }
}
@media (max-width: 900px) {
  .xmt-waterfall-list { column-count: 2; column-gap: 8px; }
}
@media (max-width: 600px) {
  .xmt-waterfall-list { column-count: 1; column-gap: 0; }
}
.xmt-waterfall-card {
  display: block;
  background: none;
  margin-bottom: 18px;
  break-inside: avoid;
  box-shadow: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.xmt-waterfall-img-wrap {
  width: 100%;
  background: #eee;
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.xmt-waterfall-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.2s;
  cursor: pointer;
}
.xmt-waterfall-skeleton {
  width: 100%;
  height: 0;
  padding-bottom: 66%; /* 默认16:9，可被图片撑开 */
  background: #e5e5e5;
  border-radius: 10px;
  position: relative;
  display: block;
}
.xmt-waterfall-title {
  color: #333;
  font-size: 1.02rem;
  font-weight: 400;
  padding: 8px 4px 0 4px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: none;
}
.xmt-waterfall-api-actions { display: none !important; }
.xmt-waterfall-fail {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: #eee;
  color: #f00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98em;
  z-index: 2;
}
.xmt-waterfall-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.xmt-waterfall-modal-bg {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}
.xmt-waterfall-modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px #000a;
  z-index: 2;
  background: #23272e;
}
.xmt-waterfall-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 3;
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.6em;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xmt-waterfall-modal-close:hover {
  background: #00e676;
}
@media (max-width: 900px) {
  .xmt-waterfall-modal-img {
    max-width: 98vw;
    max-height: 60vh;
  }
}
@media (max-width: 600px) {
  .xmt-waterfall-modal-img {
    max-width: 100vw;
    max-height: 40vh;
  }
}
/* ========== END Masonry瀑布流优化 ========== */
.xmt-waterfall-modal-download {
  position: absolute;
  top: 24px;
  right: 80px;
  z-index: 3;
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3em;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.xmt-waterfall-modal-download:hover {
  background: #00e676;
}
@media (max-width: 600px) {
  .xmt-waterfall-modal-download {
    top: 12px;
    right: 48px;
    width: 32px;
    height: 32px;
    font-size: 1.1em;
  }
}

.custom-video-controls button::before,
.custom-video-controls button::after,
.custom-video-controls .icon-play::before,
.custom-video-controls .icon-pause::before {
  content: none !important;
  display: none !important;
}
.douyin-live-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 0 1px #222;
  overflow: hidden;
}

