*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
/* 🚩 珍珠引擎：橫向溢出鎖定 */
html, body {
    max-width: 100vw;
    overflow-x: hidden; /* 💡 核心指令：禁止橫向捲軸 */
    position: relative;
    margin: 0;
    padding: 0;
    touch-action: pan-y; /* 💡 只允許上下滑動，禁止左右手勢干擾 */
}

.container, .form-grid {
    width: 100%;
    box-sizing: border-box; /* 💡 確保 padding 不會撐開寬度 */
}

/*body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei',
    sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 16px;
  color: #111827;
}*/
@media screen and (min-width: 768px) {
.container {
  max-width: 960px;
  margin: 0 auto;
}
}
.header {
  text-align: left;
  color: #F90;
  margin: 18px 10px;
}
 .header a{
  text-align: left;
  color: #F90;
}
.header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 💡 兩欄均分 */
    gap: 16px; /* 💡 間距不要太大 */
    width: 100%;
    box-sizing: border-box;
}

/* 當寬度達到 414px (iPhone XR/11) 以上時，強制切換為兩欄 */
@media screen and (min-width: 360px) {
  .form-grid {
    /* 使用 !important 確保擊穿舊有的 700px 限制 */
    grid-template-columns: 1fr 1fr !important; 
  }
}

/* 您原本的 700px 邏輯可以保留，但要放在 414px 之後 */
@media screen and (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr; /* 平板以上維持兩欄或調整比例 */
	
  }
}
.form-group {
  margin-bottom: 6px;
}

.form-group label {
  display: block;
 /*margin-bottom: 6px;*/
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-banner {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
  font-size: 0.9rem;
}

.status-banner.info {
  background: #e0f2fe;
  color: #0f172a;
  border: 1px solid #bae6fd;
}

.status-banner.success {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #bbf7d0;
}

.status-banner.error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

/* Drag & Drop upload zones */
.drop-zone {
  min-height:120px;
  position: relative;
  border-radius: 4px;
  border: 1px dashed #c4b5fd;
  background: rgba(15, 23, 42, 0.02);
  padding: 2px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    transform 0.1s ease;
  touch-action: manipulation;
}

.drop-zone:hover {
  border-color: #818cf8;
}
.drop-zone__preview-container {
    background-color: #1a1a1a; /* 底色墊深，圖片若不滿版也不會出現白邊 */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drop-zone--active {
 border: 2px dashed #00ffcc !important;	
  border-color: #22c55e;
   outline: 2px dashed #00ffcc;
    outline-offset: -10px;
    background-color: rgba(0, 255, 204, 0.05) !important;	
   transform: scale(1.02); /* 微微放大，給予物理回饋感 */
    transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
  cursor:move;
}

.drop-zone__label {
	margin-top:5px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.drop-zone__prompt {
  font-size: 1.1rem;
  color: #111827;
  margin-bottom: 8px;
}

.drop-zone__hint {

  background: rgba(0, 255, 204, 0.2);
    border: 1px solid #00ffcc;
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    transition: 0.3s;
}

.drop-zone__preview {
  /*margin-top: 10px;*/
  display: flex;
  justify-content: center;
}

.drop-zone__preview img {
  
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.file-input-hidden {
  display: none;
}

/* Fan wall */
.fan-wall-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-align: center;
}
.del-btn {
	position: absolute;
	top: -10px;
	right: -10px;
	background: #ff4444;
	color: white;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.gallery-item {
  position:relative;
  background: #ffffff;
  border-radius: 12px;
  /*overflow: hidden;*/
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  transition: transform 0.15s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-item-info {
  padding: 10px 12px;
}

.gallery-item-info .task-id {
  font-size: 0.75rem;
  color: #4b5563;
  margin-bottom: 4px;
}

.gallery-item-info .date {
  font-size: 0.7rem;
  color: #9ca3af;
}

.empty-state {
  text-align: center;
  padding: 28px 12px;
  color: #e5e7eb;
  font-size: 0.95rem;
}

/* 當 drop-zone 擁有圖片時，隱藏內部的文字元素 */
.drop-zone.drop-zone--has-image .drop-zone__label,
.drop-zone.drop-zone--has-image .drop-zone__actions,
.drop-zone.drop-zone--has-image .drop-zone__prompt,
.drop-zone.drop-zone--has-image .drop-zone__hint {
    display: none;
}

/* 確保預覽圖容器在有圖片時撐滿或呈現正確樣式 */
.drop-zone__preview img {
    display: block;
    max-width: 100%;
    height: auto;
   /* border-radius: 8px; *//* 增加一點專業圓角感 */
}

@keyframes pearl-spin {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}
/* 🚩 珍珠引擎：資產區塊流光路徑 [2026-01-31] */
.drop-zone.is-processing {
    position: relative;
    border: 2px solid transparent; /* 讓出邊框位置 */
    background-clip: padding-box;
    transition: all 0.3s ease;
}

/* 核心流光層 */
.drop-zone.is-processing::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    z-index: -1;
    /* 職人級綠色流光 $$360^\circ$$ 旋轉 */
    background: conic-gradient(
        from var(--angle), 
        transparent 70%, 
        #00ff00 80%, 
        #00ff00 100%
    );
    border-radius: 12px; /* 對齊您原本的區塊圓角 */
    animation: pearl-spin 2s linear infinite;
}
.drop-zone.is-processing {
    pointer-events: none; /* 處理中禁止重複點擊 */
    opacity: 0.6;        /* 視覺上變暗 */
    cursor: wait;        /* 游標變成漏斗 */
}

/* 珍珠引擎：影像顯示規範 */
.community-gallery-item img {
    width: 100%;
    height: 120px; /* 您設定的固定高度 */
    
    /* 🚩 關鍵修正：確保完整顯示不裁切 */
    object-fit: contain; 
    
    /* 填補背景，避免比例不合時出現白邊 */
    background-color: #000; 
}
.gallery-item-info .ai-script-content {
  font-size: 0.85rem;
  color: #4b5563 !important;
  margin-bottom: 4px;
}


.drop-zone__actions {
   
    z-index: 10; /* 確保在預覽圖上方 */
    
}
.action-btn {
    background: rgba(0, 255, 204, 0.2);
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    transition: 0.3s;
}

.action-btn:active {
    background: #00ffcc;
    color: #000;
}


/* 🚩 珍珠引擎：重置按鈕樣式 */
.reset-trigger {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6); /* 半透明黑底 */
    border: 1px solid rgba(0, 255, 204, 0.5); /* 珍珠綠邊框 */
    color: #00ffcc;
    border-radius: 50%; /* 圓形 */
    display: none; /* 預設隱藏，有圖才出現 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 150; /* 層級最高，確保點得到 */
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px); /* 背景模糊，增加質感 */
}

/* 💡 當圖框有圖片時，顯示重置按鈕 */
.drop-zone--has-image .reset-trigger {
    display: flex;
    animation: fadeIn 0.4s ease;
}

/* 懸浮效果：珍珠光芒 */
.reset-trigger:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
    transform: scale(1.1);
}

/* 防止按鈕在手機長按時被系統選單干擾 */
.reset-trigger {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

#styleFilter {
    background: #111;
    color: #00ffcc;
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 20px; /* 圓角看起來更像膠囊按鈕 */
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
}

#styleFilter:hover {
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* 🚩 珍珠引擎：SVG 自動適應特效 */
.drop-zone svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

/* 🚩 當拖拉啟動時，讓圖示發光 */
.drop-zone--active svg {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 8px #00ffcc);
}

/* 🚩 衣服區域用紫色光 */
#garmentZone.drop-zone--active svg {
    filter: drop-shadow(0 0 8px #d1a3ff);
}

@media screen and (min-width: 960px) {
    .user-area {
        position: fixed;
        top: 20px;
        /* 🚩 關鍵計算：確保按鈕對齊 960px 容器的右側 */
        right: calc((100% - 960px) / 2 + 0px) !important; 
    }
}

/* 768px 到 960px 之間，按鈕貼著邊緣跑 */
@media screen and (min-width: 768px) and (max-width: 959px) {
    .user-area {
        right: 20px;
    }
}

/* 🚩 定義隱藏狀態的樣式 */
.user-area.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* 輕微往上飄移，更有質感 */
}
/* 會員區域外框 */
.user-area {
    position: fixed;
    top: 20px;
    right: 20px;
	gap:10px;
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
	transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.user-area:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.user-area a{
       text-decoration: none;
	       padding:0px;
}

#avatarBtn{
	text-decoration: none;
	       padding:0px;
}

/* 用戶頭像 */
.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 0px;
}

/* 用戶名稱 */
.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-right: 0px;
}

/* 按鈕通用樣式 */
.user-area a {
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.2s;
}

/* 管理後台按鈕 - 廠長專屬 */
.btn-admin {
    background: #F00;
    color: #00ffcc;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
}

.btn-admin:hover {
    background: #ff6b81;
}

/* 登出連結 */
.btn-logout {
    background: #696;
    color: #00ffcc;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
}

.btn-logout:hover {
    background: #3C9;
}

/* 未登入時的提示文字 */
.login-tip {
    font-size: 12px;
    color: #999;
    margin-right: 10px;
}

/* 針對行動裝置微調 */
@media (max-width: 480px) {
    .user-area {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
    }
    .user-name { display: none; } /* 手機版隱藏名字只留頭像 */
}



.login-form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fcfcfc; 
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}


.login-form-control:focus {
    border-color: #ff9800; 
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1); 
    background-color: #fff;
}

.email_login{
	display: flex;
    align-items: center;
	gap:10px;
	font-size: 13px; color: #ff9800;
	text-decoration: none;
	border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.email_login:hover {
    background: #f1f1f1;
    color: #333;
}
/* 🏛️ 模態層級定錨協議 */
#pearl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 🚩 不要用純黑，改用帶有透明度的深色 */
    background: rgba(0, 0, 0, 0.4); 
    
    /* 🚩 加入毛玻璃效果，這樣後面的網頁會變得模糊，很有質感 */
    backdrop-filter: blur(5px); 
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 確保它在最前面 */
}
.pearl-modal-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    
    width: 95%;
    max-width: 500px;
    
    /* 🚩 核心修正：防止撐破螢幕 */
    display: flex;            /* 啟動彈性佈局 */
    flex-direction: column;   /* 由上而下排列 */
    max-height: 85vh;         /* 🚩 限制最高只佔螢幕 85%，預留上下空隙 */
    
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    
    /* 確保在螢幕中間 */
    position: relative;
    overflow: hidden;         /* 防止內容溢出圓角 */
}

/* 🚩 同時確保內容區會乖乖捲動 */
#alert-message {
    flex: 1;                  /* 🚩 讓這區自動吞掉剩餘空間 */
    overflow-y: auto;         /* 內容太多就出捲軸 */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
}

/* 🚩 確保按鈕區不會被壓扁，永遠守在底部 */
.modal-actions {
    flex-shrink: 0;           /* 不准縮小 */
    padding-top: 10px;
}

.btn-danger {
	background: #ff4d4f;
	color: white;
	border: none;
	padding: 10px;
	flex: 1;
	border-radius: 6px;
	cursor: pointer;
}
.btn-secondary {
	background: #434343;
	color: white;
	border: none;
	padding: 10px;
	flex: 1;
	border-radius: 6px;
	cursor: pointer;
}

/* 預設樣式（未登入：冷酷灰） */
.btn-prim#submitBtn {
    background-color: #888888;
    border-color: #777777;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* 🚩 已登入樣式（會員：產線熱情橘） */
.btn-prim#submitBtn.is-member {
    background-color: #ff9800; /* 您 UI 常見的橘色 */
    border-color: #e68a00;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.btn-prim#submitBtn.is-member:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
}
.btn-prim {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #888888;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-prim:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-prim:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 當螢幕寬度小於 768px 時（手機模式） */
@media (max-width: 767px) {
    .fan-wall-header {
        /* 🚩 強制變上下排 */
        flex-direction: column; 
        /* 🚩 改為置中對齊（或 flex-start 靠左） */
        align-items: center; 
        text-align: center;
        gap: 15px; /* 上下間距加大一點 */
    }

    .fan-wall-title {
        margin: 0; /* 消除標題預設邊距 */
        width: 100%;
    }

    #styleFilter {
        /* 🚩 手機版選單可以設為 100% 寬度，比較好點擊 */
        width: 100%; 
        max-width: 300px; /* 或者限制一個最大寬度 */
    }
	/* 用戶頭像 */
.logo {
    width: 40px;
    height: 40px;    
    object-fit: cover;    
    margin-right: 0px;
}
}

/* 用戶頭像 */
.logo {
    width: 40px;
    height: 40px;    
    object-fit: cover;    
    margin-right: 0px;
}

.user-profile-trigger img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.user-dropdown-menu {
    position: absolute;
    top: 50px; /* 根據導覽列高度調整 */
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown-menu a:hover {
    background: #fff5e6; /* 淡淡的橘色背景 */
    color:  #ff9800;
}
.humansvg{
margin-top: 20px;	
width: 200px;
height: 200px;	
fill: #39C;
transition: fill 0.3s ease;
}
.humansvg :hover{
fill:#6CF;
transition: fill 0.3s ease;
}
.clothing{
margin-top: 20px; 	
width: 200px;
height: 200px;
fill:#F9C;
transition: fill 0.3s ease;
}
.clothing :hover{
fill:#f66;
transition: fill 0.3s ease;
}

.b_style{
	width: 100%;
	background: #0a0a0a; 
	color: #0f4; 
	border: 2px solid #1a1a1a; 
	padding: 12px 20px; 
	border-radius: 8px; 
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);	
	}
/* 總容器：桌機預設並排 */
.auth-operation-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch; /* 🚩 關鍵：強制子元素高度一致 */
    margin: 10px 0;
    width: 100%;
}

/* 兩個區塊平分空間或自定義比例 */
.scene-selector-container {
    flex: 0.5; /* 佔用左側空間 */
    margin-top: 0 !important; /* 消除原本的 margin-top */
}

.privacy-container {
    flex: 1.5; /* 佔用右側空間 */
    margin: 0 !important; /* 消除原本的 margin，由父層 gap 控制 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 讓內容均勻分佈 */
}

/* 🚩 手機版自適應 (RWD) */
@media (max-width: 768px) {
    .auth-operation-wrapper {
        flex-direction: column; /* 變回上下排 */
    }
    .scene-selector-container, .privacy-container {
        width: 100%;
    }
    .privacy-container {
        margin-top: 0px !important;
    }
}	
.fancybox__container {
    z-index: 10001 !important; /* 數字要比珍珠彈窗的 z-index 高 */
}
/* 🚩 強制讓 Fancybox 的按鈕顯示出來並置頂 */
.fancybox__toolbar {
    --f-toolbar-bg: rgba(0, 0, 0, 0.5); /* 給工具列一點背景，防止跟照片混在一起 */
    z-index: 10005 !important;
}

.fancybox__content {
    border: 1px solid #fff; /* 這是您剛才要的 PNG 邊框 */
}

/* 確保按鈕顏色是白的 */
.f-button {
    color: #fff !important;
}

/* 🚩 核心修復：讓內容超出時自動產生捲軸 */
#alert-message {
    max-height: 70vh;    /* 🚩 關鍵：限制最高為螢幕高度的 70%，留點空間給標題跟按鈕 */
    overflow-y: auto;    /* 🚩 垂直方向自動顯示捲軸 */
    padding-right: 5px;  /* 給捲軸一點空間，避免擠到內容 */
    
    /* 讓手機滑動更滑順 */
    -webkit-overflow-scrolling: touch; 
}

/* 針對電腦桌機：美化捲軸，不要讓它看起來太粗 */
#alert-message::-webkit-scrollbar {
    width: 4px;
}
#alert-message::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.pearl-toast {
	position: fixed;
	top: 20px;
	left: 50%; 
	transform: translateX(-50%); 
	padding: 22px 38px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	border-radius: 8px; 
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 20;
	font-size: 14px;
	font-weight: 500;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 209, 178, 0.3); 
	border-top: 3px solid #00d1b2; 
	animation: dropDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* 🚩 管理員專用：隱藏件的視覺標記 */
.gallery-item.is-hidden-admin {
     opacity: 0.6;
    filter: grayscale(40%);
    background: #1a1a1a !important; /* 變暗背景 */
    border: 1px dashed #ff4d4d !important; /* 紅色虛線邊框提醒 */
}

/* 確保過渡動畫平滑 */
.gallery-item {
    transition: all 0.4s ease;
}
/* 🚩 直立式 Switch 專用 CSS */
/* 🚩 直立式 Switch 修正版 */
.switch.vertical {
    position: relative;
    display: inline-block;
    width: 12px; /* 寬度變窄 */
    height: 30px; /* 高度變長 */
}

.switch.vertical .slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 1px;     /* 置中：(16px - 10px) / 2 = 3px */
    bottom: 3px;   /* 預設在最下方 */
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* 🚩 關鍵修正：勾選後「向上」位移 */
/* 如果 bottom 是 3px，向上移動 14px 剛好會到頂部附近 */
.switch.vertical input:checked + .slider:before {
    transform: translateY(-14px); 
}

/* 讓狀態文字垂直排列更有質感 */
.admin-status-bar span {
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    margin-top: 4px;
}/* 🚩 隱身效果：讓隱藏件一眼看穿 */

.gallery-item.is-hidden-admin .img-container {
    border: 2px dashed #ff4444; /* 隱藏時給個紅虛線提醒 */
}
#alert-title{
color:#000 !important;	
	}
@media screen and (max-width: 768px) {
    /* 隱藏中間那一坨旋轉、縮放按鈕 */
    .fancybox__toolbar__column.is-middle {
        display: none !important;
    }

    /* 隱藏左邊的數字資訊 (1/5) */
    .fancybox__toolbar__column.is-left {
        display: none !important;
    }

    /* 讓右邊剩下的按鈕有足夠呼吸空間 */
    .fancybox__toolbar__column.is-right {
        flex: 1;
        justify-content: flex-end;
    }
    
    /* 加大按鈕，方便拇指點擊 */
    .f-button {
        width: 48px !important;
        height: 48px !important;
    }
}
	
	