@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Noto+Sans:wght@800&display=swap");

:root {
  --primary: #8caccf;
  --primary-light: #a9cbef;
  --secondary: #00ffcc;
  --dark: #0a0a1a;
  --light: #f8f9ff;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --neon-pink: #ff2a6d;
  --neon-blue: #05d9e8;
  --neon-purple: #d300c5;
  --dark-bg: #000000;
  --text-glow: 0 0 10px currentColor;
}

html {
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--dark-bg);
  font-family: "Barlow Condensed","Noto Sans", sans-serif;
  text-transform: uppercase;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  font-family: "Noto Sans", sans-serif;
  font-size: 6rem;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

.header h1 {
  font-size: 5em;
  line-height: 1;
}

.header h2 {
  font-size: 1.2em;
  opacity: 0.8;
  line-height: 1.6;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background-color: rgba(10, 10, 26, 0.5);
  border-radius: 25px;
  z-index: 2;
}

.lang-btn {
  font-family: "Barlow Condensed";
  background-color: transparent;
  color: var(--light);
  border: 1px solid var(--light);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  margin-left: 1rem;
}
.lang-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--dark-bg);
}

.lang-en,
.lang-jp {
  display: inline-block;
}

.lang-en.hidden,
.lang-jp.hidden {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-light);
}

nav .title a {
  color: var(--light);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav .title .logo {
  height: 30px;
  width: auto;
  vertical-align: middle;
}

.main-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--dark-bg);
  color: #fff;
  overflow: hidden;
}

.top-page .intro img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: brightness(40%); */
  filter: sepia(0.2) saturate(1.2) hue-rotate(-10deg);
}

.top-page .intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #38a1ae;
}

.top-page .outro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-image: url("./assets/images/shipwrecks.jpg");
  background-size: cover;
  background-position: center;
}

.top-page .contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.top-page .contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-page .contact h2 {
  font-weight: 600;
}

.top-page .contact h3 {
  text-transform: lowercase;
  font-size: 1.5em;
  font-weight: 600;
}

.top-page .outro img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  margin-left: -50px;
}

.top-page .outro footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 80px;
}

.top-page .header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 50%;
  z-index: 1;
}

.top-page .header h2 {
  padding-top: 5rem;
}

.top-page .spotlight {
  background-color: var(--light);
  position: relative;
  isolation: isolate;
}

.top-page .spotlight h1 {
  text-transform: uppercase;
  font-family: "Barlow Condensed";
  color: var(--primary-light);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.top-page .spotlight-images {
  height: 100vh;
  width: 100%;
  position: relative;
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.top-page .spotlight-images img {
  width: 550px;
  height: 550px;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1) saturate(1.2);
  position: absolute;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.top-page .spotlight-images img:nth-child(odd) {
  bottom: -65%;
  left: 10%;
  rotate: -5deg;
}

.top-page .spotlight-images img:nth-child(even) {
  bottom: -65%;
  right: 10%;
  rotate: 5deg;
}

.top-page .spotlight-icon {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
}

.top-page .img-desc {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80vh;
  padding: 0 5vw;
  box-sizing: border-box;
}

.top-page .img-desc img {
  background-color: #000;
  position: relative;
  z-index: 1;
  opacity: 0.3;
}

.top-page .desc {
  position: absolute;
  bottom: -70%;
  width: 60%;
  z-index: 2;
}

.top-page .desc h2 {
  text-transform: uppercase;
  font-family: "Barlow Condensed";
  color: #333;
  font-size: 4rem;
  line-height: 1.5;
  will-change: transform;
  mix-blend-mode: difference;
  isolation: isolate;
}

.top-page .mask-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  --mask-size: 0%;
  -webkit-mask: url(./assets/images/mask.svg) center/var(--mask-size) no-repeat;
  mask: url(./assets/images/mask.svg) center/var(--mask-size) no-repeat;
  z-index: 10;
  overflow: hidden;
}

.top-page .mask-container .mask-img .mask-video {
  width: 100%;
  height: 100%;
}

.top-page .mask-video {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.top-page .mask-video div {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.top-page .mask-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.2) saturate(1.2);
  transition: filter 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.top-page .video-item.active h2 {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 5rem;
  text-align: center;
  will-change: transform;
}

.top-page .video-item-word {
  opacity: 0;
  will-change: transform;
}

.top-page .mask-video::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 350px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #1a1a1a 100%);
}

.top-page .video-overlay {
  position: absolute;
  top: 0; /* 从视频顶部开始 */
  left: 0;
  width: 100%;
  height: 200px; /* 渐变的高度，可以调大调小 */
  background: linear-gradient(to top, rgba(255, 131, 2, 0) 0%, #171918 100%);
  pointer-events: none; /* 确保不会挡住点击或交互 */
}

@media (max-width: 1000px) {
  h1 {
    font-size: 4rem;
  }

  nav,
  .header {
    width: calc(100% - 4rem);
  }
}

.top-page .video-container {
  margin: 0 auto;
  position: relative;
  height: auto;
  overflow: hidden;
  z-index: 1;
}

.top-page .video-container video {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0.2) saturate(1.2);
}

.top-page .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
  z-index: 0;
  opacity: 0;
}

.top-page .bg-video.active {
  opacity: 1;
  z-index: 1;
}

.top-page .sunset-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 119, 0, 0.828); /* 柔和橙色 */
  mix-blend-mode: overlay; /* or 'soft-light' */
  pointer-events: none;
}

.top-page canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top-page canvas.outline-layer {
  z-index: 1;
}

.top-page canvas.fill-layer {
  z-index: 10;
}

.top-page .cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  will-change: transform;
  z-index: 2;
}

.top-page .card {
  position: relative;
  left: 900px;
  width: 600px;
  height: 75%;
  background-color: var(--dark-bg);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1;
}

.top-page .card-img {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.top-page .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
  transition: transform 0.3s ease;
}

.top-page .card:hover .card-img img {
  transform: scale(1.05);
}

.top-page .card-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  transition: background 0.3s ease;
}

.top-page .card:hover .card-title {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.top-page .card-title h2 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  padding: 0 1.5rem;
  text-transform: uppercase;
  z-index: 2;
}

.lenis .lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis .lenis-stopped {
  overflow: clip;
}

.lenis .lenis-smooth iframe {
  pointer-events: none;
}

.top-page .card-title p {
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 400;
  margin-top: 2rem;
  padding: 0 1.5rem;
  text-transform: none;
  max-width: 90%;
}

.top-page .card-title-word,
.top-page .card-desc-word {
  opacity: 0;
  transform: translateY(30%);
}

@media (max-width: 900px) {
  .top-page .card {
    width: 23%;
  }
  .top-page .card-title p {
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 0 1rem;
  max-width: 100%;
  }
}

@media (max-width: 768px) {
  .top-page .card {
    left: 400px;
  }
}

.top-page .word {
  overflow: hidden;
  transform-origin: bottom;
  transform: translateY(30%);
}

.top-page .nextlogy {
  color: var(--primary-light);
}

.top-page .intro h1 .top-logo {
  position: static;
  width: auto;
  height: 60px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 10px;
  object-fit: contain;
  filter: none;
}

.top-page .outro h1 .bottom-logo {
  position: static;
  width: auto;
  height: 80px;
  vertical-align: middle;
  display: inline-block;
  margin-left: 20px;
  object-fit: contain;
  filter: none;
}

/* Section Navigator */
.top-page .section-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.top-page .nav-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(210, 210, 210, 0.6);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.top-page .nav-dot:hover {
  border-color: var(--primary-light);
  transform: scale(1.2);
}

.top-page .nav-dot.active {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.top-page .nav-label {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 1rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.top-page .nav-dot:hover .nav-label {
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 3rem;
  }
  
  .header h1 {
    font-size: 3.75rem;
  }
  
  .header h2 {
    font-size: 1rem;
  }
  
  /* Navigation */
  nav {
    width: 90%;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  nav .title {
    text-align: center;
  }
  
  nav .title .logo {
    height: 24px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
  }
  
  .nav-links a {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .lang-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    margin-left: 0.5rem;
  }
  
  /* Intro Section */
  .top-page .intro .header {
    width: 90%;
    padding: 0 1rem;
  }
  
  .top-page .intro .header h2 {
    padding-top: 2rem;
  }
  
  /* Contact Section */
  .top-page .contact h3 {
    font-size: 1rem;
  }
  
  .top-page .outro img {
    width: 24px;
    height: 24px;
    margin-left: -30px;
  }
  
  .top-page .outro footer {
    padding: 0 1rem 3rem;
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* Development Section */
  .top-page .spotlight .desc h2 {
    font-size: 3.5rem;
    line-height: 1.4;
  }
  
  /* Section Navigator */
  .top-page .section-nav {
    right: 1rem;
  }
  
  .top-page .nav-label {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .header h1 {
    font-size: 3rem;
  }
  
  .header h2 {
    font-size: 0.9rem;
  }
  
  /* Navigation */
  nav {
    width: 95%;
    padding: 0.8rem;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  nav .title .logo {
    height: 20px;
  }
  
  .nav-links {
    gap: 0.6rem;
    width: 100%;
  }
  
  .nav-links a {
    font-size: 0.64rem;
    padding: 0.2rem 0.4rem;
  }
  
  .lang-btn {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  
  /* Development Section */
  .top-page .spotlight .desc h2 {
    font-size: 3rem;
    line-height: 1.4;
  }
  
  /* Contact */
  .top-page .contact h3 {
    font-size: 0.85rem;
  }
  
  .top-page .outro footer {
    font-size: 0.8rem;
  }
}
