/* 首頁與關於我們頁的區塊 */

.ks-landing .ks-main {
	padding-bottom: clamp(64px, 8vw, 120px);
}

.ks-section {
	margin-top: clamp(64px, 8vw, 120px);
}

.ks-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.ks-section__title {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	font-weight: 600;
}

.ks-section__eyebrow {
	margin: 0;
	color: var(--ks-muted);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ks-img-placeholder {
	display: block;
	background: var(--ks-surface);
}

/* 放在照片上的按鈕：深淺色模式都是白底黑字 */
.ks-btn--light,
.ks-btn--light:hover {
	background: #fff;
	color: #000;
}

.ks-btn--light:hover {
	background: #e6e6e6;
}

.ks-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	text-decoration: none;
}

.ks-arrow-link:hover {
	opacity: 0.7;
}

/* 照片卡：圖片鋪滿，底部漸層，白字 */

.ks-overlay-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border-radius: var(--ks-radius);
	background: var(--ks-surface);
	color: #fff;
}

.ks-overlay-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}

.ks-overlay-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 60%);
	pointer-events: none;
}

.ks-overlay-card__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.ks-overlay-card:has(.ks-overlay-card__link):hover .ks-overlay-card__image {
	transform: scale(1.03);
}

.ks-overlay-card__body {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 640px;
	padding: clamp(24px, 3.5vw, 48px);
	pointer-events: none;
}

.ks-overlay-card__body a,
.ks-overlay-card__body button {
	pointer-events: auto;
}

.ks-overlay-card__body .ks-btn {
	margin-top: 16px;
}

.ks-overlay-card__eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.9;
}

.ks-overlay-card__title {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 3.5rem);
	line-height: 1.15;
	font-weight: 600;
}

/* 主視覺輪播：一次一張滿版 */

.ks-hero {
	position: relative;
}

.ks-hero__track {
	display: grid;
	grid-auto-columns: 100%;
	grid-auto-flow: column;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ks-hero__track::-webkit-scrollbar {
	display: none;
}

.ks-hero__slide {
	height: clamp(520px, min(calc(100vh - 40px), 62vw), 1000px);
	border-radius: 0;
	scroll-snap-align: start;
	/* 一次滑動只前進一張，不會甩過好幾張 */
	scroll-snap-stop: always;
}

/* 文字留在 header 下方，header 透明疊在上面時才不會擋到 */
.ks-hero__slide .ks-overlay-card__body {
	padding-top: calc(var(--ks-header-height) + 24px);
	padding-left: var(--ks-gutter);
}

.ks-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 4.4vw, 4.5rem);
	font-weight: 600;
	line-height: 1.1;
}

.ks-hero__dots {
	position: absolute;
	right: var(--ks-gutter);
	bottom: 28px;
	z-index: 4;
	display: flex;
	gap: 10px;
}

/* 圓點一律實心：其他頁半透明，目前這頁不透明並拉長成膠囊形 */
.ks-hero__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #fff;
	opacity: 0.45;
	cursor: pointer;
	transition: opacity 0.2s, width 0.3s, height 0.3s;
}

.ks-hero__dots button[aria-current="true"] {
	width: 28px;
}

.ks-hero__dots button:hover,
.ks-hero__dots button[aria-current="true"] {
	opacity: 1;
}

@media (max-width: 989px) {
	.ks-hero__track {
		grid-auto-columns: 100%;
	}

	.ks-hero__slide {
		height: min(140vw, calc(100svh - 40px));
		min-height: 480px;
	}

	/* 手機版圓點直排在右下角，目前這頁往下拉長 */
	.ks-hero__dots {
		flex-direction: column;
		bottom: 32px;
	}

	.ks-hero__dots button[aria-current="true"] {
		width: 10px;
		height: 28px;
	}
}

/* 商品卡片列：一列 4 個，平板與手機 2 個 */

.ks-products-section .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(40px, 5vw, 72px) 30px;
	margin: 0;
}

.ks-products-section .woocommerce ul.products::before,
.ks-products-section .woocommerce ul.products::after {
	display: none;
}

.ks-products-section .woocommerce ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
}

@media (max-width: 989px) {
	.ks-products-section .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 依分類選購：一列 4 張，滑過換第二張圖 */

.ks-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ks-category-card a {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--ks-radius);
	background: var(--ks-surface);
	color: #fff;
	text-decoration: none;
}

.ks-category-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 55%);
}

.ks-category-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.4s, transform 0.6s;
}

.ks-category-card__image--hover {
	opacity: 0;
}

.ks-category-card a:hover .ks-category-card__image--hover {
	opacity: 1;
}

.ks-category-card a:hover .ks-category-card__image {
	transform: scale(1.03);
}

.ks-category-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: clamp(18px, 2.4vw, 32px);
}

.ks-category-card__title {
	font-size: clamp(1.5rem, 2.6vw, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
}

/* 說明：滑過才展開（高度用 grid 0fr → 1fr 做動畫）；沒有滑過的裝置（手機）不顯示 */
.ks-category-card__text {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	font-size: 1rem;
	line-height: 1.6;
	transition: grid-template-rows 0.35s, opacity 0.35s, margin-top 0.35s;
}

.ks-category-card__text > span {
	overflow: hidden;
}

@media (hover: hover) {
	.ks-category-card a:hover .ks-category-card__text,
	.ks-category-card a:focus-visible .ks-category-card__text {
		grid-template-rows: 1fr;
		margin-top: 8px;
		opacity: 0.9;
	}

	.ks-category-card a:hover .ks-category-card__media::after {
		background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 70%);
	}
}

@media (max-width: 989px) {
	.ks-categories__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 精選分頁：分頁標題、大圖，右側疊兩件商品 */

.ks-feature-tabs__tabs {
	display: flex;
	gap: 40px;
	margin: 16px 0 32px;
	overflow-x: auto;
	scrollbar-width: none;
}

.ks-feature-tabs__tabs::-webkit-scrollbar {
	display: none;
}

.ks-feature-tabs__tabs button {
	flex: none;
	padding: 0 0 8px;
	border: 0;
	/* 底線畫在背景上，捲動容器才不會把它切掉 */
	background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 3px;
	color: var(--ks-muted);
	font: inherit;
	font-size: clamp(1.5rem, 2.6vw, 2.25rem);
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s, background-size 0.3s;
}

.ks-feature-tabs__tabs button:hover,
.ks-feature-tabs__tabs button[aria-selected="true"] {
	color: var(--ks-text);
}

.ks-feature-tabs__tabs button:hover,
.ks-feature-tabs__tabs button[aria-selected="true"] {
	background-size: 100% 3px;
}

.ks-feature-tabs__panel {
	position: relative;
	overflow: hidden;
	border-radius: var(--ks-radius);
	background: var(--ks-surface);
}

.ks-feature-tabs__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.ks-feature-tabs__products {
	position: absolute;
	top: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(400px, 40%);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ks-feature-tabs__more {
	position: absolute;
	bottom: 24px;
	left: 24px;
}

.ks-mini-card {
	position: relative;
	display: flex;
	gap: 16px;
	padding: 12px;
	border-radius: var(--ks-radius);
	background: var(--ks-elevated);
	color: var(--ks-text);
}

.ks-mini-card__media {
	flex: none;
	width: 88px;
	overflow: hidden;
	border-radius: calc(var(--ks-radius) - 4px);
	background: var(--ks-surface);
}

.ks-mini-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.ks-mini-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 4px 0;
}

.ks-mini-card__brand {
	color: var(--ks-muted);
	font-size: 0.8125rem;
}

.ks-mini-card__title {
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

/* 整張卡片可點 */
.ks-mini-card__title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ks-mini-card__price {
	margin-top: auto;
	font-weight: 600;
}

@media (max-width: 989px) {
	.ks-feature-tabs__image {
		aspect-ratio: 4 / 5;
	}

	.ks-feature-tabs__products {
		top: auto;
		right: 16px;
		bottom: 83.5px;
		left: 16px;
		width: auto;
	}

	.ks-feature-tabs__more {
		right: 16px;
		bottom: 16px;
		left: 16px;
	}
}

/* 圖文：一張或兩張交錯的圖，旁邊是文字 */

.ks-image-text__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 112px);
}

.ks-image-text--reverse .ks-image-text__media {
	order: 2;
}

.ks-image-text__media {
	display: grid;
	gap: 8px;
}

.ks-image-text__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: var(--ks-radius);
	object-fit: cover;
}

.ks-image-text__media--pair {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

.ks-image-text__media--pair .ks-image-text__image {
	aspect-ratio: 3 / 4;
}

.ks-image-text__media--pair .ks-image-text__image:last-child {
	margin-top: 22%;
}

.ks-image-text__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 600px;
}

.ks-image-text__text {
	color: var(--ks-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.ks-image-text__text p {
	margin: 0 0 16px;
}

.ks-image-text__text p:last-child {
	margin-bottom: 0;
}

.ks-image-text__body .ks-btn {
	margin-top: 8px;
}

@media (max-width: 989px) {
	.ks-image-text__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ks-image-text--reverse .ks-image-text__media {
		order: 0;
	}
}

/* 雙圖橫幅 */

/* 雙圖橫幅、品牌故事橫幅：跟主視覺一樣滿版，不留左右邊距 */
.ks-split .ks-container,
.ks-banner .ks-container {
	padding: 0;
}

.ks-split__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ks-split__item,
.ks-banner__card {
	border-radius: 0;
}

/* 高度用寬度算（半版寬 × 5/4），不用 aspect-ratio＋max-height，否則高度被限制時寬度會縮、兩張之間露出空隙 */
.ks-split__item {
	height: min(62.5vw, 100vh);
}

.ks-split__item .ks-overlay-card__body,
.ks-banner__card .ks-overlay-card__body {
	padding-left: var(--ks-gutter);
}

@media (max-width: 767px) {
	.ks-split__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ks-split__item {
		height: min(125vw, 100svh);
	}
}

/* 精選系列：左邊文字與系列名稱，右邊圖片輪播 */

.ks-collection__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: stretch;
	gap: clamp(32px, 6vw, 112px);
}

.ks-collection__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.ks-collection__text {
	color: var(--ks-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.ks-collection__text p {
	margin: 0;
}

/* 系列名稱靠左欄底部，跟右邊圖片底部對齊 */
.ks-collection__tabs {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	margin-top: auto;
	padding-top: 32px;
}

.ks-collection__tab {
	display: flex;
	flex-direction: column;
	gap: 0;
	/* 上下間距對稱：標題到進度條、進度條到下一個標題都是 24px（展開、收起都一樣） */
	padding: 24px 0 0;
	border: 0;
	background: none;
	color: var(--ks-muted);
	font: inherit;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	transition: color 0.15s;
}

.ks-collection__tab:first-child {
	padding-top: 0;
}

.ks-collection__tab:hover,
.ks-collection__tab[aria-pressed="true"] {
	color: var(--ks-text);
}

.ks-collection__progress {
	position: relative;
	display: block;
	width: 100%;
	height: 3px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--ks-line);
}

.ks-collection__progress::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 0;
	background: currentColor;
}

.ks-collection__tab[aria-pressed="true"] .ks-collection__progress::after {
	animation: ks-progress var(--ks-duration, 5000ms) linear forwards;
}

/* 使用者點選後停在這一張，進度條直接填滿 */
/* 目前的系列名稱下方展開說明文字 */
.ks-collection__desc {
	display: grid;
	grid-template-rows: 0fr;
	color: var(--ks-muted);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	transition: grid-template-rows 0.35s;
}

.ks-collection__desc > span {
	overflow: hidden;
}

/* 說明跟標題之間的距離放在內層，收起時一起收掉；說明到進度條的距離跟收起時標題到進度條一樣 */
.ks-collection__desc > span > span {
	display: block;
	padding-top: 10px;
}

.ks-collection__progress {
	margin-top: 24px;
}

.ks-collection__tab[aria-pressed="true"] .ks-collection__desc {
	grid-template-rows: 1fr;
}

@keyframes ks-progress {
	to {
		width: 100%;
	}
}

.ks-collection__slides {
	position: relative;
	display: grid;
	aspect-ratio: 1;
}

.ks-collection__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s, visibility 0.6s;
}

.ks-collection__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.ks-collection__info {
	position: relative;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: clamp(16px, 2.4vw, 32px);
	pointer-events: none;
}

.ks-collection__info a {
	pointer-events: auto;
}

.ks-collection__name {
	padding: 10px 16px;
	border-radius: var(--ks-radius);
	background: rgba(0, 0, 0, 0.45);
	font-weight: 600;
}

@media (max-width: 989px) {
	.ks-collection__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ks-collection__slides {
		order: 2;
	}
}


/* 滿版影片／圖片橫幅（品牌故事、關於我們主視覺） */

.ks-banner__card {
	aspect-ratio: 21 / 9;
	min-height: 440px;
}

.ks-banner__title {
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	line-height: 1.1;
}

@media (max-width: 767px) {
	.ks-banner__card {
		aspect-ratio: 4 / 5;
		min-height: 0;
	}
}

/* 頁面開頭的滿版主視覺（關於我們）：跟首頁輪播一樣高，header 透明疊在上面 */
.ks-banner--hero {
	margin-top: 0;
}

.ks-banner--hero .ks-banner__card {
	aspect-ratio: auto;
	height: clamp(520px, min(calc(100vh - 40px), 62vw), 1000px);
}

.ks-banner--hero .ks-overlay-card__body {
	padding-top: calc(var(--ks-header-height) + 24px);
}

@media (max-width: 767px) {
	.ks-banner--hero .ks-banner__card {
		height: min(140vw, calc(100svh - 40px));
		min-height: 480px;
	}
}

/* 常見問題：左邊標題，右邊手風琴 */

.ks-home-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: clamp(32px, 6vw, 112px);
}

.ks-home-faq__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.ks-home-faq__list {
	border-top: var(--ks-bw) solid var(--ks-line);
}

.ks-qa {
	border-bottom: var(--ks-bw) solid var(--ks-line);
}

.ks-qa summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
	font-size: 1.125rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.ks-qa summary::-webkit-details-marker {
	display: none;
}

.ks-qa summary svg {
	flex: none;
	transition: transform 0.2s;
}

.ks-qa[open] summary svg {
	transform: rotate(180deg);
}

.ks-qa__body {
	padding-bottom: 22px;
	color: var(--ks-muted);
	line-height: 1.7;
}

.ks-qa__body p {
	margin: 0 0 12px;
}

.ks-qa__body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 989px) {
	.ks-home-faq__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 聯絡橫幅：電腦版文字疊在寬圖左側，手機圖在上、文字在下 */

.ks-contact-banner__card {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 360px;
	overflow: hidden;
	border-radius: var(--ks-radius);
	background: var(--ks-surface);
	color: #fff;
}

.ks-contact-banner__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ks-contact-banner__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 70%);
}

.ks-contact-banner__body {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 16px;
	max-width: 560px;
	padding: clamp(28px, 4vw, 56px);
}

.ks-contact-banner__title {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	font-weight: 600;
}

.ks-contact-banner__info p {
	margin: 0 0 20px;
	opacity: 0.9;
}

.ks-contact-banner .ks-btn {
	background: #fff;
	color: #000;
}

.ks-contact-banner .ks-btn:hover {
	background: #e6e6e6;
}

@media (max-width: 767px) {
	.ks-contact-banner__card {
		display: block;
		min-height: 0;
		color: var(--ks-text);
	}

	.ks-contact-banner__card::before {
		display: none;
	}

	.ks-contact-banner__image {
		position: static;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.ks-contact-banner__info p {
		color: var(--ks-muted);
		opacity: 1;
	}

	.ks-contact-banner .ks-btn {
		display: flex;
		width: 100%;
		background: var(--ks-btn);
		color: var(--ks-btn-text);
	}

	.ks-contact-banner .ks-btn:hover {
		background: var(--ks-btn-hover);
	}
}

/* 服務保證、為什麼選擇我們：欄位之間有分隔線 */

.ks-benefits__grid,
.ks-why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ks-why__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 40px;
}

.ks-benefit {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 32px;
	border-left: var(--ks-bw) solid var(--ks-line);
}

.ks-benefit:first-child {
	padding-left: 0;
	border-left: 0;
}

.ks-benefit__title {
	margin: 12px 0 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.ks-benefit__text {
	margin: 0;
	color: var(--ks-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.ks-benefit .ks-arrow-link {
	margin-top: 4px;
}

@media (max-width: 989px) {
	.ks-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 0;
	}

	.ks-why__grid .ks-benefit:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 767px) {
	.ks-benefits__grid,
	.ks-why__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ks-benefit,
	.ks-why__grid .ks-benefit:nth-child(odd) {
		padding: 28px 0;
		border-top: var(--ks-bw) solid var(--ks-line);
		border-left: 0;
	}

	.ks-benefit:first-child,
	.ks-why__grid .ks-benefit:first-child {
		padding-top: 0;
		border-top: 0;
	}
}

/* 關於我們：創辦人的話 */

.ks-note__card {
	align-items: flex-start;
	min-height: min(760px, 44vw);
}

.ks-note__card::before {
	background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15) 75%);
}

.ks-note__body {
	position: relative;
	z-index: 3;
	max-width: 620px;
	padding: clamp(28px, 4.5vw, 64px);
}

.ks-note__title {
	margin: 0 0 20px;
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	font-weight: 600;
}

.ks-note__text {
	line-height: 1.7;
	opacity: 0.92;
}

.ks-note__name {
	margin: 20px 0 0;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.ks-note__signature {
	display: block;
	width: 180px;
	height: auto;
	margin-top: 12px;
	filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
	.ks-note__card {
		min-height: 560px;
	}

	.ks-note__card::before {
		background: rgba(0, 0, 0, 0.5);
	}
}

.ks-about__content,
.ks-landing-content .ks-entry__content {
	max-width: 820px;
}

/* 關於我們：電子報 */

.ks-join__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 112px);
}

.ks-join__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: var(--ks-radius);
	object-fit: cover;
}

.ks-join__body {
	display: grid;
	gap: 24px;
	max-width: 600px;
}

.ks-join__title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	font-weight: 600;
	line-height: 1.3;
}

@media (max-width: 767px) {
	.ks-join__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 文章專欄列：間距跟其他區塊一致 */
.ks-home-blog .ks-row {
	margin-top: clamp(64px, 8vw, 120px);
}

.ks-home-blog .ks-row__title {
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	font-weight: 600;
}

/* 示範內容的核心區塊版本（inc/demo-blocks.php）：群組、圖片、按鈕的外框對齊上面的版面 */

figure.wp-block-image[class*="ks-"],
figure.wp-block-video[class*="ks-"] {
	display: block;
	margin: 0;
	overflow: hidden;
}

figure.wp-block-image[class*="ks-"] img,
figure.wp-block-video[class*="ks-"] video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

figure.ks-image-text__image,
figure.ks-join__image {
	height: auto;
}

figure.ks-note__signature {
	height: auto;
}

figure.ks-note__signature img {
	height: auto;
	object-fit: contain;
}

.wp-block-group.ks-overlay-card__body > .wp-block-buttons,
.ks-hero__slide .ks-overlay-card__body > .wp-block-buttons {
	margin-top: 16px;
}

.wp-block-group.ks-image-text__body > .wp-block-buttons {
	margin-top: 8px;
}

.ks-overlay-card__body .wp-block-buttons .ks-btn,
.ks-image-text__body .wp-block-buttons .ks-btn {
	margin-top: 0;
}

.ks-overlay-card:has(.wp-block-button__link) {
	cursor: pointer;
}

.ks-overlay-card:has(.wp-block-button__link):hover .ks-overlay-card__image {
	transform: scale(1.03);
}

.ks-benefit__icon {
	flex: none;
}

p.ks-arrow-link {
	margin: 4px 0 0;
}

p.ks-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
}

.ks-contact-banner__info .wp-block-buttons {
	display: block;
}

@media (max-width: 767px) {
	.ks-contact-banner .wp-block-button {
		width: 100%;
	}
}

/* 主視覺輪播區塊（inc/slider-block.php）：一次一張滿版，遮罩深淺可調（--ks-overlay，0–0.9） */
.ks-hero--slider .ks-hero__track {
	grid-auto-columns: 100%;
}

.ks-hero__slide::before {
	background: linear-gradient(to top, rgba(0, 0, 0, min(0.9, calc(var(--ks-overlay, 0.3) + 0.3))), rgba(0, 0, 0, var(--ks-overlay, 0.3)) 70%);
}

.ks-hero__slide .ks-overlay-card__body {
	max-width: 70%;
}

.ks-hero__slide .ks-overlay-card__body > * {
	margin: 0;
}

@media (max-width: 767px) {
	.ks-hero__slide .ks-overlay-card__body {
		max-width: none;
	}
}

/* 為什麼選擇我們：字大一點 */
.ks-why .ks-benefit__title {
	font-size: clamp(1.5rem, 2vw, 1.875rem);
}

.ks-why .ks-benefit__text {
	font-size: 1.1875rem;
}

/* 圖片對齊（編輯器的焦點選擇器 → --ks-focal） */
figure.wp-block-image[class*="ks-"] img {
	object-fit: var(--ks-fit, cover);
	object-position: var(--ks-focal, 50% 50%);
}

/* 幻燈片的說明文字 */
.ks-hero__text {
	max-width: 560px;
	margin: 0;
	font-size: clamp(1rem, 1.3vw, 1.1875rem);
	line-height: 1.6;
	opacity: 0.9;
}

/* 輪播可以用滑鼠拖曳 */
@media (hover: hover) and (pointer: fine) {
	[data-ks-slider] .ks-hero__track {
		cursor: grab;
	}

	[data-ks-slider].is-dragging .ks-hero__track {
		cursor: grabbing;
		user-select: none;
	}
}

/* 雙圖橫幅的說明：滑過卡片才展開（高度用 grid 0fr → 1fr 做動畫）；手機沒有滑過，直接顯示 */
.ks-split__item .ks-overlay-card__text {
	max-width: 520px;
	margin: 0;
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	line-height: 1.6;
	opacity: 0.9;
}

@media (hover: hover) {
	.ks-split__item .ks-overlay-card__text {
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height 0.4s, opacity 0.3s, margin 0.3s;
	}

	.ks-split__item:hover .ks-overlay-card__text,
	.ks-split__item:focus-within .ks-overlay-card__text {
		max-height: 8em;
		opacity: 0.9;
	}

	/* 還沒展開時不要佔 gap */
	.ks-split__item:not(:hover):not(:focus-within) .ks-overlay-card__text {
		margin-top: -16px;
	}
}
