
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: transparent !important;
	overflow: hidden;
}

.download-page {
	width: 100%;
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 15px;
	background: transparent !important;
}

/* 弹窗主体 */
.download-box {
	width: 100%;
	max-width: 440px;
	position: relative;
	padding: 24px 22px 30px;

	border: 1px solid #b99a65;
	border-radius: 10px;

	background:
		repeating-linear-gradient(45deg,
			rgba(190, 151, 86, .035) 0px,
			rgba(190, 151, 86, .035) 2px,
			transparent 2px,
			transparent 7px),
		linear-gradient(135deg, #21190f, #100d09 55%, #21180f);

	box-shadow:
		0 0 15px rgba(0, 0, 0, .8),
		inset 0 0 15px rgba(190, 151, 86, .08);
}

/* 标题 */
.download-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;

	color: #ead8b7;
	font-size: 19px;
	font-weight: bold;
	letter-spacing: 1px;

	margin-bottom: 30px;
}

.title-decoration {
	color: #b99a65;
	font-size: 13px;
}

/* 关闭按钮 */
.close-btn {
	position: absolute;
	top: -15px;
	right: -13px;

	width: 42px;
	height: 42px;

	border: 2px solid #c5a66f;
	border-radius: 50%;

	background: linear-gradient(145deg, #393126, #080706);
	color: #fff;

	font-size: 31px;
	line-height: 34px;
	font-weight: 300;

	cursor: pointer;

	box-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

/* 按钮列表 */
.download-list {
	display: flex;
	flex-direction: column;
	gap: 17px;
}

/* 单个按钮 */
.download-item {
	width: 100%;
	height: 54px;

	display: flex;
	align-items: center;
	justify-content: center;

	position: relative;

	border: 2px solid #c3a574;
	border-radius: 30px;

	background:
		linear-gradient(180deg,
			#51483a 0%,
			#242019 28%,
			#0b0907 70%,
			#282116 100%);

	box-shadow:
		inset 0 2px 5px rgba(255, 255, 255, .16),
		inset 0 -3px 5px rgba(0, 0, 0, .8),
		0 2px 5px rgba(0, 0, 0, .7);

	color: #ead9bd;
	text-decoration: none;
}

/* ICON 预留区域 */
.item-icon {
	position: absolute;
	left: 25%;
	top: 50%;
	transform: translateY(-50%);
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/*  ICON 图片 */
.item-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 按钮文字 */
.item-text {
	font-size: 15px;
	font-weight: bold;
	letter-spacing: .3px;
}

/* 点击反馈 */
.download-item:active {
	transform: scale(.98);
	filter: brightness(1.2);
}

/* 小屏幕适配 */
@media (max-width: 360px) {
	.download-box {
		padding: 22px 15px 25px;
	}

	.download-title {
		font-size: 17px;
	}

	.item-text {
		font-size: 14px;
	}

	.item-icon {
		left: 13%;
	}
}

/* 安装教程遮罩 */
.tutorial-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: flex-end;
}

.tutorial-overlay.show {
    display: flex;
}

/* 底部上滑面板 */
.tutorial-panel {
    width: 100%;
    max-width: 440px;
    height: 85%;
    background: #17130d;
    border: 1px solid #bd913f;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    overflow: hidden;

    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.tutorial-overlay.show .tutorial-panel {
    transform: translateY(0);
}

/* 教程标题栏 */
.tutorial-header {
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e8c477;
    font-size: 17px;
    font-weight: bold;
    border-bottom: 1px solid rgba(189, 145, 63, 0.3);
    box-sizing: border-box;
}

.tutorial-header button {
    border: none;
    background: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* 教程图片区域 */
.tutorial-content {
    height: calc(100% - 50px);
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.tutorial-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}