/*整體文字調整*/
.row [class^="col-"] {
  padding:10px;
}


body {
    color: #333333;
    font-size: 15px;
    line-height:1.6rem;  
}

#bodyinhome #wrap{
  background:url(https://static.iyp.tw/409869/files/b095fae4-ca85-4656-9162-54e91dc27ce4.jpg)no-repeat;;
  background-position:top center;
  background-size:cover;
  background-attachment:fixed;
}

@media(max-width:768px){
  #bodyinhome #wrap{background: linear-gradient(135deg, #dedddc, #d0cfcc);
  }
}


/*最下層空白處去掉*/
body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }




/*Banner*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(800 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}



/*TOP*/
.navbar-nav > li > a {
    color: #fff;
}


.topnavbar {
  background-color: #fff;
  top:0px;
  position: relative;
  z-index:100;
  width:100%;
  padding: .6rem 0;
  height: 100px;
}


/*logo&頁籤選單文字區塊左右對齊*/
.topnavbar .container {
  padding: 0;  /* 清除內距 */
  display: flex;
  align-items: flex-end;  /* center上下置中; flex-end靠下; */
  justify-content: space-around; /* 平均分配 */
}


.topnavbar .container #logo, 
.topnavbar .container #nav { 
  width: 100%; 
}

.topnavbar .container #nav { text-align: right; }/* 讓頁籤選單文字靠右 */


@media(max-width:600px){
   .topnavbar .container {
  text-align: center;
 }
}




/*nav*/
#nav{
  margin-top:-15px;
}

#nav ul li a {
    white-space: nowrap;
    color: #333;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 16px;
    font-size: 100%;
    transition:all 0.5s;
}

#nav ul li a::before {
  content:"";
  border-top:1px solid #cc1f1f;
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:5px;
  margin:0 auto;
  transition:.3s all ease
}

#nav ul li a:hover::before {
 width:70%;
}

#nav ul li a:hover{
    color: #cc1f1f;
}

#nav ul li.current a  {
    color: #cc1f1f;  
}

#nav .subnav {
    position: absolute;
    top: 100%;
    max-width: 230px;
    background-color: #959595;
} 

#nav ul .subnav li a {
    background-color: #b51212;
    color: #fff;
    text-align: left;
    width: 230px;
}


#nav ul .subnav li a:hover::before {
  width:0%;}


#nav ul li .subnav a span {
    display: inline-block;
    max-width: 230px;
}

#nav li.has-subnav ul li a {
    color: #fff;
    width:230px;
    white-space: pre-line; 
    font-size: 14px;
}





/*--------------Index_1----------------*/
#bodyinhome .fcol.fcol-1{
  background:linear-gradient(135deg, rgba(0,0,0,.85), rgba(0,0,0,.6)),
             url("https://static.iyp.tw/409869/files/34480d94-7228-4af6-85b6-9b47c5de533e.jpg");
  background-size: cover;
  background-position: center;
}

#bodyinhome .fcol.fcol-1 .container{
  max-width:100%;
  width:100%;
}

/*About_1*/
.machine-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 5%;
}

.machine-card {
  position: relative;
  border-radius: 10px;
  padding: 60px 20px 28px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  overflow: visible;
  transition: all .35s ease;
  background: linear-gradient(135deg, #f77d06, #b50404);
}

.machine-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #cf792e, #f86604);
}



/* 圖片超出卡片 */
.img-wrap {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
}

.img-wrap img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

/* 標題 */
.machine-card h3 {
   margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
}

/* 底部 more */
.meta {
  margin-top: 10px;
  font-size: 14px;
  color: #4b5563;
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.meta .icon {
  font-size: 16px;
}

/* Hover 顯示文字 */
.hover-text {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: 10px;
}

.machine-card:hover .hover-text {
  opacity: 1;
}

/* 重點卡 */
.machine-card.highlight {
  background: linear-gradient(135deg, #f77d06, #b50404);
  color: #fff;
}

.machine-card.highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #cf792e, #f86604);
}


.machine-card.highlight .meta {
  color: #e5e7eb;
}

/* RWD */
@media (max-width: 992px) {
  .machine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .machine-grid {
    grid-template-columns: 2 2fr;
  }
}

@media (max-width: 480px) {
.machine-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 0%;
  padding: 0px 20px 28px;
  }
}

@media (max-width: 428px) {
.machine-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 28px;
  margin-top: 0%;
  padding: 0px 20px 28px;
  }
}


@media (max-width: 480px) {
.machine-card {
  position: relative;
  border-radius: 10px;
  padding: 0px 20px 28px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  overflow: visible;
  transition: all .35s ease;
  }
}



/* Hero */
.hero {
  display: flex;
  align-items: center;
  padding: 0% 10% 5%;
}

.hero h1 {
  font-size: 3rem;
  color: #ff8c1a;
  letter-spacing: 2px;
  line-height: 3rem;
}

.hero .sub {
  margin: 20px 0;
  font-size: 1.1rem;
  color: #ccc;
}

.hero .brand {
  font-size: 0.9rem;
  color: #aaa;
  letter-spacing: 2px;
}

@media(max-width:900px){
.hero {
  display: grid;
  align-items: center;
  padding: 5%;
 }
}

/* Section common */
section {
  padding: 90px 10%;
}

h2 {
  font-size: 2rem;
  color: #ff8c1a;
  margin-bottom: 30px;
  position: relative;
}

h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #ff8c1a;
  display: block;
  margin-top: 10px;
}

/* About */
.about p {
  max-width: 800px;
  color: #ccc;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.product-card {
  background: #151515;
  border-left: 4px solid #ff8c1a;
  padding: 30px;
  transition: .3s;
}

.product-card:hover {
  transform: translateY(-8px);
  background: #1b1b1b;
}

.product-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.product-card span {
  display: block;
  margin-top: 10px;
  color: #ff8c1a;
  font-size: 0.9rem;
}

/* Advantage */
.advantage ul {
  list-style: none;
  max-width: 700px;
}

.advantage li {
  margin-bottom: 15px;
  color: #ddd;
}


/* Slogan */
.slogan {
  color: #fff;
  text-align: center;
}

.slogan h2 {
  color: #fff;
}

.slogan h2::after {  
  margin: 15px auto 0;
}



/* CTA */
.cta {
  text-align: center;
}

.cta-btns {
  margin-top: 30px;
}

.cta-btns a {
  display: inline-block;
  padding: 12px 28px;
  margin: 0 10px;
  background: #ff8c1a;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.cta-btns a.outline {
  background: transparent;
  border: 2px solid #ff8c1a;
  color: #ff8c1a;
}

/* RWD */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  section {
    padding: 70px 6%;
  }
}


@media (max-width: 368px) {
section {
    padding: 70px 0%;
  }
}



/*--------------Index_2----------------*/
/*
#bodyinhome .fcol.fcol-2{
  background:url("https://static.iyp.tw/409869/files/fbaedf1b-9b59-4e5b-b0d6-ffff0cbe7a0e.jpg");
  background-position:top center;
  background-size:cover;
  background-attachment:fixed;
}
*/


#bodyinhome .fcol.fcol-2 .container{
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}


.ab.row p{
   color:#333;
}


.industrial-btn.warning {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(145deg, #111, #1c1c1c);
  border: 2px solid #2a2a2a;
  color: #f2f2f2;
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.6);
}

/* 文字 */
.industrial-btn.warning .text {
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease;
}

/* 箭頭 */
.industrial-btn.warning .arrow {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.35s ease;
  color: #ff9f1a;
  text-shadow: 0 0 8px rgba(255,159,26,0.8);
}

/* 警示掃描光 */
.industrial-btn.warning::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 130%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,159,26,0.35) 50%,
    transparent 100%
  );
  transition: all 0.6s ease;
}

/* Hover 效果 */
.industrial-btn.warning:hover {
  border-color: #ff9f1a;
  box-shadow:
    0 0 0 1px rgba(255,159,26,0.6),
    0 0 24px rgba(255,159,26,0.5);
}

.industrial-btn.warning:hover::before {
  left: 120%;
}

.industrial-btn.warning:hover .text {
  transform: translateX(-6px);
}

.industrial-btn.warning:hover .arrow {
  opacity: 1;
  transform: translateX(6px);
}

/* Active */
.industrial-btn.warning:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.7);
}


/*Index_3*/
#bodyinhome div.fcol.fcol-3 {
  background:url(https://static.iyp.tw/409869/files/161ef52c-1b63-4e12-bc3f-c779961eeb47.jpg)no-repeat;
  background-position:top center;
  background-size:cover;
  clip-path: polygon( 0 0, 85% 0, 100% 30%, 100% 100%, 0 100%);
  }


#bodyinhome div.fcol.fcol-3 .container{
   padding:60px 20px;
}



.product-wrap {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-col {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
}

.col-title {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  color: #222;
}

.col-title span {
  width: 10px;
  height: 10px;
  background: #c40000;
  margin-right: 8px;
}

.product-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.product-item:last-child {
  border-bottom: none;
}

.product-item img {
  width: 120px;
  object-fit: contain;
}

.info {
  flex: 1;
}

.cat {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.info h4 {
  font-size: 14px;
  color: #222;
  margin-bottom: 8px;
}

.price {
  font-size: 15px;
  font-weight: bold;
  color: #c40000;
  margin-bottom: 10px;
}

.price del {
  font-size: 12px;
  color: #999;
  margin-left: 6px;
}

.btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  transition: .3s;
}

.btn:hover {
  background: #333;
  color: #fff;
}

.btn.red {
  background: #c40000;
  border-color: #c40000;
  color: #fff;
}

.btn.red:hover {
  background: #900000;
}


/* =========================
   RWD - Tablet & Mobile
========================= */

/* 平板以下 */
@media (max-width: 1024px) {
  .product-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手機版 */
@media (max-width: 768px) {
  .product-wrap {
    grid-template-columns: 1fr;
    padding: 0 14px;
  }

  .product-col {
    padding: 16px;
  }

  .product-item {
    gap: 12px;
  }

  .product-item img {
    width: 100px;
  }

  .info h4 {
    font-size: 13px;
  }

  .price {
    font-size: 14px;
  }

  .btn {
    padding: 6px 12px;
  }
}


/* =========================
   Mobile Card Layout
========================= */
@media (max-width: 768px) {

  /* 單欄 */
  .product-wrap {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  /* 商品卡片改直式 */
  .product-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 0;
  }

  .product-item img {
    width: 140px;
    margin-bottom: 12px;
  }

  .info {
    width: 100%;
  }

  .cat {
    font-size: 11px;
  }

  .info h4 {
    font-size: 14px;
    margin: 8px 0;
  }

  .price {
    font-size: 15px;
  }

  /* 按鈕滿版 */
  .btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: 12px;
    font-size: 13px;
  }
}



@media (max-width: 900px) {
 #bodyinhome div.fcol.fcol-3 {
  clip-path: polygon( 0 0, 100% 0, 100% 100%, 100% 100%, 0 100%);
    }
  }

@media(max-width:768px){
  #bodyinhome div.fcol.fcol-3 {
  background: linear-gradient(145deg, #2b2f33, #1f2327);
  }
}




/*--------------Index_4----------------*/
#bodyinhome div.fcol.fcol-4 {
  background: linear-gradient(135deg, #f77d06, #b50404);
  }




/*--------------Index_5----------------*/
#bodyinhome .fcol.fcol-5 {
  background: linear-gradient(135deg, #dedddc, #d0cfcc);
}

@media(max-width:768px){
.ct.row .col-2{
  flex: 1 0 100%;
  max-width: 100%;
 }
}

.tool-collage {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 20px;
  background: transparent;
}

/* 共用卡片 */
.tool-collage .item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.tool-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.tool-collage .item:hover img {
  transform: scale(1.08);
}

/* 主視覺 */
.tool-collage .big {
  grid-column: 4 / span 6;
  grid-row: 1 / span 2;
}

/* 周圍小圖定位 */
.tool-collage .a {
  grid-column: 1 / span 3;
  grid-row: 1 / span 1;
}

.tool-collage .b {
  grid-column: 10 / span 3;
  grid-row: 1 / span 1;
}

.tool-collage .c {
  grid-column: 2 / span 3;
  grid-row: 3 / span 1;
}

.tool-collage .d {
  grid-column: 8 / span 5;
  grid-row: 3/ span 1;
}

.tool-collage .e {
  grid-column: 5 / span 3;
  grid-row: 5 / span 2;
}

/* RWD */
@media (max-width: 900px) {
  .tool-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .tool-collage .item {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .tool-collage .big {
    grid-column: span 2 !important;
  }
}



/*--------------Index_6----------------*/
#bodyinhome .fcol.fcol-6{
   display:none;
}


/*h1*/
.h1title {
    color: #333;
    font-size: 2rem;
}


/*side*/
#side ul li a {
    color: #555;
    display: block;
    padding: 10px 20px;
    transition: .3s;
    border-bottom: 1px dashed #555;
}  

/*pd*/
ul.product-list li h3 {
    flex: 1 0 auto;
    max-height: 3.15rem;
    margin: 0.7rem 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #000;
    overflow: hidden;
    padding: 0 16px;
}

body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #fff;
    transition-property: left, color;
    background: #b90808;
    color: #fff !important;
    text-shadow: none;
    padding: 0 10px;
}





/*產品格*/
ul.product-list li .desc {
    display: block;
    min-height: 1.2rem;
    max-height: 2.4rem;
    margin-bottom: auto;
    font-size: .8rem;
    line-height: 1.5;
    word-break: break-word;
    color: #666;
    overflow: hidden;
    padding: 0 16px;
    display: none;
}



/*隱藏詳細介紹*/
ul.product-list li a.focus h3, ul.product-list li a:hover h3 {
    color: #000;
}
ul.product-list li h3 {
    flex: 1 0 auto;
    max-height: 3.15rem;
    margin: 0.7rem 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #444;
    overflow: hidden;
    padding: 0 16px;
}



/*改產品格名稱顏色*/
#side ul li.current > div a {
    color: #fff;
    background: #b90808;
}
#side ul li a {
    color: #333;
    display: block;
    padding: 10px 20px;
    transition: .3s;
}
.product-list-div h2 a {
    color: #333;
    text-decoration: none;
    display: inline-block;

}
.product-list-div h2 {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    text-shadow: 0 0px 0 #fff;
}
body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #333;
    transition-property: left, color;
}
ul.product-list li .money-icon {
    color: #333;
    font-size: 95%;
    margin-right: 8px;
    margin-left: 16px;
    text-shadow: 0 0px 0 rgba(255,255,255,0.7);
}



/*form*/
.mark{
  background:none;
}


/*footer*/
#footer {
    color: #fff;
    border-top:6px solid #b80011;  
    background-color: #000;
}
#foot-nav {
  display:none;
}

#footer a {
    color: #fff;
}
#footer-service {
    clear: both;
    padding-bottom: 1em;
    min-height: 10px;
    font-size: .9em;
    overflow: hidden;
}


/*按鈕
.button {
  border-radius:0.2em;
  background:#cc1f1f;
  border: none;
  color: #fff;
  margin: 10px 00px;
  padding: 10px 20px;
  border-radius: 20px; 
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
}
.button3 {
  background:#cc1f1f
  color: #fff; 
}
.button3:hover {
  background-color:#dc143c;
  color: white;
}
*/




/*Index_1
#bodyinhome .fcol.fcol-1{
  background:url(https://static.iyp.tw/7193/files/3ffceb51-8b1f-48be-b881-94f01b551731.png)no-repeat;
  background-position:right top;
  padding-bottom:25px;
  margin-top:-45px;
  /*min-height:600px;
}

@media(max-width:414px){
  #bodyinhome .fcol.fcol-1{
    background-size:cover;
    min-height:350px;
  }
}*/




/*PD_link
element.style {
    color: #373434;
}

.product-link .row .col-3 > a{
  border:0px solid #fff;
  width:100%;
  display:inline-block;
  width:100%; 
  background-color: #e1d8d3;
  height:50px;
  line-height: 50px;
  font-size:100%;
  text-align: center;
}
.product-link .row .col-3 > a:hover {
 color:#fff;
 background:#a88685;
}
*/


/*文字變色方塊
.serveimg {
   display: block;
   text-align: center;
   width: 100%;
   min-height:200px
   padding-bottom: 100%;
   background:  #b80011;
   overflow: hidden;
   position: relative;
   padding:10px 10px;
   border-radius: 35px; width: 100%;
   margin-bottom:15px;
}

.serveimg:hover {
   display: block;
   text-align: center;
   width: 100%;
   min-height:200px
   padding-bottom: 100%;
   background: #666666;
   overflow: hidden;
   position: relative;
   padding:10px 10px;
   border-radius: 35px; width: 100%;
}
*/

