:root {
	/* 配色方案：GitHub 标准深色，成熟专业的开发工具风 */
	--bg-primary: #0d1117;
	--bg-secondary: #161b22;
	--bg-tertiary: #21262d;
	--fg-primary: #e6edf3;
	--fg-secondary: #8b949e;
	--fg-muted: #6e7681;
	--accent: #58a6ff;
	--accent-hover: #79b8ff;
	--accent-glow: rgba(88, 166, 255, 0.25);
	--accent-secondary: #f78166;
	--border: #30363d;
	--card: #161b22;
	--success: #3fb950;
	--warning: #d29922;
	--error: #f85149;
	--font-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	background: var(--bg-primary);
	color: var(--fg-primary);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}

.mono {
	font-family: var(--font-mono);
}

.nowrap {
	white-space: nowrap;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Layout container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

/* Header / nav */
header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--bg-primary);
	border-bottom: 1px solid var(--border);
}

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

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fg-primary);
}

.brand:hover {
	text-decoration: none;
}

.brand-logo {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: block;
	flex-shrink: 0;
}

.brand-name,
.brand-word {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
	letter-spacing: -0.02em;
}

.brand-name {
	font-weight: 700;
	font-size: 18px;
}

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

.nav-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fg-secondary);
	transition: all 0.2s ease;
}

.nav-list a:hover {
	background: var(--bg-tertiary);
	color: var(--fg-primary);
	text-decoration: none;
}

.nav-list a.active {
	background: var(--bg-tertiary);
	color: var(--accent);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	outline: none;
	font-family: var(--font-sans);
	white-space: nowrap;
}

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

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
	border: 1px solid var(--accent);
}

.btn-primary:hover:not(:disabled) {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

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

.btn-secondary:hover:not(:disabled) {
	background: var(--border);
	border-color: var(--fg-muted);
}

.btn-danger {
	background: rgba(248, 81, 73, 0.12);
	color: var(--error);
	border: 1px solid rgba(248, 81, 73, 0.4);
}

.btn-sm {
	padding: 4px 10px;
	font-size: 12px;
}

/* Hero */
.hero {
	padding: 80px 0 72px;
	position: relative;
}

.hero-content {
	max-width: 860px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--fg-secondary);
	font-family: var(--font-mono);
	font-size: 12px;
	margin-bottom: 24px;
}
.hero-badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.hero h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin-bottom: 20px;
}

.hero h1 .grad {
	background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero p.lead {
	font-size: 1.1rem;
	color: var(--fg-secondary);
	max-width: 640px;
	margin-bottom: 32px;
}

.hero-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* Sections */
.section {
	padding: 64px 0;
}

.section-alt {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.section-title {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 12px;
}

.section-sub {
	color: var(--fg-secondary);
	max-width: 640px;
	margin-bottom: 36px;
	overflow-wrap: anywhere;
}

/* Pipeline */
.pipeline {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex-wrap: wrap;
}

.pipe-step {
	flex: 1 1 130px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 16px;
	position: relative;
}

.pipe-step .pipe-name {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 6px;
	word-break: break-all;
}

.pipe-step .pipe-desc {
	font-size: 13px;
	color: var(--fg-secondary);
}

.pipe-arrow {
	display: flex;
	align-items: center;
	color: var(--fg-muted);
	font-size: 18px;
	flex: 0 0 auto;
}

/* Feature cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.feature-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 18px 24px;
	transition: border-color 0.15s ease;
}

.feature-card:hover {
	border-color: var(--fg-muted);
}

.feature-card .card-icon {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background: var(--bg-tertiary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	margin-bottom: 12px;
}

.feature-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.feature-card p {
	font-size: 14px;
	color: var(--fg-secondary);
}

/* 最新模型数据 */
.model-version {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--fg-primary);
	max-width: 100%;
	word-break: break-all;
}

.model-version::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--success);
	flex-shrink: 0;
}

.model-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.model-tag {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	background: var(--bg-tertiary);
	padding: 8px 12px;
	border-radius: 6px;
	min-width: 0;
}

.model-tag .tag-key {
	font-size: 11px;
	color: var(--fg-muted);
}

.model-tag .tag-value {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-primary);
	word-break: break-all;
}

.model-tag .tag-value a {
	color: var(--accent);
}

/* Verdict cards */
.verdict-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.verdict-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 18px 24px;
	position: relative;
	overflow: hidden;
}

.verdict-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
}

.verdict-card.safe::before {
	background: var(--success);
}

.verdict-card.suspicious::before {
	background: var(--warning);
}

.verdict-card.malware::before {
	background: var(--error);
}

.verdict-card h4 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.verdict-card.safe h4 {
	color: var(--success);
}

.verdict-card.suspicious h4 {
	color: var(--warning);
}

.verdict-card.malware h4 {
	color: var(--error);
}

.verdict-card p {
	font-size: 14px;
	color: var(--fg-secondary);
}

.verdict-card .verdict-range {
	display: inline-block;
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-muted);
}

/* API quickstart */
.api-block {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 14px;
}

.api-block h4 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--fg-primary);
}

.code-block {
	background: #0d1117;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px 16px;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.7;
	color: #c9d1d9;
	overflow-x: auto;
	white-space: pre;
}

.code-block .c-accent {
	color: var(--accent);
}

.code-block .c-dim {
	color: var(--fg-muted);
}

.api-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.api-table th,
.api-table td {
	text-align: left;
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
}

.api-table th {
	color: var(--fg-secondary);
	font-weight: 500;
	background: var(--bg-tertiary);
}

.api-table td {
	font-family: var(--font-mono);
	color: var(--fg-primary);
}

.api-table td .method {
	color: var(--accent);
	font-weight: 600;
}

/* CTA */
.cta-section {
	padding: 72px 0;
	text-align: center;
}

.cta-section h2 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.cta-section p {
	color: var(--fg-secondary);
	margin-bottom: 28px;
}

.cta-section .cta-small {
	margin-top: 18px;
	margin-bottom: 0;
	font-size: 13px;
	color: var(--fg-secondary);
}

/* Footer */
footer {
	margin-top: auto;
	background: var(--bg-secondary);
	border-top: 1px solid var(--border);
	padding: 48px 0 24px;
}

.footer-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	margin-bottom: 32px;
}

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

.footer-col ul {
	list-style: none;
}

.footer-col li {
	margin-bottom: 10px;
}

.footer-col a {
	color: var(--fg-secondary);
	font-size: 14px;
	transition: color 0.2s ease;
}

.footer-col a:hover {
	color: var(--accent);
	text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 20px;
	text-align: center;
	font-size: 13px;
	color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 768px) {
	.header-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 12px 0;
	}

	.nav-list {
		width: 100%;
		overflow-x: auto;
	}

	.nav-list a {
		flex-shrink: 0;
		font-size: 13px;
		padding: 8px 12px;
	}

	.hero {
		padding: 48px 0;
	}

	.section {
		padding: 44px 0;
	}

	.pipe-arrow {
		transform: rotate(90deg);
		justify-content: center;
	}
}

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