:root {
	--ink: #050607;
	--ink-soft: #0a0d10;
	--paper: #f2efe7;
	--paper-dim: #a5a9aa;
	--line: rgba(242, 239, 231, 0.12);
	--line-strong: rgba(242, 239, 231, 0.22);
	--cyan: #8fdfe9;
	--gold: #d6bd82;
	--coral: #e89c89;
	--content-width: 1440px;
}

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

html {
	scroll-behavior: smooth;
	background: var(--ink);
}

body {
	min-width: 320px;
	min-height: 100%;
	overflow-x: hidden;
	color: var(--paper);
	background: var(--ink);
	font-family: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body::after {
	position: fixed;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	content: "";
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 20%, transparent 78%, rgba(255, 255, 255, 0.012));
}

::selection {
	color: var(--ink);
	background: var(--cyan);
}

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

button,
input,
textarea,
select {
	color: inherit;
	font: inherit;
}

button {
	border: 0;
}

svg {
	display: block;
}

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

.ambient-canvas {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.page-grid {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.65;
	background-image:
		linear-gradient(rgba(242, 239, 231, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242, 239, 231, 0.035) 1px, transparent 1px);
	background-size: 96px 96px;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
}

.cursor-light {
	position: fixed;
	top: var(--pointer-y, 50%);
	left: var(--pointer-x, 50%);
	z-index: 2;
	width: min(520px, 100vw);
	height: min(520px, 100vw);
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle, rgba(143, 223, 233, 0.085), rgba(143, 223, 233, 0) 68%);
	transform: translate(-50%, -50%);
	transition: opacity 400ms ease;
}

body.has-pointer .cursor-light {
	opacity: 1;
}

.page-shell {
	position: relative;
	z-index: 4;
	display: flex;
	flex-direction: column;
	width: min(100%, var(--content-width));
	min-height: 100vh;
	min-height: 100svh;
	padding: 0 clamp(22px, 4.5vw, 72px);
	margin: 0 auto;
}

.site-header {
	position: relative;
	display: grid;
	grid-template-columns: minmax(150px, 1fr) auto minmax(170px, 1fr);
	align-items: center;
	gap: clamp(18px, 2.6vw, 42px);
	min-height: 100px;
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transform: translateY(-12px);
}

body.is-ready .site-header {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
}

.brand-mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	color: var(--ink);
	background: var(--paper);
	border-radius: 6px;
	font-family: "STKaiti", "KaiTi", serif;
	font-size: 24px;
	line-height: 1;
	transition: color 250ms ease, background-color 250ms ease, transform 250ms ease;
}

.brand:hover .brand-mark {
	color: var(--ink);
	background: var(--cyan);
	transform: rotate(-6deg);
}

.brand-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.brand-copy strong {
	font-size: 17px;
	font-weight: 600;
}

.brand-copy small {
	color: var(--paper-dim);
	font-family: "Segoe UI", sans-serif;
	font-size: 10px;
}

.header-tools {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: clamp(15px, 2.6vw, 34px);
}

.quick-access {
	display: grid;
	grid-template-columns: repeat(3, minmax(145px, 1fr));
	gap: 10px;
	width: min(100%, 660px);
}

.quick-link {
	--quick-accent: var(--cyan);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	min-height: 46px;
	padding: 0 15px;
	overflow: hidden;
	color: #d8d6cf;
	background: rgba(242, 239, 231, 0.035);
	border: 1px solid var(--line);
	border-radius: 6px;
	transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.quick-link--gold {
	--quick-accent: var(--gold);
}

.quick-link--coral {
	--quick-accent: var(--coral);
}

.quick-link:hover {
	color: var(--paper);
	background: color-mix(in srgb, var(--quick-accent) 10%, rgba(242, 239, 231, 0.035));
	border-color: color-mix(in srgb, var(--quick-accent) 45%, var(--line));
	transform: translateY(-2px);
}

.quick-index {
	color: var(--quick-accent);
	font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 10px;
}

.quick-label {
	overflow: hidden;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.quick-link svg {
	width: 14px;
	height: 14px;
	stroke: #737b7d;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 250ms ease, transform 250ms ease;
}

.quick-link:hover svg {
	stroke: var(--quick-accent);
	transform: translateX(2px);
}

.live-status {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #c6ceca;
	font-size: 13px;
}

.live-dot {
	position: relative;
	width: 7px;
	height: 7px;
	background: #8fd3a5;
	border-radius: 50%;
	box-shadow: 0 0 14px rgba(143, 211, 165, 0.8);
}

.live-dot::after {
	position: absolute;
	inset: -4px;
	content: "";
	border: 1px solid rgba(143, 211, 165, 0.35);
	border-radius: 50%;
	animation: status-pulse 2.4s ease-out infinite;
}

.clock {
	min-width: 66px;
	color: var(--paper-dim);
	font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 13px;
	text-align: center;
}

.quick-link:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 4px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
	grid-template-areas:
		"main index"
		"main signal";
	gap: clamp(30px, 5vh, 54px) clamp(48px, 7vw, 108px);
	align-items: start;
	min-height: calc(100svh - 100px);
	padding: clamp(70px, 9vh, 118px) 0 clamp(64px, 8vh, 100px);
}

.hero-main {
	grid-area: main;
	position: relative;
	align-self: center;
}

.server-index {
	grid-area: index;
	align-self: start;
	min-width: 0;
	padding: 15px 16px 16px;
	background: linear-gradient(135deg, rgba(19, 24, 28, 0.7), rgba(8, 11, 14, 0.62));
	border: 1px solid var(--line);
	border-radius: 8px;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	opacity: 0;
	transform: translateY(14px);
}

.server-tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 7px;
}

.server-tab {
	min-height: 40px;
	padding: 0 7px;
	cursor: pointer;
	color: #929a9b;
	background: rgba(242, 239, 231, 0.025);
	border: 1px solid var(--line);
	border-radius: 5px;
	font-size: 11px;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.server-tab:hover {
	color: var(--paper);
	border-color: var(--line-strong);
}

.server-tab.is-active {
	color: var(--ink);
	background: var(--cyan);
	border-color: var(--cyan);
}

.server-tab:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 3px;
}

.server-panels {
	min-height: 46px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.server-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.server-panel[hidden] {
	display: none;
}

.server-panel.is-active {
	animation: server-reveal 220ms ease both;
}

.server-panel span {
	padding: 6px 9px;
	color: #aeb4b4;
	background: rgba(242, 239, 231, 0.04);
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 11px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: clamp(34px, 5vh, 58px);
	color: #8d9596;
	font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	opacity: 0;
	transform: translateY(12px);
}

.eyebrow-line {
	width: 44px;
	height: 1px;
	background: var(--line-strong);
}

.logo-stage {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: clamp(110px, 17vw, 250px);
	opacity: 0;
	transform: translateY(20px) scale(0.985);
}

.logo-stage::before {
	position: absolute;
	top: 50%;
	left: -0.035em;
	z-index: -1;
	width: 100%;
	overflow: hidden;
	color: transparent;
	content: "CREATE";
	font-family: "Arial Black", Impact, sans-serif;
	font-size: clamp(72px, 10vw, 170px);
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
	-webkit-text-stroke: 1px rgba(242, 239, 231, 0.055);
	transform: translateY(-50%);
}

.hero-logo {
	display: block;
	width: clamp(280px, 39vw, 608px);
	height: auto;
	filter: drop-shadow(0 18px 42px rgba(143, 223, 233, 0.08));
}

.hero-copy {
	margin-top: clamp(30px, 4.5vh, 56px);
	opacity: 0;
	transform: translateY(16px);
}

.motto {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #d9d8d1;
	font-family: "Songti SC", "SimSun", serif;
	font-size: clamp(22px, 2.2vw, 31px);
	font-weight: 400;
}

.motto-line {
	display: block;
	width: 54px;
	height: 1px;
	background: linear-gradient(90deg, var(--gold), transparent);
}

.intro {
	max-width: 580px;
	margin-top: 20px;
	color: #8f9697;
	font-size: 15px;
	line-height: 1.9;
}

.signal-panel {
	grid-area: signal;
	position: relative;
	align-self: end;
	margin-top: clamp(18px, 3vh, 34px);
	padding: 24px 0 8px 28px;
	border-left: 1px solid var(--line);
	opacity: 0;
	transform: translateX(16px);
}

.signal-panel::before {
	position: absolute;
	top: -1px;
	left: -1px;
	width: 42px;
	height: 1px;
	content: "";
	background: var(--cyan);
}

.signal-label,
.section-kicker {
	color: #777f81;
	font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
}

.greeting {
	margin-top: 23px;
	font-family: "Songti SC", "SimSun", serif;
	font-size: clamp(34px, 3.3vw, 50px);
	font-weight: 400;
}

.date-line {
	margin-top: 10px;
	color: var(--paper-dim);
	font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
}

.signal-rule {
	width: 100%;
	height: 1px;
	margin: 30px 0 24px;
	background: var(--line);
}

.visitor-context {
	display: grid;
	gap: 11px;
	margin-bottom: 25px;
}

.visitor-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: #a8afaf;
	font-size: 13px;
	line-height: 1.55;
}

.visitor-row > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.visitor-icon {
	display: grid;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	place-items: center;
	color: var(--cyan);
	background: rgba(143, 223, 233, 0.07);
	border: 1px solid rgba(143, 223, 233, 0.14);
	border-radius: 5px;
}

.visitor-icon svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.signal-note {
	color: #9da2a1;
	font-size: 14px;
	line-height: 2;
}

.signal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 28px;
}

.signal-tags span {
	padding: 5px 9px;
	color: #858c8d;
	background: rgba(242, 239, 231, 0.035);
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 11px;
}

body.is-ready .eyebrow,
body.is-ready .logo-stage,
body.is-ready .hero-copy,
body.is-ready .server-index,
body.is-ready .signal-panel {
	opacity: 1;
	transform: none;
	transition: opacity 900ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-ready .eyebrow {
	transition-delay: 100ms;
}

body.is-ready .logo-stage {
	transition-delay: 180ms;
}

body.is-ready .hero-copy {
	transition-delay: 270ms;
}

body.is-ready .signal-panel {
	transition-delay: 340ms;
}

body.is-ready .server-index {
	transition-delay: 300ms;
}

@keyframes server-reveal {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.portals {
	padding: 28px 0 clamp(88px, 11vh, 140px);
	border-top: 1px solid var(--line);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 40px;
}

.section-heading h2 {
	margin-top: 12px;
	font-family: "Songti SC", "SimSun", serif;
	font-size: clamp(28px, 3.2vw, 46px);
	font-weight: 400;
}

.section-heading > p {
	max-width: 250px;
	color: #737b7d;
	font-size: 12px;
	text-align: right;
}

.portal-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.portal-item {
	--portal-accent: var(--cyan);
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	min-height: 148px;
	padding: 24px;
	overflow: hidden;
	background: rgba(12, 15, 18, 0.62);
	border: 1px solid var(--line);
	border-radius: 8px;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	transition: border-color 300ms ease, background-color 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-item::before {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 90px;
	height: 90px;
	pointer-events: none;
	content: "";
	background: linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--portal-accent) 14%, transparent));
	opacity: 0.55;
	transition: opacity 300ms ease, transform 300ms ease;
	transform: translate(20%, 20%);
}

.portal-item--gold {
	--portal-accent: var(--gold);
}

.portal-item--coral {
	--portal-accent: var(--coral);
}

.portal-item:hover {
	background: rgba(16, 20, 23, 0.86);
	border-color: color-mix(in srgb, var(--portal-accent) 44%, var(--line));
	transform: translateY(-5px);
}

.portal-item:hover::before {
	opacity: 1;
	transform: translate(0, 0);
}

.portal-index {
	align-self: start;
	color: var(--portal-accent);
	font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 10px;
}

.portal-content {
	display: flex;
	flex-direction: column;
	gap: 11px;
	min-width: 0;
}

.portal-content strong {
	font-family: "Songti SC", "SimSun", serif;
	font-size: clamp(19px, 1.65vw, 24px);
	font-weight: 400;
}

.portal-content > span {
	color: #7f8789;
	font-size: 12px;
	line-height: 1.65;
}

.portal-arrow {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.portal-arrow svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.portal-item:hover .portal-arrow {
	color: var(--ink);
	background: var(--portal-accent);
	border-color: var(--portal-accent);
	transform: translateX(3px);
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
	margin-top: auto;
	color: #606769;
	border-top: 1px solid var(--line);
	font-size: 11px;
}

.site-footer p {
	line-height: 1.7;
}

.site-footer a {
	color: #969c9d;
	white-space: nowrap;
	transition: color 200ms ease;
}

.site-footer a:hover {
	color: var(--paper);
}

@keyframes status-pulse {
	0% {
		opacity: 0.9;
		transform: scale(0.7);
	}
	70%,
	100% {
		opacity: 0;
		transform: scale(1.7);
	}
}

@media (max-width: 980px) {
	.page-grid {
		background-size: 72px 72px;
	}

	.site-header {
		grid-template-columns: auto 1fr;
		gap: 12px 24px;
		min-height: auto;
		padding: 16px 0 14px;
	}

	.quick-access {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
	}

	.hero {
		grid-template-columns: 1fr;
		grid-template-areas:
			"main"
			"index"
			"signal";
		gap: 64px;
		align-items: start;
		min-height: auto;
		padding-top: clamp(72px, 12vh, 120px);
	}

	.hero-main,
	.server-index,
	.signal-panel {
		grid-area: auto;
	}

	.logo-stage {
		min-height: auto;
	}

	.hero-logo {
		width: min(78vw, 560px);
	}

	.signal-panel {
		display: grid;
		grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1fr);
		column-gap: 36px;
		align-items: start;
		width: min(100%, 660px);
		margin-top: 0;
		padding: 26px 0 0;
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.signal-panel::before {
		top: -1px;
	}

	.signal-label {
		grid-column: 1;
	}

	.greeting {
		grid-column: 1;
		margin-top: 18px;
	}

	.date-line {
		grid-column: 1;
	}

	.signal-rule {
		display: none;
	}

	.signal-note {
		grid-column: 2;
		grid-row: 1 / span 2;
		padding-top: 2px;
	}

	.signal-tags {
		grid-column: 2;
		margin-top: 22px;
	}

	.server-index {
		width: min(100%, 720px);
	}

	.portal-list {
		grid-template-columns: 1fr;
	}

	.portal-item {
		min-height: 118px;
	}
}

@media (max-width: 680px) {
	.page-shell {
		padding: 0 20px;
	}

	.site-header {
		display: grid;
		grid-template-columns: auto 1fr;
		min-height: auto;
		padding: 13px 0 12px;
	}

	.brand-copy small,
	.live-status,
	.clock {
		display: none;
	}

	.header-tools {
		display: none;
	}

	.quick-access {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.quick-link {
		gap: 6px;
		min-height: 42px;
		padding: 0 9px;
	}

	.quick-label {
		font-size: 13px;
	}

	.server-index {
		padding: 13px;
	}

	.server-tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.server-tab {
		min-height: 34px;
		padding: 0 6px;
		font-size: 11px;
	}

	.hero {
		gap: 52px;
		padding: 58px 0 72px;
	}

	.eyebrow {
		margin-bottom: 36px;
	}

	.logo-stage::before {
		font-size: clamp(64px, 24vw, 110px);
	}

	.hero-logo {
		width: min(88vw, 480px);
	}

	.hero-copy {
		margin-top: 28px;
	}

	.motto {
		gap: 11px;
	}

	.motto-line {
		width: 34px;
	}

	.intro {
		margin-top: 16px;
		font-size: 13px;
		line-height: 1.85;
	}

	.signal-panel {
		display: block;
		padding-top: 24px;
	}

	.greeting {
		margin-top: 18px;
	}

	.signal-note {
		margin-top: 26px;
	}

	.signal-tags {
		margin-top: 20px;
	}

	.portals {
		padding-bottom: 74px;
	}

	.section-heading {
		display: block;
		margin-bottom: 28px;
	}

	.section-heading > p {
		margin-top: 12px;
		text-align: left;
	}

	.portal-item {
		grid-template-columns: auto minmax(0, 1fr) 30px;
		gap: 13px;
		min-height: 112px;
		padding: 20px 18px;
	}

	.portal-arrow {
		width: 30px;
		height: 30px;
	}

	.portal-content {
		gap: 7px;
	}

	.site-footer {
		display: block;
		padding: 24px 0;
		line-height: 1.8;
	}

	.site-footer a {
		display: inline-block;
		margin-top: 10px;
	}
}

@media (max-width: 420px) {
	.quick-index,
	.quick-link svg {
		display: none;
	}

	.quick-link {
		display: flex;
		justify-content: center;
	}
}

@media (hover: none) {
	.cursor-light {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.cursor-light {
		display: none;
	}
}
