* {
	padding: 0;
	margin: 0;
	transition-timing-function: cubic-bezier(.19, 1, .22, 1);
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
	cursor: none;
}
body,html {
	font-family: Microsoft YaHei;
	-webkit-font-smoothing: antialiased;
	color: #fff;
	font-size: 14px;
	overflow-x: hidden;
	position: relative;
}
#sence{
	height: 100vh;
	width: 100vw;
	position: fixed;
	z-index: -1;
}
#background{
	width: 140%;
	filter: brightness(0.6);
	background-image: url('../img/background1.webp'); /* 默认背景图片URL */
    background-size: 100%;
	height: 140%;
	position: absolute;
	top: -10vw !important;
	left: -160px !important;
}
#bg{
	width: 120%;
	filter: brightness(0.7);
	background-image: url('../img/background2.webp'); /* 默认前景图片URL */
    background-size: cover;
	height: 120%;
	position: absolute;
	left:6.5vw !important;
}
/* 画布尺寸 */
.main{
	width: 990px;
    padding: 30px 330px 5px 20px;
    background: linear-gradient(to right, rgba(34, 34, 34, 0.849), rgba(34, 34, 34, 0) 600px,rgba(34, 34, 34, 0));
}
body::-webkit-scrollbar {display: none;}
.chtitle {
    padding-bottom: 15px;
    font-size: 18px;
    letter-spacing: .2em;
    color: hsla(0, 0%, 100%, .5)
}
.chtitle span {
    color: #fff
}
.chtitle:after {
    content: "";
    display: block;
    width: 10%;
    height: 5px;
    background-color: hsla(0, 0%, 100%, .5);
    margin-top: 20px;
}
#clear {
    background-color: #222222;
    border-radius: 20px;
    height: 200px;
    overflow: hidden;
	position: relative;
	margin-bottom:30px;
	border: 1px #3c3c3c solid;
}
#avatar {
    height: 200px;
    width: 340px;
    background-size: cover;
    background-position: center;
	background-image: linear-gradient(to right,rgba(34,34,34,0) 0%,rgba(34,34,34,0) 180px,rgba(34,34,34) 340px),url('../img/background3.webp');
}
#persontag {
    padding: 20px 20px 20px 80px;
    line-height: 40px;
    font-size: 15.5px;
	position: absolute;
	right: 0;
	top: 0;
	background-image: linear-gradient(to right,rgba(0,0,0,0),rgba(34, 34, 34, 0.6) 80px);
	width: 380px;
	color: rgba(255, 255, 255, 0.8);
}
.find a {
    color: #fff;
    text-decoration: none;
	flex-basis: 150px;
	margin: 0 20px 20px 0;
	position: relative;
	flex-grow: 1;
	transition: 0.3s;
}
.find a:hover{
	flex-grow: 10;
	transition: 0.6s;
}
a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.find{
	width: 50%;
	margin: 0 0 10px 0;
	max-width: 600px;
}
#linkbox{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.find a {
	flex-basis: calc(50% - 10px);
	margin: 0 0 15px 0;
}
.find .item {
    position: relative;
    height: 60px;
    line-height: 60px;
    transition: all .2s;
    overflow: hidden;
    opacity: 1;
    border-radius: 8px;
    box-shadow: 0 4px 8px -2px var(--color);
}
.item span{
	position: absolute;
	left: 30px;
	letter-spacing:.1em;
	font-weight: bold;
}
.find .item .inner {
    position: relative;
    z-index: 5;
	height: 100%;
}
.find .item .bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    transition: all .15s;
    height: 100%;
}
.find .item i {
    font-size: 50px;
    position: absolute;
    right: 10px;
    bottom: -15px;
    color: rgba(255, 255, 255, 0.35);
    transition: 0.6s;
	filter: blur(8px);
}
.find a:hover i{
	bottom: 0;
	font-size: 25px;
	color: #fff;
	right: 15px;
	filter: blur(0px);
}
.find .item span {
    display: inline-block;
    width: 70px;
    font-size: 16px;
	color: rgba(255, 255, 255, 0.6);
	transition: 0.3s;
}

/* 确保社交文本容器定位正确 */
.find .item .inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 社交名称文本样式 */
.social-text {
    position: relative;
    display: inline-block;
    transition: 0.3s;
    z-index: 1;
}

/* 隐藏详情文本，只显示名称 - 提高选择器优先级 */
.find .item .inner .social-detail {
    display: none !important;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: .1em;
    font-weight: bold;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
    white-space: nowrap;
    z-index: 1;
}

/* 鼠标悬浮时，隐藏名称，显示详情 - 提高选择器优先级 */
.social-item:hover .social-text {
    display: none !important;
}

.social-item:hover .inner .social-detail {
    display: block !important;
    color: white;
    transition: 0.6s;
}
.find .item:hover span{
	color: white;
	transition: 0.6s;
}

/* 社交项目悬浮显示详情 */
.social-item {
    position: relative;
}

/* 隐藏详情文本，只显示名称 */
.social-detail {
    display: none;
    position: absolute;
    left: 30px;
    letter-spacing: .1em;
    font-weight: bold;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}

/* 鼠标悬浮时，隐藏名称，显示详情 */
.social-item:hover .social-text {
    display: none;
}

.social-item:hover .social-detail {
    display: inline-block;
}

/* 调整详情文本的样式，与名称保持一致 */
.social-item:hover .social-detail {
    color: white;
    transition: 0.6s;
}
#persontag .tag{
	display: inline-block;
	transition: 0.3s;
}
#persontag .tag:hover{
	margin: 0 5px;
	transition: 0.6s;
}
#morelink{
	right: 20px;
	bottom: 20px;
	background-color: rgba(255, 255, 255, 0.15);
	z-index: 5;
}
.bt{
	border-radius: 32px;
	height: 32px;
	width: 32px;
	text-align: center;
	line-height: 32px;
	position: absolute;
	transition: 0.1s;
}
.bt:hover{
	transition: 0.1s;
	transform: scale(1.1);
}
.bt i:hover{color: white;}
.bt i{display: block;font-size: 20px;color: rgba(255, 255, 255, 0.5);}
.workbox{
	border-radius: 20px;
	width: 100%;
	background-color: #222222;
	overflow: hidden;
	box-shadow: inset 0 0 30px rgba(18, 18, 18);
	padding: 20px;
}

/* 调整代码合集容器为横向滚动 */
#code-collection {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

#code-collection::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* 确保每个商品卡片在横向滚动容器中正常显示 */
#code-collection .product-card {
    flex-shrink: 0;
    width: 250px;
}
#first,#last{
	width: 60px;
	height: 160px;
	display: inline-block;
	margin: 20px 18px 20px 0;
	background-color: #272727;
	border: 1px #292929 solid;
	position: relative;
	border: 1px #2e2e2e solid;
}
#first{border-radius: 0 20px 20px 0;border-left: none;}
#last{border-radius: 20px 0 0 20px;margin-right: 0;border-right: none;}
#first i,#last i{
	color: transparent;
	transition: 0.3s;
	font-size: 30px;
	line-height: 160px;
	width: 58px;
	text-align: center;
	display: block;
}
#first:hover i,#last:hover i{
	color: rgba(255, 255, 255, 1);
	transition: 0.6s;
}
.project{
	height: 150px;
	width: 228px;
	background-color: #272727;
	border-radius: 20px;
	display: inline-block;
	margin: 20px 18px 20px 0;
	border: 1px #2e2e2e solid;
	position: relative;
	padding: 20px;
	vertical-align: top;
}
.project i{
	display: block;
	font-size: 20px;
	color: rgba(255, 255, 255, 0.6);
	position: absolute;
	top: 20px;
	right: 20px;
}
.project h3{
	color: rgba(255, 255, 255, 0.8);
	display: inline-block;
}
.project h3:hover{
	text-decoration: underline;
	color: white;
}
.project p{
	color: rgba(255, 255, 255, 0.6);
	margin-top: 20px;
}
.language{
	position: absolute;
	bottom: 20px;
	left: 15px;
	color: rgba(255, 255, 255, 0.6);
}
.language div{
	display: inline-block;
	font-size: 13px;
}
.language div::before{
	content: '';
	background-color: var(--color);
	height: 10px;
	width: 10px;
	border-radius: 10px;
	display: inline-block;
	margin: 0 5px;
}
.workbox span{
	position: absolute;
	top: 0;
	left: 0;
	letter-spacing: .2em;
    font-weight: bold;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.5);
	writing-mode:vertical-lr;
	line-height: 56px;
	text-align: center;
	height: 160px;
	transition: 0.3s;
}
#first:hover span,#last:hover span{
	color: transparent;
	transition: 0.6s;
}
@media screen and (max-width:1400px) {
	#background{background-size: 240vh;}
}
@media screen and (max-width:720px) {
	.main{
		width: 100vw;
		padding: 20px;
		background: rgba(32, 32, 32, 0.4);
	}
	.find a {flex-basis: calc(33vw - 55px);}
	.workbox{
		border-radius: 0;
		width: 100vw;
		left: -20px;
		position: relative;
	}
	@keyframes op2{
		0%{opacity: 0;}
		100%{opacity: 0.1;}
	}
	#background{
		filter: brightness(0.5);
		background-position: center;
		background-size: cover;
		width: 100%;
		height: 100%;
		top:0 !important;
		left:0 !important;
	}
	#bg{
		filter: brightness(0.5);
		background-position: center;
		background-size: cover;
		width: 100%;
		height: 100%;
		left:0 !important;
	}
}
@media screen and (max-width: 570px) {
	#persontag{
		width: 100%;
		background-image: linear-gradient(to right,rgba(0,0,0,0.4),rgba(34, 34, 34, 0.4) 100%);
		padding: 20px 20px 20px calc(100vw - 340px);
	}
	.item span{left: 20px;}
	#persontag{z-index: 3;opacity: 1;}
	.find a {flex-basis: calc(50vw - 60px);}
}
@media screen and (max-width: 360px) {
	.find .item span{
		font-size: calc(8vw - 10px);
	}
	#persontag{
		font-size: calc(5.5vw - 4px);
		padding-left: 20px;
	}
}
@keyframes op1{
    0%{opacity:auto}
    100%{opacity: 0;}
}
@keyframes op2{
    0%{opacity: 0;}
    100%{opacity: auto;}
}
.ap{animation: op2 0.4s;}
.dap{animation: op1 0.4s;}
#terminal{
	display: none;
	width: 100%;
	height: 100%;
	position: relative;
}
.cursor {
	pointer-events: none;
	position: fixed;
	z-index: 10;
	display: block;
	transition: opacity .3s linear;
	opacity: 0;
	width: 12px;
	height: 12px;
	transform: translate(1px,1px);
  }
  
  .cursor.moving {
	opacity: 1;
  }
  
  .cursor::before {
	content: ' ';
	height: 100%;
	width: 100%;
	position: absolute;
	background-color: rgb(255, 255, 255);
	border-radius: 50%;
	top: 0;
	left: 0;
  
	opacity: 1;
	transition: opacity .3s linear;
	box-shadow: rgba(255, 255, 255, 0.5) 0 0 20px;
	transition: opacity 250ms linear, transform 300ms linear, border 300ms linear;
  }
  
  
  .cursor.expand::before {
	transform: scale(3);
	opacity: 0;
  }
  
  
   /* 鼠标样式 */
  .node {
	pointer-events: none;
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	display: block;
  
	transition: opacity .3s linear;
	opacity: 0;
  
	
	width: 16px;
	height: 16px;

  }
 
  .node.moving {
	opacity: 1;
	z-index: 9999; /* 显示在所有图层最上层 */
  }
  @media screen and (max-width: 768px), (display-mode: standalone) {
	* {
	  cursor: pointer;
	}
	
	a {
	  cursor: crosshair;
	}
	
	.button {
	  cursor: pointer;
	}
  }
  
  .node::before {
	content: ' ';
	height: 100%;
	width: 100%;
	position: absolute;
	background-color: transparent;
	border-radius: 50%;
	top: 0;
	left: 0;
	border: 1px solid #ffffff;
	transform: scale(1);
	opacity: 1;
	transition: opacity 150ms linear, transform 300ms cubic-bezier(0.68, -0.55, 0.27, 1.55), border 300ms linear, background-color 150ms linear;
  }
  

  .node.expand::before {
	transform: scale(1.0);
	background-color: #ffffff;
	opacity: 0.2;
  }
  /* 向下滑动提示 */
  .scroll-down {
	display: none;
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 500;
	font-size: 16px;
	color: #ffffff;
	text-align: center;
	opacity: 0.7;
}

.scroll-down span {
	display: block;
	margin-bottom: 5px;
}

.scroll-down svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}

@media (max-width: 768px) {
	.scroll-down {
		display: block;
	}
}
/* 数字时钟 */
.clock {
	display: none;
	position: fixed;
	top: 3%;
	right: 32%;
	text-align: center;
	font-size: 20px;
	color: #fbf7f7;
	background-color: #1514140c;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.198);
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
  }
  
  .clock.show {
	opacity: 1;
  }
  
  
  @media (min-width: 768px) {
	.clock {
	  display: block;
	}
  }
 /* footer */
 #footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	font-size: 10px;
	color: #f1ebeb;
	text-align: center;
	display: none; /* 初始时隐藏 */
  }
  
  /* 卡片式商品链接样式 - 适配横向滚动 */
  .card-grid {
      gap: 20px;
  }
  
  /* 非代码合集区域的卡片网格保持原有样式 */
  .card-grid:not(#code-collection) {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      padding: 20px;
  }
  
  .product-card {
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 20px;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  
  /* 商品图片链接样式 */
  .product-image-link {
      display: block;
      text-decoration: none;
      color: inherit;
      margin-bottom: 15px;
      border-radius: 8px;
      overflow: hidden;
  }
  
  .product-image {
      width: 100%;
      height: 150px;
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      background-size: cover;
      background-position: center;
      transition: transform 0.3s ease;
  }
  
  /* 鼠标悬停效果 */
  .product-image-link:hover .product-image {
      transform: scale(1.05);
  }
  
  .product-card h3 {
      color: white;
      margin-bottom: 10px;
      font-size: 1.2rem;
  }
  
  .product-card p {
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 15px;
      font-size: 0.9rem;
      line-height: 1.4;
  }
  
  .product-price {
      color: #ff6b6b;
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 15px;
  }
  
  .product-button {
      display: inline-block;
      background-color: #4ecdc4;
      color: white;
      padding: 10px 20px;
      border-radius: 25px;
      text-decoration: none;
      font-weight: bold;
      transition: background-color 0.3s ease;
  }
  
  .product-button:hover {
      background-color: #45b7aa;
      color: white;
      text-decoration: none;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
      .card-grid {
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 15px;
          padding: 10px;
      }
      
      .product-image {
          height: 150px;
      }
  }
