* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
	background: #fafafa;
	-webkit-font-smoothing: antialiased;
}

/* 视频封面区 */
.hero {
	position: relative;
	height: 100vh;
	min-height: 500px;
	overflow: hidden;
	background: #000;
}

.cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 1;
	transition: opacity 1s ease;
}

/* DPlayer 样式 */
#dplayer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

#dplayer .dplayer-video-wrap {
	background: transparent;
}

#dplayer .dplayer-video {
	object-fit: cover;
}

#dplayer .dplayer-controller {
	padding: 0 20px 10px;
}

/* 隐藏播放器大播放按钮 */
#dplayer .dplayer-mobile-play {
	display: none !important;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
	background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
	padding: 0 20px;
	pointer-events: none;
}

.overlay h1 {
	font-size: clamp(32px, 10vw, 72px);
	margin-bottom: 16px;
	font-weight: 300;
	letter-spacing: 4px;
	text-align: center;
}

.overlay p {
	font-size: clamp(14px, 4vw, 24px);
	opacity: 0.9;
	letter-spacing: 2px;
	text-align: center;
}

/* 播放按钮 */
.play-btn {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.6);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.play-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}

.play-btn svg {
	width: 32px;
	height: 32px;
}

/* 全屏按钮 */
.fullscreen-btn {
	position: absolute;
	bottom: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	border: none;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
	opacity: 0.7;
}

.fullscreen-btn:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.6);
}

.fullscreen-btn svg {
	width: 24px;
	height: 24px;
}

/* 全屏模式样式 */
.overlay.fullscreen-mode {
	background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.overlay.fullscreen-mode .play-btn {
	width: 80px;
	height: 80px;
}

.overlay.fullscreen-mode .play-btn svg {
	width: 40px;
	height: 40px;
}

/* 相册区 */
.gallery {
	padding: 60px 20px;
	text-align: center;
	background: #fff;
}

.gallery h2 {
	font-size: clamp(24px, 6vw, 36px);
	font-weight: 300;
	color: #333;
	margin-bottom: 12px;
}

.gallery-subtitle {
	color: #888;
	font-size: clamp(14px, 3vw, 16px);
	margin-bottom: 30px;
}

.photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}

.photos img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photos img:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 页脚 */
footer {
	text-align: center;
	padding: 40px 20px;
	background: #f8f8f8;
	color: #999;
	font-size: 14px;
}

/* 灯箱 */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	touch-action: none;
}

.lightbox.active {
	opacity: 1;
	visibility: visible;
}

.lightbox img {
	max-width: 90%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 0 60px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 36px;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.3s;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-close:hover {
	opacity: 1;
}

.lightbox-prev,
.lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 36px;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0.8;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
	left: 15px;
}

.lightbox-next {
	right: 15px;
}

/* ============ 响应式适配 ============ */

/* 大平板 (1024px - 768px) */
@media (max-width: 1024px) {
	.photos {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 平板 (768px - 481px) */
@media (max-width: 768px) {
	.hero {
		min-height: 500px;
	}

	.overlay h1 {
		letter-spacing: 2px;
		margin-bottom: 12px;
	}

	.play-btn {
		width: 60px;
		height: 60px;
	}

	.play-btn svg {
		width: 28px;
		height: 28px;
	}

	.fullscreen-btn {
		width: 40px;
		height: 40px;
		bottom: 15px;
		right: 15px;
	}

	.fullscreen-btn svg {
		width: 20px;
		height: 20px;
	}

	.gallery {
		padding: 50px 15px;
	}

	.gallery-subtitle {
		margin-bottom: 24px;
	}

	.photos {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.photos img {
		border-radius: 10px;
	}

	.photos img:hover {
		transform: none;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	}

	.lightbox img {
		max-width: 95%;
		max-height: 80vh;
		border-radius: 6px;
	}

	.lightbox-prev,
	.lightbox-next {
		width: 44px;
		height: 44px;
		font-size: 28px;
	}

	.lightbox-prev {
		left: 10px;
	}

	.lightbox-next {
		right: 10px;
	}
}

/* 大手机 (480px - 376px) */
@media (max-width: 480px) {
	.hero {
		min-height: 100vh;
	}

	.overlay h1 {
		letter-spacing: 1px;
		margin-bottom: 10px;
	}

	.overlay p {
		letter-spacing: 1px;
		margin-bottom: 16px;
	}

	.play-btn {
		width: 56px;
		height: 56px;
	}

	.play-btn svg {
		width: 24px;
		height: 24px;
	}

	.fullscreen-btn {
		width: 36px;
		height: 36px;
		bottom: 12px;
		right: 12px;
	}

	.fullscreen-btn svg {
		width: 18px;
		height: 18px;
	}

	.gallery {
		padding: 40px 12px;
	}

	.gallery h2 {
		margin-bottom: 8px;
	}

	.gallery-subtitle {
		margin-bottom: 20px;
	}

	.photos {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		padding: 0 8px;
	}

	.photos img {
		border-radius: 8px;
		aspect-ratio: 3/4;
	}

	footer {
		padding: 30px 15px;
	}

	.lightbox img {
		max-width: 100%;
		max-height: 75vh;
		border-radius: 4px;
	}

	.lightbox-close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
		font-size: 28px;
	}

	.lightbox-prev,
	.lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}

	.lightbox-prev {
		left: 8px;
	}

	.lightbox-next {
		right: 8px;
	}
}

/* 小手机 (375px - 321px) */
@media (max-width: 375px) {
	.overlay h1 {
		font-size: 28px;
		margin-bottom: 8px;
	}

	.overlay p {
		font-size: 14px;
		margin-bottom: 12px;
	}

	.play-btn {
		width: 50px;
		height: 50px;
	}

	.play-btn svg {
		width: 22px;
		height: 22px;
	}

	.fullscreen-btn {
		width: 32px;
		height: 32px;
		bottom: 10px;
		right: 10px;
	}

	.fullscreen-btn svg {
		width: 16px;
		height: 16px;
	}

	.gallery {
		padding: 30px 10px;
	}

	.gallery h2 {
		font-size: 22px;
	}

	.photos {
		gap: 6px;
		padding: 0 6px;
	}

	.photos img {
		border-radius: 6px;
	}

	.lightbox-close {
		width: 32px;
		height: 32px;
		font-size: 24px;
	}

	.lightbox-prev,
	.lightbox-next {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}
}

/* 超小屏幕 (≤320px) */
@media (max-width: 320px) {
	.overlay h1 {
		font-size: 24px;
		letter-spacing: 0;
	}

	.overlay p {
		font-size: 12px;
	}

	.play-btn {
		width: 44px;
		height: 44px;
	}

	.play-btn svg {
		width: 20px;
		height: 20px;
	}

	.photos {
		grid-template-columns: repeat(2, 1fr);
		gap: 4px;
		padding: 0 4px;
	}

	.photos img {
		border-radius: 4px;
		aspect-ratio: 1/1;
	}
}

/* iPhone SE 等特殊尺寸 */
@media (max-width: 375px) and (max-height: 667px) {
	.overlay h1 {
		font-size: 26px;
	}

	.overlay p {
		font-size: 13px;
	}
}

/* 横屏手机 */
@media (max-height: 500px) and (orientation: landscape) {
	.hero {
		height: auto;
		min-height: 100vh;
	}

	.overlay h1 {
		font-size: 28px;
		margin-bottom: 8px;
	}

	.overlay p {
		font-size: 14px;
		margin-bottom: 8px;
	}

	.play-btn {
		width: 44px;
		height: 44px;
	}

	.play-btn svg {
		width: 20px;
		height: 20px;
	}

	.lightbox img {
		max-height: 90vh;
	}
}

/* 大屏横屏手机 (如 iPhone Max 横屏) */
@media (max-height: 414px) and (orientation: landscape) {
	.overlay h1 {
		font-size: 24px;
	}

	.overlay p {
		font-size: 12px;
	}
}

/* 安全区域适配（刘海屏、圆角屏等） */
@supports (padding: max(0px)) {
	.hero {
		padding-top: max(0px, env(safe-area-inset-top));
		padding-bottom: max(0px, env(safe-area-inset-bottom));
		padding-left: max(0px, env(safe-area-inset-left));
		padding-right: max(0px, env(safe-area-inset-right));
	}

	.overlay {
		padding-left: max(20px, env(safe-area-inset-left));
		padding-right: max(20px, env(safe-area-inset-right));
	}

	.lightbox-close {
		top: max(10px, env(safe-area-inset-top));
		right: max(10px, env(safe-area-inset-right));
	}

	.lightbox-prev {
		left: max(8px, env(safe-area-inset-left));
	}

	.lightbox-next {
		right: max(8px, env(safe-area-inset-right));
	}

	.gallery {
		padding-left: max(20px, env(safe-area-inset-left));
		padding-right: max(20px, env(safe-area-inset-right));
	}
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
	.photos img:hover {
		transform: none;
	}

	.lightbox-prev,
	.lightbox-next,
	.lightbox-close {
		opacity: 1;
	}

	.play-btn:hover,
	.fullscreen-btn:hover {
		transform: none;
	}
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.play-btn,
	.fullscreen-btn,
	.lightbox-prev,
	.lightbox-next,
	.lightbox-close {
		border: none;
	}
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
	body {
		background: #1a1a1a;
	}

	.gallery {
		background: #222;
	}

	.gallery h2 {
		color: #f0f0f0;
	}

	.gallery-subtitle {
		color: #888;
	}

	footer {
		background: #1a1a1a;
		color: #666;
	}

	.photos img {
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	}
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}

	.photos img:hover {
		transform: none !important;
	}
}
