/* 全站科技感特效層（2026-11-23，使用者：「我希望有科技感 華麗 清楚 也可多加入會動的畫面」）
   body 加上 class="fx" 才會套用。淺色區塊統一改成深色，加上光暈背景、卡片光邊、捲動進度條、按鈕掃光、示意動畫。
   互動在 assets/js/fx.js。系統開啟「減少動態效果」時，site-v4.css 最後一段會關掉所有動畫與轉場。 */

/* ---------- 深色主題：把淺色區塊的色票換成深色 ---------- */
.fx {
	--bg: #09090b;
	--surface: #121215;
	--soft: #0c0c0f;
	--ink: #ededef;
	--muted: #a1a1aa;
	--line: rgba(255, 255, 255, .09);
	--neon-ink: #2ee6d6;
	--neon-strong: #2ee6d6;
	--fx-rgb: 46, 230, 214;
	--fx-2: #7dd3fc;
}
.fx.product-protect { --fx-rgb: 245, 176, 65; --fx-2: #ff9f6e; }
.fx .section h2, .fx .scope-item h3, .fx .news-card h3, .fx .plan-name, .fx .plan-price strong, .fx .steps strong, .fx .principle h3, .fx .faq-list summary { color: #fff; }
.fx .btn-ghost-dark:hover { background: rgba(46, 230, 214, .1); }
.fx .news-meta span { background: rgba(46, 230, 214, .12); }
.fx .card-ic { background: rgba(46, 230, 214, .12); }
.fx .news-lesson { background: rgba(255, 255, 255, .03); }
.fx .plan-main { border-color: rgba(46, 230, 214, .45); box-shadow: 0 0 40px rgba(46, 230, 214, .12); }
.fx.product-protect .scope-item .ic { color: #f5b041; }
.fx.product-protect .plan-main { border-color: rgba(245, 176, 65, .5); box-shadow: 0 0 40px rgba(245, 176, 65, .12); background: radial-gradient(80% 60% at 100% 0%, rgba(245, 176, 65, .16), transparent 60%), var(--bg-dark); }
.fx.product-protect .plan-main .plan-plus { color: #f5b041; }
.fx.product-protect .plan-tag { background: #f5b041; color: #1d0d05; }
.fx.product-protect .btn-ghost-dark { border-color: #f5b041; color: #f5b041; }
.fx.product-protect .btn-ghost-dark:hover { background: rgba(245, 176, 65, .1); }
.fx.product-protect .kicker, .fx.product-protect .section-dark .kicker, .fx.product-protect .checkup-card .kicker { color: #f5b041; }
.fx.product-protect .checkup-list li::before { border-color: #f5b041; }
.fx.product-protect .step-n { border-color: rgba(245, 176, 65, .5); color: #f5b041; }

/* ---------- 區塊：流動光暈與分隔光線 ---------- */
.fx main > .section { position: relative; isolation: isolate; overflow: clip; }
.fx main > .section::before {
	content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
	background:
		radial-gradient(40% 35% at 15% 20%, rgba(var(--fx-rgb), .07), transparent 70%),
		radial-gradient(35% 30% at 85% 75%, rgba(125, 211, 252, .05), transparent 70%);
	animation: fx-aurora 26s ease-in-out infinite alternate;
}
.fx main > .section:nth-of-type(even)::before { animation-direction: alternate-reverse; }
@keyframes fx-aurora { to { transform: translate3d(6%, 4%, 0) rotate(6deg); } }
.fx main > .section + .section::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(var(--fx-rgb), .45), transparent);
}
.fx .section-soft { background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .045) 1px, transparent 0) 0 0 / 26px 26px, var(--soft); }

/* 小標前面加一條發光短線 */
.fx .kicker::before {
	content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px; vertical-align: middle;
	background: currentColor; box-shadow: 0 0 10px currentColor;
}

/* 大標的重點字：流動漸層 */
.fx .entry h1 .hl, .fx .page-hero h1 .hl {
	background: linear-gradient(90deg, rgb(var(--fx-rgb)), var(--fx-2), rgb(var(--fx-rgb)));
	background-size: 200% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: fx-flow 6s linear infinite;
}
@keyframes fx-flow { to { background-position: -200% 0; } }

/* ---------- 捲動進度條（fx.js 設定 --p） ---------- */
.fx-progress {
	position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; pointer-events: none;
	background: linear-gradient(90deg, #2ee6d6, #7dd3fc, #f5b041);
	transform-origin: 0 50%; transform: scaleX(var(--p, 0));
	box-shadow: 0 0 10px rgba(46, 230, 214, .6);
}

/* ---------- 卡片：跟著滑鼠移動的光邊（fx.js 加上 .fx-card 與 .fx-glow） ---------- */
.fx-card { position: relative; }
.fx-glow {
	position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
	background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--fx-rgb), .9), transparent 45%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .3s;
}
.fx-card:hover > .fx-glow { opacity: 1; }
.fx .scope-item, .fx .plan, .fx .news-card, .fx .principle, .fx .steps li, .fx .proof > div, .fx .pair, .fx .also { transition: transform .25s, box-shadow .25s, border-color .25s; }
@media (hover: hover) {
	.fx .scope-item:hover, .fx .plan:hover, .fx .news-card:hover, .fx .principle:hover, .fx .steps li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 30px rgba(var(--fx-rgb), .08); }
}
.fx .faq-list details { transition: border-color .25s, box-shadow .25s; }
.fx .faq-list details[open] { box-shadow: 0 0 30px rgba(var(--fx-rgb), .1); border-color: rgba(var(--fx-rgb), .6); }

/* 服務範圍的圖示加上發光底座 */
.fx .scope-item .ic { box-sizing: content-box; padding: 10px; border-radius: 12px; background: rgba(var(--fx-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--fx-rgb), .3), 0 0 18px rgba(var(--fx-rgb), .15); }

/* 流程：編號呼吸燈 */
.fx .step-no, .fx .step-n { animation: fx-pulse 3s ease-in-out infinite; }
.fx .steps li:nth-child(2) .step-no, .fx .checkup-steps li:nth-child(2) .step-n { animation-delay: .6s; }
.fx .steps li:nth-child(3) .step-no, .fx .checkup-steps li:nth-child(3) .step-n { animation-delay: 1.2s; }
.fx .steps li:nth-child(4) .step-no, .fx .checkup-steps li:nth-child(4) .step-n { animation-delay: 1.8s; }
.fx .steps li:nth-child(5) .step-no { animation-delay: 2.4s; }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--fx-rgb), 0); } 50% { box-shadow: 0 0 0 6px rgba(var(--fx-rgb), .12), 0 0 18px rgba(var(--fx-rgb), .35); } }

/* ---------- 主按鈕掃光 ---------- */
.fx .btn-primary, .fx .door-go { position: relative; overflow: hidden; isolation: isolate; }
.fx .btn-primary::after, .fx .door-go::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
	transform: translateX(-130%); animation: fx-shine 5s ease-in-out infinite;
}
@keyframes fx-shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* ---------- 捲動浮現（fx.js 加上 .fx-rv，進到畫面時加 .fx-on） ---------- */
.fx-rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease; }
.fx-rv:not(.fx-on) { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(6px); }

/* ---------- 首頁：技術跑馬燈 ---------- */
.marquee {
	position: relative; overflow: hidden; margin-top: 56px; padding: 14px 0;
	border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: fx-marquee 40s linear infinite; }
.marquee ul { display: flex; gap: 44px; margin: 0; padding: 0 22px; list-style: none; }
.marquee li { font-family: var(--mono); font-size: 15px; letter-spacing: .12em; color: #b9b9c2; white-space: nowrap; }
.marquee li::before { content: "◆"; margin-right: 12px; font-size: 10px; color: var(--neon); vertical-align: 2px; }
.marquee li:nth-child(even)::before { color: #f5b041; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- 專區頁主視覺：右邊放會動的示意圖 ---------- */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.viz {
	position: relative; overflow: hidden; border-radius: 20px;
	border: 1px solid rgba(var(--fx-rgb), .3);
	background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)), #0b0b0e;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(var(--fx-rgb), .1);
}
.viz .mock-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line-dark); font-size: 13px; color: #8b8b94; }
.viz .mock-dots { display: flex; gap: 6px; }
.viz .mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.viz .mock-tag { margin-left: auto; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 12px; color: #8b8b94; }
.viz-body { position: relative; padding: 22px; }
.viz-scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(var(--fx-rgb), .07), transparent); animation: fx-scan 4.5s linear infinite; }
@keyframes fx-scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* 成本拆解示意圖 */
.viz-total small { display: block; font-size: 13px; color: #8b8b94; }
.viz-total strong { font-family: var(--mono); font-size: 30px; color: #fff; }
.viz-total em { margin-left: 10px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--neon); }
.viz-bars { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.viz-bars li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 14px; color: #d4d4d8; }
.viz-bars b { display: block; height: 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(46, 230, 214, .35), #2ee6d6); transform-origin: 0 50%; animation: fx-grow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.viz-bars .w1 { width: 100%; } .viz-bars .w2 { width: 72%; animation-delay: .15s; } .viz-bars .w3 { width: 48%; animation-delay: .3s; } .viz-bars .w4 { width: 34%; animation-delay: .45s; }
.viz-bars em { font-style: normal; font-family: var(--mono); text-align: right; color: #a1a1aa; }
.viz-bars .save b { background: linear-gradient(90deg, rgba(245, 176, 65, .35), #f5b041); box-shadow: 0 0 14px rgba(245, 176, 65, .45); animation: fx-grow 1.4s cubic-bezier(.2, .7, .2, 1) .45s both, fx-blink 2.2s ease-in-out 2s infinite; }
.viz-bars .save em { color: #f5b041; font-weight: 700; }
@keyframes fx-grow { from { transform: scaleX(0); } }
@keyframes fx-blink { 50% { opacity: .45; } }
.viz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.viz-cards div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .025); }
.viz-cards small { display: block; font-size: 12px; color: #8b8b94; line-height: 1.4; }
.viz-cards strong { font-family: var(--mono); font-size: 19px; color: #fff; }
.viz-cards .good strong { color: #2ee6d6; }
.viz-alert {
	display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px;
	border: 1px solid rgba(245, 176, 65, .4); background: rgba(245, 176, 65, .08); font-size: 14px; color: #fcd9a0;
	animation: fx-pop 6s ease-in-out infinite;
}
.viz-alert i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f5b041; box-shadow: 0 0 10px #f5b041; animation: fx-blink 1s ease-in-out infinite; }
@keyframes fx-pop { 0%, 18% { opacity: 0; transform: translateY(8px); } 26%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 流量防護示意圖 */
.lanes { position: relative; height: 230px; margin-top: 4px; }
.lanes .zone { position: absolute; top: 0; bottom: 26px; display: grid; place-items: center; align-content: center; gap: 6px; font-size: 12px; color: #8b8b94; text-align: center; }
.lanes .zone svg { width: 30px; height: 30px; color: #d4d4d8; }
.zone-in { left: 0; width: 14%; }
.zone-shield { left: 40%; width: 20%; }
.zone-shield::before {
	content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px;
	background: linear-gradient(180deg, transparent, #f5b041, transparent); box-shadow: 0 0 18px rgba(245, 176, 65, .7);
	animation: fx-hit 1.6s ease-in-out infinite;
}
.zone-shield svg { position: relative; z-index: 1; padding: 8px; box-sizing: content-box; border-radius: 14px; background: #120d06; border: 1px solid rgba(245, 176, 65, .6); color: #f5b041 !important; box-shadow: 0 0 22px rgba(245, 176, 65, .45); }
.zone-shield span { position: relative; z-index: 1; padding: 0 6px; white-space: nowrap; background: #0b0b0e; color: #f5b041; font-weight: 700; }
.zone-out { right: 0; width: 14%; }
.zone-out svg { color: #2ee6d6 !important; }
@keyframes fx-hit { 50% { box-shadow: 0 0 30px rgba(245, 176, 65, 1); } }
.pk { position: absolute; left: 12%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; }
.pk.ok { background: #2ee6d6; box-shadow: 0 0 10px #2ee6d6; animation: fx-ok 3.2s linear infinite; }
.pk.bad { background: #f87171; box-shadow: 0 0 10px #f87171; animation: fx-bad 2.4s linear infinite; }
.pk.y1 { top: 18%; } .pk.y2 { top: 34%; } .pk.y3 { top: 50%; } .pk.y4 { top: 66%; } .pk.y5 { top: 82%; }
.pk.d1 { animation-delay: -.4s; } .pk.d2 { animation-delay: -1s; } .pk.d3 { animation-delay: -1.6s; } .pk.d4 { animation-delay: -2.2s; } .pk.d5 { animation-delay: -2.8s; }
@keyframes fx-ok { 0% { left: 12%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 86%; opacity: 0; } }
@keyframes fx-bad { 0% { left: 12%; opacity: 0; transform: scale(1); } 8% { opacity: 1; } 78% { left: 46%; opacity: 1; transform: scale(1); } 90% { left: 47%; opacity: .8; transform: scale(2.6); } 100% { left: 47%; opacity: 0; transform: scale(3); } }
.lanes-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 18px; font-size: 12px; color: #a1a1aa; }
.lanes-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.lanes-legend .l-ok { background: #2ee6d6; } .lanes-legend .l-bad { background: #f87171; }
.viz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.viz-stats div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .025); }
.viz-stats small { display: block; font-size: 12px; color: #8b8b94; line-height: 1.4; }
.viz-stats strong { font-family: var(--mono); font-size: 17px; color: #fff; }
.viz-stats .warn strong { color: #f5b041; }

@media (max-width: 1080px) {
	.page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 820px) {
	.marquee { margin-top: 40px; }
	.marquee li { font-size: 13px; }
	.viz-body { padding: 16px; }
	.viz-total strong { font-size: 24px; }
	.viz-bars li { grid-template-columns: 64px minmax(0, 1fr) 52px; gap: 8px; font-size: 13px; }
	.lanes { height: 200px; }
	.lanes .zone { font-size: 11px; }
	.viz-stats strong { font-size: 15px; }
}

/* ---------- web.7ftech.com 網站建置（紫色） ---------- */
.fx.product-web { --fx-rgb: 167, 139, 250; --fx-2: #f0abfc; --accent: #a78bfa; }
.product-web .page-hero { background: radial-gradient(55% 70% at 85% 0%, rgba(167, 139, 250, .14), transparent 70%), radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 26px 26px, var(--bg-dark); }
.product-web .btn-primary { background: #a78bfa; color: #140a2e; }
.product-web .btn-primary:hover { background: #c4b5fd; }
.fx.product-web .kicker, .fx.product-web .section-dark .kicker, .fx.product-web .checkup-card .kicker { color: #a78bfa; }
.fx.product-web .scope-item .ic { color: #a78bfa; }
.fx.product-web .step-no, .fx.product-web .step-n { color: #a78bfa; border-color: rgba(167, 139, 250, .5); }
.fx.product-web .checkup-list li::before { border-color: #a78bfa; }
.fx.product-web .faq-list summary::after { color: #a78bfa; }

/* 網站建置示意圖：區塊依序組成一個網頁 */
.viz-site .site-frame { display: grid; gap: 10px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, rgba(167, 139, 250, .14), rgba(240, 171, 252, .1)); border: 1px solid rgba(167, 139, 250, .25); animation: fx-build 7s ease-in-out infinite both; }
.sk-nav { height: 22px; animation-delay: 0s; }
.sk-hero { height: 96px; display: grid; align-content: center; gap: 8px; padding: 0 16px; animation-delay: .4s; }
.sk-hero i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.sk-hero i:first-child { width: 62%; height: 14px; background: linear-gradient(90deg, #a78bfa, #f0abfc); }
.sk-hero i:nth-child(2) { width: 82%; }
.sk-hero i:nth-child(3) { width: 30%; height: 18px; border-radius: 8px; background: #a78bfa; }
.sk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sk-card { height: 58px; }
.sk-row .sk-card:nth-child(1) { animation-delay: .8s; } .sk-row .sk-card:nth-child(2) { animation-delay: 1s; } .sk-row .sk-card:nth-child(3) { animation-delay: 1.2s; }
.sk-foot { height: 18px; animation-delay: 1.6s; }
/* 沒組好的區塊留淡淡的外框，畫面不會空一塊 */
@keyframes fx-build { 0% { opacity: .15; transform: translateY(10px) scale(.97); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: .15; } }
.viz-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.viz-checks li { padding: 4px 12px; border-radius: 999px; font-size: 13px; color: #e9e3ff; border: 1px solid rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .1); animation: fx-build 7s ease-in-out infinite both; }
.viz-checks li::before { content: "✓ "; color: #a78bfa; font-weight: 700; }
.viz-checks li:nth-child(1) { animation-delay: 2s; } .viz-checks li:nth-child(2) { animation-delay: 2.3s; } .viz-checks li:nth-child(3) { animation-delay: 2.6s; } .viz-checks li:nth-child(4) { animation-delay: 2.9s; }

/* 首頁最下面引導到 web.7ftech.com */
.web-guide { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px 36px; border-radius: 24px; border: 1px solid rgba(167, 139, 250, .4); background: radial-gradient(60% 120% at 100% 0%, rgba(167, 139, 250, .18), transparent 60%), #0e0b16; box-shadow: 0 0 50px rgba(167, 139, 250, .1); }
.web-guide .kicker { color: #a78bfa; }
.web-guide h2 { color: #fff; }
.web-guide p:not(.kicker) { margin-top: 10px; color: var(--muted-on-dark); }
.web-guide .btn-primary { background: #a78bfa; color: #140a2e; }
.web-guide .btn-primary:hover { background: #c4b5fd; }
@media (max-width: 820px) { .web-guide { grid-template-columns: minmax(0, 1fr); padding: 24px; } .web-guide .btn { width: 100%; } }
