/* 當你想為某一個區塊或方塊，增加背景，請在該區塊/方塊上增加class名稱
例如：

在HTML裡：
<div class="abc">我要增加背景</div> 

在css裡：
.abc{
    background-image: url(../images/body_bg.webp);  <------圖檔位置
    background-position: center; <-----圖片在區塊/方塊裡的定位
    background-size: cover;  <-----圖片在區塊/方塊裡的大小
}

 */

/* 補充 
    學習資料
    https://ithelp.ithome.com.tw/articles/10223887
    https://ithelp.ithome.com.tw/articles/10224214
*/

/* 全站背景 */
html {
  scroll-behavior: smooth;
}

/* === 固定背景圖 === */
.bgFixed {
  z-index: -1;
  position: fixed;
  background: url("../images/bgmain.png") repeat-y center top / 2400px;
  height: 100vh;
  width: 100%;
}

@media (min-width: 2100px) {
  .bgFixed {
    background: url("../images/bgmain.png") repeat-y center top / cover;
  }
}

@media (max-width: 1299px) {
  .bgFixed {
    background: url("../images/bgmain.png") repeat-y center top / 2500px;
  }
}

@media (max-width: 991px) {
  .bgFixed {
    background: url("../images/bgmain.png") repeat-y center top / 1800px;
  }
}

@media (max-width: 767px) {
  .bgFixed {
    background: url("../images/bgmain-mb.png") repeat-y center top / 100vw;
  }
}

main {
  background-size: 100% 100%;
  overflow: hidden;
  background-position: top center;
  position: relative;
  background-repeat: repeat-x;
}

/* 按鈕顏色 */
.btnset a {
  color: #ca9f37;
  border: 3px solid #be0602;
  background-color: #fff;
  box-shadow: 3px 5px #880f0f;
  line-height: 1.2;
} /*來去逛逛*/

.btnset a:hover {
  /*    color: rgb(44, 40, 1);*/
  color: #fff;
  border: 3px solid #ffd392;
  background-color: #ca141d;
  box-shadow: 3px 5px #8d6e40;
} /*來去逛逛滑鼠移入*/

.nocarslideinnBox01 {
  background-color: #084b7d;
  padding: 10px;
}

/* 原價特價折疊控制 打開變1列 關掉變2列 */
.productSetprice .priceBox {
  flex-direction: row !important;
}

/* logo區圖片大小控制 */
.logooutbox .logoinn {
  flex-basis: 11%;
}
.swiperCover .swiper-slide-next,
.swiperCover .swiper-slide-last {
  opacity: 0.5;
}

/* .swiper-container-3d .swiper-slide-shadow-left, .swiper-container-3d .swiper-slide-shadow-right{
    background-image: none;
} */

/* 其他東西自己寫這↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */

.squarepppinfoinn-box.pppinfobox {
  background: #075f9e;
  text-decoration: none;
  color: #fff;
}

/* .visualBox{
    background-image: url(../images/vis-bg.png);
    background-repeat: no-repeat;
    background-position: top center;
    
} */
@keyframes teeter3 {
  0% {
    -webkit-filter: brightness(1);
  }

  3% {
    -webkit-filter: brightness(2);
  }

  10% {
    -webkit-filter: brightness(1);
  }

  97% {
    -webkit-filter: brightness(1);
  }

  100% {
    -webkit-filter: brightness(2);
  }
}

.animation_light {
  animation: teeter3 0.5s infinite alternate;
}
#snowMask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url(../images/snow1.png), url(../images/snow2.png);
  -webkit-animation: 15s snow linear infinite;
  animation: 15s snow linear infinite;
  pointer-events: none;
  z-index: 99;
}
@-webkit-keyframes snow {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      500px 500px,
      1000px 500px;
  }
}
@keyframes snow {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      500px 500px,
      1000px 500px;
  }
}

/* 封鎖線 */

/* 統一所有跑馬燈外框的基礎樣式 */
.marquee-container {
  width: 100%;
  height: 45px; /* 統一所有條的寬高 */
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 4px solid #7b0f11;
  border-bottom: 4px solid #7b0f11;
  position: absolute; /* 關鍵：使用絕對定位讓它們可以交疊 */
}

/* 無縫動畫核心：內容重複兩次 */
.scrolling-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-move 15s linear infinite;
}

.img-item {
  display: flex;
  align-items: center;
}

.img-item img {
  height: 30px; /* 統一圖片高度 */
  margin: 0 10px; /* 調整圖片間距，使其看起來更密集 */
  display: block;
}

/* 通用無縫動畫：從 0 移動到 -50% */
@keyframes marquee-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 滑鼠移入暫停 */
.marquee-container:hover .scrolling-track {
  animation-play-state: paused;
}

.sidepanel {
  padding-top: 45px;
}

.sidepanel a {
  padding: 5px 8px 5px 20px;
}

/* ==============================
           具體條紋樣式與交疊定位 
           ============================== */

/* 1. 上層斜條：10deg 往右 */
.slanted-container-1 {
  width: 150vw; /* 寬度加長以覆蓋旋轉後的角落 */
  transform: rotate(8deg) translateX(-8%); /* 旋轉並水平偏移 */
  top: 130px; /* 距離頂部的距離 */
  z-index: -1; /* 較低的層級，在下方 */
  background: linear-gradient(188deg, #f4c322, #f4c322, #f49e17);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* 2. 中間水平條 (壓在最上面) */
.warning-marquee-center {
  top: 150px; /* 位置不變 */
  z-index: 0;
  background: linear-gradient(180deg, #f4c322, #f4c322, #f49e17);
}

/* 3. 下層斜條：-8deg 往左 (再壓在水平條下方) */
.slanted-container-2 {
  width: 150vw;
  transform: rotate(-8deg) translateX(-10%);
  top: 400px;
  z-index: -1;
  background: linear-gradient(172deg, #f4c322, #f4c322, #f49e17);
}
.imgzidex-bg {
  background-image: url(../images/boxd-pd-bg.png);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  margin-top: -45px;
  padding: 45px 0;
}

.carou-bg {
  background-image: url(../images/boxd-bg.png);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding: 20px;
}
.carou-bg2 {
  background-position: top center;
  background-repeat: no-repeat;
}
.carsboxbg.h-100.d-flex.align-items-center.justify-content-center {
  background-color: transparent;
}
.carou-bg .carsboxbg {
  background-color: transparent;
}

.imgzidex-bg2 {
  background-image: url(../images/boxf-pd-bg.png);
  background-position: top center;
  background-repeat: no-repeat;
  padding: 45px 15px;
}
.titleset {
  position: relative;
  z-index: 1;
}
.carou-bg2 {
  margin-top: -40px;
  padding-top: 30px;
}

/* 斷點區 */

@media screen and (max-width: 1659px) {
}
@media screen and (max-width: 1399px) {
}
@media screen and (max-width: 1199px) {
}

@media screen and (max-width: 991px) {
  .slanted-container-2 {
    top: 300px;
  }
}

@media screen and (max-width: 767px) {
  body {
    background-size: contain;
  }
  footer {
    padding-bottom: 15px;
  }
  .actablebox {
    font-size: 14px;
  }
  .actablebox th.table-title {
    font-size: 1.2rem;
  }
  .slanted-container-1 {
    top: 75px;
  }
  .warning-marquee-center {
    top: 90px;
  }
  .marquee-container {
    height: 30px;
  }
  .slanted-container-2 {
    top: 345px;
  }
  .img-item img {
    height: 20px; /* 統一圖片高度 */
    margin: 0 10px; /* 調整圖片間距，使其看起來更密集 */
    display: block;
  }
  .imgzidex-bg2 {
    background-size: contain;
  }
}

@media screen and (max-width: 640px) {
  .logooutbox .logoinn {
    flex-basis: 24%;
  }
}

@media screen and (max-width: 480px) {
}

/* for this page */
.frozenlaundryBox .pdbg {
  background-image: url("../images/bgpd.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
}

.frozenlaundryBox .slidebg {
  background-image: url("../images/slide2bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  padding: 20px 25px 40px 15px;
  overflow: hidden;
  margin-top: -50px;
}

section#method a {
  color: #ffff00;
  padding: 0 3px;
}

section#method a:hover {
  background-color: #ffff00;
  color: #ff0000;
  border-radius: 12px;
}

/* === 灑落金箔 === */
#gold {
  position: fixed;
  pointer-events: none;
  overflow: hidden;
  z-index: 8887;
}
