/* Book Tools Hub — navigation portal */

@font-face {
	font-family: "BookTools Hub Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: local("PingFang SC"), local("Hiragino Sans GB"), local("Noto Sans SC"), local("Microsoft YaHei");
}

:root {
	--bth-ink: #1a2332;
	--bth-muted: #5a6578;
	--bth-line: rgba(26, 35, 50, 0.1);
	--bth-surface: rgba(255, 255, 255, 0.78);
	--bth-orange: #e85d2a;
	--bth-teal: #0d6e63;
	--bth-bg-1: #e8eef5;
	--bth-bg-2: #f4f0e8;
}

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

body.booktools-hub-page {
	margin: 0;
	min-height: 100vh;
	color: var(--bth-ink);
	font-family: "BookTools Hub Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
	background:
		radial-gradient(900px 480px at 8% -8%, rgba(232, 93, 42, 0.14), transparent 55%),
		radial-gradient(800px 420px at 92% 4%, rgba(13, 110, 99, 0.14), transparent 50%),
		linear-gradient(165deg, var(--bth-bg-1) 0%, var(--bth-bg-2) 55%, #eef2f7 100%);
	background-attachment: fixed;
}

.bth {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.bth__top {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.72);
	border-bottom: 1px solid var(--bth-line);
}

.bth__top-inner {
	width: min(960px, calc(100% - 32px));
	margin: 0 auto;
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bth__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.01em;
}

.bth__mark {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background:
		linear-gradient(135deg, var(--bth-orange) 0%, #f0a06a 48%, transparent 49%),
		linear-gradient(315deg, var(--bth-teal) 0%, #5bb8ad 100%);
	box-shadow: 0 4px 14px rgba(26, 35, 50, 0.12);
	animation: bth-mark-in 0.7s ease both;
}

.bth__brand-text {
	animation: bth-fade-up 0.55s ease both;
}

.bth__account {
	display: flex;
	gap: 14px;
	align-items: center;
}

.bth__account a {
	color: var(--bth-muted);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	transition: color 0.2s ease;
}

.bth__account a:hover {
	color: var(--bth-ink);
}

.bth__main {
	flex: 1;
	width: min(960px, calc(100% - 32px));
	margin: 0 auto;
	padding: 48px 0 64px;
}

.bth__hero {
	margin-bottom: 40px;
	max-width: 36rem;
}

.bth__eyebrow {
	margin: 0 0 10px;
	color: var(--bth-muted);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	animation: bth-fade-up 0.55s 0.05s ease both;
}

.bth__title {
	margin: 0 0 14px;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.03em;
	animation: bth-fade-up 0.6s 0.1s ease both;
}

.bth__lead {
	margin: 0;
	color: var(--bth-muted);
	font-size: 1.05rem;
	line-height: 1.65;
	animation: bth-fade-up 0.6s 0.16s ease both;
}

.bth__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.bth__card {
	margin: 0;
	animation: bth-fade-up 0.65s ease both;
	animation-delay: var(--bth-delay, 0s);
}

.bth__card-link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 210px;
	padding: 24px 24px 22px;
	border-radius: 18px;
	background: var(--bth-surface);
	border: 1px solid var(--bth-line);
	box-shadow: 0 12px 36px rgba(26, 35, 50, 0.06);
	text-decoration: none;
	color: inherit;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
	position: relative;
	overflow: hidden;
}

.bth__card-link::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 3px;
	opacity: 0.95;
}

.bth__card--orange .bth__card-link::before {
	background: linear-gradient(90deg, var(--bth-orange), #f0a06a);
}

.bth__card--teal .bth__card-link::before {
	background: linear-gradient(90deg, var(--bth-teal), #5bb8ad);
}

.bth__card-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(26, 35, 50, 0.1);
	border-color: rgba(26, 35, 50, 0.16);
}

.bth__badge {
	align-self: flex-start;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(26, 35, 50, 0.06);
	color: var(--bth-muted);
}

.bth__card--orange .bth__badge {
	color: var(--bth-orange);
	background: rgba(232, 93, 42, 0.1);
}

.bth__card--teal .bth__badge {
	color: var(--bth-teal);
	background: rgba(13, 110, 99, 0.1);
}

.bth__card-title {
	font-size: 1.45rem;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.bth__card-desc {
	color: var(--bth-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	flex: 1;
}

.bth__card-cta {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--bth-ink);
}

.bth__card--orange .bth__card-cta {
	color: var(--bth-orange);
}

.bth__card--teal .bth__card-cta {
	color: var(--bth-teal);
}

.bth__footer {
	width: min(960px, calc(100% - 32px));
	margin: 0 auto;
	padding: 0 0 28px;
	color: var(--bth-muted);
	font-size: 0.85rem;
}

.bth__footer p {
	margin: 0;
}

@keyframes bth-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bth-mark-in {
	from {
		opacity: 0;
		transform: scale(0.7) rotate(-12deg);
	}
	to {
		opacity: 1;
		transform: scale(1) rotate(0);
	}
}

@media (max-width: 720px) {
	.bth__main {
		padding-top: 32px;
	}

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

	.bth__card-link {
		min-height: 0;
	}

	.bth__title {
		font-size: 2.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bth__mark,
	.bth__brand-text,
	.bth__eyebrow,
	.bth__title,
	.bth__lead,
	.bth__card,
	.bth__card-link {
		animation: none !important;
		transition: none !important;
	}
}
