/* ========== 首页样式 - 星空银河 + 全屏翻页 ========== */
/* 8个页面：AIGC、企业、知识库、Agent、GEO、团队、外呼、联系 */

/* ========== 全局：禁止原生滚动 ========== */
html, body {
  overflow: hidden;
  height: 100%;
}

/* ========== 主容器：翻页平移 ========== */
.main-container {
  position: relative;
  width: 100%;
  height: 100vh;
  will-change: transform;
}

/* ========== 粒子背景层 ========== */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#particleCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== 屏幕区域：每屏固定100vh ========== */
.screen {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px;
}

/* ========== 屏幕内容：翻页动画 ========== */
.screen-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}

.screen.is-active .screen-content {
  opacity: 1;
  transform: translateY(0);
}

.screen.is-prev .screen-content {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ========== 交错排版：奇数页靠左，偶数页靠右 ========== */
/* 偶数页（第2、4、6、8屏）内容整体靠右，向中间收 */
.screen:nth-of-type(even) .screen-content {
  margin-left: auto;
  margin-right: 6vw;
  text-align: right;
}

/* 偶数页描述文字也靠右对齐 */
.screen:nth-of-type(even) .screen-desc {
  margin-left: auto;
  margin-right: 0;
}

/* 奇数页（第1、3、5、7屏）靠左，向中间收 */
.screen:nth-of-type(odd) .screen-content {
  margin-left: 6vw;
  margin-right: auto;
  text-align: left;
}

.screen:nth-of-type(odd) .screen-desc {
  margin-left: 0;
  margin-right: auto;
}

/* 内容宽度约束：让左右排版有呼吸感 */
.screen-content {
  max-width: 640px;
}

/* 团队页和联系页有网格布局，需要更宽 */
.screen--team .screen-content,
.screen--contact .screen-content {
  max-width: 960px;
}

/* 团队网格和联系信息在偶数页保持居中布局 */
.screen:nth-of-type(even) .team-grid,
.screen:nth-of-type(even) .contact-info {
  text-align: center;
}

/* ========== 翻页指示器 ========== */
.page-dots {
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
}

.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s ease;
}

.page-dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.3);
}

.page-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* 根据页面主题变色 */
body[data-page-theme="warm"] .page-dot.active {
  background: #ffb829;
  border-color: #ffb829;
  box-shadow: 0 0 12px rgba(255, 184, 41, 0.6);
}

body[data-page-theme="cool"] .page-dot.active {
  background: #8052ff;
  border-color: #8052ff;
  box-shadow: 0 0 12px rgba(128, 82, 255, 0.6);
}

/* ========== 屏幕标签 ========== */
.screen-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9),
               0 0 30px rgba(0, 0, 0, 0.7),
               0 2px 6px rgba(0, 0, 0, 0.8);
}

/* 主题色标签 */
.screen--aigc .screen-label {
  color: #ffb829;
}

.screen--enterprise .screen-label,
.screen--knowledge .screen-label,
.screen--agent .screen-label,
.screen--geo .screen-label,
.screen--outbound .screen-label {
  color: #8052ff;
}

.screen--team .screen-label,
.screen--contact .screen-label {
  color: #9a9a9a;
}

/* ========== 屏幕标题 ========== */
.screen-title {
  font-size: 78px;
  font-weight: 400;
  letter-spacing: -3.12px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 36px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.9),
               0 0 60px rgba(0, 0, 0, 0.8),
               0 4px 16px rgba(0, 0, 0, 0.9),
               0 0 100px rgba(0, 0, 0, 0.6);
}

.title-line {
  display: block;
}

/* ========== 屏幕描述 ========== */
.screen-desc {
  font-size: 18px;
  font-weight: 200;
  line-height: 1.6;
  color: #d8d8d8;
  max-width: 480px;
  margin-bottom: 48px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.95),
               0 0 24px rgba(0, 0, 0, 0.85),
               0 2px 8px rgba(0, 0, 0, 0.9),
               0 0 50px rgba(0, 0, 0, 0.7);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn--warm {
  background: #ffb829;
  color: #000000;
}

.btn--warm:hover {
  background: #ffc94d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 184, 41, 0.4);
}

.btn--cool {
  background: #8052ff;
  color: #ffffff;
}

.btn--cool:hover {
  background: #9a7aff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(128, 82, 255, 0.4);
}

.btn--primary {
  background: #8052ff;
  color: #ffffff;
}

.btn--primary:hover {
  background: #9a7aff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(128, 82, 255, 0.4);
}

/* ========== 团队网格 ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-top: 48px;
}

.team-member {
  text-align: center;
}

.team-member__photo {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  margin-bottom: 24px;
}

.team-member__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8052ff;
  margin-bottom: 8px;
}

.team-member__name {
  font-size: 27px;
  font-weight: 400;
  color: #ffffff;
}

/* ========== 联系信息 ========== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}

.contact-item {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 12px;
}

.contact-item__value {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .screen {
    padding: 96px 24px;
  }
  
  .screen-title {
    font-size: 48px;
    letter-spacing: -1.68px;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .screen {
    padding: 60px 18px;
    padding-top: 120px;
  }

  .screen-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .screen-desc {
    font-size: 15px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-dots {
    right: 16px;
    gap: 10px;
  }

  .page-dot {
    width: 6px;
    height: 6px;
  }

  /* 移动端：取消交错排版，统一靠左 */
  .screen:nth-of-type(even) .screen-content,
  .screen:nth-of-type(odd) .screen-content {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .screen:nth-of-type(even) .screen-desc,
  .screen:nth-of-type(odd) .screen-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .screen-content,
  .screen--team .screen-content,
  .screen--contact .screen-content {
    max-width: 100%;
  }
}
