/*
img{
	width: 38px;
	height: 38px;
}
*/

.upsWorkGuide,
.upsWorkGuide * {
	box-sizing: border-box;
}

.upsWorkGuide * {
	margin: 0;
	padding: 0;
}

.upsWorkGuide {
	--upsWork-blue: #1476f2;
	--upsWork-blue-dark: #0968e7;
	--upsWork-text: #101928;
	--upsWork-subtext: #1c2430;
	--upsWork-line: #1476f2;
	--upsWork-card-bg: linear-gradient(180deg, #fbfdff 0%, #f5f8fd 100%);
	--upsWork-shadow: 0 0 18px rgba(60, 90, 140, 0.12);

	width: 100%;
	min-height: 445px;
	background: var(--upsWork-card-bg);
	border-radius: 8px;
	box-shadow: var(--upsWork-shadow);
	position: relative;
	overflow: hidden;
	padding: 24px 24px 28px;
	margin: 20px 0;
}

.upsWorkGuide::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(#d8e3f4 0.7px, transparent 0.7px);
	background-size: 8px 8px;
	opacity: 0.18;
	pointer-events: none;
}

.upsWorkContent {
	position: relative;
	z-index: 1;
}

.upsWorkTitle {
	text-align: center;
	font-size: clamp(28px, 3.5vw, 36px);
	color: var(--upsWork-text);
	font-weight: 800;
	letter-spacing: -1px;
	margin-bottom: 10px;
	text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(0, 0, 0, 0.06);
}

.upsWorkTitle span {
	color: var(--upsWork-blue);
}

.upsWorkTabs {
	width: min(455px, 100%);
	min-height: 40px;
	margin: 0 auto;
	background: #f7f9fd;
	border: 1px solid #e7edf7;
	border-radius: 22px;
	display: flex;
	padding: 3px;
	box-shadow: 0 4px 12px rgba(40, 80, 140, 0.08);
	gap: 4px;
}

.upsWorkTab {
	flex: 1;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(13px, 1.4vw, 15px);
	color: #53647d;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	border: none;
	background: transparent;
	padding: 8px 10px;
	transition: 0.25s ease;
}

.upsWorkTab.upsWorkTabActive {
	background: linear-gradient(180deg, #2687ff, #0968e7);
	color: #fff;
	box-shadow: 0 3px 8px rgba(0, 100, 230, 0.35);
}

.upsWorkDesc {
	margin: 18px auto 0;
	max-width: 860px;
	font-size: clamp(14px, 1.3vw, 15px);
	color: var(--upsWork-subtext);
	text-align: center;
	line-height: 1.7;
	padding: 0 10px;
}

/* ===================== 桌面布局 ===================== */
.upsWorkDesktopLayout {
	position: relative;
	height: 400px;
	margin-top: 22px;
	display: block;
}

.upsWorkMobileLayout {
	display: none;
}

.upsWorkCircle {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #edf2fa;
	box-shadow: 0 6px 14px rgba(50, 80, 130, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--upsWork-blue);
	flex-shrink: 0;
}

.upsWorkCircle svg {
	width: 44px;
	height: 44px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.upsWorkLabel {
	color: #174b91;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

.upsWorkUtilityBlock {
	position: absolute;
	left: 10%;
	top: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.upsWorkUpsBlock {
	position: absolute;
	left: 42%;
	top: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
	width: 20%;
    z-index: -10;
}


.upsWorkUpsDevice::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 16px;
	width: 22px;
	height: 18px;
	border: 2px solid #9fb1c5;
	background: #111821;
}

.upsWorkUpsDevice::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 46px;
	width: 16px;
	height: 45px;
	background: repeating-linear-gradient(180deg,
			rgba(255, 255, 255, 0.18) 0,
			rgba(255, 255, 255, 0.18) 2px,
			transparent 2px,
			transparent 5px);
	opacity: 0.7;
}

.upsWorkBatteryBlock {
	position: absolute;
	left: 42%;
	top: 260px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.upsWorkBatterySmall {
	width: 60px;
	height: 60px;
}

.upsWorkBatterySmall svg {
	width: 36px;
	height: 36px;
}

.upsWorkLineInput {
	position: absolute;
	left: 18%;
	top: 108px;
	width: 16%;
	height: 0;
	border-top: 2px solid var(--upsWork-line);
	opacity: 1;
}

.upsWorkLineInput::after {
	content: "";
	position: absolute;
	right: -1px;
	top: -6px;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--upsWork-line);
	border-right: 2px solid var(--upsWork-line);
	transform: rotate(45deg);
}

.upsWorkInputText {
	position: absolute;
	left: 25%;
	top: 120px;
	font-size: 12px;
	color: #2b70d6;
}

.upsWorkBatteryArrow {
	position: absolute;
	left: 42%;
	top: 210px;
	width: 0;
	height: 38px;
	border-left: 2px solid var(--upsWork-line);
	transform: translateX(-50%);
}

.upsWorkBatteryArrow::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--upsWork-line);
	border-bottom: 2px solid var(--upsWork-line);
	transform: translateX(-50%) rotate(45deg);
	background: transparent;
}

.upsWorkBatteryArrow.upsWorkBatteryArrowUp::after {
	top: -1px;
	bottom: auto;
	border-right: none;
	border-bottom: none;
	border-left: 2px solid var(--upsWork-line);
	border-top: 2px solid var(--upsWork-line);
	transform: translateX(-50%) rotate(45deg);
}

.upsWorkLineOutput {
	position: absolute;
	left: 50%;
	top: 108px;
	width: 16%;
	height: 0;
	border-top: 2px solid var(--upsWork-line);
}

.upsWorkLineOutput::after {
	content: "";
	position: absolute;
	right: -1px;
	top: -6px;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--upsWork-line);
	border-right: 2px solid var(--upsWork-line);
	transform: rotate(45deg);
}

.upsWorkOutputText {
	position: absolute;
	left: 55%;
	top: 120px;
	color: #2b70d6;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
}

.upsWorkBranch {
	position: absolute;
	left: 69%;
	top: 20px;
	width: 80px;
	height: 280px;
	border-left: 2px solid var(--upsWork-line);
	border-top: 2px solid var(--upsWork-line);
	border-bottom: 2px solid var(--upsWork-line);
	border-radius: 8px 0 0 8px;
}

.upsWorkBranchLine {
	position: absolute;
	left: calc(69% + 1px);
	height: 2px;
	width: 80px;
	background: var(--upsWork-line);
}

.upsWorkBranchLineOne {
	top: 110px;
}

.upsWorkBranchLineTwo {
	top: 195px;
}

.upsWorkDot {
	position: absolute;
	left: calc(69% + 80px);
	width: 8px;
	height: 8px;
	background: var(--upsWork-line);
	border-radius: 50%;
	transform: translateY(-3px);
}

.upsWorkDot1 {
	top: 20px;
}

.upsWorkDot2 {
	top: 110px;
}

.upsWorkDot3 {
	top: 195px;
}

.upsWorkDot4 {
	top: 298px;
}

.upsWorkDeviceGroup {
	position: absolute;
	left: 78%;
	width: 110px;
	min-height: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 8px;
}

.upsWorkDeviceGroupComputer {
	top: 0px;
}

.upsWorkDeviceGroupComm {
	top: 85px;
}

.upsWorkDeviceGroupSmart {
	top: 170px;
}

.upsWorkDeviceGroupNas {
	top: 255px;
}

.upsWorkDevice {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #edf2fa;
	box-shadow: 0 5px 12px rgba(50, 80, 130, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--upsWork-blue);
}

.upsWorkDevice svg {
	width: 34px;
	height: 34px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.upsWorkDeviceText {
	font-size: 12px;
	color: #1d477e;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	white-space: normal;
	width: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===================== iPad / 平板：仍然保持网页版布局 ===================== */
@media (max-width: 1024px) and (min-width: 768px) {
	.upsWorkGuideHost {
		padding: 12px;
	}

	.upsWorkGuide {
		padding: 18px 16px 22px;
		min-height: 420px;
	}

	.upsWorkTitle {
		font-size: 30px;
		margin-bottom: 10px;
	}

	.upsWorkTabs {
		max-width: 420px;
	}

	.upsWorkTab {
		font-size: 13px;
		padding: 8px 6px;
	}

	.upsWorkDesc {
		max-width: 720px;
		font-size: 14px;
		margin-top: 14px;
	}

	.upsWorkDesktopLayout {
		display: block;
		height: 320px;
		margin-top: 18px;
	}

	.upsWorkMobileLayout {
		display: none;
	}

	.upsWorkCircle {
		width: 60px;
		height: 60px;
	}

	.upsWorkCircle svg {
		width: 36px;
		height: 36px;
	}

	.upsWorkLabel {
		font-size: 12px;
	}

	.upsWorkUtilityBlock {
		left: 2%;
		top: 22%;
		gap: 8px;
		width: 26%;
    	z-index: -10;
	}

	.upsWorkUpsBlock {
		left: 41.5%;
		top: 18%;
		gap: 8px;
	}

	.upsWorkUpsDevice {
		width: 40px;
		height: 92px;
	}

	.upsWorkUpsDevice::before {
		left: 10px;
		top: 12px;
		width: 20px;
		height: 16px;
	}

	.upsWorkUpsDevice::after {
		left: 13px;
		top: 38px;
		width: 14px;
		height: 40px;
	}

	.upsWorkBatteryBlock {
		left: 41.5%;
		top: 220px;
		gap: 6px;
	}

	.upsWorkBatterySmall {
		width: 52px;
		height: 52px;
	}

	.upsWorkBatterySmall svg {
		width: 30px;
		height: 30px;
	}

	.upsWorkLineInput {
		left: 20%;
		top: 102px;
		width: 15%;
	}

	.upsWorkInputText {
		left: 22%;
		top: 114px;
		font-size: 11px;
	}

	.upsWorkBatteryArrow {
		left: 41.5%;
		top: 164px;
		height: 34px;
	}

	.upsWorkLineOutput {
		left: 49%;
		top: 102px;
		width: 15%;
	}

	.upsWorkOutputText {
		left: 52%;
		top: 114px;
		font-size: 11px;
	}

	.upsWorkBranch {
		left: 66.5%;
		top: 22px;
		width: 58px;
		height: 228px;
	}

	.upsWorkBranchLine {
		left: calc(66.5% + 1px);
		width: 58px;
	}

	.upsWorkBranchLineOne {
		top: 94px;
	}

	.upsWorkBranchLineTwo {
		top: 164px;
	}

	.upsWorkDot {
		left: calc(66.5% + 58px);
		width: 7px;
		height: 7px;
	}

	.upsWorkDot1 {
		top: 22px;
	}

	.upsWorkDot2 {
		top: 94px;
	}

	.upsWorkDot3 {
		top: 164px;
	}

	.upsWorkDot4 {
		top: 250px;
	}

	.upsWorkDeviceGroup {
		left: 75%;
		width: 96px;
		gap: 6px;
		min-height: 68px;
	}

	.upsWorkDeviceGroupComputer {
		top: 2px;
	}

	.upsWorkDeviceGroupComm {
		top: 72px;
	}

	.upsWorkDeviceGroupSmart {
		top: 142px;
	}

	.upsWorkDeviceGroupNas {
		top: 212px;
	}

	.upsWorkDevice {
		width: 36px;
		height: 36px;
	}

	.upsWorkDevice svg {
		width: 28px;
		height: 28px;
	}

	.upsWorkDeviceText {
		width: 130px;
		font-size: 11px;
		line-height: 1.3;
	}
}

/* ===================== 手机布局：只有小于 iPad 才切换 ===================== */
@media (max-width: 767px) {
	.upsWorkGuideHost {
		align-items: flex-start;
	}

	.upsWorkGuide {
		padding: 18px 14px 24px;
		min-height: auto;
	}

	.upsWorkTitle {
		font-size: 30px;
		margin-bottom: 12px;
	}

	.upsWorkTabs {
		width: 100%;
		max-width: 360px;
	}

	.upsWorkTab {
		font-size: 13px;
		padding: 10px 6px;
	}

	.upsWorkDesc {
		font-size: 14px;
		max-width: 340px;
	}

	.upsWorkDesktopLayout {
		display: none;
	}

	.upsWorkMobileLayout {
		display: block;
	}
}

@media (max-width: 480px) {
	.upsWorkGuideHost {
		padding: 10px;
	}

	.upsWorkTitle {
		font-size: 26px;
	}

	.upsWorkTabs {
		max-width: 100%;
	}

	.upsWorkTab {
		font-size: 12px;
	}

	.upsWorkDesc {
		font-size: 13px;
	}

	.upsWorkMobileInputLine,
	.upsWorkMobileOutputLine {
		height: 64px;
	}

	.upsWorkMobileDeviceGrid {
		gap: 24px 12px;
	}

	.upsWorkMobileDeviceText {
		font-size: 11px;
	}
}

/* ===================== 手机布局原样保留 ===================== */
.upsWorkMobileInner {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.upsWorkMobileUtility,
.upsWorkMobileUps,
.upsWorkMobileBattery {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.upsWorkMobileCircle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #edf2fa;
	box-shadow: 0 5px 12px rgba(50, 80, 130, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--upsWork-blue);
}

.upsWorkMobileCircle svg {
	width: 34px;
	height: 34px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.upsWorkMobileLabel {
	color: #174b91;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.upsWorkMobileInputWrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.upsWorkMobileInputText,
.upsWorkMobileOutputText {
	font-size: 12px;
	color: #2b70d6;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
}

.upsWorkMobileInputLine {
	width: 0;
	height: 72px;
	border-left: 2px solid var(--upsWork-line);
	position: relative;
	opacity: 1;
}

.upsWorkMobileInputLine::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--upsWork-line);
	border-bottom: 2px solid var(--upsWork-line);
	transform: translateX(-50%) rotate(45deg);
	background: transparent;
}

.upsWorkMobileMidRow {
	width: 100%;
	max-width: 280px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
}

.upsWorkMobileUps .upsWorkMobileLabel {
	margin-top: 2px;
}

.upsWorkMobileBattery .upsWorkMobileLabel {
	white-space: normal;
	max-width: 120px;
	line-height: 1.3;
}

.upsWorkMobileMidLine {
	width: 46px;
	height: 0;
	border-top: 2px solid var(--upsWork-line);
	position: relative;
	justify-self: center;
}

.upsWorkMobileMidLine::after {
	content: "";
	position: absolute;
	right: -1px;
	top: -6px;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--upsWork-line);
	border-right: 2px solid var(--upsWork-line);
	transform: rotate(45deg);
}

.upsWorkMobileOutputWrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: -2px;
}

.upsWorkMobileOutputLine {
	width: 0;
	height: 72px;
	border-left: 2px solid var(--upsWork-line);
	position: relative;
}

.upsWorkMobileOutputLine::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--upsWork-line);
	border-bottom: 2px solid var(--upsWork-line);
	transform: translateX(-50%) rotate(45deg);
	background: transparent;
}

.upsWorkMobileDeviceGrid {
	width: 100%;
	max-width: 320px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px 18px;
	margin-top: 4px;
}

.upsWorkMobileDevice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.upsWorkMobileDevice .upsWorkMobileCircle {
	width: 58px;
	height: 58px;
}

.upsWorkMobileDevice svg {
	width: 32px;
	height: 32px;
}

.upsWorkMobileDeviceText {
	font-size: 12px;
	color: #1d477e;
	font-weight: 700;
	line-height: 1.35;
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}