﻿body {
	font-family: 'Inter', sans-serif;
	background-color: #ffffff;
	color: #000;
	letter-spacing: -0.02em;
	-webkit-tap-highlight-color: transparent;
}

button, a {
	-webkit-touch-callout: none;
}

.donate-banner {
	position: relative;
	height: 50vh;
	min-height: 400px;
	background: #000;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.gala-banner {
	position: relative;
	height: 85vh;
	min-height: 500px;
	background: #000;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.gala-video-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.6;
}

.gold-shimmer {
	position: absolute;
	inset: 0;
	background: linear-gradient(45deg, rgba(212,175,55,0) 0%, rgba(212,175,55,0.15) 50%, rgba(212,175,55,0) 100%);
	background-size: 200% 200%;
	animation: shimmer 6s infinite linear;
	pointer-events: none;
}

@keyframes shimmer {
	0% { background-position: -200% -200%; }
	100% { background-position: 200% 200%; }
}

.hero-title {
	font-family: 'Bodoni Moda', serif;
	font-size: 6vw;
	line-height: 0.85;
	font-style: italic;
	background: linear-gradient(to bottom, #fff 40%, #d4af37 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-transform: uppercase;
}

.stagger-grid .visual-frame:nth-child(even) {
	transform: translateY(30px);
}

.dept-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(4px);
	color: #000;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 2px;
	text-transform: uppercase;
	z-index: 10;
	letter-spacing: 0.05em;
}

.award-card {
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 65px;
	background: #fff;
	transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
}

.award-inner {
	border-radius: 55px;
	overflow: hidden;
	aspect-ratio: 4/5;
	background: #f9fafb;
}

.award-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: all 0.8s ease;
}

.award-card:hover, .award-card:active {
	border-color: #d4af37;
	transform: translateY(-12px);
	box-shadow: 0 30px 60px rgba(212,175,55,0.15);
}

.award-card:hover .award-inner img, .award-card:active .award-inner img {
	filter: grayscale(0%);
	transform: scale(1.05);
}

.visual-frame {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background-color: #f3f4f6;
	transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
}

.visual-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s ease;
}

.visual-frame:hover img, .visual-frame:active img {
	transform: scale(1.1);
}

/* Video Modal Styles */
.video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.video-modal.active {
	opacity: 1;
	visibility: visible;
}

.video-modal-content {
	width: 90%;
	max-width: 1000px;
	background: #000;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
	transform: scale(1);
}

.video-modal-header {
	display: flex;
	justify-content: end;
	align-items: center;
	padding: 10px 0;
	background: rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.video-modal-close {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.video-modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.video-modal-body {
	padding: 0;
}

.video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	background: #000;
}

.video-container iframe,
.video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.video-modal-footer {
	padding: 20px 30px;
	background: rgba(255, 255, 255, 0.05);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.video-description {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Mobile Menu Styles */
.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: 85%;
	max-width: 400px;
	height: 100%;
	background: white;
	z-index: 100;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 1.5rem;
	overflow-y: auto;
	box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active {
	transform: translateX(0);
}

.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 99;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border-radius: 50%;
	color: #333;
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.2s ease;
	z-index: 101;
}

.mobile-menu-close:hover, .mobile-menu-close:active {
	background: #e5e5e5;
	transform: rotate(90deg);
}

.mobile-menu-header {
	padding: 1rem 0 2rem;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 1.5rem;
}

.mobile-menu-title {
	font-size: 1.5rem;
	font-weight: 900;
	color: #1a468d;
	margin: 0;
}

.mobile-menu-content {
	padding-top: 0.5rem;
}

@media (max-width: 768px) {
	.gala-banner {
		height: 70vh;
		min-height: 400px;
	}

	.hero-title {
		font-size: 15vw;
		line-height: 0.9;
	}

	.stagger-grid .visual-frame:nth-child(even) {
		transform: none;
	}

	.award-card {
		border-radius: 40px;
	}

	.award-inner {
		border-radius: 30px;
	}

	#donation {
		padding: 3rem 1.5rem !important;
		border-radius: 2rem !important;
	}

	.video-modal-content {
		width: 95%;
		border-radius: 10px;
	}

	.video-modal-header {
		padding: 15px 20px;
	}

	.video-modal-title {
		font-size: 1.2rem;
	}

	.video-modal-footer {
		padding: 15px 20px;
	}

	button, .visual-frame, .award-card {
		min-height: 44px;
		min-width: 44px;
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
	.hero-title {
		font-size: 12vw;
	}
}


.mobile-menu-item {
	display: flex;
	align-items: center;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	color: #333;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	margin-bottom: 0.5rem;
}

.mobile-menu-item i {
	width: 24px;
	margin-right: 1rem;
	font-size: 1.1rem;
	color: #1a468d;
}

.mobile-menu-item:hover, .mobile-menu-item.active {
	background-color: #f0f7ff;
	color: #1a468d;
}

/*.mobile-menu-item.active {*/
/*	border-left: 4px solid #1a468d;*/
/*}*/

.mobile-menu-item:hover i, .mobile-menu-item.active i {
	color: #1a468d;
}

#menuToggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

#menuToggle.active span:nth-child(2) {
	opacity: 0;
}

#menuToggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}
/*首页end*/

/* 回到顶部按钮 - 底部居中 */
.expanded { max-height: 10000px; }
.expanded .fade-mask { opacity: 0; }
#backToTop {
	position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(100px);
	z-index: 9999; width: 50px; height: 50px; background-color: #111; color: white;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2); cursor: pointer; opacity: 0; visibility: hidden;
	transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#backToTop.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.visual-frame {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.visual-frame:hover {
	transform: translateY(-4px);
}

.dept-tag {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 视频播放按钮样式 */
.video-play-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
}

.visual-frame:hover .video-play-overlay {
	opacity: 1;
}

.video-play-btn {
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
	background: white;
	transform: scale(1.1);
}

.video-play-btn svg {
	width: 34px;
	height: 34px;
	color: #2563eb;
}

/* 视频模态框样式 */
#video-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	padding: 20px;
}

#video-modal.show {
	opacity: 1;
	display: flex !important;
}

.video-modal-content {
	position: relative;
	width: 100%;
	max-width: 1200px;
	background: black;
	border-radius: 12px;
	overflow: hidden;
	animation: modalSlideIn 0.4s ease-out;
	transform: translateZ(0);
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 比例 */
	height: 0;
}

#video-player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.video-info {
	padding: 20px;
	color: white;
	background: rgba(0, 0, 0, 0.8);
}

.video-info h3 {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 10px;
}

.video-info p {
	color: #ccc;
	font-size: 0.9rem;
	line-height: 1.5;
}

.close-video-btn {
	position: absolute;
	top: -45px;
	right: 0;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
}

.close-video-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}

.close-video-btn svg {
	width: 24px;
	height: 24px;
	stroke: white;
	stroke-width: 2;
}

/* 防止滚动 */
body.modal-open {
	overflow: hidden;
}
/* 响应式调整 */
@media (max-width: 768px) {
	.sm-hidden{
		display: none;
	}
	.video-play-overlay {
		opacity: 1;
	}
	.video-play-btn {
		width: 40px;
		height: 40px;
	}

	.video-play-btn svg {
		width: 20px;
		height: 20px;
	}

	.video-modal-content {
		border-radius: 8px;
		margin: 10px;
	}

	.video-info {
		padding: 15px;
	}

	.video-info h3 {
		font-size: 1.2rem;
	}

	.close-video-btn {
		top: -40px;
		width: 36px;
		height: 36px;
	}

	.close-video-btn svg {
		width: 20px;
		height: 20px;
	}
}

/* 现有样式保持 */
.visual-frame {
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.visual-frame img {
	transition: transform 0.5s ease;
}

.visual-frame:hover img {
	transform: scale(1.05);
}

/* 图片浏览弹框样式 */
.gallery-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	padding: 0;
}

.gallery-modal.show {
	opacity: 1;
	display: flex !important;
}

.gallery-content {
	position: relative;
	width: 100%;
	max-width: 1400px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	animation: modalSlideIn 0.4s ease-out;
	transform: translateZ(0);
	height: 90vh;
	display: flex;
	flex-direction: column;
	margin: 20px;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* 弹框头部 */
.gallery-header {
	padding: 20px 24px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	flex-shrink: 0;
}

.gallery-header h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #000;
}

/* 弹框主体 - 移除滚动条 */
.gallery-body {
	flex: 1;
	padding: 24px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* 大图容器 */
.main-stage {
	position: relative;
	background: #fdfdfd;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
	transition: opacity 0.3s ease;
	flex: 1;
	min-height: 0; /* 防止内容溢出 */
}

.main-stage img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* 缩略图区域 - 使用flex布局避免滚动条 */
.thumbnails-section {
	margin-top: 24px;
	flex-shrink: 0;
}

.thumb-container {
	position: relative;
}

.thumb-scroll {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.thumb-scroll::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
	height: 0;
	width: 0;
}

.thumb-item {
	flex: 0 0 120px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	flex-shrink: 0;
}

.thumb-item:hover {
	opacity: 0.8;
}

.thumb-item.active {
	opacity: 1;
	border-color: #2563eb;
}

.thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 导航按钮 */
.nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.8;
	transition: all 0.2s ease;
	z-index: 10;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover {
	opacity: 1;
	background: #fff;
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-btn.prev {
	left: 20px;
}

.nav-btn.next {
	right: 20px;
}

.nav-btn svg {
	width: 20px;
	height: 20px;
	stroke: #000;
	stroke-width: 2;
}

.nav-btn.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* 图片计数器 */
.image-counter {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(0, 0, 0, 0.75);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	backdrop-filter: blur(4px);
	z-index: 5;
}

/* 关闭按钮 */
.close-gallery-btn {
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.close-gallery-btn:hover {
	background: #e0e0e0;
	transform: rotate(90deg);
}

.close-gallery-btn svg {
	width: 20px;
	height: 20px;
	stroke: #666;
}

/* 缩略图信息 */
.thumb-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.thumb-info .title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.thumb-info .count {
	font-size: 12px;
	color: #888;
	font-weight: 500;
}

/* 移除所有滚动条 */
.gallery-content,
.gallery-body,
.main-stage,
.thumb-scroll {
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;      /* Firefox */
}

.gallery-content::-webkit-scrollbar,
.gallery-body::-webkit-scrollbar,
.main-stage::-webkit-scrollbar,
.thumb-scroll::-webkit-scrollbar {
	display: none;  /* Chrome, Safari and Opera */
	width: 0;
	height: 0;
}

/* 防止滚动 */
body.modal-open {
	overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.gallery-content {
		height: 100vh;
		border-radius: 0;
		margin: 0;
		width: 100%;
	}

	.gallery-body {
		padding: 16px;
	}

	.main-stage {
		border-radius: 4px;
	}

	.nav-btn {
		width: 40px;
		height: 40px;
	}

	.nav-btn.prev {
		left: 10px;
	}

	.nav-btn.next {
		right: 10px;
	}

	.thumb-item {
		flex: 0 0 100px;
		height: 70px;
	}

	.image-counter {
		top: 15px;
		right: 15px;
		padding: 6px 12px;
		font-size: 11px;
	}
}

@media (max-width: 480px) {
	.thumb-item {
		flex: 0 0 80px;
		height: 60px;
	}

	.gallery-header {
		padding: 16px;
	}

	.gallery-body {
		padding: 12px;
	}
}