/*
Theme Name: Shoya AI Lab Child
Theme URI: https://shoyaailab.local/
Description: Shoya AI Lab 科技感官網子主題，基於 Astra。
Author: Shoya AI Lab
Author URI: https://shoyaailab.local/
Template: astra
Version: 1.0.0
Requires at least: 5.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shoya-ai-lab-child
*/

/* ==========================================================================
   Shoya AI Lab — 深色科技感首頁
   ========================================================================== */

:root {
	--sal-bg: #070b14;
	--sal-bg-elevated: #0d1324;
	--sal-card: rgba(18, 26, 48, 0.72);
	--sal-border: rgba(120, 140, 255, 0.22);
	--sal-text: #e8ecff;
	--sal-muted: #9aa8c9;
	--sal-accent: #6c7cff;
	--sal-accent-2: #a855f7;
	--sal-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 45%, #a855f7 100%);
	--sal-glow: 0 0 40px rgba(99, 102, 241, 0.35);
	--sal-radius: 14px;
	--sal-max: 1120px;
	--sal-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}

body.sal-front-page {
	background: var(--sal-bg);
	color: var(--sal-text);
	font-family: var(--sal-font);
}

body.sal-front-page #page,
body.sal-front-page .site-content,
body.sal-front-page .ast-container {
	background: transparent;
	max-width: none;
	padding: 0;
	margin: 0;
}

.sal-wrap {
	width: min(100% - 2rem, var(--sal-max));
	margin-inline: auto;
}

.sal-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	background: rgba(7, 11, 20, 0.85);
	border-bottom: 1px solid var(--sal-border);
}

.sal-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 0;
	gap: 1rem;
}

.sal-logo {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	background: var(--sal-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.sal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.sal-nav a {
	color: var(--sal-muted);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.sal-nav a:hover,
.sal-nav a:focus {
	color: var(--sal-text);
}

.sal-hero {
	position: relative;
	padding: 4.5rem 0 5rem;
	overflow: hidden;
}

.sal-hero::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto;
	height: 70%;
	background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.25), transparent 60%),
		radial-gradient(ellipse at 80% 10%, rgba(168, 85, 247, 0.18), transparent 55%);
	pointer-events: none;
}

.sal-hero__content {
	position: relative;
	text-align: center;
}

.sal-badge {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid var(--sal-border);
	color: var(--sal-muted);
	margin-bottom: 1.25rem;
}

.sal-hero h1 {
	font-size: clamp(2.2rem, 6vw, 3.5rem);
	font-weight: 800;
	margin: 0 0 0.5rem;
	line-height: 1.15;
	background: var(--sal-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.sal-hero__subtitle {
	font-size: clamp(1.1rem, 3vw, 1.45rem);
	color: var(--sal-text);
	margin: 0 0 1rem;
	font-weight: 600;
}

.sal-hero__desc {
	max-width: 42rem;
	margin: 0 auto 2rem;
	color: var(--sal-muted);
	line-height: 1.7;
	font-size: 1rem;
}

.sal-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.sal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.35rem;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sal-btn--primary {
	background: var(--sal-gradient);
	color: #fff;
	box-shadow: var(--sal-glow);
}

.sal-btn--primary:hover,
.sal-btn--primary:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
	color: #fff;
}

.sal-btn--ghost {
	border: 1px solid var(--sal-border);
	color: var(--sal-text);
	background: rgba(255, 255, 255, 0.03);
}

.sal-btn--ghost:hover,
.sal-btn--ghost:focus {
	border-color: var(--sal-accent);
	color: var(--sal-text);
	transform: translateY(-2px);
}

.sal-section {
	padding: 4rem 0;
}

.sal-section__title {
	text-align: center;
	font-size: clamp(1.5rem, 4vw, 2rem);
	margin: 0 0 0.5rem;
}

.sal-section__lead {
	text-align: center;
	color: var(--sal-muted);
	margin: 0 auto 2.5rem;
	max-width: 36rem;
	line-height: 1.6;
}

.sal-grid {
	display: grid;
	gap: 1.25rem;
}

.sal-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sal-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sal-card {
	background: var(--sal-card);
	border: 1px solid var(--sal-border);
	border-radius: var(--sal-radius);
	padding: 1.5rem;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sal-card:hover {
	transform: translateY(-4px);
	border-color: rgba(129, 140, 248, 0.5);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.sal-card__icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	margin-bottom: 1rem;
	background: var(--sal-gradient);
	color: #fff;
	font-weight: 700;
}

.sal-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.sal-card p {
	margin: 0;
	color: var(--sal-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.sal-project-tag {
	display: inline-block;
	font-size: 0.72rem;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	background: rgba(99, 102, 241, 0.2);
	color: #c4b5fd;
	margin-bottom: 0.75rem;
}

.sal-contact {
	text-align: center;
	padding: 3.5rem 0 4rem;
	background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.08));
	border-top: 1px solid var(--sal-border);
}

.sal-contact__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-top: 1.5rem;
}

.sal-contact__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1.2rem;
	border-radius: 10px;
	border: 1px solid var(--sal-border);
	color: var(--sal-text);
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.sal-contact__links a:hover {
	background: rgba(99, 102, 241, 0.15);
	border-color: var(--sal-accent);
}

.sal-footer {
	padding: 1.5rem 0 2rem;
	text-align: center;
	color: var(--sal-muted);
	font-size: 0.85rem;
	border-top: 1px solid var(--sal-border);
}

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

.sal-footer a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.sal-hero {
		padding: 3rem 0 3.5rem;
	}

	.sal-section {
		padding: 3rem 0;
	}

	.sal-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.sal-nav {
		width: 100%;
	}
}
