:root {
	--neo-wine: #4b0e16;
	--neo-wine-deep: #4b0b11;
	--neo-gold: #b58a4b;
	--neo-ivory: #f5f0e6;
}

.neo-footer,
.neo-footer * {
	box-sizing: border-box;
}

.neo-footer {
	background: var(--neo-wine);
	color: var(--neo-ivory);
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 14px;
	letter-spacing: 1px;
}

.neo-footer a {
	color: inherit;
	text-decoration: none;
}

.neo-footer__inner {
	width: 100%;
	max-width: calc(1200px + 120px); /* 內容最大寬度 1200px（加上左右各 60px 內距） */
	margin: 0 auto;
	padding: 0 60px;
}

.neo-page-cta,
.neo-page-cta * {
	box-sizing: border-box;
}

.neo-page-cta {
	min-height: 130px;
	display: flex;
	align-items: center;
	padding: 40px 0;
	background: #4b0e16 var(--neo-page-cta-bg) center / cover no-repeat;
	color: #f5f0e6;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.neo-page-cta__inner {
	width: 100%;
	max-width: calc(1200px + 120px); /* 內容最大寬度 1200px（加上左右各 60px 內距） */
	margin: 0 auto;
	padding: 0 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 120px;
}

.neo-page-cta__copy {
	min-width: 0;
}

.neo-page-cta__copy h2 {
	margin: 0 0 16px;
	color: #f5f0e6;
	font-family: "Noto Serif TC", "Songti TC", serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
}

.neo-page-cta__copy h2:only-child {
	margin-bottom: 0;
}

.neo-page-cta__copy p {
	margin: 0;
	color: rgba(245, 240, 230, .82);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.8;
	letter-spacing: .035em;
}

/* 設計稿深色底按鈕 hover（與「查看所有文章」相同手法）：外框往內縮 4px 轉霧金並帶陰影、文字轉霧金；金色鈕的底色同時淡出 */
.neo-page-cta__button {
	position: relative;
	height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px;
	border: 1px solid transparent;
	border-radius: 99px;
	color: #f5f0e6 !important;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 1px;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color .45s cubic-bezier(.22, 1, .36, 1), color .45s cubic-bezier(.22, 1, .36, 1);
}

.neo-page-cta__button::before {
	position: absolute;
	inset: -1px;
	border: 1px solid #f5f0e6;
	border-radius: inherit;
	box-shadow: 0 2px 4px rgba(75, 14, 22, 0);
	content: "";
	pointer-events: none;
	transition: inset .45s cubic-bezier(.22, 1, .36, 1), border-color .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s cubic-bezier(.22, 1, .36, 1);
}

.neo-page-cta__button:hover,
.neo-page-cta__button:focus-visible {
	background: transparent;
	color: var(--neo-gold) !important;
	outline: 0;
}

.neo-page-cta__button:hover::before,
.neo-page-cta__button:focus-visible::before {
	inset: 3px;
	border-color: var(--neo-gold);
	box-shadow: 0 2px 4px rgba(75, 14, 22, .25);
}

.neo-page-cta__button--gold {
	gap: 8px;
	padding: 0 40px 0 24px;
	background: var(--neo-gold);
	color: #171615 !important;
}

.neo-page-cta__button--gold::before {
	border-color: var(--neo-gold);
}

/* 淺色底用：深色框線與文字，hover 同其他按鈕轉金 */
.neo-page-cta__button--dark {
	color: #171615 !important;
}

.neo-page-cta__button--dark::before {
	border-color: #171615;
}

.neo-page-cta__button--gold svg {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

.neo-page-cta__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}



.neo-footer__main {
	padding: 40px 0 24px;
}

.neo-footer__grid {
	display: flex;
	align-items: flex-start;
	justify-content: space-between; /* 內容限寬 1200px，原 120px 間距會讓導覽溢出 */
	gap: 48px;
}

.neo-footer__identity {
	flex: 0 0 auto;
}

.neo-footer__identity p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.8;
	letter-spacing: 1px;
	white-space: nowrap;
}

.neo-footer__social {
	display: flex;
	gap: 12px;
	margin: 0 0 24px;
}

.neo-footer__social a {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--neo-gold);
	color: var(--neo-wine) !important;
	font-family: Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
}

.neo-footer__social svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.neo-footer__social .neo-footer__social-dot {
	fill: currentColor;
	stroke: none;
}

.neo-footer__social .neo-footer__line {
	font-size: 7px;
	letter-spacing: -.03em;
}

/* 設計稿：Logo 顯示區 104×103，圖檔含透明留白（寬 176）置中 */
.neo-footer__logo {
	display: block;
	width: 176px;
	height: auto;
	margin: -2px 0 -18px -36px;
}

.neo-footer__nav {
	display: grid;
	grid-template-columns: repeat(4, max-content);
	gap: 40px;
	align-content: start;
}

.neo-footer__nav-group h3 {
	margin: 0 0 16px;
	color: var(--neo-gold);
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 1px;
	white-space: nowrap;
}

.neo-footer__nav-group h3 span {
	margin-left: 4px;
	font-family: "Raleway", sans-serif;
	font-size: 13px;
	letter-spacing: 1px;
}

.neo-footer__nav-group p {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	margin: 0;
}

.neo-footer__nav-group a {
	display: inline-block;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 1px;
	white-space: nowrap;
	transition: color .2s ease;
}

.neo-footer__nav-group a:hover,
.neo-footer__nav-group a:focus-visible {
	color: var(--neo-gold);
}

.neo-footer__copyright {
	display: flex;
	align-items: center;
	justify-content: center;
	border-top: 1px solid var(--neo-gold);
	text-align: center;
}

.neo-footer__copyright p {
	margin: 0;
	padding: 24px 60px;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 1px;
}

@media (max-width: 1280px) {
	.neo-page-cta__inner,
	.neo-footer__grid {
		gap: 48px;
	}

	.neo-footer__nav {
		gap: 32px 28px;
	}
}

/* 1101–1350px：左右並排時四欄導覽會超出畫面，改成可縮放的三欄、連結可換行 */
@media (min-width: 1101px) and (max-width: 1350px) {
	.neo-footer__nav {
		flex: 1 1 auto;
		min-width: 0;
		grid-template-columns: repeat(3, minmax(0, auto));
		justify-content: start;
	}

	.neo-footer__nav-group h3 {
		white-space: normal;
	}

	.neo-footer__nav-group p {
		flex-wrap: wrap;
		gap: 8px 12px;
	}
}

@media (max-width: 1100px) {
	.neo-footer__grid {
		flex-direction: column;
	}
}

@media (max-width: 980px) {
	.neo-page-cta__inner,
	.neo-footer__inner {
		padding: 0 32px;
	}

	.neo-page-cta__actions {
		flex-wrap: wrap;
	}

	.neo-footer__nav {
		grid-template-columns: repeat(3, max-content);
	}
}

@media (max-width: 640px) {
	.neo-page-cta {
		min-height: 0;
		padding: 46px 0;
	}

	.neo-page-cta__inner {
		padding: 0 20px;
		align-items: flex-start;
		flex-direction: column;
		gap: 28px;
	}

	.neo-page-cta__button {
		width: 100%;
	}

	.neo-page-cta__actions {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr;
	}

	.neo-page-cta__button--gold,
	.neo-page-cta__button--location,
	.neo-page-cta__button--line,
	.neo-page-cta__button--contact {
		min-width: 0;
	}

	.neo-footer__inner {
		padding: 0 20px;
	}

	.neo-footer__identity p {
		white-space: normal;
	}

	.neo-footer__nav-group p {
		flex-wrap: wrap;
	}

	.neo-footer__main {
		padding-top: 50px;
	}

	.neo-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
	}

	.neo-footer__copyright p {
		font-size: 11px;
		line-height: 1.7;
	}
}

@media (max-width: 390px) {
	.neo-footer__nav {
		grid-template-columns: 1fr;
	}
}

/* 英文版：連結文字較長，欄位改為平分可用寬度、連結可換行，避免頁尾導覽超出畫面 */
html[lang^="en"] .neo-footer__nav {
	flex: 1 1 auto;
	min-width: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[lang^="en"] .neo-footer__nav-group h3 {
	white-space: normal;
}

html[lang^="en"] .neo-footer__nav-group p {
	flex-wrap: wrap;
	gap: 8px 12px;
}

@media (max-width: 980px) {
	html[lang^="en"] .neo-footer__nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	html[lang^="en"] .neo-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 390px) {
	html[lang^="en"] .neo-footer__nav {
		grid-template-columns: 1fr;
	}
}
