/* ============================================================
   Hi3D Blog Theme — CSS
   Design Language: Dark mode, cyan/lime gradients, glass-morphism
   ============================================================ */

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

:root {
	--bg: #050508;
	--bg-card: rgba(255, 255, 255, 0.03);
	--bg-card-hover: rgba(255, 255, 255, 0.06);
	--border: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(107, 255, 70, 0.3);
	--cyan: #6bff46;
	--cyan2: #6bff46;
	--lime: #b8ff9a;
	--yellow: #fffb82;
	--purple: #bcb8ff;
	--text: rgba(255, 255, 255, 0.92);
	--text2: rgba(255, 255, 255, 0.6);
	--text3: rgba(255, 255, 255, 0.38);
	--radius: 12px;
	--max-w: 1280px;
}

body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
}

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

/* ── Ambient glow ── */
.ambient {
	position: fixed;
	top: -40%;
	left: -20%;
	width: 80vw;
	height: 80vw;
	background: radial-gradient(
		circle,
		rgba(107, 255, 70, 0.06) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}
.ambient2 {
	position: fixed;
	bottom: -30%;
	right: -15%;
	width: 60vw;
	height: 60vw;
	background: radial-gradient(
		circle,
		rgba(188, 184, 255, 0.04) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}

main {
	position: relative;
	z-index: 1;
}

/* ══════════════════════════════════════
   Header / Nav
   ══════════════════════════════════════ */

/* ══════════════════════════════════════
   Blog Header — 对齐主站 AppStudioHeader
   ══════════════════════════════════════ */

.blog-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #0f1010;
	border-bottom: 1px solid transparent;
	width: 100%;
}
.blog-header__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px;
	height: 68px;
	display: flex;
	align-items: center;
	gap: 32px;
}

/* Left: logo + nav, grows to push actions right */
.blog-header__left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

/* Logo */
.blog-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	user-select: none;
}
.blog-header__logo-img {
	display: block;
	height: 42px;
	width: auto;
	aspect-ratio: 131 / 84;
}

/* Nav */
.blog-header__nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
}
.blog-header__nav-link {
	font-size: 13px;
	font-weight: 400;
	color: rgba(255,255,255,0.55);
	padding: 4px 10px;
	border-radius: 6px;
	transition: color 0.15s, background 0.15s;
	white-space: nowrap;
}
.blog-header__nav-link:hover {
	color: rgba(255,255,255,0.9);
	background: rgba(255,255,255,0.06);
}
.blog-header__nav-link.is-active {
	color: rgba(255,255,255,0.9);
}

/* Actions (right side) */
.blog-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

/* Generic action button (Events, Resource trigger, API) */
.blog-header__action-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 32px;
	padding: 0 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(255,255,255,0.55);
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
	text-decoration: none;
}
.blog-header__action-btn:hover {
	background: rgba(255,255,255,0.07);
	color: rgba(255,255,255,0.9);
}
.blog-header__chevron {
	transition: transform 0.18s;
}

/* ── Resource dropdown ── */
.blog-header__resource {
	position: static;
}
.blog-header__resource.is-open .blog-header__chevron {
	transform: rotate(180deg);
}
.blog-header__resource-panel {
	display: none;
	position: fixed;
	top: 68px;
	left: 50%;
	transform: translateX(-50%);
	width: 676px;
	max-width: calc(100vw - 32px);
	padding: 24px;
	background: #171719;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0,0,0,0.6);
	z-index: 500;
	flex-direction: column;
	gap: 24px;
}
.blog-header__resource.is-open .blog-header__resource-panel {
	display: flex;
}

/* 4 image cards row */
.resource-cards {
	display: flex;
	gap: 12px;
}
.resource-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}
.resource-card:hover {
	border-color: rgba(107, 255, 70,0.3);
	background: rgba(255,255,255,0.07);
}
.resource-card__media {
	display: block;
	height: 90px;
	overflow: hidden;
	background: rgba(255,255,255,0.03);
}
.resource-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.resource-card__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 32px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 500;
	color: rgba(255,255,255,0.75);
}

/* 5 link columns row */
.resource-cols {
	display: flex;
	gap: 0;
}
.resource-col {
	flex: 1;
}
.resource-col__title {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255,255,255,0.35);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}
.resource-col__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.resource-col__list a {
	font-size: 13px;
	color: rgba(255,255,255,0.65);
	transition: color 0.12s;
}
.resource-col__list a:hover {
	color: var(--cyan);
}

/* Language dropdown */
.blog-header__lang {
	position: relative;
}
.blog-header__lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 10px;
	border: none;
	border-radius: 8px;
	background: rgba(255,255,255,0.07);
	color: rgba(255,255,255,0.55);
	font-size: 12px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.blog-header__lang-btn:hover {
	background: rgba(255,255,255,0.12);
	color: rgba(255,255,255,0.9);
}
.blog-header__lang-arrow {
	transition: transform 0.18s;
}
.blog-header__lang.is-open .blog-header__lang-arrow {
	transform: rotate(180deg);
}
.blog-header__lang-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 120px;
	padding: 6px;
	background: #1a1a1a;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(0,0,0,0.5);
	z-index: 200;
}
.blog-header__lang.is-open .blog-header__lang-menu {
	display: block;
}
.blog-header__lang-option {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: rgba(255,255,255,0.65);
	transition: background 0.12s, color 0.12s;
}
.blog-header__lang-option:hover {
	background: rgba(255,255,255,0.07);
	color: #fff;
}

/* CTA button（未登录） */
.blog-header__cta {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 16px;
	border-radius: 88px;
	font-size: 13px;
	font-weight: 600;
	background: var(--cyan);
	color: #0a0a0a;
	white-space: nowrap;
	transition: opacity 0.15s;
}
.blog-header__cta:hover {
	opacity: 0.85;
}

/* 已登录区域 */
.blog-header__user {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Credits 胶囊 */
.blog-header__credits {
	display: inline-flex;
	align-items: stretch;
	height: 32px;
	padding: 0 0 0 10px;
	border: 1px solid #6bff46;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 13px;
	overflow: hidden;
	transition: background 0.15s;
	text-decoration: none;
}
.blog-header__credits:hover {
	background: rgba(107,255,70,0.08);
}
.blog-header__credits-info {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-right: 10px;
}
.blog-header__credits-value {
	font-weight: 400;
}
.blog-header__credits-level {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	background: #6bff46;
	color: #0a0a0a;
	font-size: 13px;
	font-weight: 700;
	text-transform: capitalize;
}

/* 头像 */
.blog-header__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	overflow: hidden;
	text-decoration: none;
	transition: background 0.15s;
}
.blog-header__avatar:hover {
	background: rgba(255,255,255,0.18);
}
.blog-header__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hamburger（mobile only） */
.blog-header__hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: auto;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(255,255,255,0.7);
	cursor: pointer;
	transition: background 0.15s;
}
.blog-header__hamburger:hover {
	background: rgba(255,255,255,0.08);
}

/* Mobile drawer */
.blog-header__drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #000;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.22s ease;
}
.blog-header__drawer.is-open {
	transform: translateX(0);
}
.blog-header__drawer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	flex-shrink: 0;
}
.blog-header__drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.8);
	cursor: pointer;
	transition: background 0.15s;
}
.blog-header__drawer-close:hover {
	background: rgba(255,255,255,0.15);
}
.blog-header__drawer-nav {
	flex: 1;
	padding: 16px 0;
	overflow-y: auto;
}
.blog-header__drawer-link {
	display: block;
	padding: 14px 24px;
	font-size: 20px;
	font-weight: 500;
	color: rgba(255,255,255,0.75);
	transition: color 0.15s;
}
.blog-header__drawer-link:hover,
.blog-header__drawer-link.is-active {
	color: #fff;
}
.blog-header__overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(0,0,0,0.5);
}
.blog-header__drawer.is-open ~ .blog-header__overlay {
	display: block;
}

/* ── Avatar wrap + user panel ── */
.blog-header__avatar-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
/* 头像与下拉面板之间的 hover 桥，避免移入面板时面板提前收起导致点击失效 */
.blog-header__avatar-wrap::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 12px;
}
.blog-header__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	overflow: hidden;
	cursor: pointer;
	border: none;
	transition: background 0.15s;
	padding: 0;
}
.blog-header__avatar:hover {
	background: rgba(255,255,255,0.18);
}
.blog-header__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* User panel */
.blog-header__user-panel {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 280px;
	background: #1e1e20;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.7);
	z-index: 600;
	padding: 16px 12px;
	flex-direction: column;
	gap: 2px;
}
.blog-header__user-panel.is-visible {
	display: flex;
}

/* Profile row */
.up-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 8px 12px;
}
.up-profile__avatar {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}
.up-profile__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.up-profile__info {
	flex: 1;
	min-width: 0;
}
.up-profile__name {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.up-profile__email {
	font-size: 11px;
	color: rgba(255,255,255,0.45);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 2px;
}

/* Plan row */
.up-plan {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: rgba(255,255,255,0.04);
	border-radius: 10px;
	margin-bottom: 4px;
}
.up-plan__label {
	font-size: 13px;
	color: rgba(255,255,255,0.65);
}
.up-plan__badge {
	padding: 2px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	background: var(--cyan);
	color: #0a0a0a;
}
.up-plan__badge[data-level="free"]    { background: rgba(255,255,255,0.15); color: #fff; }
.up-plan__badge[data-level="pro"]     { background: #6bff46; color: #0a0a0a; }
.up-plan__badge[data-level="max"]     { background: var(--lime); color: #0a0a0a; }
.up-plan__badge[data-level="ultra"]   { background: var(--yellow); color: #0a0a0a; }
.up-plan__badge[data-level="starter"] { background: #6bff46; color: #0a0a0a; }

/* Divider */
.up-divider {
	height: 1px;
	background: rgba(255,255,255,0.07);
	margin: 6px 4px;
}

/* Menu item */
.up-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	color: rgba(255,255,255,0.75);
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.12s, color 0.12s;
	position: relative;
}
.up-item:hover {
	background: rgba(255,255,255,0.06);
	color: #fff;
}
.up-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: rgba(255,255,255,0.45);
	flex-shrink: 0;
}
.up-item__label {
	flex: 1;
}
.up-item__arrow {
	color: rgba(255,255,255,0.35);
	transition: transform 0.15s;
}

/* Language sub-menu */
.up-item--lang {
	flex-wrap: wrap;
}
.up-item--lang.is-open .up-item__arrow {
	transform: rotate(90deg);
}
.up-lang-sub {
	display: none;
	flex-direction: column;
	width: 100%;
	padding-left: 28px;
	margin-top: 4px;
	gap: 2px;
}
.up-item--lang.is-open .up-lang-sub {
	display: flex;
}
.up-lang-opt {
	padding: 7px 10px;
	border: none;
	border-radius: 8px;
	background: none;
	color: rgba(255,255,255,0.6);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
}
.up-lang-opt:hover {
	background: rgba(255,255,255,0.07);
	color: #fff;
}

/* footer logo */
.footer-logo img {
	height: 24px;
}

/* ══════════════════════════════════════
   Breadcrumb
   ══════════════════════════════════════ */

.breadcrumb-bar {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 20px 24px 0;
}
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text3);
	flex-wrap: wrap;
}
.breadcrumb a {
	color: var(--text3);
	transition: color 0.2s;
}
.breadcrumb a:hover {
	color: var(--cyan);
}
.breadcrumb .sep {
	font-size: 11px;
}
.breadcrumb .current {
	color: var(--text2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 400px;
}

/* ══════════════════════════════════════
   Hero
   ══════════════════════════════════════ */

.hero {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 48px 24px 0;
	text-align: center;
}
.hero h1 {
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 700;
	letter-spacing: -1px;
	background: linear-gradient(135deg, var(--yellow), var(--cyan));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 4px;
}
.hero p {
	color: var(--text2);
	font-size: 17px;
	max-width: 560px;
	margin: 0 auto;
}

/* ══════════════════════════════════════
   Category Tabs
   ══════════════════════════════════════ */

.categories {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 36px 24px 0;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: flex-start;
}
.cat-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}
.cat-tab:hover {
	background: transparent;
	color: #ffffff;
}
.cat-tab.active {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-weight: 500;
	box-shadow: none;
}
.cat-tab.active:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

/* ══════════════════════════════════════
   Card Grid
   ══════════════════════════════════════ */

.grid-section {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 24px 24px 40px;
}
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
}

/* ══════════════════════════════════════
   Card
   ══════════════════════════════════════ */

.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	position: relative;
	display: block;
}
.card:hover {
	transform: translateY(-5px);
	border-color: var(--border-hover);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(107, 255, 70, 0.06);
}
.card-img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
	background: #111;
}
.card-body {
	padding: 20px;
}

/* Badge */
.badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}
.badge-3d-printing {
	background: rgba(107, 255, 70, 0.12);
	color: #6bff46;
}
.badge-game-design {
	background: rgba(188, 184, 255, 0.12);
	color: #bcb8ff;
}
.badge-film-vfx {
	background: rgba(255, 251, 130, 0.12);
	color: #fffb82;
}
.badge-art-sculpture {
	background: rgba(255, 154, 177, 0.12);
	color: #ff9ab1;
}
.badge-architecture {
	background: rgba(130, 200, 255, 0.12);
	color: #82c8ff;
}
.badge-architecture-design {
	background: rgba(130, 200, 255, 0.12);
	color: #82c8ff;
}
.badge-fashion {
	background: rgba(255, 184, 153, 0.12);
	color: #ffb899;
}
.badge-fashion-jewelry {
	background: rgba(255, 184, 153, 0.12);
	color: #ffb899;
}
.badge-fashion-jewelry-design {
	background: rgba(255, 184, 153, 0.12);
	color: #ffb899;
}
.badge-ai-tools-developer-resources {
	background: rgba(157, 220, 255, 0.12);
	color: #9ddcff;
}
.badge-product-updates {
	background: rgba(200, 255, 130, 0.12);
	color: #c8ff82;
}
.badge-user-guide {
	background: rgba(255, 130, 230, 0.12);
	color: #ff82e6;
}
.badge-tutorials {
	background: rgba(255, 208, 130, 0.12);
	color: #ffd082;
}

/* ══════════════════════════════════════
   Story Grid & Story Card
   ══════════════════════════════════════ */

.story-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.story-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	gap: 0;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}
.story-card:hover {
	transform: translateY(-3px);
	border-color: var(--border-hover);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(107, 255, 70, 0.06);
}
.story-card-cover {
	width: 280px;
	min-width: 280px;
	aspect-ratio: 4/3;
	overflow: hidden;
	flex-shrink: 0;
}
.story-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.story-card-cover--empty {
	background: #111;
}
.story-card-body {
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
}
.story-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}
.story-card-date {
	font-size: 12px;
	color: var(--text3);
}
.story-card-title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.story-card-excerpt {
	font-size: 14px;
	color: var(--text2);
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.story-card-read {
	font-size: 13px;
	font-weight: 500;
	color: var(--cyan);
}

.card-title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 10px;
	color: var(--text);
}
.card-excerpt {
	font-size: 14px;
	color: var(--text2);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 16px;
}
.card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.card-date {
	font-size: 12px;
	color: var(--text3);
}
.card-read {
	font-size: 13px;
	font-weight: 500;
	color: var(--cyan);
	display: flex;
	align-items: center;
	gap: 4px;
	transition: gap 0.2s;
}
.card:hover .card-read {
	gap: 8px;
}

/* ══════════════════════════════════════
   Pagination
   ══════════════════════════════════════ */

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 0 24px 60px;
}
.page-btn {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text2);
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}
.page-btn:hover {
	border-color: rgba(107, 255, 70, 0.3);
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
}
.page-btn.active {
	background: var(--cyan);
	color: #0a0a0a;
	border-color: transparent;
	font-weight: 700;
	box-shadow: 0 0 16px rgba(107, 255, 70, 0.25);
}
.page-btn.arrow {
	font-size: 18px;
	width: auto;
	padding: 0 14px;
}
.page-btn.disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* ══════════════════════════════════════
   Article Layout (post.ejs)
   ══════════════════════════════════════ */

.article-layout {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 32px 24px 60px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 48px;
}
.article-main {
	min-width: 0;
}

.cover-img {
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 16/9;
	object-fit: cover;
	margin-bottom: 32px;
	background: #111;
}

.article-header {
	margin-bottom: 40px;
}
.article-title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.5px;
	margin-bottom: 16px;
	background: linear-gradient(135deg, var(--yellow), var(--cyan));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.article-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.meta-dot {
	color: var(--text3);
}
.meta-text {
	font-size: 13px;
	color: var(--text3);
}

/* ── Article Body ── */
.article-body {
	margin-bottom: 48px;
}
.article-body h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
	margin: 48px 0 16px;
	padding-top: 8px;
	border-top: 1px solid var(--border);
}
.article-body h2:first-child {
	margin-top: 0;
	border-top: none;
}
.article-body h3 {
	font-size: 19px;
	font-weight: 600;
	color: var(--text);
	margin: 32px 0 12px;
}
.article-body p {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 20px;
}
.article-body img {
	max-width: 100%;
	border-radius: 8px;
	margin: 24px 0;
	display: block;
}
.article-body .img-caption {
	text-align: center;
	font-size: 13px;
	color: var(--text3);
	margin-top: -16px;
	margin-bottom: 24px;
}
.article-body ul,
.article-body ol {
	padding-left: 24px;
	margin-bottom: 20px;
}
.article-body li {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 8px;
}
.article-body a {
	color: var(--cyan);
}
.article-body a:hover {
	text-decoration: underline;
}
.article-body blockquote {
	border-left: 3px solid var(--cyan);
	background: rgba(107, 255, 70, 0.04);
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	margin: 24px 0;
}
.article-body blockquote p {
	margin-bottom: 0;
}
.article-body code {
	background: rgba(255, 255, 255, 0.06);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 14px;
}
.article-body pre {
	background: rgba(255, 255, 255, 0.04);
	padding: 16px;
	border-radius: 8px;
	overflow-x: auto;
	margin: 24px 0;
	border: 1px solid var(--border);
}
.article-body pre code {
	background: none;
	padding: 0;
}
.article-body strong {
	color: var(--text);
}

/* ── Tags ── */
.tags-section {
	margin-bottom: 32px;
}
.tags-label {
	font-size: 13px;
	color: var(--text3);
	margin-bottom: 10px;
}
.tags-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.tag {
	padding: 4px 14px;
	border-radius: 88px;
	font-size: 12px;
	font-weight: 500;
	border: 1px solid rgba(107, 255, 70, 0.25);
	color: var(--cyan);
	background: rgba(107, 255, 70, 0.05);
	transition: all 0.2s;
	cursor: pointer;
}
.tag:hover {
	background: rgba(107, 255, 70, 0.12);
	border-color: var(--cyan);
}

/* ── Share ── */
.share-section {
	margin-bottom: 40px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.share-label {
	font-size: 13px;
	color: var(--text3);
}
.share-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text2);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}
.share-btn:hover {
	border-color: var(--cyan);
	color: var(--cyan);
	background: rgba(107, 255, 70, 0.06);
}

/* ══════════════════════════════════════
   Sidebar
   ══════════════════════════════════════ */

.sidebar {
	position: relative;
}
.sidebar-sticky {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	/* 侧栏总高度不超过视口，避免长目录把 CTA 顶出首屏 */
	max-height: calc(100svh - 140px);
	overflow: hidden;
	align-items: stretch;
}

/* TOC — Hexo generates <ol class="toc"> */
.toc-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	flex: 0 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.toc-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text3);
	margin-bottom: 16px;
	flex-shrink: 0;
}
.toc-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
	padding-right: 2px;
	margin-right: -2px;
}
.toc-scroll::-webkit-scrollbar {
	width: 6px;
}
.toc-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 3px;
}
.toc-scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.2);
}
.toc-card ol {
	list-style: none;
	padding: 0;
	margin: 0;
}
.toc-card ol ol {
	padding-left: 12px;
}
.toc-card li {
	margin-bottom: 2px;
}
.toc-card a {
	display: block;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--text2);
	transition: all 0.15s;
	border-left: 2px solid transparent;
}
.toc-card a:hover {
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
}
.toc-card a.toc-active {
	color: var(--cyan);
	border-left-color: var(--cyan);
	background: rgba(107, 255, 70, 0.06);
}

/* CTA Card — 不被目录挤压出视口 */
.cta-card {
	flex-shrink: 0;
	background: linear-gradient(
		135deg,
		rgba(107, 255, 70, 0.08),
		rgba(184, 255, 154, 0.05)
	);
	border: 1px solid rgba(107, 255, 70, 0.18);
	border-radius: var(--radius);
	padding: 24px;
	text-align: center;
}
.cta-card-icon {
	font-size: 32px;
	margin-bottom: 12px;
}
.cta-card-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
}
.cta-card-desc {
	font-size: 13px;
	color: var(--text2);
	margin-bottom: 16px;
	line-height: 1.5;
}
.cta-card .cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 28px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	background: var(--cyan);
	color: #0a0a0a;
	white-space: nowrap;
	transition: opacity 0.15s;
}
.cta-card .cta-btn:hover {
	opacity: 0.85;
}

/* Newsletter */
.newsletter-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
}
.newsletter-title {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}
.newsletter-desc {
	font-size: 12px;
	color: var(--text3);
	margin-bottom: 14px;
}
.newsletter-input {
	width: 100%;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 13px;
	outline: none;
	margin-bottom: 10px;
	transition: border-color 0.2s;
}
.newsletter-input:focus {
	border-color: var(--cyan);
}
.newsletter-input::placeholder {
	color: var(--text3);
}
.newsletter-btn {
	width: 100%;
	padding: 8px;
	border-radius: 8px;
	background: var(--cyan);
	color: #0a0a0a;
	font-size: 13px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s;
}
.newsletter-btn:hover {
	opacity: 0.88;
}

/* ══════════════════════════════════════
   Prev / Next
   ══════════════════════════════════════ */

.prev-next {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px 48px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.pn-card {
	display: block;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	transition: all 0.3s;
	cursor: pointer;
}
.pn-card:hover {
	border-color: var(--border-hover);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.pn-label {
	font-size: 12px;
	color: var(--text3);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.pn-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}
.pn-card.next {
	text-align: right;
}
.pn-card.next .pn-label {
	justify-content: flex-end;
}

/* ══════════════════════════════════════
   Keep Reading
   ══════════════════════════════════════ */

.keep-reading {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px 80px;
}
.kr-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.kr-title {
	font-size: 24px;
	font-weight: 700;
}
.kr-viewall {
	font-size: 13px;
	color: var(--cyan);
	font-weight: 500;
}
.kr-viewall:hover {
	text-decoration: underline;
}
.kr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

/* ══════════════════════════════════════
   Footer
   ══════════════════════════════════════ */

footer {
	border-top: 1px solid var(--border);
	padding: 40px 24px;
	text-align: center;
	position: relative;
	z-index: 1;
}
.footer-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.footer-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
}
.footer-links a {
	font-size: 13px;
	color: var(--text3);
	transition: color 0.2s;
}
.footer-links a:hover {
	color: var(--cyan);
}
.footer-copy {
	font-size: 12px;
	color: var(--text3);
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
	.article-layout {
		grid-template-columns: 1fr;
	}
	.sidebar-sticky {
		position: relative;
		top: 0;
	}
	.toc-card {
		display: none;
	}
}

@media (max-width: 768px) {
	.blog-header__nav,
	.blog-header__actions {
		display: none !important;
	}
	.blog-header__hamburger {
		display: inline-flex;
	}

	.categories {
		padding: 24px 16px 0;
		gap: 4px;
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
	}
	.categories::-webkit-scrollbar {
		display: none;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}
	.hero {
		padding: 32px 16px 0;
	}
	.hero h1 {
		font-size: 28px;
	}
	.grid-section {
		padding: 24px 16px;
	}
	.article-layout {
		padding: 24px 16px 40px;
	}
	.prev-next {
		grid-template-columns: 1fr;
		padding: 0 16px 32px;
	}
	.kr-grid {
		grid-template-columns: 1fr;
	}
	.keep-reading {
		padding: 0 16px 60px;
	}
	.breadcrumb-bar {
		padding: 16px 16px 0;
	}
}
