/*
Theme Name: Lineme Child
Theme URI: https://lineme.life/
Description: Custom GeneratePress child theme for Lineme.
Author: Lineme
Template: generatepress
Version: 1.0.0
Text Domain: lineme-child
*/

:root {
	--green: #06c755;
	--green-dark: #05a947;
	--green-soft: #e9fff0;
	--ink: #101318;
	--muted: #626b76;
	--line: #e8edf2;
	--surface: #ffffff;
	--warm: #fff7ec;
	--cream: #f8f3ea;
	--shadow: 0 20px 60px rgba(21, 35, 28, 0.14);
	--radius: 8px;
	--container: 1180px;
	--primary: var(--green);
	--primary-hover: var(--green-dark);
	--bg-soft: #f3f4f6;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: #fff;
	font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	line-height: 1.7;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: min(var(--container), calc(100% - 40px));
	margin: 0 auto;
}

.skip-link {
	position: fixed;
	top: -48px;
	left: 16px;
	z-index: 1000;
	padding: 10px 14px;
	border-radius: 6px;
	color: #fff;
	background: var(--ink);
}

.skip-link:focus {
	top: 16px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(16, 19, 24, 0.08);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(18px);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 74px;
}

.brand,
.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: max-content;
}

.brand-logo,
.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.brand-logo {
	object-fit: cover;
}

.brand-mark {
	display: grid;
	place-items: center;
	color: var(--green);
	background: var(--green-soft);
}

.brand strong,
.brand small,
.footer-brand strong,
.footer-brand small {
	display: block;
}

.brand strong,
.footer-brand strong {
	font-size: 18px;
	line-height: 1.1;
}

.brand small,
.footer-brand small {
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
}

.site-nav {
	margin-left: auto;
}

.primary-menu,
.footer-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	position: relative;
	display: block;
	padding: 8px 0;
	color: #26303c;
	font-size: 15px;
	font-weight: 700;
}

.primary-menu a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	content: "";
	background: var(--green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after {
	transform: scaleX(1);
}

.header-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	color: #fff;
	background: var(--green);
	box-shadow: 0 12px 28px rgba(6, 199, 85, 0.26);
	font-weight: 800;
}

.site-footer {
	padding: 48px 0 22px;
	color: #d8e3dc;
	background: #111914;
}

.footer-product-row,
.footer-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.footer-brand strong {
	color: #fff;
}

.footer-brand small,
.site-footer a,
.footer-meta-row {
	color: #b8c5be;
}

.footer-menu {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 24px;
}

.site-footer a:hover {
	color: #fff;
}

.footer-divider {
	margin: 32px 0 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-meta-row {
	font-size: 14px;
}

.footer-meta-row address {
	font-style: normal;
}

.post-index-page {
	min-height: 60vh;
	padding: 40px 0 72px;
	background: #fff;
}

.post-index-container {
	width: min(920px, 92%);
	margin: 0 auto;
}

.breadcrumb {
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 14px;
}

.breadcrumb a:hover {
	color: var(--green-dark);
}

.post-card {
	overflow: hidden;
	border: 1px solid #e5eee8;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(21, 35, 28, 0.09);
}

.single-post-body {
	padding: clamp(24px, 5vw, 56px);
}

.post-index-title {
	margin: 0 0 18px;
	color: var(--ink);
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.2;
}

.single-post-meta {
	margin-bottom: 28px;
	color: var(--muted);
	font-size: 14px;
}

.single-post-meta a,
.single-post-tags a {
	color: var(--green-dark);
}

.single-post-thumb {
	margin: 0 0 32px;
	background: var(--bg-soft);
}

.single-post-thumb img {
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
}

.single-post-content {
	color: #26303c;
	font-size: 17px;
}

.single-post-content > *:first-child {
	margin-top: 0;
}

.single-post-content a {
	color: var(--green-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.single-post-content img {
	height: auto;
	border-radius: var(--radius);
}

.single-post-tags {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

@media (max-width: 820px) {
	.header-inner,
	.footer-product-row,
	.footer-meta-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.header-inner {
		padding: 14px 0;
	}

	.site-nav {
		width: 100%;
		margin-left: 0;
	}

	.primary-menu,
	.footer-menu {
		justify-content: flex-start;
		gap: 10px 18px;
		flex-wrap: wrap;
	}

	.header-cta {
		display: none;
	}

	.footer-meta-row address {
		max-width: 100%;
	}
}
