/* noto-sans-tc-regular - chinese-traditional_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/sanstc400.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-tc-500 - chinese-traditional_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/sanstc500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@media (min-width:1200px){
/* noto-serif-jp-regular - japanese */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/serif400.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
	}}
:root {
  /* --- 品牌色彩 (Brand Colors) --- */
  --cleansui-red: #D8000F;
  --cleansui-blue: #0075C2;
  --cleansui-black: #111;
  --cleansui-gray-text: #595757;
  --cleansui-gray-mid: #9FA0A0;
  --cleansui-gray-bg: #F2F2F3;
  --upyoung-blue: #00338D;
  /* --- UI 變數 --- */
  --font-base: "Arial", "Noto Sans TC", sans-serif;
  --border-radius-pill: 50px;
  /* --- [系統化] 字距變數 (Letter Spacing System) --- */
  /* SM: 內文、長段落、Meta資訊 (約 0.8px ~ 1.2px) */
  --ls-sm: 0.06rem;
  /* MD: 按鈕、表單、標籤、小標題 (約 1.6px) */
  --ls-md: 0.1rem;
  /* LG: 導覽列、區塊副標題、中標題 (約 4px) */
  --ls-lg: 0.25rem;
  /* XL: Hero大標題、頁面主標題 (約 8px) */
  --ls-xl: 0.5rem;
}

body {
  font-family: var(--font-base);
  color: var(--cleansui-gray-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 2;
  text-align: justify;
  letter-spacing: var(--ls-sm); /* [統一] 內文預設字距 */
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
a:hover {
  color: var(--cleansui-red);
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  color: var(--cleansui-black);
  letter-spacing: var(--ls-lg); /* [統一] 標題預設較寬 */
}
.text-primary {
  color: var(--cleansui-blue);
}
/* =========================================
   [BTN] 全站統一按鈕系統
========================================= */
/* 樣式 1: 框線按鈕 (Outline) */
.btn-style-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: transparent;
  border: 2px solid var(--cleansui-black);
  color: var(--cleansui-black);
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: var(--ls-md); /* [統一] 按鈕字距 */
  transition: all 0.3s ease;
  margin-top: 20px;
}
.btn-style-outline:hover {
  background-color: var(--cleansui-blue);
  border-color: var(--cleansui-blue);
  color: #fff;
  transform: translateY(-2px);
}
/* 樣式 2: 實心按鈕 (Solid) */
.btn-style-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: var(--cleansui-black);
  border: 2px solid var(--cleansui-black);
  color: #fff;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: var(--ls-md); /* [統一] 按鈕字距 */
  transition: all 0.3s ease;
}
/* 樣式 2: 實心按鈕 (Solid) */
.btn-style-solid a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: var(--cleansui-black);
  border: 2px solid var(--cleansui-black);
  color: #fff!important;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none!important;
  letter-spacing: var(--ls-md); /* [統一] 按鈕字距 */
  transition: all 0.3s ease;
}
.btn-style-solid:hover {
  background-color: var(--cleansui-red);
  border-color: var(--cleansui-red);
  color: #fff;
}
/* =========================================
   1. TOP BAR
========================================= */
.top-bar {
  background-color: var(--cleansui-gray-bg);
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  color: #666;
  position: relative;
}
.top-bar .container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.distributor-text {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  z-index: 2;
  letter-spacing: var(--ls-sm); /* [統一] 小字使用小間距 */
}
.top-logo {
  height: 50px;
  display: block;
}
@media (max-width: 992px) {
  .distributor-text {
    display: none;
  }
}
/* =========================================
   2. NAVBAR & MEGA MENU
========================================= */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
@media (min-width: 1200px) {
  .navbar {
    padding: 0;
  }
  .nav-link {
    font-weight: 500;
    color: #333 !important;
    font-size: 15px;
    margin: 0 15px;
    letter-spacing: var(--ls-lg); /* [統一] 導覽列較寬間距 */
    position: relative;
    padding: 25px 0;
  }
  .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--cleansui-blue);
    transition: 0.3s;
    transform: translateX(-50%);
  }
  .nav-link:hover::before {
    width: 90%;
  }
  .dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 0.4em;
    vertical-align: 0.1em;
    color: #999;
    transition: color 0.3s;
  }
  .nav-link:hover .dropdown-toggle::after {
    color: var(--cleansui-red);
  }
  .dropdown-mega {
    position: static;
  }
  .dropdown-menu {
    display: none;
    width: 100vw;
    left: 0 !important;
    right: auto;
    top: 100% !important;
    margin-top: 0 !important;
    border: none;
    padding: 60px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #eee;
    background: #fff;
    z-index: 1000;
    border-radius: 0;
  }
  .nav-item.dropdown:hover .dropdown-menu, .dropdown-menu:hover {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  .mega-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 0 15px;
  }
  .product-nav-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 8px;
    transition: 0.2s;
  }
  .product-nav-item:hover {
    background-color: #f9f9f9;
  }
  .product-nav-item img {
    width: 100%!important;
    object-fit: contain;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) translateX(-50%);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
}
@media (max-width: 1399.98px) {
  .navbar-brand {
    max-width: 30%;
    flex-shrink: 1;
    margin-right: 0;
  }
}
@media (max-width: 1199.98px) {
  .navbar .container {
    flex-wrap: nowrap;
  }
  .navbar-brand {
    max-width: 70%;
    flex-shrink: 1;
    margin-right: 0;
  }
  .navbar-brand img {
    height: 28px;
    width: auto;
  }
  .navbar-collapse {
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    height: calc(100vh - 71px);
    background: #fff;
    padding: 0;
    overflow-y: auto;
    border-top: 1px solid #eee;
  }
  .navbar-nav {
    padding: 0;
  }
  .nav-item {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-link {
    font-size: 16px;
    padding: 18px 25px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000 !important;
    font-weight: 500;
  }
  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: #f7f7f7;
    padding: 0;
    margin: 0;
    display: none;
  }
  .dropdown-menu.show {
    display: block;
  }
  .mega-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  .product-nav-item {
    /*width: 100%;*/
    padding: 12px;
    /*border-bottom: 1px solid #eee;*/
    /*display: flex;*/
    align-items: center;
    background: transparent;
  }
  .product-nav-item img {
    width: 100%;
    margin-right: 15px;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
  }
  .product-info h5 {
    font-size: 15px;
	  text-align: center;
	  margin-top: 15px;
    margin-bottom: 0;
	  color:var( --cleansui-gray-text);
  }
  .product-info span {
    font-size: 12px;
    color: var(--cleansui-red);
  }
}
/* ==========================================================================
   [HERO] CLEANSUI
   ========================================================================== */
.hero-cleansui-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 650px;
  max-height: 900px;
  background-color: #fff;
  overflow: hidden;
}
.hero-inner, .hero-list {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  visibility: hidden;
  z-index: auto !important;
  opacity: 1;
  pointer-events: none;
}
.hero-item.active, .hero-item.prev, .hero-item.next {
  visibility: visible;
}
.hero-item.active {
  pointer-events: auto;
}
.hero-item-head {
  width: 41.666667%; /* col-5 */
  height: 100%;
  background-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10%;
  position: relative;
  z-index: 30 !important;
}
.hero-item-head-inner {
  width: 90%;
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.hero-title {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #111;
  letter-spacing: var(--ls-xl); /* [統一] 大標題 */
}
.hero-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.8;
  letter-spacing: var(--ls-sm); /* [統一] 描述文字 */
}
.hero-item.active .hero-item-head-inner {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.5s;
}
.hero-item.prev .hero-item-head-inner, .hero-item.next .hero-item-head-inner {
  opacity: 0;
  transform: translateY(-60px);
  transition-delay: 0s;
  transition-duration: 0.8s;
}
.hero-item-image {
  width: 58.333333%; /* col-7 */
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  overflow: hidden;
  background-color: #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateX(100%);
  transition: transform 1.2s cubic-bezier(0.65, 0.05, 0.36, 1);
  z-index: 10 !important;
  cursor: pointer;
}
.hero-item.active .hero-item-image {
  transform: translateX(0%);
}
.hero-item.prev .hero-item-image {
  transform: translateX(-100%);
}
.hero-item.next .hero-item-image {
  transform: translateX(100%);
}
.hero-item.no-transition .hero-item-image {
  transition: none !important;
}
.hero-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 41.666667%;
  height: 100%;
  background-color: #fff;
  z-index: 20 !important;
  pointer-events: none;
}
.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 41.66%;
  transform: translateX(-140%);
  z-index: 40;
  display: flex;
  gap: 10px;
}
.control-btn {
  width: 50px;
  height: 50px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.control-btn:hover {
  background-color: #222;
  border-color: #222;
  color: #fff;
}
@keyframes mobileFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mobileImgFade {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* =========================================
   [Mobile Layout V4 - All Centered]
   修正：強制全部置中、清除桌機偏移、圖片 16:9、按鈕不重疊
========================================= */
@media (max-width: 1199.98px) {

    /* 1. 外層容器設定 */
    .hero-cleansui-section{
        height: 56vh !important;
        min-height: 600px;
        max-height: 900px;
        position: relative;
        overflow: hidden;
        padding: 0 !important;
        background-color: #fff !important;
    }

    /* 2. 輪播項目：垂直排列 (圖上文下) */
    .hero-item{
        display: flex !important;
        flex-direction: column-reverse !important; 
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        transform: translateX(100%); 
        opacity: 0;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out !important;
        pointer-events: none;
        animation: none !important;
        background-color: #fff !important;
    }

    /* 3. 圖片區域：強制 16:9 比例 & 滿寬 */
    .hero-item-image{
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important; /* 維持 16:9 比例 */
        flex: 0 0 auto !important;     /* 固定高度不縮放 */
        
        /* 清除桌機版定位干擾 */
        right: auto !important; top: auto !important; left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        margin: 0 !important;
    }
    
    .hero-item-image img{
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 4. 文字區域：強制置中 & 清除偏移 */
    .hero-item-head{
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        flex: 1 1 auto !important; /* 自動填滿剩餘空間 */
        
        /* [關鍵] 修正內距：上下留白，左右 20px，底部預留 80px 給箭頭 */
        padding: 30px 20px 80px 20px !important; 
        
        /* [關鍵] Flex 置中大法 */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; 
        align-items: center !important;     /* 水平置中 */
        text-align: center !important;      /* 文字置中 */
        
        background-color: #fff !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-item-head-inner {
        width: 100% !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        
        /* 確保內部也是置中 */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 5. 標籤與副標題 (Product | 日本製) 置中修正 */
    /* 針對包住標籤的那個 div (通常有 class mb-0) */
    .hero-item-head-inner > div{
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        flex-wrap: wrap; /* 防止標籤太多爆行 */
    }

    /* 6. 文字大小與排版 */
    .hero-title {
        font-size: 1.6rem !important; /* 稍微縮小避免爆版 */
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        width: 100% !important;
        white-space: normal !important; /* 允許換行 */
    }

    .hero-desc {
        font-size: 1rem !important;
        text-align: justify !important; /* 手機閱讀體驗優化 */
        text-align-last: center !important; /* 最後一行置中 */
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }

 
    /* 左右箭頭控制列 */
    .hero-controls{
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 20px !important; /* 固定在底部 */
        width: 100% !important;
        justify-content: center !important;
        gap: 20px !important;
        z-index: 50 !important;
        pointer-events: auto !important;
    }

    /* 8. 狀態與動畫 */
    .hero-item.active{
        opacity: 1 !important;
        transform: translateX(0%) !important;
        z-index: 2;
        pointer-events: auto;
    }
    .hero-item.next{
        opacity: 1 !important;
        transform: translateX(100%) !important;
        z-index: 1;
    }
    .hero-item.prev{
        opacity: 1 !important;
        transform: translateX(-100%) !important;
        z-index: 1;
    }

    /* 9. 隱藏不必要的遮罩 */
    .hero-list::before, .prod-list::before {
        display: none !important;
    }
}
/* =========================================
   SEARCH OVERLAY
========================================= */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.search-overlay.active {
  opacity: 1;
  display: flex !important;
}
.search-container {
  width: 70%;
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 10000;
}
.search-group {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.search-icon-lead {
  font-size: 2rem;
  color: #999;
  margin-right: 20px;
}
.search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 2rem;
  font-weight: 500;
  color: #333;
  outline: none;
  letter-spacing: var(--ls-md); /* [統一] */
}
.search-input::placeholder {
  color: #ccc;
  font-weight: 300;
}
.search-helper {
  font-size: 14px;
  color: #888;
  letter-spacing: var(--ls-sm); /* [統一] */
}
.close-search-btn {
  position: absolute;
  top: -80px;
  right: 0;
  font-size: 2.5rem;
  color: #333;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.close-search-btn:hover {
  transform: rotate(90deg);
  color: var(--cleansui-red);
}
@media (max-width: 768px) {
  .search-container {
    width: 85%;
  }
  .search-input {
    font-size: 1.5rem;
  }
  .close-search-btn {
    top: -50px;
    font-size: 2rem;
  }
}
/* =========================================
   FOOTER STYLES
========================================= */
.site-footer {
  background-color: #EFEFEF;
  color: #595757;
  padding: 60px 0;
  font-size: 14px;
  margin-top: 0;
}
.footer-nav {  font-weight: 500;
  letter-spacing: var(--ls-md); /* [統一] Footer 導覽 */
  color: #333;
}
.footer-link {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
.footer-link:hover {
  color: #000;
}
.footer-nav .divider {
  margin: 0 10px;
  color: #999;
  font-weight: 300;
}
.social-icons a {
  display: inline-block;
  margin-left: 15px;
  font-size: 1.5rem;
  color: #666;
  transition: 0.3s;
}
.social-icons a:hover {
  color: #000;
}
@media (max-width: 767.98px) {
  .social-icons a {
    margin-left: 0;
    margin-right: 20px;
  }
  .footer-nav {
    margin-bottom: 20px;
  }
}
.border-bottom-custom {
  padding-bottom: 20px;
  margin-bottom: 30px !important;
}
.contact-info p {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #555;
  letter-spacing: var(--ls-sm); /* [統一] */
}
.distributor-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls-md); /* [統一] */
  color: #333;
  margin-bottom: 10px;
}
.copyright-text {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05rem; /* [統一] 版權文字維持微小 */
}
@media (max-width: 991.98px) {
  .site-footer {
    padding: 40px 0;
  }
  .text-lg-end {
    text-align: left !important;
  }
  .copyright-group {
    margin-top: 30px;
  }
}
.search-submit-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-submit-btn .search-icon-lead {
  margin-right: 15px;
  color: #999;
  font-size: 2rem;
  transition: 0.3s;
}
.search-submit-btn:hover .search-icon-lead {
  color: var(--cleansui-red);
}
@media (max-width: 768px) {
  .search-submit-btn .search-icon-lead {
    font-size: 1.5rem;
    margin-right: 10px;
  }
}
/* ==========================================================================
   2. ABOUT SECTION
   ========================================================================== */
.about-cleansui-section {
  position: relative;
  background-color: #fff;
  overflow: hidden;
  padding: 0;
}
.about-left-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 30px;
  position: relative;
  z-index: 2;
}
.about-blob-bg {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: url("../img/water.webp") center no-repeat;
  width: 700px;
  height: 1000px;
  top: auto;
  left: -350px;
}
.about-slogan-wrap {
  position: relative;
  z-index: 5;
}
.jp-slogan {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--cleansui-gray-text);
  letter-spacing: 2rem; /* [例外] 垂直日文標語維持特殊設計 */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 2;
}
.about-right-col {
  position: relative;
}
.about-image-box {
  position: relative;
  width: 100%;
  z-index: 1;
  right: 20%;
}
.about-image-box img {
  width: 100%;
  height: auto;
  display: block;
}
.about-content-box {
  position: absolute;
  bottom: 2%;
  left: 30%;
  z-index: 10;
  max-width: 480px;
  padding: 3rem;
}
.section-subtitle {
  font-size: 0.7rem;
  letter-spacing: var(--ls-lg); /* [統一] */
  color: var(--cleansui-gray-mid);
  margin-bottom: 1rem;  font-weight: 500;
}
.about-heading {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--cleansui-black);
  line-height: 1.3;
  letter-spacing: var(--ls-xl); /* [統一] */
}
.about-text {
  font-size: 1rem;
  color: var(--cleansui-gray-text);
  line-height: 2;
  margin-bottom: 2rem;
  text-align: justify;
  letter-spacing: var(--ls-sm); /* [統一] */
}
@media (max-width: 1199.98px) {
  .about-cleansui-section {
    padding-top: 60px;
  }
  .about-left-col {
    padding: 0 20px;
    justify-content: center;
    width: 100%;
    min-height: auto;
    margin-bottom: 30px;
  }
  .about-blob-bg {
    left: -360px;
    top: 100px;
    background-size: 45%;
  }
  .jp-slogan {
    writing-mode: horizontal-tb;
    font-size: 2rem;
    letter-spacing: 0.6rem;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    color: #111;
    font-family: "Noto Sans TC", serif;
    font-weight: 400;
  }
  .jp-slogan-sub {
    display: block;
    margin-top: 5px;
    margin-left: 0;
  }
  .about-right-col {
    display: flex;
    flex-direction: column;
  }
  .about-content-box {
    position: relative !important;
    bottom: auto;
    left: auto;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 30px 40px 30px;
    max-width: 100%;
    text-align: center !important;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-heading {
    font-size: 1.8rem;
  }
  .about-text {
    text-align: center;
    text-align-last: center;
  }
  .about-content-box .btn-style-outline {
    margin-top: 0;
  }
  .about-image-box {
    order: 1;
    width: 100%;
    height: auto;
    right: auto;
  }
}
/* ==========================================================================
   3. PRODUCT SECTION (V7.0 - 21:9 比例鎖定版)
   特色：
   1. [關鍵] 嚴格鎖定圖片為 21:9 比例 (CSS aspect-ratio)
   2. [Desktop] 高度由寬度自動換算 (約 25vw)，確保右側圖片完美 21:9
   3. [Mobile] 圖片變為 100% 寬的 21:9 橫幅
   ========================================================================== */
/* 1. 容器設定 */
.product-cleansui-section {
  position: relative;
  width: 100%;
  background-color: #fff;
  overflow: hidden;
  margin-top: 0;
  /* [電腦版關鍵] 
       計算公式：100vw * (7/12 grid) * (9/21 ratio) ≈ 25vw
       這讓整個區塊的高度，剛好等於右邊那張 21:9 圖片的高度 */
  height: 25vw;
  /* [保險] 避免螢幕太窄時高度太矮切到文字，設定最小高度 */
  min-height: 500px;
}
.prod-inner, .prod-list {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
/* 2. Slide Item */
.prod-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  visibility: hidden;
  z-index: auto !important;
  opacity: 1;
  pointer-events: none;
}
.prod-item.active, .prod-item.prev, .prod-item.next {
  visibility: visible;
}
.prod-item.active {
  pointer-events: auto;
}
/* 3. 左側文字區塊 (5/12) */
.prod-item-head {
  width: 41.666667%;
  height: 100%;
  background-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 30 !important;
  padding-left: 10%;
}
.prod-item-head-inner {
  width: 90%;
  ;
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.prod-item-head-inner .hero-title {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--cleansui-black);
  letter-spacing: 0.4rem;
  margin-top: 15px;
}
/* 文字動態 */
.prod-item.active .prod-item-head-inner {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.5s;
}
.prod-item.prev .prod-item-head-inner, .prod-item.next .prod-item-head-inner {
  opacity: 0;
  transform: translateY(-60px);
  transition-delay: 0s;
  transition-duration: 0.8s;
}
/* 4. 右側圖片區塊 (7/12) - 嚴格 21:9 */
.prod-item-image {
  width: 58.333333%;
  height: 100%; /* 高度跟隨父層 (父層已設為 21:9 對應高度) */
  position: absolute;
  right: 0;
  top: 0;
  overflow: hidden;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform 1.2s cubic-bezier(0.65, 0.05, 0.36, 1);
  z-index: 10 !important;
}
/* 圖片本體設定 */
.prod-item-image img {
  width: 100%;
  height: 100%;
  /* [關鍵] 讓圖片填滿容器 */
  object-fit:contain;
  /* [可選] 如果您希望圖片永遠顯示中間，可改 center center */
  object-position: left center;
}
.prod-item.active .prod-item-image {
  transform: translateX(0%);
}
.prod-item.prev .prod-item-image {
  transform: translateX(-100%);
}
.prod-item.next .prod-item-image {
  transform: translateX(100%);
}
.prod-item.no-transition .prod-item-image {
  transition: none !important;
}
/* 5. 白色遮罩 */
.prod-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 41.666667%;
  height: 100%;
  background-color: #fff;
  z-index: 20 !important;
  pointer-events: none;
}
/* 6. 按鈕位置 */
.prod-controls {
  position: absolute;
  bottom: 30px;
  left: 41.66%;
  transform: translateX(-140%);
  z-index: 40;
  display: flex;
  gap: 10px;
}
/* =========================================
   RWD 手機版 (強制 21:9)
   ========================================= */
@media (max-width: 1199.98px) {
  .product-cleansui-section {
    height: auto;
    min-height: auto;
    padding: 60px 0;
  }
  .prod-item {
    position: relative;
    display: none;
    flex-direction: column-reverse;
    opacity: 1;
    pointer-events: auto;
  }
  .prod-item.active {
    display: flex;
  }
  .prod-item.prev, .prod-item.next {
    display: none;
  }
  /* [圖片動態] 21:9 圖片淡入 */
  .prod-item.active .prod-item-image {
    animation: mobileImgFade 0.8s ease-out forwards;
  }
  .prod-item-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    height: auto;
    position: relative;
    transform: none !important;
    right: auto;
    top: auto;
    opacity: 0; /* 預設透明 */
  }
  .prod-item-head {
    width: 100%;
    height: auto;
    padding: 40px 20px 120px 20px;
    text-align: center !important;
    justify-content: center;
    background-color: #fff !important;
  }
  /* [文字動態] 文字上浮 */
  .prod-item.active .prod-item-head-inner {
    text-align: center !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 執行動畫 */
    animation: mobileFadeInUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
  }
  .prod-list::before {
    display: none !important;
  }
  .prod-controls {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* ==========================================================================
   4. NEWS SECTION
   ========================================================================== */
.news-cleansui-section {
  position: relative;
  background-color: #fff;
  overflow: hidden;
 padding: 60px 0;	
}
.news-header-col {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 120px 0;
  background-color: #fff;
  padding-left: 10%;
}
.news-header-inner {
  width: 90%;
  text-align: left;
}
.news-header-col .hero-title {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--cleansui-black);
  letter-spacing: var(--ls-xl); /* [統一] */
  margin-top: 15px;
}
.news-list-col {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding-left: 0;
}
.news-list-inner {
  width: 100%;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 40px 30px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 40px;
}
.news-item:hover {
  background-color: #fafafa;
}
.news-thumb {
  width: 30%;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f0f0f0;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.news-item:hover .news-thumb img {
  transform: scale(1.08);
}
.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #999;
}
.news-date {
  font-family: "Helvetica Neue", sans-serif;
  letter-spacing: var(--ls-sm); /* [統一] */
  margin-right: 15px;
}
.badge-cat {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 50rem;
  font-weight: 500;
  letter-spacing: var(--ls-md); /* [統一] */
  white-space: nowrap;
}
.cat-brand {
  background-color: rgba(255, 233, 233, 1.00);
  color: var(--cleansui-red);
}
.cat-knowledge {
  background-color: rgba(0, 117, 194, 0.1);
  color: var(--cleansui-blue);
}
.news-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.5;
  letter-spacing: var(--ls-lg); /* [統一] */
  transition: color 0.3s;
  text-align: left;
}
.news-item:hover .news-title {
  color: var(--cleansui-red);
}
.news-desc {
  font-size: 0.95rem;
  color: var(--cleansui-gray-text);
  line-height: 1.8;
  text-align: justify;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: var(--ls-sm); /* [統一] */
}
@media (max-width: 1199.98px) {

.news-cleansui-section {
 padding: 0;	
	margin-top: 0;

}}
/* =========================================
   [PAGINATION] 完整分頁樣式
========================================= */
.cleansui-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    gap: 5px; /* 稍微縮小間距，讓多頁碼時不會太寬 */
}

.page-link-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; /* 改用 min-width 確保數字多時不爆版 */
    height: 40px;
    color: #999;
    text-decoration: none;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent; /* 預留邊框位置 */
    transition: all 0.3s;
    padding: 0 5px;
}

/* Hover 狀態 */
.page-link-custom:hover:not(.disabled) {
    color: #333;
    border-bottom-color: #eee; /* Hover 時顯示淺灰線 */
}

/* Active 當前頁面狀態 */
.page-link-custom.active {
    color: #000;  font-weight: 500;
    border-bottom-color: #000; /* 選中時顯示黑線 */
    cursor: default;
    pointer-events: none; /* 當前頁面不可重複點擊 */
}

/* Disabled 禁用狀態 (用於上一頁/下一頁不可點，或省略號) */
.page-link-custom.disabled {
    color: #e0e0e0; /* 很淺的灰色 */
    pointer-events: none; /* 禁止滑鼠事件 */
    cursor: default;
    border-bottom-color: transparent !important;
}

/* 上一頁/下一頁 按鈕微調 */
.page-prev, .page-next {
    font-size: 1.2rem;
    color: #333;
}
/* 讓箭頭預設深色一點，除非 disabled */
.page-prev:not(.disabled), 
.page-next:not(.disabled) {
    color: #333;
}
.page-prev:hover:not(.disabled), 
.page-next:hover:not(.disabled) {
    color: #E60012; /* Hover 變品牌紅 */
    border-bottom-color: transparent; /* 箭頭不需要底線 */
}
@media (max-width: 991px) {
  .news-card {
    margin-bottom: 40px;
  }
  .news-thumb {
    margin-bottom: 20px;
  }
  .news-title {
    font-size: 1.3rem;
  }
  .warranty-tab-item {
    padding: 15px 20px;
    font-size: 1rem;
  }
}
.news-header-simple {
  padding-top: 40px;
  padding-bottom: 0px;
}
.news-header-simple h1 {
  font-size: 1.8rem !important;
  font-weight: 500;
  letter-spacing: var(--ls-lg); /* [統一] */
}
@media (max-width: 1199.98px) {
  .news-header-col .hero-title {
    font-size: 2rem;
  }
  .news-header-col {
    padding: 0px 20px 20px 20px;
    padding-left: 20px;
    justify-content: center;
  }
  .news-header-inner {
    width: 100%;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .news-list-col {
    padding: 0 20px 80px 20px;
  }
  .news-list-inner {
    padding: 0;
    width: 100%;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 0;
  }
  .news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .news-desc {
    -webkit-line-clamp: 4;
    font-size: 1rem;
  }
}
/* ==========================================================================
   5. DISTRIBUTOR SECTION
   ========================================================================== */
.distributor-section {
  position: relative;
  width: 100%;
  background-color: #fff;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.dist-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.dist-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dist-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}
.dist-text-col {
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 3%;
  padding-left: 10%;
}
.dist-text-inner {
  width: 100%;
  text-align: left;
}
.dist-text-inner .hero-title {
  color: #111;
  font-size: 2.25rem;
  letter-spacing: var(--ls-xl); /* [統一] */
  line-height: 1.3;
}
.dist-text-inner .hero-desc {
  color: var(--cleansui-gray-text);
  font-weight: 400;
  letter-spacing: var(--ls-sm); /* [統一] */
}
.dist-logo-col {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 60px 80px;
}
.dist-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.8));
}
@media (max-width: 1199.98px) {
  .distributor-section {
    height: auto;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }
  .dist-logo-col {
    order: 1;
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 60px 0 30px 0;
    background-color: #fff;
  }
  .dist-logo {
    width: 150px;
  }
  .dist-text-col {
    order: 2;
    width: 100%;
    height: auto;
    padding: 0 20px 60px 20px;
    background-color: #fff;
    align-items: center;
  }
  .dist-text-inner {
    width: 100%;
    text-align: center;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dist-text-inner .hero-title {
    font-size: 1.8rem;
  }
  .dist-text-inner .hero-desc {
    text-align: center;
    text-align-last: center;
    font-weight: 400;
    color: #666;
  }
  .dist-bg {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .dist-content {
    position: relative;
    height: auto;
  }
}
/* =========================================
   Page Header
   ========================================= */
.page-header-section {
  position: relative;
  width: 100%;
  background-color: #fff;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
}
.ph-visual-group {
  position: relative;
  font-size: 0;
  display: inline-block;
  width: 100%;
  height: auto;
}
.ph-mask-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}
.ph-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.ph-text-group {
  position: absolute;
  z-index: 5;
}
.ph-breadcrumb {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 15px;
  letter-spacing: var(--ls-sm); /* [統一] */
}
.ph-breadcrumb a {
  color: var(--cleansui-gray-mid);
  text-decoration: none;
}
.ph-breadcrumb a:hover {
  color: var(--cleansui-red);
}
.ph-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  color: #111;
  line-height: 1.2;
  margin: 0;
}
@media (min-width: 1921px) {}
@media (min-width: 992px) {
  .ph-text-group {
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    text-orientation: mixed;
  }
  .ph-title {
    font-size: 3rem;
    letter-spacing: var(--ls-xl); /* [統一] */
    height: auto;
    writing-mode: vertical-rl;
  }
  .ph-breadcrumb {
    margin-bottom: 5px;
    margin-left: 10px;
    writing-mode: horizontal-tb;
  }
}
@media (max-width: 991px) {
  .ph-mask-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    min-height: 200px;
    margin: 0 auto;
  }
  .ph-text-group {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 20px;
    margin-top: -10%;
    writing-mode: horizontal-tb;
  }
  .ph-title {
    font-size: 2rem;
    letter-spacing: var(--ls-lg); /* [統一] */
  }
}
@media (max-width:767px) {
  .ph-mask-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    min-height: 150px;
    margin: 0 auto;
  }
  .ph-text-group {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 20px;
    margin-top: -5%;
    writing-mode: horizontal-tb;
  }
  .ph-title {
    font-size: 2rem;
    letter-spacing: var(--ls-lg); /* [統一] */
  }
}
/* =========================================
   Inner Page Common Styles
   ========================================= */
.section-spacing {
  padding: 60px 0;
}
.bg-light-gray {
  background-color: #f9f9f9;
}
.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.distributor-logo-lg {
  max-width: 250px;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  border-left: 3px solid #E60012;
  padding-left: 15px;
  margin-bottom: 20px;
}
.feature-list h4 {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
  letter-spacing: var(--ls-md); /* [統一] */
}
@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid #dee2e6;
  }
}
.cleansui-blue {
  color: var(--cleansui-blue);
}
.cleansui-red {
  color: var(--cleansui-red);
}
.cleansui-text {
  color: var(--cleansui-gray-text);
}
/* =========================================
   [ABOUT]
   ========================================= */
.thumb-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.thumb-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-circle:hover {
  transform: translateY(-5px);
}
.display-6 {
  font-size: 2.4rem;
  letter-spacing: var(--ls-xl); /* [統一] */
}
.ls-1 {
  letter-spacing: var(--ls-sm);
}
.ls-2 {
  letter-spacing: var(--ls-md);
}
.object-fit-cover {
  object-fit: cover;
}
.z-0 {
  z-index: 0;
}
.z-1 {
  z-index: 1;
}
.z-2 {
  z-index: 2;
}
@media (max-width: 991.98px) {
  .section-spacing {
    padding: 60px 20px;
  }
  .fiber-thumbs {
    justify-content: center;
    margin-bottom: 30px;
  }
  section[style*="min-height: 600px"] {
    min-height: 400px !important;
  }
  .position-absolute[style*="linear-gradient"] {
    background: rgba(0, 0, 0, 0.5) !important;
  }
}
/* ==========================================================================
   [CONTACT]
   ========================================================================== */
.form-control, .form-select {
  background-color: var(--cleansui-gray-bg);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 14px 20px;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  letter-spacing: var(--ls-md); /* [統一] */
  box-shadow: none;
  transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
  background-color: #fff;
  border-color: #ccc;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}
.form-control::placeholder {
  color: #999;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: var(--ls-sm); /* [統一] */
  opacity: 0.8;
}
.form-select {
  cursor: pointer;
  background-position: right 1.2rem center;
}
.form-label {  font-weight: 500;
  color: var(--cleansui-black);
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: var(--ls-md); /* [統一] */
  display: flex;
  align-items: center;
}
.required-star {
  color: var(--cleansui-red);
  margin-left: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 3px;
}
.text-link-primary {
  color: var(--cleansui-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: 0.3s;
}
.text-link-primary:hover {
  color: var(--cleansui-red);
}
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.25em;
  border: 1px solid #bbb;
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--cleansui-black);
  border-color: var(--cleansui-black);
}
@media (max-width: 768px) {
  .form-control, .form-select {
    padding: 12px 15px;
  }
  .btn-cleansui-primary {
    width: 100%;
    min-width: 0;
  }
  .text-center.mb-5 {
    margin-bottom: 2rem !important;
  }
}
/* ==========================================================================
   [WARRANTY]
   ========================================================================== */
/* =========================================
   [TABS] 全站共用 Tab 樣式 (含手機版優化)
========================================= */
.warranty-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 40px;
  margin-top: -20px;
  /* [手機版優化核心] */
  flex-wrap: nowrap; /* 不換行 */
  overflow-x: auto; /* 允許橫向捲動 */
  -webkit-overflow-scrolling: touch; /* 順暢捲動 */
  scrollbar-width: none; /* Firefox 隱藏捲軸 */
}
/* Chrome, Safari, Edge 隱藏捲軸 */
.warranty-tabs::-webkit-scrollbar {
  display: none;
}
.warranty-tab-item {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  letter-spacing: var(--ls-md);
  transition: all 0.3s ease;
  white-space: nowrap; /* 文字不折行 */
  flex-shrink: 0; /* 防止被壓縮 */
}
.warranty-tab-item:hover {
  color: #333;
}
.warranty-tab-item.active {
  color: #000;  font-weight: 500;
  border-bottom: 3px solid #000;
}
/* [RWD] 手機版微調 */
@media (max-width: 768px) {
  .warranty-tabs {
    justify-content: flex-start; /* 靠左對齊，方便捲動 */
    padding-left: 20px; /* 左側留白 */
    padding-right: 20px; /* 右側留白 */
  }
  .warranty-tab-item {
    padding: 12px 15px; /* 縮小間距 */
    font-size: 0.9rem; /* 調整字級 */
  }
  /* 讓第一個項目貼齊左邊，但有留白 */
  .warranty-tabs::after {
    content: '';
    padding-right: 0px;
  }
}
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    /* margin: 0 50px; */
    min-width: 100px;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #E5E5E5;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-bottom: 10px;
  transition: all 0.3s;
  font-family: 'Helvetica Neue', sans-serif;
}
.step-text {
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 500;
  letter-spacing: var(--ls-sm); /* [統一] */
}
.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 1px;
  background-color: #E5E5E5;
  z-index: 0;
}
.step-item.active .step-circle, .step-item.done .step-circle {
  background-color: #E60012;
  border-color: #E60012;
  color: #fff;
  box-shadow: 0 4px 10px rgba(216, 0, 15, 0.3);
}
.step-item.active .step-text, .step-item.done .step-text {
  color: #000;  font-weight: 500;
}
.upload-zone {
  width: 100%;
  border: 1px dashed #DDD;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background-color: #fff;
  /*cursor: pointer;*/
  transition: 0.3s;
}
/*.upload-zone:hover {
  border-color: #999;
  background-color: #fafafa;
}*/
.btn-upload-trigger {
  background-color: #666;
  color: #fff;
  border-radius: 50rem;
  padding: 6px 24px;
  font-size: 0.9rem;
  border: none;
  margin-bottom: 8px;
  pointer-events: none;
}
.upload-text {
  display: block;
  font-size: 0.85rem;
  color: #999;
}
.mod-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 50px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  max-width: 800px;
  margin: 0 auto;
}
.info-readonly {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  text-align: left;
}
.animate-fade-in {
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================
   [PRODUCT LIST]
   ========================================= */
.page-slogan {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: var(--ls-lg); /* [統一] */
  color: #333;
  margin-bottom: 2rem;
}
.product-card {
  background: #fff;
  padding: 0px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-img-wrap {
  width: 100%;
  padding-bottom: 20px;
  text-align: center;
  overflow: hidden;
}
.product-img-wrap img {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.product-title-group {
  margin-bottom: 15px;
}
.product-name {
  font-size: 1.1rem;  font-weight: 500;
  color: var(--cleansui-blue);
  margin-bottom: 5px;
  letter-spacing: var(--ls-md); /* [統一] */
}
.product-model {
  font-size: 1.1rem;  font-weight: 500;
  color: var(--cleansui-blue);
  margin-left: 5px;
}
.product-desc-short {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
}
.product-specs {
  font-size: 0.75rem;
  color: var(--cleansui-gray-text);
  list-style: disc;
  margin-bottom: 20px;
  line-height: 1.8;
  flex-grow: 1;
}
.product-specs ul {
  list-style: disc;
  padding-left: 1.2rem;
}
.product-specs li {
  margin-bottom: 3px;
}
.product-card .btn-style-outline {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  margin-top: auto;
  padding: 10px 0;
  font-size: 0.95rem;
}
.prod-promo-card {
  background-color: #F8FBFE;
  background-image: url('img/wave_bg_light.webp');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  border-radius: 4px;
}
.promo-img {
  max-width: 120px;
  margin-bottom: 20px;
}
.promo-badge {
  background-color: var(--cleansui-blue);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 10px;
  margin-bottom: 15px;
  display: inline-block;
  letter-spacing: var(--ls-sm); /* [統一] */
}
.promo-title {
  font-size: 1.3rem;  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
  letter-spacing: var(--ls-lg); /* [統一] */
}
.promo-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}
.promo-btn {
  border: 1px solid #333;
  color: #333;
  background: transparent;
  border-radius: 50rem;
  padding: 8px 24px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
}
.promo-btn:hover {
  background: #333;
  color: #fff;
}
/* =========================================
           [PRODUCT DETAIL] 內頁專屬微調
           ========================================= */
/* 1. 麵包屑微調 (無底圖版) */
.breadcrumb-simple {
  padding: 40px 0 20px 0;
  background: transparent;
}
.breadcrumb-item a {
  color: #999;
  font-size: 0.9rem;
  letter-spacing: var(--ls-sm);
}
.breadcrumb-item.active {
  color: #333;
  font-size: 0.9rem;
  letter-spacing: var(--ls-sm);
}
/* 2. 產品資訊區 */
.prod-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--cleansui-black);
  letter-spacing: var(--ls-lg);
  margin-bottom: 10px;
}
.prod-tag {
  display: inline-block;
  background-color: var(--cleansui-blue);
  color: #fff;
  padding: 5px 15px;
  font-size: 0.85rem;
  letter-spacing: var(--ls-md);
  margin-bottom: 20px;
}
.prod-desc-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  color: var(--cleansui-gray-text);
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: var(--ls-sm);
}
.prod-desc-list li::before {
  content: "•";
  color: var(--cleansui-blue);
  margin-right: 10px;
}
/* 3. 銷售與配件區塊 */
.shop-section-title {
  font-size: 1rem;  font-weight: 500;
  color: var(--cleansui-black);
  margin-bottom: 15px;
  letter-spacing: var(--ls-md);
  border-left: 4px solid var(--cleansui-black); /* 左側黑線裝飾 */
  padding-left: 10px;
  line-height: 1;
}
.shop-logos img {
  height: 100px;
  width: auto;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  transition: 0.3s;
}
.shop-logos img:hover {
  border-color: var(--cleansui-red);
}
.accessory-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid #eee;
  padding: 5px;
  margin-bottom: 5px;
}
.accessory-item {
  text-align: center;
  display: inline-block;
  margin-right: 20px;
  text-decoration: none;
}
.accessory-name {
  display: block;
  font-size: 0.8rem;
  color: var(--cleansui-blue);
  letter-spacing: var(--ls-sm);
}
.download-link {
  display: block;
  font-size: 0.9rem;
  color: var(--cleansui-blue);
  text-decoration: underline;
  margin-bottom: 8px;
  letter-spacing: var(--ls-sm);
}
.download-link:hover {
  color: var(--cleansui-red);
}
/* 4. 產品主圖輪播 */
.prod-carousel-indicators button {
  background-color: #ccc !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
  margin: 0 5px !important;
}
.prod-carousel-indicators button.active {
  background-color: var(--cleansui-black) !important;
}
/* 5. 相關產品標題 */
.related-title {
  text-align: center;
  font-size: 2rem;
  letter-spacing: var(--ls-xl);
  margin-bottom: 50px;
  font-weight: 500;
  position: relative;
  padding-top: 60px;
  border-top: 1px solid #eee; /* 上方分隔線 */
}
/* --- 相關產品輪播樣式 --- */
.related-scroll-track {
  overflow-x: auto; /* 允許橫向捲動 */
  scroll-behavior: smooth; /* 平滑捲動 */
  -webkit-overflow-scrolling: touch; /* 手機觸控慣性 */
  scrollbar-width: none; /* Firefox 隱藏捲軸 */
}
/* Chrome, Safari, Edge 隱藏捲軸 */
.related-scroll-track::-webkit-scrollbar {
  display: none;
}
/* 卡片容器設定：確保不會被壓縮 */
.related-item {
  flex: 0 0 auto; /* 不縮放，維持固定寬度 */
  width: 100%; /* 預設手機版全寬 */
}
/* RWD 寬度設定 (依照 Bootstrap Grid 邏輯) */
@media (min-width: 576px) {
  .related-item {
    width: calc(50% - 1rem);
  } /* 手機橫向/小平板: 一列2個 */
}
@media (min-width: 992px) {
  .related-item {
    width: calc(33.333% - 1rem);
  } /* 平板/小筆電: 一列3個 */
}
@media (min-width: 1200px) {
  .related-item {
    width: calc(25% - 1.15rem);
  } /* 電腦版: 一列4個 */
}
/* --- 產品內頁：左側圖固定特效 --- */
@media (min-width: 992px) {
  /* 僅在電腦版生效 */
  .sticky-product-sidebar {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 110px; /* 距離頂部的高度 (Navbar高 + 間距) */
    z-index: 5;
  }
}
/* =========================================
           [SEARCH RESULT] 專屬樣式
           ========================================= */
/* 1. 搜尋重整區 (頂部搜尋框) */
.search-refine-section {
  background-color: #f9f9f9;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}
.search-bar-large {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.search-bar-large input {
  width: 100%;
  height: 60px;
  border: 2px solid #ddd;
  border-radius: 50rem;
  padding: 0 70px 0 30px;
  font-size: 1.1rem;
  letter-spacing: var(--ls-md);
  transition: 0.3s;
}
.search-bar-large input:focus {
  border-color: var(--cleansui-black);
  outline: none;
}
.search-bar-large button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--cleansui-black);
  color: #fff;
  border: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-bar-large button:hover {
  background: var(--cleansui-red);
}
/* 2. 搜尋結果資訊 */
.search-info-text {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 0.95rem;
  letter-spacing: var(--ls-sm);
}
.search-keyword {
  color: var(--cleansui-red);  font-weight: 500;
  margin: 0 5px;
}
/* 3. 搜尋列表項目 (Search Item) */
.search-item {
  display: flex;
  align-items: flex-start;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.search-item:hover {
  background-color: #fafafa;
  padding-left: 10px; /* 微互動：向右縮排 */
  padding-right: 10px;
}
.search-thumb {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 產品圖用 contain 較佳 */
  padding: 10px;
  transition: transform 0.3s;
}
/* 若是新聞圖片，可以用 cover */
.search-thumb.news-mode img {
  object-fit: cover;
  padding: 0;
}
.search-content {
  flex: 1;
  padding-left: 30px;
}
.search-cat-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border: 1px solid #ddd;
  color: #888;
  border-radius: 50rem;
  margin-bottom: 10px;
  letter-spacing: var(--ls-sm);
}
.search-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cleansui-blue);
  margin-bottom: 10px;
  letter-spacing: var(--ls-lg);
  transition: color 0.3s;
}
.search-item:hover .search-title {
  color: var(--cleansui-red);
}
.search-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  letter-spacing: var(--ls-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 兩行省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-highlight {
  color: var(--cleansui-red);
  font-weight: bold;
  background-color: rgba(216, 0, 15, 0.05);
  padding: 0 2px;
}
/* 4. 無結果狀態 (No Results) */
.no-result-box {
  text-align: center;
  padding: 80px 0;
}
.no-result-icon {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}
.no-result-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: var(--ls-md);
}
.suggest-tags a {
  display: inline-block;
  margin: 5px;
  padding: 8px 20px;
  background: #f5f5f5;
  border-radius: 50rem;
  font-size: 0.9rem;
  color: #666;
  transition: 0.2s;
}
.suggest-tags a:hover {
  background: var(--cleansui-blue);
  color: #fff;
}
/* RWD */
@media (max-width: 768px) {
  .search-item {
    flex-direction: column;
  }
  .search-thumb {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
  }
  .search-content {
    padding-left: 0;
  }
}
/* 內文編輯器樣式 */
.editor-content {
  font-size: 1rem;
  line-height: 2;
  color: #595757;
  text-align: justify;
  letter-spacing: var(--ls-sm); /* [統一] */
}
.editor-content h4 {
  font-size: 1.2rem;  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #000;
  position: relative;
  padding-left: 15px;
  letter-spacing: var(--ls-md); /* [統一] */
}
.editor-content h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #333;
}
.editor-content a {
  color: #0075C2;
  text-decoration: none;
  word-break: break-all;
}
.editor-content a:hover {
  text-decoration: underline;
}
.editor-content h5 {
  color: var(--cleansui-blue);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  letter-spacing: var(--ls-md); /* [統一] */
}
.editor-content h2, .editor-content h3 {
  font-family: "Arial", "Noto Sans TC", sans-serif;
  font-weight: 400;
  color: #111;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  letter-spacing: var(--ls-lg); /* [統一] */
}
.editor-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  letter-spacing: var(--ls-sm); /* [統一] */
  color: var(--cleansui-gray-text);
}
.editor-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  color: var(--cleansui-gray-text);
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: var(--ls-sm);
}
.editor-content li::before {
  content: "•";
  color: var(--cleansui-blue);
  margin-right: 10px;
}
.editor-content .img-respomsive {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

/* PFOS Alert - Cleansui Purple */
        .pfos-section {
			background-image: url("../img/pfos.webp");
			background-size: cover;
			background-position: center center;
			color: #f1f9fe!important;
            text-align: center;
        }
	.pfos-highlight {
		color: #f1f9fe;
		    font-size: 1.5rem;  font-weight: 500;
    margin: 20px 0;
    letter-spacing: var(--ls-md);
	}
 .substances-section {
            padding: 80px 0;
            background: #f1f9fe;
        }

        .substance-category {
            margin-bottom: 50px;
        }

        .category-header {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #0075C2;
            border-radius: 4px;
            margin-bottom: 20px;
            font-size: 1.3rem;
            font-weight: 400;
            letter-spacing: var(--ls-md);
        }

        .category-icon {
            font-size: 1.8rem;
        }

        .substance-item {
            background: white;
            padding: 20px 30px;
            margin-bottom: 12px;
            /*border-bottom: 1px solid;*/
            transition: transform 0.2s;
        }


        .substance-name {
            font-weight: 500;
            color: var(--cleansui-black);
            margin-bottom: 8px;
            letter-spacing: var(--ls-md);
        }

        .substance-desc {
            color: var(--cleansui-gray-text);
            line-height: 1.8;
            letter-spacing: var(--ls-sm);
        }
/* 項目卡片設計 */
.removal-item {
    position: relative; 
    background: #ffffff;
    border: 1px solid #777;
    padding: 30px 20px 20px 20px; /* 頂部增加留白給標籤 */
    border-radius: 4px;
    transition: all 0.3s ease;
}
/* 標籤容器 */
.item-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
}

/* 標籤基礎樣式 */
.tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 500;
}

/* 不同類型的標籤顏色 (可自訂) */
.tag-blue {
    background-color: #f0f7ff;
    color: #0077c8;
    border: 1px solid #d0e4f5;
}

.tag-gray {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

/* 紅色序號與名稱 */
.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 5px; /* 避開標籤 */
}

/* 讓序號與文字在 RWD 時保持對齊 */
.item-number {
    background-color: #E60012; /* [cite: 28] */
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size:10px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* -----------------------------------------------------------
   Cleansui 保固登錄上傳組件樣式
   ----------------------------------------------------------- */
.cleansui-upload-wrapper {
    max-width: 100%; /* 讓它自適應父容器 */
    margin-bottom: 24px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 上傳按鈕 */
.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background-color: #fff;
    color: #333;
    border: 1px dashed #ccc; /* 虛線代表可放置區域 */
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

/* 滑鼠懸停效果：品牌紅 */
.upload-btn:hover {
    border-color: #E60012; 
    color: #E60012;
    background-color: #fff9f9;
}

/* 當達到 2 張上限時的停用狀態 */
.upload-btn.disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #aaa;
    cursor: default;
    pointer-events: none; /* 禁止點擊 */
}

.upload-btn .icon {
    font-size: 18px;
    font-weight: bold;
    margin-right: 8px;
    line-height: 1;
}

/* 提示小字 */
.upload-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* 檔案列表容器 */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 單個檔案項目 */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px 14px;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
}

.file-name {
    font-size: 14px;
    color: #333;
    /* 過長檔名省略... */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

/* 刪除按鈕 (X) */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 4px 8px;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #E60012;
}

/* 進場動畫 */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


.invoice-preview-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.invoice-preview-item:hover img {
    opacity: 0.8;
    border-color: var(--cleansui-red); /* 使用品牌紅作為 Hover 提醒 [cite: 28] */
}

/* Modal 背景微調，讓視覺更集中在發票上 */
#imageModal .modal-content {
    background: none;
}

#imageModal img {
    max-height: 85vh; /* 確保在各種螢幕下都不會超出範圍 */
    object-fit: contain;
}