@charset "utf-8";

:root {
 --main-dark: #3A3A3A;
 --main-gray: #5D5D5D;
 --main-lightgray: #8C8C8D;

 --main-skyblue: #4991D4; /*4589C8*/
 --main-blue: #3969b0;
 --main-lightblue: #E3E3F2;
 --main-deepblue: #1c3d8f;

 --main-green: #40a09a;
 --main-lightgreen: #50D0C7;
 --main-deepgreen: #15508a;

 --main-orange: #E55927; /*#F58030*/
 --main-lightorange: #FFA45B;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Noto Sans TC", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    /*font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;*/
    position: relative;
    color: var(--main-gray);
    background-color: #FFF;
}
/* ======= INDEX ======= */


/* ------ Section Base ------ */
section {
    width: 80%;
    margin: 5rem auto;
}
section > h1 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--main-lightgray);
}
section > h2 {
    text-align: center;
    color: var(--main-deepblue);
    margin-bottom: 2rem;
    font-size: 2rem;
}
.btn-blue {
    display: inline-block;
    padding: 5px 30px;
    background-color: var(--main-blue);
    border: 1px solid var(--main-blue);
    color: white;
    border-radius: 100px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
}
.btn-blue:hover {
    background-color: #FFF;
    color: var(--main-blue);
    border: none;
    border: 1px solid var(--main-blue);
}
.btn-orange {
    background-color: var(--main-orange);
    color: #fff;
    border-radius: 25px;
    padding: 5px 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-orange:hover {
    background-color: #fff;
    color: #E55927;
    border: none;
    border: 1px solid #E55927;
}

/* =============================
   Banner 區塊
   ============================= */
.banner {
  position: relative;
  width: 100%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  clip-path: ellipse(80% 85% at 50% 15%);
  overflow: hidden;
  text-align: right;
  padding-right: 25%;
}

.banner .video video {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /*
    opacity: .9;
    margin-bottom: -6px;
    */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.banner img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  z-index: 1;
}

.caption {
  position: absolute;
  top: 50%;
  right: 20%;
  transform: translateY(-50%);
  text-align: right;
  color: #FFF;
  z-index: 10;
  pointer-events: none; /* 可避免文字擋到點擊影片連結 */
}

.caption h2 {
  color: #fff;
  font-size: 3.6rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);
  letter-spacing: 1px;
  margin-right: -5px;
}

.caption p {
  color: #fff;
  font-size: 2.2rem;
  line-height: 1.5;
  text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/*隱藏所有控制元件*/
.banner .video video::-webkit-media-controls-enclosure {
    display: none !important;
}

.banner-carousel .owl-item {
  position: relative;
}

/* =============================
   Dots (主視覺藍色)
   ============================= */
.owl-dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 5;
}

.owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.owl-dot:hover {
  transform: scale(1.15);
  background: linear-gradient(45deg, #5a8fe5, #3969b0);
}

.owl-dot.active {
  transform: scale(1.3);
  background: linear-gradient(45deg, #3969b0, #5a8fe5);
}

/* =============================
   Owl Nav (左右箭頭)
   ============================= */
.owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* hover 時顯示箭頭  */
.banner-carousel:hover .owl-nav {
  opacity: 1;
  visibility: visible;
}

/* prev / next 為 div */
.owl-nav .owl-prev,
.owl-nav .owl-next {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  font-size: 0; /* 隱藏原文字 */
}

/* 強制清除內建 span 的內容顯示 */
.owl-nav .owl-prev span,
.owl-nav .owl-next span {
  display: none !important;
}

/* 箭頭符號 (白色) */
.owl-nav .owl-prev::after,
.owl-nav .owl-next::after {
  margin-top: -5px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  display: block;
  pointer-events: none;
  content: '';
}

/* 左右箭頭文字 */
.owl-nav .owl-prev::after {
  content: '‹';
}
.owl-nav .owl-next::after {
  content: '›';
}

/* hover 效果：藍色漸層 + 陰影 + 微浮起 */
.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
  background: linear-gradient(45deg, #3969b0, #5a8fe5);
  box-shadow: 0 6px 18px rgba(57,105,176,0.25);
  transform: translateY(-2px);
}

/* =============================
   額外細節修飾
   ============================= */
.banner-carousel .owl-stage-outer {
  overflow: hidden;
  border-radius: 0;
}

.banner-carousel .owl-stage {
  transition-timing-function: ease-in-out !important;
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------ Products ------ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 0.5rem;
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.product-card img {
    max-width: 100%;
    margin: 0 auto;
}
.product-card p {
    font-size: 0.95rem;
    color: #333;
}
.products-grid a {
    display: block;
    padding: 5px 15px;
}
.product-card-btn {
    padding: 2.5rem 0 3.5rem 0;
    text-align: center;
}
/* ------ Application ------ */
.applications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    list-style: none;
}
.applications > li { display: line-block; overflow: hidden; }

/* 確保 <a> 可正常 hover */
.application-link {
    display: block;
    text-decoration: none;
}

/* 外層：保留圓角、裁切 */
.application {
    position: relative;
    width: 100%;
    height: 40vh;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.45s ease, transform 0.45s ease;
}

/* 內層：背景 + 動畫 */
.application-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;

    transition: transform 0.45s ease, filter 0.45s ease;
    transform-origin: center;
    will-change: transform, filter;
}

/* 下方漸層 */
.application-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 40%);
    transition: background 0.45s ease;
    pointer-events: none;
}

/* --------------------------
   右下角 標籤（玻璃效果 + 半圓形）
---------------------------*/
.application span {
    position: absolute;
    right: 0;
    bottom: 24px;
    z-index: 2;

    padding: 8px 18px 8px 26px;
    font-size: 1.1rem;
    color: #fff;

    /* 半圓形 + 玻璃效果 */
    border-radius: 30px 0 0 30px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    align-items: center;
    gap: 10px;

    transition: transform 0.3s ease;
}

/* --------------------------
          Hover 效果
---------------------------*/

.application:hover {
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 10px 20px rgba(0, 0, 0, 0.18),
        0 0 18px rgba(255, 255, 255, 0.25); /* 外邊亮光 */
}

/* 內層放大、亮度提高 */
.application:hover .application-inner,
.application-link:hover .application .application-inner {
    transform: scale(1.12);
    filter: brightness(1.12);
}

/* 漸層變淡 */
.application:hover .application-inner::after {
    background: rgba(0,0,0,0.25);
}

/* span 文字浮動一點點，讓卡片更有生命感 */
.application:hover span {
    transform: translateX(-6px);
}

/* ------ About ------ */
.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 11%;
    margin: auto;
    flex-wrap: wrap;
}
.text-section {
    flex: 1 1 400px;
    margin-bottom: 40px;
}

.text-section > h1 {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--main-lightgray);
}
.text-section > h2 {
    text-align: left;
    color: var(--main-deepblue);
    margin-bottom: 2rem;
    font-size: 36px;
}

.text-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.image-section,
.image-section-right {
    flex: 1 1 400px;
    max-width: 800px;
    border-top-left-radius: 300px;
    border-bottom-left-radius: 300px;
    overflow: hidden;
}
.image-section-left {
    flex: 1 1 400px;
    max-width: 800px;
    border-top-right-radius: 300px;
    border-bottom-right-radius: 300px;
    overflow: hidden;
}
.image-section img,
.image-section-right img,
.image-section-left img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ------ News ------ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.news-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.2rem 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    text-align: center;
}
.news-txt-box {
    padding: 10px 30px 25px;
}
.news-icon img {
    width: 14%;
    flex-grow: 0;
}
.news-card h3 {
    color: var(--main-deepgreen);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.news-card h4 {
    color: var(--main-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.news-card hr {
    width: 30px;
    border: none;
    height: 3px;
    background-color: var(--main-gray);
    margin: 10px auto;
}
.news-card p {
    font-size: 1rem;
    color: var(--main-gray);
    text-align: left;
}
.inds-news-img { height:200px; overflow:hidden; }
.inds-news-img img {
    width: 100%;
    height: auto;
    display: block;
}
.news-card-btn {
    padding: 25px 0 15px 0;
}
/* ======= INSIDE PAGE ======= */
.page-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  clip-path: ellipse(80% 85% at 50% 15%);
  text-align: right;
}
.page-banner img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: auto;
}
.page-banner-title {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translateY(-10%);
    text-align: right;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
.page-banner-title h2 {
    font-size: 3.6rem;
}
.page-banner-title p {
    font-size: 2.2rem;
}
.page-title h1 {
    width: 100%;
    font-size: 2rem;
    color: var(--main-blue);
    font-weight: 400;
    border-left: 10px solid var(--main-blue);
    text-align: left;
    margin-bottom: 30px;
    padding-left: 0.8rem;
    height: 48px;
}
.ymd-date {
    font-size: 1rem;
    color: var(--main-orange);
    margin: 6px 0;
}
.content_container {
    margin-top: 50px;
}
.content_container > h4 {
    border-left: #999 10px solid;
    background: #E1E1E1;
    font-size:1.2rem;
    line-height: 2rem;
    padding: 10px 20px;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.content_title {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: left;
    color: var(--main-dark);
    padding: 0 0 6px 0;
    border-left: 10px solid var(--main-blue);
    border-bottom: 1px solid var(--main-blue);
    padding-left: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右兩側 */
    gap: 10px; /* 文字和按鈕間距 */
}
.content_title > a {
    background: var(--main-blue);
    color: #FFF;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.25s ease;
}
.content_title > a:hover {
    background: var(--main-orange);
    transform: scale(1.03);
}

.page-content {
    font-size: 1.1rem;
    line-height: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}
.page-content img { max-width: 100%; }
.page-text {
    font-size: 1.2rem;
}
/* ------ 麵包屑項目樣式 ------ */
.breadcrumb {
    margin-bottom: 30px;
}
.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
.breadcrumb ul li {
    font-size: 1.1rem;
    color: gray;
}
.breadcrumb ul li + li::before {
    content: "›";
    margin: 0 10px;
    color: gray;
}
.breadcrumb ul li a {
    text-decoration: none;
    color: gray;
    transition: color 0.3s ease;
}
.breadcrumb ul li a:hover {
    color: #005fa3;
    text-decoration: underline;
}

/*產品搜尋*/
.product-search,
.article-search {display: flex; flex-wrap: wrap; border-bottom:var(--main-blue) 1px solid; margin:30px auto; padding-bottom:30px; }
ul.category-wrapper { width:70%; list-style:none;  }
ul.category-wrapper li { display:inline-block; margin-bottom:12px; }
ul.category-wrapper li a {
    background: var(--main-lightblue);
    padding:6px 12px;
    color: var(--main-gray);
    border-radius: 6px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    text-align:center;
    text-decoration: none;
}
ul.category-wrapper li a:hover { background: var(--main-skyblue); color:#FFF; }
ul.category-wrapper li.active a { background: var(--main-blue); color:#FFF; }

div.search-wrapper { width: 30%; position:relative; }

.search-wrapper input[type=text] {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.search-wrapper input[type=text]:focus {
    outline: none;
    border-color: #0c3c78;
    box-shadow: 0 2px 6px rgba(12,60,120,0.25);
}
.search-wrapper button[type=submit] {
    background-color: transparent;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #0c3c78;
    cursor: pointer;
    transition: color .2s;
    border: 0;
}
.search-wrapper button:hover {
    color: #000;
}
.no-result {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-top: 50px;
    display: none;
}
/* ======= HISTORY ======= */
.history-section {
    flex: 1 1 400px;
    max-width: 800px;
    border-top-right-radius: 300px;
    border-bottom-right-radius: 300px;
    overflow: hidden;
}
.history-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.history-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.event {
    position: relative;
    background: #fff;
    padding: 40px 20px 20px; /* 預留出 h2 的高度 */
    width: 100%;
}

/* 年份標籤 */
.event h2 {
    position: absolute;
    top: 0;
    left: 20px;
    background: var(--main-skyblue);
    color: #fff;
    padding: 6px 25px;
    border-radius: 50px;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* 內容 */
.event p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;

    /* timeline 線條 */
    border-left: 2px solid var(--main-skyblue);
    border-bottom: 2px solid var(--main-skyblue);

    padding: 12px 0 12px 16px;

    /* 讓線從 h2 的正中延伸 */
    margin-left: calc(20px + 25px);
}
/* ======= ENVIRONMENT ======= */
.environment-gallery {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.environment-gallery a {
  text-decoration: none !important;
}

.gallery-item {
    width: calc(33.33% - 13.33px);
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%;
    /*    max-height: 250px;
*/    border-radius: 10px;
}
.gallery-item p {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    color: var(--main-gray);
    margin: 10px;
}
/* ======= ARTICLE ======= */
.article-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 45px;
}
.article-item a {
    text-decoration: none;
}
.article-item a:hover {
    text-decoration: underline;
    color: var(--main-blue);
}
.article-item {
    display: flex;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 15px;
    gap: 20px;
    transition: transform 0.3s;
}
.article-item:hover {
    transform: translateY(-5px);
}
.article-img {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}
.article-img img {
    width: 30%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-img:hover img {
    transform: scale(1.25);
}
.article-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
}
.article-title, .article-description {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.article-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--main-gray);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-overflow: ellipsis;
    text-decoration: none;
}
.article-description {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--main-lightgray);
    -webkit-line-clamp: 3;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 80px 0;
    text-align: center;
    line-height: 32px;
}
.pagination a {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--main-blue);
    border: 1px solid var(--main-blue);
    color: #FFF;
    text-align: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s;
}
.pagination a:hover {
    background-color: #FFF;
    color: var(--main-blue);
    border: none;
    border: 1px solid var(--main-deepblue);
}
.pagination .active {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #FFF;
    border: 1px solid var(--main-deepblue);
    color: var(--main-deepblue);
    cursor: not-allowed;
}
/* ------ News Content ------ */
.news-ct-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}
hr {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 20px 0;
}
.news-ct-pagination {
    text-align: center;
    margin-top: 50px;
}
.news-ct-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 80px 0;
}
.news-ct-pagination a {
    padding: 5px 20px;
    background: var(--main-blue);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid var(--main-blue);
}
.news-ct-pagination a:hover {
    background-color: #fff;
    color: var(--main-blue);
    border: none;
    border: 1px solid var(--main-blue);
}
/* ======= PRODUCT ======= */
/* ------ product list ------ */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-left: 20px;
    justify-content: flex-start;
}
.product-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: calc(25% - 20px);
    transition: transform 0.3s;
    padding: 15px;
}
.product-item:hover {
    transform: translateY(-5px);
}
.product-img {
    width: 100%;
    height: auto;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* ------ product content ------ */
.product-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    align-items: center;
}
.product-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* ------ 產品標題樣式 ------ */
.product-title {
    background: var(--main-blue);
    color: white;
    padding: 5px;
    display: block;
    text-align: center;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}
.product-title:hover {
    background-color: #fff;
    color: var(--main-blue);
    border: none;
    border: 1px solid var(--main-blue);;
}
/* ------ 產品編號樣式 ------ */
.product-id {
    padding: 10px;
    color: var(--main-gray);
    font-size: 1rem;
    font-weight: 500;
    text-align: left; /* 使編號靠左對齊 */
}
/* ======= NEWS ======= */
.news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    flex-direction: row;
    margin-top: 50px;
}
.news-item {
    width: calc(33.33% - 13.33px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s;
    text-align: center;
}
.news-item:hover {
    transform: translateY(-5px);
}
.news-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--main-gray);
    margin-bottom: 0px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    text-decoration: none;
}
.news-title:hover { color: var(--main-blue); text-decoration:underline; }
.news-description {
    font-size: 1.1rem;
    color: var(--main-lightgray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    margin-bottom: 15px;
    text-align: left;
    height: 70px;
    margin-top: 25px;
}
.news-img { background: #000; height:170px; overflow:hidden; border-radius: 6px; margin: 0 auto 25px; }
.news-img a { display:block; }
.news-img img {
    width: 100%;
    height: auto;
}
/* 分隔線 */
.divider {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin-top: 14px;
    margin-bottom: 10px;
}

/* ======= DECOMPOSITION ======= */
.tabs {
    width: 100%;
    margin: 50px auto;
}
/* ------ 頁籤 ------ */
.tabs {
    width: 100%;
    margin-top: 50px;
}
.tab-titles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid var(--main-blue);
}
.tab-titles li {
    text-align: center;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    white-space: nowrap;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
}
.tab-titles li:last-child {
    margin-right: 0;
}
.tab-titles li:hover {
    background-color: #e0e0e0;
}
/* ------ 頁籤背景顏色 ------ */
.tab-titles li {
    background-color: var(--main-lightblue);
}
/* 選中的頁籤樣式 */
.tab-titles li.active {
    background-color: var(--main-blue);
    color: white;
    /*border-bottom: 2px solid var(--main-blue);*/
}
/* ------ 頁籤內容區域 ------ */
.tab-content {
    padding: 20px 0px;
    display: none;
    font-size: 16px;
    color: #333;
}
.tab-content.active {
    display: block;
    font-size: 1.2rem;
}
.tab-content img {
    width: 100%;
}
.tab-content ol.itemBlock {
  color: var(--main-gray);
  font-size:1.1rem;
  display: flex;
  flex-wrap: wrap;
  counter-reset: item;
  padding-left: 4%;
}
.tab-content ol.itemBlock li {
    width: 32%;
    display: list-item;
    list-style: none;
    margin-bottom: 12px;
}

/* ======= CONTACT ======= */
.row h3 {
    font-size: 1.8rem;
    color: var(--main-gray);
    font-weight: 500;
    margin-bottom: 20px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
}

.inquiry-form {
    position: relative;
    border-radius: 18px;
    width: 52%;
    margin: 0 auto;
}
/* ------ 表單樣式 ------ */
.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center; /* 垂直置中對齊 input 和 img */
}
input[type="text"], input[type="email"], textarea {
    width: 95%;
    padding: 12px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
}
input:focus, textarea:focus {
    border-color: #0078d7;
    box-shadow: 0 0 5px rgba(0,120,215,0.3);
    outline: none;
    background-color: #fff;
}
textarea {
    min-height: 120px;
    resize: vertical;
}

input[name="captcha"] { width:136px; }
.form-group img { margin-left: 26px; }
.form-group.submitBlock { text-align:center; display:block; padding-top:20px; }
.form-group.submitBlock button { padding:6px 40px; margin:0 10px; cursor:pointer; }

.map iframe {
    width: 100%;
    min-height: 40vh;
    border: none;
    margin: 0;
    margin-bottom: -8px;
}
/* ======= FOOTER ======= */
.footer {
    background-color: #EFEFEF;
    padding: 20px 0;
    font-size: 14px;
    color: #333;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0;
}
.footer-column {
    /*
    flex: 1;
    width: 25% !important;
    */
    margin-bottom: 20px;
}
.footer-column h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--main-dark);
    text-decoration: none;
}
.footer-column h3 > a {
    display: block;
    padding: 6px auto;
    min-width: 80%;
    text-align: center;
    font-size: 1.2rem;
    line-height: 2rem;
    font-weight: 500;
    margin-top: 20px;
    background-color: var(--main-green);
    color: #FFF;
    border-radius: 1.4rem;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
}
.footer-column h3 > a:hover {
    background-color: #1C1C1C;
    text-decoration: none;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 6px;
}
.footer-column ul li a {
    text-decoration: none;
    font-size: 1rem;
    color: var(--main-lightgray);
    transition: color 0.3s;
}
.footer-column ul li a:hover {
    color: var(--main-orange);
    text-decoration: underline;
}
.contact p {
    color: var(--main-lightgray);
    margin-bottom: 6px;
    line-height: 1.6;
}
.contact p a {
    color: var(--main-lightgray);
    text-decoration: none;
}
.contact p a:hover {
    color: var(--main-orange);
    text-decoration: underline;
}
.footer-bottom p {
    font-size: 1rem;
    margin: 6px 0;
    line-height: 1.6;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--main-lightgray);
    margin-top: 20px;
    font-size: 13px;
    color: var(--main-gray);
}
/*標籤區 */
.tags {
    font-size: 1rem;
    text-align: left;
    word-wrap: break-word;
    line-height: 1.8;
}
.tags a {
    color: var(--main-green);
    margin-right: 8px;
    white-space: nowrap;
}
.tags a:hover {
    color: #F58030;
    text-decoration: underline;
}

/* ======= RWD ======= */
 @media (max-width: 1460px) {
.footer { padding:0 20px; }
.page-banner-title h2 {
    font-size: 2.8rem;
}
.page-banner-title p {
    font-size: 1.5rem;
}
.caption h2 {
    color: #fff;
    font-size: 2.5rem;
}
.caption p {
    font-size: 1rem;
}
section {
    width: 90%;
}
section.mtSpace { margin-top: 2rem; }

.application {
    position: relative;
    width: 100%;
    height: 40vh;
}

.news-img img {
    height: 250px;
    width: auto;
    object-fit: cover;
  }
@media (max-width: 1026px) {
.footer-column { width:50% !important; }
.banner img { width: 150% !important; }

ul.category-wrapper { width:100%; margin-bottom:20px; }
div.search-wrapper { width:100%; }
ul.category-wrapper li { float: left; width: 46%; margin:4px 2%; }
ul.category-wrapper li a { display: block; width:100%; text-align:center; }

.gallery-item {
    width: calc(50% - 13.33px);
}

.tab-content ol.itemBlock li { width: 40%; }
.caption {
 top: 55%;
}
.caption h2 {
 font-size: 2rem;
}
.caption p {
 font-size: 0.7rem;
}
section {
  width: 90%;
}

.products-grid {
 gap: 1rem;
 display: flex;
 flex-wrap: wrap;
 justify-content: space-evenly;
}
.product-card {
 width: 31%;
}
.product-card img {
 max-width: 60%;
}
.applications {
 display: flex;
 gap: .5rem;
}
.application {
 height: 20vh;
}

.container {
 display: flex;
 flex-direction: row;
 align-items: center;
 justify-content: center;
 gap: 2%;
}
.text-section h2 {
 font-size: 34px;
 margin-bottom: 0px;
}
.image-section img,
.image-section-left img,
.image-section-right img {
 width: 150%;
}
 .news-title {
 font-size: 1.3rem;
}
 .news-description {
 font-size: 1rem;
height: 70px;
 margin-top: 15px;
}
 .tab-content img {
width: 100%;
}
}
 @media (max-width: 768px) {
.banner { height:40vh; }
.banner img { width: 200% !important; }
/*ellipse(80% 85% at 50% 15%);*/
.page-banner { height: 50vh; clip-path: ellipse(80% 65% at 48% 5%); }
.page-banner img { width:180%; }
.page-banner-title { transform: translateY(-80%); right:20%; }
.gallery-item { width: 100%; }

.inquiry-form { width:100%; margin-top:40px; }
.tab-content ol.itemBlock li { width: 100%; }
section.mtSpace { margin-top: -4rem; }

section h2 {
 font-size: 1.8rem;
}
 .product-card {
 width: 46%;
}
 .page-title h1 {
 font-size: 1.8rem;
 margin-bottom: -25px;
}
.caption {
    position: absolute;
    top: 55%;
    left: 50%;             /* 左右置中 */
    transform: translate(-50%, -7%); /* X軸向左偏移50%，Y軸微調 */
    text-align: center;
    color: #fff;
    right: auto;            /* 取消原本的 right */
    margin: 0;              /* 取消 margin auto */
    max-width: 90%;  /* 限制寬度，不讓文字太長換行 */
    white-space: nowrap; /* 可選，強制單行，超過會截斷 */
}
.caption h2 {
 font-size: 1rem;
 letter-spacing: 0;
 text-align: center;
}
.content_container {
 margin-top: 50px;
 /*display: flex;*/
 flex-direction: column-reverse;
}
 .container {
 flex-wrap: nowrap;
flex-direction: column;
 margin-top: 45px;
}
.products-grid a {
 display: block;
 padding: 5px 5px;
}
 .image-section img,
 .image-section-right img {
    width: 95%;
    margin: 25px auto;
    border-top-left-radius: 300px;
    border-bottom-left-radius: 300px;
}
 .image-section-left img {
    width: 95%;
    margin: 25px auto;
    border-top-right-radius: 300px;
    border-bottom-right-radius: 300px;
}

 .history-section img {
width: 70%;
 margin: 0 auto 20px;
 border-top-right-radius: 300px;
 border-bottom-right-radius: 300px;
 overflow: hidden;
 margin: 0 auto 20px;
}
 .text-section,
 .image-section,
 .image-section-left,
 .image-section-right,
 .history-section {
 flex: none;
}
 .gallery-item p {
 font-size: 1rem;
}
.product-card {
 width: 47%;
}
.news-txt-box {
 padding: 10px 10px 15px;
}
.news-card p {
 font-size: 1rem;
}
.news-card h3 {
 font-size: 1rem;
}
.news-card h4 {
 font-size: 1.2rem;
}
 .article-content {
 display: flex;
 flex-direction: column;
 gap: 4px;
 padding: 0;
}
 .article-title {
 font-size: 1.2rem;
}

 .article-item { display:block; }
 .article-item a { width:100%; }
 .article-img {
 width: 100%;
 /*height: 15vh;*/
 overflow: hidden;
 border-radius: 13px;
}
 .article-description {
 font-size: 1rem;
}
.tab-titles li {
    font-size: 0.75rem;
    width: 33%;
    padding: 5px 10px;
}
 .product-item {
 width: calc(50% - 20px);
}
.product-content { margin-top: 50px; }
.news-item {
 width: 100%; /*calc(50.33% - 13.33px)*/
}
.footer-bottom p {
 font-size: 0.8rem;
 padding: 5px 56px;
}
}
 @media (max-width: 436px) and (max-width: 365px) {
.product-list { padding-left:0 !important; }
.product-item { width: 100%; }
section {
 width: 90%;
}
.product-card img {
 max-width: 85%;
}
.page-banner-title {
top: 60%;
right: 20%;
 text-align: center;
}
 .page-banner-title h2 {
 font-size: 1.6rem;
}
.page-banner-title p {
 font-size: 1.2rem;
}
 .page-title h1 {
 font-size: 1.6rem;
}
.tab-titles {
 flex-wrap: wrap;
}
 .text-section, .image-section, .history-section {
 flex: none;
 margin-top: -45px;
}
 .history-section img {
 width: 100%;
}
.image-section img,
.image-section-left img,
.image-section-right img {
 width: 100%;
}
 .gallery-item {
 width: calc(100% - 13.33px);
}
 .article-item {
flex-direction: column;
}
 .product-item {
 width: calc(52% - 20px);
}
 .news-item {
 width: calc(100% - 13.33px);
}
 .article-img {
 width: 100%;
 height: auto;
}
 .inquiry-form {
width: 100%;
margin-top: 30px;
}
 .inquiry-form h3 {
 font-size: 1.5rem;
}

}
