/* 首頁入口：兩扇門 = 兩個主力產品（2026-11-23，使用者選 A：「這種入口蠻不錯的」）
   左門 01 雲端成本管理（青色）、右門 02 網站加速與防護（琥珀色）。每扇門的主按鈕是免費自我檢測（/check/）。
   光效只用在這個入口，頁面其他地方維持 A 風格。動畫在「減少動態效果」設定下關閉（site-v4.css 最後一段）。
   互動效果在 assets/js/doors.js。 */

.entry {
	position: relative; overflow: hidden; isolation: isolate;
	padding: 56px 0 72px;
	background:
		radial-gradient(ellipse at 24% 82%, rgba(46, 230, 214, .13), transparent 55%),
		radial-gradient(ellipse at 76% 82%, rgba(245, 176, 65, .12), transparent 55%),
		var(--bg-dark);
}
.entry-inner { position: relative; text-align: center; }
.entry .lead { margin-left: auto; margin-right: auto; }
.entry-net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- 兩扇門 ---------- */
.doors {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px);
	max-width: 1060px; margin: 40px auto 0; text-align: left;
}
.door {
	--c: #2ee6d6; --c2: #38b6ff; --c-rgb: 46, 230, 214;
	position: relative; display: flex; flex-direction: column; gap: 14px;
	transition: transform .35s ease, opacity .35s, filter .35s;
}
.door-web { --c: #f5b041; --c2: #ff7a59; --c-rgb: 245, 176, 65; }

.door-sign {
	align-self: center; display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
	padding: 6px 18px; border-radius: 999px;
	font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .1em;
	color: var(--c); background: rgba(var(--c-rgb), .08); border: 1px solid rgba(var(--c-rgb), .4);
}
.door-sign .zh { font-family: var(--font); letter-spacing: .06em; }
.door-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: door-blink 2.4s ease-in-out infinite; }
@keyframes door-blink { 50% { opacity: .3; } }

.door-frame {
	position: relative; display: flex; flex-direction: column; justify-content: space-between;
	flex: 1; overflow: hidden;
	border-radius: 24px 24px 14px 14px;
	border: 1px solid rgba(var(--c-rgb), .45);
	background: #070809;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .025), 0 0 0 7px rgba(var(--c-rgb), .14), 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(var(--c-rgb), .1);
	transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: border-color .35s, box-shadow .35s, transform .25s ease-out;
}
/* 跟著滑鼠移動的反光（doors.js 設定 --gx、--gy） */
.door-frame::before {
	content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .1), transparent 42%);
	opacity: 0; transition: opacity .3s;
}
.door:hover .door-frame::before { opacity: 1; }

/* 門縫透出來的光 */
.door-light {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 26% 62% at 50% 38%, #fff 0, rgba(var(--c-rgb), .85) 14%, rgba(var(--c-rgb), .22) 42%, transparent 72%);
	opacity: .6; transition: opacity .4s;
	animation: door-breathe 4s ease-in-out infinite;
}
.door-web .door-light { animation-delay: -2s; }
@keyframes door-breathe { 0%, 100% { filter: brightness(.8); } 50% { filter: brightness(1.15); } }

.door-panel {
	position: absolute; top: 0; bottom: 0; width: 50%;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 5px),
		linear-gradient(180deg, rgba(var(--c-rgb), .09), transparent 28%, transparent 72%, rgba(var(--c-rgb), .07)),
		linear-gradient(160deg, #16191b, #0c0e0f 55%, #09090b);
	transition: transform .55s cubic-bezier(.65, 0, .35, 1);
}
.door-panel-l { left: 0; transform: translateX(-2%); box-shadow: inset -2px 0 0 rgba(var(--c-rgb), .85), inset -16px 0 24px -14px rgba(var(--c-rgb), .5); }
.door-panel-r { right: 0; transform: translateX(2%); box-shadow: inset 2px 0 0 rgba(var(--c-rgb), .85), inset 16px 0 24px -14px rgba(var(--c-rgb), .5); }

/* 門上的圖示：中間是產品主角，外圈三個小圖示慢慢轉 */
.door-emblem { --r: 74px; position: relative; z-index: 3; width: 148px; height: 148px; margin: 36px auto 0; transition: scale .45s; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(var(--c-rgb), .45); animation: door-spin 24s linear infinite; }
.door-web .orbit { animation-direction: reverse; }
.sat { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; }
.sat-1 { transform: rotate(-90deg) translateX(var(--r)) rotate(90deg); }
.sat-2 { transform: rotate(30deg) translateX(var(--r)) rotate(-30deg); }
.sat-3 { transform: rotate(150deg) translateX(var(--r)) rotate(-150deg); }
.sat-ic {
	display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px;
	background: #0b0c0d; border: 1px solid rgba(var(--c-rgb), .55); color: var(--c);
	box-shadow: 0 0 14px rgba(var(--c-rgb), .3);
}
.sat-ic svg { width: 22px; height: 22px; }
.emblem-core {
	position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
	display: grid; place-items: center; border-radius: 22px;
	background: rgba(9, 9, 11, .8); border: 1px solid rgba(var(--c-rgb), .6); color: var(--c);
	box-shadow: 0 0 26px rgba(var(--c-rgb), .4), inset 0 0 16px rgba(var(--c-rgb), .18);
}
.emblem-core svg { width: 38px; height: 38px; }
@keyframes door-spin { to { transform: rotate(360deg); } }

/* 門前的看板（主要文字） */
.door-body {
	position: relative; z-index: 3;
	display: flex; flex-direction: column; gap: 10px;
	margin-top: 8px; padding: 52px 28px 28px;
	background: linear-gradient(to bottom, transparent, rgba(7, 8, 9, .86) 32%, rgba(7, 8, 9, .96));
}
.door-for { font-size: 15px; font-weight: 700; color: var(--c); letter-spacing: .03em; }
.door-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; font-weight: 800; color: #fff; }
.door-tag { font-size: 18px; line-height: 1.6; color: #e4e4e7; }
.door-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.door-chips span { padding: 3px 12px; border-radius: 999px; font-size: 15px; line-height: 1.7; color: #fff; background: rgba(var(--c-rgb), .1); border: 1px solid rgba(var(--c-rgb), .4); }
.door-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 10px; }
.door-go {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 52px; padding: 0 24px; border-radius: 12px;
	font-size: 17px; font-weight: 800; color: #04100f; text-decoration: none;
	background: linear-gradient(90deg, var(--c), var(--c2));
	box-shadow: 0 8px 26px rgba(var(--c-rgb), .3);
	transition: box-shadow .25s;
}
.door-web .door-go { color: #1d0d05; }
.door-go .ic { transition: transform .25s; }
.door-go:focus-visible, .door-more:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.door-more { font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: rgba(var(--c-rgb), .6); text-underline-offset: 5px; }
.door-more:hover { color: var(--c); }

/* 地板倒影 */
.door::after {
	content: ""; position: absolute; left: 12%; right: 12%; bottom: -28px; height: 40px; z-index: -1;
	border-radius: 50%; background: radial-gradient(ellipse at center, rgba(var(--c-rgb), .35), transparent 70%);
	filter: blur(8px); opacity: .6; transition: opacity .35s;
}

/* 滑鼠移上去：門開一點、光變亮，另一扇稍微變暗 */
@media (hover: hover) {
	.door:hover { transform: translateY(-6px); }
	.door:hover .door-panel-l { transform: translateX(-11%); }
	.door:hover .door-panel-r { transform: translateX(11%); }
	.door:hover .door-light { opacity: 1; }
	.door:hover .door-emblem { scale: 1.06; }
	.door:hover .door-go { box-shadow: 0 10px 34px rgba(var(--c-rgb), .5); }
	.door:hover .door-go .ic { transform: translateX(4px); }
	.door:hover::after { opacity: 1; }
	.doors:hover .door:not(:hover) { opacity: .72; filter: saturate(.75); }
	.door:hover .door-frame { border-color: var(--c); box-shadow: 0 0 0 6px rgba(255, 255, 255, .03), 0 0 0 7px rgba(var(--c-rgb), .32), 0 30px 70px rgba(0, 0, 0, .55), 0 0 90px rgba(var(--c-rgb), .26); }
}
/* 手機沒有滑鼠，門縫預設開大一點 */
@media (hover: none) {
	.door-panel-l { transform: translateX(-5%); }
	.door-panel-r { transform: translateX(5%); }
}

.entry .trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; max-width: 1060px; margin: 52px auto 0; text-align: left; }

@media (max-width: 820px) {
	.entry { padding: 36px 0 52px; }
	.doors { grid-template-columns: minmax(0, 1fr); gap: 44px; margin-top: 28px; }
	.door { gap: 10px; }
	.door-sign { font-size: 13px; padding: 6px 14px; gap: 8px; letter-spacing: .06em; }
	.door-emblem { --r: 60px; width: 120px; height: 120px; margin: 26px auto 0; }
	.sat { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
	.sat-ic svg { width: 19px; height: 19px; }
	.emblem-core { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 18px; }
	.emblem-core svg { width: 32px; height: 32px; }
	.door-body { padding: 32px 20px 22px; }
	.door-title { font-size: 28px; }
	.door-tag { font-size: 17px; }
	.door-actions { flex-direction: column; align-items: stretch; text-align: center; }
	.door-go { justify-content: center; }
	.door-more { align-self: center; padding: 6px 0; }
	.entry .trust { flex-direction: column; align-items: flex-start; margin-top: 44px; }
}

/* 標題與說明平均換行：手機上「交給懂系統的人」整段一起換行，不會斷在中間 */
.entry h1 .hl { display: inline-block; }
.entry .lead { text-wrap: balance; }
/* 主視覺說明的第二句整句換行，不在詞中間斷開 */
.entry .lead .keep { display: inline-block; }

/* 入口下方的「我們也做」只有一行，區塊留白收小 */
.section.home-also { padding: 32px 0; }
.home-also .also { margin-top: 0; }
@media (max-width: 820px) { .entry .lead .keep { display: inline; } }
