/* ===== 页面基础 ===== */
html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
/*  height: 300vh;*/
  font-family: Helvetica, sans-serif;
  background-color: #000;
  transition: background-color 0.2s ease;
}

/* ===== 顶部 CREATIVEDAVID ===== */
#title {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  font-size: 80px;
  font-weight: 1000;
  color: #fff;
  z-index: 10;
  white-space: nowrap;
  transition: none;
}

/* ===== intro 初始状态 ===== */
.intro {
  width: calc(100% - 20px);
  margin: 0 10px;
  margin-top: 160vh; /* 初始放在页面较下方 */
  opacity: 0;
  transition: opacity 1s ease, margin-top 0.5s ease;
  position: static; /* ✅ 保持在文档流中 */
}

/* ===== intro 显示后，贴在视口底部 5px 处 ===== */
.intro.visible {
  opacity: 1;
  margin-top: calc(100vh + 5px); /* ✅ 相对视口高度加间距 */
}

/* ===== 黑色块 ===== */
.line {
  width: 100%;
  height: 30px;
  background-color: black;
}

/* ===== 水平细线 ===== */
.hr {
  width: 100%;
  height: 2px;
  background-color: black;
/*  margin-top: 10px;*/
}

.hrtop {
  width: 100%;
  height: 2px;
  background-color: black;
  margin-top: 10px;
}


.hr2 {
  width: 40%;
  align-content: left;
  height: 2px;
  background-color: black;
  margin-top: 50px;
 
}

/* ===== 段落文字 ===== */
.para {
  width: 89%;
  margin-top: 30px;
  text-align: left;
  margin-left: 0;
  font-size: 32px;
  line-height: 1.3;
  color: #000000;
  font-weight: bold;
  
  padding: 40px;
  box-sizing: border-box;
}

.para h3 {
  font-size: 42px;
  margin-bottom: 10%;
  line-height: 1.2;
}

.para .p1 {
  margin-top: 10%;
  margin-bottom: 2%;
}

.para .p2 {
  margin-top: 2%;
}

.para p {
  
  line-height: 1;
  width: 60%;
  margin: 0;
}


/* 内容包装器 */
.content-wrapper {
  display: flex;
  width: 100%;
  position: relative;
}

.text-content {
  width: 60%;
}

/* 图片容器 */
.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* 新的线条分隔布局样式 */
.layout-container {
  display: grid;
  grid-template-columns: 40% 2px calc(60% - 2px); /* 上方两列，中间为竖线 */
  grid-template-rows: auto 2px auto; /* 三行，中间为横线 */
  grid-template-areas: 
    "top-left v-divider top-right"
    "h-divider h-divider h-divider"
    "bottom bottom bottom";
  width: 100%;
  position: relative;
}

.top-left {
  grid-area: top-left;
  background-color: white;
  padding: 10px;
  overflow: hidden;
  min-height: 300px;
  position: relative;
}

.top-right {
 
  background-color: white;
  display: flex;
  align-items: flex-end;
}

.vertical-divider {
  grid-area: v-divider;
  background-color: black;
  width: 2px;
  height: 100%;
}

.horizontal-divider {
  grid-area: h-divider;
  background-color: black;
  width: 100%;
  height: 2px;
}

.bottom-content {
  grid-area: bottom;
  padding: 80px 20px;
  background-color: white;
  overflow: hidden;
}

.bottom-content .p1, .bottom-content .p2 {
  font-size: 48px;
  line-height: 1;
  font-weight: bold;
}

.bottom-content .p1 {
  margin-top: 0;
  margin-bottom: 30px;
}

.bottom-content .p2 {
  margin-top: 30px;
}


 .scatter-word {
  white-space: nowrap; /* ✅ 保证单词不被拆行 */
   display: inline-block;
}

.scatter-letter {
  display: inline-block;
  transition: transform 1s ease;
  will-change: transform;
}

.scatter-letter.floating {
  transition: transform 1.2s ease;
}

.scatter-space {
  display: inline-block;
  width: 0.3em;
} 



.feature-image {
  width: auto;
  height: 1000px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.top-right h3 {
  padding: 30% 25% 0% 1%;
  font-size: 64px;
  line-height: 1.2;
  margin: 0;
  font-weight: bold;
}

/* 删除原有的边框样式 */
.top-left, .top-right, .bottom-content {
  border: none;
}

.v1, .v2, .v3 {
  height: 100vh;
  width: calc(100% - 20px);
  margin: 0 10px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.v1.visible, .v2.visible ,.v3.visible,.v4.visible {
  opacity: 1;
  transform: translateY(0);
}
.v2{
	overflow: hidden;
}




/* 案例 */

.main {
	width: 100%;
	display: flex;
	flex-direction: row;
}

.words {
	width: 70%;
  max-height: 100vh;
	display: flex;
	flex-direction: column;
  justify-content: flex-end;
	position: relative;
}

.img{
  position: relative;
	margin-left: auto;
	width: 30%;
	height: 100vh;
	overflow: hidden;       /*  确保图片超出时裁切 */
    display: flex;
    align-items: center;     /*  图片垂直居中 */
    justify-content: center;
}

.img img {
    
    max-height: 100%;
    object-fit: cover;       /* 填满区域，可能裁切（你也可以改成 contain） */
    display: block;
}

.name{
	margin: 0;
	width: 60%;
	font-weight: bold;
	font-size: 165px;
	line-height:145px ;
	display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.name p {
    margin: 0; /* 去除所有外边距 */
}


.explain {
	width: 100%;
	display: flex;
	flex-direction: row;
}

.leftw {
	width: 80%;
	display: flex;
	flex-direction: column;
	/*justify-content: flex-end;*/
}

.leftw a{
	font-size: 24px;
	margin-top: 10px;
	text-decoration: none;
	color: #333;
}


.leftw p{
	width: 85%;
	margin-top: 20%;
	font-size: 36px;
    line-height: 1;
    font-weight: bold;
}

.rightw{
	margin-left: auto;
	width: 40%;
    display: flex;
    flex-direction: row;
}
/*
.rightw a{
	font-size: 24px;
	margin-top: 10px;
	text-decoration: none;
	color: #333;
	opacity: 0;
}
*/
.rightw p{
	width: 20%;
	padding: 0;
	font-size: 24px;
	margin-top: 10px;
	text-decoration: none;
	color: #333;
	opacity: 0;

}
.rightw .jump{
	display: flex;
	flex-direction: column;

	width: 70%;
	padding: 0;
	font-size: 24px;
	font-weight: 100;
	margin-top: 10px;
	text-decoration: none;
	color: #333;

}

/*❌❌🔘这里都是按钮，勿动*/
.jump a{
	text-decoration: none;
	color: #333;
	text-align: center;
}

.jump a {
  display: block;
}
.jump a{
  font-variation-settings: 'wght' 100;
  transition: font-variation-settings 0.3s ease;
  
  color: #333;
  text-decoration: none;
  display: block;

  padding: 10px 30px;
  margin: 10px 0;

  
  transition: 0.5s;
  overflow: hidden;
}

.jump a:hover{
  font-variation-settings: 'wght' 300;
  

  transform: scale(1.05);
  transform-origin: center;
  cursor: pointer;
}
.a3::before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	border-left: 2px solid #F9F07A;
	border-top: 2px solid #F9F07A;
	transition: .5s;
}

.a2::before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	border-left: 2px solid #F4A5BA;
	border-top: 2px solid #F4A5BA;
	transition: .5s;
}

.a1::before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	border-left: 2px solid #84DFFF;
	border-top: 2px solid #84DFFF;
	transition: .5s;
}

.a3::after{
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid #F9F07A;
	border-bottom: 2px solid #F9F07A;
	transition: .5s;
}

.a2::after{
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid #F4A5BA;
	border-bottom: 2px solid #F4A5BA;
	transition: .5s;
}

.a1::after{
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid #84DFFF;
	border-bottom: 2px solid #84DFFF;
	transition: .5s;
}

a:hover::before, a:hover::after{
	width: 100%;
	height: 100%;
	transition: .5s;
}

.a1:hover{
	transition-delay: .5s;
	background-color: #84DFFF;
  color: #516BEB;
}

.a2:hover{
	transition-delay: .5s;
	background-color: #F4A5BA;
  color: #DE2C5B;
}

.a3:hover{
	transition-delay: .5s;
	background-color: #F9F07A;
  color: #FFBF00;
}

.bottom-contentv2 {
  width: auto; /* 使宽度自适应内容 */
}
.bottom-contentv2 p {
  margin: 0;
  padding: 0;
 
  font-size: 24px;
  white-space: nowrap; /* 防止文本换行 */
}

/*⚠️🌃🌃v123背景*/

.background-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  opacity: 0.25;
  z-index: -1;
}


/*⚠️3️⃣v3变化*/
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  display: none; /* 默认隐藏 */
}

#custom-cursor img {
  width: 240px;
  height: 300px;
  display: block;
  transition: width 0.1s ease, height 0.1s ease;
}

.flatten-text {
  display: inline-block;       /* 保证 transform 不影响父级布局 */
  transition: transform 2s ease;
  transform-origin: center;
}

.flatten-text:hover {
  transform: scaleY(0.2);      /* Y 方向压扁到 20% */
}

.squeeze{
	display: inline-block;    
	transition: transform 2s ease;
	transform-origin: left;
}

.squeeze:hover{
	transform: scaleX(0.2);
}

/*⚠️2️⃣v2变化*/
/*.v2 {
  position: relative;
  overflow: hidden;
}*/

.mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;

  /* 背景黑色 */
  background-color: black;

  /* 使用 mask 制作圆洞，默认位置在左上角（不可见） */
  -webkit-mask-image: radial-gradient(circle 300px at 0px 0px, transparent 0%, black 100%);
  mask-image: radial-gradient(circle 300px at 0px 0px, transparent 0%, black 100%);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.shadow-letter {
  display: inline-block;
  transition: text-shadow 0.05s linear;
}

/*⚠️1️⃣v1变化*/
.trail {
  position: absolute;
  pointer-events: none;

  filter: brightness(1.2) saturate(1.4);
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 1s ease;
  opacity: 1;
}

.drop-word {
  display: inline-block;
  transition: transform 3s ease, opacity 1s ease;
  will-change: transform;
}

.drop-word.falling {
  transform: translateY(100vh);
  opacity: 0;
}

.v1 {
  position: relative;

}


.trail {
  position: absolute;
  pointer-events: none;

  filter: brightness(1.2) saturate(1.4);
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 1s ease;
  opacity: 1;
}
