/*
Theme Name: Bruce Qin
Theme URI: https://bruceqin.net/
Author: Bruce Qin
Author URI: https://bruceqin.net/
Description: 布鲁斯秦外贸独立站 · 深色科技蓝紫风格的品牌主题。自带一个带滚动动效、数字滚动、卡片聚光跟随与轮播的定制首页，同时保留 Elementor 内页兼容能力。
Version: 1.0.0
Requires at least: 5.9
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: bruceqin
Tags: dark, one-column, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   00. 设计令牌 Design tokens
   ========================================================================== */
:root {
	/* 底色 */
	--bq-bg: #07070e;
	--bq-bg-soft: #0a0a15;
	--bq-bg-card: #0d0d1b;
	--bq-surface: rgba(255, 255, 255, 0.035);
	--bq-surface-2: rgba(255, 255, 255, 0.06);
	--bq-surface-3: rgba(255, 255, 255, 0.095);
	--bq-line: rgba(255, 255, 255, 0.085);
	--bq-line-strong: rgba(255, 255, 255, 0.16);

	/* 文字 */
	--bq-text: #eef0f8;
	--bq-text-soft: #c3c7db;
	--bq-text-muted: #969cb6;
	--bq-text-dim: #6a7089;

	/* 品牌色 */
	--bq-indigo: #6366f1;
	--bq-violet: #a855f7;
	--bq-cyan: #22d3ee;
	--bq-blue: #3b82f6;
	--bq-pink: #ec4899;

	/* 渐变 */
	--bq-grad: linear-gradient(115deg, #6366f1 0%, #a855f7 46%, #22d3ee 100%);
	--bq-grad-warm: linear-gradient(115deg, #3b82f6 0%, #a855f7 60%, #ec4899 100%);
	--bq-grad-text: linear-gradient(100deg, #ffffff 0%, #cfd3ff 40%, #8be9ff 100%);

	/* 形状 */
	--bq-radius-sm: 12px;
	--bq-radius: 18px;
	--bq-radius-lg: 26px;
	--bq-radius-pill: 999px;

	/* 阴影与光晕 */
	--bq-shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
	--bq-shadow: 0 28px 70px -34px rgba(0, 0, 0, 0.95);
	--bq-shadow-glow: 0 30px 90px -40px rgba(124, 77, 255, 0.75);
	--bq-ring: inset 0 1px 0 0 rgba(255, 255, 255, 0.07);

	/* 布局 */
	--bq-maxw: 1200px;
	--bq-maxw-narrow: 860px;
	--bq-gutter: 24px;
	--bq-header-h: 78px;
	--bq-section-y: 112px;

	/* 动效 */
	--bq-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--bq-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--bq-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* 字体 */
	--bq-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
	--bq-font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ==========================================================================
   01. 重置 Reset
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--bq-header-h) + 16px);
}

body {
	margin: 0;
	background-color: var(--bq-bg);
	color: var(--bq-text);
	font-family: var(--bq-font);
	font-size: 16px;
	line-height: 1.75;
	font-weight: 400;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* 全站背景氛围：两张缓慢漂移的极光 */
body::before,
body::after {
	content: "";
	position: fixed;
	z-index: 0;
	pointer-events: none;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.5;
	will-change: transform;
}

body::before {
	width: 46vw;
	height: 46vw;
	top: -16vw;
	left: -10vw;
	background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.55), transparent 68%);
	animation: bq-drift-a 26s var(--bq-ease) infinite alternate;
}

body::after {
	width: 40vw;
	height: 40vw;
	right: -12vw;
	top: 24vh;
	background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.42), transparent 68%);
	animation: bq-drift-b 32s var(--bq-ease) infinite alternate;
}

@keyframes bq-drift-a {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(9vw, 7vh, 0) scale(1.18); }
}

@keyframes bq-drift-b {
	0% { transform: translate3d(0, 0, 0) scale(1.1); }
	100% { transform: translate3d(-8vw, -6vh, 0) scale(0.95); }
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s var(--bq-ease), opacity 0.25s var(--bq-ease);
}

a:hover {
	color: #fff;
}

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

button {
	cursor: pointer;
	border: 0;
	background: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	color: #fff;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	/* 中文标题最后一行只剩一两个字会很难看，交给浏览器平衡断行 */
	text-wrap: balance;
}

/* 正文不要出现「一行只有一个词」的寡行 */
p,
li,
blockquote {
	text-wrap: pretty;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.85rem); letter-spacing: -0.035em; line-height: 1.18; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.22rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15em; }

p:last-child { margin-bottom: 0; }

::selection {
	background: rgba(168, 85, 247, 0.4);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--bq-cyan);
	outline-offset: 3px;
	border-radius: 6px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06060c; }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.6));
	border-radius: 999px;
	border: 2px solid #06060c;
}
::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9));
}

/* 屏幕阅读器专用 */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--bq-indigo);
	color: #fff;
	border-radius: 0 0 12px 12px;
	font-weight: 600;
	transition: top 0.2s var(--bq-ease);
}

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

/* ==========================================================================
   02. 布局工具 Layout utilities
   ========================================================================== */
.bq-site {
	position: relative;
	z-index: 1;
}

.bq-container {
	width: 100%;
	max-width: var(--bq-maxw);
	margin-inline: auto;
	padding-inline: var(--bq-gutter);
}

.bq-container--narrow {
	max-width: var(--bq-maxw-narrow);
}

.bq-section {
	position: relative;
	padding-block: var(--bq-section-y);
}

.bq-section--tight {
	padding-block: calc(var(--bq-section-y) * 0.62);
}

.bq-section__head {
	max-width: 760px;
	margin-bottom: 56px;
}

.bq-section__head--center {
	margin-inline: auto;
	text-align: center;
}

.bq-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 18px;
	padding: 7px 16px 7px 12px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-radius-pill);
	background: var(--bq-surface);
	backdrop-filter: blur(12px);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bq-text-soft);
}

.bq-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bq-cyan);
	box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
	animation: bq-pulse 2.4s var(--bq-ease) infinite;
}

@keyframes bq-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); opacity: 1; }
	50% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); opacity: 0.72; }
}

.bq-section__title {
	margin-bottom: 18px;
}

.bq-section__title em {
	font-style: normal;
	background: var(--bq-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bq-section__desc {
	max-width: 640px;
	color: var(--bq-text-muted);
	font-size: 1.06rem;
	line-height: 1.85;
}

.bq-section__head--center .bq-section__desc {
	margin-inline: auto;
}

/* 文本渐变 */
.bq-grad-text {
	background: var(--bq-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ==========================================================================
   03. 按钮 Buttons
   ========================================================================== */
.bq-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: var(--bq-radius-pill);
	font-size: 0.97rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.35s var(--bq-ease-spring), box-shadow 0.35s var(--bq-ease),
		border-color 0.3s var(--bq-ease), color 0.3s var(--bq-ease);
}

.bq-btn svg {
	width: 17px;
	height: 17px;
	flex: none;
	transition: transform 0.35s var(--bq-ease-spring);
}

.bq-btn:hover {
	transform: translateY(-2px);
}

.bq-btn:active {
	transform: translateY(0) scale(0.985);
}

.bq-btn:hover svg {
	transform: translateX(3px);
}

/* 主按钮：渐变色 + 流光 */
.bq-btn--primary {
	background: var(--bq-grad);
	background-size: 210% 100%;
	color: #fff;
	box-shadow: 0 18px 42px -20px rgba(124, 77, 255, 0.95);
	animation: bq-grad-slide 8s ease infinite;
}

.bq-btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
	transform: translateX(-120%);
	transition: transform 0.85s var(--bq-ease);
}

.bq-btn--primary:hover {
	color: #fff;
	box-shadow: 0 24px 56px -20px rgba(124, 77, 255, 1);
}

.bq-btn--primary:hover::after {
	transform: translateX(120%);
}

@keyframes bq-grad-slide {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* 次级按钮：玻璃描边 */
.bq-btn--ghost {
	border: 1px solid var(--bq-line-strong);
	background: var(--bq-surface);
	color: var(--bq-text);
	backdrop-filter: blur(12px);
}

.bq-btn--ghost:hover {
	border-color: rgba(34, 211, 238, 0.55);
	color: #fff;
	box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18), 0 18px 40px -24px rgba(34, 211, 238, 0.7);
}

.bq-btn--sm {
	padding: 11px 22px;
	font-size: 0.9rem;
}

.bq-btn--block {
	width: 100%;
}

/* 纯文字箭头按钮 */
.bq-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--bq-text-soft);
}

.bq-link-arrow svg {
	width: 16px;
	height: 16px;
	transition: transform 0.3s var(--bq-ease-spring);
}

.bq-link-arrow:hover {
	color: #fff;
}

.bq-link-arrow:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   04. 顶部导航 Header
   ========================================================================== */
.bq-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1002;
	width: 100%;
	height: 2px;
	background: transparent;
	pointer-events: none;
}

.bq-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--bq-grad);
	box-shadow: 0 0 14px rgba(124, 77, 255, 0.9);
	transition: width 0.1s linear;
}

.bq-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--bq-header-h);
	display: flex;
	align-items: center;
	border-bottom: 1px solid transparent;
	transition: height 0.4s var(--bq-ease), background-color 0.4s var(--bq-ease),
		border-color 0.4s var(--bq-ease), backdrop-filter 0.4s var(--bq-ease);
}

.bq-header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(7, 7, 14, 0.72);
	backdrop-filter: blur(18px) saturate(160%);
	opacity: 0;
	transition: opacity 0.4s var(--bq-ease);
}

.bq-header.is-stuck {
	height: 64px;
	border-bottom-color: var(--bq-line);
}

.bq-header.is-stuck::after {
	opacity: 1;
}

.bq-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.bq-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.bq-brand__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 13px;
	background: var(--bq-grad);
	background-size: 200% 200%;
	color: #fff;
	font-weight: 800;
	font-size: 1.02rem;
	letter-spacing: -0.02em;
	box-shadow: 0 10px 26px -12px rgba(124, 77, 255, 0.95);
	animation: bq-grad-slide 9s ease infinite;
}

.bq-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.bq-brand__name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
}

.bq-brand__tag {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bq-text-dim);
}

.bq-brand img {
	max-height: 42px;
	width: auto;
}

/* 主导航 */
.bq-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bq-nav ul {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
}

.bq-nav li {
	position: relative;
}

.bq-nav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 15px;
	border-radius: var(--bq-radius-pill);
	font-size: 0.94rem;
	font-weight: 500;
	color: var(--bq-text-soft);
	transition: color 0.25s var(--bq-ease), background-color 0.25s var(--bq-ease);
}

.bq-nav a::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 3px;
	height: 1.5px;
	background: var(--bq-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--bq-ease);
}

.bq-nav a:hover,
.bq-nav .current-menu-item > a,
.bq-nav .current_page_item > a,
.bq-nav .current-menu-parent > a,
.bq-nav .current-menu-ancestor > a {
	color: #fff;
	background: var(--bq-surface-2);
}

.bq-nav a:hover::after,
.bq-nav .current-menu-item > a::after,
.bq-nav .current_page_item > a::after,
.bq-nav .current-menu-parent > a::after,
.bq-nav .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* 滚动到哪一块，导航就点亮哪一项（由 theme.js 的 scrollspy 加类） */
.bq-nav__item.is-current > a {
	color: #fff;
	background: var(--bq-surface-2);
}

.bq-nav__item.is-current > a::after {
	transform: scaleX(1);
}

.bq-drawer__menu .bq-nav__item.is-current > a {
	color: var(--bq-cyan);
}

/* 下拉子菜单 */
.bq-nav .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	min-width: 244px;
	padding: 10px;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-radius);
	background: rgba(12, 12, 24, 0.96);
	backdrop-filter: blur(20px);
	box-shadow: var(--bq-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.28s var(--bq-ease), transform 0.28s var(--bq-ease), visibility 0.28s;
}

.bq-nav li:hover > .sub-menu,
.bq-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bq-nav .sub-menu a {
	padding: 10px 14px;
	border-radius: 11px;
	font-size: 0.9rem;
}

.bq-nav .sub-menu a::after {
	display: none;
}

.bq-nav .menu-item-has-children > a::before {
	content: "";
	order: 2;
	width: 5px;
	height: 5px;
	margin-left: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.65;
}

.bq-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

/* 汉堡按钮 */
.bq-burger {
	position: relative;
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bq-line);
	border-radius: 13px;
	background: var(--bq-surface);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.bq-burger span {
	display: block;
	width: 18px;
	height: 1.6px;
	border-radius: 2px;
	background: var(--bq-text);
	transition: transform 0.35s var(--bq-ease-spring), opacity 0.25s var(--bq-ease);
}

.bq-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.6px) rotate(45deg);
}

.bq-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.bq-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.6px) rotate(-45deg);
}

/* 移动端抽屉 */
.bq-drawer {
	position: fixed;
	inset: 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	padding: calc(var(--bq-header-h) + 28px) var(--bq-gutter) 40px;
	background: rgba(8, 8, 16, 0.97);
	backdrop-filter: blur(22px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--bq-ease), visibility 0.4s;
	overflow-y: auto;
}

.bq-drawer.is-open {
	opacity: 1;
	visibility: visible;
}

.bq-drawer ul {
	list-style: none;
}

.bq-drawer > ul > li {
	border-bottom: 1px solid var(--bq-line);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s var(--bq-ease), transform 0.5s var(--bq-ease);
}

.bq-drawer.is-open > ul > li {
	opacity: 1;
	transform: translateY(0);
}

.bq-drawer.is-open > ul > li:nth-child(1) { transition-delay: 0.06s; }
.bq-drawer.is-open > ul > li:nth-child(2) { transition-delay: 0.11s; }
.bq-drawer.is-open > ul > li:nth-child(3) { transition-delay: 0.16s; }
.bq-drawer.is-open > ul > li:nth-child(4) { transition-delay: 0.21s; }
.bq-drawer.is-open > ul > li:nth-child(5) { transition-delay: 0.26s; }
.bq-drawer.is-open > ul > li:nth-child(6) { transition-delay: 0.31s; }

.bq-drawer > ul > li > a {
	display: block;
	padding: 18px 4px;
	font-size: 1.22rem;
	font-weight: 600;
	color: #fff;
}

.bq-drawer .sub-menu {
	padding: 0 0 14px 14px;
}

.bq-drawer .sub-menu a {
	display: block;
	padding: 9px 0;
	font-size: 0.95rem;
	color: var(--bq-text-muted);
}

.bq-drawer__foot {
	margin-top: auto;
	padding-top: 34px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.bq-nav-open {
	overflow: hidden;
}

/* 登录工具栏偏移 */
.admin-bar .bq-header,
.admin-bar .bq-progress {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .bq-header,
	.admin-bar .bq-progress {
		top: 46px;
	}
}

/* ==========================================================================
   05. 页脚 Footer
   ========================================================================== */
.bq-footer {
	position: relative;
	margin-top: 40px;
	padding-top: 84px;
	border-top: 1px solid var(--bq-line);
	background: linear-gradient(180deg, rgba(10, 10, 21, 0.4) 0%, rgba(7, 7, 14, 0.95) 60%);
	overflow: hidden;
}

.bq-footer::before {
	content: "";
	position: absolute;
	top: -180px;
	left: 50%;
	width: 780px;
	height: 380px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(124, 77, 255, 0.26), transparent 70%);
	filter: blur(70px);
	pointer-events: none;
}

.bq-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
	gap: 48px 40px;
	padding-bottom: 64px;
}

.bq-footer__about p {
	color: var(--bq-text-muted);
	font-size: 0.94rem;
	line-height: 1.85;
	max-width: 340px;
}

.bq-footer__title {
	margin-bottom: 22px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bq-text-dim);
}

.bq-footer__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.bq-footer__list a,
.bq-footer__list span {
	font-size: 0.94rem;
	color: var(--bq-text-muted);
}

.bq-footer__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.bq-footer__list a::before {
	content: "";
	width: 0;
	height: 1px;
	background: var(--bq-cyan);
	transition: width 0.3s var(--bq-ease);
}

.bq-footer__list a:hover::before {
	width: 14px;
}

.bq-footer__list a:hover {
	color: #fff;
}

.bq-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.94rem;
	color: var(--bq-text-muted);
}

.bq-footer__contact svg {
	width: 16px;
	height: 16px;
	margin-top: 6px;
	flex: none;
	color: var(--bq-violet);
}

.bq-footer__qr {
	display: flex;
	gap: 18px;
	margin-top: 22px;
}

.bq-footer__qr figure {
	margin: 0;
	text-align: center;
}

.bq-footer__qr img {
	width: 92px;
	height: 92px;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid var(--bq-line);
	background: #fff;
	transition: transform 0.4s var(--bq-ease-spring), border-color 0.3s var(--bq-ease);
}

.bq-footer__qr figure:hover img {
	transform: translateY(-4px) scale(1.04);
	border-color: rgba(34, 211, 238, 0.5);
}

.bq-footer__qr figcaption {
	margin-top: 10px;
	font-size: 0.7rem;
	line-height: 1.5;
	color: var(--bq-text-dim);
}

.bq-footer__bottom {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 26px;
	border-top: 1px solid var(--bq-line);
	font-size: 0.86rem;
	color: var(--bq-text-dim);
	flex-wrap: wrap;
}

.bq-social {
	display: flex;
	gap: 9px;
}

.bq-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--bq-line);
	border-radius: 11px;
	background: var(--bq-surface);
	color: var(--bq-text-muted);
	transition: transform 0.35s var(--bq-ease-spring), color 0.25s var(--bq-ease),
		border-color 0.25s var(--bq-ease), background-color 0.25s var(--bq-ease);
}

.bq-social a svg {
	width: 17px;
	height: 17px;
}

.bq-social a:hover {
	transform: translateY(-3px);
	color: #fff;
	border-color: rgba(34, 211, 238, 0.5);
	background: var(--bq-surface-3);
}

/* 回到顶部 */
.bq-totop {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 900;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--bq-line-strong);
	border-radius: 15px;
	background: rgba(13, 13, 27, 0.86);
	backdrop-filter: blur(14px);
	color: var(--bq-text-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.9);
	transition: opacity 0.35s var(--bq-ease), transform 0.35s var(--bq-ease-spring),
		visibility 0.35s, color 0.25s var(--bq-ease), border-color 0.25s var(--bq-ease);
}

.bq-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.bq-totop:hover {
	color: #fff;
	border-color: rgba(34, 211, 238, 0.55);
}

.bq-totop svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   06. 滚动揭示动画 Reveal
   --------------------------------------------------------------------------
   只有 <html> 上带了 bq-js（由 header.php 里一行内联脚本加上）才隐藏元素。
   这样 JS 被禁用、被插件延迟、或者加载失败时，内容依然是完整可见的，
   不会出现「整页空白」。渐进增强，而不是把内容押在 JS 上。
   ========================================================================== */
.bq-js [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
	transition: opacity 0.85s var(--bq-ease-out), transform 0.85s var(--bq-ease-out);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}

.bq-js [data-reveal="left"] { transform: translate3d(-34px, 0, 0); }
.bq-js [data-reveal="right"] { transform: translate3d(34px, 0, 0); }
.bq-js [data-reveal="zoom"] { transform: scale(0.94); }
.bq-js [data-reveal="blur"] { filter: blur(10px); transform: translate3d(0, 20px, 0); }

.bq-js [data-reveal].is-in {
	opacity: 1;
	transform: none;
	filter: none;
	will-change: auto;
}

/* 渐变文字扫光 */
[data-shine] {
	background: var(--bq-grad-text);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: bq-shine 7s ease-in-out infinite;
}

@keyframes bq-shine {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* ==========================================================================
   07. 内页 / 文章排版 Content
   ========================================================================== */
.bq-page-head {
	position: relative;
	padding-top: calc(var(--bq-header-h) + 72px);
	padding-bottom: 52px;
}

.bq-breadcrumb {
	margin-bottom: 20px;
	font-size: 0.84rem;
	color: var(--bq-text-dim);
}

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

.bq-breadcrumb span { margin-inline: 8px; opacity: 0.5; }

.bq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	padding-bottom: 96px;
	align-items: start;
}

.bq-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.bq-entry {
	min-width: 0;
}

.bq-entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	font-size: 0.86rem;
	color: var(--bq-text-dim);
}

.bq-entry__meta a:hover { color: var(--bq-cyan); }

.bq-entry__thumb {
	margin-bottom: 34px;
	border-radius: var(--bq-radius-lg);
	overflow: hidden;
	border: 1px solid var(--bq-line);
}

.bq-entry__thumb img {
	width: 100%;
	transition: transform 0.9s var(--bq-ease);
}

.bq-entry__thumb:hover img { transform: scale(1.03); }

.bq-content {
	font-size: 1.04rem;
	line-height: 1.95;
	color: var(--bq-text-soft);
}

.bq-content > * { margin-bottom: 1.4em; }

.bq-content h2,
.bq-content h3,
.bq-content h4 {
	margin-top: 2em;
	margin-bottom: 0.7em;
	scroll-margin-top: calc(var(--bq-header-h) + 20px);
}

.bq-content h2 { font-size: 1.7rem; }
.bq-content h3 { font-size: 1.3rem; }

.bq-content a {
	color: var(--bq-cyan);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(34, 211, 238, 0.35);
	transition: text-decoration-color 0.25s var(--bq-ease);
}

.bq-content a:hover { text-decoration-color: var(--bq-cyan); }

.bq-content ul,
.bq-content ol {
	padding-left: 1.35em;
	list-style: revert;
}

.bq-content li { margin-bottom: 0.55em; }

.bq-content blockquote {
	margin: 2em 0;
	padding: 22px 26px;
	border-left: 2px solid var(--bq-violet);
	border-radius: 0 var(--bq-radius) var(--bq-radius) 0;
	background: var(--bq-surface);
	color: var(--bq-text);
	font-style: normal;
}

.bq-content blockquote p:last-child { margin-bottom: 0; }

.bq-content img,
.bq-content iframe {
	border-radius: var(--bq-radius);
}

.bq-content code {
	padding: 3px 7px;
	border-radius: 7px;
	background: var(--bq-surface-2);
	color: #ffd9a0;
	font-family: var(--bq-font-mono);
	font-size: 0.9em;
}

.bq-content pre {
	padding: 22px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-radius);
	background: #06060d;
	overflow-x: auto;
}

.bq-content pre code {
	padding: 0;
	background: none;
	color: var(--bq-text-soft);
}

.bq-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.bq-content th,
.bq-content td {
	padding: 12px 16px;
	border: 1px solid var(--bq-line);
	text-align: left;
}

.bq-content th {
	background: var(--bq-surface-2);
	color: #fff;
	font-weight: 600;
}

.bq-content hr {
	border: 0;
	height: 1px;
	background: var(--bq-line);
	margin: 2.6em 0;
}

.bq-content .wp-block-button__link {
	border-radius: var(--bq-radius-pill);
	background: var(--bq-grad);
	color: #fff;
	font-weight: 600;
}

/* 侧边栏 */
.bq-sidebar {
	display: flex;
	flex-direction: column;
	gap: 26px;
	position: sticky;
	top: calc(var(--bq-header-h) + 24px);
}

.bq-widget {
	padding: 26px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-radius-lg);
	background: var(--bq-surface);
	backdrop-filter: blur(12px);
}

.bq-widget__title {
	margin-bottom: 18px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bq-text-dim);
}

.bq-widget ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bq-widget li a {
	display: flex;
	gap: 10px;
	font-size: 0.94rem;
	color: var(--bq-text-muted);
}

.bq-widget li a:hover { color: var(--bq-cyan); }

.bq-widget .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }

.bq-widget .tagcloud a {
	padding: 6px 13px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-radius-pill);
	font-size: 0.82rem !important;
	color: var(--bq-text-muted);
}

.bq-widget .tagcloud a:hover {
	border-color: rgba(34, 211, 238, 0.5);
	color: #fff;
}

/* 文章卡片列表 */
.bq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 26px;
}

.bq-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-radius-lg);
	background: var(--bq-surface);
	overflow: hidden;
	transition: transform 0.5s var(--bq-ease), border-color 0.4s var(--bq-ease),
		box-shadow 0.5s var(--bq-ease);
}

.bq-card:hover {
	transform: translateY(-6px);
	border-color: var(--bq-line-strong);
	box-shadow: var(--bq-shadow-glow);
}

.bq-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.16));
}

.bq-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--bq-ease);
}

.bq-card:hover .bq-card__thumb img { transform: scale(1.06); }

.bq-card__cat {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: var(--bq-radius-pill);
	background: rgba(7, 7, 14, 0.78);
	backdrop-filter: blur(10px);
	border: 1px solid var(--bq-line);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--bq-text-soft);
}

.bq-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
	padding: 24px 26px 28px;
}

.bq-card__title {
	margin: 0;
	font-size: 1.14rem;
	line-height: 1.45;
}

.bq-card__title a:hover { color: var(--bq-cyan); }

.bq-card__excerpt {
	flex: 1;
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.75;
	color: var(--bq-text-muted);
}

.bq-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--bq-line);
	font-size: 0.8rem;
	color: var(--bq-text-dim);
}

/* 分页 */
.bq-pagination {
	display: flex;
	justify-content: center;
	margin-top: 60px;
}

.bq-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	margin-inline: 4px;
	padding-inline: 12px;
	border: 1px solid var(--bq-line);
	border-radius: 12px;
	background: var(--bq-surface);
	font-size: 0.92rem;
	color: var(--bq-text-muted);
	transition: all 0.3s var(--bq-ease);
}

.bq-pagination .page-numbers:hover,
.bq-pagination .page-numbers.current {
	border-color: transparent;
	background: var(--bq-grad);
	color: #fff;
}

/* 表单 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--bq-line);
	border-radius: 14px;
	background: var(--bq-surface);
	color: var(--bq-text);
	font-size: 0.96rem;
	transition: border-color 0.3s var(--bq-ease), box-shadow 0.3s var(--bq-ease),
		background-color 0.3s var(--bq-ease);
}

input::placeholder,
textarea::placeholder { color: var(--bq-text-dim); }

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: rgba(99, 102, 241, 0.65);
	background: var(--bq-surface-2);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

input[type="submit"],
button[type="submit"] {
	width: auto;
	padding: 14px 30px;
	border: 0;
	border-radius: var(--bq-radius-pill);
	background: var(--bq-grad);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.3s var(--bq-ease-spring), box-shadow 0.3s var(--bq-ease);
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 44px -22px rgba(124, 77, 255, 0.95);
}

/* 评论 */
.bq-comments {
	margin-top: 60px;
	padding-top: 46px;
	border-top: 1px solid var(--bq-line);
}

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }

.comment-list .children { list-style: none; margin-top: 22px; padding-left: 26px; }

.comment-body {
	padding: 24px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-radius);
	background: var(--bq-surface);
}

.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 600; color: #fff; }

.comment-author img { border-radius: 50%; }

.comment-metadata { font-size: 0.8rem; color: var(--bq-text-dim); }

.comment-content { font-size: 0.95rem; color: var(--bq-text-muted); }

.reply a {
	font-size: 0.84rem;
	color: var(--bq-cyan);
}

/* 404 */
.bq-404 {
	display: grid;
	place-items: center;
	min-height: 68vh;
	padding-top: var(--bq-header-h);
	text-align: center;
}

.bq-404__code {
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
	background: var(--bq-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Elementor / 编辑器兼容 */
.elementor-page .bq-page-head { display: none; }

.elementor-kit-default,
.elementor-page .bq-entry {
	--e-global-color-primary: #6366f1;
}

.bq-entry .elementor { margin-inline: calc(var(--bq-gutter) * -1); }

/* ==========================================================================
   08. 响应式 Responsive
   ========================================================================== */
@media screen and (max-width: 1080px) {
	:root {
		--bq-section-y: 92px;
	}

	.bq-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.bq-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.bq-sidebar { position: static; }
}

@media screen and (max-width: 1024px) {
	.bq-nav,
	.bq-header__actions .bq-btn {
		display: none;
	}

	.bq-burger {
		display: inline-flex;
	}
}

@media screen and (max-width: 640px) {
	:root {
		--bq-gutter: 18px;
		--bq-section-y: 72px;
		--bq-radius-lg: 20px;
	}

	body { font-size: 15.5px; }

	.bq-footer__grid {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.bq-footer__bottom {
		justify-content: center;
		text-align: center;
	}

	.bq-totop {
		right: 16px;
		bottom: 16px;
	}
}

/* ==========================================================================
   09. 无障碍：尊重减少动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

/* 打印 */
@media print {
	.bq-header,
	.bq-drawer,
	.bq-totop,
	.bq-progress,
	.bq-footer { display: none !important; }

	body { background: #fff; color: #000; }
}
