:root {
	--speed: 10s;
	--transition: 0.15s;
    --banner-height: 200px;
}

*,
*:after,
*:before {
	box-sizing: border-box;
}

.nav{
    background-color: rgba(40, 40, 40, 0.1);
    padding: 20px 10px !important;
}
.nav li a{
    color: #000 !important;
}
.nav li a.active{
    border-bottom: 1px solid #000 !important;
}
header.nav .logo img{
    display: block !important;
}

.window {
	display: grid;
	place-items: center;
    height: var(--banner-height);
    color: hsl(0 0% 10%);
	font-family: "Geist Sans", "SF Pro Text", "SF Pro Icons", "AOS Icons", "Helvetica Neue", Helvetica, Arial, sans-serif, system-ui;
	background-image:
		radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.15) 0px, transparent 0%), 
    radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 0.15) 0px, transparent 50%),
    radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.15) 0px, transparent 50%),
    radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 0.15) 0px, transparent 50%),
    radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 0.15) 0px, transparent 50%),
    radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 0.15) 0px, transparent 50%),
    radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 0.15) 0px, transparent 50%);
	background-color: hsl(0 0% 100%);
	font-weight: 80;
	transition: background-color 0.25s, color 0.25s;
}

main {
  width: 100%;
}

:root:has(#theme:checked) :is(body, .controls, .item) {
	background-color: hsl(0 0% 10%);
	color: hsl(0 0% 100%);
	border-color: hsl(0 0% 25%);
}
:root:has(#theme:checked) article {
	background-color: hsl(0 0% 10%);
	color: hsl(0 0% 100%);
	border-color: hsl(0 0% 25%);
	box-shadow: 0 10px 20px -5px hsl(0 0% 0% / 0.5);
}
:root:has(#theme:checked) .item {
	background-color: black;
}
:root:has(#theme:checked) li::before {
	background-color: black;
}

article {
	width: 100vw;
    height: var(--banner-height);
	box-shadow: 0 10px 20px -5px hsl(0 0% 50% / 0.5);
	background: hsl(0 0% 100%);
	resize: horizontal;
	overflow: hidden;
    container-type: inline-size;
	transition: background-color 0.25s, color 0.25s, border 0.25s, box-shadow 0.25s;
}
h2 {
	display: flex;
	gap: 0.25ch;
	font-size: clamp(1.5rem, 4cqi + 1rem, 3rem);
	font-weight: 160;
	margin: 0;
	grid-column: 1 / -1;
}

h2 span:last-of-type {
	display: inline-block;
	background: linear-gradient(to right, #9333ea, #db2777, #9333ea) 0 0 / 400% 100% no-repeat;
	background-clip: text;
	color: transparent;
	animation: shade 4s infinite linear;
}

@keyframes shade {
	to {
		background-position: 100% 0;
	}
}

article a {
	align-self: start;
	text-decoration: none;
	justify-self: end;
	border-radius: 100px;
	padding: 0.5rem 2rem;
	border: 0;
	color: hsl(0 0% 100%);
	font-weight: 120;
	cursor: pointer;
	background: linear-gradient(to right, #9333ea, #db2777) 0 0 / 200% 100% no-repeat;
	transition: background-position 0.15s;
}

article a:is(:hover, :focus-visible) {
	background-position: 100% 0;
}

p {
	margin: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

[for=theme] {
	width: 48px;
	aspect-ratio: 1;
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	display: grid;
	place-items: center;
}

[for=theme] svg {
	width: 75%;
}

#theme + svg path:first-of-type,
#theme:checked + svg path:last-of-type {
	opacity: 0;
}
#theme:checked + svg path:first-of-type {
	opacity: 1;
}

.controls {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	padding: 1rem;
	border: 1px solid hsl(0 0% 90%);
	border-radius: 6px;
	background: hsl(0 0% 100%);
	position: fixed;
	top: 1rem;
	right: 1rem;
    z-index: 2;
	display: none;
}

label, input {
	accent-color: #db2777;
	cursor: pointer;
}

/*	border: 2px solid red;*/
.window {
    position: absolute;
    top: 0;
    left: 0;
	height: var(--banner-height);
	container-type: inline-size;
	transform-style: preserve-3d;
	width: 100%;
	outline: 4px dashed transparent;
	transition: outline 0.5s;
}

.scene {
	--buff: 3rem;
	height: 100%;
	width: 100%;
	mask:
		linear-gradient(transparent, white var(--buff) calc(100% - var(--buff)), transparent),
		linear-gradient(90deg, transparent, white var(--buff) calc(100% - var(--buff)), transparent);
	mask-composite: intersect;
}

:root:has(#overflow:checked) .scene {
	mask: unset;
}
:root:has(#overflow:checked) .window {
	outline: 4px dashed #db2777;
}

article{
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-header {
    height: var(--banner-height);
    /* border: 1px solid red; */
    z-index: 5;
    font-family: monospace;
}

.my-header h2{
    font-family: Verdana;
}

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

.glass-bg{
    position: absolute;
    bottom: 4px;
    left: auto;
    padding: 10px 40px;
    background-color: rgba(40, 40, 40, 0.1);
    border-radius: 15px;
}

.divider{
    width: 300px;
    height: 2px;
    background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0.25));
    margin-top: 3px;
    margin-bottom: 8px;
}

.dev-link {
	width: 48px;
	aspect-ratio: 1;
	position: fixed;
	top: 1rem;
	left: 1rem;
	display: grid;
	place-items: center;
	color: currentColor;
}

.dev-link svg {
	width: 75%;
}

.grid {
	--count: 6; /* The number of items you have */
	--inset: 0; /* Controls the grid animation offset on entry/exit */
	--outset: 2.5;
	height: 100%;
	width: 100%;
	margin: 0;
	list-style-type: none;
	position: relative;
	display: grid;
	padding: 0 1rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 2rem;
	transition: transform 0.5s;
	/*	3D translation */
	transform:
		rotateX(calc(var(--rotate, 0) * 20deg))
		rotateZ(calc(var(--rotate, 0) * -20deg))
		skewX(calc(var(--rotate, 0) * 20deg));
}

:root:has(#dimension:checked) .grid {
	--rotate: 1;
}

.window li {
	min-height: 60px;
	transform-style: preserve-3d;
	width: 100%;
	z-index: calc(1 + var(--active));
}
.window li::before {
	content: "";
	position: absolute;
	inset: 4px 4px -2px -2px;
	border-radius: 6px;
	background: hsl(0 0% 0% / 0.1);
	filter: blur(calc(var(--active, 0) * 8px));
	z-index: -1;
	transition: scale var(--transition), opacity var(--transition), translate var(--transition), filter var(--transition);
	transform-origin: 50% 0;
	scale: 1 calc(1 + (var(--active, 0) * 0.05));
	--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
}

.grid:hover li {
	animation-play-state: paused;
}

.grid {
	transform-style: preserve-3d;
	gap: 1rem;
}

.item {
	align-items: center;
	background: hsl(0 0% 100%);
	border: 1px solid hsl(0 0% 90%);
	color: hsl(0 0% 10%);
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	gap: 1rem;
/*	height: 100%;*/
	justify-content: start;
	overflow: hidden;
	padding: 1.25rem;
	text-align: center;
	width: 100%;
	height: fit-content;
	transition: transform var(--transition), scale var(--transition), background-color 0.25s, color 0.25s, border 0.25s, box-shadow 0.25s;;
	scale: calc(1 + (var(--active, 0) * 0.05));
	transform: translate3d(0, 0, calc(var(--active, 0) * 24px));
}
.item__icon {
	width: 24px;
	color: rgb(124, 58, 237);
}
.item__text {
	flex: 1;
	text-align: center;
}

li:nth-of-type(1) { --index: 0; }
li:nth-of-type(2) { --index: 0; }
li:nth-of-type(3) { --index: 1; }
li:nth-of-type(4) { --index: 1; }
li:nth-of-type(5) { --index: 2; }
li:nth-of-type(6) { --index: 2; }
li:nth-of-type(7) { --index: 3; }
li:nth-of-type(8) { --index: 3; }
li:nth-of-type(9) { --index: 4; }
li:nth-of-type(10) { --index: 4; }
li:nth-of-type(11) { --index: 5; }
li:nth-of-type(12) { --index: 5; }

@media(prefers-reduced-motion: no-preference) {
	.grid {
		gap: 0 2rem;
	}

	.window li {
		--duration: calc(var(--speed) * 1);
		--delay: calc((var(--duration) / var(--count)) * (var(--index, 0) - 8));
		animation: slide var(--duration) var(--delay) infinite linear;
		translate: 0% calc(((var(--count) - var(--index)) + var(--inset, 0)) * 100%);
	}
	li:hover {
		--active: 1;
	}
	@keyframes slide {
		100% {
			translate: 0% calc(calc((var(--index) + var(--outset, 0)) * -100% - 100px));
		}
	}
	@container (width < 400px) {
		.window li {
			--duration: calc(var(--speed) * 2);
			--delay: calc((var(--duration) / var(--count)) * (var(--index, 0) - 8));
		}
	}
}

#item-sec{
    width: 100vw;
}

.sec-bar{
    width: 100vw;
    height: 35px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    white-space: nowrap;
    font-family: system-ui;
}

.sec-area{
    width: calc(100% - 100px);
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: auto;
    padding: 2px 4px;
    /* border: 1px solid red; */
}

.sec-btn{
    background-color: #30fc4e;
    padding: 2px 8px;
    font-family: monospace;
    border-radius: 3px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sec-btn i{
    margin-left: 5px;
    color: #444;
    font-size: 11px;
}

.sec-item{
    position: relative;
    padding: 2px 6px;
    padding-right: 14px;
    border-radius: 3px;
    margin-left: 4px;
    background-color: rgba(70, 70, 70, 0.05);
    cursor: default;
}

.sec-counter{
    width: 15px;
    height: 15px;
    font-size: 9px;
    border-radius: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: #444;
    color: #fff;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sec-item:hover,
.sec-item.active{
    box-shadow: 0 0 2px #000;
    background-color: rgba(50, 50, 50, 0.1);
}

.typing-container{
    height: 20px;
}

.cursor 
{
  display: inline-block;
  /* margin-left: 2px; */
  color: #000;
  animation: blink 0.6s step-end infinite;
}
@keyframes blink 
{
  50%
  {
    opacity: 0;
  }
}


.card-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    width: 100%;
    min-width: 0;
    height: max-content;
    overflow:hidden;
    padding: 40px;
    gap: 40px;
    /* border: 1px solid red; */
}

.card{
    width: 320px;
    height: 370px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 8px 6px #07111b0d;
    transition: box-shadow 200ms ease-in;
}

.card-banner {
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 12rem;
    overflow:hidden;
}
.card:hover{
    box-shadow: 0 3px 14px 15px #060d130d;
}

.card:hover img{
    transform: scale(1.1);
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 250ms ease-in;
}

.card-header{
    box-sizing: border-box;
    padding: .88rem 1.166rem;
    display: flex;
    flex-direction: column;
    gap: .66rem;
    width: 100%;
    height:max-content
}

.card-h3{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.card-neon{
    flex-shrink: 0;
    box-sizing: border-box;
    width: max-content;
    font-size: .875rem;
    font-weight: 700;
    --gradient-color-1: #a32cc4;
    --gradient-color-2: #b65fcf;
    --gradient-color-3: #e39ff6;
    background: linear-gradient(118deg, var(--gradient-color-1), var(--gradient-color-2) 26%, var(--gradient-color-3));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color:transparent;
    font-family: system-ui;
}

/* 第一张卡片 */
.card-grid .card:nth-child(1) .card-neon {
  --gradient-color-1: #a32cc4;
  --gradient-color-2: #b65fcf;
  --gradient-color-3: #e39ff6;
}

/* 第二张卡片 */
.card-grid .card:nth-child(2) .card-neon {
  --gradient-color-1: #f48600;
  --gradient-color-2: #ffa12e;
  --gradient-color-3: #ffe9c9;
}

/* 第三张卡片 */
.card-grid .card:nth-child(3) .card-neon {
  --gradient-color-1: #6270ee;
  --gradient-color-2: #2b90d9;
  --gradient-color-3: #37dede;
}

/* 第四张卡片 */
.card-grid .card:nth-child(4) .card-neon {
  --gradient-color-1: #006633;
  --gradient-color-2: #00cc66;
  --gradient-color-3: #66ff99;
}

/* 第五张卡片 */
.card-grid .card:nth-child(5) .card-neon {
  --gradient-color-1: #f02d85;
  --gradient-color-2: #f95ba5;
  --gradient-color-3: #f4bdd0;
}

.card-time{
    box-sizing: border-box;
    margin-top: auto;
    font-size: .805rem;
    font-weight: 400;
    width:max-content;
}

.card-title{
    box-sizing: border-box;
    width: 100%;
    height: max-content;
    overflow: hidden;
    font-size: 1.06rem;
    font-weight: 600;
    transition: color .18s;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.card-title:hover{
    color: #00cc66;
    cursor: default;
}

.card-desc{
    height: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    padding: 0 1.166rem;
    width: 100%;
    color: #6f5460;
    font-size: .805rem;
    font-weight: 400;
    letter-spacing: .88px;
    line-height:1.28rem;
}

.card-tagarea{
    margin-top: auto;
    box-sizing: border-box;
    width: 100%;
    height: max-content;
    overflow:hidden;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.card-tag{
    box-sizing: border-box;
    margin-right: .88rem;
    color: #000;
    font-size: .688rem;
    font-weight: 400;
    transition:color .18s
}

.card-tag:hover {
    color: #00cc66;
}

.card-tag::before {
    content: "#"
}

.card-tag:nth-last-of-type(1) {
    margin-right:0
}