/* 文章頁樣式 */
.article-page {
  background: linear-gradient(to bottom, rgba(182, 227, 212, 0.9), rgba(51, 167, 181, 0.9));
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
}

.article-page h1 {
  font-size: 2rem;
  color: #02685d;
}

.article-page h2 {
  font-size: 1.4rem;
  color: #025952;
  margin-top: 2rem;
}

.article-page h3 {
  font-size: 1.2rem;
  color: #024f4a;
  margin-top: 1.5rem;
}

.article-page ul, .article-page ol {
  padding-left: 1.5rem;
}

.article-page a.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

/*KT電子文章表格樣式*/
.kt-game-table {
width: 100%;
border-collapse: collapse;
font-size: 15px;
}

.kt-game-table th,
.kt-game-table td {
border: 2px solid #616060;
padding: 12px;
text-align:center;
}

.kt-game-table th {
background-color: #d6d6d6;
font-weight: bold;
}

.kt-game-table tr:hover {
background-color: #f1f1f1;
}

/*FAQ樣式*/
details.faq-block {
  background: #45ccc5;
  border: 0.5px solid #e5f0ee;
  border-radius: 25px;
  margin-bottom: 1rem;
  padding: 0.1rem 1rem;
  transition: all 0.3s ease;
}

details[open]{
  background: #e9faf9;
}

summary.faq-question {
  font-size: 20px;
  color: #333333;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
  transition: all 0.3s ease;
}

summary.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 18px;
  transition: transform 0.3s ease;
}

details[open] summary.faq-question::after {
  content: "－";
  transform: rotate(180deg);
}

.faq-answer {
  font-size: 16px;
  padding: 0.5rem 0 0.2rem 0;
  color: #444;
}

.faq-title {
  font-size: 28px;
  color: #000;
}

/* Tag頁樣式 */
.tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 5px 10px;
  margin: 3px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}
.tag:hover {
  background-color: #ddd;
}

.tag-page h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #02685d;
}

.tag-page .text-muted {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.tag-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tag-article {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #fafafa;
  transition: box-shadow 0.3s ease;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Tag頁面的圖片樣式 */
.article-thumb {
  flex-shrink: 0; /* 防止圖片被壓縮 */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
/* Tag頁面的圖片樣式2 */
.article-thumb img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.article-content {
  flex: 1;
}

.tag-article:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.tag-article h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.tag-article h2 a {
  text-decoration: none;
  color: #02685d;
}

.tag-article h2 a:hover {
  text-decoration: underline;
}

.tag-article p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.tag-page .container {
  padding-left: 2rem; /* 或 32px，依需要調整 */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* 🎥 影片區塊樣式 */
/* 🎞️ Reel 風格影片容器 */
.reel-video-container {
  max-width: 400px;   /* 依 IG Reels 大小限制桌機版最大寬度 */
  margin: 2rem auto;
  text-align: center;
  padding: 0 1rem;
}

/* 影片維持直立比例：9:16 */
.reel-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #000;
}

/* 影片說明文字 */
.video-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}

/* ✅ 額外支援 Safari（老瀏覽器不支援 aspect-ratio） */
@supports not (aspect-ratio: 9 / 16) {
  .reel-video {
    height: calc(100vw * 16 / 9);
  }
}
