:root {
	--fullGrid: 1 / 1 / -1 / -1;
	--text-main: #1E2022;
	--title-large: #c50f0f;
	--title-small: #0c619b;
}

/* 全頁顏色統整 */
body,
p,
li,
dt,
dd {
	color: var(--text-main);
}

/* 主視覺排除在全頁顏色規範之外，維持白字 */
.video-overlay,
.video-overlay p,
.hero-slogans p {
	color: #ffffff !important;
}

h2 {
	color: var(--title-large) !important;
}

h3 {
	color: var(--title-small) !important;
}

/* 縣市地圖提示文字顏色 */
#map-county-name {
	color: #bbcfdd !important;
}

.video-header {
	display: block;
	height: 100vh;
	overflow: hidden;
	position: relative;
	box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.5);
}

/* Hero Slider Styles */
.hero-slider,
.hero-slider .slick-list,
.hero-slider .slick-track {
	height: 100%;
}

.hero-slider .hero-slide {
	height: 550px;
	position: relative;
	overflow: hidden;
}

.hero-slider .hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 6s ease;
	transform: scale(1);
}

.hero-slider .slick-active .hero-slide img {
	transform: scale(1.1);
}

.video-overlay {
	/* Span full width/height */
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	/* Center Content */
	display: grid;
	justify-content: center;
	align-content: center;
	padding-bottom: 300px;
	/* 將內容往上推 */
	text-align: center;

	/* Semi-transparent background */
	background-color: rgba(0, 0, 0, 0.45);
	z-index: 10;
}

.wrapper,
.main {
	overflow-x: clip !important;
	overflow-y: visible !important;
	width: 100%;
	max-width: 100%;
}

html,
body {
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
}

.header {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 99 !important;
	background-color: rgb(1 20 55 / 83%) !important;
}

.video-header {
	width: 100%;
	max-width: 100%;
}

@keyframes horizontalScroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

/* Milestone Snap Scroll Section */
/* Behind the Scenes - Horizontal Mouse Follow */
/* Behind the Scenes - ScrollTrigger (Native Sticky Layout) */
.bts-scroll-manager {
	position: relative;
	width: 100%;
	height: 650vh;
	/* 生成供使用者往下滾動的物理長度 (增加長度讓操作需多滾動幾下) */
	z-index: 50;
	/* 防止上層文字覆蓋 */
}

.behind-scenes-section {
	position: sticky;
	/* 原生鎖住畫面，徹底擺脫 GSAP pin 與父層 overflow 衝突造成的卡死現象 */
	top: 0;
	z-index: 50;
	width: 100%;
	height: 100vh;
	/* 強制此區塊滿版 */
	background: #000;
	margin: 0;
	padding-top: 60px;
	/* 避開上方導覽列 */
	box-sizing: border-box;
	overflow: hidden;
}

.bts-sticky-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bts-title-box {
	text-align: center;
	padding: 40px 0 20px;
	z-index: 10;
}

.bts-title-box h2 {
	color: #ffffff !important;
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin: 0;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.bts-horizontal-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 20px 10vw;
	height: calc(100vh - 180px);
	/* 調整高度以容納後續直圖 */
	will-change: transform;
}

.bts-row {
	display: flex;
	gap: 25px;
	height: 100%;
	/* 單列佔滿版高度 */
	width: max-content;
	/* 確保容易完整撐開以得到精準計算長度 */
}

.scene-item {
	flex: 0 0 550px;
	/* Increased width for more horizontal scroll impact */
	height: 100%;
	/* 動態填滿 Row */
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.scene-item:hover {
	border-color: #00d2ff;
	box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

.scene-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
	filter: grayscale(0.5) brightness(0.8);
}

.scene-item:hover img {
	transform: scale(1.08);
	filter: grayscale(0) brightness(1);
}

.scene-info {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 30px 20px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
	color: #fff;
	z-index: 2;
}

.scene-info h4 {
	font-family: 'Noto Sans TC', sans-serif;
	font-weight: 700;
	font-size: 20px;
	margin-bottom: 5px;
	color: #00d2ff !important;
}

.scene-info p {
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.8;
	font-weight: 300;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	/* Compatibility */
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1024px) {
	.bts-horizontal-container {
		padding: 20px 5vw;
	}

	.scene-item {
		flex: 0 0 320px;
		/* 手機版寬度，保留橫向捲動屬性 */
	}

	.bts-title-box h2 {
		font-size: 2rem;
	}
}

.milestone-snap-container {
	width: 100%;
	overflow-x: hidden;
}

.milestone-snap-page {
	box-sizing: border-box;
	/* 修正加上 padding 後溢出畫面的寬度問題 */
	height: 100vh;
	width: 100%;
	position: relative;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	/* Parallax Effect */
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 10%;
	overflow: hidden;
}

/* Optional Overlay to increase text readability */
.milestone-snap-page::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
}

.milestone-content-block {
	position: relative;
	z-index: 2;
	max-width: 600px;
	color: #fff;
	opacity: 0;
	transform: translateX(-50px);
	transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.milestone-snap-page.is-visible .milestone-content-block {
	opacity: 1;
	transform: translateX(0);
}

.milestone-content-block h2 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: #00d2ff !important;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.milestone-content-block p {
	font-size: 1.25rem;
	line-height: 1.8;
	color: #e0e0e0;
	text-align: justify;
}

.milestone-year {
	font-size: 6rem;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 900;
	opacity: 0.15;
	position: absolute;
	top: 20px;
	right: 40px;
	line-height: 1;
	color: #fff;
}

@media (max-width: 768px) {
	.milestone-snap-page {
		padding: 0 40px;
		justify-content: center;
		background-attachment: scroll;
		/* 恢復與桌機相同的固定視差切換 */
	}

	.milestone-snap-page::before {
		background: rgba(0, 0, 0, 0.6);
	}

	.milestone-content-block h2 {
		font-size: 2rem;
	}

	.milestone-content-block p {
		font-size: 1rem;
	}

	.milestone-year {
		font-size: 3rem;
		right: 20px;
	}
}

/* 40th Majestic Logo - ELITE SPECULAR GLARE SYSTEM */
.logo-tilt-box {
	position: relative;
	display: inline-block;
	z-index: 9999;
	cursor: pointer;
	pointer-events: auto !important;
	perspective: 1200px;
	width: 220px;
	/* 縮小 LOGO 尺寸 */
	margin: 0 auto 30px;
}

@media screen and (max-width: 768px) {
	.logo-tilt-box {
		width: 160px;
		/* 行動端更小 */
	}
}

/* SEPARATE WRAPPER FOR ENTRANCE - Prevents JS transform conflicts */
.logo-entrance-wrapper {
	position: relative;
	opacity: 0;
	transform-style: preserve-3d;
}

.kv.on .logo-entrance-wrapper {
	animation: logoEliteEntry 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoEliteEntry {
	0% {
		transform: scale(3.5) translateZ(-400px) translateY(-40px);
		opacity: 0;
		filter: brightness(2) blur(10px);
	}

	100% {
		transform: scale(1) translateZ(0) translateY(0);
		opacity: 1;
		filter: brightness(1) blur(0);
	}
}

.logo-majestic-container {
	position: relative;
	display: block;
	transform-style: preserve-3d;
	/* Anti-blurring optimizations */
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	/* Transition for return-to-center */
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}

.logo-majestic {
	display: block;
	max-width: 100%;
	height: auto;
	position: relative;
	z-index: 10;
	pointer-events: none;
}

/* LIGHT GLARE: Dynamic linear-gradient specular reflection */
.logo-shine-layer {
	position: absolute;
	top: -10%;
	left: -10%;
	width: 120%;
	height: 120%;
	pointer-events: none;
	z-index: 20;
	mix-blend-mode: color-dodge;
	opacity: 0;
	transition: opacity 0.5s ease;

	/* Mask - compatible formats */
	-webkit-mask-image: url('img/40thLOGO.svg');
	mask-image: url('img/40thLOGO.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;

	/* Specular Reflection Effect */
	background: linear-gradient(var(--glare-angle, 0deg),
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, var(--glare-opacity, 0)) 50%,
			rgba(255, 255, 255, 0) 100%);
}

.logo-tilt-box:hover .logo-shine-layer {
	opacity: 1;
}

.logo-tilt-box:hover .logo-majestic-container {
	filter: drop-shadow(0 40px 80px rgba(255, 255, 255, 0.3));
}

/* 主視覺標語樣式 */
.hero-slogans {
	margin-top: 20px;
	text-align: center;
	color: #fff;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
	opacity: 0;
	transform: translateY(20px);
}

.kv.on .hero-slogans {
	animation: fadeInUp 1s ease 1s forwards;
	/* 延遲進場 */
}

.slogan-1 {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 0.4rem;
	margin-bottom: 40px;
	font-family: 'Noto Sans TC', sans-serif;
}

.slogan-2 {
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0.2rem;
	opacity: 0.85;
}

@media screen and (max-width: 768px) {
	.slogan-1 {
		font-size: 1.6rem;
		margin-bottom: 20px;
		letter-spacing: 0.2rem;
	}

	.slogan-2 {
		font-size: 1.2rem;
		letter-spacing: 0.1rem;
	}
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Timeline Fixes - Enhanced UI with Continuous Line */
.swiperStyle6 .timelineCont {
	padding: 40px 0 100px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

.swiperStyle6 .swiper-container-wrapper--timeline {
	margin-top: 40px !important;
	position: relative;
}

.swiper-timeline-nav {
	width: 100%;
	margin: 0 auto 60px !important;
	overflow: visible !important;
	position: relative;
}

/* Continuous Unbroken Line */
.swiper-timeline-nav:before {
	content: "";
	position: absolute;
	top: 0;
	left: -100vw;
	right: -100vw;
	height: 2px;
	background: #E0E0E0;
	z-index: 1;
}

.swiper-timeline-nav .swiper-slide {
	height: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	cursor: pointer;
	opacity: 0.8;
	/* 從 0.2 提升至 0.8，增加可見度 */
	transition: all 0.4s ease;
	position: relative;
}

.swiper-timeline-nav .swiper-slide-active {
	opacity: 1;
}

/* Dots on the Line - Horizontally Centered */
.swiper-timeline-nav .swiper-slide:after {
	content: "";
	display: block;
	position: absolute;
	top: -6px;
	left: 50%;
	width: 12px;
	height: 12px;
	transform: translateX(-50%);
	background: #C9D6DF;
	border-radius: 50%;
	z-index: 10;
	transition: all 0.4s ease;
}

.swiper-timeline-nav .swiper-slide-active:after {
	background: #00d2ff;
	width: 20px;
	height: 20px;
	top: -10px;
	box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

.swiper-timeline-nav .switch-title {
	margin-top: 15px;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 500;
	color: #52616B;
	font-size: 14px;
	transition: all 0.4s ease;
	text-align: center;
	width: 100%;
}

.swiper-timeline-nav .swiper-slide-active .switch-title {
	color: #00d2ff;
	font-weight: 700;
	font-size: 18px;
	margin-top: 18px;
}

/* Content Area - Showing 4 items on desktop, 3 on mobile */
.swiperStyle6 .swiper-container--timeline {
	overflow: visible !important;
}

.swiperStyle6 .swiper-slide {
	display: flex !important;
	justify-content: center !important;
	align-items: flex-start !important;
	text-align: center;
	padding: 20px 15px;
	opacity: 0.45;
	/* 從 0.2 提升至 0.45 */
	transform: scale(0.85);
	transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.swiperStyle6 .swiper-slide-active {
	opacity: 1;
	transform: scale(1);
}

.swiperStyle6 .contBlock {
	width: 100% !important;
	max-width: 500px !important;
	margin: 0 auto !important;
	opacity: 1;
	/* 移除重複的低透明度 */
	transform: none;
	transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
	display: block !important;
	visibility: visible !important;
}

.swiperStyle6 .contBlock .txt1 b {
	display: block;
	font-size: 2.2rem;
	color: #00d2ff !important;
	margin-bottom: 15px;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 700;
}

.swiperStyle6 .contBlock .txt1 p {
	font-size: 20px !important;
	line-height: 1.8;
	color: #1E2022 !important;
	text-align: justify;
	font-weight: 400;
	display: block;

}

@media (max-width: 768px) {
	.swiper-timeline-nav {
		margin-bottom: 30px !important;
	}

	.swiper-timeline-nav .switch-title {
		font-size: 11px;
		margin-top: 25px;
	}

	.swiperStyle6 .contBlock .txt1 b {
		font-size: 1.5rem;
	}

	.swiperStyle6 .contBlock .txt1 p {
		font-size: 0.95rem;
		-webkit-line-clamp: unset !important;

	}
}

/* Taiwan Map Styles - Minimalist Clean Version */
.taiwan-map-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.taiwan-map-container {
	width: 100%;
	max-width: 500px;
	position: relative;
}

.taiwan-map-svg {
	width: 100%;
	height: auto;
	/* Removed filter/drop-shadow */
}

.county-path {
	/* Dark blue and light cyan pairing */
	fill: #2f5385;
	stroke: rgba(0, 210, 255, 0.3);
	stroke-width: 1.5;
	transition: all 0.3s ease;
	cursor: pointer;
}

.county-path.is-disabled {
	fill: #90a6c5;
	cursor: default;
}

.county-path:hover,
.county-path.is-active {
	fill: #00d2ff;
	stroke: #ffffff;
	/* Removed outline and transform for simpler feel */
}

.map-info-panel {
	margin-top: 30px;
	text-align: center;
}

.map-info-panel h3 {
	/* Primary theme color for text */
	color: #00d2ff;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0;
}

@media (max-width: 768px) {
	.map-info-panel h3 {
		font-size: 1.8rem;
		white-space: nowrap;
	}
}

/* ===== Map Popup Styles (scoped to .map-popup-* to avoid conflicts) ===== */
.map-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 9000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.map-popup-overlay.is-open {
	display: flex;
}

.map-popup-modal {
	background: #0c1a2d;
	border: 1px solid rgba(0, 210, 255, 0.25);
	border-radius: 16px;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 32px 28px 28px;
	box-sizing: border-box;
	animation: mapPopupFadeIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes mapPopupFadeIn {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.map-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 5px;
	border-bottom: 1px solid rgba(0, 210, 255, 0.2);
	padding-bottom: 14px;
}

.map-popup-title {
	color: #00d2ff;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
}

.map-popup-subtitle {
	color: rgba(255, 255, 255);
	font-size: 1rem;
	margin-top: 15px;
}

.map-popup-close {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease;
	flex-shrink: 0;
}

.map-popup-close:hover {
	background: rgba(0, 210, 255, 0.15);
	border-color: #00d2ff;
	color: #00d2ff;
}

/* Vertical list layout */
.map-popup-cards {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.map-popup-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 30%);
	transition: background 0.2s ease;
	cursor: default;
}

.map-popup-card:last-child {
	border-bottom: none;
}

.map-popup-card:hover {
	/* no hover effect */
}

/* Circular photo */
.map-popup-card-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: #1a2e46;
	flex-shrink: 0;
}

.map-popup-card-body {
	flex: 1;
	min-width: 0;
}

.map-popup-card-name {
	color: #ffffff;
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.3;
}

.map-popup-card-stars {
	color: #ffffff;
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	margin: 0 0 5px;
	opacity: 0.7;
}

.map-popup-card-year {
	color: #00d2ff;
	font-size: 0.82rem;
	margin: 0;
	letter-spacing: 0.04em;
	font-family: 'Inter', 'Roboto', Arial, sans-serif;
}

.map-popup-empty {
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
	padding: 40px 0;
	font-size: 0.95rem;
}

@media (max-width: 600px) {
	.map-popup-modal {
		padding: 24px 20px 20px;
		max-width: 100%;
	}

	.map-popup-title {
		font-size: 1.15rem;
	}

	.map-popup-card-photo {
		width: 48px;
		height: 48px;
	}
}

/* Rankings Search UI */
.selectWrap {
	padding: 30px 0;
	border-radius: 15px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}


.selectBar {
	display: flex;
	gap: 20px;
	margin-bottom: 60px;
	flex-wrap: wrap;
}

.selectCont {
	flex: 0 0 250px;
}


.selectCont .option {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	text-align: left;
}

.selectCustom {
	width: 100%;
	height: 45px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 0 15px;
	font-size: 16px;
	background: #fff;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 15px;
	cursor: pointer;
}

.btn_search {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0066cc;
	color: #fff !important;
	padding: 0 30px;
	height: 45px;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s;
	text-decoration: none;
	border: none;
	cursor: pointer;
	align-self: flex-end;
}


.btn_search:hover {
	background: #004d99;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn_search .icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e");
	background-repeat: no-repeat;
	margin-right: 10px;
}

.btn_search p {
	margin: 0;
	color: #fff;
}

/* Table UI */
.tableWrap {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.ranking-header {
	background: #f4a482;
	color: #fff;
	padding: 12px 25px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	border-radius: 8px 8px 0 0;
	margin-bottom: 4px;
}


.ranking-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(5, auto);
	grid-auto-flow: column;
	gap: 4px 15px;
}



.ranking-row {
	background: #efefef;
	display: flex;
	align-items: center;
	padding: 12px 15px;
	border-radius: 4px;
	transition: all 0.2s;
}

.ranking-row:hover {
	transform: translateX(5px);
	background: #e8e8e8;
	box-shadow: -5px 0 0 #0066cc;
}



.rank-num-box {
	width: 50px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-right: 50px;
}

.rank-num {
	font-size: 24px;
	font-weight: 800;
	color: #333;
	line-height: 1;
}



.rank-change {
	font-size: 12px;
	font-weight: 600;
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 2px;
}

.rank-change.up {
	color: #d00;
}

.rank-change.down {
	color: #008800;
}

.rank-change.up:before {
	content: "▲";
}

.rank-change.down:before {
	content: "▼";
}

.rank-change.none {
	color: #999;
}

.rank-change.none:before {
	content: "-";
}

.school-name {
	font-size: 17px;
	font-weight: 600;
	color: #333;
	flex: 1;
	text-align: left;
}





.btn-more-rankings {
	display: block;
	width: 240px;
	margin: 40px auto;
	background: #fff;
	color: #0066cc;
	text-align: center;
	padding: 12px;
	border-radius: 30px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	border: 2px solid #0066cc;
}

.btn-more-rankings:hover {
	background: #0066cc;
	color: #fff;
}

@media (max-width: 768px) {
	.selectWrap {
		padding: 20px 0;
		width: 80%;
	}

	.tableWrap {
		width: 80%;
	}

	.selectBar {
		flex-direction: column;
		gap: 15px;
		align-items: stretch;
	}

	.selectCont {
		flex: none;
	}

	.btn_search {
		align-self: stretch;
	}

	.ranking-list {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		grid-auto-flow: row;
	}

	.ranking-row {
		padding: 12px 15px;
	}

	.rank-num-box {
		width: 45px;
	}

	.rank-num {
		font-size: 22px;
	}

	.school-name {
		font-size: 16px;
	}
}

/*重量佳賓金句 樣式*/
.guest-quotes-section {
	width: 100%;
	max-width: 1200px;
	/* 限縮寬度 */
	margin: 0 auto;
	padding: 100px 0;
	overflow: visible;
	/* 允許 sticky 運作 */
	position: relative;
	background: transparent;
}

/* 修正製作群樣式，確保不被上方佈局干擾 */
.pageEdit {
	width: 100% !important;
	background: #ffffff !important;
	padding: 80px 0 !important;
	position: relative !important;
	z-index: 100;
	font-size: 15px;
	clear: both;
	display: block !important;
}

.pageEdit .block {
	max-width: 1200px;
	margin: 0 auto;
}

.pageEdit .edit {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #717675;
	font-size: 14px;
	text-align: left;
	padding: 40px 0;
}

.pageEdit .edit:before {
	content: '';
	position: absolute;
	width: 35px;
	height: 4px;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	background: #52616B;
}

.pageEdit .box {
	display: block;
	line-height: 1.8;
	font-size: 16px;
}

.pageEdit .box p {
	margin-bottom: 5px;
}

.fixPage {
	display: flex;
	position: relative;
	width: 100%;
	min-height: 200vh;
	/* 減少過長的高度感，讓金句更緊湊 */
	margin-bottom: 200px;
	gap: 60px;
	/* 照片與文字的間距 */
}

.fixPage.reverse {
	flex-direction: row-reverse;
}

.fixPage_img {
	position: -webkit-sticky;
	position: sticky;
	top: 15vh;
	/* 固定在離頂部 15% 處 */
	height: 500px;
	/* 縮小照片高度 */
	flex: 0 0 45%;
	/* 縮小照片寬度 */
	overflow: hidden;
	border-radius: 20px;
	/* 圓角更高級感 */
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	background: #f0f4f8;
	z-index: 5;
}

.fixImage {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(1.1);
}

.fixImage.active {
	opacity: 1;
	z-index: 2;
	transform: scale(1);
}

.fixImage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fixPage_cont {
	flex: 1;
	position: relative;
	z-index: 10;
	padding: 0 20px;
}

.fixPage_txtBox {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 1;
	transform: none;
	transition: none;
}

.fixPage_txtBox.is-active {
	opacity: 1;
	transform: none;
}

.fixTxt_title {
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--title-small);
	margin-bottom: 30px!important;
	line-height: 1.4;
	position: relative;
	letter-spacing: 0.05em;
}

.fixTxt_title::before {
	content: '“';
	position: absolute;
	left: -50px;
	top: -30px;
	font-size: 6rem;
	color: rgba(0, 102, 204, 0.08);
	font-family: 'Times New Roman', serif;
}

.fixTxt_content {
	font-size: 1.25rem;
	line-height: 2;
	color: var(--text-main);
	text-align: justify;
	font-weight: 400;
}

.fixTxt_author {
	margin-top: 50px;
	font-weight: 700;
	color: #111;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	letter-spacing: 0.1em;
}

.fixTxt_author::before {
	content: '';
	width: 40px;
	height: 3px;
	background: #0066cc;
	margin-right: 20px;
}

/* 手機版樣式適配 */
@media (max-width: 1024px) {
	.guest-quotes-section {
		width: 90%;
		/* 依據上方寬度調整，通常手機版預留左右間距 */
		max-width: 100%;
		margin: 0 auto;
		padding: 60px 0;
	}

	.fixPage,
	.fixPage.reverse {
		flex-direction: column;
		min-height: auto;
		margin-bottom: 80px;
		gap: 30px;
	}

	.fixPage_img {
		position: relative;
		height: 300px;
		/* 手機版給予固定高度確保照片出現 */
		width: 100%;
		top: auto !important;
		flex: none;
		border-radius: 15px;
	}

	.fixPage_cont {
		width: 100%;
		padding: 0;
	}

	.fixPage_txtBox {
		height: auto;
		margin-bottom: 60px;
		opacity: 1;
		transform: none;
		padding: 20px 0;
	}

	.fixTxt_title {
		font-size: 1.6rem;
	}

	.fixTxt_title::before {
		left: -10px;
		top: -30px;
		font-size: 3.5rem;
	}

	.fixTxt_author {
		margin-top: 30px;
		font-size: 1.1rem;
		display: block;
		text-align: left;
	}

	.fixTxt_author::before {
		display: block;
		margin: 0 0 12px 0;
	}

	.fixTxt_author span {
		display: block;
		margin-top: 5px;
	}
}

/* 針對手機版更窄的寬度優化 (80% 需求) */
@media (max-width: 768px) {
	.guest-quotes-section {
		width: 85%;
		/* 接近 80%，留一點邊緣 */
	}

	.fixPage_img {
		height: 250px;
	}
}
