/*body*/
body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
}


.fcol.fcol-header{
  display:none;
}



/*top*/
.navbar-nav > li > a {
    color: #fff;
}


.topnavbar .container {
  text-align: justify;
  font-size: 0;
  /*text-align: center;*/ 
  padding-top:0px;
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.topnavbar {
  background-color: #fff;
  top:0px;
  position: relative;
  z-index:100;
  width:100%;
  padding: .6rem 0;
  height: 100px;
}


@media(max-width:600px){
   .topnavbar .container {
  text-align: center;
 }
}


/*nav*/
#nav ul li a {
    white-space: nowrap;
    color: #333;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 20px;
    font-size: 100%;
    border-right: 1px #888 dotted;
    transition:all 0.5s;
}

#nav ul li a:hover{
    color: #d00000;
}

#nav ul li.current a  {
    color: #d00000;  
}





/*Banner*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}




/*==========關於大大===============*/
/*About_1*/

#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-1{
  background:#e6423e;
}

#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-1 .container{
   padding:40px 20px;
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: #ffb90b;
  padding: 10px 0;
  border-radius:50px;
  border: 0px solid #fff;
  margin-top: -7%;
  z-index: 99999;
  position: relative;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeMove 20s linear infinite;
}

.marquee span {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/*電話號碼：放大＋柔閃 */
.phone {
  display: inline-block;
  margin: 8px;
  padding: 4px 14px;
  background: #ffffff;
  color: #003b8e;
  border-radius: 24px;
  font-weight: 700;
  text-decoration: none;
  animation: phonePulse 1.6s ease-in-out infinite;
}

/* 跑馬燈動畫 */
@keyframes marqueeMove {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 官網感的閃爍放大 */
@keyframes phonePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(255,255,255,0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255,255,255,0);
  }
}

/* 手機優化 */
@media (max-width: 768px) {
  .marquee span {
    font-size: 16px;
  }
  .phone {
    padding: 3px 10px;
  }
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 10px;
}

.area-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}


@media(max-width:1024px){
  .area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px,2fr));
  gap: 10px;
  }
}

@media(max-width:600px){
.marquee-wrap {
  margin-top: 0%;
 }
}




/*About_2*/
#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-2{
  background:#e6423e;
  position: relative;
  overflow: hidden;
}



#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-2::before {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 550px;  /* 調整人物顯示寬度 */
    height: 100%;  /* 調整人物顯示高度 */
    background: url(https://static.iyp.tw/409867/files/8e7799ee-a1e7-4846-b27b-721f5b3ed70c.png) no-repeat right bottom;
    background-size: contain;
    z-index: 1;    /* 確保在底色之上 */
    pointer-events: none; /* 避免擋住文字點擊 */
}

@media (max-width:900px) {
#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-2::before {
    right: -8%;
    width: 450px;
  }
}

@media (max-width: 768px) {
    #bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-2::before {
        display: none; /* 或者調整 background-size 讓它變小 */
    }
}


/* 主視覺 */
.broadband-upgrade {
  background: transparent;
  padding-bottom: 80px;
}

.hero {
  text-align: center;
  padding: 0px 20px 60px;
  color: #fff;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 22px;
  line-height: 1.5;
  color: #ffd2d2;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span {
  background: #ffa422;;
  padding: 8px 18px;
  border-radius: 30px;
  margin: 0 6px;
  font-size: 14px;
}


.promo-bar {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  position: relative;
}

.promo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-title h2 {
  font-size: 22px;
  color: #c62828;
}

.promo-points {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
  display: flex;
  gap: 16px;
  color: #555;
  font-size: 15px;
}

.promo-right {
  text-align: right;
}

.btn {
  display: block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
}

.btn.phone {
  background: #ff8604;
}

.btn.line {
  background: #06c755;
}

.promo-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: #ff9800;
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
}

@media(max-width:1400px){
.promo-bar {
  justify-content: center;
  }
}

@media(max-width:1280px){
.promo-bar {
  justify-content: start;
  }
}

@media(max-width:1280px){
.promo-right {
  text-align: center;
  margin-left: 5%;
 }
}

@media(max-width:480px){
.promo-bar {
  display: grid;
  }
}

/* 優惠區 */
.promo {
  max-width: 1100px;
  margin: -40px auto 70px;
  background: #fff;
  border-radius: 20px;
  padding: 35px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.15);
  flex-wrap: wrap;
}

.promo-left h2 {
  color: #c62828;
  font-size: 24px;
}

.promo-left p {
  color: #555;
  margin-top: 10px;
}

.promo-right {
  text-align: center;
}

.staff {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.promo-right a {
  display: block;
  margin-top: 8px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: bold;
}

.phone {
  background: #c62828;
  color: #fff;
}

.line {
  background: #06c755;
  color: #fff;
}




/*About_3*/
#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-3{
  background:url(https://static.iyp.tw/409867/files/47a1e0e0-ea0e-4147-99c0-bec272b7a256.jpg)no-repeat;
  background-size:cover;
  background-position:top center;
}

.plans {
  padding: 80px 20px;
  font-family: "Noto Sans TC", sans-serif;
}

.plans-title {
  text-align: center;
  font-size: 40px;
  color: #c20000;
  margin-bottom: 50px;
}

h2.plans-title {
  text-align: center;
  font-size: 36px;
  color: #c20000;
  letter-spacing:0.2rem;
}

/* 三方案格線 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* 卡片 */
.plan-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  text-align: center;
  position: relative;
}

.plan-card h3 {
  font-size: 22px;
  margin: 20px 0;
  color: #b71c1c;
}

/* 標籤 */
.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #b71c1c;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.plan-tag.hot {
  background: #ff9800;
}

/* 清單 */
.plan-list,
.price-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.plan-list li,
.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 15px;
}

.price-list strong {
  color: #d32f2f;
  font-size: 18px;
}

/* 備註 */
.plan-note {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.plan-note.strong {
  color: #c62828;
  font-weight: bold;
}

/* 主推方案 */
.plan-card.highlight {
  border: 3px solid #c62828;
  transform: scale(1.05);
}

/* 底部 */
.plan-footer {
  max-width: 900px;
  margin: 60px auto 0;
  text-align: center;
  font-size: 15px;
  color: #444;
  line-height: 1.8rem;
}

.plan-footer .phone a {
  color: #c62828;
  font-weight: bold;
  text-decoration: none;
}


.dm.row{
  margin-top:-6%;
  z-index:99999;
  position:relative;  
}

.dm.row img{
  transition: transform .35s ease, box-shadow .35s ease;
}

.dm.row img:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}


@media (max-width: 1280px) {
  .dm.row {
    margin-top: 3%;
    z-index: 1;
    position: relative;
  }
}


/*About_5 服務區域 */
#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-5{
  background:url(https://static.iyp.tw/409867/files/e665a792-3bbc-4e9b-b1b5-64f21aa4cdaf.png)no-repeat;
  background-size:cover;
  background-position:top center;
}


#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-5 .container{
  padding:60px 20px;
}



@media(max-width:768px){
  .area.row .col-2{
    flex:0 0 100%;
    max-width:100%;
  }
}

/* 標題 */
.area-title {
  text-align: center;
  font-size: 30px;
  color: #0b2b5b;
  margin-bottom: 40px;
}

/* 手機左右滑動容器 */
.area-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 20px 30px;
  scroll-snap-type: x mandatory;
}

.area-scroll::-webkit-scrollbar {
  display: none;
}

/* 卡片 */
.area-card {
  position: relative;
  /*min-width: 280px;*/
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 0px;
  padding: 26px;
  text-decoration: none;
  color: #333;
  scroll-snap-align: start;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Hover 微動畫 */
.area-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

/* 內文 */
.area-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.area-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

/* CTA */
.area-card .cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: bold;
  color: #06c755;
}

/* 標籤 */
.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
}

/* 標籤色 */
.hot .tag {
  background: linear-gradient(135deg, #ff5252, #ff9800);
}

.available .tag {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
}

/* 區域底色 */
.taoyuan { background: #df5151; }
.north   { background: #f29d30; }
.hsinchu { background: #ffd531; }
.miaoli  { background: #98b750; }

/* 桌機排版 */
@media (min-width: 1024px) {
  .area-scroll {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .area-card {
    min-width: 260px;
  }
}


/* 浮動 CTA */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-cta a {
  text-decoration: none;
  color: #fff;
  padding: 14px 20px;
  border-radius: 40px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.floating-cta a:first-child {
  background: #ff8604;
}
.floating-cta a:last-child {
  background: #06c755;
}




/*About_6*/
#bodyinpage.rwd-collapse.viewmode.default.nan-taoyuan .fcol.fcol-6{
   display:none;
}



/*北視方案*/
.card.container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
     margin-top: 5%;
}

/* 卡片基礎樣式 */
.card.container .card {
    background: transparent;
    border-radius: 20px;
    width: 320px;
    position: relative;
    box-shadow: none;
    padding: 40px 20px 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.card.container .card:hover {
    transform: translateY(-5px);
}

/* 頂部標籤 */
.card.container .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #c82333;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.card.container .popular .badge {
    background: #ff9800; /* 熱門標籤顏色 */
}

/* 顏色區分 */
.card.container .pink { border-top: 0px solid #f8d7da;background:#f8d7da;}
.card.container .blue { border-top: 0px solid #d1ecf1;background:#d1ecf1;}
.card.container .green { border-top: 0px solid #d4edda;background:#d4edda;}

/* 內容樣式 */
.card.container .title {
    color: #444;
    font-size: 1.4rem;
    margin-bottom: 25px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight {
    color: #e60000;
    font-weight: bold;
}

.price-box {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card.container .details {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    color: #555;
    line-height: 2;
}

/* 列表式價格 */
.card.container .price-list {
    text-align: left;
    margin-bottom: 20px;
}

.card.container .price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
}

.card.container .price-item strong {
    font-size: 1.1rem;
}

/* 底部註記 */
.card.container .footer-note {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-top: 20px;
}

.card.container .footer-promo {
    color: #c82333;
}

/* 針對熱門方案的強化 */
.card.container .popular {
    border: 2px solid #ff9800;
}


/*================Contact==============*/
@media(max-width:768px){
  .cont.row .col-2{
    flex: 1 0 100%;
    max-width: 100%;
  }  
}

@media(max-width:480px){
  .code.row .col-2{
    flex: 1 0 100%;
    max-width: 100%;
  }  
}




/*QA按鈕2*/
.myButton2 {
    background: linear-gradient(to bottom, #eae0c2 5%, #ccc2a6 100%);
    background-color: #eae0c2;
    border-radius: 15px;
    display: inline-block;
    cursor: pointer;
    color: #b08d56;
    font-size: 32px;
    font-weight: bold;
    text-decoration: none;
    padding: 40px;
    width: 100%;
    height: auto;
    line-height: 1.2;
    text-align: center;
    position: relative;
    overflow: hidden; /* 防止文字溢出 */
    word-wrap: break-word;
    word-break: break-word;
    transition: color 0.3s ease; /* 添加文字顏色過渡效果 */
}


.myButton2::before {
    content: ""; /* 必須有內容才能顯示 */
    position: absolute;
    top: 0;
    left: -100%; /* 初始位置在左邊 */
    width: 100%;
    height: 100%;
    background: rgba(194, 14, 14, 0.7); /* 半透明黃色覆蓋層 */
    z-index: 1; /* 確保位於文字下方但高於背景圖片 */
    transition: all 0.4s ease; /* 平滑動畫過渡 */
}

.myButton2:hover::before {
    left: 0; /* 懸停時將黃色覆蓋層移動到按鈕上 */
}

.myButton2:hover {
    color: #fff; /* 懸停時文字顏色變暗 */
}

.myButton2 span {
    position: relative; /* 確保文字位於覆蓋層上方 */
    z-index: 2;
}

.btn.btn-outline {
    background:#3297d7;
    color: #fff;
    display: block;
    vertical-align: middle;
    width:100%;
    font-size: 22px;
    font-weight: 300;
    letter-spacing:1px;
    height: 80px;
    line-height: 70px;
    padding: 0 30px;
    cursor: pointer;
    border-radius: 15px;
    font-weight: bold;
    transition:
    
}


.btn.btn-outline:hover {background:#30b0c7;}


/*=============footer===========*/
#footer{
  border-top:4px solid #c62828;
}


#foot-nav{
  display:none;
}
