/*
Theme Name: HN FINDS
Theme URI: https://example.com/hn-finds
Author: shibnyu
Author URI: https://example.com
Description: HN FINDS —— 精选购物清单主题。首页为搜索 + 分类筛选 + 产品网格的「电子表格」式目录，每张卡片下方可放置多个代购渠道链接。内置产品自定义文章类型、示例数据一键导入、完整的中文自定义器面板、悬浮联系方式与多语言界面切换。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hn-finds
Tags: e-commerce, one-column, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =====================================================================
   1. 基础重置
   ================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--hn-font-body);
	font-size: var(--hn-base-size);
	line-height: var(--hn-line-height);
	color: var(--hn-ink-2);
	background: var(--hn-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hn-font-heading);
	color: var(--hn-ink);
	margin: 0 0 .5em;
	line-height: 1.25;
	letter-spacing: -.015em;
}

p { margin: 0 0 1em; }

a {
	color: var(--hn-accent);
	text-decoration: none;
	transition: color .18s ease;
}

a:hover { color: var(--hn-accent-dark); }

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	border: 0;
	background: none;
}

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

:focus-visible {
	outline: 2px solid var(--hn-accent);
	outline-offset: 2px;
}

.hn-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 10px 16px;
	background: var(--hn-ink);
	color: #fff;
	border-radius: 0 0 8px 0;
}

.hn-skip-link:focus {
	left: 0;
	color: #fff;
}

.hn-icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

.hn-icon--xxs { width: 8px;  height: 8px; }
.hn-icon--xs  { width: 14px; height: 14px; }
.hn-icon--md  { width: 20px; height: 20px; }

.hn-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--hn-bg);
}

.hn-main {
	flex: 1;
	width: 100%;
	max-width: var(--hn-container);
	margin: 0 auto;
	padding: 8px 16px 64px;
}

/* =====================================================================
   2. 促销条
   ================================================================== */
.hn-promo {
	font-size: 13px;
	font-weight: 600;
}

.hn-promo__inner {
	max-width: var(--hn-container);
	margin: 0 auto;
	padding: 9px 44px 9px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: relative;
	text-align: center;
	flex-wrap: wrap;
}

.hn-promo__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: .9;
}

.hn-promo__link:hover { color: inherit; opacity: 1; }

.hn-promo__close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	color: inherit;
	opacity: .7;
}

.hn-promo__close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, .14);
}

/* =====================================================================
   3. 页头
   ================================================================== */
.hn-header {
	position: relative;
	width: 100%;
	background: var(--hn-header-bg);
	user-select: none;
}

.hn-topbar {
	border-bottom: 1px solid var(--hn-line);
	background: color-mix(in srgb, var(--hn-bg-soft) 50%, transparent);
	padding: 8px 16px;
}

.hn-topbar__inner {
	max-width: var(--hn-container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.hn-topbar__spacer { flex: 1; }

.hn-topnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 600;
}

.hn-topnav__list a { color: var(--hn-muted); }
.hn-topnav__list a:hover { color: var(--hn-accent); }

/* 语言切换 */
.hn-lang {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--hn-line-2);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.hn-lang__btn {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	color: var(--hn-muted);
	transition: all .18s ease;
	line-height: 1.2;
}

.hn-lang__btn:hover { background: var(--hn-bg-soft); }

.hn-lang__btn.is-active {
	background: var(--hn-ink);
	color: #fff;
	font-weight: 800;
}

/* Hero */
.hn-hero {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 16px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hn-hero__logo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0 10px;
	transition: transform .3s ease;
}

.hn-hero__logo:hover { transform: scale(1.02); }

.hn-hero__logo-1,
.hn-hero__logo-2 {
	font-family: var(--hn-font-heading);
	font-weight: 800;
	font-size: clamp(2rem, 6vw, 3rem);
	letter-spacing: -.03em;
	line-height: 1;
	text-transform: uppercase;
}

.hn-hero__logo-1 { color: var(--hn-ink-2); }
.hn-hero__logo-2 { color: var(--hn-accent); }

.hn-hero__tagline {
	font-size: clamp(1.05rem, 2.4vw, 1.5rem);
	font-weight: 700;
	color: var(--hn-ink);
	margin: 16px 0 0;
	letter-spacing: -.02em;
}

.hn-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.hn-btn-register {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	background: var(--hn-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 4px 8px -2px rgba(15, 23, 42, .14);
	transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}

.hn-btn-register:hover {
	background: var(--hn-accent-dark);
	color: #fff;
	box-shadow: 0 10px 18px -6px rgba(15, 23, 42, .22);
}

.hn-btn-register:active { transform: scale(.96); }

/* 注册渠道展开面板 */
.hn-register-panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 8px;
	width: 100%;
	max-width: 620px;
	margin: 14px auto 0;
	padding: 14px;
	background: var(--hn-card-bg);
	border: 1px solid var(--hn-line-2);
	border-radius: var(--hn-radius);
	box-shadow: 0 12px 28px -12px rgba(15, 23, 42, .22);
	animation: hn-fade-in .22s ease both;
}

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

/* =====================================================================
   4. 搜索 + 筛选
   ================================================================== */
.hn-controls {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 8px 0 4px;
	background: var(--hn-bg);
}

.hn-controls.is-stuck {
	position: sticky;
	top: 0;
	z-index: 40;
	padding: 12px 0 10px;
	box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .3);
}

.hn-search {
	max-width: 760px;
	width: 100%;
	margin: 0 auto;
	padding: 0 8px;
}

.hn-search__box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: color-mix(in srgb, var(--hn-bg-soft) 90%, transparent);
	border: 1px solid var(--hn-line-2);
	border-radius: 999px;
	padding: 8px 12px 8px 18px;
	transition: border-color .18s ease, background .18s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.hn-search__box:hover {
	border-color: color-mix(in srgb, var(--hn-accent) 40%, transparent);
}

.hn-search__box:focus-within {
	border-color: var(--hn-accent);
	background: #fff;
}

.hn-search__icon {
	width: 20px;
	height: 20px;
	color: var(--hn-muted-2);
}

.hn-search__input {
	width: 100%;
	border: 0;
	background: transparent;
	outline: none;
	padding: 5px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--hn-ink-2);
}

.hn-search__input::placeholder { color: var(--hn-muted-2); }
.hn-search__input::-webkit-search-cancel-button { cursor: pointer; }

/* 筛选标签 */
.hn-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 4px;
}

.hn-chip {
	padding: 5px 13px;
	border-radius: 999px;
	border: 1px solid var(--hn-line-2);
	background: #fff;
	color: var(--hn-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .01em;
	transition: all .18s ease;
	white-space: nowrap;
}

.hn-chip:hover {
	border-color: color-mix(in srgb, var(--hn-accent) 45%, transparent);
	color: var(--hn-accent);
	background: color-mix(in srgb, var(--hn-accent-soft) 40%, #fff);
}

.hn-chip:active { transform: scale(.96); }

.hn-chip.is-active {
	background: var(--hn-accent);
	border-color: var(--hn-accent);
	color: #fff;
	box-shadow: 0 2px 6px -1px color-mix(in srgb, var(--hn-accent) 45%, transparent);
}

/* =====================================================================
   5. 产品目录
   ================================================================== */
.hn-catalog {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hn-catalog__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--hn-line);
}

.hn-catalog__title {
	font-size: 15px;
	font-weight: 800;
	color: var(--hn-ink-2);
	margin: 0;
	line-height: 1.2;
}

.hn-catalog__count {
	font-size: 12px;
	color: var(--hn-muted);
	margin: 6px 0 0;
}

.hn-reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--hn-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.hn-reset:hover { color: var(--hn-accent-dark); }
.hn-reset[hidden] { display: none; }

/* 网格 */
.hn-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 24px;
}

/* =====================================================================
   6. 产品卡片
   ================================================================== */
.hn-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--hn-card-bg);
	border: 1px solid var(--hn-line);
	border-radius: var(--hn-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
	overflow: hidden;
	transition: box-shadow .3s ease, transform .3s ease;
	animation: hn-card-in .25s ease both;
}

.hn-card:hover {
	box-shadow: 0 20px 32px -14px rgba(15, 23, 42, .22);
	transform: translateY(-4px);
}

.hn-card[hidden] { display: none; }

.hn-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	background: var(--hn-bg-soft);
	overflow: hidden;
}

.hn-card__media.is-zoomable { cursor: zoom-in; }

.hn-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}

.hn-card:hover .hn-card__media img { transform: scale(1.05); }

.hn-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0);
	transition: background .3s ease;
	pointer-events: none;
}

.hn-card:hover .hn-card__media::after { background: rgba(2, 6, 23, .05); }

.hn-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--hn-bg-soft), var(--hn-line));
}

.hn-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px;
}

.hn-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 10px;
}

.hn-tag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--hn-bg-soft);
	color: var(--hn-muted);
	font-size: 10px;
	font-weight: 500;
	transition: background .18s ease, color .18s ease;
}

.hn-tag:hover {
	background: color-mix(in srgb, var(--hn-accent-soft) 60%, transparent);
	color: var(--hn-accent);
}

.hn-card__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--hn-ink-2);
	line-height: 1.4;
	letter-spacing: -.01em;
	margin: 0 0 10px;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hn-card__title a { color: inherit; }
.hn-card:hover .hn-card__title a { color: var(--hn-accent); }

.hn-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-bottom: 16px;
}

.hn-card__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.hn-card__price-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--hn-muted-2);
}

.hn-card__price-value {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 19px;
	font-weight: 700;
	color: var(--hn-ink);
}

.hn-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--hn-accent-soft) 70%, transparent);
	color: var(--hn-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	transition: background .18s ease, transform .12s ease;
	white-space: nowrap;
}

.hn-copy:hover { background: var(--hn-accent-soft); }
.hn-copy:active { transform: scale(.95); }
.hn-copy.is-copied { background: #d1fae5; color: #047857; }

/* 代购渠道按钮 */
.hn-card__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--hn-line);
}

.hn-agent {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 11px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
	transition: background .2s ease, box-shadow .2s ease, transform .12s ease;
}

.hn-agent:hover {
	color: #fff;
	box-shadow: 0 6px 12px -4px rgba(15, 23, 42, .25);
}

.hn-agent:active { transform: scale(.98); }

.hn-agent__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hn-agent .hn-icon { opacity: .8; }

/* 空状态 / 加载更多 */
.hn-empty {
	text-align: center;
	color: var(--hn-muted);
	font-size: 14px;
	padding: 48px 0;
	margin: 0;
}

.hn-empty[hidden] { display: none; }

.hn-more {
	text-align: center;
	padding-top: 8px;
}

.hn-more[hidden] { display: none; }

.hn-more__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1px solid var(--hn-line-2);
	border-radius: 14px;
	background: #fff;
	color: var(--hn-ink-2);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: all .2s ease;
}

.hn-more__btn:hover {
	background: var(--hn-bg-soft);
	color: var(--hn-ink);
	box-shadow: 0 8px 16px -8px rgba(15, 23, 42, .25);
}

.hn-notice {
	text-align: center;
	padding: 64px 16px;
	color: var(--hn-muted);
}

/* =====================================================================
   7. 内容页 / 博客 / 单品
   ================================================================== */
.hn-page {
	max-width: 820px;
	margin: 0 auto;
	padding: 40px 0 24px;
}

.hn-page__title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -.025em;
}

.hn-page__meta {
	font-size: 13px;
	color: var(--hn-muted);
	margin-bottom: 24px;
}

.hn-content {
	font-size: 16px;
	line-height: 1.75;
	color: var(--hn-ink-2);
}

.hn-content h2 { font-size: 1.5rem; margin-top: 1.8em; }
.hn-content h3 { font-size: 1.2rem; margin-top: 1.6em; }

.hn-content img,
.hn-content figure { border-radius: var(--hn-radius); }

.hn-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--hn-accent);
	color: var(--hn-muted);
	font-style: italic;
}

.hn-content code {
	background: var(--hn-bg-soft);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: .9em;
}

.hn-content pre {
	background: var(--hn-ink);
	color: #e2e8f0;
	padding: 18px;
	border-radius: var(--hn-radius);
	overflow-x: auto;
}

.hn-content pre code { background: none; padding: 0; color: inherit; }

/* 单品详情 */
.hn-single {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding: 32px 0;
}

.hn-single__media {
	border-radius: var(--hn-radius);
	overflow: hidden;
	border: 1px solid var(--hn-line);
	background: var(--hn-bg-soft);
	aspect-ratio: 1 / 1;
}

.hn-single__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hn-single__title {
	font-size: clamp(1.4rem, 3.4vw, 2rem);
	font-weight: 800;
	letter-spacing: -.025em;
	margin-bottom: 14px;
}

.hn-single__price {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 30px;
	font-weight: 700;
	color: var(--hn-ink);
	margin-bottom: 18px;
}

.hn-single__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 22px 0;
	max-width: 380px;
}

.hn-single__links .hn-agent { padding: 12px 18px; font-size: 14px; }

.hn-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hn-muted);
	margin-bottom: 20px;
}

.hn-back:hover { color: var(--hn-accent); }

/* 博客列表 */
.hn-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	padding: 32px 0;
}

.hn-post {
	background: var(--hn-card-bg);
	border: 1px solid var(--hn-line);
	border-radius: var(--hn-radius);
	overflow: hidden;
	transition: box-shadow .3s ease, transform .3s ease;
}

.hn-post:hover {
	box-shadow: 0 20px 32px -14px rgba(15, 23, 42, .2);
	transform: translateY(-3px);
}

.hn-post__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--hn-bg-soft); }
.hn-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hn-post__body { padding: 20px; }
.hn-post__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.hn-post__title a { color: var(--hn-ink); }
.hn-post__title a:hover { color: var(--hn-accent); }
.hn-post__meta { font-size: 12px; color: var(--hn-muted-2); margin-bottom: 10px; }
.hn-post__excerpt { font-size: 14px; color: var(--hn-muted); margin: 0; }

.hn-archive-head {
	padding: 40px 0 8px;
	text-align: center;
}

.hn-archive-head__title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -.025em;
}

.hn-archive-head__desc { color: var(--hn-muted); font-size: 15px; }

/* 分页 */
.hn-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 24px 0 8px;
	flex-wrap: wrap;
}

.hn-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--hn-line-2);
	background: #fff;
	color: var(--hn-muted);
	font-size: 13px;
	font-weight: 600;
}

.hn-pagination .page-numbers:hover { border-color: var(--hn-accent); color: var(--hn-accent); }

.hn-pagination .page-numbers.current {
	background: var(--hn-accent);
	border-color: var(--hn-accent);
	color: #fff;
}

/* 404 */
.hn-404 {
	text-align: center;
	padding: 90px 16px;
}

.hn-404__code {
	font-family: "JetBrains Mono", monospace;
	font-size: clamp(4rem, 16vw, 8rem);
	font-weight: 700;
	color: var(--hn-accent);
	line-height: 1;
	margin: 0;
}

/* 侧边栏小工具 */
.hn-widget {
	background: var(--hn-card-bg);
	border: 1px solid var(--hn-line);
	border-radius: var(--hn-radius);
	padding: 20px;
	margin-bottom: 20px;
}

.hn-widget__title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.hn-widget ul { list-style: none; margin: 0; padding: 0; }
.hn-widget li { padding: 6px 0; border-bottom: 1px solid var(--hn-line); font-size: 14px; }
.hn-widget li:last-child { border-bottom: 0; }

/* =====================================================================
   8. 页脚
   ================================================================== */
.hn-footer {
	background: var(--hn-footer-bg);
	color: var(--hn-footer-text);
	margin-top: auto;
}

.hn-footer__inner {
	max-width: var(--hn-container);
	margin: 0 auto;
	padding: 52px 16px 36px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
}

.hn-footer__logo-1, .hn-footer__logo-2 {
	font-family: var(--hn-font-heading);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.hn-footer__logo-1 { color: #fff; }
.hn-footer__logo-2 { color: var(--hn-accent); margin-left: 8px; }

.hn-footer__about {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.7;
	max-width: 420px;
	opacity: .85;
}

.hn-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 28px;
}

.hn-footer__col-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #fff;
	margin: 0 0 12px;
}

.hn-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.hn-footer__menu a {
	color: var(--hn-footer-text);
	font-size: 14px;
	opacity: .85;
}

.hn-footer__menu a:hover { color: var(--hn-footer-link); opacity: 1; }

.hn-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 18px 16px;
	text-align: center;
	font-size: 13px;
	opacity: .7;
}

/* =====================================================================
   9. 悬浮联系 / 灯箱 / 提示
   ================================================================== */
.hn-floating {
	position: fixed;
	bottom: 24px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hn-floating--right { right: 18px; align-items: flex-end; }
.hn-floating--left  { left: 18px;  align-items: flex-start; }

.hn-fab {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	background: var(--hn-fab-bg);
	color: var(--hn-fab-icon);
	border: 1px solid var(--hn-line-2);
	box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .3);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hn-floating--circle .hn-fab { border-radius: 999px; }
.hn-floating--square .hn-fab { border-radius: 14px; }

.hn-fab:hover {
	transform: translateY(-2px);
	background: var(--hn-accent);
	color: #fff;
	border-color: var(--hn-accent);
	box-shadow: 0 10px 22px -8px rgba(15, 23, 42, .4);
}

.hn-fab .hn-icon { width: 20px; height: 20px; }
.hn-fab[hidden] { display: none; }

.hn-fab--top {
	background: var(--hn-accent);
	color: #fff;
	border-color: var(--hn-accent);
}

.hn-fab__tip {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	background: var(--hn-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}

.hn-floating--right .hn-fab__tip { right: calc(100% + 10px); }
.hn-floating--left  .hn-fab__tip { left:  calc(100% + 10px); }

.hn-fab:hover .hn-fab__tip { opacity: 1; }

.hn-wechat-pop {
	background: #fff;
	padding: 10px;
	border-radius: 14px;
	box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .35);
	border: 1px solid var(--hn-line-2);
}

.hn-wechat-pop[hidden] { display: none; }
.hn-wechat-pop img { width: 148px; height: 148px; object-fit: contain; }

/* 灯箱 */
.hn-lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(2, 6, 23, .88);
	backdrop-filter: blur(3px);
	animation: hn-fade-in .18s ease both;
}

.hn-lightbox[hidden] { display: none; }

.hn-lightbox img {
	max-width: min(92vw, 900px);
	max-height: 88vh;
	object-fit: contain;
	border-radius: var(--hn-radius);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}

.hn-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

.hn-lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.hn-lightbox__close .hn-icon { width: 22px; height: 22px; }

/* Toast */
.hn-toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	transform: translateX(-50%);
	z-index: 100;
	background: var(--hn-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 999px;
	box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5);
	animation: hn-toast-in .25s ease both;
}

.hn-toast[hidden] { display: none; }

/* =====================================================================
   10. 动画
   ================================================================== */
@keyframes hn-card-in {
	from { opacity: 0; transform: scale(.96); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes hn-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes hn-toast-in {
	from { opacity: 0; transform: translate(-50%, 12px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =====================================================================
   11. 响应式
   ================================================================== */
@media (min-width: 576px) {
	.hn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.hn-main { padding: 8px 24px 72px; }
	.hn-grid--3,
	.hn-grid--4,
	.hn-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hn-catalog__title { font-size: 16px; }
	.hn-card__title { font-size: 16px; }
	.hn-single { grid-template-columns: 1fr 1fr; gap: 44px; }
	.hn-footer__inner { grid-template-columns: 1.2fr 2fr; }
}

@media (min-width: 992px) {
	.hn-main { padding: 8px 32px 80px; }
	.hn-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hn-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
	.hn-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
	.hn-hero { padding: 24px 16px 18px; }
	.hn-card__body { padding: 15px; }
	.hn-agent { padding: 8px 12px; font-size: 12px; }
	.hn-card__price-value { font-size: 17px; }
	.hn-floating { bottom: 16px; }
	.hn-fab { width: 42px; height: 42px; }
	.hn-catalog__head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
