/* Premium Software 輪播（獨立版）：給 SMP 產品頁（smp-2200／2210／2400／8100）用，設計同 solution 頁。
   以下輪播與分頁規則抽自 products-overview.css（Meg 2026-10-08）；兩邊若再調整設計要一起改。
   需搭配 Swiper 11 與 javascripts/products-overview.js。 */

/* Premium software 輪播（2026-09-30 改版，參考 Transparent Slider）
   深色區塊 + 玻璃卡片；每張卡片用 --a 當重點色（頂部亮線、標籤、標題強調、按鈕、圖示光圈）。
   productoverview.css 有全域 .swiper / .swiper-slide 規則（80% 寬、600px 高圖），這裡全部用 .po-sw 蓋掉 */
@keyframes po-sw-float { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-12px) rotate(2deg); } 70% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes po-sw-spin { to { transform: rotate(360deg); } }
@keyframes po-sw-spin-r { to { transform: rotate(-360deg); } }
@keyframes po-sw-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes po-sw-in { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes po-sw-shimmer { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes po-sw-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.po-software {
	clear: both;
	position: relative;
	overflow: hidden;
	background: #f4f4f4; /* 淺底；區塊外原本白色的元件改用 CAYIN blue #007ED4 */
}

.po-software .po-section { padding-bottom: 60px; }
.po-software .po-section__lead { margin-bottom: 32px; color: #595959; }

.po-sw { position: relative; padding: 0 56px; }

.po-sw .po-sw__swiper { padding: 0; margin: 0; border-radius: 22px; }
.po-sw .swiper-wrapper { transition-timing-function: cubic-bezier(.76, 0, .24, 1); }

.po-sw .po-sw__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	box-sizing: border-box; /* 1px 外框算在寬度內，否則每張比輪播框寬 2px，切換後會露出上一張的邊 */
	width: 100%;
	max-width: none;
	height: auto;
	min-height: 380px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 22px;
	background: rgba(12, 12, 22, .6);
	box-shadow: 0 10px 30px rgba(8, 30, 60, .18);
	text-align: left;
}

/* 產品情境照當背景，左側壓暗成玻璃面 */
.po-sw .po-sw__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 75% center;
	z-index: 0;
	outline: 0;
	border-radius: 0;
}

.po-sw__card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(10, 14, 26, .95) 0%, rgba(10, 14, 26, .88) 45%, rgba(10, 14, 26, .45) 100%);
}

/* 頂部重點色亮線 */
.po-sw__card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 3;
	background: linear-gradient(90deg, transparent, var(--a) 35%, var(--a) 65%, transparent);
}

.po-sw__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	padding: 48px 40px 48px 56px;
}

.po-sw__card.is-anim .po-sw__content > * { animation: po-sw-in .5s cubic-bezier(.22, .68, 0, 1.2) both; }
.po-sw__card.is-anim .po-sw__content > :nth-child(2) { animation-delay: .1s; }
.po-sw__card.is-anim .po-sw__content > :nth-child(3) { animation-delay: .16s; }
.po-sw__card.is-anim .po-sw__content > :nth-child(4) { animation-delay: .22s; }

.po-sw__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 13px 5px 9px;
	border: 1.5px solid var(--a);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1;
	color: var(--a);
}

.po-sw__badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--a);
	animation: po-sw-dot 2s ease-in-out infinite;
}

#MainWrap .po-software .po-sw__title,
section.po-software .po-sw__title {
	margin: 0;
	padding: 0;
	max-width: 520px;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.po-sw__title em { font-style: normal; color: var(--a); }

.po-sw__body {
	margin: 0;
	max-width: 460px;
	font-size: 15px;
	line-height: 1.72;
	color: rgba(214, 226, 240, .75);
}

.po-sw__actions { margin-top: 4px; }

.po-sw__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	padding: 11px 22px;
	border-radius: 10px;
	background: var(--a);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #0a1220;
	text-decoration: none;
	box-shadow: 0 4px 18px -3px var(--a), 0 2px 6px rgba(0, 0, 0, .35);
	transition: transform .2s ease, box-shadow .2s ease;
}

.po-sw__btn::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -100%;
	width: 45%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-15deg);
}

.po-sw__btn:hover,
.po-sw__btn:focus-visible {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 8px 26px -3px var(--a), 0 4px 10px rgba(0, 0, 0, .4);
	color: #0a1220;
	text-decoration: none;
}

.po-sw__btn:hover::before { animation: po-sw-shimmer .55s ease; }

/* 右側：產品圖示 + 脈衝光圈 */
.po-sw__visual {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.po-sw__icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 130px;
	height: 130px;
	animation: po-sw-float 8s ease-in-out infinite;
}

.po-sw__ring {
	position: absolute;
	inset: -16px;
	border: 1.5px solid var(--a);
	border-radius: 50%;
	opacity: 0;
	animation: po-sw-ring 2.6s ease-out infinite;
}

.po-sw__ring:nth-child(2) { inset: -30px; animation-delay: .85s; }
.po-sw__ring:nth-child(3) { inset: -44px; animation-delay: 1.7s; }

.po-sw__spin,
.po-sw__spin2 {
	position: absolute;
	border-radius: 50%;
	border: 1.5px dashed var(--a);
}

.po-sw__spin { inset: -24px; opacity: .25; animation: po-sw-spin 20s linear infinite; }
.po-sw__spin2 { inset: -38px; border-width: 1px; opacity: .12; animation: po-sw-spin-r 28s linear infinite; }

.po-sw__icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 108px;
	height: 108px;
	border: 1.5px solid rgba(255, 255, 255, .14);
	border-radius: 26px;
	background: rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .35), 0 0 36px -6px var(--a);
}

.po-sw .po-sw__icon-box img { width: 80px; height: 80px; border-radius: 18px; outline: 0; }

/* 左右箭頭（在卡片外側） */
.po-sw__nav {
	position: absolute;
	top: 190px; /* 卡片 380px 高的中線 */
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	transform: translateY(-50%);
	border: 1.5px solid #007ED4;
	border-radius: 11px;
	background: #fff;
	color: #007ED4;
	cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s;
}

.po-sw__nav:hover { background: #007ED4; border-color: #007ED4; color: #fff; transform: translateY(-50%) scale(1.07); }
.po-sw__nav--prev { left: 0; }
.po-sw__nav--next { right: 0; }

/* 圓點 + 自動播放進度條 */
.po-sw__controls { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
.po-sw .po-sw__dots { position: static; display: flex; justify-content: center; gap: 8px; width: auto; line-height: 0; }

.po-sw .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	border-radius: 999px;
	background: rgba(0, 126, 212, .25);
	opacity: 1;
	transition: width .4s cubic-bezier(.4, 0, .2, 1), background .4s ease;
}

.po-sw .swiper-pagination-bullet:hover { background: rgba(0, 126, 212, .5); }
.po-sw .swiper-pagination-bullet-active { width: 32px; background: #007ED4; box-shadow: 0 0 10px rgba(0, 126, 212, .35); }

.po-sw__bar { width: 120px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(0, 126, 212, .15); }
.po-sw__fill { display: block; width: 0; height: 100%; border-radius: 2px; transition: background .4s; }

@media (prefers-reduced-motion: reduce) {
	.po-sw__icon-wrap, .po-sw__spin, .po-sw__spin2, .po-sw__badge-dot,
	.po-sw__card.is-anim .po-sw__content > * { animation: none; }
	.po-sw__ring { display: none; }
}

@media only screen and (max-width: 860px) {
	.po-sw { padding: 0 44px; }
	.po-sw .po-sw__card { grid-template-columns: minmax(0, 1fr) 210px; min-height: 340px; }
	.po-sw__content { padding: 40px 28px 40px 40px; }
	.po-sw__icon-wrap { width: 100px; height: 100px; }
	.po-sw__icon-box { width: 86px; height: 86px; border-radius: 20px; }
	.po-sw .po-sw__icon-box img { width: 64px; height: 64px; border-radius: 14px; }
	.po-sw__nav { top: 170px; }
}

@media only screen and (max-width: 760px) {
	.po-sw { padding: 0; }
	.po-sw .po-sw__card { grid-template-columns: 1fr; min-height: 0; }
	.po-sw__card::before { background: linear-gradient(180deg, rgba(10, 14, 26, .7) 0%, rgba(10, 14, 26, .94) 55%); }
	.po-sw__visual, .po-sw__nav { display: none; } /* 手機用滑動 */
	.po-sw__content { padding: 36px 24px; gap: 14px; }
}


/* Premium software 上方的軟體名稱分頁（Meg 2026-10-08；按鈕由 products-overview.js 依卡片名稱產生），點了直接切換。
   文字 + 底線樣式（不用膠囊）；高亮色跟頁面主色：overview 鎧應藍、Robustie 紫、Flexie 藍 */
.po-sw__tabs {
	--po-sw-tab: #007ED4;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 36px;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin: 0 auto 28px;
	border-bottom: 1px solid #d9dfe4;
}
.po-robustie .po-sw__tabs { --po-sw-tab: #693ca5; }
.po-flexie .po-sw__tabs { --po-sw-tab: #1089c6; }
.po-sw__tab {
	appearance: none;
	margin: 0 0 -1px;
	padding: 10px 4px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: none;
	color: #757575;
	font-family: 'Poppins', sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: color .2s, border-color .2s;
}
.po-sw__tab:hover { color: var(--po-sw-tab); }
.po-sw__tab:focus-visible { outline: 2px solid var(--po-sw-tab); outline-offset: 2px; }
.po-sw__tab.is-active { color: var(--po-sw-tab); border-bottom-color: var(--po-sw-tab); font-weight: 600; }
@media only screen and (max-width: 600px) {
	.po-sw__tabs { gap: 0 22px; margin-bottom: 20px; }
	.po-sw__tab { padding: 8px 2px; font-size: 15px; }
}

/* ── 產品頁用的外框、標題與間距（solution 頁這些是寫在 products-overview.css 的 .po-page 規則裡）── */
.po-software--product .po-section { clear: both; max-width: 1100px; margin: 0 auto; padding: 60px 20px; box-sizing: border-box; text-align: center; }
#MainWrap .po-software--product h2.po-title,
section.po-software.po-software--product h2.po-title { float: none; width: auto; margin: 0; padding: 0 20px 16px; box-sizing: border-box; font-weight: 500; color: #595959; text-align: center; }
#MainWrap .po-software--product .po-section__lead,
section.po-software.po-software--product .po-section__lead { float: none; max-width: 760px; margin: 0 auto 32px; padding: 0; font-size: 16px; line-height: 1.7; color: #595959; text-align: center; }
/* product_new.css 在 1366px 以下給所有 .swiper-wrapper padding: 95px 0 40px（舊版輪播用），這裡歸零 */
.po-software--product .po-sw .swiper-wrapper { padding: 0; }
.po-software--product .po-sw__content { text-align: left; }
#MainWrap .po-software--product .po-sw__body,
section.po-software.po-software--product .po-sw__body { margin: 0; text-align: left; }
#MainWrap .po-software--product .po-sw__title,
section.po-software.po-software--product .po-sw__title { font-weight: 500; text-align: left; }

/* 產品頁主色 SMP 紫 #70326e：分頁高亮、箭頭、圓點、進度條底線（卡片內各軟體重點色不動） */
.po-software--product .po-sw__tabs { --po-sw-tab: #70326e; }
.po-software--product .po-sw__nav { border-color: #70326e; color: #70326e; }
.po-software--product .po-sw__nav:hover { background: #70326e; border-color: #70326e; color: #fff; }
.po-software--product .po-sw .swiper-pagination-bullet { background: rgba(112, 50, 110, .25); }
.po-software--product .po-sw .swiper-pagination-bullet:hover { background: rgba(112, 50, 110, .5); }
.po-software--product .po-sw .swiper-pagination-bullet-active { background: #70326e; box-shadow: 0 0 10px rgba(112, 50, 110, .35); }
.po-software--product .po-sw__bar { background: rgba(112, 50, 110, .15); }

/* SMP 產品頁的連結用主色 SMP 紫 #70326e（Meg 2026-10-08）。這支 CSS 只有四個 SMP 產品頁載入，所以不另外加頁面範圍。
   深色區塊裡用 inline style 指定淺紫的 Learn More 連結不動 */
body .finalButton .contents .box a,
body .finalButton .contents .box .mylinks a,
body .product_wrap a.learnmore:not([style*="color"]),
body .header_link_wrap button.product_link.header_link_btn,
body .finalButton .contents .box button.product_link { color: #70326e; }
body a.download_button.popup_btn { background: #70326e; background-color: #70326e; }
