/**
 * Brand Video 區塊專用樣式
 * 模組化設計，獨立於其他樣式檔案
 */

/* ==================== Brand Video 基礎佈局 ==================== */
.brand-video {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0;
  gap: 48px;
  width: 100vw;
  background: linear-gradient(90deg, #006FBB 0%, #1F286F 100%);
  min-height: 800px;
  /* 使用負邊距讓區塊突破父層限制，實現滿版效果 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.brand-video .sec-inner {
  width: 100%;
  max-width: 1500px;
  margin: 45px auto 0 auto;
  padding: 0 150px;
}

.brand-video .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

/* ==================== 區塊標籤 ==================== */
.brand-video .section-label {
  position: absolute;
  top: 40px;
  left: 120px;
  z-index: 2;
}

.brand-video .section-label span {
  display: inline-block;
  color: #FFFFFF;
  font-size: 72px;
  font-weight: bold;
  line-height: 1.2;
  text-align: left;
  margin: -150px 0 0 10px;
}

/* ==================== 主標題 ==================== */
.brand-video .brand-main-title {
  font-size: 36px;
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  margin: 0;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==================== 副標題圖片 ==================== */
.brand-video .subtitle-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.brand-video .subtitle-image-container img {
  max-width: 60%;
  height: auto;
}

/* ==================== 影片播放器 ==================== */
.brand-video-player {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.brand-video-player video {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

/* 視頻控制覆蓋層 */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.brand-video-player:hover .video-overlay {
  opacity: 1;
}

/* 當影片暫停時顯示覆蓋層 */
.brand-video-player.video-paused .video-overlay {
  opacity: 1;
}

/* 當影片播放時隱藏覆蓋層（覆蓋hover效果） */
.brand-video-player:not(.video-paused) .video-overlay {
  opacity: 0 !important;
}

/* iOS 設備特殊處理 */
@supports (-webkit-touch-callout: none) {
  /* 在 iOS 上，初始狀態顯示播放按鈕，直到影片成功播放 */
  .brand-video-player .video-overlay {
    opacity: 1;
  }
  
  .brand-video-player:not(.video-paused) .video-overlay {
    opacity: 0 !important;
  }
}

.video-play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.video-play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 25px solid #1F286F;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 8px;
}

/* 靜音按鈕 */
.video-mute-button {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-mute-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.video-mute-button svg {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

/* 修正後的靜音按鈕圖標邏輯 */
.video-mute-button .mute-icon {
  display: none; /* 預設隱藏靜音符號 */
}

.video-mute-button .unmute-icon {
  display: block; /* 預設顯示有聲音的喇叭符號 */
}

/* 當有 muted 類別時（影片靜音狀態） */
.video-mute-button.muted .mute-icon {
  display: block; /* 顯示靜音符號 */
}

.video-mute-button.muted .unmute-icon {
  display: none; /* 隱藏有聲音的喇叭符號 */
}

/* LINE OA 推廣區塊 */
.line-oa-promotion-container {
  width: 100%;
  max-width: 600px;
  margin: 40px auto 0;
  position: relative;
}

.line-oa-promotion-container::after {
  content: '';
  display: block;
  width: 100%;
  height: 0.5px;
  background-color: #FFFFFF;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.line-oa-promotion {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.line-oa-subtitle {
  text-align: center;
}

.line-oa-subtitle img {
  max-width: 100%;
  height: auto;
  margin: 10px auto;
}

.line-oa-image {
  text-align: center;
}
.line-oa-button{
  width: 70%;
  margin: auto;
}

.line-oa-image img {
  max-width: 200px;
  height: auto;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ==================== 區塊分割線（左上往右下斜線） ==================== */
.brand-video .section-divider-reverse {
  position: relative;
  width: 100vw;
  height: 200px;
  overflow: visible;
  z-index: 1;
  /* 使用負邊距讓三角形突破父層限制，實現滿版效果 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -300px;
}

.brand-video .section-divider-reverse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #006FBB 0%, #1F286F 100%);
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
  margin-top: 30px;
}


.investing-warning-text {
  font-family: 'Noto Sans', 'sans-serif';
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.2;
  padding: 0 10px; 
}

.investing-warning-filtered-section {
  font-family: 'Noto Sans', 'sans-serif';
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
  margin: 10px auto;
}

/* ==================== 響應式設計 ==================== */

/* 超大螢幕調整 (min-width: 1201px) */
@media (min-width: 1201px) {
  /* 區塊標籤向右移動到中間偏左位置 */
  .brand-video .section-label {
    left: 30%;
    transform: translateX(-50%);
  }
  
  .brand-video .section-label span {
    font-size: 96px;
    font-weight: bold;
    margin: -200px 200px 0px 0px;
  }

  .brand-video {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 0 0 0;
    gap: 48px;
    width: 100vw;
    background: linear-gradient(90deg, #006FBB 0%, #1F286F 100%);
    min-height: 800px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -70px;
  }
}

/* 大螢幕調整 (max-width: 1200px) */
@media (max-width: 1200px) {
  .brand-video .sec-inner {
    padding: 0 120px;
  }

  .brand-video .section-label {
    position: absolute;
    top: 10px;
    left: 60px;
    z-index: 2;
  }

  .brand-video .section-label span {
    display: inline-block;
    color: #FFFFFF;
    font-size: 94px;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    margin: -150px 0 0 10px;
  }

  .brand-video {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 0 0 0;
    gap: 48px;
    width: 100vw;
    background: linear-gradient(90deg, #006FBB 0%, #1F286F 100%);
    min-height: 800px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -70px;
  }

}

/* 中等螢幕調整 (959px ~ 769px) */
@media (max-width: 959px) and (min-width: 769px) {
  .brand-video .sec-inner {
    padding: 0 80px;
    margin: 60px auto 0 auto;

  }

  .brand-video .section-label {
    top: 20px;
    left: 60px;
  }
  
  .brand-video .section-label span {
    font-size: 84px;
    font-weight: bolder;
    margin: -150px 0px 0 -15px;
  }
  
  .brand-video-player {
    max-width: 600px;
  }
  
  .brand-video-player video {
    min-height: 300px;
  }

  .brand-video {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 0 0 0;
    gap: 48px;
    width: 100vw;
    background: linear-gradient(90deg, #006FBB 0%, #1F286F 100%);
    min-height: 800px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -130px;
  }
  
  .line-oa-promotion {
    display: flex;
    flex-direction: row;
    align-items: self-end;
    gap: 30px;
  }
  
  .line-oa-image img {
    display: block;
  }
  
  /* 中等螢幕：顯示SP版LINE OA圖片和副標題 */
  .line-oa-image .is-pc {
    display: none !important;
  }
  
  .line-oa-image .is-sp {
    display: block !important;
  }
  
  .line-oa-subtitle .is-pc {
    display: none !important;
  }
  
  .line-oa-subtitle .is-sp {
    display: block !important;
  }
  
  /* 強制覆蓋任何可能的衝突 */
  .line-oa-subtitle img.is-pc {
    display: none !important;
  }
  
  .line-oa-subtitle img.is-sp {
    display: block !important;
  }
  
  .video-mute-button {
    width: 35px;
    height: 35px;
    top: 12px;
    right: 12px;
  }
  
  .video-mute-button svg {
    width: 18px;
    height: 18px;
  }

  
}



/* 平板版 (max-width: 768px) */
@media (max-width: 768px) {
  .brand-video {
    padding: 60px 0 0 0;
    gap: 32px;
    margin-top: 30px;
  }
  
  .brand-video .sec-inner {
    padding: 0 40px;
  }
  
  .brand-video .inner {
    gap: 20px;
  }
  
  /* 區塊標籤調整 */
  .brand-video .section-label {
    top: 20px;
    left: 10px;
  }
  
  .brand-video .section-label span {
    font-size: 72px;
    font-weight: bolder;
    margin: -100px 0 0 0;
  }
  
  .brand-video .brand-main-title {
    font-size: 28px;
    margin: 100px 0 0 0;
    padding: 0 20px;
  }

  .brand-video .subtitle-image-container {
    margin-bottom: 40px;
    padding: 0 20px;
  }
  
  .brand-video .subtitle-image-container img {
    max-width: 70%;
    height: auto;
  }
  
  .brand-video .section-divider-reverse {
    height: 150px;
    margin-top: -239px;
  }
  
  .brand-video-player video {
    min-height: 250px;
  }
  
  .video-play-button {
    width: 60px;
    height: 60px;
  }
  
  .video-play-button::after {
    border-left: 18px solid #1F286F;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 6px;
  }
  
  .video-mute-button {
    width: 35px;
    height: 35px;
    top: 12px;
    right: 12px;
  }
  
  .video-mute-button svg {
    width: 18px;
    height: 18px;
  }
  
  .line-oa-promotion-container {
    max-width: 600px;
    margin: 30px auto 0;
  }
  
  .line-oa-promotion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  /* 在LINE OA圖片下方添加白色橫線 */
  .line-oa-image {
    position: relative;
    width: 100%;
  }

  
  /* 平板版：顯示SP版LINE OA圖片和副標題 */
  .line-oa-image .is-pc {
    display: none !important;
  }
  
  .line-oa-image .is-sp {
    display: block !important;
    margin:auto;
  }
  
  .line-oa-subtitle .is-pc {
    display: none !important;
  }
  
  .line-oa-subtitle .is-sp {
    display: block !important;
  }

  .line-oa-subtitle img {
    max-width: 100%;
    height: auto;
    width: 70%;
    margin: auto;
  }
  
  /* 強制覆蓋任何可能的衝突 */
  .line-oa-subtitle img.is-pc {
    display: none !important;
  }
  
  .line-oa-subtitle img.is-sp {
    display: block !important;
    width: 60%;
    margin: auto;
  }
}

/* 手機版 (max-width: 480px) */
@media (max-width: 480px) {
  .brand-video {
    padding: 40px 0 0 0;
    gap: 24px;
  }

  .brand-video .sec-inner {
    padding: 0 20px;
  }
  
  .brand-video .inner {
    gap: 10px;
  }
  
  /* 區塊標籤手機版調整 */
  .brand-video .section-label {
    top: 15px;
    left: 10px;
  }
  
  .brand-video .section-label span {
    font-size: 60px;
    font-weight: bolder;
    margin: -50px 0 0 0;
  }
  
  .brand-video .brand-main-title {
    font-size: 24px;
    margin-top: 130px;
  }

  .brand-video .subtitle-image-container img {
    max-width: 80%;
    height: auto;
  }
  
  .brand-video .section-divider-reverse {
    height: 100px;
    margin-top: -169px;
  }
  
  .brand-video-player video {
    min-height: 200px;
  }
  
  .video-play-button {
    width: 50px;
    height: 50px;
  }
  
  .video-play-button::after {
    border-left: 15px solid #1F286F;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
  }
  
  .video-mute-button {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }
  
  .video-mute-button svg {
    width: 16px;
    height: 16px;
  }
  
  .line-oa-promotion-container {
    max-width: 600px;
    margin: 20px auto 0;
  }
  
  .line-oa-promotion {

    gap: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .line-oa-image {
    position: relative;
    width: 100%;
  }
  
  .line-oa-image img {
    max-width: 150px;
    display: block;
  }
  

  
  /* 手機版：顯示SP版LINE OA圖片和副標題 */
  .line-oa-image .is-pc {
    display: none !important;
  }
  
  .line-oa-image .is-sp {
    display: block !important;
    margin:auto;
  }
  
  .line-oa-subtitle .is-pc {
    display: none !important;
  }
  
  .line-oa-subtitle .is-sp {
    display: block !important;
  }
  
  /* 強制覆蓋任何可能的衝突 */
  .line-oa-subtitle img.is-pc {
    display: none !important;
  }
  
  .line-oa-subtitle img.is-sp {
    display: block !important;
    width: 70%;
    margin: auto;
  }
}

/* LINE OA 圖片響應式顯示 - 預設PC版（桌面版） */
@media (min-width: 960px) {
  .line-oa-image .is-pc {
    display: block !important;
  }
  
  .line-oa-image .is-sp {
    display: none !important;
  }
  
  .line-oa-subtitle .is-pc {
    display: block !important;
  }
  
  .line-oa-subtitle .is-sp {
    display: none !important;
  }
}