/* =========================================================================
   官網樣式
   深色的場景主視覺 + 亮色的內容區，導覽列與頁尾全站共用
   ========================================================================= */

body.site {
	margin: 0;
	background: var(--frost);
	color: var(--ink);
}

/* =========================================================================
   導覽列
   ========================================================================= */

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: var(--s5);
	padding: 14px clamp(16px, 4vw, 40px);
	color: #eaf3f0;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-nav.solid {
	background: rgba(9, 32, 33, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-brand {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 16px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.3;
}

.nav-brand span {
	display: block;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.14em;
	color: #9ec6bb;
}

.nav-links {
	display: flex;
	gap: clamp(10px, 2vw, 26px);
	margin-left: auto;
	align-items: center;
}

.nav-links a {
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	opacity: 0.82;
	padding: 6px 2px;
	border-bottom: 1px solid transparent;
	white-space: nowrap;
}

.nav-links a:hover {
	opacity: 1;
}

.nav-links a.on {
	opacity: 1;
	border-bottom-color: var(--kiln-bright);
}

.nav-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	opacity: 0.82;
	padding: 6px 2px;
	white-space: nowrap;
}

.nav-cart:hover {
	opacity: 1;
}

.nav-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--kiln-bright);
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--kiln-bright);
	color: var(--ink) !important;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	opacity: 1 !important;
	border: 0 !important;
	white-space: nowrap;
}

.nav-cta:hover {
	background: #f2b234;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	color: inherit;
	border-radius: 8px;
	padding: 7px 11px;
	font-size: 15px;
	cursor: pointer;
}

@media (max-width: 860px) {
	.nav-toggle {
		display: block;
	}

	.nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		background: rgba(9, 32, 33, 0.97);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		padding: 8px 0 14px;
		display: none;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-links a {
		padding: 13px clamp(16px, 4vw, 40px);
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}

	.nav-links a.on {
		border-bottom-color: rgba(255, 255, 255, 0.07);
		color: var(--kiln-bright);
	}

	.nav-cta {
		margin: 12px clamp(16px, 4vw, 40px) 0;
		justify-content: center;
	}
}

/* =========================================================================
   主視覺
   ========================================================================= */

.site-hero {
	position: relative;
	min-height: 78vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #07161a;
	color: #eaf3f0;
}

.site-hero.tall {
	min-height: 92vh;
}

.hero-scene {
	position: absolute;
	inset: 0;
}

.site-hero .vignette {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(3, 14, 16, 0.62) 0%, transparent 34%, rgba(3, 14, 16, 0.78) 100%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 4;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px) clamp(48px, 8vh, 96px);
}

.hero-kicker {
	font-size: 12px;
	letter-spacing: 0.3em;
	color: #9ec6bb;
	margin-bottom: 18px;
}

.hero-title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: clamp(1.9rem, 5.4vw, 3.6rem);
	line-height: 1.32;
	color: #fff;
	margin: 0 0 20px;
	max-width: 17em;
	white-space: pre-line;
}

.hero-sub {
	color: #c3ded6;
	font-size: clamp(0.95rem, 1.6vw, 1.15rem);
	line-height: 1.9;
	max-width: 32em;
	margin: 0 0 32px;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-ctas a {
	display: inline-flex;
	align-items: center;
	padding: 13px 26px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 15px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	color: #eaf3f0;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.hero-ctas a:hover {
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-1px);
}

.hero-ctas a.primary {
	background: var(--kiln-bright);
	border-color: var(--kiln-bright);
	color: var(--ink);
	font-weight: 500;
}

.hero-ctas a.primary:hover {
	background: #f2b234;
}

/* =========================================================================
   內容區塊
   ========================================================================= */

.sec {
	padding: clamp(56px, 9vw, 108px) clamp(16px, 4vw, 40px);
}

.sec.tint {
	background: var(--glass-mist);
}

.sec.dark {
	background: var(--glass-deep);
	color: #dfeae7;
}

.sec.dark h2,
.sec.dark h3 {
	color: #fff;
}

.sec-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.sec-inner.narrow {
	max-width: 720px;
}

.sec-head {
	margin-bottom: clamp(28px, 4vw, 48px);
}

.sec-kicker {
	font-size: 12px;
	letter-spacing: 0.26em;
	color: var(--kiln);
	margin-bottom: 12px;
}

.sec.dark .sec-kicker {
	color: var(--kiln-bright);
}

.sec h2 {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 3.4vw, 2.3rem);
	line-height: 1.34;
	margin: 0 0 14px;
}

.sec-lede {
	color: var(--ink-70);
	font-size: var(--t-md);
	line-height: 1.9;
	max-width: 34em;
	margin: 0;
}

.sec.dark .sec-lede {
	color: #b6d0c9;
}

.prose p {
	line-height: 2.05;
	color: var(--ink-70);
	max-width: 36em;
	margin: 0 0 var(--s5);
}

/* 導流卡：首頁四條路徑 */
.path-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.path-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 330px;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: #eaf3f0;
	background: #07161a;
	isolation: isolate;
}

.path-card .card-scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	transition: transform 0.6s ease;
}

.path-card:hover .card-scene {
	transform: scale(1.06);
}

.path-card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(3, 14, 16, 0.2) 0%, rgba(3, 14, 16, 0.55) 52%, rgba(3, 14, 16, 0.9) 100%);
}

.path-body {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding: 24px 22px;
}

.path-body .kicker {
	font-size: 11px;
	letter-spacing: 0.24em;
	color: var(--kiln-bright);
	margin-bottom: 10px;
}

.path-body h3 {
	font-family: var(--font-serif);
	font-size: 1.32rem;
	color: #fff;
	margin: 0 0 10px;
}

.path-body p {
	font-size: 13.5px;
	line-height: 1.85;
	color: #bdd6ce;
	margin: 0 0 16px;
	max-width: none;
}

.path-body .go {
	font-size: 13px;
	color: #fff;
	border-bottom: 1px solid var(--kiln-bright);
	padding-bottom: 3px;
}

/* 一般內容卡 */
.card-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
}

.site-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a.site-card:hover,
.buy-card:hover {
	border-color: var(--glass);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lift);
}

.site-card .art-box {
	background: var(--glass-mist);
	border-bottom: 1px solid var(--line);
}

.site-card .body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.site-card h3 {
	font-family: var(--font-serif);
	font-size: 1.06rem;
	margin: 0;
}

.site-card .meta {
	font-size: 12px;
	color: var(--ink-45);
}

.site-card p {
	font-size: 13.5px;
	line-height: 1.85;
	color: var(--ink-70);
	margin: 0;
	max-width: none;
}

/* 可購買的商品卡：整張連到商品頁，底部另外放購買動作 */
.card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.card-buy {
	padding: 0 18px 18px;
}

.buy-price {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.site-card .foot {
	margin-top: auto;
	padding-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* 年表 */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-left: 1px solid var(--line-strong);
	padding-left: 24px;
	margin-left: 6px;
}

.timeline li {
	list-style: none;
	position: relative;
	padding: 0 0 26px;
}

.timeline li::before {
	content: '';
	position: absolute;
	left: -29px;
	top: 8px;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--glass);
	box-shadow: 0 0 0 4px var(--frost);
}

.sec.tint .timeline li::before {
	box-shadow: 0 0 0 4px var(--glass-mist);
}

.timeline .year {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	color: var(--glass-deep);
	margin-bottom: 4px;
}

.timeline .text {
	color: var(--ink-70);
	font-size: var(--t-sm);
	line-height: 1.9;
}

/* 行動呼籲橫幅 */
.cta-band {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: #dfeae7;
	padding: clamp(44px, 7vw, 84px) clamp(16px, 4vw, 40px);
	text-align: center;
}

.cta-band .cta-scene {
	position: absolute;
	inset: 0;
	opacity: 0.5;
}

.cta-band .inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
}

.cta-band h2 {
	font-family: var(--font-serif);
	font-size: clamp(1.4rem, 3.2vw, 2.1rem);
	color: #fff;
	margin: 0 0 14px;
}

.cta-band p {
	color: #b6d0c9;
	margin: 0 auto 26px;
	max-width: 30em;
	line-height: 1.9;
}

/* =========================================================================
   頁尾
   ========================================================================= */

.site-foot {
	background: var(--glass-deep);
	color: #b6d0c9;
	padding: clamp(40px, 6vw, 68px) clamp(16px, 4vw, 40px) 32px;
	font-size: var(--t-sm);
	line-height: 1.95;
}

.foot-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.site-foot h4 {
	font-family: var(--font-serif);
	color: #fff;
	font-size: 15px;
	margin: 0 0 12px;
}

.site-foot a {
	color: #cfe3dd;
	text-decoration: none;
	display: block;
}

.site-foot a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.foot-bottom {
	max-width: 1180px;
	margin: 32px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	font-size: 12px;
	color: #8fb3aa;
}

.foot-demo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(228, 160, 32, 0.45);
	background: rgba(228, 160, 32, 0.14);
	color: #f0cd8a !important;
	text-decoration: none !important;
}

/* =========================================================================
   右下角常駐 AI 客服（規劃書 5.1 方案一）
   ========================================================================= */

.chat-fab {
	position: fixed;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(14px, 3vw, 28px);
	z-index: 70;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 20px;
	border-radius: 999px;
	border: 0;
	background: var(--glass-deep);
	color: #eaf3f0;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(3, 14, 16, 0.4);
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.chat-fab:hover {
	transform: translateY(-2px);
	background: #2a6459;
}

.chat-fab .pip {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--kiln-bright);
}

.chat-pop {
	position: fixed;
	right: clamp(14px, 3vw, 28px);
	bottom: clamp(74px, 10vw, 92px);
	z-index: 71;
	width: min(360px, calc(100vw - 28px));
	max-height: min(560px, calc(100vh - 130px));
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 26px 60px rgba(3, 14, 16, 0.42);
	animation: chat-pop-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes chat-pop-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.chat-pop-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	background: var(--glass-deep);
	color: #eaf3f0;
}

.chat-pop-head .title {
	flex: 1;
	min-width: 0;
}

.chat-pop-head strong {
	display: block;
	font-family: var(--font-serif);
	font-size: 14px;
}

.chat-pop-head span {
	font-size: 11px;
	color: #9ec6bb;
}

.chat-pop-head button {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.chat-pop-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--frost);
	min-height: 180px;
}

.chat-pop-body .bubble {
	max-width: 84%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.8;
}

.chat-pop-body .bubble.ai {
	align-self: flex-start;
	background: var(--glass-soft);
	color: var(--ink);
	border-bottom-left-radius: 4px;
}

.chat-pop-body .bubble.me {
	align-self: flex-end;
	background: var(--glass);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.chat-pop-body .chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chat-pop-body .chips button,
.chat-pop-body .go-btn {
	appearance: none;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--glass-deep);
	border-radius: 999px;
	padding: 6px 12px;
	font-family: inherit;
	font-size: 12.5px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.chat-pop-body .go-btn {
	background: var(--glass);
	border-color: var(--glass);
	color: #fff;
	align-self: flex-start;
}

.chat-pop-foot {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid var(--line);
	background: var(--surface);
}

.chat-pop-foot input {
	flex: 1;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-family: inherit;
	font-size: 13.5px;
}

.chat-pop-foot button {
	appearance: none;
	border: 0;
	background: var(--glass);
	color: #fff;
	border-radius: 999px;
	padding: 9px 16px;
	font-family: inherit;
	font-size: 13.5px;
	cursor: pointer;
	white-space: nowrap;
}

.chat-pop-note {
	padding: 0 16px 12px;
	font-size: 11px;
	color: var(--ink-45);
	background: var(--surface);
	text-align: center;
}

.chat-pop-note a {
	color: var(--glass-deep);
}

@media (prefers-reduced-motion: reduce) {
	.path-card .card-scene,
	.chat-pop {
		transition: none;
		animation: none;
	}
}
