

/* ========================= */
/* Global Settings */
/* ========================= */




.logo img {
    height: 50px; /* 視你的 logo 調 */
}

.logo-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    margin-left: 40px;   /* ⭐ 整組往右移（可調 20~60） */
}


.company-en {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
}

.company-zh {
    position: absolute;
    right: -80px;      /* ⭐ 在圖片右側（可微調） */
    bottom: 4px;        /* ⭐ 靠圖片底部 */

    font-size: 14px;    /* ⭐ 縮小 */
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}



/* ========================= */
/* Blue background section */
/* ========================= */

.blue-section {
    width: 100%;
    background: #bfe3ef;
    padding: 50px 0;
}

/* ========================= */
/* Page wrapper */
/* ========================= */

.content-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}



/* ========================= */
/* Product Layout */
/* ========================= */

.product-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* ========================= */
/* Left menu */
/* ========================= */

.left-text-box {
    background: rgba(255,255,255,0.6);
    padding: 0;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.left-menu-header {
    background: #0aa0a8;
    color: white;
    padding: 12px 16px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.left-menu-header:hover {
    background: #087b81;
}

/* 子分類標題 */
.category-title {
    background: #0aa0a8;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}

.sub-class-title {
    padding: 12px 15px 12px 8px;
    font-size: 18px;
    color: #064b6b;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: all .2s ease;
}
.sub-class-title:hover {
    background: #eef8fc;
    color: #0aa0a8;
}
.name-list {
    display: none;
    padding-left: 15px;
    background: #fff;
}
.name-list a {
    display: block;
    padding: 8px 5px;
    font-size: 17px;
    color: #064b6b;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}
.name-list a:hover {
    color: #0aa0a8;
}

.left-text-box {
    color: black;
}

.left-text-box a {
    display: block;
    padding: 6px 12px;
    color: black;
    text-decoration: none;
}

.left-text-box a:hover {
    color: #0aa0a8;
}

/* ========================= */
/* Right content box */
/* ========================= */

.about-text {
	
    background: white;
    overflow: hidden;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

/* ========================= */
/* Product Grid */
/* ========================= */

/* 分類標題 */
.right-class-title {
    font-size: 22px;
    font-weight: bold;
    color: #064b6b;
    margin: 30px 0 15px;
    border-left: 6px solid #0aa0a8;
    padding-left: 12px;
}

/* Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

/* 商品卡（正方形） */
.product-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid #5aa6c4;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
}

/* 圖片 */
.grid-item-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70%;
}
.grid-item-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* ⭐ 商品文字（重點） */
.grid-item-text {
    height: 60px;
    background: #e9f4ff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 6px 8px;
    text-align: center;

    font-size: clamp(14px, 2.5vw, 18px); /* 自動縮放 */
    font-weight: bold;
    line-height: 1.2;

    white-space: normal;        /* 允許換行 */
    word-break: break-word;     /* 長字切行 */
    overflow: hidden;           /* 不撐高 */

    color: #064b6b;
}



.admin-product-tools {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.admin-product-tools a {
    background: #0aa0a8;
    color: white !important;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}



/* 新增商品 */
.add-product-box { cursor: pointer; }

.add-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    border-radius: 8px;
    background: #0aa0a8;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.add-img-box:hover { background: #087b81; }

/* ========================= */
/* Global Settings */
/* ========================= */

body {
	
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: white;
    color: #0f535c;
}

/* ========================= */
/* Navbar */
/* ========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar img { 
    display: block; 
    cursor: pointer;
}

.nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: #555;
    font-size: 18px;
}

/* ========================= */
/* Blue background section */
/* ========================= */

.blue-section {
    width: 100%;
    background: #bfe3ef;
    padding: 50px 0;
}

/* ========================= */
/* Page wrapper */
/* ========================= */

.content-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}


/* ========================= */
/* Product Layout (Left + Right) */
/* ========================= */

.product-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* ========================= */
/* Left Menu */
/* ========================= */

.left-text-box {
    background: rgba(255,255,255,0.6);
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.category-title {
    background: #0aa0a8;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}

.sub-class-title {
    padding: 8px 12px;
    font-weight: bold;
    color: #064b6b;
    font-size: 18px;
}

.left-text-box a {
    display: block;
    padding: 8px 12px;
    font-size: 17px;
    text-decoration: none;
    color: #064b6b;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.left-text-box a:hover {
    color: #0aa0a8;
}

/* ========================= */
/* Right Product Content */
/* ========================= */

.about-text {
    background: white;
    border-radius: 10px;
    padding: 20px;
    font-size: 18px;
    line-height: 1.8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.about-box	{
	background:#fff;
	padding:35px 40px;
	border-radius:12px;
	box-shadow:0 4px 12px rgba(0,0,0,0.12);
}
.about-title  {
	font-size:38px;
	font-weight:900;
	color:#064b6b;
	margin-bottom:25px;
}
.grid-item-img {
    width: 100%;
    height: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grid-item-text {
    height: 60px;
    background: #e9f4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #064b6b;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.block-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* ========================= */
/* Pagination (如果需要前台分頁可用) */
/* ========================= */

.pagination-block {
    margin-top: 20px;
    text-align: center;
}

/* 分頁 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
}
.pagination a {
    padding: 8px 14px;
    border: 1px solid #0aa0a8;
    color: #0aa0a8;
    text-decoration: none;
    border-radius: 5px;
}
.pagination a.active,
.pagination a:hover {
    background: #0aa0a8;
    color: #fff;
}

.page-number, .page-arrow {
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 50%;
    transition: .2s;
}

.page-number.active {
    background: black;
    color: white;
}

.page-number:hover, .page-arrow:hover {
    transform: scale(1.2);
}

.product-highlight {
    border: 3px solid #064b6b !important;
    box-shadow: 0 0 0 4px rgba(6, 75, 107, 0.35);
}



/* about_us內容 */
.about-box {
    background: white;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.about-title {
    font-size: 38px;
    font-weight: 900;
    color: #064b6b;
    margin-bottom: 25px;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.about-text {
    font-size: 18px;
    color: #064b6b;
    line-height: 1.9;
    margin-top: 10px;
}


/* News 區 */
.news-box{
    background:#fff;
    padding:35px 40px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.news-title{
    font-size:38px;
    font-weight:900;
    color:#064b6b;
    margin-bottom:30px;
}

/* 第一則 */
.news-first{
    margin-bottom:40px;
    border-bottom:1px solid #ddd;
    padding-bottom:30px;
}

.news-address{
    font-size:22px;
    font-weight:bold;
    color:#0a6a7c;
    margin:15px 0;
}

.news-img{
    max-width:100%;
    border-radius:10px;
    margin-bottom:15px;
}

/* 其餘 news */
.news-item{
    margin-bottom:35px;
    border-bottom:1px solid #ddd;
    padding-bottom:25px;
}

.news-item-title{
    font-size:24px;
    font-weight:bold;
    color:#064b6b;
    margin-bottom:10px;
}

.news-item-content{
    font-size:18px;
    color:#064b6b;
    line-height:1.7;
}


/* support內容 */
.support-box{
    background:#fff;
    padding:35px 40px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.support-title{
    font-size:38px;
    font-weight:900;
    color:#064b6b;
    margin-bottom:30px;
}

/* 圖片 */
.support-img{
    max-width:100%;
    border-radius:10px;
    margin-bottom:20px;
}

/* 名稱（超連結） */
.support-link{
    display:block;
    font-size:20px;
    font-weight:bold;
    color:#064b6b;
    margin-bottom:14px;
    text-decoration:none;   /* ❗ 不要底線 */
}
.support-link:hover{
    color:#0aa0a8;
}



/* support_detail區 */
.support-files a{
    display:block;
    font-size:18px;
    color:#0aa0a8;
    margin-bottom:10px;
    text-decoration:none;
}
.support-files a:hover{
    text-decoration:underline;
}

/* contact_us 區 */
.contact-item  {
	display:grid;
	grid-template-columns:160px 1fr;
	gap:20px;
	margin-bottom:20px;
	font-size:18px;
}
.contact-item strong  {
	font-size:20px;
	color:#064b6b;
}
.contact-message  {
	color:#c00;
	font-weight:bold;
	margin:20px 0;
}
.contact-form label	 {
	display:block;
	font-weight:bold;
	margin-top:15px;
}
.contact-form input,.contact-form textarea  {
	width:100%;
	padding:8px;
	font-size:16px;
	margin-top:5px;
}
.contact-form textarea  {
	height:150px;
}
.captcha-row  {
	display:flex;
	align-items:center;
	gap:15px;
	margin-top:10px;
}
.captcha-row img  {
	height:45px;
	border:1px solid #ccc;
	cursor:pointer;
}


/* contact區圖片呈現 */
.main-img-box img,
.extra-img-box img,
.custom-img-box img {
    display:block;
    max-width:100%;
    height:auto;
    margin-bottom:20px;
    border-radius:8px;
}

/* 下載區 */
.download-item { margin:8px 0; }
.download-note { font-size:14px; margin-left:10px; }

/* Inquire 按鈕 */
.inquire-btn {
    position:absolute;
    top:25px; right:30px;
    background:#0aa0a8; color:white;
    padding:10px 22px;
    border-radius:8px;
    font-size:20px; font-weight:bold;
    text-decoration:none;
}
.inquire-btn:hover { background:#087b81; }


/* product_detail內容 */
.about-text {
    background:white;
    padding:25px;
    border-radius:10px;
    line-height:1.8;
    position:relative;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.about-title {
    font-size:28px;
    font-weight:bold;
    margin-bottom:20px;
}

.section-title {
    font-size:22px;
    font-weight:bold;
    margin-top:25px;
    color:#064b6b;
}


/* ========================= */
/* Front Carousel (Video / Image / YT) */
/* ========================= */

.front-carousel-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    overflow: hidden;
}

.carousel-item {
    display: none;
    width: 80%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img,
.carousel-item video,
.carousel-item iframe {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
}


.front-carousel-box iframe,
.front-carousel-box video,
.front-carousel-box img {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    object-fit: contain;
    background: #000;
}


.product-question-title {
    font-size: 24px;        /* 字體大小（可改 22~28） */
    font-weight: 700;       /* 粗體 */
    color: #003366;         /* 深藍色（可自行調） */
    margin-bottom: 25px;    /* 跟表單拉開距離 */
    line-height: 1.4;
}

/* ===== Image Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

.main-img-box img,
.extra-img-box img,
.custom-img-box img {
    cursor: zoom-in;
}

/* ===== Zoom Lightbox ===== */
.zoomable-img {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
}

.lightbox-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

#lightbox-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center;
    max-width: none;
    max-height: none;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}


/* ========================= */
/* Navbar Display Control */
/* ========================= */



.desktop-only {
  display: flex;   /* 永遠不要那 4 個 */
}

.mobile-only {
  display: none;  /* ☰ 永遠顯示 */
}


/* 手機下拉選單 */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 8px;

  min-width: 220px;        /* ⭐ 整個選單變寬 */
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  border-radius: 12px;     /* ⭐ 圓角更大 */
  overflow: hidden;
  z-index: 9999;
}


.mobile-menu a {
  display: block;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 600;
  color: #003366;
  text-decoration: none;
  white-space: nowrap;

  transition: 
    background 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
}



.mobile-menu a:hover {
  background: #eef8fc;
  color: #0aa0a8;
}
.mobile-menu a + a {
  border-top: 1px solid #e5e5e5;
}
.mobile-menu a:active {
  background: #d8f0f6;
  transform: scale(0.97);                 /* ⭐ 手指壓下感 */
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
}


/* ===== 真正的「手機判斷」：觸控裝置 ===== */
/* ===== 手機：維持桌機版型，只做整體縮放 ===== */
@media (max-width: 768px) {

  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;   /* ❗ 關鍵：禁止 body 捲動 */
  }

  #scale-wrapper {
    width: 1200px;
    transform: scale(0.32);
    transform-origin: top left;

    height: calc(100vh / 0.32);
    overflow-y: auto;   /* ✅ 只讓內容捲動 */
    overflow-x: hidden;
  }

  /* navbar */
  .nav-links {
    margin-right: 120px;   /* ⭐ 整組往左移（可調 80~160） */
	}


  .mobile-only {
    display: block;
  }

  .menu-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    font-size: 26px;
    z-index: 9999;
    background: transparent;
    border: none;
  }
}
