:root {
	--HPQ: 2;
	--advC: 1 1 50%;
}
@media (min-width: 576px) {
  :root {
  	--HPQ: 3;
  }
}
@media (min-width: 768px) {
  :root {
  	--HPQ: 6;
  }
}
@media (min-width: 992px) {
}
@media screen and (min-width: 1368px) {
  :root {
		--advC: 0 1 240px;
  }

}

p {margin-bottom: 0;}
ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}
video{max-width: 100%; height: auto;}
.mainbg {background-color: #f1f6f9; padding: 1rem 0;}
.category-nav-main {
  display: none;
  background-color: var(--main-color);
  color: #fff;
  padding: 1rem;
}
.CAP-title {
  background-color: #2f89c7;
  text-align: center;
  border-radius: 10px;
  padding: 10px;
}
.CAP-title h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
}
.grid-2 {
  display: grid;
  --gcg: 0.5rem;
  grid-template-columns: 58% 1fr;
  grid-template-rows: auto 1fr auto;
  grid-column-gap: var(--gcg);
}
.grid-2>*:nth-child(1) {
  grid-area: 1/1/2/3;
}
.grid-2>*:nth-child(2) {
  grid-area: 2/1/3/3;
}
.row1 {
  margin-left: -5px;
  margin-right: -5px;
  margin-bottom: 1rem;
  text-align: center;
}
.row1>* {
  padding-left: 5px;
  padding-right: 5px;
  flex-basis: 50%;
}
.row2 {
  margin-left: 0;
  margin-right: 0;
  justify-content: space-between;
}
.row2 > * {
  padding-left: 7px;
  padding-right: 7px;
}
@media (min-width: 768px) {
  .row2 > * {
    flex: 0 0 calc(50% - 7px);
    max-width: 50%;
  }
}

.basetitle {
  border-left: 3px solid #006CB8;
  padding-left: 0.3rem;
}

.product-path {
  color: #212529;
  margin: 0.5rem 0;
  padding: 1rem 0.75rem;
}

.product-path A {
  color: #212529;
  text-decoration: none;
}

.product-path A:hover {
  color: #006CB8;
}

.product-path .nowhere {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.module {
  background-color: #fff;
  padding: 1rem 0.75rem;
  margin-bottom: 1rem;
  min-width: 0; /* fix WSN*/
}
.module.reverse {
  background-color: transparent;
}
.module + .module.reverse {
  margin-top: -0.5rem;
}
.mainpro {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background-color: #fff;
  position: relative;
}
@media screen and (min-width: 1368px) {
  .mainpro {
    flex-wrap: nowrap;
  }
}
.mainpro > * {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.adv-category {
	/* flex: var(--advC); */
  margin-bottom: 10px;
}

.category-contain {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#nav-second { position:relative; margin:0; padding:0; list-style:none; z-index: 16;
  --navlihe: 9; /*預設數量*/
    flex: 1;
}	/* remove the list style */
.menupage.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}
#nav-second li { 
  display: flex; align-items: center;
  min-height: 38px;
  height: calc(374px / var(--navlihe));
  position:relative; z-index:500; margin: 0; cursor:pointer; border-bottom: 1px solid rgba(120, 120, 120, 0.2); background-position: 0px 13px; font-size: 14px;
  line-height: 0; /*fix ib cont height*/
}

#nav-second li > a::before {
	content: "\2022";
	color: var(--main-color);
	display: inline-block;
	vertical-align: bottom;
	line-height: 1;
  position: absolute;
  left: 5px;
}
@media (min-width: 768px) {
  #nav-second li>a::before { left: 0; }
  #nav-second .third-list-items a::before {
    content: none;
  }
  #nav-second .menupage > li {
    display: flex;
    flex: 1;
    height: auto;
  }
}

#nav-second li li li {
  background-image: none;
}
#nav-second li:hover { background-color: #efefef;}
#nav-second li:hover::before {}
#nav-second li a { display: inline-block; text-decoration : none; padding:0 1.2rem 0 10px; color:#333; overflow:hidden; line-height:1.2; text-transform:capitalize; font-weight: 400;}/* this is the parent menu */
#nav-second li a.title {color: #333 !important;}
#nav-second li a:hover { color : red; }
#nav-second ul { position:absolute; left:183px; top:0px; display:none; border-left:3px #efefef solid; border-bottom:1px #bbb solid; background:#efefef; margin:0 0 0 -1px; padding:0; padding-bottom:10px; list-style:none; z-index:449;}
#nav-second ul {box-shadow: 2px 2px 2px #666; }/* submenu, it's hidden by default */
#nav-second ul p { padding:10px 5px; margin-bottom: 0; font:bold 18px arial; color:var(--main-color); }
#nav-second ul p a { width:246px; color:var(--main-color); font-weight: bold; text-transform:uppercase !important; }
#nav-second ul a {  color : #333; text-decoration : none;} /* display block will make the link fill the whole area of LI */
#nav-second ul a:hover { color : red; text-decoration : none; }
#nav-second .list-items { width:270px; left:100%; }
#nav-second .list-items li {  }
#nav-second .list-items li a { width:100%; }
#nav-second .category-left-items { width:270px; left:267px; }
#nav-second .category-left-items p {}

#nav-second li.open > ul ,
#nav-second li:hover > ul {display: block;}
#nav-second li.open::before {color:red;}
#nav-second li.open > .submenu-button::before {display: none;}


/* PC按鈕 */
@media (min-width: 768px) {
  .main-item .submenu-button {
    position: absolute;
    background: url(/https/www.cens.com/cens/images/icon/angle-right-solid.svg) no-repeat right 0.25rem center;
    background-size: auto 1em;
    width: 1em;
    height: 1em;
    right: 0;
  }
  .main-item:hover > .submenu-button,
  .third-list-items:hover >.submenu-button
   {
    opacity: .5;
  }
}

@media (max-width:767.98px) {
  .category-nav-main {
    display: block;
  }
  .category-nav {
    width: 100%;
  }

  .category-nav .nav-this-name {
    width: calc(100% - 10px);
  }

  .category-nav-title {
    width: 100%;
    cursor: pointer;
    position: relative;
    margin: 0;
  }
  .category-nav-title::after {
    content: "";
    background-color: #fff;
    -webkit-mask: url(../images/icon/bars-solid.svg) no-repeat right;
    mask: url(../images/icon/bars-solid.svg) no-repeat right;
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    right: 0;
  }
  .category-des {
    display: none;
  }

  #m-menu-btn {
    padding: 15px;
    background: #919191;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
  }

  .mainpro .category {
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    z-index: 16;
    background-color: #ffffff;
  }

  .hot-keywords {
    display: none;
  }

  /* ! */

  .submenu-button {
    display: block;
  }

  #nav-second {
    display: none;
    height: auto;
    font-size: 16px;
    box-shadow: 0px 2px 4px;
    padding-bottom: 1rem;

    animation: listshow 0.25s;
    transform-origin: top;
  }
    
  #nav-second li {
    background-image: none;
    width: auto;
    height: auto;
    background-position: 13px 13px;
    margin: 0;
    display: block;
  }

  #nav-second li:hover {
    background-position: 13px 13px;
  }

  #nav-second li.open {
    background-color: #efefef;
  }

  #nav-second li.open>a {
    color: #006CB8 !important;
    font-weight: bold;
  }

  /* 2層 */
  #nav-second ul {
    position: static;
    box-shadow: none;
    padding-bottom: 0;
    border-left: 0;
  }

  #nav-second .open>ul {
    margin-left: 10px;
  }
  #nav-second .list-items {
    animation: listshow 0.25s;
    transform-origin: top;
  }
  #nav-second .list-items,
  #nav-second .category-left-items,
  #nav-second .list-items li {
    width: auto;
  }

  #nav-second .open .open ul {
    background: #d9d9d9;
    margin-left: -10px;
    padding-left: 20px;
  }

  #nav-second .open .open li::before {
    content: '';
  }

  #nav-second li a,
  #nav-second .list-items li a {
    width: calc(100% - 47px);
    padding: 0.6em 6px 0.6em 15px;
  }

  #nav-second ul p {
    display: none;
  }
  @keyframes listshow {
    0% {
      transform: scaleY(0);
    }
    100% {
      transform: scaleY(1);
    }
  }
  /* 手機+-按鈕 */
  .main-item .submenu-button {
    position: absolute;
    z-index: 99;
    right: 0;
    top: 0;
    border-left: 1px solid rgba(120, 120, 120, 0.2);
    height: 100%;
    width: 33px;
    cursor: pointer;
  }

  .submenu-button:before,
  .submenu-button:after {
    position: absolute;
    display: block;
    background: #555555;
    content: '';

  }

  .main-item .submenu-button:before {
    top: 11px;
    right: 15px;
    width: 2px;
    height: 8px;
  }

  .main-item .submenu-button:after {
    top: 14px;
    right: 12px;
    width: 8px;
    height: 2px;
  }
}
/*  */

.category-title h2 {
  margin: 0;
  display: none;
  color: var(--main-color);
}
.btn-container {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  flex-direction: row;
  justify-content: flex-end;
  float: right;
}
.btn-container button {
  background-image: none;
  background-color: #888888;
  cursor: pointer;
  margin: 0;
}
.btn-container .carousel-control-next-icon {
  -webkit-mask: url(../images/icon/arrow-right.svg) no-repeat center;
  mask: url(../images/icon/arrow-right.svg) no-repeat center;
}
.btn-container .carousel-control-prev-icon {
  -webkit-mask: url(../images/icon/arrow-left.svg) no-repeat center;
  mask: url(../images/icon/arrow-left.svg) no-repeat center;
}
.mask-border {
  display: inline-block;
  border: 1px solid #888888;
  border-radius: 8px;
  margin-left: 2px;
}

#tradeshow {
  flex: 1 1 240px;
}
@media (min-width: 1368px) {
  #tradeshow {
    flex: 0 1 240px;
  }
}

#tradeshow .layout {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 0 -0.5rem;
  height: 100%;
}

.layout>* {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

#shownews_list {
  flex-grow: 1;
}

#shownews_list ul {
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-grow: 1;
  height: 100%;
}

#shownews_list li {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  padding: 0.5rem 0;
  padding-right: 52px;
  border-bottom: 1px solid #000;
  position: relative;
  overflow: hidden;
  justify-content: space-between;
}

#shownews_listli:only-child {
  align-self: flex-start;
}

#shownews_list li img {
  position: absolute;
  right: 0;
}

#tradeshow a {}

#shownews_list .show_name {
  font-size: 14px;
  color: #000;
  margin-bottom: 0;
}

#shownews_list .area {
  font-size: 14px;
  color: #000;
  display: block;
}

#shownews_list time {
  color: #94401b;
}
#news_top {
  position: relative;
  max-height: 400px;
  height: 180px;
  flex-grow: 0;
  flex-basis: auto;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background-color: #888;
}

#news_top img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
#news_top h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .7) 40%, #000);
  padding: 0.2em 0.5em;
  margin-bottom: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  display: -webkit-inline-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: 4.4em;
}


/*各館列表獨立設定*/
@media (min-width: 768px) {
	html[lang=en] #nav-second li.alt-F-base a {padding:7px 6px 7px 10px;}
	html[lang=en] #nav-second li.alt-F-base::before {line-height: 28px;}
	html[lang=en] #nav-second li.alt-V-base a {padding:6px 6px 6px 10px;}
	html[lang=en] #nav-second li.alt-V-base::before {line-height: 26px;}
	html[lang=en] #nav-second li.alt-G-base a {padding:6px 6px 6px 10px;}
	html[lang=en] #nav-second li.alt-G-base::before {line-height: 26px;}
}



.category {
  flex: 0 1 240px;
  position: relative;
}
@media (max-width: 767.98px) {
  .category {
    display: none;
  }
}
.promote {
  flex: 3;
  flex-basis: 849px;
  order: -1;
  margin-bottom: 1rem;
}
@media (min-width: 1368px) {
  .promote {order: 0; margin-bottom: 0;}
}

.cma-c {
  max-width: 300px;
  max-height: 260px;
  overflow: hidden;
  margin: 0 auto;
}
/* 期刊 */
.category-magazine-ad {
  width: 100%;
  height: 0;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  padding-bottom: 86.66%; /*伸縮高*/
}

.category-magazine-ad .huge-cover {
  overflow: hidden;
}

.category-magazine-ad .huge-cover img {
  width: 100%;
}

/* .category-magazine-ad .huge-cover-name {
  position: absolute;
  top: 174px;
  height: 50px;
  width: 257px;
  display: block;
  padding: 10px;
  color: #FFFFFF;
  background: url(/https/www.cens.com/cens/images/newhome/coverbg.png);
} */

.category-magazine-ad .cover-message {
  position: absolute;
  top: calc(100% - 54px);
  width: 100%;
  max-width: 300px;
  height: 100%;
  z-index: 10;
  background: url(/https/www.cens.com/cens/images/newhome/coverbg.png);
  color: #FFFFFF;
  transition: top .25s;
}
.category-magazine-ad:hover .cover-message {
  top: 0;
}

.category-magazine-ad .top-cover-name {
  padding: 10px;
}

.category-magazine-ad h4 {
  color: #FFFF00;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.category-magazine-ad h3 {
  font-size: 12px;
  font-weight: normal;
  color: #FFFFFF;
  height: 26px;
  overflow: hidden;
  margin: 0;
  text-decoration: none;
  font: bold 24px var(--title);
  white-space: nowrap;
}

html[lang=en] .category-magazine-ad h3 {
  font: bold 16px var(--title);
}

.category-magazine-ad h3 a {
  color: #fff;
}

.category-magazine-ad p {
  text-align: left;
  color: #FFFFFF;
  margin: 0px;
  padding: 0;
}

.category-magazine-ad .cover-message p a {
  color: #FFFFFF;
  font: bold 12px arial;
}
#cover-nav-inner {
  width: initial;
  height: 70px;
  flex-grow: 1;
  margin: 0;
  position: relative;
  overflow: hidden;
}

#cover-nav-left {
  width: 16px;
  height: 40px;
  margin-top: 12px;
  background: url(/https/www.cens.com/cens/images/newhome/arrow.gif) no-repeat;
  background-position: 0px 0px;
  margin-right: 8px;
}

#cover-nav-right {
  width: 16px;
  height: 40px;
  margin-top: 12px;
  margin-left: 2px;
  background: url(/https/www.cens.com/cens/images/newhome/arrow.gif) no-repeat;
  background-position: -17px 0px;
  margin-left: 7px;
}

#cover-nav-inner ul {
  width: initial !important;
  list-style: none;
  position: absolute;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

#cover-nav-inner li {
  float: left;
  display: inline;
  text-align: center;
}

.category-magazine #cover-nav-inner li :not(img) {
  display: none;
}

#cover-nav-inner li img {
  width: 49px;
  height: 70px;
  cursor: pointer;
}

.cover-list-line {
  display: flex;
}

.category-magazine .cover-list-line {
  margin-top: 10px;
}

/* 新產品-產品精選 */
.newproducts-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
.newproducts-container .each {
  text-align: center;
  flex: 0 1 calc(100% / var(--HPQ) - 6px);
  padding: .5em;
  margin-bottom: 0.5rem;
  background-color: #f4f4f4;
  border-radius: 12px;
}
.newproducts-container .img-contain {
    height: 90px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.newproducts-container .img-contain img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.newproducts-container .img-contain2 {
  height: 140px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.newproducts-container .img-contain2 img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.newproducts-container .company {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.newproducts-container .product {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  margin: 0;

}
.newproducts-container .company a {
  color: #707070;
  display: -webkit-inline-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.newproducts-container .product a {
  color: #9a9;
  display: -webkit-inline-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
/* 新聞 */
.news_main {
  display: flex;
  flex-direction: column;
  margin-bottom: .5rem;
}
.news_main .img-contain, .news_main .text {
  flex-basis: 50%;
  position: relative;
}
.news_main .img-contain {
  height: 200px;
  flex-basis: 200px;
  overflow: hidden;
  background-color: #888;
}
@media screen and (min-width: 1368px) {
	.news_main {
		flex-direction: row;
	}
	.news_main .img-contain {
		flex-basis: 50%;
	}
}
.news_main .img-contain img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(-50%) translateY(-50%);
}
.news_main h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  /* background-color: #000000c9; */
  background-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .7) 40%, #000);
  padding: 0.5em;
  margin-bottom: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.news_main .text {
  line-height: 1.5;
  margin-left: 0.5rem;
  font-size: 15px;
}
.news_main time {
  font-style: italic;
  color: #CC9900;
}
.news_2nd ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.news_2nd li {
  --padding: 0.5rem;
  flex-basis: 100%;
  background-color: #f4f4f4;
  border-left: 0.5rem solid;
  border-radius: 0.5rem;
  padding: var(--padding);
  margin-bottom: 5px;
  position: relative;
}
#tradeshow .news_2nd li  {
  padding-right: calc(56px + var(--padding));
  height: calc(2.5rem + var(--padding) * 2);
  overflow: hidden;
}
.news_2nd li:nth-child(1) {
  border-color: #f8da6a;
}
.news_2nd li:nth-child(2) {
  border-color: #91abff;
}
.news_2nd li:nth-child(3) {
  border-color: #67c1ff;
}
.news_2nd li:nth-child(4) {
  border-color: #ff9ba3;
}
.news_2nd li:nth-child(5) {
  border-color: #c2a1f8;
}
.news_2nd li:nth-child(6) {
  border-color: #fe946c;
}
.news_2nd li a {
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news_2nd li img {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  max-width: 56px;
  max-height: 40px;
}

/* 精選廠商產品 */
.supplier {background-color: #ddd;}
.fnav ul {
  display: flex;
  margin: 0;
  padding-top: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
}
.fnav ul::-webkit-scrollbar {width: auto;height: 0.5rem;}
.fnav ul::-webkit-scrollbar-track {
  border-radius: 0px;
  box-shadow: inset 0 0 8px var(--main-color);
}
.fnav ul::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba;
}
.fnav li {
  color: #fff;
  background-color: #888;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border: 1px solid #fff;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  margin-right: 3px;
  cursor: pointer;
  position: relative;
  transform: perspective(1px) translateZ(0);
  transition: color 0.3s, transform 0.3s;
  white-space: nowrap;
}
.fnav li.active {
  background-color: var(--main-color);
  text-shadow: 1px 1px 1px #000;
  transform: perspective(1px) translateY(-0.5rem);
}
.fnav li.active::before {
  opacity: 1;
}
.fnav li::after {
  content: "";
  display: block;
  width: calc(100% + 2px);
  height: 3rem;
  position: absolute;
  left: -1px;
  bottom: -3rem;
  border: 1px solid #fff;
  border-top: none;
  background-color: inherit;
}

.ifs .featured-title {
  text-shadow: 1px 1px white;
  font-size: 1.5rem;
}
.ifs .content {
  flex: 1 1;
  flex-basis: 100%;
  min-height: 394px;
  position: relative;
}
.player {
  overflow: hidden;
}
.ifs .content:empty:before {
  content: "";
  -webkit-mask-image: url(/https/www.cens.com/cens/images/icon/spinner-solid.svg);
  mask-image: url(/https/www.cens.com/cens/images/icon/spinner-solid.svg);
  background-color: var(--main-color);
  animation: spin 1s infinite steps(8);
  display: block;
  width: 3rem;
  height: 3rem;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -1.5rem 0 0 -1.5rem;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.ifs .item {
  display: grid;
  grid-template: 1fr 1fr 1fr / 1fr 1fr;
  border: 1px solid #e3e3e3;
  border-left: none;
  border-top: none;
}
.ifs .each {
  /* border: 1px solid #e3e3e3; */
  margin: 5px;
  padding: 1rem .5rem;
  position: relative;
  background-color: #fff;
  border-radius: 1rem;
}
.ifs .company {
  margin-bottom: .5rem;
  height: 3em;
  overflow: hidden;
}
.ifs .company a {
  font-weight: 600;
  font-size: .9rem;
  display: -webkit-inline-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ifs .product {
  text-align: center;
  height: 2.5em;
  overflow: hidden;
}
.ifs .product a {
  color: #9b9b9b;
  font-weight: 600;
  font-size: .8rem;
}
.ifs .productdesc {
  position: absolute;
  bottom: 1rem;
  width: calc(100% - 136px - 8px - 1rem);
  font-size: 14px;
  color: #9b9b9b;
  overflow: hidden;
  display: none;
}
.ifs .img {
  height: 136px;
  text-align: center;
}
.ifs .img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
}
@media (min-width: 992px) {
  .ifs .item {
    grid-template: 1fr 1fr / 1fr 1fr 1fr;
  }
}
@media (min-width: 1368px) {
  .ifs .product {
    text-align: left;
  }
  
  .ifs .img {
    width: 136px;
    margin-left: .5rem;
    float: right;
  }
  
  .ifs .productdesc {
    display: inline-block;
  }
}
.player-controls {
  width: auto;
  top: 50%;
  bottom: initial;
  transform: translateY(-50%);
  background-color: #00000082;
}
.player-controls-icon {
    background-color: #fff;
    width: 2rem;
    height: 2rem;
}
#player .carousel-control-prev-icon {
  background-image: none;
  -webkit-mask: url(../images/icon/arrow-left.svg) no-repeat center;
  mask: url(../images/icon/arrow-left.svg) no-repeat center;
}
#player .carousel-control-next-icon {
  background-image: none;
  -webkit-mask: url(../images/icon/arrow-right.svg) no-repeat center;
  mask: url(../images/icon/arrow-right.svg) no-repeat center;
}
.player-controls {
  width: auto;
  top: 50%;
  bottom: initial;
  transform: translateY(-50%);
  background-color: #00000082;
}
.player-controls-icon {
    background-color: #fff;
    width: 2rem;
    height: 2rem;
}
.player .carousel-control-prev-icon {
  background-image: none;
  -webkit-mask: url(../images/icon/arrow-left.svg) no-repeat center;
  mask: url(../images/icon/arrow-left.svg) no-repeat center;
}
.player .carousel-control-next-icon {
  background-image: none;
  -webkit-mask: url(../images/icon/arrow-right.svg) no-repeat center;
  mask: url(../images/icon/arrow-right.svg) no-repeat center;
}
/*  */
/* 品牌精選廠商 */
.recommend-supplier-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.recommend-supplier-inner .each {
  flex: 0 0 calc(50% - 0.8rem);
  padding: 0.5rem;
  background-color: #fff;
  border-radius: 1rem;
  margin-bottom: 1rem;
  display: flex;
  grid-template-columns: 60px 1fr;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
.recommend-supplier-inner h5 {
  color: #000;
  font-size: 1rem;
}
.recommend-supplier-inner h6 {
  margin: 0.5rem 0;
  color: #999;
}
.recommend-supplier-inner .logo {
  width: 60px;
  min-height: 60px;
  border: 1px solid #000;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo img {
  width: auto;
  height: auto;
}
.recommend-supplier-inner .info {
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.recommend-supplier-inner .icon img {
  width: auto;
  max-height: 22px;
}
.bottombtn {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.btn_details {
  box-shadow: 0px 0px 4px 1px #ddd inset;
  border-radius: 1rem;
  color: #000;
  padding: 6px 12px;
  font-size: 0.5rem;
}
.btn_details:hover {
  color: #000;
}
/* B10欄位 */
.adv2 {
  padding: 1rem 0.75rem;
  margin-bottom: 1rem;
}
.adv2 img {
  height: 50px;
}
/* 客製化搜索 */
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}
#customized-sourcing {
  border-radius: 1rem;
  color: #fff;
  padding: 2rem;
  margin: 0 0.75rem 2rem;
  display: flex;
  flex-direction: column;
  background-image: url("/https/www.cens.com/cens/images/bg-q.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 20% 0;
}
.customized-info,
.customized-form {
  flex-basis: 50%;
}
.customized-info {}
.customized-info h2 {
  margin: 1.5rem 0;
}
.customized-info ul {
  list-style: square;
  margin-left: 1.5rem;
}
.customized-info li {
  margin-bottom: .75rem;
  font-size: 1.25rem;
}
.customized-form {
  border-radius: 1rem;
  background-color: #fff;
  color: #000;
  padding: 1.5rem;
}
.customized-form .send {
  border: 0;
  border-radius: 1rem;
  background-color: #c92b2a;
  color: #fff;
  padding: 0.5rem 1.25rem;
}
/**/
/* 採購服務 */
#sourcing-service {
  margin: 0 0.75rem;
  margin-bottom: 2rem;
}

#sourcing-content {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
}

#sourcing-content>div {
  background-color: #fff;
}

#sourcing-content a {
  color: #000;
  transition: color 0.25s;
}

#sourcing-content a:hover {
  color: var(--main-color);
}

#sourcing-content .img {
  overflow: hidden;
  padding-bottom: 50%;
  position: relative;
}

#sourcing-content img {
  position: absolute;
  transition: transform 0.25s;
  width: 100%;
}

#sourcing-content a:hover img {
  transform: scale(1.25);
}

#sourcing-content h3 {
  margin-bottom: 1rem;
}
/*  */
/* 關鍵字 */
#hotkeywords {
  background-color: #fff;
  border-radius: 1rem;
  margin: 0 0.75rem;
  margin-bottom: 1rem;
}
.adkeywords {
  --adwordsGBC: white;
  position: relative;
  display: block;
  flex-direction: row;
}
#adwords-title {
  background-color: #6f6f6f;
  background-image: url(/https/www.cens.com/cens/images/tip0.png);
  background-repeat: no-repeat;
  background-size: 100% 2rem;
  background-position: bottom;
  color: #fff;
  padding: 1rem 0 2rem 0;
  font-size: 1.5rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  position: relative;
  display: flex;
  justify-content: center;
}
#adwords-title h3 {
  grid-area: main;
  padding: 0.5rem 0;
  align-self: center;
}
.cens-adwords-list {
  padding: 1rem;
  background-color: var(--adwordsGBC);
}
#adwords-more {
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
}
.cens-adwords-list {
  padding: 1rem;
}
.cens-adwords-list a {
  background-color: #e6e9ee;
  padding: 0.5rem;
  display: inline-block;
  margin: 0 0.25rem 0.25rem 0;
  color: #7d7e81;
  font-size: 0.8rem;
  transition: background-color, color 0.2s, 0.2s;
}
.cens-adwords-list a:hover {
  background-color: #0056b3;
  color: #fff;
}
@media (min-width: 768px) {
  .adkeywords {
    display: flex;
  }
  #adwords-title {
    padding: 0 2rem 0 1rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 1rem;
    background-image: url(/https/www.cens.com/cens/images/tip1.png);
    background-size: 2rem 101%;
    background-position: right;
  }
  #customized-sourcing {
    flex-direction: row;
  }
  #adwords-title h3 {
    width: 4em;
  }
}
/*  */

@media (min-width: 576px) {
  .container {
    max-width: 100%;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 792px;
  }
  #nav-second {
    display: block !important;
  }
  .ifs .company a {
    font-size: 1.1rem;
  }
  .category-title h2 {
    display: inline-block;
    width: calc(100% - 44px);
  }
  /* html[lang=en] .category-title h2 {
    font-size: 1rem;
  } */
  html[lang=en] #nav-second ul p a {
    font-size: 0.8rem;
  }
  .btn-container {display: flex;}
  #sourcing-content {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .recommend-supplier-inner .each {
    display: grid;
    align-items: start;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  .ifs .item {
    grid-template: 1fr 1fr / 1fr 1fr 1fr 1fr;
  }
  .recommend-supplier-inner .each {
    flex: 0 0 calc(25% - 0.8rem);
  }
}
@media screen and (min-width: 1368px) {
  .container {
    max-width: 1550px;
  }
  .grid-2>*:nth-child(1) {
    grid-area: 1/2/2/2;
  }
  .grid-2>*:nth-child(2) {
    grid-area: 1/1/2/2;
  }
  .news_2nd li {
    flex-basis: calc(50% - 5px);
  }
}
