:root {
	color-scheme: light;
	--bg: #f4f0e8;
	--surface: #fffdf8;
	--surface-strong: #ffffff;
	--ink: #17201c;
	--muted: #617069;
	--line: #ddd4c6;
	--accent: #0d6b6f;
	--accent-strong: #084f52;
	--gold: #bd8b2d;
	--red: #a23c3c;
	--shadow: 0 22px 70px rgba(28, 36, 32, 0.12);
	--radius: 8px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	color: var(--ink);
	background:
		linear-gradient(135deg, rgba(13, 107, 111, 0.12), transparent 32rem),
		linear-gradient(315deg, rgba(189, 139, 45, 0.16), transparent 28rem),
		var(--bg);
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	content: "";
	background-image: radial-gradient(rgba(23, 32, 28, 0.08) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 70%);
}

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

button,
input {
	font: inherit;
}

.site-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 36px;
}

.hero {
	position: relative;
	overflow: hidden;
	padding: 20px;
	border: 1px solid rgba(221, 212, 198, 0.82);
	border-radius: var(--radius);
	background:
		linear-gradient(120deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.78)),
		url("../image/hyper.jpg") center/cover;
	box-shadow: var(--shadow);
}

.topbar,
.hero-grid,
.meta-strip,
.toolbar,
.toolbar-controls,
.nav-actions,
.profile-panel,
.meta-item,
.search-box,
.site-footer,
.link-card,
.link-avatar,
.card-footer,
.stats {
	display: flex;
}

.topbar {
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 46px;
}

.brand {
	align-items: center;
	display: inline-flex;
	gap: 10px;
	font-weight: 800;
	letter-spacing: 0;
}

.brand-mark {
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 8px;
	color: #fff;
	background: var(--ink);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
}

.nav-actions {
	align-items: center;
	gap: 8px;
}

.nav-actions a,
.empty-state button,
.pagination button {
	min-height: 38px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.74);
	color: var(--ink);
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-actions a {
	padding: 9px 13px;
	font-size: 0.92rem;
	font-weight: 650;
}

.hero-grid {
	align-items: stretch;
	justify-content: space-between;
	gap: 28px;
}

.profile-panel {
	align-items: center;
	gap: 24px;
	max-width: 760px;
}

.author-avatar {
	width: clamp(92px, 14vw, 148px);
	height: clamp(92px, 14vw, 148px);
	flex: 0 0 auto;
	border: 4px solid rgba(255, 255, 255, 0.82);
	border-radius: 50%;
	box-shadow: 0 18px 40px rgba(23, 32, 28, 0.18);
	object-fit: cover;
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--accent-strong);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

h1,
h2,
p,
blockquote {
	margin: 0;
}

h1 {
	font-size: clamp(2.35rem, 7vw, 5.8rem);
	line-height: 0.95;
	letter-spacing: 0;
}

.intro {
	max-width: 660px;
	margin-top: 20px;
	color: #37423d;
	font-size: clamp(1rem, 2.4vw, 1.2rem);
	line-height: 1.85;
}

.poem-panel {
	width: min(100%, 330px);
	min-height: 210px;
	padding: 20px;
	border: 1px solid rgba(221, 212, 198, 0.8);
	border-radius: var(--radius);
	background: rgba(255, 253, 248, 0.78);
	backdrop-filter: blur(12px);
}

.panel-label {
	display: inline-block;
	margin-bottom: 22px;
	color: var(--red);
	font-size: 0.8rem;
	font-weight: 750;
}

blockquote {
	color: var(--ink);
	font-family: Georgia, "Times New Roman", "Songti SC", serif;
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	font-weight: 700;
	line-height: 1.45;
}

cite {
	display: block;
	margin-top: 16px;
	color: var(--muted);
	font-style: normal;
}

.meta-strip {
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 38px;
}

.meta-item {
	align-items: center;
	min-width: 0;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid rgba(221, 212, 198, 0.86);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.68);
	color: #38443e;
	font-size: 0.94rem;
	font-weight: 620;
}

.meta-item span:last-child {
	overflow-wrap: anywhere;
}

.meta-icon {
	display: inline-grid;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 6px;
	background: rgba(13, 107, 111, 0.12);
	color: var(--accent-strong);
	font-weight: 800;
}

.content {
	margin-top: 22px;
	padding: 24px;
	border: 1px solid rgba(221, 212, 198, 0.78);
	border-radius: var(--radius);
	background: rgba(255, 253, 248, 0.9);
	box-shadow: 0 16px 52px rgba(28, 36, 32, 0.08);
}

.toolbar {
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

h2 {
	font-size: clamp(1.6rem, 4vw, 2.45rem);
	line-height: 1.05;
}

.toolbar-controls {
	align-items: center;
	gap: 10px;
}

.search-box {
	align-items: center;
	width: min(48vw, 360px);
	height: 44px;
	gap: 10px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--muted);
}

.search-box input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
}

.stats {
	align-items: center;
	justify-content: center;
	min-width: 98px;
	height: 44px;
	gap: 5px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--ink);
	color: #fff;
	font-size: 0.9rem;
}

.stats strong {
	font-size: 1.2rem;
}

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

.link-card {
	position: relative;
	min-height: 170px;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
	border: 1px solid rgba(221, 212, 198, 0.9);
	border-radius: var(--radius);
	background: var(--surface-strong);
	box-shadow: 0 12px 26px rgba(28, 36, 32, 0.05);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover,
.link-card:focus-visible {
	border-color: rgba(13, 107, 111, 0.45);
	box-shadow: 0 18px 36px rgba(28, 36, 32, 0.1);
	transform: translateY(-3px);
}

.card-head {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.link-avatar {
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #f4f0e8;
}

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

.link-avatar span {
	color: var(--accent-strong);
	font-size: 1.35rem;
	font-weight: 850;
}

.link-card h3 {
	overflow: hidden;
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.domain {
	overflow: hidden;
	margin-top: 4px;
	color: var(--accent-strong);
	font-size: 0.82rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.description {
	display: -webkit-box;
	overflow: hidden;
	min-height: 48px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.card-footer {
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid rgba(221, 212, 198, 0.72);
	color: var(--muted);
	font-size: 0.83rem;
	font-weight: 700;
}

.card-footer span:last-child {
	color: var(--gold);
	font-size: 1rem;
}

.empty-state {
	padding: 42px 16px;
	text-align: center;
}

.empty-state p {
	margin-bottom: 14px;
	color: var(--muted);
}

.empty-state button,
.pagination button {
	padding: 8px 13px;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.pagination:empty {
	display: none;
}

.pagination button[aria-current="page"] {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.nav-actions a:hover,
.empty-state button:hover,
.pagination button:hover {
	border-color: var(--accent);
	background: rgba(13, 107, 111, 0.1);
	color: var(--accent-strong);
	transform: translateY(-1px);
}

.site-footer {
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 24px;
	color: #5f6d66;
	font-size: 0.82rem;
}

.site-footer a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

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

@media (max-width: 900px) {
	.hero-grid,
	.toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.poem-panel,
	.search-box {
		width: 100%;
	}

	.links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.toolbar-controls {
		align-items: stretch;
	}
}

@media (max-width: 620px) {
	.site-shell {
		width: min(100% - 20px, 1180px);
		padding-top: 10px;
	}

	.hero,
	.content {
		padding: 14px;
	}

	.topbar,
	.profile-panel,
	.toolbar-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.topbar {
		padding-bottom: 30px;
	}

	.nav-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nav-actions a {
		text-align: center;
	}

	.profile-panel {
		gap: 16px;
	}

	.author-avatar {
		width: 96px;
		height: 96px;
	}

	.meta-strip {
		display: grid;
		grid-template-columns: 1fr;
	}

	.links {
		grid-template-columns: 1fr;
	}

	.stats {
		width: 100%;
	}
}
