/* ==========================================================================
   YOYBIT 官网 · 单页样式
   ========================================================================== */

:root,
[data-theme='dark'] {
	--bg: #070812;
	--bg-soft: #0b0d1a;
	--panel: rgba(15, 17, 31, 0.94);
	--card: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
	--border: rgba(255, 255, 255, 0.09);
	--border-strong: rgba(255, 255, 255, 0.18);
	--text: #f5f6fc;
	--text-2: #b9bdd2;
	--text-3: #858ba6;
	--accent: #7c5cff;
	--accent-strong: #a78bfa;
	--accent-soft: rgba(124, 92, 255, 0.14);
	--accent-grad: linear-gradient(135deg, #6d5cff 0%, #a855f7 52%, #e04bff 100%);
	--success: #34d399;
	--warn: #fbbf24;
	--danger: #fb7185;
	--hover: rgba(255, 255, 255, 0.06);
	--shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.75);
	--shadow-pop: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
	--ring: rgba(124, 92, 255, 0.4);
	--header-bg: rgba(7, 8, 18, 0.78);
	--glow-1: rgba(124, 92, 255, 0.16);
	--glow-2: rgba(224, 75, 255, 0.08);
	color-scheme: dark;
}

[data-theme='light'] {
	--bg: #f7f5ff;
	--bg-soft: #efecff;
	--panel: rgba(255, 255, 255, 0.96);
	--card: linear-gradient(160deg, #ffffff, #fbfaff);
	--border: rgba(23, 20, 40, 0.09);
	--border-strong: rgba(23, 20, 40, 0.18);
	--text: #171428;
	--text-2: #4d4a63;
	--text-3: #7a7690;
	--accent: #6d4aff;
	--accent-strong: #6d4aff;
	--accent-soft: rgba(109, 74, 255, 0.09);
	--accent-grad: linear-gradient(135deg, #6d4aff 0%, #9b4dff 52%, #d946ef 100%);
	--success: #059669;
	--warn: #b45309;
	--danger: #dc2626;
	--hover: rgba(23, 20, 40, 0.04);
	--shadow: 0 24px 60px -36px rgba(43, 30, 90, 0.28);
	--shadow-pop: 0 24px 60px -28px rgba(43, 30, 90, 0.24);
	--ring: rgba(109, 74, 255, 0.28);
	--header-bg: rgba(247, 245, 255, 0.86);
	--glow-1: rgba(109, 74, 255, 0.12);
	--glow-2: rgba(217, 70, 239, 0.06);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family:
		-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC',
		'PingFang SC', 'Microsoft YaHei', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body::before,
body::after {
	content: '';
	position: fixed;
	z-index: -2;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(90px);
}
body::before {
	top: -220px;
	left: -140px;
	width: 620px;
	height: 620px;
	background: radial-gradient(circle, var(--glow-1), transparent 68%);
}
body::after {
	top: 30%;
	right: -260px;
	width: 680px;
	height: 680px;
	background: radial-gradient(circle, var(--glow-2), transparent 70%);
}

::selection {
	background: color-mix(in srgb, var(--accent) 34%, transparent);
	color: var(--text);
}

a {
	color: inherit;
	text-decoration: none;
}
button,
input,
textarea {
	font: inherit;
}
img,
svg {
	display: block;
	max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
	margin: 0;
}
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: min(1200px, 100% - 48px);
	margin-inline: auto;
}
.mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}
.skip-link {
	position: fixed;
	top: -60px;
	left: 16px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	transition: top 0.2s ease;
}
.skip-link:focus {
	top: 14px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--ring);
}
.btn-primary {
	background: var(--accent-grad);
	color: #fff;
	box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 20px 44px -18px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn.copied {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.icon-btn:hover,
.icon-btn:focus-visible {
	border-color: var(--border-strong);
	color: var(--text);
	background: var(--hover);
	outline: none;
}

.copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 11px;
	background: transparent;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.copy-btn:hover,
.copy-btn:focus-visible {
	border-color: var(--border-strong);
	color: var(--text);
	background: var(--hover);
	outline: none;
}
.copy-btn.copied {
	color: var(--success);
	border-color: color-mix(in srgb, var(--success) 35%, transparent);
}
.copy-label {
	white-space: nowrap;
}
.icon-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: transparent;
	color: var(--text-3);
	cursor: pointer;
	flex-shrink: 0;
}
.icon-copy:hover,
.icon-copy:focus-visible {
	color: var(--text);
	border-color: var(--border-strong);
	outline: none;
}
.icon-copy.copied {
	color: var(--success);
	border-color: color-mix(in srgb, var(--success) 35%, transparent);
}

/* ---------------------------------------------------------------- header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}
.site-header.scrolled,
.site-header.menu-open {
	background: var(--header-bg);
	border-bottom-color: var(--border);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 72px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.brand img {
	width: 36px;
	height: 36px;
	border-radius: 10px;
}
.brand-name {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.04em;
}
.nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: 10px;
}
.nav a {
	position: relative;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-2);
	transition: color 0.18s ease;
}
.nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.nav a:hover,
.nav a.active {
	color: var(--text);
}
.nav a.active::after {
	transform: scaleX(1);
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
.header-cta {
	height: 38px;
	padding: 0 16px;
	border-radius: 10px;
	font-size: 13px;
}
.menu-toggle {
	display: none;
}
[data-theme='dark'] .icon-sun,
[data-theme='light'] .icon-moon {
	display: none;
}
.icon-close {
	display: none;
}
.site-header.menu-open .icon-menu {
	display: none;
}
.site-header.menu-open .icon-close {
	display: block;
}

.lang-wrap {
	position: relative;
}
.lang-btn {
	width: auto;
	padding: 0 10px;
	gap: 6px;
}
.lang-btn span {
	font-size: 12px;
	font-weight: 700;
}
.lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	width: 190px;
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--panel);
	box-shadow: var(--shadow-pop);
	backdrop-filter: blur(18px);
}
.lang-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--text-2);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}
.lang-option:hover,
.lang-option:focus-visible {
	background: var(--hover);
	color: var(--text);
	outline: none;
}
.lang-option.active {
	color: var(--accent-strong);
	background: var(--accent-soft);
}
.lang-option .check {
	font-size: 12px;
}

.mobile-menu {
	display: none;
}

/* ---------------------------------------------------------------- hero */
.hero {
	padding: 64px 0 88px;
	scroll-margin-top: 88px;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	grid-template-areas:
		'copy visual'
		'stats visual';
	align-items: center;
	gap: 28px 48px;
}
.hero-grid > * {
	min-width: 0;
}
.hero-copy {
	grid-area: copy;
}
.device-stage {
	grid-area: visual;
}
.stats {
	grid-area: stats;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.hero-title {
	margin-top: 22px;
	font-size: clamp(38px, 5vw, 64px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.hero-title span {
	display: block;
}
.hero-title .grad {
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
}
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
}
.stat-value {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.03em;
	white-space: nowrap;
}
.stat-label {
	margin-top: 6px;
	color: var(--text-3);
	font-size: 12px;
	line-height: 1.5;
}
.stat-label em {
	display: inline-block;
	margin-right: 5px;
	font-style: normal;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--accent-strong);
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- device */
.device-stage {
	position: relative;
	width: min(100%, 460px);
	aspect-ratio: 1;
	margin-inline: auto;
	display: grid;
	place-items: center;
	isolation: isolate;
	overflow: hidden;
}
.device-glow {
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(124, 92, 255, 0.32) 0%, rgba(124, 92, 255, 0) 68%);
	filter: blur(10px);
	z-index: -1;
	animation: glow 6s ease-in-out infinite;
}
.device-orbit {
	position: absolute;
	border: 1px solid var(--border);
	border-radius: 50%;
	opacity: 0.7;
}
.orbit-a {
	inset: 4%;
	transform: rotate(-14deg) scaleY(0.92);
	animation: orbit-a 18s linear infinite;
}
.orbit-b {
	inset: 14%;
	border-style: dashed;
	opacity: 0.45;
	transform: rotate(18deg) scaleY(0.96);
	animation: orbit-b 28s linear infinite;
}
.device-miner {
	width: 72%;
	height: 72%;
	filter: drop-shadow(0 28px 48px rgba(8, 6, 24, 0.55));
	animation: float 5s ease-in-out infinite;
}
.fan-blades {
	transform-box: view-box;
	animation: spin 1.8s linear infinite;
	will-change: transform;
}
/* 一片高亮叶片：让三叶风扇的旋转方向肉眼可见 */
.blade-hi {
	fill: #a78bfa;
}
.fan-left .fan-blades {
	transform-origin: 36px 72px;
}
.fan-right .fan-blades {
	transform-origin: 84px 72px;
	animation-duration: 1.5s;
	animation-direction: reverse;
}
/* 沿底部灯带往返移动的光点 */
.led-run {
	transform-box: view-box;
	animation: led-run 2.6s ease-in-out infinite alternate;
	filter: drop-shadow(0 0 5px #a78bfa);
}
.glow-pulse,
.led-strip,
.led-dot {
	animation: blink 2.4s ease-in-out infinite;
}
.glow-pulse {
	animation-duration: 3.6s;
}
.led-strip {
	animation-duration: 2s;
}
.led-pink {
	animation-delay: -1.4s;
}
@keyframes led-run {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(64px);
	}
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes orbit-a {
	from {
		transform: rotate(-14deg) scaleY(0.92);
	}
	to {
		transform: rotate(346deg) scaleY(0.92);
	}
}
@keyframes orbit-b {
	from {
		transform: rotate(18deg) scaleY(0.96);
	}
	to {
		transform: rotate(-342deg) scaleY(0.96);
	}
}
@keyframes blink {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 1;
	}
}
@keyframes glow {
	0%,
	100% {
		opacity: 0.55;
	}
	50% {
		opacity: 1;
	}
}
@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-14px);
	}
}

/* ---------------------------------------------------------------- sections */
.section {
	padding: 82px 0;
	scroll-margin-top: 88px;
}
#about,
#how,
#contact {
	border-top: 1px solid var(--border);
}
.section-head {
	max-width: 720px;
	margin-bottom: 40px;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-strong);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
}
.eyebrow::before {
	content: '';
	width: 18px;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}
.section-head h2 {
	margin-top: 14px;
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.section-head p {
	margin-top: 14px;
	color: var(--text-2);
	font-size: 16px;
	line-height: 1.75;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.card {
	padding: 26px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--card);
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
	transform: translateY(-3px);
	border-color: var(--border-strong);
}
.card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--accent-soft);
	color: var(--accent-strong);
}
.card h3 {
	margin-top: 18px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.015em;
}
.card p {
	margin-top: 9px;
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.7;
}

/* ---------------------------------------------------------------- how */
.how-block {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: 34px;
	padding: 44px 0;
	border-top: 1px solid var(--border);
}
.how-block:first-of-type {
	border-top: 0;
	padding-top: 8px;
}
.how-block > * {
	min-width: 0;
}
.how-copy h3 {
	font-size: clamp(21px, 2.4vw, 28px);
	font-weight: 800;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.how-copy p {
	margin-top: 12px;
	color: var(--text-2);
	font-size: 14.5px;
	line-height: 1.75;
}
.points {
	display: grid;
	gap: 9px;
	margin-top: 18px;
}
.points li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--text-2);
	font-size: 13.5px;
	line-height: 1.65;
}
.points li::before {
	content: '';
	width: 6px;
	height: 6px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

.quota-card {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 30px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--card);
	box-shadow: var(--shadow);
	text-align: center;
}
.quota-big {
	font-size: 54px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.quota-label {
	color: var(--text-3);
	font-size: 12px;
}
.quota-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	width: 100%;
	max-width: 240px;
	margin-top: 8px;
}
.quota-grid span {
	aspect-ratio: 1;
	border-radius: 4px;
	background: var(--accent-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}

.rows {
	display: grid;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--card);
}
.row {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
	font-size: 13.5px;
}
.row:last-child {
	border-bottom: 0;
}
.row-label {
	color: var(--text-3);
	font-weight: 600;
}
.row-value {
	color: var(--text-2);
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.output-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}
.output-stat {
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 13px;
	background: var(--card);
}
.output-stat strong {
	display: block;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.output-stat span {
	display: block;
	margin-top: 5px;
	color: var(--text-3);
	font-size: 11.5px;
	line-height: 1.45;
}

.split-panel {
	padding: 26px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--card);
}
.split-labels {
	display: flex;
	justify-content: space-between;
	color: var(--text-3);
	font-size: 12px;
	font-weight: 600;
}
.split-bar {
	display: flex;
	height: 14px;
	margin-top: 12px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--hover);
}
.split-pool {
	width: 21%;
	background: var(--accent-grad);
}
.split-reward {
	width: 79%;
	background: color-mix(in srgb, var(--text-3) 38%, transparent);
}
.note {
	margin-top: 18px;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
	border-radius: 11px;
	background: color-mix(in srgb, var(--warn) 8%, transparent);
	color: var(--text-2);
	font-size: 12.5px;
	line-height: 1.65;
}

.example-table {
	display: grid;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--card);
}
.example-row {
	display: grid;
	grid-template-columns: 1.5fr 0.7fr 0.9fr;
	gap: 14px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--border);
	color: var(--text-2);
	font-size: 13px;
}
.example-row:last-child {
	border-bottom: 0;
}
.example-head {
	background: var(--hover);
	color: var(--text-3);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.example-row .scenario {
	color: var(--text);
	font-weight: 600;
}
.example-row .price {
	color: var(--accent-strong);
	font-weight: 700;
}

/* ---------------------------------------------------------------- contact */
.channel-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 34px;
	align-items: center;
	padding: 30px;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: var(--card);
	box-shadow: var(--shadow);
}
.channel-card > * {
	min-width: 0;
}
.channel-copy h3 {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.channel-copy > p {
	margin-top: 10px;
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.7;
}
/* 官方渠道的安全提醒：红色醒目 */
.channel-warning {
	display: block;
	padding: 9px 12px;
	border-left: 3px solid var(--danger);
	border-radius: 8px;
	background: color-mix(in srgb, var(--danger) 8%, transparent);
	color: var(--danger) !important;
	font-weight: 600;
}
.debox {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}
.debox h4 {
	font-size: 16px;
	font-weight: 700;
}
.debox p {
	margin-top: 7px;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.65;
}
.id-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}
.id {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--hover);
	font-size: 14px;
	font-weight: 700;
}
.debox small {
	display: block;
	margin-top: 6px;
	color: var(--text-3);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.channel-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.qr-card {
	padding: 10px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--shadow);
}
.qr-card img {
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.contracts-block {
	margin-top: 52px;
}
.contracts-block h3 {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.contracts-block > p {
	margin-top: 8px;
	color: var(--text-3);
	font-size: 13px;
}
.contracts {
	display: grid;
	margin-top: 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--card);
}
.contract {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: center;
	padding: 13px 18px;
	border-bottom: 1px solid var(--border);
}
.contract:last-child {
	border-bottom: 0;
}
.c-name {
	font-size: 13px;
	font-weight: 700;
}
.c-address {
	color: var(--text-3);
	font-size: 11.5px;
	overflow-wrap: anywhere;
}
.c-address:hover {
	color: var(--accent-strong);
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 10.5px;
	font-weight: 700;
	white-space: nowrap;
}
.badge.ok {
	color: var(--success);
}
.badge.pending {
	color: var(--text-3);
}
.risk {
	margin-top: 34px;
	padding: 16px 18px;
	border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
	border-radius: 13px;
	background: color-mix(in srgb, var(--danger) 6%, transparent);
	color: var(--text-2);
	font-size: 12.5px;
	line-height: 1.7;
}
.risk strong {
	color: var(--text);
	margin-right: 6px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
	.nav {
		gap: 18px;
	}
	.hero-grid {
		gap: 32px;
	}
}

@media (max-width: 900px) {
	.nav,
	.header-cta {
		display: none;
	}
	.menu-toggle {
		display: inline-flex;
	}
	.mobile-menu {
		display: grid;
		gap: 2px;
		padding: 12px 24px 22px;
		border-bottom: 1px solid var(--border);
		background: var(--panel);
		backdrop-filter: blur(18px);
	}
	.mobile-menu[hidden] {
		display: none;
	}
	.mobile-menu a:not(.btn) {
		padding: 12px 4px;
		border-bottom: 1px solid var(--border);
		color: var(--text-2);
		font-size: 15px;
		font-weight: 600;
	}
	.mobile-menu .btn {
		margin-top: 14px;
	}
	.hero {
		padding: 44px 0 64px;
	}
	.hero-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			'copy copy'
			'visual stats';
		gap: 20px 14px;
	}
	.device-stage {
		width: 100%;
		margin-top: 0;
	}
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 8px;
		padding-top: 0;
		border-top: 0;
		align-content: center;
	}
	.stat-value {
		font-size: clamp(13px, 3.2vw, 18px);
	}
	.stat-label {
		font-size: 10px;
		line-height: 1.35;
	}
	.stat-label em {
		font-size: 8px;
		margin-right: 3px;
	}
	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.how-block {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 34px 0;
	}
	.channel-card {
		grid-template-columns: 1fr;
	}
	.qr-card {
		max-width: 280px;
	}
}

@media (max-width: 640px) {
	.container {
		width: min(1200px, 100% - 32px);
	}
	.header-inner {
		height: 64px;
		gap: 12px;
	}
	.brand img {
		width: 32px;
		height: 32px;
	}
	.brand-name {
		font-size: 16px;
	}
	.section {
		padding: 58px 0;
	}
	.hero-title {
		font-size: clamp(34px, 10vw, 48px);
	}
	.hero-grid {
		gap: 16px 10px;
	}
	.stats {
		grid-template-columns: 1fr;
		gap: 9px;
		align-content: center;
	}
	.stat {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 6px;
	}
	.stat-value {
		font-size: 14px;
	}
	.stat-label {
		margin-top: 0;
		font-size: 10px;
		text-align: right;
	}
	.stat-label em {
		display: inline;
	}
	.cards,
	.output-stats {
		grid-template-columns: 1fr;
	}
	.row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.example-row {
		grid-template-columns: 1fr;
		gap: 5px;
	}
	.example-head {
		display: none;
	}
	.contract {
		grid-template-columns: 1fr auto;
	}
	.c-address {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.badge {
		grid-column: 1;
		grid-row: 3;
	}
	.icon-copy {
		grid-column: 2;
		grid-row: 1;
	}
	.channel-card {
		padding: 22px;
	}
}

/* 说明：首页设备图为装饰性动效，老板要求始终可见；
   因此这里不再用 prefers-reduced-motion 关闭动画。 */

/* ==========================================================================
   Live dashboard（官网独立采集器 data/live.json）
   ========================================================================== */
.live-section {
	position: relative;
}

.live-head {
	margin-bottom: 18px;
}

.live-status {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
	color: var(--text-3);
	font-size: 13px;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
	animation: live-pulse 2s ease-in-out infinite;
}

.live-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	border: 1px solid var(--border);
	color: var(--text-3);
	background: var(--bg-soft);
}

.live-badge.live {
	color: var(--success);
	border-color: rgba(52, 211, 153, 0.35);
	background: rgba(52, 211, 153, 0.08);
}

.live-badge.stale {
	color: var(--warn);
	border-color: rgba(251, 191, 36, 0.4);
	background: rgba(251, 191, 36, 0.08);
}

.live-badge.syncing {
	color: var(--accent-strong);
	border-color: rgba(167, 139, 250, 0.4);
	background: var(--accent-soft);
}

.live-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.live-panel {
	min-width: 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 20px;
	box-shadow: var(--shadow);
}

.live-panel h3 {
	margin: 0 0 10px;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.live-address {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 9px 10px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--bg-soft);
	margin-bottom: 14px;
}

.live-mono {
	font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
	font-size: 12px;
	word-break: break-all;
}

.live-address .live-mono {
	color: var(--text-2);
	text-decoration: none;
}

.live-address .live-mono:hover {
	color: var(--accent-strong);
}

.live-copy {
	cursor: pointer;
	border: 1px solid var(--border);
	background: var(--panel);
	color: var(--text-3);
	border-radius: 999px;
	font: inherit;
	font-size: 11px;
	padding: 3px 9px;
}

.live-copy:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

.live-bsc {
	margin-left: auto;
	color: var(--accent-strong);
	font-size: 11px;
	text-decoration: none;
	white-space: nowrap;
}

.live-bsc:hover {
	text-decoration: underline;
}

.live-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.live-metric {
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg-soft);
	min-width: 0;
}

.live-k {
	color: var(--text-3);
	font-size: 11px;
	margin-bottom: 3px;
}

.live-v {
	color: var(--text);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.02em;
	word-break: break-all;
}

.live-sub {
	color: var(--text-3);
	font-size: 10px;
	margin-top: 2px;
}

.live-records-title {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--text-2);
	font-weight: 600;
}

.live-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 14px;
}

.live-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 11px;
}

.live-table th,
.live-table td {
	text-align: left;
	padding: 8px 9px;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}

.live-table th {
	color: var(--text-3);
	font-weight: 500;
	background: var(--bg-soft);
}

.live-table tbody tr:last-child td {
	border-bottom: 0;
}

.live-table a {
	color: var(--text-2);
	text-decoration: none;
}

.live-table a:hover {
	color: var(--accent-strong);
}

.live-table .live-nowrap {
	white-space: nowrap;
}

.live-empty {
	padding: 18px 12px;
	color: var(--text-3);
	font-size: 12px;
	text-align: center;
}

.live-note {
	margin: 14px 0 0;
	color: var(--text-3);
	font-size: 11px;
	line-height: 1.6;
}

.live-sync-note {
	margin: 12px 0 0;
	color: var(--warn);
	font-size: 11px;
}

.live-skeleton {
	min-height: 240px;
}

.live-skeleton-line {
	height: 12px;
	border-radius: 6px;
	margin-bottom: 12px;
	background: linear-gradient(90deg, var(--bg-soft) 25%, var(--hover) 37%, var(--bg-soft) 63%);
	background-size: 400% 100%;
	animation: live-shimmer 1.4s ease infinite;
}

.live-skeleton-line.wide {
	width: 82%;
	height: 22px;
	margin-bottom: 18px;
}

.live-skeleton-line.short {
	width: 52%;
}

.live-error {
	grid-column: 1 / -1;
	text-align: center;
	padding: 36px 20px;
}

.live-error h3 {
	color: var(--text-2);
	margin-bottom: 14px;
}

@keyframes live-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes live-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (max-width: 960px) {
	.live-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.live-panel {
		padding: 16px;
		border-radius: 16px;
	}
	.live-metrics {
		grid-template-columns: 1fr 1fr;
	}
	.live-v {
		font-size: 18px;
	}
	.live-bsc {
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.live-dot,
	.live-skeleton-line {
		animation: none;
	}
}

