/* -------------------- 全局樣式 -------------------- */
html, body {
    overflow-x: hidden; /* 隱藏 X 軸滾動 */
    width: 100%; /* 確保寬度不超過視口 */
    margin: 0;
    padding: 0;
}
body {
    font-family: 'LXGW WenKai Regular', sans-serif;
    background-color: white;
    width: 100%;
    margin: 0;
    padding: 0;
}
* {
    box-sizing: border-box; /* 確保寬度不會被 padding/border 增加 */
}
p{
  margin: 5px;
}
h2{
  font-family: 'LXGW WenKai Light', sans-serif;
  font-weight: normal;
  font-style: normal;
  text-align: center;
}
.d-flex{
    display: flex;
    justify-content: center;
    white-space: nowrap;
    height:auto;
    margin: 0 auto;
}
.image{
    display: inline-block;
    min-height: 300px;
    min-width: 20%;
    padding: 3em;
    margin: 0.5em;
    display: inline-block;
    position: relative;

}
/* 🔹 字體設定 */
@font-face {
  font-family: 'LXGW WenKai Light';
  src: url('/fonts/LXGWWenKai-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'LXGW WenKai Regular';
  src: url('/fonts/LXGWWenKai-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'LXGW WenKai Light', sans-serif;
  background-color: #f4f4f4;
  color: #222;
}

h2 {
  text-align: center;
  font-weight: 400;
  margin: 30px 0 10px;
  color: #333;
}

#preview {
  display: block;
  max-width: 300px;
  height: auto;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
/* 直接加到你的 fileupload.css ── 或者 <style> 區域 */
#carouselView{
  max-width : 100%;     /* 不超過容器寬  */
  max-height: 220px;    /* 想要的最高高度 */
  width : auto;         /* 讓瀏覽器自己算 */
  height: auto;
  object-fit: contain;  /* ▶︎ 保留比例；show 全圖 (想裁切就用 cover) */
}
#preview:hover {
  transform: scale(1.02);
}

#uploadForm {
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-radius: 8px;
  font-size: 16px;
}

/* 🔹 標籤與欄位 */
#uploadForm label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
  color: #555;
}

#name,
#material,
#size,
#weight,
#price,
#fileInput,
#sizeInput,
#concept {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: 'LXGW WenKai Light', sans-serif;
}

#concept {
  height: 100px;
  resize: vertical;
}

/* 🔹 按鈕 */
#uploadForm button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background-color: #222;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'LXGW WenKai Regular', sans-serif;
  transition: background-color 0.3s;
}

#uploadForm button[type="submit"]:hover {
  background-color: #444;
}

/* 🔹 展示區 */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

#gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

#gallery img:hover {
  transform: scale(1.03);
}

/* 🔵 懸浮視窗背景 */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 🔵 內部內容區塊 */
.popup-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  border-radius: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

/* 🔵 關閉按鈕 */
.popup-content .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
}

/* 🔵 編輯表單欄位 */
.popup-content input,
.popup-content textarea {
  width: 100%;
  margin: 8px 0;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.popup-content img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* 🔵 展示用 item */
.item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin: 12px 0;
  background: #f9f9f9;
}

.item img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}

.item-info {
  font-size: 14px;
  line-height: 1.6;
}

.item-info .concept p {
  white-space: pre-wrap;
  margin: 0;
}
.close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

/* 縮圖卡片清單樣式 */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.gallery-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-card img.card-img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-card .card-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* 🔹 響應式設計 */
@media (max-width: 480px) {
  #uploadForm {
    width: 95%;
    padding: 15px;
  }

  #uploadForm button[type="submit"] {
    font-size: 14px;
    padding: 8px;
  }
}

.upload {
  font-family: 'LXGW WenKai Light', sans-serif;
  font-weight: normal;
  font-style: normal;
  text-align: center;
  margin: 10px auto;
}


.concept p {
  white-space: pre-line;
  margin-top: 5px;
}
.work-item {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
}
.work-item button {
  margin-right: 10px;
}
/* -------------------- 字體  -------------------- */

@font-face {
    font-family: 'LXGW WenKai Light';
    src: url('/fonts/LXGWWenKai-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'LXGW WenKai Regular';
    src: url('/fonts/LXGWWenKai-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* -------------------- 漢堡選單按鈕 -------------------- */

.btncontainer {

}

/* 漢堡按鈕 */
.menu-btn {
    position: fixed;
    top: -7px;
    left: 10px;
    background: transparent;
    border: none;
    font-size: 36px;
    color: black;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 按鈕點擊時旋轉 */
.menu-btn.active {
    transform: rotate(90deg);
    color: #f0a500;
}

/* -------------------- 導覽列 -------------------- */

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #BBBBBB;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

nav ul li a:hover {
    opacity: 50%;
}


/*--------------------------- */
.content{
    max-width: 90%;
    margin: 20px auto;
    padding: 10px;
}
.text1{
    font-family: 'LXGW WenKai Regular', sans-serif;
    text-align: center;
    font-size: 16px;
    color: black;
    display: block;
    transition: 0.1s;
}





/* 滑鼠懸停按鈕 */
.scroll-container button:hover {
  color: linear-gradient(90deg, #005bea, #00c6fb);
  transform: scale(1.3);
}



.text2{

}




/* sidebar */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
}


/* 當側邊欄打開時，顯示遮罩層 */
.sidebar.open {
    width: 250px;
}

/* 側邊欄基礎樣式 */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    z-index: 1002;
}

/* 側邊欄連結樣式 */
.sidebar a {
    padding: 5px 20px;
    text-decoration: none;
    font-family: 'LXGW WenKai Regular', sans-serif;
    text-align: justify;
    font-size: 18px;
    font-weight: 300;
    color: black;
    display: block;
    transition: 0.1s;
    text-align: left;
}

/* 滑鼠懸停時變色 */
.sidebar a:hover {
    cursor: pointer;
    color: linear-gradient(90deg, #005bea, #00c6fb);
    transform: scale(0.95);
}

/* 確保 .dropdown 是相對定位 */
.dropdown {
    position: relative;
    display: block;
}

/* 設定按鈕 */
.dropdown-btn {
    padding: 5px 20px;
    background: transparent;
    border: none;
    text-decoration: none;
    font-family: 'LXGW WenKai Regular', sans-serif;
    text-align: justify;
    font-size: 18px;
    font-weight: 300;
    color: black;
    display: block;
    transition: 0.1s;
    text-align: left;
}
.dropdown-btn:hover{
    cursor: pointer;
    color: linear-gradient(90deg, #005bea, #00c6fb);
    transform: scale(0.95);
}
/* 設定選單初始狀態（隱藏） */
.dropdown-content {
    margin: auto 40px auto 30px;
    display: none;
    position: static;
    background-color: transparent;
    min-width: 150px;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

/* 選單內的選項 */
.dropdown-content a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
}

/* 滑鼠移動到選項時的效果 */
.dropdown-content a:hover {
    margin-left: 10px;
    cursor: pointer;
    color: linear-gradient(90deg, #005bea, #00c6fb);
    transform: scale(0.95);
}
/* 初始向下 */
.arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
    transition: transform 0.3s ease;
}
/* 旋轉 180 度，變成向上箭頭 */
.dropdown.active .arrow {
    transform: rotate(180deg);
}
.dropdown.active .dropdown-content {
    display: block; /* 展開時顯示 */
}



.overlay.open {
    display: block;
}

/* 調整側欄內的 X 按鈕 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    color: gray;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: transform 0.2s;
}

/* X 按鈕 hover 效果 */
.close-btn:hover {
    transform: scale(1.2);
    color: #EFEFEF;
}


.menu-btn:hover {
    opacity: 50%;
}

.section {
    height: 300px;
    width: 100%;
    display: flex;
    gap: 10px;
    white-space: nowrap;
    margin:20px 0px;
}
.tilt-box {
    width: 500px;
    height: 300px;
    background: url('https://res.cloudinary.com/dyjvqds92/image/upload/v1739414629/index_main_bho0av.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) ;
}
.parallaxblock{
    min-height: 500px;
}
.parallaxtext{
    min-height: 500px;
}

footer {
    max-width: 90%;
    margin: 20px auto;
    padding: 10px;
}
