/* ==========================================================================
   Porto Child — 设计令牌（仅作用于首页模板）
   所有元素选择器都限定在 .wp-home 内，绝不污染站点其它页面。
   变量本身放在 :root，方便别处复用。
   ========================================================================== */

:root {
	/* 色板 */
	--wp-bg: #0e0e0e;
	--wp-bg-elevated: #161616;
	--wp-bg-subtle: #1f1f1f;
	--wp-text: #dadada;
	--wp-text-muted: #8f8f8f;
	--wp-accent: #9f8561;
	--wp-accent-hover: #b89873;
	--wp-border: #2a2a2a;
	--wp-success: #3f7d52;
	--wp-danger: #a33b3b;

	/* 字体 */
	--wp-font-heading: 'Oswald', 'Arial Narrow', sans-serif;
	--wp-font-body: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;

	/* 字号阶梯 */
	--wp-fs-hero: 64px;
	--wp-fs-h1: 44px;
	--wp-fs-h2: 32px;
	--wp-fs-h3: 22px;
	--wp-fs-body: 16px;
	--wp-fs-small: 14px;

	/* 节奏 */
	--wp-container: 1400px;
	--wp-gutter: 32px;
	--wp-section-gap: 96px;
	--wp-radius: 2px;
}

/* ---------- 基础（仅首页） ---------- */

.wp-home {
	background-color: var(--wp-bg);
	color: var(--wp-text);
	font-family: var(--wp-font-body);
	font-size: var(--wp-fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.wp-home h1,
.wp-home h2,
.wp-home h3,
.wp-home h4,
.wp-home h5,
.wp-home h6 {
	font-family: var(--wp-font-heading);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
	line-height: 1.15;
}

.wp-home h1 { font-size: var(--wp-fs-h1); }
.wp-home h2 { font-size: var(--wp-fs-h2); }
.wp-home h3 { font-size: var(--wp-fs-h3); }

.wp-home a {
	color: var(--wp-text);
	transition: color .18s ease;
}

.wp-home a:hover,
.wp-home a:focus {
	color: var(--wp-accent);
	text-decoration: none;
}

/* ---------- 按钮 ---------- */

.wp-home .btn,
.wp-home button,
.wp-home input[type="submit"] {
	font-family: var(--wp-font-heading);
	font-size: var(--wp-fs-small);
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: var(--wp-radius);
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.wp-home .btn-primary {
	background-color: var(--wp-accent);
	border: 1px solid var(--wp-accent);
	color: #0e0e0e;
}

.wp-home .btn-primary:hover {
	background-color: var(--wp-accent-hover);
	border-color: var(--wp-accent-hover);
	color: #0e0e0e;
}

/* ---------- 表单 ---------- */

.wp-home input[type="text"],
.wp-home input[type="email"],
.wp-home input[type="password"],
.wp-home input[type="search"],
.wp-home textarea,
.wp-home select {
	background-color: var(--wp-bg-elevated);
	border: 1px solid var(--wp-border);
	color: var(--wp-text);
	border-radius: var(--wp-radius);
}

.wp-home input:focus,
.wp-home textarea:focus,
.wp-home select:focus {
	border-color: var(--wp-accent);
	outline: none;
}

/* ---------- 移动端字号 ---------- */

@media (max-width: 767px) {
	:root {
		--wp-fs-hero: 36px;
		--wp-fs-h1: 28px;
		--wp-fs-h2: 22px;
		--wp-fs-h3: 18px;
		--wp-gutter: 20px;
		--wp-section-gap: 56px;
	}
}
