/* 1. 基礎樣式恢復 */
body {
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 新增：統一標題字重，使其與正文一致 */
h1, h2, h3, h4 {
  font-weight: normal;  /* 移除粗體 */
  font-size: 1.2em;     /* 稍微比正文大一點點以示區分，或設為 1em 完全一致 */
  margin-top: 0;
  
}

/* 2. 核心布局：左右並排 */
.grid {
  display: grid;
  grid-template-columns: 30% 70%; /* 3:7 比例 */
  min-height: 100vh;
}

/* 左欄容器：固定在左側 */
.zuo {
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden; /* 改為 hidden，避免出現多餘滾動條 */
  border-right: 1px solid #eee; 
}

/* 導航欄 iframe 設置：消除小窗口感 */
.nav-iframe {
  width: 100%;
  height: 100%;   /* 撐滿左欄高度 */
  border: none;   /* 移除邊框 */
  display: block;
  overflow: hidden; /* 禁止小窗口內部滾動 */
}

/* 右欄內容區 */
.you {
  padding: 20px 20px 20px 40px;
  max-width: 800px;
}

/* 媒體適配 */
.you img {
  max-width: 100%; 
  height: auto;
  display: block;
  margin: 15px 0;
}

.video-container {
  width: 100%;
  max-width: 800px; /* 维持你设定的最大宽度 */
  margin: 20px 0 10px 0;
  
  /* 核心：设置 16:9 的视频比例 */
  aspect-ratio: 16 / 9; 
}

/* 新增：让内部的 iframe 填满整个比例容器 */
.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 3. 響應式切換：手機端自動變為上下堆疊 */
@media (max-width: 768px) {
  .grid {
    display: block; 
  }

  .zuo {
    position: static;
    width: 100%;
    height: auto; /* 手機端高度自動 */
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .nav-iframe {
    height: 400px; /* 手機端給導航一個合適的展開高度 */
  }

  .you {
    width: 100%;
    padding: 15px;
  }
}