/* ============================================
   TT游戏加速器 - 仿 www.52tt.com 真实风格
   深紫黑背景 #140f26 + 阿里普惠体 + 青蓝强调
   ============================================ */

/* ===== 口令推广弹窗 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-mask.show {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  position: relative;
  width: 400px;
  max-width: 90vw;
  background: linear-gradient(160deg, #1a1330 0%, #140f26 100%);
  border: 1px solid rgba(10, 194, 255, 0.3);
  border-radius: 20px;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(10, 194, 255, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.modal-mask.show .modal-box {
  transform: scale(1) translateY(0);
}
.modal-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(10, 194, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 2;
}
.modal-close:hover { color: #fff; }
.modal-content { position: relative; z-index: 1; }
.modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.modal-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #0ac2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-tip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.modal-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 20px;
  padding: 14px 20px;
  background: rgba(10, 194, 255, 0.1);
  border: 1px dashed rgba(10, 194, 255, 0.5);
  border-radius: 12px;
  max-width: 260px;
}
.modal-code span {
  font-size: 24px;
  font-weight: 800;
  color: #0ac2ff;
  letter-spacing: 2px;
  font-family: 'AlibabaPuHuiTi', monospace;
}
.copy-btn {
  padding: 4px 12px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, #FF6A00, #FF3D00);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.copy-btn:hover { transform: scale(1.05); }
.copy-btn.copied {
  background: linear-gradient(135deg, #10B981, #059669);
}
.modal-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #FF6A00, #FF3D00);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px -6px rgba(255, 106, 0, 0.5);
  transition: all 0.25s ease;
  margin-bottom: 12px;
}
.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255, 106, 0, 0.6);
}
.modal-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== 礼包悬浮按钮（左下角） ===== */
.gift-fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FF6A00, #FF3D00);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(255, 106, 0, 0.5);
  transition: all 0.3s ease;
  animation: fabIn 0.5s ease 1s both, fabBounce 2s ease-in-out 1.5s infinite;
}
.gift-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px -6px rgba(255, 106, 0, 0.6);
}
@keyframes fabIn {
  from { opacity: 0; transform: scale(0.3) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fabBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.gift-fab-icon {
  font-size: 28px;
  line-height: 1;
  animation: shake 3s ease-in-out infinite;
}
@keyframes shake {
  0%, 70%, 100% { transform: rotate(0deg); }
  75% { transform: rotate(-12deg); }
  80% { transform: rotate(12deg); }
  85% { transform: rotate(-8deg); }
  90% { transform: rotate(8deg); }
  95% { transform: rotate(0deg); }
}
.gift-fab-text {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}
.gift-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 106, 0, 0.5);
  animation: fabPulse 2s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.gift-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.3);
  transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
body {
  min-width: auto;
  font-family: 'AlibabaPuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #140f26;
  color: #fff;
  overflow-x: hidden;
}

/* ===== 顶部导航（原站：固定/白色/青蓝下划线） ===== */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 55px 27px 85px;
  z-index: 999;
  background: rgba(20, 15, 38, 0.85);
  backdrop-filter: blur(12px);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
}
.nav li {
  position: relative;
  margin-right: 40px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.nav li:last-child { margin-right: 0; }
.nav li a { color: #fff; }
.nav li::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 15px;
  height: 2px;
  background: #0ac2ff;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.15s ease-in-out;
}
.nav li:hover::after,
.nav .nav-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== 首屏 Banner（原站：深色 + 左图右文 + 大标题） ===== */
.index-page {
  background: #140f26;
  background-image: url('https://ga-album-cdnqn.52tt.com/web/tt-desktop-fast-official/20260205163623_47553084.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  min-height: 100vh;
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
}
.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 50px;
}
.carousel-item-left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1.8;
  min-width: 0;
  padding-left: 80px;
}
.carousel-item-left .hero-img {
  width: 100%;
  max-width: 11200px;
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  animation: floatImg 6s ease-in-out infinite;
}
@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.carousel-item-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 60px;
  min-width: 0;
}
.right-title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.15;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #0ac2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(70px);
  transition: all 0.7s;
  white-space: nowrap;
}
.right-title.in-visible { transform: translateY(0); }
.right-desc {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  margin-top: 18px;
  transform: translateY(50px);
  transition: all 0.9s;
  white-space: nowrap;
}
.right-desc.in-visible { transform: translateY(0); }
.right-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 95%;
}

/* 下载按钮 */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #FF6A00, #FF3D00);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(255, 106, 0, 0.5);
  transition: all 0.3s ease;
  max-width: max-content;
}
.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(255, 106, 0, 0.6);
}
.dl-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.dl-text small {
  font-size: 12px;
  opacity: 0.85;
}
.dl-text strong {
  font-size: 20px;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-tags span {
  padding: 6px 16px;
  font-size: 13px;
  color: #0ac2ff;
  background: rgba(10, 194, 255, 0.1);
  border: 1px solid rgba(10, 194, 255, 0.3);
  border-radius: 100px;
}

/* ===== 通用 Section 标题 ===== */
.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-sub {
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 60px;
}

/* ===== 功能区 ===== */
.features-section {
  padding: 100px 85px;
  background: #140f26;
}
.features-section .section-title { margin-bottom: 60px; }
.features-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(10, 194, 255, 0.3);
  box-shadow: 0 20px 50px -20px rgba(10, 194, 255, 0.2);
}
.fc-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ===== 游戏区 ===== */
.games-section {
  padding: 100px 85px;
  background: #0f0b1f;
}
.games-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.game-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(10, 194, 255, 0.3);
}
.gc-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.gc-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.gi-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.gi-tag.hot { background: rgba(255, 106, 0, 0.2); color: #FF8533; }
.gi-tag.new { background: rgba(16, 185, 129, 0.2); color: #34D399; }

/* ===== 下载区 ===== */
.download-section {
  padding: 100px 85px;
  background: #140f26;
}
.download-card {
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  transition: all 0.35s ease;
}
.download-card:hover {
  border-color: rgba(10, 194, 255, 0.3);
  box-shadow: 0 20px 50px -20px rgba(10, 194, 255, 0.2);
}
.dc-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 194, 255, 0.1);
  color: #0ac2ff;
  border-radius: 50%;
}
.download-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.download-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
}
.dl-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: linear-gradient(135deg, #FF6A00, #FF3D00);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px -6px rgba(255, 106, 0, 0.5);
  transition: all 0.25s ease;
}
.dl-big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(255, 106, 0, 0.6);
}

/* ===== 页脚（原站深色风，仅备案号） ===== */
.page-copyright {
  background: #0a0716;
  padding: 40px 85px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}
.footer-info {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #a9a9a9;
  font-size: 14px;
}
.footer-info > div {
  margin-bottom: 10px;
  line-height: 1.8;
}
.footer-info a {
  cursor: pointer;
  margin: 0 8px;
  color: #a9a9a9;
  transition: color 0.2s ease;
}
.footer-info a:hover {
  color: #0ac2ff;
  text-decoration: underline;
}
.disclaimer {
  margin-top: 14px !important;
  font-style: italic;
  color: #666 !important;
  font-size: 12px !important;
}

/* ===== 滚动显现 ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 手机端自适应（≤768px） ===== */
@media (max-width: 768px) {
  /* 首屏高度自适应 */
  .index-page {
    min-height: auto;
    padding: 90px 0 40px;
  }
  /* 首屏改为上下布局 */
  .carousel-item {
    flex-direction: column;
    padding: 0 20px;
    gap: 24px;
  }
  .carousel-item-left {
    padding-left: 0;
    width: 100%;
  }
  .carousel-item-left .hero-img {
    max-width: 100%;
  }
  .carousel-item-right {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  .right-title {
    font-size: 32px;
    white-space: normal;
  }
  .right-desc {
    font-size: 18px;
    white-space: normal;
  }
  /* 导航栏简化 */
  .page-header {
    padding: 14px 16px;
  }
  .logo-text {
    font-size: 16px;
  }
  .logo-img {
    height: 32px;
    width: 32px;
  }
  .nav {
    gap: 4px;
  }
  .nav li {
    margin-right: 12px;
    font-size: 13px;
  }
  /* 功能卡改为单列 */
  .features-section,
  .games-section,
  .download-section {
    padding: 50px 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 26px;
  }
  .section-sub {
    font-size: 14px;
  }
  /* 游戏卡改为3列 */
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .game-card {
    padding: 14px 8px;
  }
  .gc-icon {
    width: 48px;
    height: 48px;
    font-size: 12px;
  }
  /* 下载卡适配 */
  .download-card {
    padding: 32px 20px;
  }
  /* 弹窗适配 */
  .modal-box {
    width: 90%;
    padding: 32px 20px 24px;
  }
  .modal-title {
    font-size: 22px;
  }
  .modal-code span {
    font-size: 20px;
  }
  /* 礼包按钮手机适配 */
  .gift-fab {
    bottom: 20px;
    left: 16px;
    width: 64px;
    height: 64px;
  }
  .gift-fab-icon {
    font-size: 22px;
  }
  .gift-fab-text {
    font-size: 9px;
  }
}
