/* tongits-responsive.css */

/* 全局基础 */
:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #e6f2ff;
  color: #0f172a;
}

/* 页面整体容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
}

/* PC / Mobile 切换 */
.header.webPc {
  display: block;
}
.webMobile {
  display: none;
}

@media (max-width: 1024px) {
  .header.webPc {
    display: none;
  }
  .webMobile {
    display: block;
  }
}

/* 顶部导航 */
.nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 14px;
}

.nav-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-content-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-content-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Tongits Nova 标题 */
.nav-title {
  position: relative;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0ea5e9;
  text-shadow:
    0 1px 0 #ffffff,
    0 2px 0 #bae6fd,
    0 3px 2px rgba(15, 23, 42, 0.4);
  padding-bottom: 4px;
}

.nav-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #f97316, #0ea5e9);
  opacity: 0.9;
}

.nav-content-list {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.nav-content-list-item a {
  position: relative;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
}

.nav-content-list-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  transition: width 0.18s ease-out;
}

.nav-content-list-item a:hover::after {
  width: 100%;
}

/* 语言切换按钮 */
.nav-lang {
  display: flex;
  gap: 6px;
}

.lang-btn {
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(248, 250, 252, 0.9);
  font-size: 12px;
  cursor: pointer;
  color: #374151;
  transition: background-color 0.15s ease-out, color 0.15s ease-out,
    box-shadow 0.15s ease-out;
  font-weight: 700;
}

.lang-btn.active {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.55);
  border-color: transparent;
}

@media (max-width: 640px) {
  .nav {
    border-radius: 10px;
  }

  .nav-content {
    padding-inline: 10px;
    gap: 8px;
  }

  .nav-content-list {
    gap: 12px;
  }

  .nav-content-list-item a {
    font-size: 13px;
  }

  .nav-content-logo img {
    height: 32px;
  }
}

/* PC 顶部 banner */
.header.webPc .banner {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.5),
    0 0 0 1px rgba(15, 23, 42, 0.4);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: center;
}

/* 轮播 */
.banner-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #e6f2ff;
  height: 260px;
}

@media (max-width: 900px) {
  .banner-carousel {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .banner-carousel {
    height: 200px;
  }
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #f9fafb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.6);
  transition: opacity 0.15s ease-out, transform 0.12s ease-out;
}

.banner-arrow:hover {
  opacity: 0.96;
  transform: translateY(-50%) translateY(-1px);
}

.banner-arrow-prev {
  left: 10px;
}
.banner-arrow-next {
  right: 10px;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-bottom: 2px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.8);
  cursor: pointer;
  padding: 0;
}

.banner-dot.is-active {
  width: 16px;
  background: #f9fafb;
}

/* PC 下载区域 */
.banner-down {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #e5e7eb;
}

.banner-down-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner-down-text {
  margin: 0;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.8)
  );
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.7);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.banner-down-text span {
  color: #f9fafb;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.95);
}

.banner-down-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner-down-btn {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: none;
  transition: opacity 0.12s ease-out;
}

.banner-down-btn img {
  display: block;
  height: 48px;
  width: auto;
}

.banner-down-btn:hover {
  opacity: 0.9;
}

.banner-down-ip img {
  display: block;
  height: 260px;
  width: auto;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
}

@media (max-width: 900px) {
  .header.webPc .banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner-down {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-down-ip img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .banner-down-ip img {
    height: 200px;
  }
}

/* PC 下半部分内容 */
.pc-content {
  margin-top: 18px;
}
.pc-section-header {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.85), rgba(219, 234, 254, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}
.pc-section-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}
.pc-section-sub {
  margin: 0;
  font-size: 13px;
  color: #1f2937;
  font-weight: 600;
}
.pc-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.pc-content-card {
  border-radius: 18px;
  overflow: hidden;
  background: #e6f2ff;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(148, 163, 184, 0.26);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.7);
}
.pc-content-img img {
  display: block;
  width: 100%;
  height: auto;
}
.pc-content-text {
  padding: 10px 12px 12px;
  font-size: 13px;
  position: relative;
}
.pc-content-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
}
.pc-content-text > div {
  margin-left: 10px;
}
.pc-content-text h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.pc-content-lead {
  margin: 0 0 6px;
  color: #1f2937;
  font-weight: 700;
}
.pc-content-list {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}
.pc-content-list li {
  margin: 3px 0;
  color: #374151;
  font-weight: 600;
}
.pc-content-list li strong {
  color: #1d4ed8;
  font-weight: 800;
}
.pc-content-list li::marker {
  color: #22c55e;
}
.pc-content-text p {
  font-weight: 600;
}

/* Mobile 布局 */
.webMobile {
  margin-top: 8px;
}
.mobile-main {
  padding: 10px 10px 18px;
}

/* 手机版：下载 + IP 同一区域，同行对齐 */
.mobile-download-section {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;        /* 垂直居中，保证在同一条水平线上 */
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

/* 间距加大：按钮竖直方向更松 */
.mobile-download-left {
  display: flex;
  flex-direction: column;
  gap: 20px;          /* 原 14px -> 20px，整体再拉开 */
  flex: 0 0 auto;
}

/* 所有 wrapper 默认下边距，叠加间距效果 */
.mobile-download-left .mobileDown-wrapper {
  margin-bottom: 12px;
}

/* iOS 区块和 Android 区块之间再额外拉开一点 */
#iosDownBtn {
  margin-bottom: 10px;
}

/* Android 区块内部两个按钮之间也加大间距 */
#androidDownBtn .mobileDown-wrapper + .mobileDown-wrapper {
  margin-top: 10px;
}

/* 容器只负责竖向排列，不裁剪 */
.mobileDown-wrapper {
  display: block;
}

/* 手机版：彻底去掉任何裁剪、椭圆背景，只保留图片本身 */
.webMobile .downBtn {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 图片保持原始形状，仅高度缩小，自适应宽度 */
.webMobile .downBtn img {
  display: block;
  height: 40px;               /* 等比缩小，高度 40 像素 */
  width: auto !important;     /* 不拉伸宽度，保持比例 */
}

/* 极窄屏时稍微再缩小一点 */
@media (max-width: 360px) {
  .webMobile .downBtn img {
    height: 36px;
  }
}

/* 手机版 IP：在右侧，保持比例 */
.mobile-download-right img {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.5);
}

@media (max-width: 360px) {
  .mobile-download-right img {
    max-width: 110px;
  }
}

/* Mobile 其它内容 */
.mobile-section-top {
  margin-top: 6px;
}
.mobile-section {
  margin-top: 10px;
}
.mobile-section-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}
.mobile-section-sub {
  margin: 0 0 6px;
  font-size: 13px;
  color: #1f2937;
  font-weight: 600;
}
.mobile-content-card {
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #e6f2ff;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.7);
}
.mobile-content-img img {
  display: block;
  width: 100%;
  height: auto;
}
.mobile-content-text {
  padding: 8px 10px 10px;
  font-size: 13px;
}
.mobile-content-text h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.mobile-content-text p {
  margin: 0;
  color: #374151;
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 14px;
}

.footer-inner {
  border-radius: 14px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 12px 14px 14px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.footer-links {
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-links span {
  cursor: pointer;
  font-weight: 600;
}

.footer-links span:hover {
  text-decoration: underline;
}

.footer-separator {
  margin: 0 6px;
  color: #6b7280;
}

.footer-contact {
  margin-bottom: 10px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.footer-contact-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.footer-contact-col {
  text-align: left;
}

.footer-contact-row {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 600;
}

.footer-contact-row a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-row a:hover {
  text-decoration: underline;
}

.footer-contact-row-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-contact-icon img {
  display: block;
  height: 16px;
  width: 16px;
}

.footer-contact-label {
  white-space: nowrap;
}

.copyright {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
}

.copyright-icon img {
  height: 14px;
  width: auto;
}

/* 响应式微调 */
@media (max-width: 1200px) {
  .container {
    padding-inline: 10px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 8px;
  }

  .footer-inner {
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .footer-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
