/* =====================================================
   飞鸟科技 Feiniao — 主题样式
   纸白 / 墨 / 钴蓝航线 · 极简排版 · 无外部资源依赖
   ===================================================== */

/* ---------- 设计令牌 ---------- */
:root {
	--paper: #fafaf8;
	--white: #ffffff;
	--ink: #17181c;
	--graphite: #5a5e66;
	--mist: #e7e8eb;
	--dawn: #eef1f7;
	--route: #2246e0;
	--route-soft: rgba(34, 70, 224, 0.08);
	--route-line: rgba(34, 70, 224, 0.4);
	--font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
	--hairline: 1px solid var(--mist);
	--maxw: 1080px;
	--radius: 5px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
}

::selection {
	background: rgba(34, 70, 224, 0.16);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--route);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 100;
	background: var(--ink);
	color: var(--white);
	padding: 8px 16px;
	font-size: 0.85rem;
	text-decoration: none;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 12px;
}

/* ---------- 布局工具 ---------- */
.wrap {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(20px, 5vw, 40px);
}

.wrap.narrow {
	max-width: 760px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--graphite);
	margin: 0 0 18px;
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--route);
	flex: none;
}

.section-title {
	font-size: clamp(1.55rem, 3.2vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0 0 8px;
}

.section-more {
	margin-top: 28px;
}

.link-more {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--mist);
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.link-more:hover {
	color: var(--route);
	border-color: var(--route);
}

.empty-note {
	color: var(--graphite);
	border-top: var(--hairline);
	padding: 36px 0;
	margin: 0;
}

/* ---------- 按钮 / 标签 ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ink);
	color: var(--white);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--ink);
	padding: 12px 24px;
	border-radius: var(--radius);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.btn:hover {
	background: var(--route);
	border-color: var(--route);
	transform: translateY(-1px);
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--mist);
}

.btn-ghost:hover {
	background: transparent;
	color: var(--route);
	border-color: var(--route);
	transform: translateY(-1px);
}

.btn-disabled {
	cursor: default;
}

.btn-disabled:hover {
	background: transparent;
	color: var(--graphite);
	border-color: var(--mist);
	transform: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--graphite);
	border: 1px solid var(--mist);
	border-radius: 999px;
	padding: 3px 11px;
	line-height: 1.5;
	white-space: nowrap;
}

.chip--live {
	color: var(--route);
	border-color: rgba(34, 70, 224, 0.35);
	background: var(--route-soft);
}

.chip--dev {
	color: var(--graphite);
	background: var(--white);
}

/* ---------- 页头 ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 250, 248, 0.88);
	-webkit-backdrop-filter: saturate(1.15) blur(10px);
	backdrop-filter: saturate(1.15) blur(10px);
	border-bottom: var(--hairline);
	transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 1px 14px rgba(23, 24, 28, 0.06);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	position: relative;
}

.wordmark {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-decoration: none;
}

.wordmark-mark img {
	display: block;
	height: 13px;
	width: auto;
}

.wordmark-text {
	display: inline-flex;
	align-items: baseline;
	gap: 9px;
}

.wordmark-cn {
	font-weight: 700;
	font-size: 0.98rem;
	letter-spacing: 0.1em;
}

.wordmark-en {
	font-size: 0.56rem;
	letter-spacing: 0.3em;
	color: var(--graphite);
}

.custom-logo {
	height: 34px;
	width: auto;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	position: relative;
	padding: 4px 0;
}

.nav-list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: var(--route);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.nav-list a:hover::after,
.nav-list .current-menu-item a::after,
.nav-list .current_page_item a::after,
.fn-on-products .nav-list a[href*="products"]::after {
	transform: scaleX(1);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--ink);
	transition: transform 0.25s ease;
}

.nav-toggle.is-open .nav-toggle-bar:first-child {
	transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:last-child {
	transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- 首页 Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 9vw, 116px) 0 72px;
}

.hero .wrap {
	position: relative;
	z-index: 1;
}

.hero-route {
	position: absolute;
	right: 0;
	top: 10%;
	width: min(44vw, 500px);
	height: auto;
	pointer-events: none;
}

.hero-route-path {
	stroke: var(--route);
	stroke-width: 1.5;
	stroke-dasharray: 6 9;
	stroke-linecap: round;
	fill: none;
	opacity: 0.32;
}

body.js .hero-route {
	opacity: 0;
	transform: translateX(18px);
	transition: opacity 1.2s ease 0.25s, transform 1.2s ease 0.25s;
}

body.js.js-loaded .hero-route {
	opacity: 1;
	transform: none;
}

.hero-title {
	font-size: clamp(2.5rem, 7vw, 4.4rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.14;
	margin: 0 0 22px;
	max-width: 14em;
}

.hero-sub {
	font-size: clamp(1rem, 1.6vw, 1.13rem);
	color: var(--graphite);
	max-width: 36em;
	margin: 0;
}

/* 精选产品 */
.featured {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	background: var(--white);
	border: 1px solid var(--mist);
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	margin-top: 56px;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.featured:hover {
	border-color: rgba(34, 70, 224, 0.45);
	transform: translateY(-3px);
	box-shadow: 0 18px 44px -18px rgba(23, 24, 28, 0.18);
}

.featured-media {
	background: var(--dawn);
	display: grid;
	place-items: center;
	min-height: 300px;
}

.featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-ph {
	width: clamp(150px, 26vw, 230px);
	height: auto;
	opacity: 0.9;
}

.featured-body {
	padding: clamp(26px, 4vw, 42px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.featured-title {
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
}

.featured-excerpt {
	color: var(--graphite);
	margin: 0 0 22px;
}

/* ---------- 航线分隔（品牌符号） ---------- */
.route-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 0 60px;
}

.route-bird {
	width: 15px;
	height: 15px;
	fill: var(--route);
	flex: none;
}

body.js .route-bird {
	opacity: 0;
	transition: opacity 0.4s ease 0.1s;
}

.route-line {
	flex: 1;
	border-top: 1px dashed var(--route-line);
	transform-origin: left center;
}

body.js .route-line {
	transform: scaleX(0);
	transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}

.route-divider.is-in .route-bird,
body:not(.js) .route-bird {
	opacity: 1;
}

.route-divider.is-in .route-line,
body:not(.js) .route-line {
	transform: scaleX(1);
}

/* ---------- 产品区 ---------- */
.products {
	background: var(--white);
	border-top: var(--hairline);
	border-bottom: var(--hairline);
	padding: 56px 0 96px;
}

.product-index {
	margin-top: 40px;
}

.product-row {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	align-items: baseline;
	gap: 24px;
	padding: 27px 10px;
	border-top: var(--hairline);
	text-decoration: none;
	transition: background 0.2s ease;
}

.product-index .product-row:last-child {
	border-bottom: var(--hairline);
}

.product-row:hover {
	background: var(--dawn);
}

.product-tag {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--graphite);
	font-variant-numeric: tabular-nums;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.product-row:hover .product-tag {
	color: var(--route);
}

.product-main {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.product-name {
	font-size: 1.14rem;
	font-weight: 650;
	letter-spacing: 0.01em;
}

.product-desc {
	color: var(--graphite);
	font-size: 0.94rem;
	line-height: 1.65;
}

.product-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.product-arrow {
	color: var(--graphite);
	font-size: 1.05rem;
	transition: transform 0.2s ease, color 0.2s ease;
}

.product-row:hover .product-arrow {
	color: var(--route);
	transform: translateX(5px);
}

/* ---------- 动态区 ---------- */
.journal {
	padding: 64px 0 96px;
}

.journal-list {
	margin-top: 40px;
}

.journal-item {
	display: grid;
	grid-template-columns: 130px 1fr auto;
	align-items: baseline;
	gap: 20px;
	padding: 21px 10px;
	border-top: var(--hairline);
	text-decoration: none;
}

.journal-list .journal-item:last-child {
	border-bottom: var(--hairline);
}

.journal-date {
	color: var(--graphite);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.journal-title {
	font-weight: 600;
	transition: color 0.2s ease;
}

.journal-item:hover .journal-title {
	color: var(--route);
}

.journal-item:hover .product-arrow {
	color: var(--route);
	transform: translateX(5px);
}

/* ---------- 关于区 ---------- */
.about {
	background: var(--dawn);
	padding: 76px 0 104px;
}

.about-inner {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 56px;
	align-items: start;
}

.about-text p {
	color: var(--graphite);
	font-size: 1.05rem;
	line-height: 1.95;
	max-width: 40em;
	margin: 0 0 20px;
}

.about-text .link-more {
	color: var(--ink);
}

/* ---------- 页脚 ---------- */
.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 40px;
	padding: 64px clamp(20px, 5vw, 40px) 44px;
	max-width: var(--maxw);
	margin-inline: auto;
}

.footer-logo {
	display: block;
	height: 72px;
	width: auto;
}

.footer-legal {
	font-size: 0.85rem;
	margin: 14px 0 4px;
}

.footer-motto {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

.nav-list--footer {
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.nav-list--footer a {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.74);
}

.nav-list--footer a:hover {
	color: var(--white);
}

.footer-contact p {
	margin: 0 0 10px;
	font-size: 0.9rem;
}

.footer-contact a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-contact a:hover {
	border-bottom-color: var(--white);
}

.footer-contact-empty {
	color: rgba(255, 255, 255, 0.4) !important;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px clamp(20px, 5vw, 40px) 26px;
	max-width: var(--maxw);
	margin-inline: auto;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.48);
}

.footer-bottom p {
	margin: 0;
}

.footer-icp {
	color: rgba(255, 255, 255, 0.48);
	text-decoration: none;
	border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.footer-icp:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- 内页 ---------- */
.product-single,
.post-single,
.generic-page,
.journal-archive,
.products-archive,
.not-found {
	padding: clamp(48px, 7vw, 80px) 0 104px;
}

.breadcrumb {
	font-size: 0.8rem;
	color: var(--graphite);
	margin: 0 0 30px;
}

.breadcrumb a {
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--route);
}

.page-head {
	margin-bottom: 36px;
}

.page-title {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0;
}

.page-chips {
	display: flex;
	gap: 8px;
	margin: 16px 0 0;
}

.product-hero-media {
	margin: 8px 0 44px;
	border: 1px solid var(--mist);
	border-radius: 8px;
	overflow: hidden;
	background: var(--dawn);
}

.product-hero-media img {
	display: block;
	width: 100%;
}

.product-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 52px 0 8px;
}

.post-nav {
	margin-top: 56px;
}

/* 正文排版 */
.prose {
	font-size: 1.02rem;
}

.prose > * + * {
	margin-top: 1.15em;
}

.prose h2 {
	font-size: 1.45rem;
	font-weight: 700;
	margin-top: 2em;
	letter-spacing: -0.005em;
}

.prose h3 {
	font-size: 1.18rem;
	font-weight: 700;
	margin-top: 1.8em;
}

.prose a {
	color: var(--route);
	text-decoration: none;
	border-bottom: 1px solid rgba(34, 70, 224, 0.35);
}

.prose a:hover {
	border-bottom-color: var(--route);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--route);
	color: var(--graphite);
}

.prose img {
	border-radius: var(--radius);
}

.prose code {
	background: var(--dawn);
	border-radius: 3px;
	padding: 2px 6px;
	font-size: 0.88em;
}

/* 搜索表单 */
.search-form {
	display: flex;
	gap: 8px;
	border: 1px solid var(--mist);
	border-radius: var(--radius);
	padding: 5px;
	background: var(--white);
	margin-top: 20px;
	max-width: 460px;
}

.search-form input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	padding: 8px 10px;
	font: inherit;
	color: var(--ink);
	min-width: 0;
}

.search-form input[type="search"]:focus {
	outline: none;
}

.search-form button,
.search-form input[type="submit"] {
	border: none;
	background: var(--ink);
	color: var(--white);
	font: inherit;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 3px;
	cursor: pointer;
}

.search-form button:hover,
.search-form input[type="submit"]:hover {
	background: var(--route);
}

/* 分页 */
.pagination {
	margin-top: 56px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--mist);
	border-radius: 3px;
	font-size: 0.88rem;
	text-decoration: none;
	color: var(--ink);
}

.page-numbers:hover {
	border-color: var(--route);
	color: var(--route);
}

.page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}

/* 联系区块 */
.contact-block {
	margin-top: 40px;
}

.contact-item {
	display: grid;
	grid-template-columns: 110px 1fr;
	align-items: center;
	gap: 16px;
	border-top: var(--hairline);
	padding: 18px 0;
}

.contact-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--graphite);
}

.contact-value {
	font-weight: 650;
	color: var(--ink);
	text-decoration: none;
}

a.contact-value:hover {
	color: var(--route);
}

.contact-qr {
	justify-self: start;
	border: 1px solid var(--mist);
	border-radius: var(--radius);
	padding: 8px;
	width: 160px;
	height: auto;
}

.contact-empty {
	color: var(--graphite);
}

/* 404 */
.not-found {
	text-align: center;
}

.nf-bird {
	width: 150px;
	height: auto;
	opacity: 0.8;
	margin-bottom: 24px;
}

.nf-hint {
	color: var(--graphite);
}

.not-found .product-cta {
	justify-content: center;
}

/* ---------- 滚动显现 ---------- */
body.js .reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
	.featured {
		grid-template-columns: 1fr;
	}

	.featured-media {
		min-height: 220px;
	}

	.about-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 48px;
	}

	.footer-logo {
		height: auto;
		max-width: 190px;
	}
}

@media (max-width: 820px) {
	.nav-toggle {
		display: flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--paper);
		border-bottom: var(--hairline);
		box-shadow: 0 14px 30px -18px rgba(23, 24, 28, 0.25);
	}

	.site-nav.open {
		display: block;
	}

	.site-nav .nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 14px clamp(20px, 5vw, 40px) 20px;
		width: 100%;
	}

	.site-nav .nav-list a {
		display: block;
		padding: 10px 0;
		font-size: 1rem;
	}

	.product-row {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 22px 10px;
	}

	.product-meta {
		flex-wrap: wrap;
	}

	.journal-item {
		grid-template-columns: 1fr auto;
		gap: 6px 16px;
		padding: 18px 10px;
	}

	.journal-date {
		grid-column: 1 / -1;
	}

	.hero-route {
		width: 70vw;
		opacity: 0.55;
	}

	.footer-bottom {
		flex-direction: column;
	}
}

/* ---------- 动效减弱 ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	body.js .reveal,
	body.js .hero-route,
	body.js .route-line,
	body.js .route-bird {
		opacity: 1 !important;
		transform: none !important;
	}
}
