/* EArk Main Styles
   Global design system + core page/footer/card layouts
*/

:root {
	--eark-primary: #0066ff;
	--eark-primary-dark: #0044cc;
	--eark-secondary: var(--eark-secondary, #00c4b4);
	--eark-text: #1a1a2e;
	--eark-muted: #64748b;
	--eark-border: #e2e8f0;
	--eark-bg: #ffffff;
	--eark-light: #f8fafc;
	--eark-dark: var(--eark-dark, #0a1628);
	--eark-radius: 8px;
	--eark-max-width: 1200px;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--eark-text);
	line-height: 1.6;
	background: var(--eark-bg);
}

.site-main {
	max-width: var(--eark-max-width);
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.entry-title {
	font-size: 2.25rem;
	margin: 0 0 1rem;
	line-height: 1.2;
}

.entry-content {
	font-size: 1.05rem;
}

.entry-content h2 { font-size: 1.75rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.5rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--eark-radius); }
.entry-content a { color: var(--eark-primary); }

/* Cards */
.eark-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

.eark-card {
	background: #fff;
	border: 1px solid var(--eark-border);
	border-radius: var(--eark-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.eark-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.eark-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.eark-card-body {
	padding: 1.25rem;
}

.eark-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
}

.eark-card p {
	margin: 0;
	color: var(--eark-muted);
	font-size: 0.95rem;
}

/* Testimonials */
.eark-testimonial {
	background: var(--eark-light);
	padding: 1.5rem;
	border-radius: var(--eark-radius);
	margin-bottom: 1rem;
}

.eark-testimonial blockquote {
	margin: 0 0 1rem;
	font-style: italic;
	font-size: 1.05rem;
}

.eark-testimonial cite {
	font-weight: 600;
	font-style: normal;
	color: var(--eark-primary);
}

/* ==========================================================================
   Footer — Multi-Column Directory, Logo, Payment Badges & Socials
   Supports EArk Deep Navy (var(--eark-dark, #0a1628) default) and Clean Ice Light (#f7f9fc).
   ========================================================================== */
.site-footer {
	background: var(--eark-dark, #0a1628);
	color: #94a3b8;
	margin-top: 64px;
	border-top: 1px solid #1a2a46;
}

.site-footer.is-footer-light {
	background: #f7f9fc;
	color: #4e5969;
	border-top: 1px solid #e7ebf3;
}

.footer-top {
	max-width: var(--eark-max-width, 1200px);
	margin: 0 auto;
	padding: 64px 24px 48px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(var(--footer-cols, 5), minmax(0, 1fr));
	gap: 32px 24px;
}

.footer-col {
	min-width: 0;
}

.footer-widget-title {
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 18px;
}

.site-footer.is-footer-light .footer-widget-title {
	color: #1d2129;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.footer-col li {
	margin: 0;
	padding: 0;
}

.footer-col a {
	color: #94a3b8;
	font-size: 13.5px;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer-col a:hover {
	color: var(--eark-secondary, #00c4b4);
}

.site-footer.is-footer-light .footer-col a {
	color: #4e5969;
}

.site-footer.is-footer-light .footer-col a:hover {
	color: var(--eark-primary, #1677ff);
}

.footer-bottom {
	max-width: var(--eark-max-width, 1200px);
	margin: 0 auto;
	padding: 0 24px 44px;
}

/* Middle Brand Row: Logo + Accepted Payment Badges (Left) & Social Icons (Right) */
.footer-brand-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid #1a2a46;
	margin-bottom: 22px;
}

.site-footer.is-footer-light .footer-brand-row {
	border-bottom-color: #e7ebf3;
}

.footer-brand-left {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-logo a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.footer-logo img {
	height: 34px;
	max-height: 34px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	display: block;
}

.footer-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.site-footer.is-footer-light .footer-wordmark {
	color: #1d2129;
}

.footer-wordmark-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--eark-primary, #1677ff);
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
}

/* Accepted Payment Method Badges */
.footer-payments {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-pay-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.site-footer.is-footer-light .footer-pay-badge {
	border-color: #d9e1ec;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.footer-pay-badge svg {
	display: block;
	width: 46px;
	height: 28px;
}

.footer-pay-more {
	font-size: 13px;
	font-weight: 600;
	color: #38bdf8;
	margin-left: 4px;
}

.site-footer.is-footer-light .footer-pay-more {
	color: var(--eark-primary, #1677ff);
}

/* Social Media Icons */
.footer-socials {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footer-socials a svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.footer-socials a:hover {
	background: var(--eark-primary, #1677ff);
	border-color: var(--eark-primary, #1677ff);
	color: #ffffff;
	transform: translateY(-2px);
}

.site-footer.is-footer-light .footer-socials a {
	background: #1d2129;
	border-color: #1d2129;
	color: #ffffff;
}

.site-footer.is-footer-light .footer-socials a:hover {
	background: var(--eark-primary, #1677ff);
	border-color: var(--eark-primary, #1677ff);
}

/* Bottom Legal & Copyright Row */
.footer-legal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
}

.footer-copyright {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.footer-legal-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 24px;
}

.footer-legal-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-legal-links a {
	font-size: 13px;
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer-legal-links a:hover {
	color: #ffffff;
}

.site-footer.is-footer-light .footer-legal-links a {
	color: #4e5969;
}

.site-footer.is-footer-light .footer-legal-links a:hover {
	color: var(--eark-primary, #1677ff);
}

.footer-price-note {
	font-size: 13px;
	color: #64748b;
}

@media (max-width: 960px) {
	.footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.footer-top {
		padding: 44px 16px 36px;
	}
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 18px;
	}
	.footer-bottom {
		padding: 0 16px 36px;
	}
	.footer-brand-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.footer-legal-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Buttons */
.eark-btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border-radius: var(--eark-radius);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.15s ease;
}

.eark-btn-primary {
	background: var(--eark-primary);
	color: #fff;
}

.eark-btn-primary:hover {
	background: var(--eark-primary-dark);
}

/* Tech Hero & Sections */
.eark-hero { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--eark-dark, #0a1628); color: #fff; }
.eark-hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(0,102,255,0.25) 0%, transparent 50%), radial-gradient(circle at 80% 30%, rgba(0,196,180,0.15) 0%, transparent 40%), linear-gradient(180deg, var(--eark-dark, #0a1628) 0%, #0f172a 100%); animation: eark-pulse 8s ease-in-out infinite; }
@keyframes eark-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }
.eark-hero-content { position: relative; z-index: 2; max-width: 900px; padding: 4rem 1.5rem; text-align: center; }
.eark-hero-badge { display: inline-block; background: rgba(0,196,180,0.15); color: var(--eark-secondary, #00c4b4); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.25rem; border: 1px solid rgba(0,196,180,0.3); }
.eark-hero-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
.eark-rotating-text { display: inline-block; color: var(--eark-secondary, #00c4b4); border-bottom: 2px solid var(--eark-secondary, #00c4b4); min-width: 220px; transition: opacity 0.2s; }
.eark-hero-subtitle { font-size: 1.15rem; opacity: 0.9; max-width: 640px; margin: 0 auto 2rem; }
.eark-hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.eark-btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.eark-btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.eark-hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.eark-hero-stats strong { display: block; font-size: 1.5rem; }
.eark-hero-stats span { font-size: 0.85rem; opacity: 0.75; }
.eark-section { padding: 4rem 1.5rem; }
.eark-container { max-width: 1200px; margin: 0 auto; }
.eark-section-title { text-align: center; font-size: 2rem; margin: 0 0 0.5rem; }
.eark-section-sub { text-align: center; color: var(--eark-muted); margin: 0 0 2rem; }
.service-hero-image { margin-bottom: 1.5rem; border-radius: var(--eark-radius); overflow: hidden; }
.service-lead { font-size: 1.15rem; color: var(--eark-muted); margin: 0 0 1.5rem; }
.service-cta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--eark-border); }

@media (max-width: 768px) {
	.site-main { padding: 2rem 1rem; }
	.entry-title { font-size: 1.75rem; }
	.eark-card-grid { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Landing Page & Custom Homepage Canvas Width Management
   - Default & Wide blocks automatically stay within the 1200px site width.
   - Full-Width (.alignfull) blocks (Hero Slider, Homepage Partners, Full Banners) span 100% edge-to-edge.
   ========================================================================== */
.eark-landing-canvas {
	overflow-x: clip;
}

.eark-landing-blocks,
.eark-front-blocks {
	display: flow-root;
	width: 100%;
	overflow-x: clip;
}

.eark-landing-blocks > :not(.alignfull),
.eark-front-blocks > :not(.alignfull) {
	width: calc(100% - 48px);
	max-width: var(--eark-max-width, 1200px);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.eark-landing-blocks > .alignfull,
.eark-front-blocks > .alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

/* Support WordPress Group ("组") inner content width constraint when Group itself is Full-Width */
.wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--eark-max-width, 1200px);
	margin-left: auto;
	margin-right: auto;
}

/* Prevent horizontal flex Row ("行") children from overflowing or squishing awkwardly */
.wp-block-group.is-layout-flex:not(.is-vertical) > * {
	min-width: 0;
}

.wp-block-group.is-layout-flex:not(.is-vertical) > :only-child {
	flex: 1 1 100%;
	width: 100%;
}

@media (max-width: 640px) {
	.eark-landing-blocks > :not(.alignfull),
	.eark-front-blocks > :not(.alignfull) {
		width: calc(100% - 32px);
	}
}


/* ==========================================================================
   EArk2027 Lightweight Reveal Animations (Zero Layout Shift)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.eark-reveal-up {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
		will-change: opacity, transform;
	}
	
	.eark-reveal-up.is-revealed {
		opacity: 1;
		transform: translateY(0);
	}

	/* Card Grids Staggered Reveal */
	.eark-card-grid > *,
	.eark-pc-grid > *,
	.eark-doc-grid > *,
	.eark-sl-pills > * {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.is-revealed > .eark-card,
	.is-revealed > .eark-pc-card,
	.is-revealed > .eark-doc-item,
	.is-revealed > .eark-sl-pill {
		opacity: 1;
		transform: translateY(0);
	}

	/* Stagger delays up to 6 items */
	.is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
	.is-revealed > *:nth-child(2) { transition-delay: 0.1s; }
	.is-revealed > *:nth-child(3) { transition-delay: 0.15s; }
	.is-revealed > *:nth-child(4) { transition-delay: 0.2s; }
	.is-revealed > *:nth-child(5) { transition-delay: 0.25s; }
	.is-revealed > *:nth-child(6) { transition-delay: 0.3s; }
}
