/* ============================================================
   Thinkchat Landing Page - 基于 Figma 设计稿实现
   布局: Flexbox 纵向，自适应屏幕
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0b0b1a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0b0b1a;
}

.bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* ---------- 主容器 (Flexbox 纵向布局) ---------- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 67px 0 60px 0;
}

/* ---------- Logo 区域 ---------- */
.logo-section {
  padding-left: 87px;
  flex-shrink: 0;
  margin-bottom: auto;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 200px;
}

.logo-img {
  display: block;
  width: 200px;
  height: auto;
  /* SVG 路径坐标从底部向顶部绘制，需要翻转修正 */
  transform: scaleY(-1);
}

.logo-subtitle {
  font-family: "MiSans", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 3.2px;
  white-space: nowrap;
  width: 100%;
}

/* ---------- 主内容区 (标题 + 按钮) ---------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 87px;
  gap: 100px;
}

/* ---------- 主标题 ---------- */
.hero-title {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 6rem);
  color: #fff;
  line-height: 1.3;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

/* ---------- CTA 按钮组 ---------- */
.cta-section {
  display: flex;
  align-items: center;
  gap: 75px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 10px 30px;
  background: #06aedf;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: #08c4f5;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-link {
  color: #fff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.btn-link:hover {
  opacity: 0.8;
}

/* ---------- 页脚 ---------- */
.footer-section {
  padding-left: 87px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-copy {
  font-family: "MiSans", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-desc {
  font-family: "MiSans", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}

/* ---------- 入场动画 ---------- */
.anim-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .main-content {
    gap: 40px;
  }

  .cta-section {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .page {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .logo-section {
    padding-left: 40px;
  }

  .logo-wrap {
    width: 160px;
  }

  .logo-img {
    width: 160px;
  }

  .logo-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .main-content {
    padding-left: 40px;
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }

  .cta-section {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-section {
    padding-left: 40px;
  }
}

@media (max-width: 600px) {
  .page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .logo-section {
    padding-left: 24px;
  }

  .logo-wrap {
    width: 120px;
  }

  .logo-img {
    width: 120px;
  }

  .logo-subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .main-content {
    padding-left: 24px;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero-line {
    white-space: normal;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn-primary {
    width: 130px;
    font-size: 13px;
    padding: 8px 20px;
  }

  .btn-link {
    font-size: 14px;
  }

  .footer-section {
    padding-left: 24px;
  }

  .footer-copy,
  .footer-desc {
    font-size: 13px;
  }
}
