:root{
  --bg0:#070A12;
  --bg1:#0B1022;
  --fg:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --muted2:rgba(234,240,255,.55);
  --card:#0E1632;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.16);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
  --radius2:22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--fg);
  /* 移除 overflow-x:hidden，让卡片能从页面边缘外进入和离开 */
  position: relative;
}

/* 背景视频样式 - 参考 vidu.cn 登录页效果 */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  pointer-events: none;
  /* 确保视频始终覆盖整个视口 */
  min-width: 100%;
  min-height: 100%;
  /* 平滑过渡效果 */
  transition: opacity 0.5s ease-in-out;
  /* 优化视频加载：使用硬件加速 */
  transform: translateZ(0);
  will-change: opacity;
  /* 视频加载时的占位背景 */
  background-color: #070A12;
}

/* 移动端：视频更居中显示，卡片变小 */
@media (max-width: 768px) {
  .bg-video {
    /* 移动端视频居中显示，确保重要内容（男生）不被裁剪 */
    object-position: 50% 40%;
    /* 如果视频是横向的，可能需要调整垂直位置 */
    object-fit: cover;
  }
  
  /* 移动端卡片间距优化 */
  .marquee__track {
    gap: 12px; /* 移动端减小间距 */
  }
}

/* 视频背景遮罩层，确保内容可读性和高级感 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 渐变遮罩，参考 vidu.cn 的遮罩效果 */
  background: 
    linear-gradient(180deg, rgba(7, 10, 18, 0.4) 0%, rgba(11, 16, 34, 0.5) 50%, rgba(7, 10, 18, 0.4) 100%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  /* 轻微模糊效果，增强高级感 */
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
}

.stage{
  min-height: 100svh;
  display:flex;
  flex-direction:column;
  position: relative;
  z-index: 1;
}

/* Logo + 标题（左上角） */
.header{
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.header__logo{
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  opacity: 0.9; /* 确保logo可见 */
  filter: brightness(1.1); /* 稍微提亮，确保在深色背景下可见 */
}

.header__title-wrapper{
  position: relative;
  display: inline-block;
}

.header__title{
  font-size: 32px; /* 和logo一样大小 */
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.header__title:hover{
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* 悬浮窗口样式 */
.header__tooltip{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  z-index: 100;
  margin-top: 8px;
}

.header__title-wrapper:hover .header__tooltip,
.header__title-wrapper:active .header__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 移动端：触摸时显示悬浮窗口 */
@media (max-width: 768px) {
  .header__title-wrapper:active .header__tooltip,
  .header__title-wrapper.touch-active .header__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

.tooltip__content{
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tooltip__content:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.12));
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.tooltip__content::before{
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.2));
}

.tooltip__text{
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
}

.hero{
  flex: 1 0 50%;
  min-height: 52svh;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding: 48px 48px 10px;
  position: relative;
}

.hero__title{
  display: none; /* 移除中间的"剧变时代" */
}

.rail{
  flex: 0 0 auto;
  padding: 0 0 34px;
  width: 100%; /* 确保rail占满宽度 */
  overflow: hidden; /* 隐藏超出部分 */
}

.rail .marquee{
  max-width: none;
  margin: 0;
}

.marquee{
  position:relative;
  /* 透明容器，宽度为浏览器窗口宽度 */
  width: 100vw;
  max-width: 100vw;
  overflow: hidden; /* 隐藏超出容器的内容，实现从边缘进入和离开 */
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: grab;
  /* 确保容器从页面左侧开始，覆盖整个窗口宽度 */
  margin-left: calc(50% - 50vw);
  left: 0;
}
.marquee.is-dragging{ cursor: grabbing; }

.marquee__track{
  display:flex;
  gap: 16px;
  align-items:stretch;
  padding: 0; /* 移除 padding，确保无缝循环 */
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* 已按需求移除左右“黑纱”渐隐遮罩（marquee fades） */

.card{
  flex: 0 0 auto;
  width: 210px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  text-decoration:none;
  color:inherit;
  overflow:hidden;
  position:relative;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, filter .25s ease;
}

/* 移动端：卡片变小 - 使用多个断点确保覆盖所有移动设备 */
@media screen and (max-width: 768px),
       screen and (max-device-width: 768px),
       (orientation: portrait) and (max-width: 1024px) {
  .card {
    width: 140px !important; /* 从 210px 减小到 140px，更明显的变化 */
    min-width: 140px !important;
    max-width: 140px !important;
  }
  
  .card__thumb {
    min-height: 210px !important; /* 相应调整最小高度 */
  }
  
  /* 移动端卡片间距优化 */
  .marquee__track {
    gap: 10px !important; /* 移动端减小间距 */
  }
}
.card:hover{
  transform: translateY(-2px);
  border-color: var(--stroke2);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  filter: saturate(1.05);
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,0) 40%, rgba(255,255,255,.08));
  opacity: .10;
}

.card__thumb{
  aspect-ratio: 2 / 3; /* 2:3 */
  height: auto;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: #0a1026;
  overflow:hidden;
  position:relative;
}
.card__thumb{
  /* 兜底：旧浏览器不支持 aspect-ratio 时仍能接近 9:16 */
  min-height: 300px;
}

.card__img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
  transform: translateZ(0) scale(1.02);
  filter: saturate(1.10) contrast(1.06) brightness(1.02);
  will-change: transform, filter;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s cubic-bezier(.2,.8,.2,1), opacity .3s ease-in;
  /* 优化图片加载性能，保持高质量 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* 确保图片在加载时不会闪烁 */
  background-color: #0a1026;
}

.card:hover .card__img{
  transform: translateZ(0) scale(1.06);
  filter: saturate(1.14) contrast(1.08) brightness(1.04);
}

.card__thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(520px 280px at 35% 28%, rgba(255,255,255,.26), transparent 55%),
    radial-gradient(700px 420px at 70% 60%, rgba(0,210,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.28));
  opacity:.85;
}

/* 封面轻微暗角，让主体更聚焦 */
.card__thumb::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(120% 120% at 50% 40%, rgba(0,0,0,0) 45%, rgba(0,0,0,.35) 100%);
  opacity:.55;
  mix-blend-mode: multiply;
}

.card__meta{
  padding: 12px 12px 14px;
}
.card__title{
  font-weight: 650;
  letter-spacing: -.01em;
  font-size: 14px;
}
.card__sub{
  margin-top: 6px;
  color: var(--muted2);
  font-size: 12px;
  line-height:1.35;
}

/* 你要求页面不出现其他字：隐藏卡片文字，只保留封面 */
.card__meta{ display:none; }

/* 注：之前的渐变假封面主题已不再使用（已替换为本地 2:3 封面图） */

/* 尊重系统“减少动态效果” */
@media (prefers-reduced-motion: reduce) {
  .card{ transition:none; }
}


