:root {
  --ink: #04101f;
  --navy: #071b33;
  --blue: #126bff;
  --ice: #8be5ff;
  --white: #f8fcff;
  --muted: #a9c4dc;
  --line: rgba(139, 229, 255, .22);
  --tile-gap: clamp(8px, .62vw, 12px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 88px;
  padding: 0 clamp(22px, 4vw, 46px);
  background:
    linear-gradient(90deg, rgba(4, 14, 30, .96), rgba(8, 27, 51, .9)),
    linear-gradient(180deg, rgba(74, 164, 255, .12), transparent);
  border-bottom: 1px solid rgba(142, 213, 255, .18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  display: block;
  width: clamp(46px, 3.2vw, 50px);
  height: clamp(46px, 3.2vw, 50px);
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(82, 190, 255, .72));
}

.brand-text {
  color: #68c8ff;
  font-size: clamp(26px, 1.8vw, 46px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 48%, rgba(14, 100, 255, .38), transparent 34%),
    radial-gradient(circle at 22% 18%, rgba(116, 213, 255, .14), transparent 28%),
    linear-gradient(115deg, #051020 0%, #092244 46%, #040914 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 88px 0 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(3, 9, 18, .92) 0%, rgba(5, 13, 27, .75) 32%, rgba(5, 13, 27, .2) 62%, rgba(3, 9, 18, .44) 100%),
    linear-gradient(180deg, rgba(3, 9, 18, .1), rgba(3, 9, 18, .9));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 88px auto 0 0;
  z-index: 3;
  width: 48vw;
  min-width: 520px;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(11, 98, 255, .38) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(139, 229, 255, .06) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(139, 229, 255, .05) 0 1px, transparent 1px 100%);
  background-size: 100% 100%, 92px 92px, 92px 92px;
  clip-path: polygon(0 0, 86% 0, 48% 100%, 0 100%);
}

.gallery {
  position: absolute;
  inset: 88px -22vw -14vh 16vw;
  z-index: 1;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 0;
}

.gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 13, 27, .84), rgba(5, 13, 27, .18) 30%, transparent 58%, rgba(5, 13, 27, .32)),
    linear-gradient(180deg, rgba(5, 13, 27, .62), transparent 16%, transparent 78%, rgba(5, 13, 27, .86));
}

.gallery-tilt {
  position: absolute;
  left: 50%;
  top: -136px;
  display: grid;
  gap: var(--tile-gap);
  width: max-content;
  transform: translateX(-50%) rotateX(10deg) rotate(-13deg);
  transform-origin: center top;
  transform-style: preserve-3d;
}

.image-row {
  display: flex;
  gap: 0;
  width: max-content;
  height: clamp(88px, 8vw, 154px);
  overflow: hidden;
  will-change: transform;
  animation: scroll-left 26s linear infinite;
}

.image-row:nth-child(even) {
  animation-name: scroll-right;
  margin-left: clamp(-260px, -13vw, -130px);
}

.row-a {
  margin-left: clamp(-460px, -24vw, -240px);
  animation-duration: 24s;
}

.row-b {
  animation-duration: 27s;
}

.row-c {
  margin-left: clamp(-180px, -9vw, -92px);
  animation-duration: 25s;
}

.row-d {
  animation-duration: 28s;
}

.row-e {
  margin-left: clamp(-260px, -13vw, -130px);
  animation-duration: 26s;
}

.row-f {
  animation-duration: 29s;
}

.row-g {
  margin-left: clamp(-520px, -27vw, -260px);
  animation-duration: 27.5s;
}

.row-set {
  display: flex;
  gap: var(--tile-gap);
  flex: 0 0 auto;
  padding-right: var(--tile-gap);
}

.image-row img {
  flex: 0 0 auto;
  width: clamp(148px, 14.45vw, 277px);
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(98, 194, 255, .42);
  box-shadow:
    0 0 0 1px rgba(2, 12, 24, .84),
    0 18px 36px rgba(0, 0, 0, .58),
    0 0 28px rgba(18, 107, 255, .22);
  filter: saturate(1.06) contrast(1.08) brightness(.78);
}

.image-row img:nth-child(3n) {
  filter: saturate(1.12) contrast(1.15) brightness(.92);
  box-shadow:
    0 0 0 1px rgba(2, 12, 24, .84),
    0 20px 42px rgba(0, 0, 0, .62),
    0 0 34px rgba(66, 184, 255, .5);
}

@keyframes scroll-left {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

.copy {
  position: relative;
  z-index: 4;
  /* 限制最大宽度，防止超宽屏幕文字行过长 */
  width: min(680px, calc(100vw - 44px)); 
  /* 关键修改：减少顶部 padding，让元素垂直居中感更强 */
  /* 使用 clamp 确保在小屏幕上也不会顶得太靠上 */
  padding: clamp(180px, 18vh, 240px) 0 0 clamp(40px, 8vw, 120px);
  /* 新增：文字阴影增强立体感，与背景区分开 */
  text-rendering: optimizeLegibility;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 4.5vw, 92px); /* 稍微调大了视口单位的比例，更霸气 */
  line-height: .96;
  font-weight: 900;
  letter-spacing: -.02em; /* 新增：字间距收紧一点，更有力量感 */
  text-shadow:
    0 4px 0 rgba(32, 107, 190, .34),
    0 18px 46px rgba(0, 0, 0, .72),
    0 0 28px rgba(49, 160, 255, .38);
}

.slogan {
  display: flex;
  flex-direction: column; /* 改为竖排，更符合中文阅读习惯，也更显大气 */
  gap: .3em; /* 调整行距 */
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: #f7fbff;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1.45;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(29, 156, 255, .6);
}
.slogan span {
  display: inline-block;
  padding: 4px 0; /* 增加点击区域感 */
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* 关键修改：减少顶部外边距，拉近与 Slogan 的距离 */
  margin-top: clamp(40px, 5vw, 72px); 
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* 稍微缩小一点按钮，让它更精致，不那么抢戏 */
  min-width: clamp(180px, 12vw, 220px); 
  min-height: clamp(54px, 3.8vw, 64px);
  padding: 0 28px;
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 900;
  border-radius: 2px;
  transform: skewX(-13deg);
  transition: all .25s ease; /* 新增：增加悬停动画的基础 */
}
.primary:hover {
  transform: skewX(-13deg) scale(1.05); /* 新增：悬停放大效果 */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 14px 44px rgba(18, 107, 255, .6),
    0 0 34px rgba(95, 217, 255, .5);
}

.primary span,
.windows-icon {
  transform: skewX(13deg);
}

.primary {
  color: #eaf9ff;
  background: linear-gradient(135deg, #0b5bff, #139cff 55%, #56e4ff);
  border: 1px solid rgba(159, 236, 255, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 14px 34px rgba(18, 107, 255, .48),
    0 0 24px rgba(95, 217, 255, .34);
}

.windows-icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .topbar {
    height: 72px;
  }

  .brand {
    gap: 10px;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 24px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero::before,
  .hero::after {
    top: 72px;
  }

  .gallery {
    inset: 72px -130vw -8vh 4vw;
    opacity: .88;
  }

  .gallery-tilt {
    top: -80px;
  }
  
    .copy {
    padding: 200px 22px 72px; /* 移动端保持居中 */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 移动端居中显示 */
    text-align: center;
  }

  .slogan {
    align-items: center;
  }

}

@media (max-width: 560px) {
  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 21px;
  }

  .copy {
    padding-top: 150px;
  }

  .actions {
    display: grid;
  }

  .primary {
    width: min(260px, 100%);
  }
}
