/* ==========================================================
   Project Tsingtao · 移动端独立版本
   仅作用于 #mobile-version，不干扰桌面端
   ========================================================== */

#mobile-version {
  display: none;
}

/* ---------- 手机横屏：显示移动版，隐藏桌面版 ---------- */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 520px) {
  #mobile-version {
    display: block !important;
  }

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

  /* 复用全站 header，但手机横屏下缩小，保持模板的 logo/字体/坐标风格 */
  #navbar .container {
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
  }

  #navbar img {
    height: 30px !important;
    width: auto !important;
  }

  #navbar nav .nav-link {
    font-size: 0.72rem !important;
    letter-spacing: 0.06em !important;
  }

  #navbar nav > * + * {
    margin-left: 0.9rem !important;
  }
}

/* ---------- 手机竖屏：仍显示横屏提示遮罩 ---------- */
@media (max-width: 1024px) and (orientation: portrait) {
  #mobile-version {
    display: none !important;
  }
}

.tsm-root {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background: #eaf6ff;
  color: #0b1d33;
  font-family: 'TsingtaoGameFont', 'SimSun', 'NSimSun', 'Songti SC', 'Noto Serif CJK SC', serif;
}

.tsm-header {
  display: none !important;
}

.tsm-header img {
  height: 30px;
  width: auto;
}

.tsm-header__nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tsm-header__nav a {
  font-size: 0.58rem;
  color: #0b1d33;
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.tsm-header__nav a:hover {
  opacity: 1;
  color: #1e90ff;
}

/* ---------- 全屏翻页 ---------- */
.tsm-viewport {
  height: 100%;
}

.tsm-page {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.tsm-page.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tsm-page-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.99rem;
  padding: 3.6rem 3.2vw 0.8rem;
}

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

/* ---------- Page 1 ---------- */
.tsm-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.tsm-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.88) 32%, rgba(255,255,255,0.4) 62%, rgba(255,255,255,0) 85%);
}

.tsm-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 52%;
  padding: 3.6rem 0 0.8rem 8vw;
}

.tsm-hero__logo {
  max-height: 68px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.54rem;
  margin-left: 2.4rem;
  margin-right: auto;
  align-self: flex-start;
}

.tsm-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
  max-width: 100%;
}
.tsm-hero__slogan {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 0.35rem;
}

.tsm-hero__desc {
  font-size: 0.58rem;
  line-height: 1.5;
  color: rgba(11, 29, 51, 0.75);
  margin-bottom: 0.54rem;
  max-width: 292px;
}

.tsm-steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: #1b2838;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11, 29, 51, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
  width: fit-content;
  align-self: flex-end;
}

.tsm-steam-btn:hover {
  background: #2a475e;
  transform: translateY(-1px);
}

.tsm-steam-btn i {
  font-size: 1rem;
  color: #66c0f4;
}

.tsm-steam-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.tsm-steam-btn__text small {
  font-size: 0.47rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.tsm-steam-btn__text strong {
  font-size: 0.65rem;
}

.tsm-hero__hint {
  position: absolute;
  left: 8vw;
  bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.27rem 0.58rem;
  border: 1px solid rgba(11, 29, 51, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: rgba(11, 29, 51, 0.7);
  font-size: 0.55rem;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Page 2 ---------- */
.tsm-gameplay__info {
  flex: 0 0 40%;
  max-width: 292px;
  min-width: 0;
}

.tsm-gameplay__title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 0.4rem;
}

.tsm-gameplay__desc {
  font-size: 0.57rem;
  line-height: 1.55;
  color: rgba(11, 29, 51, 0.75);
  margin-bottom: 0.5rem;
}

.tsm-gameplay__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

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

.tsm-gameplay__counter {
  margin-top: 0.4rem;
  font-size: 0.57rem;
  color: rgba(11, 29, 51, 0.5);
  letter-spacing: 0.14em;
}

.tsm-engine-card {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  margin-top: 0.4rem;
  padding: 0.32rem 0.54rem;
  border-radius: 999px;
  background: #fff;
  color: #1e90ff;
  border: 1px solid rgba(30, 144, 255, 0.35);
  text-decoration: none;
  font-size: 0.55rem;
  box-shadow: 0 6px 14px rgba(30, 144, 255, 0.14);
}

.tsm-engine-card__logo {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.tsm-gameplay__visual {
  flex: 0 0 54%;
  max-width: 373px;
  min-width: 0;
}

.tsm-screenshot-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(11, 29, 51, 0.14);
}

.tsm-screenshot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.tsm-shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(11, 29, 51, 0.12);
  background: rgba(255,255,255,0.8);
  color: #0b1d33;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.tsm-shot-arrow--prev { left: 0.5rem; }
.tsm-shot-arrow--next { right: 0.5rem; }

.tsm-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.24rem;
  margin-top: 0.4rem;
}

.tsm-thumb {
  width: 39px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(11, 29, 51, 0.12);
  padding: 0;
  background: #fff;
  cursor: pointer;
  opacity: 0.6;
}

.tsm-thumb.is-active {
  opacity: 1;
  border-color: #1e90ff;
}

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

/* ---------- Page 3 ---------- */
.tsm-character__portrait {
  flex: 0 0 auto;
  height: 52vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tsm-character__portrait img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.tsm-character__info {
  flex: 0 0 46%;
  max-width: 340px;
}

.tsm-character__heading {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 0.54rem;
}

.tsm-character__card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 144, 255, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1.04rem;
}

.tsm-character__name {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0b1d33;
}

.tsm-character__meta {
  font-size: 0.65rem;
  color: #1e90ff;
  margin-bottom: 0.5rem;
}

.tsm-character__desc {
  font-size: 0.67rem;
  line-height: 1.55;
  color: rgba(11, 29, 51, 0.75);
}

/* ---------- Page 4 ---------- */
.tsm-more {
  overflow-y: auto;
}

.tsm-more__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.6rem 4vw 0.8rem;
  text-align: center;
}

.tsm-more__heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 0.8rem;
}

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

.tsm-more__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.49rem 0.32rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(30, 144, 255, 0.16);
  color: #0b1d33;
  text-decoration: none;
  font-size: 0.57rem;
}

.tsm-more__card i {
  font-size: 0.8rem;
  color: #1e90ff;
}

.tsm-more__note {
  font-size: 0.5rem;
  color: rgba(11, 29, 51, 0.5);
  margin-bottom: 0.54rem;
}

.tsm-footer {
  width: 100%;
  max-width: 480px;
  border-top: 1px solid rgba(11, 29, 51, 0.12);
  padding-top: 0.7rem;
  margin-top: auto;
}

.tsm-footer__brand {
  font-size: 0.69rem;
  font-weight: 600;
  color: #0b1d33;
  margin-bottom: 0.25rem;
}

.tsm-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.55rem;
  margin-bottom: 0.25rem;
}

.tsm-footer__links a {
  color: rgba(11, 29, 51, 0.7);
  text-decoration: none;
}

.tsm-footer__copy {
  font-size: 0.54rem;
  color: rgba(11, 29, 51, 0.45);
}

/* ---------- 圆点导航 ---------- */
.tsm-dots {
  position: fixed;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 90;
}

.tsm-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(11, 29, 51, 0.35);
  background: transparent;
  cursor: pointer;
}

.tsm-dot.is-active {
  background: #1e90ff;
  border-color: #1e90ff;
}

.tsm-counter {
  position: fixed;
  right: 0.85rem;
  bottom: 0.7rem;
  font-size: 0.5rem;
  color: rgba(11, 29, 51, 0.5);
  letter-spacing: 0.12em;
  z-index: 90;
}

/* ---------- 移动端 Page2 文字切换动效（与桌面版一致） ---------- */
.tsm-gameplay__info.tsm-text-switch .tsm-section-label,
.tsm-gameplay__info.tsm-text-switch .tsm-gameplay__title,
.tsm-gameplay__info.tsm-text-switch .tsm-gameplay__desc,
.tsm-gameplay__info.tsm-text-switch .tsm-gameplay__tags,
.tsm-gameplay__info.tsm-text-switch .tsm-gameplay__counter,
.tsm-gameplay__info.tsm-text-switch .tsm-engine-card {
  animation: tsm-text-in 0.4s ease both;
}

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