/**
 * HumiKudo Public Styles
 * Designed to integrate into the Humi Empire design system.
 */

:root {
	/* Humi Empire CSS Variables Alignment with fallbacks */
	--hk-brand-color: var(--humi-brand-color, #6366f1);
	--hk-brand-hover: var(--humi-brand-hover, #4f46e5);
	--hk-text-main: var(--humi-text-main, #1f2937);
	--hk-text-muted: var(--humi-text-muted, #4b5563);
	--hk-radius-card: var(--humi-radius-card, 12px);
	--hk-radius-input: var(--humi-radius-input, 8px);
	
	/* Internal tokens */
	--hk-bg-card: #ffffff;
	--hk-border-color: #e5e7eb;
	--hk-shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
	--hk-shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

/* --------------------------------------------------
   KUDO WALLS
-------------------------------------------------- */
.hk-wall-container {
	width: 100%;
	margin: 20px 0;
	padding: 0 12px;
	box-sizing: border-box;
}

/* Card Styling */
.hk-public-card {
	background: var(--hk-bg-card);
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-card);
	box-shadow: var(--hk-shadow-card);
	padding: 24px;
	box-sizing: border-box;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: left;
}
.hk-public-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--hk-shadow-hover);
}

/* Kudo Title — testimonial headline */
.hk-kudo-title {
	font-size: 14px;
	font-weight: 700;
	color: #6366f1;
	margin-bottom: 10px;
	line-height: 1.4;
}
/* Card Header */
.hk-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
}
.hk-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--hk-border-color);
	background: #f3f4f6;
}
.hk-avatar-fallback {
	width: 48px; height: 48px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.2) 0%, transparent 50%), linear-gradient(145deg, #818cf8, #6366f1, #7c3aed);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 20px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.15);
	box-shadow: 0 0 0 2px rgba(99,102,241,0.12), 0 4px 16px rgba(99,102,241,0.25);
}
.hk-user-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.hk-name {
	font-weight: 600;
	font-size: 16px;
	color: var(--hk-text-main);
	line-height: 1.2;
}
.hk-title {
	font-size: 13px;
	color: var(--hk-text-muted);
	line-height: 1.2;
}

/* Rating Stars */
.hk-stars {
	color: #fbbf24;
	font-size: 14px;
	letter-spacing: 2px;
}

/* Comment text */
.hk-comment {
	font-size: 15px;
	line-height: 1.6;
	color: var(--hk-text-main);
	margin: 0;
	white-space: pre-line;
}

/* Card Footer */
.hk-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-block-start: auto;
	border-top: 1px solid var(--hk-border-color);
	padding-block-start: 14px;
	font-size: 13px;
}
.hk-social-link {
	color: var(--hk-brand-color);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
	transition: color 0.15s ease;
}
.hk-social-link:hover {
	color: var(--hk-brand-hover);
	text-decoration: underline;
}

/* 1. GRID LAYOUT */
.hk-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* 2. MASONRY LAYOUT (CSS Multi-Column) */
.hk-layout-masonry {
	columns: 3 280px;
	column-gap: 24px;
}
.hk-layout-masonry .hk-public-card {
	break-inside: avoid;
	margin-block-end: 24px;
}

/* 3. CAROUSEL LAYOUT (CSS Scroll Snap) */
.hk-layout-carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 24px;
	gap: 20px;
	padding: 10px 4px 20px 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--hk-brand-color) transparent;
	overscroll-behavior: contain;
}
.hk-layout-carousel::-webkit-scrollbar {
	height: 6px;
}
.hk-layout-carousel::-webkit-scrollbar-thumb {
	background: var(--hk-brand-color);
	border-radius: 3px;
}
.hk-layout-carousel .hk-public-card {
	flex: 0 0 320px;
	scroll-snap-align: center;
}

/* Scroll-Driven Animation Slide Effect (Progressive Enhancement) */
@keyframes hkCarouselAnimate {
	0% {
		transform: scale(0.92);
		opacity: 0.6;
	}
	50% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(0.92);
		opacity: 0.6;
	}
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
	.hk-layout-carousel .hk-public-card {
		animation: hkCarouselAnimate auto linear both;
		animation-timeline: view(inline);
	}
}


/* --------------------------------------------------
   CAPTURE ENGINE FORM
-------------------------------------------------- */
.hk-form-container {
	width: 100%;
	max-width: 580px;
	margin: 20px auto;
	box-sizing: border-box;
	text-align: left;
}

/* Inline form styling */
.hk-public-form {
	background: var(--hk-bg-card);
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-card);
	box-shadow: var(--hk-shadow-card);
	padding: 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hk-public-form h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--hk-text-main);
}
.hk-public-form p.description {
	margin: 4px 0 0 0;
	font-size: 14px;
	color: var(--hk-text-muted);
}

.hk-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
}

.hk-form-row {
	display: flex;
	gap: 16px;
}
@media (max-width: 580px) {
	.hk-form-row {
		flex-direction: column;
		gap: 20px;
	}
}

.hk-form-group label {
	font-size: 14px;
	font-weight: 600;
	color: var(--hk-text-main);
}

.hk-form-group input[type="text"],
.hk-form-group input[type="url"],
.hk-form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-input);
	font-size: 14px;
	background: #ffffff;
	box-sizing: border-box;
	transition: all 0.2s ease;
}
.hk-form-group input:focus,
.hk-form-group textarea:focus {
	border-color: var(--hk-brand-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
	outline: none;
}

/* Star rating selector */
.hk-rating-selector {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	font-size: 28px;
	gap: 6px;
	user-select: none;
}
.hk-rating-selector input {
	display: none;
}
.hk-rating-selector label {
	color: #d1d5db;
	cursor: pointer;
	transition: color 0.15s ease;
}
.hk-rating-selector label:hover,
.hk-rating-selector label:hover ~ label,
.hk-rating-selector input:checked ~ label {
	color: #fbbf24;
}

/* Public drag-and-drop avatar uploader */
.hk-avatar-dropzone {
	border: 2px dashed var(--hk-border-color);
	border-radius: var(--hk-radius-input);
	padding: 20px;
	text-align: center;
	cursor: pointer;
	background: #f9fafb;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	position: relative;
	box-sizing: border-box;
}
.hk-avatar-dropzone:hover,
.hk-avatar-dropzone.dragover {
	border-color: var(--hk-brand-color);
	background: rgba(99, 102, 241, 0.01);
}
.hk-dropzone-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var(--hk-text-muted);
	font-size: 13px;
	padding: 20px 0;
}

/* Ring avatar wrapper */
.hk-dropzone-avatar-ring {
	position: relative;
	width: 92px; height: 92px;
	display: flex; align-items: center; justify-content: center;
}
.hk-dropzone-avatar-ring::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px dashed rgba(99,102,241,0.3);
	animation: hkRingPulse 3s ease-in-out infinite;
}
@keyframes hkRingPulse {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.08); opacity: 1; }
}
.hk-dropzone-icon {
	font-size: 26px;
}
.hk-dropzone-preview {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hk-dropzone-preview img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--hk-border-color);
}
.hk-dropzone-filename {
	font-size: 13px;
	color: var(--hk-text-main);
	font-weight: 500;
}

/* Submit button */
.hk-btn-submit {
	background: var(--hk-brand-color);
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: var(--hk-radius-input);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	align-self: flex-start;
}
.hk-btn-submit:hover {
	background: var(--hk-brand-hover);
}
.hk-btn-submit:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

/* Char counter */
.hk-char-counter {
	font-size: 12px;
	color: var(--hk-text-muted);
	align-self: flex-end;
}

/* Status message panels */
.hk-form-message {
	padding: 14px 18px;
	border-radius: var(--hk-radius-input);
	font-size: 14px;
	font-weight: 500;
	margin-block-end: 16px;
	display: none;
}
.hk-form-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	display: block;
}
.hk-form-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
	display: block;
}


/* --------------------------------------------------
   MODAL OVERLAY (HumiKudo Triggered Modal)
-------------------------------------------------- */
.hk-dialog-modal {
	border: none;
	border-radius: var(--hk-radius-card);
	padding: 0;
	max-width: 580px;
	width: 90%;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	background: transparent; /* Actual form has background */
	overflow: visible;
}
.hk-dialog-modal::backdrop {
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	transition: backdrop-filter 0.2s ease;
}

.hk-dialog-modal .hk-public-form {
	box-shadow: none;
	border: none;
	position: relative;
}

/* Close Modal Button */
.hk-modal-close-btn {
	position: absolute;
	right: 20px;
	top: 20px;
	background: #f3f4f6;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--hk-text-muted);
	transition: all 0.15s ease;
}
.hk-modal-close-btn:hover {
	background: #e5e7eb;
	color: var(--hk-text-main);
}

/* --------------------------------------------------
   V2.0 FEATURE: AI ASSIST TOGGLE & POLISH
-------------------------------------------------- */
.hk-ai-assist-toggle {
	display: flex;
	flex-direction: column;
	background: #f3f4f6;
	padding: 10px 14px;
	border-radius: var(--hk-radius-input);
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hk-text-main);
}
.hk-ai-assist-toggle label {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}
.hk-ai-disclaimer {
	margin: 6px 0 0;
	font-size: 11px;
	font-weight: 400;
	color: #9ca3af;
	font-family: 'SF Mono', 'Fira Code', monospace;
	line-height: 1.5;
}
.hk-story-inputs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
	background: #f9fafb;
	padding: 16px;
	border: 1px dashed var(--hk-border-color);
	border-radius: var(--hk-radius-input);
}
.hk-ai-polish-btn {
	background: #8b5cf6; /* Indigo/purple premium color */
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: var(--hk-radius-input);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: background 0.15s ease, transform 0.1s ease;
	margin-bottom: 10px;
}
.hk-ai-polish-btn:hover {
	background: #7c3aed;
}
.hk-ai-polish-btn:active {
	transform: scale(0.97);
}
.hk-ai-polish-btn:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

/* --------------------------------------------------
   V2.0 FEATURE: VIDEO原生录制及上传
-------------------------------------------------- */
.hk-video-recorder-panel {
	border: 1px solid var(--hk-border-color);
	border-radius: var(--hk-radius-input);
	background: #000;
	overflow: hidden;
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}
.hk-video-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}
.hk-recorder-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #fff;
	font-size: 14px;
	text-align: center;
	padding: 20px;
	z-index: 3;
}
.hk-record-indicator {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(239, 68, 68, 0.8);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
	animation: blink 1s infinite alternate;
	z-index: 5;
}
@keyframes blink {
	0% { opacity: 0.5; }
	100% { opacity: 1; }
}
.hk-recorder-controls {
	position: absolute;
	bottom: 16px;
	display: flex;
	gap: 12px;
	z-index: 5;
}
.hk-btn-record {
	background: #ef4444;
	color: #fff;
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	font-weight: 700;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	transition: transform 0.15s ease;
}
.hk-btn-record:hover {
	transform: scale(1.08);
}
.hk-btn-record.recording {
	border-radius: 6px;
	width: 24px;
	height: 24px;
	margin: 12px;
}
.hk-btn-recorder-action {
	background: rgba(255, 255, 255, 0.9);
	color: #1f2937;
	border: none;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hk-btn-recorder-action:hover {
	background: #fff;
}
.hk-recorder-timer {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(0,0,0,0.6);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-family: monospace;
	z-index: 5;
}
.hk-upload-progress-container {
	width: 100%;
	background: #e5e7eb;
	height: 6px;
	border-radius: 3px;
	overflow: hidden;
	margin-top: 6px;
	display: none;
}
.hk-upload-progress-bar {
	background: var(--hk-brand-color);
	width: 0%;
	height: 100%;
	transition: width 0.1s ease;
}

/* --------------------------------------------------
   V2.0 FEATURE: VIDEO PLAY OVERLAYS & PLAYER MODALS
-------------------------------------------------- */
.hk-public-card.has-video {
	position: relative;
	cursor: pointer;
}
.hk-video-play-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.02);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	border-radius: var(--hk-radius-card);
	pointer-events: none;
	z-index: 3;
}
.hk-public-card.has-video:hover .hk-video-play-overlay {
	opacity: 1;
	background: rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(2px);
}
.hk-play-btn-circle {
	background: rgba(255, 255, 255, 0.95);
	color: var(--hk-brand-color);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	transform: scale(0.9);
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hk-public-card.has-video:hover .hk-play-btn-circle {
	transform: scale(1);
}
.hk-card-video-tag {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(99, 102, 241, 0.9);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	z-index: 2;
}

/* Glassmorphism Video Modal Player */
.hk-video-modal {
	border: none;
	border-radius: var(--hk-radius-card);
	padding: 0;
	max-width: 800px;
	width: 90%;
	aspect-ratio: 16/9;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	background: #000;
	overflow: hidden;
}
.hk-video-modal::backdrop {
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
}
.hk-video-modal video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.hk-video-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255,255,255,0.2);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	z-index: 10;
	transition: background 0.15s ease;
}
.hk-video-modal-close:hover {
	background: rgba(255,255,255,0.4);
}

/* === Layout: Quote (centered quote style) === */
.hk-layout-quote {
	display: flex;
	flex-direction: column;
	gap: 60px;
	max-width: 720px;
	margin: 0 auto;
}
.hk-quote-card {
	text-align: center;
	padding: 40px 20px;
	position: relative;
}
.hk-quote-card::before {
	content: '\201C';
	font-size: 80px;
	color: var(--hk-brand-color);
	opacity: 0.15;
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	font-family: Georgia, serif;
	line-height: 1;
}
.hk-quote-card blockquote {
	font-size: 18px;
	line-height: 1.8;
	color: #374151;
	margin: 0 0 12px;
	font-style: italic;
	border: none;
	padding: 0;
}
.hk-quote-card cite {
	font-size: 14px;
	color: #6b7280;
	font-style: normal;
}
.hk-spotlight-card {
	text-align: center;
	padding: 48px 32px;
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
	border-radius: 16px;
	color: #fff;
	margin-bottom: 60px;
}
.hk-spotlight-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.5);
	margin-bottom: 16px;
}
.hk-spotlight-card blockquote {
	font-size: 20px;
	line-height: 1.8;
	margin: 0 0 12px;
	color: #fff;
	padding: 0;
	border: none;
}
.hk-spotlight-card cite {
	font-size: 15px;
	opacity: 0.85;
}

/* === Layout: Minimal === */
.hk-layout-minimal {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 680px;
	margin: 0 auto;
}
.hk-minimal-card {
	padding: 20px 0;
	border-bottom: 1px solid #e5e7eb;
}
.hk-minimal-card:last-child {
	border-bottom: none;
}
.hk-minimal-comment {
	font-size: 16px;
	line-height: 1.7;
	color: #374151;
	margin: 0 0 8px;
}
.hk-minimal-meta {
	font-size: 13px;
	color: #9ca3af;
}
.hk-minimal-name {
	color: #6366f1;
	font-weight: 600;
}
.hk-minimal-sep {
	margin: 0 6px;
}
.hk-minimal-title {
	color: #9ca3af;
}

/* === Layout: Bento Grid === */
.hk-bento-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 180px;
	gap: 16px;
}
.hk-bento-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	border: 1px solid #f3f4f6;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hk-bento-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.hk-bento-card p {
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}
.hk-bento-large {
	grid-column: span 2;
	grid-row: span 2;
	background: linear-gradient(135deg, #eff6ff, #faf5ff);
}
.hk-bento-medium {
	grid-column: span 2;
	grid-row: span 1;
	background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}
.hk-bento-small {
	grid-column: span 1;
	grid-row: span 1;
}
.hk-bento-author {
	font-size: 13px;
	font-weight: 600;
	color: #6366f1;
	margin-top: 8px;
}

/* === Layout: Timeline === */
.hk-timeline {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 0;
}
.hk-timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, #6366f1, #a855f7);
	opacity: 0.3;
	transform: translateX(-50%);
}
.hk-timeline-item {
	position: relative;
	margin-bottom: 40px;
	width: 100%;
	display: flex;
	justify-content: flex-end;
	padding-right: calc(50% + 24px);
}
.hk-timeline-right {
	justify-content: flex-start;
	padding-right: 0;
	padding-left: calc(50% + 24px);
}
.hk-timeline-content {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #f0f0f0;
	max-width: 340px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hk-timeline-content::after {
	content: '';
	position: absolute;
	top: 20px;
	width: 12px;
	height: 12px;
	background: #6366f1;
	border-radius: 50%;
}
.hk-timeline-left .hk-timeline-content::after {
	right: -30px;
}
.hk-timeline-right .hk-timeline-content::after {
	left: -30px;
}
.hk-timeline-content p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 10px;
	color: #374151;
}
.hk-timeline-author {
	font-size: 12px;
	color: #6366f1;
	font-weight: 600;
}

@media (max-width: 640px) {
	/* Bento */
	.hk-bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.hk-bento-large, .hk-bento-medium, .hk-bento-small { grid-column: span 1; grid-row: span 1; }
	.hk-bento-card { padding: 16px; }

	/* Timeline */
	.hk-timeline::before { left: 20px; }
	.hk-timeline-item { padding-right: 0; padding-left: 48px; justify-content: flex-start; }
	.hk-timeline-right { padding-left: 48px; }
	.hk-timeline-content::after { left: -30px !important; right: auto !important; }
	.hk-timeline-content { max-width: none; }

	/* Quote / Spotlight */
	.hk-layout-quote { padding: 0 16px; }
	.hk-spotlight-card { padding: 32px 20px !important; }

	/* Carousel / Slider — more breathing room */
	.hk-layout-carousel { padding: 10px 12px 20px; }
	.hk-slider-track { padding: 10px 12px 20px; }

	/* Minimal */
	.hk-minimal-card { padding: 16px 12px; }

	/* Polaroid */
	.hk-polaroid-card { width: calc(50% - 12px); --rot: 0deg; }

	/* Stacked — reduce overlap on mobile */
	.hk-stacked-item[style*="transform:scale"] { transform: none !important; }
	.hk-stacked-item { margin-top: -10px; }
	.hk-stacked-container { padding: 0 8px; }

	/* Magazine */
	.hk-magazine-layout { grid-template-columns: 1fr; }
	.hk-magazine-featured { padding: 16px; }

	/* Mosaic */
	.hk-mosaic-grid { grid-template-columns: 1fr 1fr; }
	.hk-mosaic-tile { padding: 10px; }

	/* Album */
	.hk-album-grid { grid-template-columns: 1fr 1fr; }

	/* CoverFlow — disable 3D transforms on mobile */
	.hk-coverflow-stage { perspective: none; padding: 20px 0; }
	.hk-coverflow-item { flex: 0 0 70%; min-width: 240px; transform: none !important; }
	.hk-coverflow-item:hover { transform: none !important; }
	.hk-coverflow-card { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

	/* Columns — clamp to max 2 on mobile */
	.hk-wall-container[style*="--hk-columns:3"] > .hk-public-card,
	.hk-wall-container[style*="--hk-columns:4"] > .hk-public-card,
	.hk-wall-container[style*="--hk-columns:5"] > .hk-public-card,
	.hk-wall-container[style*="--hk-columns:6"] > .hk-public-card { flex-basis: calc(50% - 8px) !important; }

	/* Waves */
	.hk-wave-inner { padding: 16px 18px; border-radius: 24px 8px 24px 8px; }

	/* Slider — custom scrollbar (match Carousel) */
	.hk-slider-track { scrollbar-width: thin; scrollbar-color: var(--hk-brand-color) transparent; }
	.hk-slider-track::-webkit-scrollbar { height: 6px; }
	.hk-slider-track::-webkit-scrollbar-thumb { background: var(--hk-brand-color); border-radius: 3px; }

	/* Social proof popup */
	#hk-social-proof-popup { bottom: 16px; left: 8px; right: 8px; max-width: none; }
}

/* === Social Proof Popup === */
#hk-social-proof-popup {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 99999;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	padding: 14px 18px;
	max-width: 340px;
	transform: translateY(120px);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
	pointer-events: none;
}
#hk-social-proof-popup.hk-sp-show {
	transform: translateY(0);
	opacity: 1;
}
.hk-sp-inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.hk-sp-avatar {
	flex-shrink: 0;
}
.hk-sp-body {
	flex: 1;
	min-width: 0;
}
.hk-sp-name {
	font-weight: 600;
	font-size: 13px;
	color: #1f2937;
}
.hk-sp-title {
	font-size: 11px;
	color: #9ca3af;
	margin-bottom: 4px;
}
.hk-sp-comment {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
}


/* === Form Style: Elegant === */
.hk-form-elegant .hk-public-form {
	border: none;
	box-shadow: 0 4px 32px rgba(0,0,0,0.08);
	border-radius: 20px;
	background: #fefcf8;
}
.hk-form-elegant .hk-public-form h3 {
	font-family: Georgia, serif;
	font-style: italic;
	color: #8b5cf6;
}
.hk-form-elegant input[type="text"],
.hk-form-elegant input[type="email"],
.hk-form-elegant input[type="url"],
.hk-form-elegant textarea,
.hk-form-elegant select {
	border: 1px solid #e8d5c4;
	border-radius: 12px;
	background: #fffefa;
}

/* === Form Style: Brutalist === */
.hk-form-brutalist .hk-public-form {
	border: 3px solid #000;
	border-radius: 0;
	box-shadow: 6px 6px 0 #000;
	background: #fff;
}
.hk-form-brutalist .hk-public-form h3 {
	font-family: 'Courier New', monospace;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.hk-form-brutalist input[type="text"],
.hk-form-brutalist input[type="email"],
.hk-form-brutalist input[type="url"],
.hk-form-brutalist textarea,
.hk-form-brutalist select,
.hk-form-brutalist .hk-btn-primary {
	border: 2px solid #000;
	border-radius: 0;
}

/* === Form Style: Glassmorphism === */
.hk-form-glassmorphism .hk-public-form {
	background: rgba(255,255,255,0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255,255,255,0.5);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.hk-form-glassmorphism input[type="text"],
.hk-form-glassmorphism input[type="email"],
.hk-form-glassmorphism input[type="url"],
.hk-form-glassmorphism textarea,
.hk-form-glassmorphism select {
	background: rgba(255,255,255,0.6);
	border: 1px solid rgba(255,255,255,0.8);
	border-radius: 10px;
	backdrop-filter: blur(4px);
}

/* === Layout: Polaroid === */
.hk-polaroid-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}
.hk-polaroid-card {
	background: #fff;
	padding: 12px 12px 8px;
	box-shadow: 3px 3px 8px rgba(0,0,0,0.1);
	border-radius: 2px;
	text-align: center;
	width: 180px;
	transform: rotate(var(--rot, 0deg));
}
.hk-polaroid-card:nth-child(odd)  { --rot: -2deg; }
.hk-polaroid-card:nth-child(even) { --rot: 2deg; }
.hk-polaroid-pic {
	width: 100%;
	height: 120px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 2px;
}
.hk-polaroid-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hk-polaroid-fallback {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 20px;
}
.hk-polaroid-comment {
	font-size: 12px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0 0 6px;
}
.hk-polaroid-name {
	font-size: 10px;
	font-weight: 600;
	color: #9ca3af;
}

/* === Layout: Stacked === */
.hk-stacked-container {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
}
.hk-stacked-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	margin-top: -18px;
}
.hk-stacked-item:first-child {
	margin-top: 0;
}
.hk-stacked-item p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}
.hk-stacked-item span {
	font-size: 12px;
	color: #6366f1;
	font-weight: 600;
}

/* === Layout: Magazine === */
.hk-magazine-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 12px;
	max-width: 800px;
	margin: 0 auto;
}
.hk-magazine-featured {
	grid-row: span 2;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	border-left: 4px solid #6366f1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hk-magazine-featured p {
	font-size: 16px;
	line-height: 1.8;
	color: #1f2937;
	margin: 0 0 12px;
	font-weight: 500;
}
.hk-magazine-meta {
	font-size: 13px;
	color: #6366f1;
	font-weight: 600;
}
.hk-magazine-item {
	background: #f9fafb;
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.hk-magazine-item span {
	font-size: 12px;
	font-weight: 600;
	color: #6366f1;
}
.hk-magazine-item p {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;

/* === Columns support (override layout grid with flex wrap) === */
.hk-wall-container[style*="--hk-columns"] { display: flex !important; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.hk-wall-container[style*="--hk-columns"] > * { flex: 0 0 100%; }
.hk-wall-container[style*="--hk-columns"] > .hk-public-card { flex: 0 0 100%; }
.hk-wall-container[style*="--hk-columns:2"] > *,
.hk-wall-container[style*="--hk-columns:2"] > .hk-public-card { flex-basis: calc(50% - 8px); }
.hk-wall-container[style*="--hk-columns:3"] > *,
.hk-wall-container[style*="--hk-columns:3"] > .hk-public-card { flex-basis: calc(33.333% - 11px); }
.hk-wall-container[style*="--hk-columns:4"] > *,
.hk-wall-container[style*="--hk-columns:4"] > .hk-public-card { flex-basis: calc(25% - 12px); }
.hk-wall-container[style*="--hk-columns:5"] > *,
.hk-wall-container[style*="--hk-columns:5"] > .hk-public-card { flex-basis: calc(20% - 13px); }
.hk-wall-container[style*="--hk-columns:6"] > *,
.hk-wall-container[style*="--hk-columns:6"] > .hk-public-card { flex-basis: calc(16.666% - 13px); }

/* === Layout: Mosaic === */
.hk-mosaic-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 120px;
	gap: 10px;
}
.hk-mosaic-tile {
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: transform 0.2s ease;
}
.hk-mosaic-tile:hover { transform: scale(1.02); }
.hk-mosaic-tile cite {
	font-size: 12px;
	font-weight: 700;
	color: #6366f1;
	font-style: normal;
	margin-bottom: 4px;
}
.hk-mosaic-tile p {
	font-size: 11px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* === Layout: Waves === */
.hk-waves-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.hk-wave-card {
	--hue: 260;
	position: relative;
}
.hk-wave-inner {
	background: hsl(var(--hue), 70%, 96%);
	border-radius: 40px 12px 40px 12px;
	padding: 20px 24px;
	border: 1px solid hsl(var(--hue), 60%, 85%);
}
.hk-wave-inner p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.7;
	color: #374151;
}
.hk-wave-inner span {
	font-size: 12px;
	font-weight: 600;
	color: hsl(var(--hue), 50%, 45%);
}

/* === Layout: Slider === */
.hk-slider-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 10px 4px 20px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.hk-slider-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hk-slider-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 12px;
}
.hk-slider-card p {
	font-size: 13px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0 0 8px;
}
.hk-slider-author {
	font-size: 11px;
	color: #9ca3af;
}

/* === Layout: Album === */
.hk-album-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.hk-album-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: transform 0.2s ease;
}
.hk-album-card:hover { transform: translateY(-2px); }
.hk-album-photo {
	height: 140px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.hk-album-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hk-album-fallback {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 22px;
}
.hk-album-caption {
	padding: 12px;
}
.hk-album-name {
	font-weight: 600;
	font-size: 13px;
	color: #1f2937;
}
.hk-album-caption p {
	font-size: 11px;
	color: #6b7280;
	line-height: 1.4;
	margin: 4px 0 0;
}

/* === Layout: CoverFlow === */
.hk-coverflow-stage {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	padding: 40px 0;
	perspective: 800px;
	overflow-x: auto;
}
.hk-coverflow-item {
	flex: 0 0 200px;
	transform: rotateY(calc(var(--idx) * 8deg - 15deg)) translateZ(calc(var(--idx) * -30px));
	transition: transform 0.3s ease;
}
.hk-coverflow-item:hover { transform: rotateY(0) translateZ(0) scale(1.05); z-index: 10; }
.hk-coverflow-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #f0f0f0;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	text-align: center;
}
.hk-coverflow-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	margin: 0 auto 8px;
}
.hk-coverflow-card p {
	font-size: 11px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0 0 6px;
}
.hk-coverflow-card span {
	font-size: 10px;
	color: #9ca3af;
}

/* === Card entrance animations === */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hk-wall-container .hk-public-card {
	animation: fadeInUp 0.5s ease both;
}
.hk-wall-container .hk-public-card:nth-child(1)  { animation-delay: 0.05s; }
.hk-wall-container .hk-public-card:nth-child(2)  { animation-delay: 0.1s; }
.hk-wall-container .hk-public-card:nth-child(3)  { animation-delay: 0.15s; }
.hk-wall-container .hk-public-card:nth-child(4)  { animation-delay: 0.2s; }
.hk-wall-container .hk-public-card:nth-child(5)  { animation-delay: 0.25s; }
.hk-wall-container .hk-public-card:nth-child(6)  { animation-delay: 0.3s; }
.hk-wall-container .hk-public-card:nth-child(n+7) { animation-delay: 0.35s; }

/* === Button micro-interactions === */
.hk-btn-primary {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hk-btn-primary:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.hk-btn-primary:active {
	transform: scale(0.97);
}

/* ============================================================
   ACCESSIBILITY: Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ============================================================
   ACCESSIBILITY: Touch-aware hover
   ============================================================ */
@media (hover: hover) {
	.hk-public-card:hover { transform: translateY(-2px); box-shadow: var(--hk-shadow-hover); }
	.hk-bento-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
	.hk-mosaic-tile:hover { transform: scale(1.02); }
	.hk-coverflow-item:hover { transform: rotateY(0) translateZ(0) scale(1.05); z-index: 10; }
	.hk-album-card:hover { transform: translateY(-2px); }
}
@media (hover: none) {
	.hk-public-card:hover { transform: none; box-shadow: var(--hk-shadow-card); }
	.hk-bento-card:hover { transform: none; }
	.hk-mosaic-tile:hover { transform: none; }
	.hk-coverflow-item:hover { transform: none; }
	.hk-album-card:hover { transform: none; }
}

/* ============================================================
   NARROW MOBILE: max-width 480px
   ============================================================ */
@media (max-width: 480px) {
	.hk-wall-container[style*="--hk-columns:2"] .hk-public-card,
	.hk-wall-container[style*="--hk-columns:3"] .hk-public-card,
	.hk-wall-container[style*="--hk-columns:4"] .hk-public-card,
	.hk-wall-container[style*="--hk-columns:5"] .hk-public-card,
	.hk-wall-container[style*="--hk-columns:6"] .hk-public-card { flex-basis: 100% !important; }

	.hk-bento-grid { grid-template-columns: 1fr; }
	.hk-mosaic-grid { grid-template-columns: 1fr; }
	.hk-album-grid { grid-template-columns: 1fr; }
	.hk-polaroid-card { width: 100%; }
	.hk-stacked-item { margin-top: -8px; padding: 14px; }
	.hk-spotlight-card { padding: 24px 16px !important; }
	.hk-magazine-layout { gap: 8px; }
	.hk-wave-inner { border-radius: 20px 6px 20px 6px; }
	.hk-coverflow-item { flex: 0 0 85%; min-width: 200px; }
	.hk-layout-quote .hk-quote-card blockquote { font-size: 16px; }
	.hk-public-card { padding: 16px; }
}

/* ============================================================
   TINY SCREEN: max-width 360px
   ============================================================ */
@media (max-width: 360px) {
	.hk-public-card .hk-comment { font-size: 14px; }
	.hk-coverflow-item { flex: 0 0 90%; min-width: 180px; }
	.hk-public-card { padding: 12px; }
}

/* ============================================================
   NEW LAYOUT 17: MARQUEE 信任跑马灯
   ============================================================ */
.hk-marquee-track {
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hk-marquee-inner {
	display: flex;
	gap: 32px;
	padding: 24px 0;
	animation: hkMarqueeScroll 30s linear infinite;
	width: max-content;
}
.hk-marquee-inner:hover {
	animation-play-state: paused;
}
@keyframes hkMarqueeScroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
.hk-marquee-item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 40px;
	padding: 10px 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	white-space: nowrap;
}
.hk-marquee-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.hk-marquee-avatar-fallback {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1, #a855f7);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px;
	flex-shrink: 0;
}
.hk-marquee-name { font-weight: 600; font-size: 14px; color: #1f2937; }
.hk-marquee-title { font-size: 12px; color: #9ca3af; }
.hk-marquee-stars { color: #fbbf24; font-size: 12px; margin-left: 4px; }

@media (max-width: 640px) {
	.hk-marquee-inner { gap: 16px; padding: 16px 0; animation-duration: 20s; }
	.hk-marquee-item { padding: 8px 16px; }
}

/* ============================================================
   NEW LAYOUT 18: GLASSMORPHISM 毛玻璃
   ============================================================ */
.hk-glassmorphism-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	padding: 40px 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 20px;
	padding: 40px 24px;
	margin: 0 4px;
}
.hk-glass-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 16px;
	padding: 24px;
	color: #fff;
	transition: transform 0.3s ease, background 0.3s ease;
}
.hk-glass-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.22);
}
.hk-glass-card .hk-glass-comment {
	font-size: 15px; line-height: 1.7;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: 16px;
}
.hk-glass-card .hk-glass-name {
	font-weight: 700; font-size: 14px;
	color: #fff;
}
.hk-glass-card .hk-glass-title {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}
.hk-glass-card .hk-glass-stars {
	color: #fbbf24; font-size: 14px; margin-bottom: 8px;
	letter-spacing: 2px;
}
.hk-glass-avatar {
	width: 48px; height: 48px; border-radius: 50%;
	object-fit: cover; border: 2px solid rgba(255,255,255,0.3);
	margin-bottom: 12px;
}
.hk-glass-avatar-fallback {
	width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255,255,255,0.2);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 18px;
	margin-bottom: 12px;
	border: 2px solid rgba(255,255,255,0.3);
}

@media (max-width: 640px) {
	.hk-glassmorphism-grid { padding: 24px 12px; border-radius: 12px; }
}

/* ============================================================
   NEW LAYOUT 19: PILL GRID 胶囊网格
   ============================================================ */
.hk-pillgrid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.hk-pill-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	border-radius: 999px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hk-pill-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hk-pill-avatar {
	width: 32px; height: 32px; border-radius: 50%;
	object-fit: cover; flex-shrink: 0;
}
.hk-pill-avatar-fallback {
	width: 32px; height: 32px; border-radius: 50%;
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 12px;
	flex-shrink: 0;
}
.hk-pill-name {
	font-weight: 600; font-size: 13px;
}
.hk-pill-comment {
	font-size: 12px; opacity: 0.85;
	max-width: 200px; white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis;
}
.hk-pill-stars {
	font-size: 12px; letter-spacing: 1px;
}

@media (max-width: 640px) {
	.hk-pillgrid { gap: 8px; }
	.hk-pill-card { padding: 8px 14px; }
	.hk-pill-comment { max-width: 120px; }
}

/* ============================================================
   LAYOUT 20: CARD DECK 叠牌
   ============================================================ */
.hk-carddeck-container {
	display: flex; justify-content: center; flex-wrap: wrap;
	position: relative; padding: 20px 0; min-height: 200px;
}
.hk-carddeck-card {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
	padding: 20px; width: 300px; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
	transition: transform 0.3s ease, z-index 0s;
	position: relative; cursor: pointer;
}
.hk-carddeck-card:hover { transform: translateY(-8px) scale(1.03); z-index: 10; }
.hk-carddeck-name { font-weight: 700; font-size: 14px; color: #6366f1; margin-bottom: 4px; }
.hk-carddeck-title { font-size: 12px; color: #9ca3af; margin-bottom: 10px; }
.hk-carddeck-comment { font-size: 14px; line-height: 1.6; color: #4b5563; }
.hk-carddeck-stars { color: #fbbf24; font-size: 14px; margin-bottom: 8px; }
@media (max-width: 640px) { .hk-carddeck-card { width: 90%; } }

/* ============================================================
   LAYOUT 21: SPLIT CARDS 左右交替
   ============================================================ */
.hk-splitcards-container { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto; }
.hk-splitcard-row { display: flex; align-items: center; gap: 32px; }
.hk-splitcard-row:nth-child(even) { flex-direction: row-reverse; }
.hk-splitcard-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hk-splitcard-avatar-fb { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,#6366f1,#a855f7); color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700; flex-shrink: 0; }
.hk-splitcard-body { flex: 1; }
.hk-splitcard-comment { font-size: 15px; line-height: 1.7; color: #374151; margin-bottom: 8px; }
.hk-splitcard-name { font-weight: 700; color: #6366f1; }
.hk-splitcard-title { font-size: 13px; color: #9ca3af; }
@media (max-width: 640px) { .hk-splitcard-row, .hk-splitcard-row:nth-child(even) { flex-direction: column; text-align: center; } }

/* ============================================================
   LAYOUT 22: HONEYCOMB 蜂巢
   ============================================================ */
.hk-honeycomb-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 800px; margin: 0 auto; }
.hk-honeycomb-cell { width: 160px; height: 140px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; border: none; transition: transform 0.2s; }
.hk-honeycomb-cell:nth-child(odd) { background: #f0f4ff; }
.hk-honeycomb-cell:nth-child(5n+2) { background: #faf5ff; }
.hk-honeycomb-cell:nth-child(5n+3) { background: #fef2f2; }
.hk-honeycomb-cell:hover { transform: scale(1.08); z-index: 2; }
.hk-honeycomb-name { font-weight: 700; font-size: 12px; color: #6366f1; }
.hk-honeycomb-comment { font-size: 10px; color: #4b5563; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@media (max-width: 640px) { .hk-honeycomb-cell { width: 120px; height: 105px; } }

/* ============================================================
   LAYOUT 23: FLIP CARD 翻转卡
   ============================================================ */
.hk-flipcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.hk-flipcard { perspective: 800px; height: 200px; cursor: pointer; }
.hk-flipcard-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.hk-flipcard:hover .hk-flipcard-inner, .hk-flipcard.flipped .hk-flipcard-inner { transform: rotateY(180deg); }
.hk-flipcard-front, .hk-flipcard-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e5e7eb; background: #fff; }
.hk-flipcard-back { transform: rotateY(180deg); background: #f9fafb; }
.hk-flipcard-front-name { font-weight: 700; font-size: 18px; color: #6366f1; text-align: center; }
.hk-flipcard-front-title { font-size: 13px; color: #9ca3af; text-align: center; }
.hk-flipcard-front-stars { color: #fbbf24; text-align: center; font-size: 16px; margin-top: 4px; }
.hk-flipcard-back-comment { font-size: 13px; line-height: 1.6; color: #374151; text-align: center; }

/* ============================================================
   LAYOUT 24: TICKER RIVER 信息流
   ============================================================ */
.hk-tickerriver { overflow: hidden; padding: 16px 0; }
.hk-tickerriver-row { display: flex; gap: 24px; animation: hkTickerScroll 20s linear infinite; width: max-content; }
.hk-tickerriver-row:nth-child(2) { animation-direction: reverse; animation-duration: 25s; margin-top: 12px; }
@keyframes hkTickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.hk-tickerriver-row:hover { animation-play-state: paused; }
.hk-ticker-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 10px 20px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.hk-ticker-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hk-ticker-avatar-fb { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#6366f1,#a855f7); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.hk-ticker-name { font-weight: 600; font-size: 13px; color: #1f2937; }
.hk-ticker-quote { font-size: 12px; color: #6b7280; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   LAYOUT 25: SCATTER 散落画廊
   ============================================================ */
.hk-scatter-gallery { position: relative; min-height: 400px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 20px 0; }
.hk-scatter-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px; max-width: 240px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.3s; }
.hk-scatter-card:nth-child(odd) { transform: rotate(-1.5deg); }
.hk-scatter-card:nth-child(even) { transform: rotate(1.8deg); }
.hk-scatter-card:nth-child(3n) { transform: rotate(0.5deg); }
.hk-scatter-card:hover { transform: rotate(0) translateY(-4px); z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.hk-scatter-name { font-weight: 700; font-size: 13px; color: #6366f1; }
.hk-scatter-title { font-size: 11px; color: #9ca3af; margin-bottom: 6px; }
.hk-scatter-comment { font-size: 13px; line-height: 1.5; color: #4b5563; }
@media (max-width: 640px) { .hk-scatter-card { max-width: 90%; } .hk-scatter-card:nth-child(odd), .hk-scatter-card:nth-child(even), .hk-scatter-card:nth-child(3n) { transform: rotate(0); } }

/* ============================================================
   LAYOUT 26: KANBAN 评分布局
   ============================================================ */
.hk-kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hk-kanban-col { display: flex; flex-direction: column; gap: 8px; }
.hk-kanban-header { text-align: center; font-weight: 700; font-size: 13px; padding: 8px; border-radius: 8px; color: #fff; }
.hk-kanban-h5 { background: #10b981; } .hk-kanban-h4 { background: #6366f1; } .hk-kanban-h3 { background: #f59e0b; } .hk-kanban-h2 { background: #f97316; } .hk-kanban-h1 { background: #ef4444; }
.hk-kanban-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px; font-size: 12px; line-height: 1.5; }
.hk-kanban-name { font-weight: 600; color: #6366f1; font-size: 12px; }
.hk-kanban-comment { color: #4b5563; font-size: 11px; margin-top: 4px; }
@media (max-width: 640px) { .hk-kanban { grid-template-columns: 1fr; } }

/* ============================================================
   GLOBAL CARD ENTRANCE ANIMATION
   ============================================================ */
.hk-quote-card, .hk-minimal-card, .hk-bento-card, .hk-timeline-item,
.hk-spotlight-card, .hk-polaroid-card, .hk-stacked-item, .hk-magazine-featured,
.hk-magazine-item, .hk-mosaic-tile, .hk-wave-card, .hk-slider-card,
.hk-album-card, .hk-coverflow-item, .hk-marquee-item, .hk-glass-card,
.hk-pill-card, .hk-carddeck-card, .hk-splitcard-row, .hk-honeycomb-cell,
.hk-flipcard, .hk-ticker-item, .hk-scatter-card, .hk-kanban-card {
	animation: hkCardFadeIn 0.5s ease backwards;
}
@keyframes hkCardFadeIn {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
.hk-bento-card:nth-child(1) { animation-delay: 0s; }
.hk-bento-card:nth-child(2) { animation-delay: 0.06s; }
.hk-bento-card:nth-child(3) { animation-delay: 0.12s; }
.hk-timeline-item:nth-child(1) { animation-delay: 0s; }
.hk-timeline-item:nth-child(2) { animation-delay: 0.1s; }
.hk-timeline-item:nth-child(3) { animation-delay: 0.2s; }
.hk-marquee-item { animation: hkCardFadeIn 0.5s ease backwards, hkMarqueeScroll 30s linear infinite; }

/* ============================================================
   ENHANCED AVATAR CLASSES (for upgraded layouts)
   ============================================================ */
.hk-quote-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; border: 2px solid #e5e7eb; }
.hk-quote-avatar-fb { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,#6366f1 0%,#a855f7 100%); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; margin: 0 auto 12px; text-shadow:0 1px 2px rgba(0,0,0,0.15); box-shadow:0 3px 12px rgba(99,102,241,0.3); }
.hk-quote-stars { color: #fbbf24; font-size: 14px; margin-bottom: 8px; text-align: center; }
.hk-minimal-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; float: left; margin-right: 10px; }
.hk-minimal-avatar-fb { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#8b5cf6,#6366f1); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; float:left; margin-right:10px; box-shadow:0 2px 6px rgba(99,102,241,0.25); }
.hk-bento-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.hk-bento-avatar-fb { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#a855f7,#6366f1); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; margin-bottom: 8px; box-shadow:0 2px 6px rgba(99,102,241,0.2); }
.hk-timeline-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.hk-timeline-avatar-fb { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#6366f1,#ec4899); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; margin-bottom: 8px; border: 2px solid #fff; box-shadow:0 2px 8px rgba(99,102,241,0.2); }

/* Quote card improvement */
.hk-quote-card blockquote { padding-top: 0; }

/* Minimal card clearfix for float avatar */
.hk-minimal-card::after { content: ''; display: table; clear: both; }

/* Form dropzone fallback avatar — premium K initial */
.hk-dropzone-fallback-avatar {
	width: 84px; height: 84px; border-radius: 50%;
	background: 
		radial-gradient(circle at 35% 35%, rgba(255,255,255,0.25) 0%, transparent 50%),
		linear-gradient(145deg, #818cf8 0%, #6366f1 30%, #7c3aed 60%, #a855f7 100%);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 38px; font-weight: 800;
	text-shadow: 0 2px 6px rgba(0,0,0,0.2);
	box-shadow: 
		0 0 0 3px rgba(99,102,241,0.15),
		0 8px 32px rgba(99,102,241,0.35);
	transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
	position: relative;
}
.hk-dropzone-fallback-avatar::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1.5px solid rgba(99,102,241,0.2);
	pointer-events: none;
}
.hk-dropzone-fallback-avatar:hover { 
	transform: scale(1.06); 
	box-shadow: 0 0 0 5px rgba(99,102,241,0.2), 0 12px 40px rgba(99,102,241,0.4);
}
.hk-dropzone-default-img {
	width: 84px; height: 84px; border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 8px 32px rgba(0,0,0,0.12);
	transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.hk-dropzone-default-img:hover { transform: scale(1.06); }

