/* 迷梦峡谷新区专题 TASK-202609-065 */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	width: 100%;
	min-height: 100%;
	background: #8ecff5;
	color: #4a2f24;
	font-family: SimSun, "宋体", "Songti SC", STSong, "NSimSun", serif;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	text-decoration: none;
	color: inherit;
}

.page {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	overflow: hidden;
	background: #8ecff5;
}

/* ========== 板块一：头图 ========== */
.section-hero {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 1920 / 1080;
	padding: 0;
	z-index: 1;
	overflow: hidden;
	background: transparent;
}

.btn-home {
	position: absolute;
	top: 2.2%;
	right: 3.5%;
	z-index: 50;
	width: 11.8%;
	/* 高分屏可大于切图宽，普通屏保持原上限 */
	max-width: max(226px, 11.771vw);
	min-width: 96px;
	transition: transform 0.2s ease;
}

.btn-home:hover {
	transform: scale(1.05);
}

.btn-home img {
	width: 100%;
}

.hero-media {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: transparent url("../assets/hero.jpg?v=3") no-repeat center top / cover;
}

.hero-video,
.hero-fallback {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hero-video {
	z-index: 1;
}

.hero-fallback {
	z-index: 0;
}

.hero-media.is-video-ready .hero-fallback {
	opacity: 0;
}

/* 头图遮盖：铺满 1920×1080 视频区域 */
.hero-mask {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: fill;
	z-index: 2;
	pointer-events: none;
}

.intro-wrap {
	position: relative;
	z-index: 5;
	/* 上移量 = 头图高度的 20%；margin% 相对父宽，11.25% = 0.2 × (1080/1920) */
	margin-top: calc(-11.25% - 40px);
	padding: 0 2% 2%;
}

.intro-inner {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 0;
	width: 100%;
	max-width: max(1400px, 72.9167vw);
	margin: 0 auto;
}

.intro-inner .sentiment {
	flex: 0 1 auto;
	width: 62%;
	max-width: max(927px, 48.28125vw);
}

.intro-inner .qr-item {
	flex: 0 0 auto;
	width: 14%;
	max-width: max(209px, 10.8854vw);
	min-width: 88px;
}

.intro-inner .qr-item:first-child {
	transform: translateX(20px);
}

.intro-inner .qr-item:last-child {
	transform: translateX(-20px);
}

/* ========== 公共板块 ========== */
.body-bg {
	position: relative;
	z-index: auto;
	width: 100%;
	margin-top: 0;
	/* 形成独立块，避免首个子元素负边距把背景折叠覆盖到头图上 */
	display: flow-root;
	overflow: visible;
	background: #8ecff5 url("../assets/bg.jpg?v=5") no-repeat center top / 100% auto;
	padding-bottom: 6%;
}

.section {
	position: relative;
	width: 100%;
	padding: 3% 2% 1%;
}

.section.section-hero {
	padding: 0;
}

.section-title {
	display: block;
	width: 48%;
	max-width: max(920px, 47.9167vw);
	margin: 0 auto 2.5%;
}

/* ========== 板块二：抱团好礼 ========== */
.section-team {
	padding-top: 4%;
}

.team-list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	gap: 1%;
	width: 100%;
	max-width: max(1500px, 78.125vw);
	margin: 0 auto;
	padding: 0 1%;
}

.team-list img {
	width: 15.5%;
	max-width: max(240px, 12.5vw);
	transition: transform 0.25s ease;
}

.team-list img:hover {
	transform: translateY(-6px);
}

.btn-join {
	display: block;
	width: 12%;
	max-width: max(226px, 11.771vw);
	min-width: 120px;
	margin: 2.5% auto 0;
	transition: transform 0.2s ease;
}

.btn-join:hover {
	transform: scale(1.06);
}

.btn-join img {
	width: 100%;
}

/* ========== 板块三：手风琴 ========== */
.accordion {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0.6%;
	width: 92%;
	max-width: max(1480px, 77.0833vw);
	/* 低于 1920 保持原 clamp；高于 1920 按设计比例继续增高 */
	height: clamp(320px, 36vw, max(560px, 29.1667vw));
	margin: 0 auto;
}

.acc-item {
	position: relative;
	display: flex;
	flex-direction: row;
	flex: 0 0 auto;
	width: auto;
	height: 100%;
	overflow: hidden;
	cursor: pointer;
	background: transparent;
	transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-item.is-active {
	flex: 1 1 auto;
	min-width: 52%;
	cursor: default;
}

/* 侧栏标题：展开/收起共用同一张图，按切图比例固定不拉伸 */
.acc-tab {
	position: relative;
	flex: 0 0 auto;
	height: 100%;
	aspect-ratio: 96 / 567;
	width: auto;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14% 0;
	background: url("../assets/accordion-panel.png?v=3") no-repeat center / 100% 100%;
}

.acc-tab-text {
	writing-mode: vertical-rl;
	text-orientation: upright;
	letter-spacing: 0.18em;
	font-size: max(13px, 1.15vw);
	font-weight: 700;
	font-family: SimSun, "宋体", "Songti SC", STSong, "NSimSun", serif;
	color: #fff8e8;
	text-shadow: 0 1px 2px rgba(20, 40, 80, 0.45);
	white-space: nowrap;
}

.acc-panel {
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	height: auto;
	margin: 1.2% 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateX(24px);
	pointer-events: none;
	background: rgba(248, 240, 224, 0.96);
	border: 0 solid rgba(196, 160, 96, 0.75);
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), flex 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		padding 0.45s ease, margin 0.45s ease, visibility 0.45s;
}

.acc-item.is-active .acc-panel {
	flex: 1 1 auto;
	width: auto;
	height: auto;
	align-self: stretch;
	margin: 1.2% 1.2% 1.2% 0;
	padding: 2.5% 3%;
	overflow: auto;
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
	border-width: 2px;
}

.acc-panel h4 {
	margin-bottom: 0.6em;
	font-size: max(16px, 1.4vw);
	color: #2f4f8a;
}

.acc-panel .acc-time {
	margin-bottom: 0.8em;
	font-size: max(12px, 1vw);
	color: #8a4a28;
	font-weight: 700;
}

.acc-panel .acc-rules,
.acc-panel p {
	margin-bottom: 0.55em;
	font-size: max(12px, 1vw);
	line-height: 1.75;
	color: #5a3a28;
	white-space: normal;
	word-break: break-word;
}

.acc-panel img {
	max-width: 100%;
	height: auto;
	margin-top: 0.8em;
	border-radius: 4px;
}

.acc-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 160px;
	padding: 24px 12px;
	text-align: center;
	font-size: max(13px, 1.1vw);
	color: #6a4030;
}

/* ========== 板块四：排行榜 ========== */
.section-rank {
	padding-bottom: 5%;
}

.rank-tabs {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 0;
	width: 90%;
	max-width: max(1392px, 72.5vw);
	margin: 0 auto;
	padding: 0;
	position: relative;
	z-index: 3;
}

/* 切图 off 302x82 / on 319x82；高分屏随容器变宽，普通屏保持 319 上限 */
.rank-tab {
	flex: 0 1 28%;
	width: 28%;
	max-width: max(319px, 16.6146vw);
	aspect-ratio: 319 / 82;
	height: auto;
	position: relative;
	border: 0;
	padding: 0;
	background: transparent url("../assets/rank-tab-off.png?v=3") no-repeat center / 100% 100%;
	cursor: pointer;
	font-size: max(12px, 1.15vw);
	font-weight: 700;
	font-family: SimSun, "宋体", "Songti SC", STSong, "NSimSun", serif;
	color: #5b3d28;
	outline: none;
}

.rank-tab span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 2%;
	letter-spacing: 0.04em;
}

.rank-tab.is-active {
	background-image: url("../assets/rank-tab-on.png?v=3");
	color: #fff6d8;
	text-shadow: 0 1px 2px rgba(20, 40, 90, 0.35);
	cursor: default;
}

.rank-board {
	position: relative;
	width: 90%;
	max-width: max(1392px, 72.5vw);
	margin: 0 auto;
	aspect-ratio: 1392 / 782;
	background: url("../assets/rank-frame.png?v=3") no-repeat center / 100% 100%;
}

.rank-board-inner {
	position: absolute;
	left: 4.5%;
	right: 4.5%;
	top: 2.6%;
	bottom: 5%;
	display: flex;
	flex-direction: column;
}

.rank-board-title {
	flex: 0 0 auto;
	height: 8.2%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: max(14px, 1.5vw);
	font-weight: 700;
	color: #fff8e6;
	letter-spacing: 0.12em;
	text-shadow: 0 1px 2px rgba(20, 40, 80, 0.4);
}

.rank-board-desc {
	flex: 0 0 auto;
	padding: 1.2% 2% 0.8%;
	text-align: center;
	font-size: max(11px, 0.95vw);
	line-height: 1.5;
	color: #6a4030;
}

.rank-table-wrap {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 0 1% 1%;
}

.rank-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 24px 12px;
	text-align: center;
	font-size: max(12px, 0.95vw);
	line-height: 1.5;
	color: #6a4030;
}

.rank-thead,
.rank-row {
	display: grid;
	align-items: center;
	min-height: max(28px, 3.2vw);
	padding: 0 2.5%;
	font-size: max(11px, 0.95vw);
	color: #4a2f24;
}

.rank-thead {
	font-weight: 700;
	color: #2f4f8a;
	margin-bottom: 0.4%;
}

.rank-row {
	margin-bottom: 0.55%;
	background: url("../assets/rank-tr.png?v=3") no-repeat center / 100% 100%;
}

.rank-row span,
.rank-thead span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0 0.4%;
}

.rank-cols-4 {
	grid-template-columns: 1.1fr 1.2fr 1.2fr 2fr;
}

.rank-cols-5-level {
	grid-template-columns: 0.5fr 1.1fr 0.7fr 0.9fr 1.6fr;
}

.rank-cols-5-fashion {
	grid-template-columns: 0.5fr 1.1fr 0.7fr 0.9fr 1.6fr;
}

/* ========== 移动端 ========== */
@media screen and (max-width: 900px) {
	.btn-home {
		top: 2%;
		right: 3%;
		width: 26%;
		min-width: 88px;
	}

	.intro-wrap {
		padding: 0 3% 4%;
	}

	.intro-inner {
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-evenly;
		gap: 12px 24px;
		width: 100%;
	}

	.intro-inner .sentiment {
		order: 1;
		width: 100%;
		max-width: none;
	}

	.intro-inner .qr-item,
	.intro-inner .qr-item:first-child,
	.intro-inner .qr-item:last-child {
		order: 2;
		flex: 0 0 auto;
		width: 38%;
		max-width: 148px;
		min-width: 0;
		margin: 0;
		transform: none;
	}

	html,
	body {
		background: #8ecff5 url("../assets/bg-m.jpg?v=8") no-repeat center top / cover;
		background-attachment: fixed;
	}

	.page,
	.body-bg {
		background: transparent;
	}

	/* 移动端底部留白，避免内容贴底 */
	.body-bg {
		padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	}

	/* iOS 上 attachment:fixed 不稳定，用铺底层保证滚动时背景不动 */
	body::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: -1;
		background: #8ecff5 url("../assets/bg-m.jpg?v=8") no-repeat center top / cover;
		pointer-events: none;
	}

	.section-title {
		width: 88%;
	}

	.team-list {
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px 3%;
		padding: 0 4%;
		width: 100%;
	}

	.team-list img {
		flex: 0 0 31%;
		width: 31%;
		max-width: none;
	}

	.btn-join {
		width: 42%;
		margin-top: 18px;
	}

	.accordion {
		flex-direction: column;
		width: 94%;
		height: auto;
		gap: 8px;
	}

	.acc-item {
		flex: none !important;
		flex-direction: column;
		width: 100% !important;
		min-width: 0 !important;
		height: auto;
		transition: none;
	}

	.acc-item.is-active {
		height: auto;
		min-height: 0;
	}

	.acc-item:not(.is-active) .acc-panel {
		flex: none;
		height: 0;
		min-height: 0;
		padding: 0;
		margin: 0;
		border-width: 0;
	}

	/* 移动端切换小标题：用横版分栏背景，按切图 567×96 不拉伸 */
	.acc-tab {
		width: 100%;
		height: auto;
		aspect-ratio: 567 / 96;
		padding: 0 10%;
		justify-content: center;
		background: url("../assets/accordion-tab.png?v=8") no-repeat center / 100% 100%;
		border-radius: 0;
	}

	.acc-item.is-active .acc-tab {
		border-radius: 0;
	}

	.acc-tab-text {
		writing-mode: horizontal-tb;
		text-orientation: mixed;
		letter-spacing: 0.08em;
		font-size: 15px;
	}

	.acc-panel {
		margin: 0;
		transform: translateY(-8px);
	}

	.acc-item.is-active .acc-panel {
		margin: 0 8px 10px;
		max-height: none;
		height: auto;
		transform: translateY(0);
	}

	.rank-tabs {
		width: 96%;
		gap: 0;
		padding: 0;
		margin: 0 auto;
	}

	.rank-tab {
		flex: 1 1 0;
		width: auto;
		max-width: none;
		font-size: 11px;
		aspect-ratio: 302 / 82;
	}

	.rank-tab span {
		padding: 0 2px 2%;
		text-align: center;
		line-height: 1.2;
	}

	.rank-board {
		width: 96%;
		aspect-ratio: auto;
		min-height: 420px;
		background-size: 100% 100%;
	}

	.rank-board-inner {
		left: 5%;
		right: 5%;
		top: 3%;
		bottom: 4%;
	}

	.rank-board-title {
		height: auto;
		min-height: 36px;
		font-size: 15px;
		padding: 4px 0;
	}

	.rank-board-desc {
		font-size: 12px;
		padding: 8px 4px;
	}

	.rank-table-wrap {
		overflow: visible;
		overflow-x: hidden;
		-webkit-overflow-scrolling: auto;
	}

	.rank-thead,
	.rank-row {
		min-width: 0;
		min-height: 36px;
		height: auto;
		padding: 6px 1.5%;
		font-size: 11px;
		background: none;
	}

	.rank-row {
		background-image: none;
	}

	.rank-row span,
	.rank-thead span {
		white-space: normal;
		word-break: break-word;
		overflow: visible;
		text-overflow: unset;
		line-height: 1.35;
	}
}

@media screen and (max-width: 480px) {
	.rank-tab {
		font-size: 10px;
	}

	.acc-item.is-active {
		min-height: 0;
	}
}
