/*
Theme Name: Kunpeng Ark
Theme URI:
Author: 北京鲲鹏方舟信息科技有限公司
Author URI:
Description: 北京鲲鹏方舟信息科技有限公司官网独立区块主题。
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.1
Version: 0.3.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kunpeng-ark
Tags: block-patterns, block-styles, custom-logo, custom-menu, editor-style, full-site-editing, translation-ready, wide-blocks

Kunpeng Ark is derived from Ollie 1.6.0, Copyright (C) Mike McAlister.
Kunpeng Ark is distributed under the terms of the GNU GPL.
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.wp-site-blocks {
	min-height: 100vh;
}

.site-main {
	min-height: 55vh;
}

.kp-section {
	padding-bottom: var(--wp--preset--spacing--l);
	padding-top: var(--wp--preset--spacing--l);
}

.kp-section--compact {
	padding-bottom: var(--wp--preset--spacing--m);
	padding-top: var(--wp--preset--spacing--m);
}

.kp-eyebrow {
	color: var(--wp--preset--color--accent-dark);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: .08em;
	margin-bottom: var(--wp--preset--spacing--xs);
	text-transform: uppercase;
}

.kp-lead {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.65;
}

.kp-hero {
	background:
		radial-gradient(circle at 82% 22%, rgba(0, 124, 131, .28), transparent 28%),
		linear-gradient(135deg, var(--wp--preset--color--navy), var(--wp--preset--color--navy-surface));
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--custom--shadow--lift);
	overflow: hidden;
	position: relative;
}

.kp-hero::after {
	background-image:
		linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 44px 44px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.kp-hero > * {
	position: relative;
	z-index: 1;
}

.kp-hero h1,
.kp-hero .kp-eyebrow {
	color: var(--wp--preset--color--background);
}

.kp-hero .kp-eyebrow {
	color: #78e5ef;
}

.kp-hero .kp-lead {
	color: #d7e2ef;
}

.kp-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--background);
}

.kp-card-grid,
.kp-product-grid,
.kp-metric-grid,
.kp-process-grid {
	display: grid;
	gap: var(--wp--preset--spacing--m);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kp-product-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kp-card,
.kp-product-card,
.kp-metric,
.kp-process-step {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--custom--shadow--card);
	height: 100%;
	padding: clamp(1.25rem, 2.5vw, 2rem);
}

.kp-product-card {
	border-top: 5px solid var(--wp--preset--color--accent);
}

.kp-card > :first-child,
.kp-product-card > :first-child,
.kp-metric > :first-child,
.kp-process-step > :first-child {
	margin-top: 0;
}

.kp-card > :last-child,
.kp-product-card > :last-child,
.kp-metric > :last-child,
.kp-process-step > :last-child {
	margin-bottom: 0;
}

.kp-number {
	align-items: center;
	background: var(--wp--preset--color--accent-soft);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--accent-dark);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 750;
	height: 2rem;
	justify-content: center;
	margin-bottom: var(--wp--preset--spacing--s);
	width: 2rem;
}

.kp-flow {
	align-items: stretch;
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	overflow-x: auto;
	padding-bottom: .5rem;
}

.kp-flow > * {
	background: var(--wp--preset--color--surface);
	border-bottom: 3px solid var(--wp--preset--color--accent);
	min-width: 9.5rem;
	padding: 1rem;
	position: relative;
}

.kp-flow > *:not(:last-child)::after {
	color: var(--wp--preset--color--accent);
	content: "→";
	font-weight: 800;
	position: absolute;
	right: -.55rem;
	top: 50%;
	z-index: 2;
}

.kp-plane {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	display: grid;
	gap: var(--wp--preset--spacing--s);
	grid-template-columns: 1fr 1fr;
	padding: var(--wp--preset--spacing--m);
}

.kp-plane__realtime {
	background: var(--wp--preset--color--navy);
	border-radius: var(--wp--custom--radius--small);
	color: var(--wp--preset--color--background);
	padding: var(--wp--preset--spacing--m);
}

.kp-plane__control {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--small);
	padding: var(--wp--preset--spacing--m);
}

.kp-plane__realtime h3 {
	color: var(--wp--preset--color--background);
}

.kp-evidence {
	background: var(--wp--preset--color--accent-soft);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--wp--custom--radius--small) var(--wp--custom--radius--small) 0;
	padding: var(--wp--preset--spacing--m);
}

.kp-tech-note {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--small);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	padding: var(--wp--preset--spacing--s);
}

.kp-breadcrumbs {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin: var(--wp--preset--spacing--m) auto 0;
	max-width: var(--wp--style--global--wide-size);
}

.kp-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kp-breadcrumbs li:not(:last-child)::after {
	color: var(--wp--preset--color--border);
	content: "/";
	margin-left: .45rem;
}

.kp-toc {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--small);
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
}

.kp-toc a {
	text-decoration: none;
}

.kp-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table table {
	border-collapse: collapse;
	min-width: 42rem;
}

.wp-block-table th {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--background);
	font-weight: 650;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--wp--preset--color--border);
	padding: .85rem 1rem;
	text-align: left;
	vertical-align: top;
}

.site-footer-shell a,
.site-footer-shell a:hover {
	color: var(--wp--preset--color--background);
}

.site-footer-shell a {
	text-decoration-color: rgba(255,255,255,.45);
}

.site-header-shell {
	position: relative;
	z-index: 20;
}

.site-header-shell .wp-block-site-title {
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	letter-spacing: -.01em;
}

.site-header-shell .wp-block-navigation-item__content {
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
}

.site-header-shell .is-style-kp-nav-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--small);
	color: var(--wp--preset--color--background);
	padding: .65rem .9rem;
}

.site-footer-shell .wp-block-site-title,
.site-footer-shell h2 {
	color: var(--wp--preset--color--background);
}

.site-footer-shell .has-muted-color {
	color: #b9c7db !important;
}

.is-style-kp-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.is-style-kp-footer-links li + li {
	margin-top: .55rem;
}

.kp-hero-flow {
	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--custom--shadow--lift);
	padding: var(--wp--preset--spacing--m);
}

.kp-hero-flow p {
	border-left: 3px solid var(--wp--preset--color--accent);
	margin: 0;
	padding: .75rem 0 .75rem 1rem;
}

.kp-hero-flow p + p {
	border-top: 1px solid var(--wp--preset--color--border);
}

.kp-card-index {
	color: var(--wp--preset--color--accent-dark);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 750;
	letter-spacing: .08em;
}

.kp-flow-grid,
.kp-data-path,
.kp-process-grid {
	display: grid;
	gap: var(--wp--preset--spacing--s);
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.kp-flow-grid > *,
.kp-data-path > *,
.kp-process-grid > * {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--small);
	margin: 0;
	min-width: 0;
	padding: var(--wp--preset--spacing--s);
	position: relative;
}

.kp-flow-grid > *:not(:last-child)::after,
.kp-data-path > *:not(:last-child)::after {
	background: var(--wp--preset--color--accent);
	border-radius: 100%;
	color: var(--wp--preset--color--background);
	content: "→";
	font-size: .8rem;
	font-weight: 800;
	height: 1.5rem;
	line-height: 1.5rem;
	position: absolute;
	right: -.85rem;
	text-align: center;
	top: calc(50% - .75rem);
	width: 1.5rem;
	z-index: 2;
}

.kp-evidence-grid {
	display: grid;
	gap: var(--wp--preset--spacing--m);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kp-technical-note {
	background: var(--wp--preset--color--accent-soft);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--wp--custom--radius--small) var(--wp--custom--radius--small) 0;
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
}

.kp-page-intro {
	max-width: var(--wp--style--global--wide-size);
}

.kp-article-header {
	max-width: 52rem;
}

.kp-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--s) 0;
}

.kp-faq summary {
	cursor: pointer;
	font-weight: 700;
}

.kp-contact-cta .wp-block-group.alignwide {
	gap: var(--wp--preset--spacing--l);
}

.kp-contact-form-wrap {
	max-width: 48rem;
}

.kp-contact-form {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.kp-contact-form label:not(.kp-consent label) {
	display: block;
	font-weight: 700;
	margin-bottom: .4rem;
}

.kp-contact-form input[type="text"],
.kp-contact-form input[type="email"],
.kp-contact-form textarea {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--small);
	box-sizing: border-box;
	font: inherit;
	padding: .8rem .9rem;
	width: 100%;
}

.kp-contact-form button {
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: var(--wp--custom--radius--small);
	color: var(--wp--preset--color--background);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: .8rem 1.15rem;
}

.kp-contact-form small,
.kp-form-preview-note {
	color: var(--wp--preset--color--muted);
}

.kp-form-status {
	border-radius: var(--wp--custom--radius--small);
	font-weight: 700;
	padding: var(--wp--preset--spacing--s);
}

.kp-form-status--success {
	background: #e8f7f1;
	color: #145a42;
}

.kp-form-status--error {
	background: #fff0ed;
	color: #8a281d;
}

.kp-honeypot {
	left: -10000px;
	position: absolute;
	top: auto;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--wp--preset--color--background);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--foreground);
	display: block;
	height: auto;
	left: 1rem;
	padding: .75rem 1rem;
	position: fixed;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
}

@media (hover: hover) {
	.kp-card,
	.kp-product-card {
		transition: box-shadow .2s ease, transform .2s ease;
	}

	.kp-card:hover,
	.kp-product-card:hover {
		box-shadow: var(--wp--custom--shadow--lift);
		transform: translateY(-3px);
	}
}

@media (max-width: 900px) {
	.kp-card-grid,
	.kp-metric-grid,
	.kp-process-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kp-plane {
		grid-template-columns: 1fr;
	}

	.kp-evidence-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.kp-card-grid,
	.kp-product-grid,
	.kp-metric-grid,
	.kp-process-grid {
		grid-template-columns: 1fr;
	}

	.kp-section {
		padding-bottom: var(--wp--preset--spacing--l);
		padding-top: var(--wp--preset--spacing--l);
	}

	.kp-hero {
		border-radius: var(--wp--custom--radius--medium);
	}

	.kp-flow-grid > *::after,
	.kp-data-path > *::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
