/* 基础变量 */
:root {
    --primary-color: #DE4ABB;
    --text-color: #18181B;
    --text-light: #3F3F46;
    --text-lighter: #A1A1AA;
    --spacing-base: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 200px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 文字样式 */
h1, h2 {
  font-weight: 700;
}

h1 {
  font-size: 40px;
  line-height: 56px;
  color: var(--text-color);
}

h2 {
  font-size: 32px;
  line-height: 48px;
  color: var(--text-color);
}

p {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-lighter);
}

/* 通用布局 */
body {
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #fff;
    overflow-x: hidden;
}

/* Logo 样式 */
header {
    width: 100%;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f5fa;
    position: fixed;
    top: 0;
    z-index: 100;
    transition: all 0.6s;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    transition: all 0.3s;
}

.logo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo-square {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    animation: logoEntrance 1s ease-in-out forwards;
    transition: all 0.3s;
}

.logo-square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo span {
    font-size: 20px;
    line-height: 36px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.logo .logo-desc {
  margin-bottom: 32px;
}

.logo-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.cta-button {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 32px;
  background-color: var(--text-color);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.3s;
}

.cta-button:hover,
.sec-button:hover {
  transform: translateY(-4px);
  transition: all 0.3s;
}

.sec-button {
  font-weight: 500;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  background-color: #f4f5fa;
  padding: 6px 30px;
}

header.scrolled {
  padding: 16px 0;
  transition: all 0.6s;
}

header.scrolled .logo {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    transition: all 0.3s;
}

header.scrolled .logo-info {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

header.scrolled .logo-square {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    transition: all 0.3s;
}

header.scrolled .logo span {
  font-size: 16px;
  line-height: 100%;
  margin-bottom: 0;
  transition: all 0.3s;
}

header.scrolled .logo .logo-desc {
  display: none;
}

header.scrolled .cta-button {
  font-size: 14px;
  line-height: 24px;
  padding: 6px 16px;
  transition: all 0.3s;
}

header.scrolled .sec-button {
  padding: 4px 14px;
}

@keyframes logoEntrance {
  0% {
      transform: scale(8);
      filter: blur(24px);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      filter: blur(0);
      opacity: 1;
  }
}

footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  text-align: center;
}

footer a {
  color: var(--text-lighter);
  text-decoration: none;
  transition: all 0.3s;
}

footer a:hover {
  color: var(--text-color);
  transition: all 0.3s;
}

main {
  max-width: 1200px;
  margin: 560px auto 0 auto;
  width: 100%;
}

section {
  margin-bottom: var(--spacing-xxl);
  text-align: center;
}

/* 通用组件样式 */
.section-label {
  color: var(--primary-color);
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: var(--spacing-base);
}

.section-title {
  margin-bottom: var(--spacing-xl);
}

/* 图片通用样式 */
.img-wrapper {
  position: relative;
  width: 224px;
  flex-shrink: 0;
}

.phone-image {
  width: 100%;
  display: block;
}

.zoom-lens {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 1);
  width: 120px;
  height: 120px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .24);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Hero 区域 */
.hero-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.hero-content .img-wrapper {
    transition: transform 0.3s ease-out;
    position: relative;
}

.hero-content .img-wrapper:nth-child(1),
.hero-content .img-wrapper:nth-child(5) {
    transform: translateY(160px);
}

.hero-content .img-wrapper:nth-child(2),
.hero-content .img-wrapper:nth-child(4) {
    transform: translateY(80px);
}

.hero-content .img-wrapper:nth-child(3) {
    transform: translateY(0);
    z-index: 5;
}

/* Prototype 区域 */
.prototype-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.prototype-content .img-wrapper {
    transform: translateY(100px);
    transition: transform 0.1s ease-out;
}

.prototype-content .img-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery 区域 */
.gallery-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  perspective: 1200px;
}

.gallery-content .img-wrapper {
    transition: transform 0.3s ease-out;
    transform-origin: bottom center;
}

.gallery-content .img-wrapper:nth-child(3) {
    transform: rotateX(30deg) scale(0.96);
}

.gallery-content .img-wrapper:nth-child(2),
.gallery-content .img-wrapper:nth-child(4) {
    transform: rotateX(45deg) scale(0.96);
}

.gallery-content .img-wrapper:nth-child(1),
.gallery-content .phone-image:nth-child(5) {
    transform: rotateX(60deg) scale(0.96);
}

.gallery-content .img-wrapper.active {
  transform: rotateX(0) scale(1);
  transition: transform 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 1200px) {

  header.scrolled .logo {
    padding: 0 40px;
  }

  main {
    padding: 0 40px;
  }

  footer {
    padding: 0 40px 20px 40px;
  }

  .hero-content,
  .prototype-content,
  .gallery-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .gallery-content {
    perspective: none;
  }

  .resizing .img-wrapper {
    transition: all 0.3s ease-out !important;
  }

  .img-wrapper {
    transform: none !important;
    width: 280px;
  }

}
