/* =========================================================
   门户封面页 · 样式(封面嵌入背景 + 内容压在下层)
   ========================================================= */
:root {
  --p-bg: #03110c;
  --p-green: #2fd39a;
  --p-gold: #f7c948;
  --p-line: rgba(255, 255, 255, 0.10);
  --p-text: #eef7f2;
  --p-muted: #a6b8b2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.portal {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  background: var(--p-bg);
  color: var(--p-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 嵌入背景:封面铺满页面 ---------- */
.portal-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 10%, #0c4432 0%, #062018 55%, #03100b 100%);
}
.portal-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  /* 不再虚化,让画面保持清晰;只做很轻的压暗,保证文字可读 */
  filter: brightness(0.92) saturate(1.06) contrast(1.04);
}

/* 遮罩:上轻下重 —— 上方保留封面标题,下方为文字提供对比度 */
.portal-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(72% 54% at 50% 24%, rgba(3, 17, 12, 0.10) 0%, rgba(3, 17, 12, 0.46) 62%, rgba(3, 14, 10, 0.80) 100%),
    linear-gradient(180deg,
      rgba(3, 17, 12, 0.52) 0%,
      rgba(3, 17, 12, 0.30) 24%,
      rgba(3, 14, 10, 0.60) 50%,
      rgba(3, 14, 10, 0.88) 72%,
      rgba(2, 12, 9, 0.98) 100%);
}

/* ---------- 内容层:压在封面之上,底部对齐 ---------- */
.portal-main {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center;
}
.portal-content {
  width: 100%; max-width: 1000px;
  padding: 0 22px clamp(26px, 5vh, 56px);
  text-align: center;
}

.portal-sub {
  max-width: 720px; margin: 8px auto 4px;
  font-size: clamp(12.5px, 1.45vw, 15px); color: #cfe9df;
  text-shadow: 0 2px 16px rgba(0, 10, 7, 0.95), 0 0 2px rgba(0, 10, 7, 0.9);
}

/* 门户标题(背景图只有英文 logo,这里保留一版紧凑中文标题) */
.portal-kicker {
  font-size: 12px; letter-spacing: 4px; font-weight: 700;
  color: var(--p-gold); margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 8, 5, 0.95);
}
.portal-title {
  font-size: clamp(26px, 4.6vw, 52px); line-height: 1.12; font-weight: 900; letter-spacing: 2px;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.88), 0 0 3px rgba(0, 0, 0, 0.85);
}
.portal-title span {
  display: block; margin-top: 2px;
  background: linear-gradient(120deg, #2fd39a 8%, #8dffd0 42%, var(--p-gold) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 倒计时 ---------- */
.countdown {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 18px 0 4px;
}
.cd-item {
  min-width: 78px; padding: 10px 14px; border-radius: 12px;
  background: rgba(4, 22, 17, 0.62); border: 1px solid rgba(47, 211, 154, 0.32);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 12, 8, 0.45);
}
.cd-item b { display: block; font-size: clamp(20px, 3vw, 28px); font-weight: 900; color: #eafff5; line-height: 1.1; }
.cd-item span { font-size: 11.5px; color: var(--p-muted); }
.cd-label { font-size: 12.5px; color: #b9cec7; padding-bottom: 8px; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0, 10, 7, 0.9); }

/* ---------- 三个入口 ---------- */
.portal-choices {
  display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px; width: 100%; margin-top: 24px;
}

.choice {
  position: relative; overflow: hidden; text-decoration: none; color: var(--p-text);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 26px 24px 22px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(7, 32, 25, 0.86), rgba(3, 15, 11, 0.90));
  border: 1px solid rgba(47, 211, 154, 0.26);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 12, 8, 0.45);
}
.choice::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--p-green), var(--p-gold)); opacity: 0.95;
}
.choice-board::after { background: linear-gradient(90deg, #39d5d0, #2fd39a); }
.choice:hover { transform: translateY(-6px); border-color: rgba(47, 211, 154, 0.66); box-shadow: 0 22px 54px rgba(0, 20, 14, 0.7); }
.choice-board:hover { border-color: rgba(57, 213, 208, 0.66); }

.choice-rank {
  position: absolute; right: 22px; top: 16px;
  font-family: "Segoe UI", sans-serif; font-size: 38px; font-weight: 900;
  color: rgba(141, 255, 208, 0.12); line-height: 1;
}
.choice-icon { font-size: 26px; margin-bottom: 8px; }
.choice-title { font-size: clamp(20px, 2.4vw, 25px); font-weight: 900; letter-spacing: 1px; }
.choice-desc { margin-top: 9px; font-size: 13px; color: var(--p-muted); line-height: 1.8; }
.choice-go {
  margin-top: 15px; font-size: 14px; font-weight: 800; color: #8dffd0;
  border-bottom: 1px solid rgba(141, 255, 208, 0.45); padding-bottom: 3px;
}
.choice-board .choice-go { color: #7ff0ff; border-bottom-color: rgba(127, 240, 255, 0.45); }

.portal-foot {
  margin-top: 30px; font-size: 11.5px; color: #8ba69d; line-height: 1.9; max-width: 760px;
  margin-left: auto; margin-right: auto;
  text-shadow: 0 2px 12px rgba(0, 10, 7, 0.9);
}

/* ---------- 预告片播放区 ---------- */
.trailer-box {
  width: 100%; max-width: 900px; margin: 28px auto 0;
  background: linear-gradient(160deg, rgba(7, 32, 25, 0.88), rgba(3, 15, 11, 0.92));
  border: 1px solid rgba(47, 211, 154, 0.24); border-radius: 18px;
  padding: 18px 18px 16px; backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(0, 12, 8, 0.5);
  text-align: left;
}
.trailer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.trailer-title { font-size: 17px; font-weight: 900; letter-spacing: 1px; }
.trailer-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(47, 211, 154, 0.16); border: 1px solid rgba(47, 211, 154, 0.4); color: #8dffd0;
}
.trailer-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden;
  background: #04100b; border: 1px solid rgba(255, 255, 255, 0.08);
}
.trailer-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(47, 211, 154, 0.16) 0%, rgba(4, 16, 11, 0) 70%),
    linear-gradient(160deg, #0a2a20, #04100b);
  border: 0; color: #eafff5; font-family: inherit;
}
.trailer-icon {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; padding-left: 5px;
  background: rgba(226, 54, 54, 0.92); font-size: 26px; color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(226, 54, 54, 0.16);
  transition: transform 0.2s ease;
}
.trailer-poster:hover .trailer-icon { transform: scale(1.08); }
.trailer-label { font-size: 15.5px; font-weight: 800; }
.trailer-src { font-size: 11.5px; color: #7fa79a; }
.trailer-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-note { margin-top: 10px; font-size: 11.5px; color: #7f9a90; line-height: 1.8; }

/* 多支预告的切换按钮 */
.trailer-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.trailer-pick {
  flex: 1 1 260px; text-align: left; cursor: pointer;
  background: rgba(6, 22, 17, 0.72); border: 1px solid rgba(47, 211, 154, 0.22);
  border-radius: 12px; padding: 10px 13px; color: #d8efe6; font-family: inherit;
  display: flex; flex-direction: column; gap: 3px; transition: 0.18s;
}
.trailer-pick:hover { border-color: rgba(47, 211, 154, 0.6); transform: translateY(-1px); }
.trailer-pick.active { border-color: var(--p-gold); background: rgba(247, 201, 72, 0.10); }
.tp-num { font-size: 11px; letter-spacing: 1px; color: var(--p-gold); }
.tp-title { font-size: 13px; font-weight: 700; color: #eafff5; line-height: 1.5; }
.tp-from { font-size: 10.5px; color: #7fa79a; }

@media (max-width: 820px) {
  .trailer-box { padding: 14px 14px 12px; border-radius: 15px; margin-top: 22px; }
  .trailer-icon { width: 60px; height: 60px; font-size: 22px; }
  .trailer-label { font-size: 13.5px; padding: 0 10px; text-align: center; }
}

/* ---------- 响应式:手机改为「封面在上、内容紧随其后」的嵌入排布 ---------- */
@media (max-width: 820px) {
  /* 手机:海报完整可见(4:5 海报与手机竖屏比例不同,用 contain 才不会把人物裁掉),
     海报边缘本身是深色,所以看起来依然是满屏的;底部渐隐融进深色背景 */
  .portal-cover {
    object-fit: contain; object-position: center top;
    filter: brightness(0.96) saturate(1.06) contrast(1.04);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 72%, rgba(0,0,0,0.45) 88%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 72%, rgba(0,0,0,0.45) 88%, rgba(0,0,0,0) 100%);
  }
  .portal-main { min-height: 100vh; justify-content: flex-start; }
  /* 内容从海报下沿开始(海报高 = 宽度 × 1.25);横屏平板等超矮屏幕用 78vh 兜底,避免要滚很久 */
  .portal-content { padding: min(calc(100vw * 1.25 + 16px), 78vh) 16px 34px; }
  .portal-choices { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .choice { padding: 20px 18px 18px; border-radius: 15px; }
  .countdown { gap: 8px; margin: 14px 0 2px; }
  .cd-item { min-width: 64px; padding: 8px 10px; }
  .cd-label { width: 100%; text-align: center; padding-bottom: 0; }
  .portal-foot { margin-top: 22px; }
}

@media (max-height: 640px) and (min-width: 821px) {
  .portal-content { padding-bottom: 20px; }
  .countdown { margin: 10px 0 2px; }
  .portal-choices { margin-top: 14px; }
  .choice-desc { display: none; }
}
