/* ==========================================================================
   链枢API 全站样式
   适用页面：首页 / 模型服务 / 计费方案 / API接入 / API文档 / 常见问题 /
             关于我们 / 服务协议 / 隐私政策
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
	--primary: #2563eb;
	--primary-light: #1d4ed8;
	--primary-dark: #2719eb;
	--accent: #793ad8;
	--accent-soft: #9b80eb;
	--ink: #0f172a;
	--ink-2: #374151;
	--ink-3: #6b7280;
	--ink-4: #9ca3af;
	--line: #e5e7eb;
	--line-strong: #d1d5db;
	--bg: #ffffff;
	--bg-soft: #f6f8fb;
	--bg-muted: #f9fafb;
	--border-color: #e2e8f0;
	--card: #ffffff;
	--text-main: #1e293b;
	--text-sub: #64748b;
	--footer-bg: #f8fafc;
	--warning-bg: #fffbeb;
	--warning-line: #fde68a;
	--warning-ink: #92400e;
	--container: 1140px;
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--transition: all 0.3s ease;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
	--shadow-md: 0 8px 24px rgba(11, 61, 107, .08);
	--shadow-lg: 0 18px 44px rgba(11, 61, 107, .12);
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	min-width: 320px;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	color: inherit;
	font: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

ul,
ol {
	list-style-position: inside;
}

[hidden] {
	display: none !important;
}

::selection {
	background: rgba(13, 148, 136, .2);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:focus-visible {
	outline: 3px solid rgba(26, 107, 181, .45);
	outline-offset: 3px;
}

/* ---------- 通用布局 ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.container--narrow {
	max-width: 840px;
}

.section {
	padding: 72px 0;
}

.section--soft {
	background: var(--bg-soft);
}

.section--tight {
	padding: 48px 0;
}

.section-title {
	margin-bottom: 12px;
	color: var(--ink);
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 800;
	letter-spacing: -.3px;
	line-height: 1.35;
	text-align: center;
}

.section-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin: 16px auto 0;
	border-radius: 2px;
	background: var(--accent);
}

.section-sub {
	max-width: 640px;
	margin: 0 auto 48px;
	color: var(--ink-3);
	font-size: 15px;
	line-height: 1.8;
	text-align: center;
}

.section-more {
	margin-top: 32px;
	text-align: center;
}

.text-link {
	color: var(--primary);
	font-size: 14px;
	font-weight: 600;
}

.text-link:hover {
	color: var(--primary-light);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.text-link--warning {
	color: var(--warning-ink);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transform: translateY(-160%);
	transition: transform .2s ease;
}

.skip-link:focus {
	transform: translateY(0);
}

/* ---------- 按钮 ---------- */
.btn-primary,
.btn-secondary,
.btn-white {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 30px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	transition: transform .18s ease, box-shadow .18s ease,
		background-color .18s ease, border-color .18s ease;
}

.btn-primary {
	background: var(--primary);
	box-shadow: 0 6px 18px rgba(11, 61, 107, .24);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-light);
	box-shadow: 0 10px 24px rgba(11, 61, 107, .28);
	transform: translateY(-1px);
}

.btn-secondary {
	border: 1.5px solid var(--primary);
	background: #fff;
	color: var(--primary);
}

.btn-secondary:hover {
	background: var(--bg-soft);
	transform: translateY(-1px);
}

.btn-white {
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	color: var(--primary);
}

.btn-white:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

/* ---------- 页头导航 ---------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--border-color);
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: var(--transition);
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 68px;
}

.logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	color: var(--primary);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.2px;
}


.logo-mark {
	display: inline-block;
	width: 28px;
	height: 28px;
	object-fit: contain;
	animation: logoUpDown 2s linear infinite alternate;
}

@keyframes logoUpDown {
	0% {
		transform: translateY(1px);
	}

	100% {
		transform: translateY(-1px);
	}
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
	color: var(--ink-2);
	font-size: 14px;
}

.nav-links a {
	padding: 5px 0;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color .18s ease, border-color .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
	border-bottom-color: var(--primary);
	color: var(--primary);
	font-weight: 600;
}

.nav-cta {
	flex: 0 0 auto;
	margin-left: 2px;
	padding: 9px 20px;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	transition: background-color .18s ease;
}

.nav-cta:hover {
	background: var(--primary-light);
}

.nav-toggle {
	display: none;
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	margin-left: 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--primary);
	transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bar {
	top: 50%;
	transform: translate(-50%, -50%);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	left: 0;
}

.nav-toggle-bar::before {
	top: -6px;
}

.nav-toggle-bar::after {
	top: 6px;
}

.nav.is-open .nav-toggle-bar {
	background: transparent;
}

.nav.is-open .nav-toggle-bar::before {
	top: 0;
	transform: rotate(45deg);
}

.nav.is-open .nav-toggle-bar::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ---------- 首页 Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 92px 0 80px;
	background:
		radial-gradient(ellipse 80% 60% at 50% -20%, rgba(13, 148, 136, .09), transparent),
		radial-gradient(ellipse 60% 50% at 82% 0%, rgba(26, 107, 181, .08), transparent),
		#fff;
	text-align: center;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.hero h1 {
	margin-bottom: 20px;
	color: var(--ink);
	font-size: clamp(30px, 4.2vw, 44px);
	font-weight: 800;
	letter-spacing: -.6px;
	line-height: 1.28;
}

.hero h1 span {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.mobile-break {
	display: none;
}

.hero>.container>p {
	max-width: 760px;
	margin: 0 auto 32px;
	color: var(--ink-3);
	font-size: 16px;
	line-height: 1.9;
}

.hero-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 38px;
}

.badge {
	padding: 7px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	color: var(--ink-2);
	font-size: 13px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* ---------- 首页核心优势 ---------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.feature-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.feature-card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	opacity: 0;
	transition: opacity .22s ease;
}

.feature-card:hover {
	border-color: rgba(11, 61, 107, .45);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.feature-card:hover::before {
	opacity: 1;
}

.feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 4px;
	margin-bottom: 18px;
	border-radius: 10px;
	background: var(--bg-soft);
	object-fit: contain;
}

.feature-card h3 {
	margin-bottom: 8px;
	font-size: 17px;
	font-weight: 700;
}

.feature-card p {
	flex: 1;
	color: var(--ink-3);
	font-size: 14px;
	line-height: 1.8;
}

.card-link {
	display: inline-block;
	margin-top: 14px;
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
}

.feature-card:hover .card-link {
	color: var(--primary-light);
}

/* ---------- 首页模型卡片 ---------- */
.model-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.model-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.model-tile:hover {
	border-color: var(--primary);
	box-shadow: 0 6px 16px rgba(11, 61, 107, .08);
	transform: translateY(-2px);
}

.model-logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: #aa5aeb;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.model-logo.deepseek {
	background: #4f46e5;
}

.model-logo.qianwen {
	background: #ffaa00;
}

.model-logo.zhipu {
	background: #2563eb;
}

.model-logo.kimi {
	background: #0f172a;
}

.model-logo.mini {
	background: #ef4444;
}

.model-logo.panggu {
	background: #10b981;
}

.model-logo.hunyuan {
	background: #47b94f;
}
.model-logo.baichuan {
	background: #95beff;
}

.model-info h3 {
	font-size: 15px;
	font-weight: 600;
}

.model-info p {
	margin-top: 2px;
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.6;
}

/* ---------- 首页应用场景 ---------- */
.scenario-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.scenario-card {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.scenario-card:hover {
	border-color: rgba(11, 61, 107, .45);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.scenario-card h3 {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 700;
}

.scenario-card p {
	color: var(--ink-3);
	font-size: 14px;
	line-height: 1.8;
}

/* ---------- 首页流程 ---------- */
.process-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
}

.process-step {
	padding: 20px;
	text-align: center;
}

.process-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--primary-light));
	box-shadow: 0 5px 14px rgba(11, 61, 107, .22);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.process-step h3 {
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.process-step p {
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.7;
}

/* ---------- 首页价值区 ---------- */
.value-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	margin-bottom: 56px;
}

.value-row:last-child {
	margin-bottom: 0;
}

.value-row--reverse .value-text {
	order: 2;
}

.value-row--reverse .value-box {
	order: 1;
}

.value-text h2,
.value-text h3 {
	margin-bottom: 14px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.2px;
	line-height: 1.45;
}

.value-text p {
	margin-bottom: 14px;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.85;
}

.value-text p:last-child {
	margin-bottom: 0;
}

.value-box {
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-soft);
}

.value-box h4 {
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 600;
}

.value-box ul {
	list-style: none;
}

.value-box li {
	position: relative;
	padding: 7px 0 7px 26px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.7;
}

.value-box li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 700;
}

/* ---------- 首页 CTA ---------- */
.cta-band {
	position: relative;
	overflow: hidden;
	padding: 64px 0;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	text-align: center;
}

.cta-band::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -10%;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(13, 148, 136, .18), transparent 70%);
}

.cta-band .container {
	position: relative;
}

.cta-band h2 {
	margin-bottom: 10px;
	color: #fff;
	font-size: clamp(23px, 2.6vw, 28px);
	font-weight: 700;
}

.cta-band p {
	margin-bottom: 28px;
	color: #bfdbfe;
	font-size: 15px;
}

/* ---------- 内页标题区 ---------- */
.page-header {
	padding: 54px 0 46px;
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(ellipse 60% 120% at 85% 0%, rgba(26, 107, 181, .07), transparent),
		var(--bg-soft);
}

.page-header h1 {
	margin-bottom: 10px;
	color: var(--ink);
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -.3px;
	line-height: 1.35;
}

.page-header p {
	max-width: 720px;
	color: var(--ink-3);
	font-size: 15px;
	line-height: 1.8;
}

.page-header .update-time {
	margin-top: 8px;
	color: var(--ink-4);
	font-size: 13px;
}

/* ---------- 模型服务页 ---------- */
.model-section {
	margin-bottom: 44px;
}

.model-section:last-of-type {
	margin-bottom: 0;
}

.model-section>h2 {
	margin-bottom: 20px;
	padding-left: 12px;
	border-left: 3px solid var(--primary);
	color: var(--ink);
	font-size: 20px;
	font-weight: 700;
}

.model-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.model-card {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.model-card:hover {
	border-color: var(--primary);
	box-shadow: 0 6px 18px rgba(11, 61, 107, .07);
	transform: translateY(-2px);
}

.model-card h3 {
	margin-bottom: 3px;
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
}

.model-card .vendor {
	margin-bottom: 10px;
	color: var(--primary);
	font-size: 12px;
}

.model-card>p:not(.vendor) {
	flex: 1;
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.7;
}

.model-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.tag {
	padding: 2px 10px;
	border-radius: 999px;
	background: #eef2f7;
	color: #4b5563;
	font-size: 12px;
}

.detail-btn {
	align-self: flex-start;
	margin-top: 14px;
	padding: 0;
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

.detail-btn:hover {
	color: var(--primary-light);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.model-detail {
	margin-top: 12px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg-muted);
}

.model-detail h3 {
	margin-bottom: 10px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
}

.model-detail p {
	margin-bottom: 10px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.85;
}

.model-detail dl {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 7px 16px;
	margin-top: 12px;
	font-size: 13px;
}

.model-detail dt {
	color: var(--ink-3);
}

.model-detail dd {
	color: var(--ink);
}

.notice {
	margin-top: 32px;
	padding: 18px 20px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-sm);
	background: var(--warning-bg);
	color: var(--warning-ink);
	font-size: 13px;
	line-height: 1.8;
}

.notice a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 计费方案页 ---------- */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 24px;
	margin-bottom: 48px;
}

.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
}

.price-card.featured {
	border: 2px solid var(--primary);
	box-shadow: var(--shadow-md);
}

.price-tag {
	position: absolute;
	top: -13px;
	left: 50%;
	padding: 3px 14px;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 12px;
	transform: translateX(-50%);
	white-space: nowrap;
}

.price-card h2 {
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 700;
}

.price-desc {
	min-height: 62px;
	margin-bottom: 20px;
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.7;
}

.price-amount {
	margin-bottom: 2px;
	color: var(--ink);
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -.5px;
	line-height: 1.3;
}

.price-unit {
	margin-bottom: 20px;
	color: var(--ink-3);
	font-size: 13px;
}

.price-features {
	flex: 1;
	list-style: none;
}

.price-features li {
	position: relative;
	padding: 6px 0 6px 22px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.7;
}

.price-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--primary);
	font-weight: 700;
}

.billing-faq {
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-muted);
}

.billing-faq>h2 {
	margin-bottom: 12px;
	font-size: 20px;
	font-weight: 700;
}

.billing-faq .faq-item {
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
}

.billing-faq .faq-item:last-child {
	border-bottom: 0;
}

.billing-faq h3 {
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.billing-faq p {
	color: var(--ink-3);
	font-size: 14px;
	line-height: 1.8;
}

/* ---------- API接入页 ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 44px;
	list-style: none;
}

.step {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-muted);
}

.step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.step h2 {
	margin-bottom: 8px;
	font-size: 17px;
	font-weight: 600;
}

.step p {
	color: var(--ink-3);
	font-size: 14px;
	line-height: 1.75;
}

.api-block {
	margin-bottom: 40px;
	padding: 32px;
	border-radius: var(--radius);
	background: #0f172a;
}

.api-block h2 {
	margin-bottom: 20px;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

.api-note {
	margin-top: 16px;
	color: #94a3b8;
	font-size: 13px;
}

.api-info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.api-info-item {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg-muted);
}

.api-info-item h2 {
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.api-info-item p {
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.75;
}

/* ---------- 代码块 ---------- */
.code-block {
	max-width: 100%;
	margin: 16px 0;
	padding: 18px 20px;
	overflow-x: auto;
	border-radius: var(--radius-sm);
	background: #0f172a;
	color: #e2e8f0;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.8;
	white-space: pre;
	-webkit-overflow-scrolling: touch;
}

.api-block .code-block {
	margin-top: 0;
	border: 1px solid #334155;
	background: #1e293b;
}

.code-block code {
	font-family: inherit;
}

.code-block .comment {
	color: #94a3b8;
}

.code-block .key {
	color: #7dd3fc;
}

.code-block .str {
	color: #86efac;
}

/* ---------- API文档页 ---------- */
.docs-layout {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	align-items: start;
	gap: 44px;
}

.docs-sidebar {
	position: sticky;
	top: 92px;
}

.docs-sidebar h2 {
	margin-bottom: 12px;
	color: var(--ink-3);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.docs-sidebar a {
	display: block;
	margin-bottom: 2px;
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--ink-2);
	font-size: 14px;
	transition: background-color .18s ease, color .18s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.is-active {
	background: var(--bg-soft);
	color: var(--primary);
}

.docs-content {
	min-width: 0;
	overflow-wrap: break-word;
}

.docs-content h2 {
	margin: 40px 0 12px;
	padding-top: 8px;
	color: var(--ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.docs-content h2:first-child {
	margin-top: 0;
	padding-top: 0;
}

.docs-content h3 {
	margin: 20px 0 10px;
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
}

.docs-content p {
	margin-bottom: 12px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.85;
}

.docs-content ul {
	margin-bottom: 12px;
	padding-left: 20px;
}

.docs-content li {
	margin-bottom: 6px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.75;
}

.docs-content a {
	color: var(--primary);
	font-weight: 600;
}

.docs-content a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.endpoint {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--bg-soft);
	font-family: var(--font-mono);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.method {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
}

.method-post {
	background: #dbeafe;
	color: #1e40af;
}

.method-get {
	background: #dcfce7;
	color: #166534;
}

.table-wrap {
	width: 100%;
	margin: 16px 0;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	-webkit-overflow-scrolling: touch;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

th {
	padding: 10px 14px;
	border: 1px solid var(--line);
	background: var(--bg-soft);
	color: var(--ink);
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
}

td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	color: var(--ink-2);
	vertical-align: top;
}

tbody tr:hover {
	background: #fbfdff;
}

/* ---------- 常见问题页 ---------- */
.faq-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 32px;
}

.faq-cat {
	padding: 8px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink-2);
	font-size: 14px;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.faq-cat:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.faq-cat.active {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}

.faq-list {
	max-width: 840px;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 12px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
}

.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 18px 22px;
	background: var(--bg-muted);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	text-align: left;
	transition: background-color .18s ease, color .18s ease;
}

.faq-q:hover {
	background: #f1f5f9;
	color: var(--primary);
}

.faq-item.is-open .faq-q {
	background: #f1f7fb;
	color: var(--primary);
}

.faq-a {
	padding: 20px 22px;
	border-top: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.85;
}

.faq-a a {
	color: var(--primary);
	font-weight: 600;
}

.faq-a a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.more-help {
	margin-top: 40px;
	padding: 32px;
	border-radius: 10px;
	background: var(--bg-soft);
	text-align: center;
}

.more-help h2 {
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 700;
}

.more-help p {
	margin-bottom: 16px;
	color: var(--ink-3);
	font-size: 14px;
}

.more-help a {
	color: var(--primary);
	font-size: 14px;
	font-weight: 600;
}

.more-help a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 关于我们页 ---------- */
.about-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
	align-items: start;
	gap: 48px;
}

.about-text h2 {
	margin: 32px 0 14px;
	color: var(--ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.45;
}

.about-text h2:first-child {
	margin-top: 0;
}

.about-text>p {
	margin-bottom: 14px;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.85;
}

.accordion {
	margin-top: 16px;
}

.accordion-item {
	margin-bottom: 10px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
}

.accordion-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 15px 18px;
	background: var(--bg-muted);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	text-align: left;
	transition: background-color .18s ease, color .18s ease;
}

.accordion-trigger:hover {
	background: #f1f5f9;
	color: var(--primary);
}

.accordion-item.is-open .accordion-trigger {
	background: #f1f7fb;
	color: var(--primary);
}

.accordion-panel {
	padding: 18px;
	border-top: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.85;
}

.toggle-icon {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.toggle-icon::before,
.toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease;
}

.toggle-icon::before {
	transform: translate(-50%, -50%);
}

.toggle-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.is-open .toggle-icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0);
}

.quick-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
}

.quick-link {
	padding: 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg-muted);
	color: var(--primary);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: border-color .18s ease, background-color .18s ease;
}

.quick-link:hover {
	border-color: var(--primary);
	background: #fff;
}

.info-card {
	position: sticky;
	top: 92px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-muted);
}

.info-card h2 {
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 700;
}

.info-card dl {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 10px 14px;
	font-size: 13px;
	line-height: 1.7;
}

.info-card dt {
	color: var(--ink-3);
}

.info-card dd {
	color: var(--ink);
	overflow-wrap: anywhere;
}

.compliance {
	margin-top: 32px;
	padding: 18px 20px;
	border: 1px solid var(--warning-line);
	border-radius: var(--radius-sm);
	background: var(--warning-bg);
	color: var(--warning-ink);
	font-size: 13px;
	line-height: 1.85;
}

/* ---------- 协议与政策页 ---------- */
.article {
	padding: 48px 0 64px;
	color: var(--ink-2);
	font-size: 15px;
}

.article>.container>p {
	margin-bottom: 14px;
	line-height: 1.9;
}

.article h2 {
	margin: 30px 0 12px;
	color: var(--ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
}

.article p {
	margin-bottom: 12px;
	line-height: 1.9;
}

.article ol {
	margin-bottom: 14px;
	padding-left: 24px;
}

.article ol li {
	margin-bottom: 8px;
	line-height: 1.85;
}

.article a {
	color: var(--primary);
	font-weight: 600;
}

/* ---------- 页脚 ---------- */
.footer {
	padding: 48px 0 24px;
	background: var(--footer-bg);
	color: var(--text-sub);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 32px;
}

.footer-brand .logo {
	margin-bottom: 12px;
	color: var(--primary);
}

.footer-brand .logo-mark {
	box-shadow: none;
}

.footer-brand p {
	max-width: 340px;
	color: #94a3b8;
	font-size: 13px;
	line-height: 1.9;
}

.footer-col h2,
.footer-col h3,
.footer-col h5 {
	margin-bottom: 12px;
	color: var(--text-main);
	font-size: 14px;
	font-weight: 600;
}

.footer-col p,
.footer-col a {
	display: block;
	color: var(--text-sub);
	font-size: 13px;
	line-height: 2;
	transition: color .18s ease;
}

.footer-col a:hover {
	text-decoration: underline;
}

.footer-bottom {
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
	color: #64748b;
	font-size: 12px;
	line-height: 2;
	text-align: center;
}

.footer-bottom p+p {
	margin-top: 2px;
}

.footer-bottom a {
	color: #64748b;
}

.footer-bottom a:hover {
	color: #94a3b8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
	.nav-inner {
		gap: 20px;
	}

	.nav-links {
		gap: 18px;
	}

	.feature-grid,
	.scenario-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.process-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-inner {
		gap: 32px;
	}
}

@media (max-width: 900px) {
	.nav-inner {
		gap: 16px;
	}

	.nav-toggle {
		display: block;
		order: 3;
	}

	.nav-cta {
		order: 2;
		margin-left: auto;
	}

	.nav-links {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 10px 24px 18px;
		border-bottom: 1px solid var(--line);
		background: #fff;
		box-shadow: 0 18px 30px rgba(15, 23, 42, .1);
	}

	.nav.is-open .nav-links {
		display: flex;
	}

	.nav-links a {
		padding: 12px 2px;
		border-bottom: 1px solid var(--line);
	}

	.nav-links a:last-child {
		border-bottom: 0;
	}

	.nav-links a:hover,
	.nav-links a.active {
		border-bottom-color: var(--line);
	}

	.docs-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.docs-sidebar {
		display: none;
	}

	.about-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.info-card {
		position: static;
	}

	.pricing-grid {
		gap: 18px;
	}

	.price-card {
		padding: 28px;
	}

	.footer-inner {
		grid-template-columns: 1.4fr 1fr;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 20px;
	}

	.section {
		padding: 52px 0;
	}

	.section--tight {
		padding: 40px 0;
	}

	.section-sub {
		margin-bottom: 34px;
		font-size: 14px;
	}

	.hero {
		padding: 58px 0 50px;
	}

	.hero>.container>p {
		font-size: 15px;
	}

	.hero-badges {
		gap: 8px;
		margin-bottom: 30px;
	}

	.badge {
		padding: 6px 13px;
		font-size: 12px;
	}

	.feature-grid,
	.scenario-grid,
	.model-tiles,
	.model-grid,
	.steps,
	.api-info,
	.pricing-grid {
		grid-template-columns: 1fr;
	}

	.feature-card,
	.scenario-card {
		padding: 24px;
	}

	.value-row,
	.value-row--reverse {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 40px;
	}

	.value-row--reverse .value-text,
	.value-row--reverse .value-box {
		order: initial;
	}

	.value-text h2,
	.value-text h3 {
		font-size: 20px;
	}

	.value-box {
		padding: 24px;
	}

	.process-step {
		padding: 12px 8px;
	}

	.cta-band {
		padding: 50px 0;
	}

	.page-header {
		padding: 40px 0 34px;
	}

	.page-header p {
		font-size: 14px;
	}

	.model-section {
		margin-bottom: 36px;
	}

	.api-block {
		padding: 22px 18px;
	}

	.code-block {
		padding: 16px;
		font-size: 12px;
	}

	.docs-content h2 {
		margin-top: 32px;
		font-size: 20px;
	}

	.docs-content h2:first-child {
		margin-top: 0;
	}

	.docs-content .code-block {
		font-size: 11px;
	}

	.billing-faq {
		padding: 24px 20px;
	}

	.about-layout {
		gap: 30px;
	}

	.about-text h2 {
		font-size: 20px;
	}

	.quick-links {
		grid-template-columns: 1fr;
	}

	.article {
		padding: 36px 0 48px;
		font-size: 14px;
	}

	.article h2 {
		font-size: 18px;
	}

	.footer {
		padding-top: 40px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		gap: 26px;
		margin-bottom: 28px;
	}

	.footer-brand p {
		max-width: none;
	}
}

@media (max-width: 520px) {
	.nav-cta {
		display: inline-flex;
		padding: 8px 14px;
		font-size: 13px;
	}

	.nav-toggle {
		margin-left: 0;
	}

	.hero h1 {
		font-size: 27px;
	}

	.mobile-break {
		display: inline;
	}

	.hero-actions {
		flex-direction: column;
	}

	.hero-actions .btn-primary,
	.hero-actions .btn-secondary {
		width: 100%;
	}

	.section-title {
		font-size: 23px;
	}

	.faq-q,
	.faq-a,
	.accordion-trigger,
	.accordion-panel {
		padding-right: 16px;
		padding-left: 16px;
	}

	.faq-cat {
		padding: 7px 14px;
		font-size: 13px;
	}

	.price-amount {
		font-size: 28px;
	}

	.model-detail dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.model-detail dt {
		margin-top: 7px;
		font-weight: 600;
	}

	.info-card {
		padding: 22px;
	}

	.info-card dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.info-card dt {
		margin-top: 8px;
		font-weight: 600;
	}

	.footer-bottom {
		text-align: left;
	}
}

@media (max-width: 380px) {
	.nav-cta {
		display: none;
	}

	.nav-toggle {
		margin-left: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}