:root {
	--bg-color: #07080a;
	--bg-soft: #0a0d18;
	--nav-bg: rgba(7, 8, 10, 0.72);
	--card-bg: rgba(15, 18, 30, 0.85);
	--border-color: rgba(255, 255, 255, 0.08);
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
	--accent-color: #3b82f6;
	--accent-deep: #1d4ed8;
	--accent-soft: rgba(59, 130, 246, 0.14);
	--accent-border: rgba(59, 130, 246, 0.25);
	--input-bg: rgba(15, 23, 42, 0.6);
	--input-border: rgba(255, 255, 255, 0.1);
	--input-text: #f8fafc;
	--btn-secondary-bg: rgba(255, 255, 255, 0.06);
	--btn-secondary-hover: rgba(255, 255, 255, 0.12);
	--btn-secondary-text: #f8fafc;
	--modal-overlay-bg: rgba(0, 0, 0, 0.95);
	--glass-blur: 20px;
	--card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
	--nav-height: 62px;
}

:root[data-theme="light"] {
	--bg-color: #eef2f7;
	--bg-soft: #f7f9fc;
	--nav-bg: rgba(238, 242, 247, 0.72);
	--card-bg: rgba(255, 255, 255, 0.92);
	--border-color: rgba(0, 0, 0, 0.06);
	--text-main: #0f172a;
	--text-muted: #64748b;
	--primary-gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
	--accent-color: #2563eb;
	--accent-deep: #1d4ed8;
	--accent-soft: rgba(37, 99, 235, 0.08);
	--accent-border: rgba(37, 99, 235, 0.2);
	--input-bg: rgba(241, 245, 249, 0.8);
	--input-border: rgba(0, 0, 0, 0.08);
	--input-text: #0f172a;
	--btn-secondary-bg: rgba(0, 0, 0, 0.04);
	--btn-secondary-hover: rgba(0, 0, 0, 0.08);
	--btn-secondary-text: #0f172a;
	--modal-overlay-bg: rgba(241, 245, 249, 0.95);
	--card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-main);
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
	font-family: inherit;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
}

.hidden {
	display: none !important;
}

/* ===== 顶部导航 ===== */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--nav-height);
	z-index: 900;
	background: var(--nav-bg);
	backdrop-filter: blur(var(--glass-blur));
	-webkit-backdrop-filter: blur(var(--glass-blur));
	border-bottom: 1px solid var(--border-color);
	transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
	max-width: 1080px;
	margin: 0 auto;
	height: 100%;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: 6px;
	flex-shrink: 0;
}

.nav-brand .logo-icon {
	width: 34px;
	height: 34px;
	font-size: 16px;
	border-radius: 9px;
}

.nav-brand .logo-text {
	font-size: 19px;
}

.nav-links {
	display: flex;
	gap: 4px;
	margin-right: auto;
}

.nav-links a {
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--text-muted);
	transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
	color: var(--text-main);
	background: var(--accent-soft);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.floating-btn {
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	color: var(--text-main);
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--card-shadow);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
}

.floating-btn:hover {
	transform: translateY(-2px);
	border-color: var(--accent-border);
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.floating-btn svg {
	width: 19px;
	height: 19px;
}

.floating-btn-accent {
	background: var(--primary-gradient);
	color: white;
	border: none;
}

.nav-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: none;
	border: 1px solid var(--border-color);
	color: var(--text-main);
	cursor: pointer;
	transition: background 0.2s;
}

.nav-burger:hover {
	background: var(--accent-soft);
}

.nav-burger svg {
	width: 20px;
	height: 20px;
}

/* ===== Hero 首屏 ===== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--nav-height) + 32px) 24px 56px;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
}

.blob-1 {
	width: 480px;
	height: 480px;
	background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.5), transparent 70%);
	top: -120px;
	left: -100px;
	animation: blobIn 1.4s ease 0.1s both, blobFloat 14s ease-in-out 1.5s infinite;
}

.blob-2 {
	width: 520px;
	height: 520px;
	background: radial-gradient(circle at 70% 70%, rgba(96, 165, 250, 0.4), transparent 70%);
	bottom: -160px;
	right: -120px;
	animation: blobIn 1.6s ease 0.2s both, blobFloat 18s ease-in-out 1.6s infinite reverse;
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border-color) 1px, transparent 1px),
		linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	opacity: 0.6;
}

.hero-inner {
	position: relative;
	text-align: center;
	max-width: 780px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-color);
	background: var(--accent-soft);
	border: 1px solid var(--accent-border);
}

.badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent-color);
	box-shadow: 0 0 0 3px var(--accent-soft);
	animation: pulse 2s infinite;
}

.hero-title {
	font-size: clamp(32px, 6vw, 56px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -1px;
}

.grad-text {
	background: var(--primary-gradient);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradShift 6s ease-in-out infinite;
}

.hero-sub {
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-muted);
	max-width: 560px;
}

.hero-cta {
	display: flex;
	gap: 14px;
	margin-top: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.btn-lg {
	padding: 14px 30px;
	font-size: 15px;
	border-radius: 14px;
}

.hero-scroll {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--text-muted);
	opacity: 0.75;
	cursor: pointer;
	animation: bob 2.2s ease-in-out 1.5s infinite;
	transition: opacity 0.2s, color 0.2s;
}

.hero-scroll:hover {
	color: var(--accent-color);
	opacity: 1;
}

.hero-scroll svg {
	width: 20px;
	height: 20px;
}

/* ===== 通用区块 ===== */
.section {
	max-width: 1080px;
	margin: 0 auto;
	padding: 64px 24px 16px;
}

.section-head {
	text-align: center;
	margin-bottom: 40px;
}

.section-head::after {
	content: "";
	display: block;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: var(--primary-gradient);
	margin: 14px auto 0;
}

.section-title {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.3px;
}

.section-sub {
	margin-top: 12px;
	color: var(--text-muted);
	font-size: 14.5px;
}

/* ===== 数据看板 ===== */
.dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 20px;
}

.dashboard-grid.single-col {
	grid-template-columns: 1fr;
}

.stat-card {
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 18px;
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-shadow: var(--card-shadow);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
	min-width: 0;
	overflow: hidden;
}

.stat-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent-border);
	box-shadow: 0 12px 30px rgba(59, 130, 246, 0.1);
}

.stat-card.flex-between {
	justify-content: space-between;
}

#mc2 {
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.stat-title {
	font-size: 14px;
	color: var(--text-muted);
	font-weight: 500;
}

.stat-value {
	font-size: 36px;
	font-weight: 700;
}

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

.flex-between {
	justify-content: space-between;
}

.neuron-value {
	font-size: 42px;
	font-weight: 800;
	display: inline-block;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.neuron-label {
	font-size: 14px;
	color: var(--text-muted);
	font-weight: 500;
}

.public-chart-wrapper {
	position: relative;
	height: 190px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	overflow: hidden;
}

.public-chart-wrapper canvas {
	max-width: 100% !important;
}

.chart-col-left {
	position: relative;
	height: 190px;
	width: 190px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.chart-col-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	align-self: stretch;
	height: 190px;
}

.chart-legend-scroll {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	max-height: 180px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.chart-legend-scroll::-webkit-scrollbar {
	display: none;
}

.chart-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 190px;
	width: 100%;
	color: var(--text-muted);
	font-size: 13px;
	gap: 12px;
}

/* ===== 功能特性 ===== */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.feature-card {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 18px;
	padding: 26px 24px;
	box-shadow: var(--card-shadow);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-border);
	box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15);
}

.feature-icon {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-soft);
	color: var(--accent-color);
	border: 1px solid var(--accent-border);
	margin-bottom: 16px;
}

.feature-icon svg {
	width: 22px;
	height: 22px;
}

.feature-card h3 {
	font-size: 16px;
	font-weight: 650;
	margin-bottom: 8px;
}

.feature-card p {
	font-size: 13.5px;
	color: var(--text-muted);
	line-height: 1.7;
}

/* ===== 文档入口 ===== */
.docs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.doc-entry {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 18px;
	padding: 20px 22px;
	box-shadow: var(--card-shadow);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.doc-entry:hover {
	transform: translateY(-4px);
	border-color: var(--accent-border);
	box-shadow: 0 14px 36px rgba(59, 130, 246, 0.14);
}

.doc-entry-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary-gradient);
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.doc-entry-icon svg {
	width: 20px;
	height: 20px;
}

.doc-entry-body {
	flex: 1;
	min-width: 0;
}

.doc-entry-body h3 {
	font-size: 15.5px;
	font-weight: 650;
	margin-bottom: 3px;
}

.doc-entry-body p {
	font-size: 13px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.doc-entry-arrow {
	color: var(--text-muted);
	flex-shrink: 0;
	transition: transform 0.25s, color 0.25s;
}

.doc-entry:hover .doc-entry-arrow {
	color: var(--accent-color);
	transform: translateX(3px);
}

.doc-entry-arrow svg {
	width: 18px;
	height: 18px;
}

/* ===== 页脚 ===== */
.site-footer {
	margin-top: 80px;
	border-top: 1px solid var(--border-color);
	background: var(--bg-soft);
}

.footer-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 44px 24px 32px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 32px;
}

.footer-brand-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-brand-top .logo-icon {
	width: 34px;
	height: 34px;
	font-size: 16px;
	border-radius: 9px;
}

.footer-brand-top .logo-text {
	font-size: 18px;
}

.footer-brand p {
	font-size: 13.5px;
	color: var(--text-muted);
	line-height: 1.7;
	margin-top: 12px;
	max-width: 300px;
}

.footer-col h4 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 14px;
}

.footer-col a {
	display: block;
	padding: 5px 0;
	font-size: 13.5px;
	color: var(--text-muted);
	transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
	color: var(--accent-color);
	transform: translateX(2px);
}

.footer-bottom {
	border-top: 1px solid var(--border-color);
	padding: 22px 24px 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	flex-wrap: wrap;
	font-size: 14.5px;
	color: var(--text-muted);
}

.footer-bottom a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-muted);
	transition: color 0.2s;
}

.footer-bottom a:hover {
	color: var(--accent-color);
}

/* ===== Logo ===== */
.logo-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--primary-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: white;
	font-size: 22px;
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
	flex-shrink: 0;
}

.logo-text {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ===== 按钮 ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none;
}

.btn-primary {
	background: var(--primary-gradient);
	color: white;
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
	opacity: 0.95;
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-secondary {
	background-color: var(--btn-secondary-bg);
	color: var(--btn-secondary-text);
	border: 1px solid var(--border-color);
}

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

.btn-sm {
	height: 38px;
}

/* ===== 表单 ===== */
.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
}

input {
	background-color: var(--input-bg);
	border: 1px solid var(--input-border);
	color: var(--input-text);
	padding: 12px 16px;
	border-radius: 10px;
	outline: none;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

input:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
	background-color: rgba(15, 23, 42, 0.8);
}

:root[data-theme="light"] input:focus {
	background-color: rgba(255, 255, 255, 0.95);
}

/* ===== 弹窗 ===== */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--modal-overlay-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	will-change: opacity;
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

body.modal-open {
	overflow: hidden;
}

body.modal-open .site-nav {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.modal-card {
	position: relative;
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	width: 100%;
	max-width: 400px;
	padding: 32px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	gap: 20px;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
	transform: scale(1) translateY(0);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 16px;
}

.modal-header h3 {
	font-size: 18px;
	font-weight: 600;
}

.close-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	background: var(--accent-soft);
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: none;
	transition: color 0.2s, background 0.2s;
}

.close-btn:hover {
	color: var(--text-main);
	background: var(--accent-border);
}

.close-btn svg {
	width: 20px;
	height: 20px;
}

/* ===== 登录弹窗 ===== */
.login-hero {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding-bottom: 6px;
}

.login-hero-icon {
	width: 58px;
	height: 58px;
	margin-bottom: 12px;
	border-radius: 16px;
	background: var(--primary-gradient);
	box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.login-hero-icon svg {
	width: 28px;
	height: 28px;
}

.login-hero h3 {
	font-size: 19px;
	font-weight: 700;
}

.login-hero p {
	font-size: 13px;
	color: var(--text-muted);
}

.modal-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.input-wrap {
	position: relative;
}

.input-wrap .input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	display: flex;
	pointer-events: none;
}

.input-wrap .input-icon svg {
	width: 17px;
	height: 17px;
}

.input-wrap input {
	width: 100%;
	padding-left: 42px;
}

.btn-block {
	width: 100%;
	padding: 13px 20px;
	font-size: 15px;
}

.modal-footer {
	margin-top: 10px;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	width: 100%;
}

/* ===== Toast ===== */
.toast-container {
	position: fixed;
	top: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 9999;
	pointer-events: none;
}

.toast {
	min-width: 260px;
	padding: 14px 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 12px;
	transform: translateY(-20px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: auto;
}

.toast.show {
	transform: translateY(0);
	opacity: 1;
}

.toast-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.toast-success {
	background-color: #10b981 !important;
	color: #ffffff !important;
	border: none !important;
}

.toast-success .toast-icon, .toast-success span {
	color: #ffffff !important;
}

.toast-error {
	background-color: #ef4444 !important;
	color: #ffffff !important;
	border: none !important;
}

.toast-error .toast-icon, .toast-error span {
	color: #ffffff !important;
}

.toast-warning {
	background-color: #f59e0b !important;
	color: #ffffff !important;
	border: none !important;
}

.toast-warning .toast-icon, .toast-warning span {
	color: #ffffff !important;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-up {
	opacity: 0;
	animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
	animation-delay: 0.15s;
}

.delay-2 {
	animation-delay: 0.3s;
}

@keyframes blobFloat {
	0%, 100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(30px, -24px) scale(1.08);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@keyframes bob {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(6px);
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(59, 130, 246, 0.2);
	border-radius: 50%;
	border-top-color: var(--accent-color);
	animation: spin 1s linear infinite;
}

.spinner-lg {
	width: 24px;
	height: 24px;
	border-width: 2.5px;
}

/* ===== 首次加载动效 ===== */
@keyframes navDrop {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-nav {
	animation: navDrop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-badge {
	animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-title {
	animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero-sub {
	animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.hero-cta {
	animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both;
}

@keyframes blobIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 0.5;
	}
}

@keyframes gradShift {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* ===== 首页视觉效果升级 ===== */
.hero {
	perspective: 1200px;
}

/* Aidaura 极光背景 */
.hero-bg::before {
	content: "";
	position: absolute;
	inset: -20%;
	background: conic-gradient(from 0deg at 50% 50%, rgba(37, 99, 235, .22), rgba(99, 102, 241, .10), rgba(59, 130, 246, .30), rgba(56, 189, 248, .12), rgba(37, 99, 235, .22));
	filter: blur(64px);
	animation: auroraRotate 26s linear infinite;
}

.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(620px 320px at 16% 24%, rgba(96, 165, 250, .32), transparent 70%),
		radial-gradient(660px 360px at 84% 58%, rgba(37, 99, 235, .30), transparent 70%);
	filter: blur(22px);
	animation: auroraDrift 18s ease-in-out infinite alternate;
}

.hero-grid {
	animation: gridScroll 28s linear infinite;
}

.hero-halo {
	position: absolute;
	width: 460px;
	height: 460px;
	left: 50%;
	top: 50%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 246, .18), rgba(59, 130, 246, .06) 45%, transparent 68%);
	filter: blur(2px);
	animation: haloPulse 6.5s ease-in-out infinite;
	pointer-events: none;
}

.hero-particle {
	position: absolute;
	bottom: -12px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(125, 211, 252, .9), rgba(59, 130, 246, 0) 70%);
	opacity: 0;
	pointer-events: none;
	animation: particleFloat linear infinite;
}

.hero-title {
	text-shadow: 0 0 44px rgba(59, 130, 246, .20);
}

.grad-text {
	background-size: 300% 300%;
	filter: drop-shadow(0 6px 22px rgba(59, 130, 246, .35));
}

/* CTA 主按钮动态渐变 */
.btn-primary {
	background-size: 200% 200%;
	animation: btnShift 6s ease-in-out infinite;
}

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

/* 滚入显现 */
.reveal {
	opacity: 0;
	transform: translateY(34px) scale(.97);
	transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
	will-change: opacity, transform;
}

.reveal.in {
	opacity: 1;
	transform: none;
}

.feature-grid .reveal:nth-child(1), .docs-grid .reveal:nth-child(1) { transition-delay: .05s; }
.feature-grid .reveal:nth-child(2), .docs-grid .reveal:nth-child(2) { transition-delay: .12s; }
.feature-grid .reveal:nth-child(3), .docs-grid .reveal:nth-child(3) { transition-delay: .19s; }
.feature-grid .reveal:nth-child(4), .docs-grid .reveal:nth-child(4) { transition-delay: .26s; }

/* 区块标题高亮 */
.section-head::after {
	box-shadow: 0 0 14px var(--accent-color);
	animation: sectionBar 3s ease-in-out infinite;
}

@keyframes sectionBar {
	0%, 100% { width: 44px; opacity: .9; }
	50% { width: 76px; opacity: 1; }
}

/* 特性卡片流光与高光 */
.feature-card,
.stat-card,
.doc-entry {
	position: relative;
	overflow: hidden;
}

.feature-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
	transform: scaleX(0);
	opacity: 0;
	transition: transform .4s ease, opacity .4s ease;
}

.feature-card:hover::before {
	transform: scaleX(1);
	opacity: 1;
}

.feature-icon {
	transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}

.feature-card:hover .feature-icon {
	transform: translateY(-3px) rotate(-6deg);
	box-shadow: 0 10px 26px rgba(59, 130, 246, .35);
}

.feature-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-border);
	box-shadow: 0 18px 48px rgba(59, 130, 246, .22);
}

/* 文档入口渐变侧栏 */
.doc-entry::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	border-radius: 18px 0 0 18px;
	background: var(--primary-gradient);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.doc-entry:hover::after {
	transform: scaleY(1);
}

.doc-entry:hover .doc-entry-icon {
	transform: rotate(-5deg) scale(1.06);
}

.doc-entry-icon {
	transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

/* 数据卡数值光环 */
.neuron-value {
	filter: drop-shadow(0 0 16px rgba(59, 130, 246, .40));
}

/* 新增关键帧 */
@keyframes auroraRotate {
	to { transform: rotate(360deg); }
}

@keyframes auroraDrift {
	from { opacity: .7; }
	to { opacity: 1; }
}

@keyframes haloPulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .5; }
	50% { transform: translate(-50%, -50%) scale(1.15); opacity: .9; }
}

@keyframes particleFloat {
	0% { transform: translate(0, 0); opacity: 0; }
	10% { opacity: .9; }
	90% { opacity: .6; }
	100% { transform: translate(var(--px, 0), var(--py, -120vh)); opacity: 0; }
}

@keyframes gridScroll {
	to { background-position: 0 44px, 44px 0; }
}

/* ===== 三大区块三种差异化效果 ===== */

/* ---- 实时用量 · 流光数据面板 ---- */
#usage .stat-card {
	border-radius: 20px;
	background:
		radial-gradient(120% 110% at 50% 0%, var(--accent-soft), transparent 60%),
		var(--card-bg);
	border: 1px solid var(--accent-border);
}

#usage .stat-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 18px;
	right: 18px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
	opacity: 0;
	animation: usageTopLine 3.2s ease-in-out infinite;
}

@keyframes usageTopLine {
	0%, 100% { opacity: 0.15; transform: scaleX(0.6); }
	50% { opacity: 0.85; transform: scaleX(1); }
}

#usage .stat-title {
	color: var(--accent-color);
	font-weight: 600;
	letter-spacing: 0.4px;
}

#usage .neuron-value {
	animation: valueGlow 3s ease-in-out infinite;
}

@keyframes valueGlow {
	0%, 100% { filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.35)); }
	50% { filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.70)); }
}

/* ---- 核心特性 · 彩色徽章卡 ---- */
.feature-grid .feature-card {
	border-radius: 16px;
}

.feature-grid .feature-card:nth-child(1) .feature-icon {
	background: linear-gradient(135deg, #2563eb, #60a5fa);
	color: #fff;
	border: none;
	box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.feature-grid .feature-card:nth-child(2) .feature-icon {
	background: linear-gradient(135deg, #4f46e5, #818cf8);
	color: #fff;
	border: none;
	box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.feature-grid .feature-card:nth-child(3) .feature-icon {
	background: linear-gradient(135deg, #7c3aed, #a78bfa);
	color: #fff;
	border: none;
	box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.feature-grid .feature-card:nth-child(4) .feature-icon {
	background: linear-gradient(135deg, #0891b2, #22d3ee);
	color: #fff;
	border: none;
	box-shadow: 0 6px 16px rgba(8, 145, 178, 0.4);
}

.feature-grid .feature-card:hover .feature-icon {
	transform: translateY(-3px) rotate(-6deg);
	box-shadow: 0 10px 26px rgba(59, 130, 246, 0.4);
}

.feature-grid .feature-card::after {
	content: "";
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed, #0891b2);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-grid .feature-card:hover::after {
	transform: scaleX(1);
}

/* ---- 快速上手 · 编号分步卡 ---- */
.docs-grid {
	counter-reset: step;
}

.docs-grid .doc-entry {
	counter-increment: step;
	border-radius: 16px;
	padding: 18px 20px;
}

.docs-grid .doc-entry-icon {
	position: relative;
	background: transparent;
	border: 1px dashed var(--accent-border);
	color: var(--accent-color);
	box-shadow: none;
}

.docs-grid .doc-entry-icon::after {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: -7px;
	right: -7px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--primary-gradient);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.docs-grid .doc-entry:hover .doc-entry-icon {
	background: var(--primary-gradient);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.docs-grid .doc-entry:hover .doc-entry-icon::after {
	background: #fff;
	color: var(--accent-color);
}

.docs-grid .doc-entry:hover .doc-entry-body h3 {
	color: var(--accent-color);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nav-inner {
		padding: 0 16px;
		gap: 12px;
	}

	.site-nav {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		--nav-bg: rgba(7, 8, 10, 0.97);
	}

	[data-theme="light"] .site-nav {
		--nav-bg: rgba(238, 242, 247, 0.97);
	}

	.blob-1,
	.blob-2,
	.hero-bg::before,
	.hero-bg::after,
	.hero-grid,
	.hero-halo,
	.hero-particle,
	#usage .stat-card::before {
		animation: none;
	}

	.nav-brand {
		flex: 0 1 auto;
		min-width: 0;
	}

	.nav-brand .logo-text {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.nav-burger {
		display: flex;
		flex-shrink: 0;
	}

	.nav-actions {
		margin-left: auto;
		flex-shrink: 0;
	}

	.nav-actions .floating-btn {
		flex-shrink: 0;
	}

	.nav-links {
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 4px;
		padding: 12px 16px 16px;
		background: var(--bg-color);
		border-bottom: 1px solid var(--border-color);
		box-shadow: var(--card-shadow);
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	.nav-links.open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.nav-links a {
		padding: 12px 14px;
		font-size: 15px;
	}

	.hero {
		padding: calc(var(--nav-height) + 24px) 20px 48px;
	}

	.hero-cta .btn {
		width: 100%;
		max-width: 320px;
	}

	.section {
		padding: 48px 20px 8px;
	}

	.dashboard-grid {
		grid-template-columns: 1fr !important;
	}

	.public-chart-wrapper {
		flex-direction: column !important;
		height: auto !important;
		padding: 10px 0;
		gap: 20px !important;
	}

	.public-chart-wrapper > div:first-child {
		width: 160px !important;
		height: 160px !important;
	}

	.public-chart-wrapper > div:nth-child(2) {
		width: 100% !important;
		height: auto !important;
		align-items: center !important;
	}

	.feature-grid,
	.docs-grid {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.site-footer {
		margin-top: 56px;
	}
}
