/*go_top*/
#go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  
  /* 預設隱藏與動畫 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

/* 懸停效果 */
#go-top:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* 滾動超過指定距離後顯示 */
#go-top.show {
  opacity: 1;
  visibility: visible;
}



/*body*/
.row [class^="col-"] {
  padding:10px;
}


body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) {
  margin-bottom: 0px;
  background: radial-gradient(circle at top right,rgba(0,180,255,.15),transparent 25%), radial-gradient(circle at bottom left,rgba(255,170,0,.12),transparent 30%), linear-gradient(135deg,#f7f9fc,#eef4fb);
}

#main-wrap.main-container{
  padding-bottom:0px;
}



.photo-box img {
    width: 100%;
    height: auto;
}


/*logo*/

@media only screen and (max-width: 767px) {
  #logo a img {
    margin: 0 auto;
  }
}


/*top*/
.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; }/* 讓頁籤選單文字靠右 */


/*nav*/
#nav ul li a {
    white-space: nowrap;
    color: #333;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 18px;
    font-size: 100%;
    border-right: 1px #888 dotted;
    transition: all 0.3s;
}

#nav ul li a:hover {
   color:#ccc;
}

/* ? 關鍵在這 */
#nav ul li a span {
    position: relative;
    display: inline-block;
}

/* 底線 */
#nav ul li a span::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #d7000f;
    transition: width 0.3s ease;
}

/* hover 動畫 */
#nav ul li a:hover span::before {
    width: 60%;
}

/* 當前頁 */
#nav ul li.current a span::before {
    width: 60%;
}

/* 當前頁顏色 */
#nav ul li.current a {
    color: #cca349;
}



/*Banner*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(800 / 1920 * 100%); 
}

.swiper-slide {
  width: 100% !important;
}


/*About_1*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-1 .container{
   max-width:100%;
   width:100%;
}

/*About_2*/
 #bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-2 .container{
   max-width:100%;
   width:100%;
}



/*About_3*/
.hero{
    position:relative;
    min-height:88vh;
    background:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),
    url('https://static.iyp.tw/409922/files/9841639c-dd5a-492e-bef3-bd3027d533f0.jpg');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
}

.hero-content{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
    color:#fff;
}

.hero-tag{
    display:inline-block;
    background:#ff8a00;
    padding:8px 18px;
    border-radius:50px;
    font-size:14px;
    letter-spacing:2px;
    margin-bottom:25px;
}

.hero h1{
    font-size:68px;
    line-height:1.1;
    margin-bottom:25px;
    font-weight:800;
}

.hero p{
    max-width:650px;
    font-size:18px;
    color:rgba(255,255,255,.88);
    margin-bottom:35px;
}

.hero-btns{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    padding:15px 30px;
    border-radius:8px;
    text-decoration:none;
    transition:.3s;
    font-weight:bold;
}

.btn-main{
    background:#ff8a00;
    color:#fff;
}

.btn-main:hover{
    background:#ff9d27;
    transform:translateY(-2px);
}

.btn-line{
    border:1px solid rgba(255,255,255,.4);
    color:#fff;
}

.btn-line:hover{
    background:#fff;
    color:#000;
}

/* ===== 數據區 ===== */
.stats{
    margin-top:-70px;
    position:relative;
    z-index:5;
}

.stats-wrap{
    max-width:1200px;
    margin:auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.stat-card{
    background:#fff;
    border-radius:18px;
    padding:35px 20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    text-align:center;
}

.stat-card h3{
    font-size:42px;
    color:#ff8a00;
    margin-bottom:10px;
}

.stat-card p{
    color:#666;
    font-size:15px;
}



/* ===== RWD ===== */
@media(max-width:1024px){

.machine-grid{
    grid-template-columns:repeat(2,1fr);
}

.stats-wrap{
    grid-template-columns:repeat(2,1fr);
}

.factory-wrap{
    grid-template-columns:1fr;
}

.hero h1{
    font-size:52px;
}

}

@media(max-width:768px){

.hero{
    min-height:auto;
    padding:100px 0;
}

.hero h1{
    font-size:38px;
}

.section-title h2{
    font-size:32px;
}

.machine-grid{
    grid-template-columns:1fr;
}

.stats-wrap{
    grid-template-columns:1fr;
}

.factory-list{
    grid-template-columns:1fr;
}

.cta h2{
    font-size:34px;
}
}





/*About_4*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-4 .container {
  max-width:100%;
  width:100%;
}



/* 標題區域 */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-header p {
    color: #888;
    letter-spacing: 2px;
}

/* 網格系統：核心修改處 */
.pro-grid {
    display: grid;
    /* 電腦版：1列4個 */
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
}

/* 卡片容器 */
.pro-card {
    position: relative;
    height: 450px; /* 固定高度讓整體整齊 */
    overflow: hidden;
    background-color: #000;
    border-radius: 4px; /* 小圓角或直角更有商業感 */
}

/* 背景圖片 */
/* 背景圖片初始狀態：模糊 + 稍微放大(避免邊緣因模糊縮排) */
.card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* 核心設定：預設模糊度 */
    filter: blur(5px); 
    /* 稍微放大 1.1 倍，確保模糊時邊緣不會漏出底色 */
    transform: scale(1.1); 
    transition: filter 0.6s ease, transform 0.6s ease;
    opacity: 0.7; 
}

/* 滑過時狀態：清晰 + 回復原始比例(或微調) */
.pro-card:hover .card-bg {
    filter: blur(0); /* 變清晰 */
    transform: scale(1); /* 產生縮小對焦的效果，或維持 1.1 隨您喜好 */
    opacity: 1;
}


/* 文字內容 */
/* 為了讓文字在圖片模糊時更清楚，建議文字容器加一個半透明底色 */
.pro-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    /* 初始遮罩稍微深一點點 */
    background: rgba(0, 0, 0, 0.3); 
    color: #fff;
    transition: background 0.5s ease;
    z-index: 1; /* 確保在背景之上 */
}

.pro-card:hover .card-content {
    /* 滑過去後背景清晰，遮罩可以變淡或變深，這裡建議變深一點點以突顯文字 */
    background: rgba(0, 0, 0, 0.4); 
}


.pro-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
}

/* 標題下方小裝飾線 */
.pro-card-content h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #fff;
    margin: 10px auto 0;
    transition: width 0.4s;
}

.pro-card:hover .card-content h3::after {
    width: 60px;
}

.pro-card-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 200px;
}

/* 響應式：手機版一列一個 */
@media (max-width: 1024px) {
    .pro-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板版改為2個 */
    }
}

@media (max-width: 768px) {
    .pro-grid {
        grid-template-columns: 1fr; /* 手機版改為1個 */
    }
    .pro-card {
        height: 300px; /* 手機上高度縮短一點較好操作 */
    }
}

.pro-card-content .btn-more{
  border:1px solid #fff;
  padding:5px 8px;
  margin-top:20px;
}



/*About_5*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-5 {
  background: 
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("https://static.iyp.tw/409922/files/edeed054-98bb-4de5-980f-08e55b72ce2a.svg") no-repeat;
    background-size: cover;
}

/*QA*/

:root {
    --primary-color: #a4a58d;    /* 灰綠 */
    --accent-yellow: #e4ae25;   /* 黃 */
    --accent-green: #1f8a45;    /* 綠 */
    --accent-red: #d8232a;      /* 紅 */
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #fafafa;
}

.faq-section {
    padding: 100px 20px;
    background-color: transparent;
    font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* 左側圖片區樣式 */
.faq-image-side {
    flex: 1;
    position: sticky;
    top: 50px;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0px var(--primary-color);
    margin-bottom: 30px;
    margin-right: 20px;
}

.image-wrapper img {
    width: 100%;
    display: block;
    height: 500px;
    object-fit: cover;
}

.brand-intro h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.brand-intro p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* 右側 FAQ 內容區樣式 */
.faq-content-side {
    flex: 1.2;
    background: rgba(255,255,2558,0.75);
    padding: 20px;
}


.faq-header {
    margin-bottom: 40px;
}

.sub-title {
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

.main-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-top: 10px;
}

/* 手風琴列表 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-bottom: 1px solid #eeeeee;
}

.faq-question {
    width: 100%;
    padding: 25px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.q-num {
    margin-right: 20px;
    font-size: 0.9rem;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.num-yellow { background-color: var(--accent-yellow); }
.num-green { background-color: var(--accent-green); }
.num-red { background-color: var(--accent-red); }

.faq-question:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* 展開與收合 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: var(--bg-light);
    border-radius: 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
    margin-bottom: 20px;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    line-height: 1.8;
    color: var(--text-muted);
}

/* 響應式調整 */
@media (max-width: 992px) {
    .faq-container {
        flex-direction: column;
    }
    .faq-image-side {
        position: static;
        width: 100%;
    }
    .image-wrapper img {
        height: 300px;
    }
}



/*About_6*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-6{
  display:none;
}


/*h1*/
.h1title h1::before{
 content:"";
 display:inline-block;
 width:300px;
 height:80px;
 background:url(https://static.iyp.tw/409922/files/85931975-accc-4418-b3ed-069b2411ad72.svg) no-repeat center;
 background-size:contain;
 margin-right:12px;
 vertical-align:middle;
}

.h1title h1 span{
  display:none
}



/*pd*/
ul.product-list li .desc{
  display:none;
}


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:inherit;
  overflow:hidden;
  padding:0 16px;
  color: #333;
}



/*News*/
#news-content .news-box {
  padding: 0px;
}

.news .fcol .news-list li h3 {
  padding-left: 10px;
  width: 82%;
  color: #d44a4a;
}

.job-title-main {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-top: 40px;
}


/*Form*/
.mark{
  background:none;
}


/*footer*/
  #footer{
    background:#969375;
    border-top:6px solid #e5a810;
}

#foot-nav{
  display:none;
}


.site-footer {
  /*background: #1a1a1a;*/
  color: #ccc;
  padding: 50px 20px 20px;
  font-size: 14px;
  border-top: 0px solid #c59d5f; /* 金色細條（印刷感） */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-left h4,
.footer-right h4 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-left p {
  margin: 6px 0;
  line-height: 1.8;
}

.footer-left a {
  color: #c59d5f;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right .social-group {
  display: flex;
  gap: 15px;
}

.footer-right a {
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-right svg {
  width: 18px;
  height: 18px;
  fill: #ccc;
}

.footer-right a:hover {
  background: #c59d5f;
  border-color: #c59d5f;
}

.footer-right a:hover svg {
  fill: #1a1a1a;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #777;
}



@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-right {
    margin-top: 20px;
  }
}







