/*body*/
.row [class^="col-"] {
  padding:10px;
}


body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-header{
  display:none;
}



/*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: 95%;
    border-right: 1px #888 dotted;
    transition:all 0.5s;
}

#nav ul li a:hover{
    color: #1580c3;
}


#nav ul li a span{
  display:block;
  text-align:center;
}


#nav ul li.current a  {
    color: #1580c3;  
}



/*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 {
  background: linear-gradient(135deg,#4b5563 0%,#374151 45%,#1f2937 100%);
  border-top: 3px solid #3b82f6;
  border-bottom: 3px solid #3b82f6;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-1 .container {
  max-width:80%;
  padding:20px 20px;
  margin:0 auto;
  overflow: hidden;
}




/*About_2*/
.acheng-home{
font-family:"Microsoft JhengHei",Arial,sans-serif;
color:#30343A;
}


/* ===================
 Hero
=================== */

.hero-section{
height:760px;
position:relative;
background:
linear-gradient(90deg,rgba(245,245,245,.95),rgba(245,245,245,.35)),
url("images/banner.jpg")
center center / cover no-repeat;
display:flex;
align-items:center;
}


.hero-content{
position:relative;
max-width:1400px;
width:100%;
margin:auto;
padding:0 60px;
z-index:2;
}



.hero-en{
font-size:15px;
letter-spacing:5px;
color:#687789;
margin-bottom:25px;
}



.hero-content h1{
font-size:58px;
line-height:1.35;
font-weight:800;
margin:0 0 30px;
color:#30343A;
}



.hero-content p{
font-size:20px;
line-height:1.9;
max-width:600px;
color:#555;
}



.hero-btn{
margin-top:45px;
display:flex;
gap:20px;
}


.hero-btn a{
display:inline-block;
padding:15px 45px;
border:1px solid #30343A;
color:#30343A;
text-decoration:none;
transition:.3s;
}



.hero-btn a:hover{
background:#30343A;
color:white;
}



.hero-btn .dark-btn{
background:#30343A;
color:white;
}




/* ===================
 About
=================== */
.about-section{
padding:120px 20px;
/*background:#fff;*/
}


.about-container{
max-width:1400px;
margin:auto;
display:flex;
align-items:center;
gap:80px;
}


.about-text{
width:50%;
}


.section-tag{
font-size:14px;
letter-spacing:5px;
color:#687789;
margin-bottom:25px;
}


.about-text h2{
font-size:36px;
line-height:1.5;
margin-bottom:35px;
color:#10497f;
}


.about-text p{
font-size:16px;
line-height:1.8;
color:#555;
margin-bottom:25px;
}



.about-line{
width:70px;
height:3px;
background:#5B7083;
margin:35px 0;
}


.about-text strong{
font-size:22px;
}



/* image */
.about-image{
width:50%;
position:relative;
}



.image-box {
  height: 550px;
  overflow: hidden;
  border: 15px solid #fff;
  box-shadow: 0 5px 5px rgba(44,44,44,0.45);
}


.image-box img{
width:100%;
height:100%;
object-fit:cover;
}


.experience-box{
position:absolute;
bottom:-30px;
left:-40px;
background:#30343A;
color:white;
padding:15px 35px;
display:flex;
align-items:center;
gap:0px;
}




.experience-box span{
font-size:70px;
font-weight:800;
line-height:1;
}


.experience-box p{
letter-spacing:3px;
line-height:1.6;
margin:0;
}



/* RWD */
@media(max-width:900px){
.hero-section{
height:650px;
}

.hero-content{
padding:30px;
}

.hero-content h1{
font-size:38px;
}

.about-container{
flex-direction:column;
}

.about-text,
.about-image{
width:100%;
}

.image-box{
height:700px;
}

.experience-box{
left:20px;
}
}


@media(max-width:480px){
  .image-box{
    height:400px;
  }
}

@media(max-width:428px){
.about-text h2{
font-size:28px;
line-height:1.4;
margin-bottom:35px;
color:#10497f;
 }
}


/*About_3*/
/* =========================
   WHY CHOOSE US SECTION
========================= */
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-3 {
  background:url(https://static.iyp.tw/409989/files/554a2dbf-e867-4db1-8767-d492884e9e1b.jpg)no-repeat;
  background-position:top center;
  background-size:cover;
  position:relative;
}



#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-3::before {
   background: url(https://static.iyp.tw/409989/files/1f81a610-cffe-483d-b3ac-8a0a522f0f68.png);
   content:"";
   position:absolute;
   left:40px;
   top:-150px;
   z-index:5;
   width: 600px;
   height: 410px;
   transform: scale(0.9);
   pointer-events:none;
 }

@media(max-width:767px){
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-3::before {
   left:-100px;
   top:-200px;
   z-index:99999;
   transform: scale(0.5);
 }
}



.why-section {
   /*background: #30343A; 深灰底色，營造專業穩重感 */
  padding: 120px 20px;
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.why-container {
  max-width: 1400px;
  margin: auto;
}

/* 標題區 */
.why-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 70px;
}

.section-tag.light {
  font-size: 14px;
  letter-spacing: 3px;
  color: #fff; /* 白標籤 */
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.why-title h2 {
  font-size: 48px;
  line-height: 1.4;
  margin: 20px 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.why-title p {
  font-size: 18px;
  line-height: 1.8;
  color: #d1d5db;
  margin: 0;
}

/* 卡片網格佈局 */
.why-cards{

    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:70px;

}

.why-card{
    position:relative;
    width:320px;
    padding:45px;
    border-radius:18px;
    overflow:hidden;
    background:
    linear-gradient(180deg,rgba(255,255,255,.48),rgba(255,255,255,.20));
    border:1px solid rgba(255,255,255,.65);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -2px 8px rgba(255,255,255,.18),
    0 15px 35px rgba(0,0,0,.10);
    transition:.35s;
}

.why-card:hover{
    transform:translateY(-10px);
    box-shadow:
    inset 0 1px 1px rgba(255,255,255,.95),
    0 30px 60px rgba(0,0,0,.18);
}

/*
.why-card:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:6px;
}*/

.why-card:after{

    content:"";

    position:absolute;

    top:-120px;

    right:-120px;

    width:220px;

    height:220px;

    background:

    radial-gradient(

    rgba(255,255,255,.45),

    transparent 70%);

}

.card-header{
    display:flex;
    align-items:center;
    margin-bottom:28px;
}

.icon-wrapper{
    width:70px;
    height:70px;
    border-radius:50%;
    background:#ccc;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-right:18px;
}

.card-icon{
    font-size:34px;
}

.why-card h3{
    font-size:34px;
    color:#15406c;
    margin:0;
}

.why-card p{

    color:#333;

    line-height:2;

    font-size:16px;

}

/* ---------- 螺絲 ---------- */

.screw{

    position:absolute;

    width:14px;

    height:14px;

    border-radius:50%;

    background:

    radial-gradient(circle at 35% 35%,

    #ffffff,

    #d8d8d8 55%,

    #8e8e8e);

    box-shadow:

    inset 0 1px 2px rgba(255,255,255,.8),

    0 1px 3px rgba(0,0,0,.35);

}

.screw:after{

    content:"";

    position:absolute;

    left:3px;

    right:3px;

    top:6px;

    height:1px;

    background:#666;

}

.tl{

    left:16px;
    top:16px;

}

.tr{

    right:16px;
    top:16px;

}

.bl{

    left:16px;
    bottom:16px;

}

.br{

    right:16px;
    bottom:16px;

}

/* =========================
   RWD 行動裝置優化
========================= */
@media (max-width: 992px) {
  .why-cards {
    grid-template-columns: repeat(2, 1fr); /* 中等螢幕變兩欄 */
  }
}

@media (max-width: 768px) {
  .why-section {
    padding: 80px 20px; /* 手機版縮減上下留白 */
  }

  .why-title h2 {
    font-size: 36px; /* 標題縮小，避免折行混亂 */
  }

  .why-title p {
    font-size: 16px;
  }

  .why-cards {
    grid-template-columns: 1fr; /* 手機版強制單欄排列 */
    gap: 25px;
  }

  .why-card {
    padding: 40px 30px;
    min-height: auto; /* 手機版不限制最小高度，由內容撐開 */
  }

  /* 手機版卡片頭部樣式 */
  .card-header {
    flex-direction: column; /* 改為垂直排列 */
    text-align: center;
    margin-bottom: 20px;
  }

  /* 手機版圖標包裝器樣式 */
  .icon-wrapper {
    margin-right: 0;
    margin-bottom: 15px; /* 圖標與標題垂直間距 */
  }

  /* 手機版卡片標題樣式 */
  .why-card h3 {
    font-size: 24px;
  }

  /* 手機版內文樣式 */
  .why-card p {
    text-align: center; /* 文字置中 */
  }
}




/*About_4*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-4{
  border-bottom:15px solid #297ab3;
}

@media (min-width: 1200px) {
  #bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-4 .container {
     width: 100%;
    max-width:100%;
  }
}




/* ==========================================================================
   區塊基本設定與外觀排版
   ========================================================================== */
.house-section {
   /* background: #f1f5f9 !important;強制背景變灰藍色 */
  padding: 120px 20px;
  font-family: system-ui, -apple-system, sans-serif;
}

.house-container {
  max-width: 1400px; /* 稍微放大寬度，留給卡片和對話框箭頭足夠的空間 */
  margin: auto;
}

/* 標題與裝飾線 */
.house-title {
  text-align: center;
  margin-bottom: 70px;
}

.house-title .section-tag {
  font-size: 14px;
  letter-spacing: 3px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 10px;
}

.house-title h2 {
  font-size: 42px;
  color: #1e293b;
  margin: 0 0 15px 0;
}

.title-line {
  width: 50px;
  height: 3px;
  background: #5d94d9;
  margin: auto;
}

/* 三欄式排版網格 */
.house-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 50px; /* 拉大間距，防止對話框箭頭碰到中間主圖 */
  align-items: center;
}

/* 兩側卡片群組 */
.side-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ==========================================================================
   對話框立體卡片核心設定 (優化與合併)
   ========================================================================== */
.house-layout .feature-card {
  display: block !important; /* 確保它是一整塊 */
  background-color: #ffffff !important; /* 強制純白背景 */
  padding: 35px 30px !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #334155;
  /* 加強版立體陰影，防被覆蓋 */
  box-shadow: 0 15px 35px rgba(30, 41, 59, 0.15) !important; 
  border: 1px solid #e2e8f0 !important;
  position: relative !important; /* 為了給對話框箭頭進行定位 */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 滑鼠滑過時的動態（陰影加深、微幅漂浮） */
.house-layout .feature-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 25px 50px rgba(30, 41, 59, 0.25) !important;
}

/* 聯絡阿成採用深色反差，箭頭底色也要跟著連動 */
.house-layout .feature-card.card-dark {
  background-color: #30343A !important;
  box-shadow: 0 15px 35px rgba(48, 52, 58, 0.3) !important;
}

/* ---- 卡片內文排版 ---- */
.house-layout .card-header {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-bottom: 15px !important;
}

.house-layout .card-header h3 {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: inherit; /* 繼承父層文字顏色 */
}

.house-layout .feature-card p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  color: #64748b;
}

/* 深色卡片的內文顏色 */
.house-layout .feature-card.card-dark p {
  color: #94a3b8 !important;
}

.house-layout .feature-card.card-dark h3 {
  color: white !important;
}

.bento-icon{
    font-size:32px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:#eef2f7;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    flex-shrink:0;
}

/* ==========================================================================
   對話框小箭頭製作 (優化與合併)
   ========================================================================== */
.house-layout .feature-card::after {
  content: "" !important;
  position: absolute !important;
  top: 40px !important; /* 讓箭頭跟第一行的標題差不多高 */
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 左側卡片：箭頭朝右，指向中間 */
.house-layout .left-side .feature-card::after {
  right: -12px !important;
  border-width: 10px 0 10px 12px !important;
  border-color: transparent transparent transparent #ffffff !important;
}

/* 右側卡片（標準）：箭頭朝左，指向中間 */
.house-layout .right-side .feature-card::after {
  left: -12px !important;
  border-width: 10px 12px 10px 0 !important;
  border-color: transparent #ffffff transparent transparent !important;
}

/* 右側深色卡片修正：箭頭要變成深灰色 */
.house-layout .right-side .feature-card.card-dark::after {
  border-color: transparent #30343A transparent transparent !important;
}

/* ==========================================================================
   中間房子遮罩樣式
   ========================================================================== */
.center-house {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.house-mask {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background: #e2e8f0;
  clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 0% 100%, 0% 38%);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.house-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-box {
  position: absolute;
  width: 45%;
  aspect-ratio: 1 / 1;
  background: white;
  padding: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  bottom: 12%;
  z-index: 2;
  border-radius: 4px;
}

.floating-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   RWD 行動裝置優化
   ========================================================================== */
@media (max-width: 1100px) {
  .house-layout {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .center-house {
    grid-column: span 2;
    max-width: 450px;
    margin: 40px auto 0;
  }
  /* 在平板或非三欄佈局下，隱藏對話框小箭頭以免突兀 */
  .house-layout .feature-card::after {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .house-layout {
    grid-template-columns: 1fr;
  }
  
  .center-house {
    grid-column: span 1;
    order: -1;
    margin-bottom: 20px;
  }

  .side-cards {
    gap: 25px;
  }

  .house-title h2 {
    font-size: 34px;
  }
  
  .house-layout .feature-card {
    padding: 30px 25px !important;
  }
}




/*About_5*/
  #bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-5 {
    background:url(https://static.iyp.tw/409989/files/e08ee275-8cec-496f-97c9-f150a695d888.jpg)no-repeat;
    background-size:cover;
    background-position:top center;
    background-attachment:fixed;
}


.project-section{
padding:110px 20px;
}

.project-title{
text-align:center;
max-width:750px;
margin:auto auto 70px;
}

.project-title .section-tag{
letter-spacing:4px;
font-size:13px;
color:#2f5f91;
margin-bottom:15px;

}

.project-title h2{

font-size:52px;

margin:15px 0;

color:#183d63;

}

.project-title p{

line-height:2;

color:#666;

}


.project-wrap{

display:grid;

grid-template-columns:1.4fr 1fr;

gap:30px;

max-width:1450px;

margin:auto;

}


.project-big{

position:relative;

overflow:hidden;

border-radius:18px;

}

.project-big img{

width:100%;

height:700px;

object-fit:cover;

transition:.5s;

display:block;

}

.project-big:hover img{

transform:scale(1.05);

}

.project-info{

position:absolute;

left:45px;

bottom:45px;

background:rgba(255,255,255,.93);

padding:35px;

width:380px;

border-left:6px solid #2e5f91;

}

.project-info span{

display:inline-block;

background:#2e5f91;

color:#fff;

padding:5px 12px;

font-size:12px;

letter-spacing:2px;

margin-bottom:15px;

}

.project-info h3{

font-size:34px;

margin-bottom:12px;

color:#163f67;

}

.project-info p{

line-height:1.8;

margin-bottom:25px;

}

.project-info a{

color:#2e5f91;

text-decoration:none;

font-weight:bold;

}


.project-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:25px;

}


.project-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* 移除超連結下底線 */
}


.item{

position:relative;

overflow:hidden;

border-radius:15px;

cursor:pointer;

}

.item img{

width:100%;

height:335px;

object-fit:cover;

display:block;

transition:.5s;

}

.item:hover img{

transform:scale(1.08);

}

.overlay{

position:absolute;

left:0;

bottom:0;

width:100%;

padding:25px;

background:linear-gradient(transparent,rgba(0,0,0,.72));

color:#fff;

}

.overlay h4{

font-size:22px;

margin:0;

}


/* ==========================================
   手機版響應式調整 (RWD)
   ========================================== */
@media (max-width: 768px) {
  /* 1. 縮減外層內距，避免手機兩邊留白太多 */
  .project-section {
    padding: 60px 15px;
  }

  /* 2. 主標題字級縮小、間距調近 */
  .project-title {
    margin: auto auto 40px;
  }
  
  .project-title h2 {
    font-size: 32px; /* 從 52px 縮小，符合手機螢幕 */
    line-height: 1.3;
  }
  
  .project-title p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* 3. 網格全部改為單欄排版 */
  .project-wrap {
    grid-template-columns: 1fr; /* 大圖與右側區塊改上下排 */
    gap: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr; /* 右側四張小圖也改單欄 */
    gap: 20px;
  }

  /* 4. 大圖高度縮減，防拉伸變形 */
  .project-big img {
    height: 400px; /* 手機上 700px 太高了，降到 400px 比例較好 */
  }

  /* 5. 核心修正：大圖資訊卡片不再滿版懸浮 */
  .project-info {
    position: relative; /* 取消絕對定位，讓它掉到圖片下方 */
    left: 0;
    bottom: 0;
    width: 100%; /* 自動適應手機寬度 */
    padding: 20px 15px;
    background: #ffffff; /* 手機版不透明，閱讀更清晰 */
    border-left: 4px solid #2e5f91;
    border-bottom: 1px solid #eee; /* 增加下邊界線與下方區塊區隔 */
    border-radius: 0 0 18px 18px; /* 完美銜接外框圓角 */
  }

  .project-info h3 {
    font-size: 24px; /* 標題縮小 */
    margin-bottom: 8px;
  }

  .project-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  /* 6. 小圖高度縮減，優化手機滑動體驗 */
  .item img {
    height: 260px; /* 從 335px 縮小 */
  }

  .overlay {
    padding: 20px 15px;
  }

  .overlay h4 {
    font-size: 18px; /* 小圖標題微調小 */
  }
}




/*About_6*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-6{
  display:none;
}





/*Service*/
.service-page{

max-width:1400px;

margin:auto;

padding:100px 20px;

font-family:'Microsoft JhengHei';

}


.service-title{

text-align:center;

margin-bottom:90px;

}


.service-title .tag{

display:inline-block;

padding:8px 18px;

background:#b8864a;

color:#fff;

border-radius:30px;

font-size:13px;

letter-spacing:3px;

margin-bottom:20px;

}


.service-title h2{

font-size:42px;

font-weight:800;

color:#222;

margin-bottom:25px;

}


.service-title p{

max-width:900px;

margin:auto;

font-size:18px;

line-height:2;

color:#666;

}



.service-row{

display:flex;

align-items:center;

gap:70px;

margin-bottom:120px;

}


.service-row.reverse{

flex-direction:row-reverse;

}



.service-image{
    flex: 0 0 430px;
}

.service-image img{
    width:100%;
    height:430px;
    object-fit:cover;
    object-position:center;
    border-radius:24px;
    overflow:hidden;
    display:block;
    box-shadow:
        0 18px 45px rgba(0,0,0,.12),
        0 2px 8px rgba(0,0,0,.06);
    transition:.45s ease;
}

.service-image img:hover{
    transform:scale(1.04);
}


.service-no{
    position:absolute;
    right:-18px;
    bottom:20px;
    width:72px;
    height:72px;
    border-radius:50%;
    background:#b8864a;
    color:#fff;
    font-size:26px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 12px 25px rgba(0,0,0,.18);
}


.service-content span{

font-size:80px;

font-weight:900;

color:#efefef;

display:block;

margin-bottom:-20px;

}


.service-content h3{

font-size:34px;

margin-bottom:8px;

color:#222;

}


.service-content h4{

font-size:18px;

color:#b8864a;

margin-bottom:25px;

letter-spacing:2px;

}


.service-content ul{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:15px;

padding:0;

margin:30px 0;

list-style:none;

}


.service-content li{

background:#fafafa;

padding:14px 20px;

border-left:4px solid #b8864a;

border-radius:8px;

font-size:16px;

}


.service-content p{

font-size:17px;

line-height:2;

color:#666;

}



@media(max-width:991px){

.service-row,

.service-row.reverse{

flex-direction:column;

}

.service-content span{

font-size:60px;

}

.service-title h2{

font-size:30px;

}

.service-content ul{

grid-template-columns:1fr;

}

}



/*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;
  overflow: hidden;
  padding: 0 16px;
  color: #333;
}


/* 基礎外層容器 */
        .product-grid-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        /* 3x3 Grid 核心樣式 */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 桌面端完美 3 欄 */
            gap: 20px; /* 格子間距 */
        }

        /* 單個產品卡片 */
        .product-card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            flex-direction: column;
        }

        /* 懸停效果 */
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        /* 圖片容器（維持 1:1 正方形比例） */
        .product-image-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 100%; /* 1:1 Aspect Ratio */
            background-color: #f3f4f6;
        }

        /* 圖片本身（置中、填滿且不變形） */
        .product-image-wrapper img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* 確保圖片不變形，自動裁切填滿 */
            vertical-align: middle;
        }

        /* 產品資訊區塊 */
        .product-info {
            padding: 16px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            justify-content: space-between;
        }

        .product-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1f2937;
            margin: 0 0 8px 0;
            line-height: 1.4;
        }

        .product-desc {
            font-size: 0.9rem;
            color: #4b5563;
            margin: 0 0 16px 0;
            line-height: 1.5;
        }

        .product-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .product-price {
            font-size: 1.2rem;
            font-weight: bold;
            color: #2563eb; /* 科技藍主色，可自由更換 */
        }

        .product-btn {
            background-color: #2563eb;
            color: white;
            padding: 6px 16px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 0.875rem;
            transition: background 0.2s;
        }

        .product-btn:hover {
            background-color: #1d4ed8;
        }

        /* ==========================================
           RWD 行動端適應：小於 768px 自動轉為單欄並置中
           ========================================== */
        @media (max-width: 768px) {
            .product-grid {
                grid-template-columns: repeat(1, 1fr); /* 強制轉為單欄 */
                gap: 16px;
            }
            
            .product-info {
                text-align: center; /* 行動端文字置中 */
            }

            .product-meta {
                flex-direction: column;
                gap: 12px;
                align-items: center;
            }
        }






/*contact*/
/* 基礎與背景 */
.contact-section {
  position: relative;
  background-image: url('https://static.iyp.tw/409989/files/aa326aa7-d1a8-4575-a500-e75241ad7364.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 30px;
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
}

.contact-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 30, 30, 0.88);
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* 上方左右欄位 */
.contact-top-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* 略微拉大左邊寬度放 QR Code */
  gap: 60px;
  align-items: start;
}

/* 左側：文字與 LINE */
.contact-text-side {
  display: flex;
  flex-direction: column;
}

.section-tag {
  background-color: #d4832c;
  color: #fff;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  width: fit-content;
  margin-bottom: 25px;
}

.contact-text-side h2 {
  font-size: 32px;
  line-height: 1.4;
  margin: 0 0 15px 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.title-line {
  width: 120px;
  height: 3px;
  background-color: #d4832c;
  margin-bottom: 25px;
}

.contact-desc {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 35px; /* 與下方 LINE 留點呼吸空間 */
}

/* LINE 區塊（調整了 margin，對齊左側） */
.line-area {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: auto; /* 若左邊文字較少，會自動推到最下方 */
}

.qrcode-wrapper {
  width: 110px;
  height: 110px;
  background: #ffffff;
  padding: 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.line-qrcode {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.line-btn {
  background-color: #06C755;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease;
  display: inline-block;
}

.line-btn:hover {
  background-color: #05b04b;
}

/* 右側：聯絡卡片 */
.contact-info-side {
  display: flex;
  flex-direction: column;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-icon {
  font-size: 20px;
  margin-top: 2px;
}

.info-content h4 {
  margin: 0 0 5px 0;
  color: #aaaaaa;
  font-size: 15px;
  font-weight: 500;
}

.info-text {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.info-text.highlight {
  font-size: 20px;
  letter-spacing: 0.5px;
}

.info-content small {
  display: block;
  color: #888888;
  margin-top: 4px;
  font-size: 13px;
}

/* 下方地圖（維持高度縮減 320px） */
.contact-bottom-map {
  width: 100%;
}

.map-wrapper {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* RWD 響應式 */
@media (max-width: 991px) {
  .contact-top-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .line-area {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  .map-wrapper {
    height: 250px;
  }
}


/* 當螢幕寬度小於 768px（手機版）時 */
@media (max-width: 768px) {
  .map-wrapper {
    height: 300px; /* 手機版固定高度，確保地圖有撐開 */
  }
}




/*h1*/
.h1title h1{
  color:#222;
}



/* CTA 區塊主容器 */
.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 24px;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 文字區塊 */
.cta-content {
  margin-bottom: 24px;
}

.cta-title {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cta-subtitle {
  font-size: 15px;
  color: #666666;
  margin: 0;
}

/* 按鈕群組容器 */
.cta-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

/* 通用按鈕基礎樣式 */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  min-width: 180px;
}

/* SVG 圖示控制 */
.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* LINE 按鈕樣式 (品牌綠漸層) */
.btn-line {
  background: linear-gradient(135deg, #06C755 0%, #05B34C 100%);
  color: #ffffff;
}

.btn-line:hover {
  background: linear-gradient(135deg, #05B34C 0%, #049F43 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.3);
}

/* 電話按鈕樣式 (內斂科技藍) */
.btn-phone {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #ffffff;
}

.btn-phone:hover {
  background: linear-gradient(135deg, #1a3362 0%, #22447e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 82, 152, 0.3);
}

/* RWD 行動裝置自動變更為單欄堆疊 */
@media (max-width: 768px) {
  .cta-container {
    padding: 32px 16px;
    border-radius: 12px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .cta-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 24px; /* 手機端稍微加寬更好按 */
  }
}




/*footer*/
#footer {
  color: #b6b6b6;
  background-color: #eee;
}

#foot-nav {
  display:none;
}








/* 第一張 */
#banner .swiper-slide[data-swiper-slide-index="0"],
#banner .swiper-slide.swiper-slide-duplicate[data-swiper-slide-index="0"]{
    background-image:url("https://static.iyp.tw/409989/files/36697d74-1ead-4b01-957b-462167909e1f.jpg") !important;
    background-size:cover !important;
    background-position:center !important;
}


/* 第二張 */
#banner .swiper-slide[data-swiper-slide-index="1"],
#banner .swiper-slide.swiper-slide-duplicate[data-swiper-slide-index="1"]{
    background-image:url("https://static.iyp.tw/409989/files/56c64b16-8165-4ee5-b0be-91649b0983ed.jpg") !important;
    background-size:cover !important;
    background-position:center !important;
}


@media(max-width:767px){

#banner .swiper-slide[data-swiper-slide-index="0"],
#banner .swiper-slide.swiper-slide-duplicate[data-swiper-slide-index="0"]{
    background-image:url("https://static.iyp.tw/409989/files/de2d47a0-f5f5-402f-b507-d181616f38e9.jpg") !important;
    height:800px;
}


#banner .swiper-slide[data-swiper-slide-index="1"],
#banner .swiper-slide.swiper-slide-duplicate[data-swiper-slide-index="1"]{
    background-image:url("https://static.iyp.tw/409989/files/a83eced4-4e33-4e5f-abfc-482d12ce0125.jpg") !important;
    height:800px;
}

}



/*Rwd*/
@media (max-width:767px){
    #banner,
    #banner .swiper-container,
    #banner .swiper-wrapper,
    #banner .swiper-slide{
        height:90vh !important;
        /*min-height:550px;*/
    }

    #banner .swiper-slide{
        background-size:cover !important;
        background-position:center center !important;
    }

}

@media (max-width:480px){
    #banner,
    #banner .swiper-container,
    #banner .swiper-wrapper,
    #banner .swiper-slide{
        height:60vh !important;
        /*min-height:550px;*/
    }
}


