/**
 * 監視器頁面樣式 (page-monitor.php)
 *
 * @package mytheme
 */

/* ===== 監視器推薦區塊 ===== */

.monitor-recommend-section {
  padding: 0 0 138px;
}
.recommend-container {
  display: inline-flex;
  align-items: flex-start;
  gap: 30px;
  margin: 44px auto 42px;
  position: relative;
}

.xiao-mi-text {
  color: #FFF;
  writing-mode: vertical-rl;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 12px;
  line-height: normal;
}

.recommend-des {
  flex-direction: column;
  width: 320px;
  height: 408px;
  gap: 50px;
  border-radius: 20px;
  border: 1px solid;
  border-color: #000000;
  display: flex;
  align-items: center;
  position: relative;
}

/* 推薦項目左側內容 */
.recommend-container .recommend-left-item {
  display: flex;
  flex-direction: column;
  height: 115px;
  align-items: center;
  gap: 10px;
  padding: 28px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.recommend-container .union {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 115px;
}

.crown-upper-right {
  position: absolute;
  top: -52px;
  right: -40px;
}

.recommend-container .text-wrapper {
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0;
  line-height: 48px;
}

/* 推薦項目文字內容 */
.recommend-container .recommend-text {
  flex-direction: column;
  width: 264px;
  gap: 50px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.recommend-container .recommend-text-2 {
  justify-content: center;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Inter-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  display: flex;
  align-items: center;
  position: relative;
}

.recommend-container .recommend-text-3 {
  justify-content: center;
  align-self: stretch;
  font-family: "Inter-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  display: flex;
  align-items: center;
  position: relative;
}

/* 中間比較項目 */
.recommend-container .recommend-middle {
  flex-direction: column;
  width: 74px;
  gap: 19px;
  padding-top: 123px;
  display: flex;
  align-items: center;
  position: relative;
}

.recommend-container .recommend-middle-wrapper {
  flex-direction: column;
  height: 74px;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  background-color: #ffac27;
  border-radius: 37px;
  display: flex;
  align-items: center;
  position: relative;
}

.recommend-container .recommend-middle-2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

/* 推薦項目右側內容 */
.recommend-container .recommend-left-item-2 {
  display: flex;
  flex-direction: column;
  height: 115px;
  align-items: center;
  padding: 28px 0px 0px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.recommend-container .text-wrapper-2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0;
  line-height: 48px;
}

/* ===== 小米推薦區塊 ===== */

.xiao-mi-section {
  padding: 64px 0 77px;
  background-image: url("../../images/man-installing-surveillance-camera.webp");
}
.xiao-mi-recommend-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: left;
  font-size: 24px;
  color: #0b2341;
  font-family: Inter;
}

.xiao-mi-recommend-item {
  height: 358px;
  width: 552px;
  display: flex;
  align-items: center;
  padding: 16px 0px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  gap: 10px;
}

.xiao-mi-recommend-des {
  width: 552px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 38px;
  z-index: 0;
  flex-shrink: 0;
}

.xiao-mi-des-wrapper {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.xiao-mi-des-title {
  align-self: stretch;
  position: relative;
  line-height: 38px;
  font-weight: 600;
}

.line {
  align-self: stretch;
  height: 1px;
  position: relative;
  background-color: #0b2341;
  border-top: 1px solid #000;
  box-sizing: border-box;
}

.xiao-mi-des-text {
  align-self: stretch;
  position: relative;
  font-size: 20px;
  line-height: 38px;
  color: #000;
}

/* 橙色半圓標題區塊 */
.xiao-mi-orange-tittle-wrapper {
  height: 320px;
  width: 160px;
  margin: 0 !important;
  position: absolute;
  top: 19px;
  left: 392px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  isolation: isolate;
  gap: 10px;
  z-index: 1;
  flex-shrink: 0;
  color: #fff;
}

.orange-semicircle-icon {
  height: 320px;
  width: 160px;
  position: absolute;
  margin: 0 !important;
  top: 0px;
  left: 0px;
  z-index: -1;
  flex-shrink: 0;
}


/* 第二個推薦項目 */
.xiao-mi-recommend-item2 {
  height: 358px;
  width: 552px;
  display: flex;
  align-items: center;
  padding: 16px 0px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  gap: 10px;
  text-align: right;
}

.xiao-mi-des-wrapper4 {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

/* 藍色半圓標題區塊 */
.xiao-mi-blue-tittle-wrapper {
  height: 320px;
  width: 160px;
  margin: 0 !important;
  position: absolute;
  top: 19px;
  left: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  isolation: isolate;
  gap: 10px;
  z-index: 1;
  flex-shrink: 0;
  text-align: left;
  color: #fff;
}

.blue-semicircle-icon {
  height: 320px;
  width: 160px;
  position: absolute;
  margin: 0 !important;
  top: 0px;
  left: 0px;
  object-fit: contain;
  z-index: 0;
  flex-shrink: 0;
}

.xiao-mi-blue-title {
  display: flex;
  align-items: center;
  z-index: 1;
  flex-shrink: 0;
}

/* cctv setup */
.monitor-set-up-section {
  padding: 202px 0 115px;
}

/* wifi setup section */

.setup-items {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin: 36px auto;
  width: 100%;
}
.setup-item {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.setup-top-title {
  width: 378px;
  height: 40px;
  align-content: center;
  text-align: center;
  background: #D9D9D9;

}
.setup-bottom-title {
  width: 378px;
  height: 40px;
  align-content: center;
  text-align: center;
  color: #FFF;
  background: #0B2341;

}
.des-wrapper {
  display: flex;
  gap: 60px;
  width: 100%;
  justify-content: center;
}
.setup-des {
  display: flex;
  gap: 27px;
  align-items: center;
  width: 100%;
  max-width: 450px;
}
.setup-des-yellow-title {
  align-content: center;
  text-shadow: 0 4px 17.8px rgba(0, 0, 0, 0.25);
  text-align: center;
  width: 136px;
height: 136px;
  color: #FFF;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(90deg, #FF942B 0%, #FFDC37 100%);
}
.setup-des-red-title {
  line-height: 32px;
  align-content: center;
  text-shadow: 0 4px 17.8px rgba(0, 0, 0, 0.25);
  text-align: center;
  width: 136px;
  height: 136px;
  color: #FFF;
  font-size: 1.25rem;
  font-weight: 400;
  border-radius: 50%;
  flex-shrink: 0;
  background: #FF3A3A;
}

/* cctv recorder */

.cctv-recorder-section {
  padding: 87px 0 144px;
  background: #FFDC371A;
}
.cctv-items {
  	width: 100%;
  	position: relative;
  	display: flex;
  	flex-direction: column;
  	align-items: center;
  	gap: 72px;
  	text-align: left;
  	font-family: Inter;
    margin-top: 36px;
}
.cctv-item {
  	width: 1396px;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	position: relative;
  	isolation: isolate;
  	gap: 10px;
  	flex-shrink: 0;
}

.cctv-items-wrapper{
  display: flex;
  flex-direction: row;
  gap: 85px;
}
.cctv-des-container {
  	width: 1396px;
  	display: flex;
  	align-items: center;
  	gap: 85px;
  	z-index: 0;
}
.cctv-des-container-child {
  	height: 358px;
  	width: 588px;
  	position: relative;
  	object-fit: cover;
}
.cctv-des-items {
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 50px;
    min-width: 155px;
}
.cctv-des-wrapper {
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 4px;
}

.des-note-text {
  color: #0B2341;
  font-size: 20px;
  font-weight: 700;
}

.cctv-note-text {
  line-height: 34px;
}

.cctv-des-container-item {
  	height: 351px;
  	width: 1px;
  	position: relative;
  	border-right: 1px solid #000;
  	box-sizing: border-box;
}
.cctv-des-items2 {
  	width: 336px;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 50px;
}
.cctv-des-wrapper4 {
  	width: 308px;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 4px;
}

.left-upper-title {
  	width: 292px;
  	height: 67px;
    font-weight: 700;
  	margin: 0 !important;
  	position: absolute;
  	top: 0px;
  	left: 0px;
  	background-color: #ffac27;
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	box-sizing: border-box;
  	z-index: 1;
  	color: #fff;
}
.ip-cam {
  	width: 236px;
  	height: 34px;
  	position: relative;
  	font-size: 20px;
  	line-height: 48px;
  	color: #000;
  	display: flex;
  	align-items: center;
  	flex-shrink: 0;
}
.left-upper-title2 {
  	width: 292px;
  	height: 67px;
    font-weight: 700;
  	margin: 0 !important;
  	position: absolute;
  	top: 0px;
  	left: 0px;
  	background-color: #0b2341;
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	box-sizing: border-box;
  	z-index: 1;
  	color: #fff;
}
.cctv-des-container3 {
  	align-self: stretch;
  	display: flex;
  	align-items: center;
  	gap: 85px;
  	z-index: 0;
}
/* home cctv section */

.home-cctv-section {
  padding: 202px 0 142px;
  position: relative;
}

.home-left-monitor-dec {
  display: block;
  position: absolute;
  left: 0;
  top: 41px;
  z-index: -1;
}

.monitor-right-dec {
  display: block;
  position: absolute;
  right: 103px;
  bottom: 283px;
  z-index: -1;
}
.home-cctv-items {
  	position: relative;
  	width: 100%;
  	display: flex;
  	align-items: center;
  	gap: 76px;
  	text-align: left;
  	font-size: 24px;
  	color: #ff942b;
  	font-family: Inter;
    justify-content: center;
    margin: 36px auto;
}
.home-cctv-item {
  	width: 406px;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 38px;
}
.home-des-wrapper {
  	align-self: stretch;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 40px;
  	text-align: center;
  	color: #000;
}

.orange-title {
  color: #FF942B;
  font-weight: 700;
}
.home-des {
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 18px;
  	text-align: left;
}
.home-des-gray-title {
  font-weight: 700;
  font-size: 1.25rem;
  	width: 136px;
  	height: 46px;
  	background-color: #d9d9d9;
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	box-sizing: border-box;
}

.home-cctv-items-child {
  	height: 701px;
  	width: 1px;
  	position: relative;
  	border-right: 1px solid #000;
  	box-sizing: border-box;
}
.home-cctv-item2 {
  	width: 450px;
  	display: flex;
  	flex-direction: column;
  	align-items: flex-start;
  	gap: 38px;
}

.monitor-page-des-container {
  position: relative;
  max-width: 876px;
  border-radius: 30px;
  background: #fff;
  display: flex;
  justify-content: center;
  height: 254px;
  padding-top: 50px;
  width: 100%;
  margin-bottom: -34px;
}

.home-cctv-section .custom-btn {
  z-index: 1;
}

/* 漸層圓角邊框 */
.monitor-page-des-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(90deg, #FF942B 0%, #FFDC37 100%);
  border-radius: 33px;
  z-index: -1;
}

.monitor-page-des-text {
  max-width: 741px;
}

.img-desktop {
  display: block;
}

.img-mobile {
  display: none;
}

@media (max-width: 480px) {

  .img-desktop {
    display: none;
  }

  .img-mobile {
    display: block;
  }
  .recommend-container {
    margin: 17px auto 20px;
    gap: 12px;
  }

  .recommend-container .recommend-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: auto;
    padding-top: 150px;
    gap: 37px;
  }

  .recommend-des {
    width: 144px;
    gap: 42.05px;
    border-radius: 10px;
  }

  .recommend-container .text-wrapper,
  .recommend-container .text-wrapper-2 {
    font-size: 14px;
    max-width: 81px;
    line-height: normal;
  }

  .recommend-container .recommend-text {
    max-width: 98px;
    gap: 41px;
  }

  .recommend-container .recommend-middle-wrapper {
    width: 50px;
    height: 50px;

  }

  .recommend-container .recommend-middle-2 {
    font-size: 13px;
    line-height: 1.2;
  }

  .crown-upper-right {
    width: 40px;
    height: 36px;
    top: -20px;
    right: -13px;
  }

  .monitor-recommend-section {
    padding: 0 0 44px;
  }

  /* xiao mi monitor */
  .xiao-mi-section {
    padding: 16px 0 44px;
    background-image: url(../../images/man-installing-surveillance-camera-rwd.webp);
  }
  .xiao-mi-recommend-container {
    flex-direction: column;
    gap: 24px;
    margin: 24px auto 9.75px;
  }

  .xiao-mi-recommend-des {
    width: 190px;
    gap: 10px;
  }

  .xiao-mi-recommend-item {
    width: auto;
    flex-direction: row-reverse;
    height: auto;
    gap: 16px;
    padding: 0;
  }
  .xiao-mi-recommend-item2 {
    width: auto;
    flex-direction: row-reverse;
    height: auto;
    gap: 16px;
    padding: 0;
    text-align: left;
  }

  .xiao-mi-orange-tittle-wrapper,
  .xiao-mi-blue-tittle-wrapper {
    position: relative;
    width: 86px;
    height: -webkit-fill-available;
    top: 0;
    left: 0;
  }

  .xiao-mi-des-wrapper {
    gap: 4px;
  }

  .xiao-mi-des-title {
    font-size: 14px;
    line-height: 20px;
  }

  .orange-semicircle-icon {
    width: auto;
    height: 100%;
  }

  .blue-semicircle-icon {
    transform: rotate(180deg);
    width: auto;
    height: 100%;
  }

  .xiao-mi-blue-tittle-wrapper {  
    justify-content: center;
    position: relative;

  }

  .xiao-mi-blue-title {
    flex-direction: row-reverse;
  }

  .xiao-mi-text {
    line-height: 16px;
    letter-spacing: 5px;
  }

  /* monitor setup */
  .monitor-set-up-section {
    padding: 44px 0;
  }

  .setup-items {
    margin: 20px auto;
    gap: 20px;
  }

  .setup-item {
    gap: 12px;
  }

  .setup-top-title {
    width: 100%;
  }
  
  .des-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .setup-des-yellow-title {
    width: 80px;
    height: 80px;
  }

  .setup-des-red-title {
    width: 80px;
    height: 80px;
  }

  .setup-des {
    gap: 22px;
    max-width: 300px;
  }

  .setup-bottom-title {
    width: 100%;
  }

  .cctv-des-container {
    flex-direction: column;
  }

  /* cctv recorder */
  .cctv-recorder-section {
    padding: 44px 0;
    gap: 12.35px;
  }


  .cctv-items {
    margin: 20px auto 0;
    gap: 32.14px;
  }

  .cctv-item {
    width: 100%;
    max-width: 300px;
  }

  .cctv-des-container {
    width: 100%;
    gap: 12px;
  }

  .cctv-des-container-child {
    width: 100%;
    height: 182px;
  }

  .cctv-items-wrapper {
    gap: 24px;
  }

  .cctv-des-items {
    min-width: auto;
    gap: 21.37px;
  }

  .cctv-des-container-item {
    height: 160px;
  }

  .cctv-des-wrapper {
    gap: 1.71px;
  }

  .left-upper-title,
  .left-upper-title2 {
    font-size: 12px !important;
    width: 149px;
    height: 34px;
  }

  .cctv-note-text {
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* home cctv */
  .home-cctv-section {
    padding: 60px 0 12px;
  }

  .monitor-left-dec-rwd {
    position: absolute;
    bottom: 140px;
    left: 0;
    z-index: 1;
  }

  .home-cctv-items {
    gap: 18px;
    margin: 19px auto 28px;
    align-items: flex-end;
    z-index: 1;
  }

  .home-cctv-item {
    gap: 12px;
    align-items: center;
  }

  .home-des-wrapper {
    gap: 12px;
  }

  .home-des {
    gap: 5.1px;
  }
  
  .orange-title {
    white-space: nowrap;
  }

  .little-text {
    font-size: 10px;
  }

  .home-des-gray-title {
    width: 72px;
    height: 21px;
    font-weight: 400;
  }

  .home-des-text {
    font-size: 12px !important;
    line-height: 16px !important;
    height: 32px;
  }

  .home-des:nth-child(2) .home-des-text {
    width: 143px;
  }

  .home-cctv-items-child {
    height: 338px;
  }

  .monitor-right-dec {
    width: 70px;
    height: auto;
    right: 27px;
    bottom: 185px;
    z-index: 1;
  }
  
  .monitor-page-des-text {
    max-width: 282px;
  }

  .monitor-page-des-container {
    border-radius: 12px;
    padding-top: 35.2px;
    margin-bottom: -22px;
    height: 185px;
  }

  .monitor-page-des-container::before {
    border-radius: 13px;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
  }
}