

  
  @media screen and (max-width: 1200px) {  /* 設定手機版臨界點，例如 768px */
    main #recommend .recommend #recommendIn {
      display: none;
    }
  }
  
  @media screen and (min-width: 1201px) {
    main #recommend .recommend #recommendIn {
      display: block; /* 或者是適合的 display 屬性 */
    }
  }
  
  
  .tag-label {
    display: inline-block;  /* 讓標籤變成方塊狀 */
    color: #1877f2;  /* Facebook 藍色 */
    font-size: 14px;  /* 文字大小 */
    font-weight: bold;  /* 加粗 */
    text-decoration: none;  /* 移除超連結底線 */
    margin: 5px;  /* 間距 */
    cursor: pointer;  /* 滑鼠變成手型 */
  }
  
  .tag-label:hover {
    text-decoration: underline;  /* 滑鼠懸停時加底線 */
  }
  
  
  
  .loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  
  .loading-animation .spinner {
    width: 20px;
    height: 20px;
    border: 4px solid #999898;
    border-top-color: #555555;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
  }



  .loading-animation2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  
  .loading-animation2 .spinner {
    width: 14px;
    height: 14px;
    border: 3px solid #999898;
    border-top-color: #555555;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }



  .gslide-inner-content.new-article-temposition {
    align-items: flex-start !important;
    justify-content: center !important;
    margin-top: -560px;
  }


  .tip-success {
    color: rgb(44, 177, 32)!important;; /* 成功綠 */
  }
  
  .tip-error {
    color: #ff4d4f!important;; /* 失敗紅 */
  }



  .toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #3d3d3d;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
    font-size: 14px;
    font-weight: bold;
  }
  
  /* 顯示時的動畫效果 */
  .toast.show {
    top: 30px;
    opacity: 1;
  }
  
  /* 消失時會自動回到原本位置 */
  






  /*** 儲存文章列表 骨架  */
  .skeleton-wrapper {
    padding: 10px;
  }
  
  .skeleton {
    background-color: transparent; /* 拿掉整體底色 */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .skeleton-avatar,
  .skeleton-header,
  .skeleton-line {
    background-color: #2b2b2b;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
  }
  
  /* 每個區塊內部 shimmer 效果 */
  .skeleton-avatar::after,
  .skeleton-header::after,
  .skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.2s infinite;
  }
  
  @keyframes shimmer {
    100% {
      left: 100%;
    }
  }
  
  .skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 12px;
  }
  
  .skeleton-header {
    width: 120px;
    height: 14px;
    margin-bottom: 8px;
  }
  
  .skeleton-line {
    height: 12px;
    margin-bottom: 8px;
  }
  




  /*** 文章列表 骨架  */
  .threadav-skeleton {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(130deg, #350935 25%, #3f0a38 50%, #350935 75%);
    background-size: 200% 100%;
    animation: threadav-loading 1.2s ease-in-out infinite;
    transition: opacity 0.5s ease-in-out;
    animation-iteration-count: 5;
    overflow: hidden;
}

@keyframes threadav-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* lazy-img 共用淡入效果 */
.threadav-skeleton picture img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
  z-index: 2;
}

.threadav-skeleton picture img.lazy.loaded {
  opacity: 1;
}



.threadav-skeleton video.lazy-video {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
  z-index: 2;
}

.threadav-skeleton video.lazy-video.loaded {
  opacity: 1;
}







.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.toggle-password svg {
  width: 100%;
  height: 100%;
  fill: #666;
}








.btnBg {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.previewArea {
  display: flex;
  gap: 12px; /* 圖片間距，可自由調整 */
  justify-content: center; /* 水平置中 */
  align-items: flex-start;
  flex-wrap: wrap; /* ✅ 避免小螢幕擠爆 */
}

.previewArea img {
  max-width: 300px;
  height: auto;
  border-radius: 6px; /* 選配：讓圖片圓角更美觀 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* 選配：陰影效果 */
}

.resultCanvas {
  z-index: 2;
  opacity: 0.35;
  pointer-events: none;
}
.uploadProgress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.progress-circle svg {
  width: 40px;
  height: 40px;
}

.circle-bg {
  fill: none;
  stroke: #444;
  stroke-width: 4;
}

.circle {
  fill: none;
  stroke: #ad1399;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%; /* ✅ 這是重點 */
  stroke-dasharray: 0, 113.097; /* 圓周 = 2πr ≈ 113.097 (r=18) */
  transition: stroke-dasharray 0.3s ease;
}

.percentage {
  fill: #fff;
  font-size: 10px;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
}

.previewImage {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.previewImage.fade-in {
  opacity: 1;
}


.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-policy {
  font-size: 10px;
  text-align: center;
  color: #888;
  opacity: 0.3;
  padding: 20px 10px;
}




.more-indicator {
  display: flex;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.glow-box {
  padding: 5px 8px;
  border-radius: 2px;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  background: linear-gradient(130deg, #7e1378 25%, rgb(140, 78, 221) 50%, #7e1378 75%);
  background-size: 200% 100%;
  animation: threadav-loading 1.2s ease-in-out infinite;
  transition: opacity 0.5s ease-in-out;
  animation-iteration-count: 3;
  white-space: nowrap;
}

.more-text {
  color: #818181;
  font-size: 13px;
}


#settings-frame-container {
  position: fixed;       /* 固定在螢幕上 */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;         /* 確保蓋在最上層 */
  display: none;         /* 預設關閉 */
}

#settings-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#activity-frame-container {
  position: fixed;       /* 固定在螢幕上 */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;         /* 確保蓋在最上層 */
  display: none;         /* 預設關閉 */
}

#activity-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}



.relatedInBg .relatedIn .relatedMsg {
  font-size: 0.925rem;
}

.relatedInBg .relatedIn .account .name {
  margin-right: var(--content-margin-right);
  font-weight: bold;
  font-size: 0.955rem;
}






.pw-wrap {
  max-width: 400px;
  margin: 80px auto;
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  background: #1a1a1a; /* 深灰背景 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 4px 20px rgba(0,0,0,0.5);
  color: #eee;
}
.pw-wrap h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}
.pw-wrap .hint {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
}
.pw-wrap input {
  width: 100%;
  padding: 0.75rem;
  background: #111;
  color: #fff;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 6px;
  outline: none;
}
.pw-wrap input:focus {
  border-color: #888;
}
.pw-wrap button {
  width: 100%;
  padding: 0.75rem;
  background: #fff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}
.pw-wrap button:hover {
  background: #e0e0e0;
}
.pw-wrap .error {
  color: #ff5c5c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

#passwordInput {
  width: 400px;
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  #passwordInput {
    width: 100%;
  }
}


.more-content-section {
  margin-top: 15px;
}

.more-title {
  font-weight: bold;
  color: #eee;
  font-size: 15px;
  margin-bottom: 10px;
}

.more-item {
  display: block;
  background-color: #111;
  color: #ccc;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 8px;
  font-size: 14px;
  text-decoration: none;  /* 去除底線 */
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.more-item:hover {
  background-color: #1a1a1a;
  color: #fff;
}



.icon-sound-adj2 {
  position: absolute;
  right: -250px;
  bottom: 58px;
  z-index: 10;
}


.desktop-only {
  display: inline-block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline-block;
  }
}









.relatedMsg__intro {
  background: #1a1a1a;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 4px,
    transparent 8px
  );
  padding: 20px 25px;
  border-radius: 8px;
  color: #ccc;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.relatedMsg__intro p {
  margin-bottom: 12px;
  white-space: normal !important;  /* 確保可以換行 */
  overflow-wrap: break-word;        /* 長字串自動換行 */
  word-break: break-word;            /* 支援各種瀏覽器 */
}
.relatedMsg__intro p:first-of-type {
  font-weight: 600;
  font-size: 15px;
  color: #ddd;
}

.relatedMsg__intro p:last-of-type {
  font-size: 13px;
  color: #bbb;
  font-style: italic;
}

.relatedMsg__intro img {
  max-width: 100%;
  margin-bottom: 16px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 預設隱藏手機版圖片 */
.topread-img-mobile {
  display: none;
}

/* 手機尺寸時顯示手機版圖片，隱藏桌機版圖片 */
@media screen and (max-width: 767px) {
  .topread-img-desktop {
    display: none !important;
  }
  .topread-img-mobile {
    display: block !important;
  }
}









/* .custom-controls {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  gap: 12px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.custom-controls button {
  background: linear-gradient(to bottom right, #ffffff, #eaeaea);
  color: #222;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.custom-controls button:hover {
  background: linear-gradient(to bottom right, #f5f5f5, #dcdcdc);
  transform: scale(1.05);
}

.custom-controls button:active {
  transform: scale(0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  .custom-controls {
    gap: 10px;
    padding: 5px 8px;
  }

  .custom-controls button {
    font-size: 12px;
    padding: 3px 6px;
  }
} */
.custom-controls {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  gap: 12px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.custom-controls button {
  background: radial-gradient(circle, white 60%, #eaeaea 100%);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-controls button:hover {
  transform: scale(1.05);
}

.custom-controls svg {
  pointer-events: none;
}
.custom-controls .rewind-btn ,   .custom-controls .forward-btn {
  color:#000;
}
