.footer.two-cr-footer--modern {
	--two-cr-navy: #31445a;
	--two-cr-navy-soft: #40566e;
	--two-cr-green: #a7bf3d;
	--two-cr-green-dark: #71851e;
	--two-cr-cream: #f5f7e9;
	--two-cr-orange: #f4a63f;
	background: var(--two-cr-navy);
	color: #fff;
	overflow: hidden;
}

/* Site-wide floating back-to-top control. The theme still owns when it appears. */
.return-to-top.two-cr-sticky-top {
	position: fixed !important;
	right: max(18px, env(safe-area-inset-right)) !important;
	bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px)) !important;
	z-index: 999 !important;
	width: 54px !important;
	height: 54px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 18px !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.return-to-top.two-cr-sticky-top .return-to-top-wrapper {
	position: relative;
	display: grid !important;
	place-items: center;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: inherit;
	background: linear-gradient(145deg, #526981 0%, #31445a 78%);
	box-shadow: 0 12px 30px rgba(21, 34, 53, .28), inset 0 1px 0 rgba(255, 255, 255, .13);
	color: #fff;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.return-to-top.two-cr-sticky-top .return-to-top-wrapper::after {
	content: '';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f4a63f;
	box-shadow: 0 0 0 3px rgba(244, 166, 63, .14);
}

.return-to-top.two-cr-sticky-top:hover .return-to-top-wrapper,
.return-to-top.two-cr-sticky-top:focus-visible .return-to-top-wrapper {
	transform: translateY(-3px);
	background: linear-gradient(145deg, #5d748c 0%, #3c5269 78%);
	box-shadow: 0 16px 36px rgba(21, 34, 53, .34), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.return-to-top.two-cr-sticky-top:focus-visible {
	outline: 3px solid rgba(167, 191, 61, .85);
	outline-offset: 4px;
}

.return-to-top.two-cr-sticky-top .two-cr-sticky-top__icon {
	display: block;
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.return-to-top.two-cr-sticky-top .two-cr-sticky-top__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.return-to-top.two-cr-sticky-top img,
.return-to-top.two-cr-sticky-top noscript {
	display: none !important;
}

.footer.two-cr-footer--modern .foot_top {
	padding: 30px 20px;
	background:
		radial-gradient(circle at 86% 18%, rgba(244, 166, 63, .18) 0 6px, transparent 7px),
		linear-gradient(135deg, #f8faef 0%, #eef3dc 100%);
}

.footer.two-cr-footer--modern .foot_top .wrap,
.footer.two-cr-footer--modern .foot_btm .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	width: min(1180px, 100%);
	margin: 0 auto;
	box-sizing: border-box;
}

.footer .foot_share.two-cr-footer-social--ready {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 27px;
}

.footer .foot_share.two-cr-footer-social--ready::before {
	content: 'CONNECT · 2CR  /  關注我們';
	position: absolute;
	top: 0;
	left: 0;
	color: var(--two-cr-green-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .15em;
}

.footer .foot_share.two-cr-footer-social--ready > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 20px;
	gap: 10px;
	box-sizing: border-box;
	border: 1px solid rgba(113, 133, 30, .20);
	border-radius: 999px;
	background: rgba(255, 255, 255, .82);
	box-shadow: 0 8px 22px rgba(32, 47, 18, .08);
	color: var(--two-cr-navy);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.footer .foot_share.two-cr-footer-social--ready > a:hover,
.footer .foot_share.two-cr-footer-social--ready > a:focus-visible {
	transform: translateY(-2px);
	border-color: var(--two-cr-green);
	background: #fff;
	box-shadow: 0 12px 28px rgba(32, 47, 18, .14);
}

.footer .foot_share.two-cr-footer-social--ready > a:focus-visible {
	outline: 3px solid rgba(244, 166, 63, .7);
	outline-offset: 3px;
}

.footer .foot_share.two-cr-footer-social--ready > a > img,
.footer .foot_share.two-cr-footer-social--ready .two-cr-social-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.footer .foot_share.two-cr-footer-social--ready .two-cr-social-icon {
	display: inline-grid;
	flex: 0 0 24px;
	place-items: center;
	color: var(--two-cr-navy);
}

.footer .foot_share.two-cr-footer-social--ready .two-cr-social-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.footer .foot_share.two-cr-footer-social--ready .home_code {
	display: none !important;
}

.footer.two-cr-footer--modern .foot_top .top.two-cr-back-to-top {
	float: none;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid rgba(21, 34, 53, .12);
	border-radius: 999px;
	background: var(--two-cr-navy);
	box-shadow: 0 8px 22px rgba(21, 34, 53, .16);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .05em;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.footer.two-cr-footer--modern .foot_top .top.two-cr-back-to-top:hover,
.footer.two-cr-footer--modern .foot_top .top.two-cr-back-to-top:focus-visible {
	transform: translateY(-2px);
	background: var(--two-cr-navy-soft);
	box-shadow: 0 12px 28px rgba(21, 34, 53, .22);
}

.footer.two-cr-footer--modern .two-cr-back-to-top__icon {
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.footer.two-cr-footer--modern .foot_btm {
	padding: 30px 20px 34px;
	background: linear-gradient(135deg, var(--two-cr-navy) 0%, var(--two-cr-navy-soft) 100%);
}

.footer.two-cr-footer--modern .foot_left,
.footer.two-cr-footer--modern .foot_nav {
	float: none;
}

.footer.two-cr-footer--modern .foot_left {
	display: flex;
	align-items: center;
	gap: 18px;
}

.footer.two-cr-footer--modern .foot_logo img {
	display: block;
	max-width: 150px;
	height: auto;
}

.footer.two-cr-footer--modern .copy {
	max-width: 390px;
	color: rgba(255, 255, 255, .68);
	font-size: 13px;
	line-height: 1.65;
}

.footer.two-cr-footer--modern .foot_nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 18px;
}

.footer.two-cr-footer--modern .foot_nav a {
	position: relative;
	color: rgba(255, 255, 255, .82);
	font-size: 14px;
	text-decoration: none;
}

.footer.two-cr-footer--modern .foot_nav a:hover,
.footer.two-cr-footer--modern .foot_nav a:focus-visible {
	color: #fff;
}

.footer.two-cr-footer--modern .foot_nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -5px;
	height: 2px;
	background: var(--two-cr-orange);
	transition: right .2s ease;
}

.footer.two-cr-footer--modern .foot_nav a:hover::after,
.footer.two-cr-footer--modern .foot_nav a:focus-visible::after {
	right: 0;
}

.two-cr-wechat-modal[hidden] {
	display: none !important;
}

.two-cr-wechat-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.two-cr-wechat-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 25, 39, .76);
	backdrop-filter: blur(8px);
}

.two-cr-wechat-modal__panel {
	position: relative;
	z-index: 1;
	width: min(430px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	box-sizing: border-box;
	padding: 30px;
	border: 1px solid #dce4c4;
	border-radius: 28px;
	background: linear-gradient(180deg, #fff 0%, #fbfcf6 100%);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	color: #31445a;
	text-align: center;
}

.two-cr-wechat-modal__panel h2 {
	margin: 0 42px 20px;
	font-size: 24px;
	line-height: 1.25;
}

.two-cr-wechat-modal__panel h2::after {
	content: '';
	display: block;
	width: 46px;
	height: 4px;
	margin: 13px auto 0;
	border-radius: 999px;
	background: #a7bf3d;
}

.two-cr-wechat-modal__qr {
	display: block;
	width: 100%;
	max-width: 330px;
	height: auto;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #e4e9d2;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(52, 66, 11, .09);
}

.two-cr-wechat-modal__panel p {
	margin: 16px 0 0;
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	background: #f1f5e4;
	color: #596925;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

.two-cr-wechat-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5e4;
	color: #34420b;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.two-cr-wechat-modal__close:focus-visible {
	outline: 3px solid #f5a742;
	outline-offset: 2px;
}

body.two-cr-wechat-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.return-to-top.two-cr-sticky-top {
		right: max(14px, env(safe-area-inset-right)) !important;
		bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px)) !important;
		width: 50px !important;
		height: 50px !important;
		border-radius: 16px !important;
	}

	.return-to-top.two-cr-sticky-top .return-to-top-wrapper::after {
		top: 7px;
		right: 7px;
		width: 6px;
		height: 6px;
	}

	.footer.two-cr-footer--modern .foot_top,
	.footer.two-cr-footer--modern .foot_btm {
		padding-left: 16px;
		padding-right: 16px;
	}

	.footer.two-cr-footer--modern .foot_top {
		padding-top: 22px;
		padding-bottom: 22px;
	}

	.footer.two-cr-footer--modern .foot_btm .wrap,
	.footer.two-cr-footer--modern .foot_left {
		flex-direction: column;
		align-items: stretch;
	}

	.footer.two-cr-footer--modern .foot_top .wrap {
		position: relative;
		display: block;
	}

	.footer .foot_share.two-cr-footer-social--ready {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
		gap: 4px;
		padding: 35px 5px 5px;
		border: 1px solid rgba(113, 133, 30, .16);
		border-radius: 20px;
		background: rgba(255, 255, 255, .72);
		box-shadow: 0 10px 28px rgba(32, 47, 18, .09);
		box-sizing: border-box;
	}

	.footer .foot_share.two-cr-footer-social--ready::before {
		top: 11px;
		left: 14px;
		font-size: 10px;
		letter-spacing: .12em;
	}

	.footer .foot_share.two-cr-footer-social--ready > a {
		float: none;
		width: 100%;
		min-width: 0;
		min-height: 52px;
		padding: 7px 3px;
		margin: 0;
		gap: 5px;
		border: 0;
		border-radius: 14px;
		background: transparent;
		box-shadow: none;
		font-size: 10px;
		letter-spacing: .025em;
	}

	.footer .foot_share.two-cr-footer-social--ready > a + a {
		border-left: 1px solid rgba(113, 133, 30, .13);
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
	}

	.footer .foot_share.two-cr-footer-social--ready > a > img,
	.footer .foot_share.two-cr-footer-social--ready .two-cr-social-icon {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.footer.two-cr-footer--modern .foot_top .top.two-cr-back-to-top {
		display: flex;
		width: max-content;
		min-height: 44px;
		margin: 14px 0 0 auto;
		padding: 0 15px;
	}

	.footer.two-cr-footer--modern .foot_left {
		gap: 12px;
	}

	.footer.two-cr-footer--modern .copy {
		max-width: none;
	}

	.footer.two-cr-footer--modern .foot_nav {
		justify-content: flex-start;
		gap: 12px 20px;
	}

	.two-cr-wechat-modal {
		padding: 14px;
	}

	.two-cr-wechat-modal__panel {
		max-height: calc(100vh - 28px);
		padding: 22px 18px 20px;
		border-radius: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.return-to-top.two-cr-sticky-top .return-to-top-wrapper,
	.footer.two-cr-footer--modern *,
	.two-cr-wechat-modal * {
		transition: none !important;
	}
}
