/* 定義變數：鮮豔色彩配置 */
	:root {
		--bg-color: #121212;           /* 極深灰背景，比純黑更有質感 */
		--surface-color: #1e1e1e;      /* 卡片/區塊背景 */
		--text-main: #e0e0e0;          /* 主要文字顏色 (米白) */
		--text-highlight: #00e5ff;     /* 霓虹青 (標題用) */
		--accent-pink: #ff4081;        /* 霓虹粉 (按鈕/強調用) */
		--accent-yellow: #ffea00;      /* 霓虹黃 (特殊標記用) */
		--font-stack: 'Noto Sans TC', sans-serif; /* 指定字體 */
	}

	/* 1. 全局設定 & 背景暗黑主題 */
	body {
		background-color: var(--bg-color);
		color: var(--text-main);
		/* 3. 字體大小設定為 16px */
		font-size: 16px;
		/* 4. 套用 Google Fonts 繁體中文 */
		font-family: var(--font-stack);
		line-height: 1.6;
		margin: 0;
		padding: 20px;
	   
		/* 5. 針對東亞語系的字形優化設定 */
		/* 這行指令告訴字體引擎，如果有共用的漢字(Han Unification)，
		   請優先選用「繁體(Traditional)」的寫法 (Glyph) */
		font-variant-east-asian: traditional;
		-webkit-font-smoothing: antialiased; /* 文字平滑化 */
	}

	/* 容器樣式 */
	.container {
		max-width: 1000px;
		margin: 0 auto;
	}

	/* 2. 文字鮮豔化設定 - 標題 */
	h1, h2, h3 {
		color: var(--text-highlight);
		font-weight: 700;
		margin-top: 1.5em;
		margin-bottom: 0.5em;
		text-shadow: 0 0 10px rgba(0, 229, 255, 0.3); /* 輕微發光效果 */
	}

	h1 {
		font-size: 2.5rem;
		border-bottom: 2px solid var(--accent-pink);
		padding-bottom: 10px;
		display: inline-block;
	}

	/* 卡片式區塊設計 */
	.card {
		background-color: var(--surface-color);
		padding: 25px;
		border-radius: 12px;
		margin-bottom: 20px;
		box-shadow: 0 4px 15px rgba(0,0,0,0.5);
		border: 1px solid #333;
		transition: transform 0.2s ease;
	}

	.card:hover {
		transform: translateY(-5px);
		border-color: var(--text-highlight);
	}

	/* 強調文字 */
	strong {
		color: var(--accent-pink);
		font-weight: 500;
	}

	/* 連結樣式 */
	a {
		color: var(--accent-yellow);
		text-decoration: none;
		border-bottom: 1px dashed var(--accent-yellow);
		transition: all 0.3s;
	}

	a:hover {
		color: #fff;
		background-color: var(--accent-pink);
		border-bottom: none;
	}

	/* 按鈕樣式 */
	.btn {
		display: inline-block;
		background: linear-gradient(45deg, var(--accent-pink), #d500f9);
		color: white;
		padding: 10px 24px;
		border-radius: 50px;
		font-weight: bold;
		text-decoration: none;
		margin-top: 10px;
		box-shadow: 0 0 15px rgba(255, 64, 129, 0.4);
		border: none;
		cursor: pointer;
	}

	.btn:hover {
		box-shadow: 0 0 25px rgba(255, 64, 129, 0.6);
		transform: scale(1.05);
	}

	/* 示範比較區塊 (針對第 5 點需求) */
	.comparison-box {
		display: flex;
		gap: 20px;
		flex-wrap: wrap;
	}
   
	.code-block {
		background-color: #000;
		color: #0f0;
		padding: 15px;
		border-radius: 8px;
		font-family: 'Courier New', monospace;
		overflow-x: auto;
		border-left: 4px solid var(--accent-yellow);
	}

	/* 強制顯示繁體字形的 CSS Class */
	.force-traditional {
		font-variant-east-asian: traditional;
	}
	
	.styled-audio {
		width: 100%;
		max-width: 400px;
		border-radius: 30px; /* Makes the player pill-shaped */
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
		outline: none;
		/* The "Secret" Hack: Use CSS filters to force color changes */
		filter: sepia(20%) saturate(70%) grayscale(1) contrast(90%) invert(85%); 
}
.audio-player {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #1e1e2e;
  padding: 12px 20px;
  border-radius: 12px;
  width: 320px;
}

.play-btn {
  background: #ff007f;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.1);
}

.progress-container {
  flex-grow: 1;
  background-color: #44475a;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress {
  background: #ff007f;
  width: 0%;
  height: 100%;
  transition: width 0.1s linear;
}

video{
	width: 100%;  /* Video takes the full width of its container */
	height: auto; /* Height is calculated automatically to maintain aspect ratio */
	max-width: 800px; /* Optional: Prevents the video from becoming too large on big screens */
	
	margin: 0 auto; /* Centers the video horizontally */
	aspect-ratio: 16 / 9; 
    border-radius: 12px;
    overflow: hidden; /* 確保影片圓角不會被內容沖刷掉 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-container video,
.video-container iframe {
	position: relative;
	padding-bottom: 56.25%;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.cover-container {
	margin-right: auto;
	margin-left: auto;
}

.section-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin-top: 36px !important;
    margin-bottom: 16px !important;
    
    /* 核心：文字漸層效果 */
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%) !important; /* 藍紫漸層 */
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.video-hero {
    position: relative;
    width: 100%;
    height: 60vh; /* 佔據螢幕高度的 60% */
    overflow: hidden;
    background-color: #121214;
}
.video-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%); /* 完美居中 */
    object-fit: cover;
    z-index: 1;
}

/* 重要：加上半透明遮罩（Overlay），確保上面的文字清晰可讀 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2; /* 壓在影片上方 */
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.video-overlay h1 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
