/* ==========================================================
   Ritsuai 律合官网 · Project Tsingtao 游戏介绍页样式
   本地宋体 + 海滨蓝主题 + 全屏翻页
   ========================================================== */

@font-face {
  font-family: 'TsingtaoGameFont';
  src: url('../../assets/Tsingtao_game_font.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- 全屏翻页舞台 ---------- */
.tsingtao-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.tsingtao-viewport {
  position: relative;
  height: 100%;
}

.tsingtao-page {
  position: absolute;
  inset: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.tsingtao-page.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* 允许第四页内容超高时内部滚动 */
.tsingtao-page.tsingtao-scrollable {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ---------- Page 1 Hero ---------- */
.tsingtao-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tsingtao-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(255, 255, 255, 0.78) 55%,
    rgba(255, 255, 255, 0.35) 75%,
    rgba(255, 255, 255, 0) 92%
  );
}

.tsingtao-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 大屏时内容区随视口放大，极端宽屏仍以 1000px 封顶防止失控 */
  max-width: min(52vw, 1000px);
  padding: 0 6vw;
}

.tsingtao-hero__logo {
  /* 上限改为随视口比例，屏幕越大 logo 越大 */
  max-height: 17vh;
  max-width: min(100%, 32vw);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 20px rgba(11, 29, 51, 0.14));
  -webkit-user-drag: none;
  user-select: none;
}

.tsingtao-hero__slogan {
  /* 提高字号上限，中屏开始随 2.4vw 持续放大 */
  font-size: clamp(1.35rem, 2.4vw, 3.6rem);
  line-height: 1.4;
  color: #0b1d33;
  font-weight: 600;
  margin-bottom: 0.85rem;
  letter-spacing: 0.06em;
}

.tsingtao-hero__desc {
  font-size: clamp(0.95rem, 1.2vw, 1.6rem);
  line-height: 1.9;
  color: rgba(11, 29, 51, 0.78);
  /* 描述宽度随视口放大 */
  max-width: 40vw;
  margin-bottom: 1.25rem;
}

.tsingtao-steam {
  width: 100%;
  max-width: 48vw;
}

.tsingtao-steam iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(11, 29, 51, 0.08);
}

.tsingtao-hero__hint {
  position: absolute;
  left: 6vw;
  bottom: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(11, 29, 51, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 29, 51, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(11, 29, 51, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: tsingtao-hint-float 2.4s ease-in-out infinite;
}

.tsingtao-hero__hint:hover {
  background: #fff;
  box-shadow: 0 12px 26px rgba(11, 29, 51, 0.14);
}

.tsingtao-hero__hint i {
  animation: tsingtao-hint-arrow 1.6s ease-in-out infinite;
}

@keyframes tsingtao-hint-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes tsingtao-hint-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---------- 通用 Page 内层 ---------- */
.tsingtao-page-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 4vw 2rem;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.tsingtao-section-label {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #1e90ff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ---------- Page 2 玩法介绍 ---------- */
.tsingtao-gameplay__inner {
  gap: clamp(1.5rem, 4vw, 4rem);
}

.tsingtao-gameplay__info {
  flex: 0 0 34%;
  max-width: 480px;
  min-width: 280px;
}

.tsingtao-gameplay__title {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.3;
  color: #0b1d33;
  margin-bottom: 1rem;
  font-weight: 600;
}

.tsingtao-gameplay__desc {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.9;
  color: rgba(11, 29, 51, 0.78);
  margin-bottom: 1.25rem;
}

.tsingtao-gameplay__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tsingtao-gameplay__tags span {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid rgba(30, 144, 255, 0.25);
  color: #0b1d33;
  font-size: 0.82rem;
}

.tsingtao-gameplay__counter {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: rgba(11, 29, 51, 0.45);
}

/* 系统介绍跳转卡片（自研 AVG 系统 -> works/kkng.html） */
.tsingtao-engine-card {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #1e90ff;
  border: 1px solid rgba(30, 144, 255, 0.35);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(30, 144, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tsingtao-engine-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 144, 255, 0.26);
  background: rgba(30, 144, 255, 0.06);
}

.tsingtao-engine-card__logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.tsingtao-engine-card__text {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tsingtao-gameplay__visual {
  flex: 1 1 62%;
  max-width: 1000px;
  min-width: 0;
}

.tsingtao-screenshot-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(11, 29, 51, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.tsingtao-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  transition: opacity 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.tsingtao-shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(11, 29, 51, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #0b1d33;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(11, 29, 51, 0.12);
  z-index: 2;
}

.tsingtao-shot-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 8px 20px rgba(11, 29, 51, 0.18);
}

.tsingtao-shot-arrow--prev { left: 0.9rem; }
.tsingtao-shot-arrow--next { right: 0.9rem; }

.tsingtao-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.tsingtao-thumb {
  width: 92px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(11, 29, 51, 0.14);
  background: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tsingtao-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.tsingtao-thumb.is-active {
  opacity: 1;
  border-color: #1e90ff;
  box-shadow: 0 6px 16px rgba(30, 144, 255, 0.28);
}

.tsingtao-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Page 3 角色介绍 ---------- */
.tsingtao-characters__inner {
  gap: clamp(2rem, 5vw, 5rem);
}

.tsingtao-character__portrait {
  flex: 0 0 auto;
  height: 82vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tsingtao-character__portrait img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  filter: drop-shadow(0 20px 36px rgba(11, 29, 51, 0.18));
}

.tsingtao-character__info {
  flex: 0 0 44%;
  max-width: 520px;
}

.tsingtao-character__heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 1.25rem;
}

.tsingtao-character__card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 144, 255, 0.16);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 14px 36px rgba(11, 29, 51, 0.08);
}

.tsingtao-character__name {
  font-size: 1.9rem;
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 0.25rem;
}

.tsingtao-character__meta {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #1e90ff;
  margin-bottom: 1rem;
}

.tsingtao-character__desc {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(11, 29, 51, 0.78);
}

.tsingtao-character__more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.tsingtao-character__more-item {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(11, 29, 51, 0.18);
  color: rgba(11, 29, 51, 0.5);
  font-size: 0.85rem;
}

/* ---------- Page 4 更多内容 + Footer ---------- */
.tsingtao-more__inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 6vw 0;
  text-align: center;
}

.tsingtao-more__inner #site-footer {
  margin-top: auto;
  /* 拉伸到父容器内容区宽度，并用负 margin 抵消 .tsingtao-more__inner 的左右 padding，实现左右贴边 */
  align-self: stretch;
  width: auto;
  margin-left: -6vw;
  margin-right: -6vw;
  /* 页脚字体与全站一致（Poppins），不继承本页 serif */
  font-family: 'Poppins', sans-serif;
  /* 覆盖 .tsingtao-more__inner 的 text-align: center，保持与全站页脚一致的左对齐 */
  text-align: left;
}
.tsingtao-more__heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 1.5rem;
}

.tsingtao-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.tsingtao-more__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(30, 144, 255, 0.16);
  box-shadow: 0 12px 30px rgba(11, 29, 51, 0.08);
  color: #0b1d33;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsingtao-more__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 29, 51, 0.12);
}

.tsingtao-more__card i {
  font-size: 1.6rem;
  color: #1e90ff;
}

.tsingtao-more__card span {
  font-weight: 600;
  font-size: 1rem;
}

.tsingtao-more__card small {
  color: rgba(11, 29, 51, 0.55);
  font-size: 0.8rem;
}

.tsingtao-more__steam {
  width: 100%;
  max-width: 646px;
  margin: 0 auto 1.25rem;
}

.tsingtao-more__steam iframe {
  display: block;
  width: 100%;
  max-width: 646px;
  height: 190px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.tsingtao-more__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e90ff, #38b6ff);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(30, 144, 255, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin: 0 auto 1.25rem;
}

.tsingtao-more__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30, 144, 255, 0.4);
  filter: brightness(1.05);
}

.tsingtao-more__cta i {
  font-size: 1.1rem;
}
.tsingtao-more__note {
  font-size: 0.85rem;
  color: rgba(11, 29, 51, 0.5);
  margin-bottom: 1.5rem;
}

/* ---------- 右侧导航 ---------- */
.tsingtao-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 80;
}

.tsingtao-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(11, 29, 51, 0.35);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tsingtao-dot:hover {
  transform: scale(1.2);
}

.tsingtao-dot.is-active {
  background: #1e90ff;
  border-color: #1e90ff;
  transform: scale(1.3);
}

/* 本页为全屏翻页，隐藏全站注入的“回到顶部”按钮 */
.back-to-top {
  display: none !important;
}

/* ---------- 横屏检测遮罩 ---------- */
.rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0b1d33 0%, #123b5e 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.rotate-overlay__inner {
  max-width: 360px;
}

.rotate-overlay__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #38b6ff;
}

.rotate-overlay__icon .fa-repeat {
  font-size: 1.6rem;
  margin-left: 0.5rem;
}

.rotate-overlay__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rotate-overlay__desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

@media (max-width: 1024px) and (orientation: portrait) {
  .rotate-overlay {
    display: flex;
  }

  .tsingtao-stage,
  #site-header,
  #site-loader {
    display: none !important;
  }
}

/* ---------- 小屏 / 横屏手机适配 ---------- */
@media (max-width: 1024px) and (orientation: landscape) {
  .tsingtao-hero__logo {
    max-height: 120px;
    margin-bottom: 1rem;
  }

  .tsingtao-hero__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
  }

  .tsingtao-steam iframe,
  .tsingtao-more__steam iframe {
    height: 150px;
  }

  .tsingtao-page-inner {
    padding-top: 3.5rem;
    padding-bottom: 1.25rem;
    gap: 1rem;
  }

  .tsingtao-gameplay__title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
  }

  .tsingtao-gameplay__desc {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
  }

  .tsingtao-thumb {
    width: 64px;
  }

  .tsingtao-screenshot-frame img {
    max-height: 58vh;
  }

  .tsingtao-character__portrait {
    height: 78vh;
  }

  .tsingtao-character__heading {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .tsingtao-character__card {
    padding: 1rem 1.25rem;
  }

  .tsingtao-character__name {
    font-size: 1.4rem;
  }

  .tsingtao-character__desc {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .tsingtao-more__inner {
    padding-top: 4rem;
    padding-bottom: 1.5rem;
  }

  .tsingtao-more__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }

  .tsingtao-more__card {
    padding: 0.9rem 0.6rem;
  }

  .tsingtao-more__card i {
    font-size: 1.2rem;
  }

  .tsingtao-more__card span {
    font-size: 0.85rem;
  }

  .tsingtao-more__card small {
    font-size: 0.7rem;
  }

  .tsingtao-more__steam iframe {
    height: 150px;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .tsingtao-hero__content {
    padding: 0 4vw;
  }

  .tsingtao-hero__logo {
    max-height: 88px;
  }

  .tsingtao-hero__slogan {
    font-size: 1.1rem;
  }

  .tsingtao-hero__desc {
    font-size: 0.8rem;
    max-width: 380px;
  }

  .tsingtao-steam iframe,
  .tsingtao-more__steam iframe {
    height: 120px;
  }

  .tsingtao-gameplay__inner,
  .tsingtao-characters__inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .tsingtao-gameplay__info {
    flex: none;
    max-width: 100%;
    min-width: 0;
    text-align: center;
  }

  .tsingtao-gameplay__title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .tsingtao-gameplay__desc {
    font-size: 0.78rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }

  .tsingtao-gameplay__tags span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }

  .tsingtao-gameplay__counter {
    margin-top: 0.5rem;
    font-size: 0.75rem;
  }

  .tsingtao-gameplay__visual {
    flex: none;
    max-width: 100%;
  }

  .tsingtao-screenshot-frame img {
    max-height: 42vh;
  }

  .tsingtao-shot-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .tsingtao-thumbs {
    gap: 0.3rem;
    margin-top: 0.5rem;
  }

  .tsingtao-thumb {
    width: 48px;
  }

  .tsingtao-character__portrait {
    height: 44vh;
  }

  .tsingtao-character__info {
    flex: none;
    max-width: 100%;
    text-align: center;
  }

  .tsingtao-character__card {
    text-align: left;
  }

  .tsingtao-character__more {
    justify-content: center;
  }

  .tsingtao-more__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .tsingtao-more__card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.7rem 0.9rem;
  }

  .tsingtao-more__card i {
    font-size: 1.1rem;
    width: 1.4rem;
    text-align: center;
  }

  .tsingtao-more__steam {
    margin-bottom: 0.6rem;
  }
}

/* ---------- Page 2 文字切换动画 ---------- */
.tsingtao-gameplay__info.tsingtao-text-switch .tsingtao-section-label,
.tsingtao-gameplay__info.tsingtao-text-switch .tsingtao-gameplay__title,
.tsingtao-gameplay__info.tsingtao-text-switch .tsingtao-gameplay__desc,
.tsingtao-gameplay__info.tsingtao-text-switch .tsingtao-gameplay__tags,
.tsingtao-gameplay__info.tsingtao-text-switch .tsingtao-gameplay__counter,
.tsingtao-gameplay__info.tsingtao-text-switch .tsingtao-engine-card {
  animation: tsingtao-text-in 0.4s ease both;
}

@keyframes tsingtao-text-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}