* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

 body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
		
		 /* 电脑和平板最大宽度适配 */
		 			body {
		 				max-width: 100%;
		 				margin: 0 auto;
		 				background-color: #f5f5f5;
		 			}
		 			
		 			/* 平板适配 */
		 			@media screen and (min-width: 769px) and (max-width: 1024px) {
		 				body {
		 					max-width: 90%;
		 				}
		 				
		 				.container {
		 					padding: 20px 0;
		 				}
		 			}
		 			
		 			/* 桌面端适配 */
		 			@media screen and (min-width: 1025px) {
		 				body {
		 					max-width: 1200px;
		 					box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
		 					min-height: 100vh;
		 				}
		 				
		 				.container {
		 					padding: 30px 0;
		 				}
		 			}
		 			
		 			/* 大屏幕适配 */
		 			@media screen and (min-width: 1440px) {
		 				body {
		 					max-width: 1400px;
		 				}
		 			}
		        

/* 顶部导航栏样式 - 固定位置 */
.top-nav-bar {
    display: block;
    padding: 20px;
    background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    min-height: 60px;
    position: sticky; /* 使用 sticky 定位 */
    top: 0; /* 固定在顶部 */
    z-index: 1000; /* 确保在其他内容之上 */
    text-align: center;
}
.nav-back-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 20px;
    z-index: 10;
	font-size: 20px;
	color: #d2d2d2;
}

.nav-back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-back-button svg {
    width: 36px;
    height: 36px;
	color: #d2d2d2;
}

.nav-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 50px; /* 为左右两侧的按钮留出空间 */
    background: none;
    box-shadow: none;
    width: 100%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-nav-bar {
        padding: 15px;
        margin-bottom: 15px;
        min-height: 50px;
    }
    
    .nav-title {
        font-size: 1rem;
        padding: 0 40px;
    }
    
    .nav-back-button {
		font-size: 14px;
        padding: 4px;
        left: 5px;
    }
    
    .nav-back-button svg {
        width: 20px;
        height: 20px;
    }
}

header {
	text-align: center;
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
	color: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
}

.container {
	display: flex;
	flex-direction: column;
	gap: 30px;
    padding-bottom: 120px;
    /* 允许页面内容滑动 */
    overflow-x: hidden;
}

/* 错误提示样式 */
.update-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
}

.retry-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 8px;
    cursor: pointer;
}

.retry-button:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* 底部导航栏样式 - 修复网页端闪烁版本 */
.bottom-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 60%;
    max-width: 1000px;
    font-size: 1.4em;
    padding: 0 1.5em;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 555;
    height: 80px;
}

.menu__item {
    all: unset;
    flex-grow: 1;
    z-index: 100;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 0.5em 0;
    transition: all var(--duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    transform: translate3d(0, 0, 0) scale(1);
    /* 去除焦点轮廓 */
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menu__item:focus {
    outline: none !important;
}

.menu__item::before {
    content: "";
    z-index: -1;
    width: 3.7em;
    height: 3.7em;
    border-radius: 50%;
    position: absolute;
    transform: scale(0);
    background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
    transition: transform var(--duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 1; /* 确保初始透明度为1 */
}

/* 初始隐藏类 - 防止网页端闪烁 */
.menu__item.initial-hide::before {
    opacity: 0 !important;
    transition: none !important;
}

/* 激活状态动画 - 从下到上、从小到大的缩放显示 */
.menu__item.active {
    transform: translate3d(0, -0.65em, 0) scale(1);
    animation: activeItemScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes activeItemScale {
    0% {
        transform: translate3d(0, 0, 0) scale(0.6);
        opacity: 0.2;
    }
    100% {
        transform: translate3d(0, -0.65em, 0) scale(1);
        opacity: 1;
    }
}

/* 上一个激活项的消失动画 - 从上到下、从大到小的缩放消失 */
.menu__item.previous-active {
    animation: previousActiveItemScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes previousActiveItemScale {
    0% {
        transform: translate3d(0, -0.65em, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(0.6);
        opacity: 0;
    }
}

.menu__item.active::before {
    transform: scale(1);
    animation: activeBeforeScale 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes activeBeforeScale {
    0% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(1);
    }
}

/* 上一个激活项的背景消失动画 */
.menu__item.previous-active::before {
    animation: previousActiveBeforeScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes previousActiveBeforeScale {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

.menu__text {
    font-size: 0.4em;
    margin-top: 0.2em;
    color: #666;
    transition: all var(--duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    transform: scale(1);
    /* 防止文字被选中 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menu__item.active .menu__text {
    color: #fff;
    font-weight: 600;
    animation: activeTextScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes activeTextScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 上一个激活项的文字消失动画 */
.menu__item.previous-active .menu__text {
    animation: previousActiveTextScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes previousActiveTextScale {
    0% {
        transform: scale(1);
        opacity: 1;
        color: #fff;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
        color: #666;
    }
}

.icon {
    margin-top: 0.3em;
    width: 1.5em;
    height: 1.5em;
    stroke: #666;
    fill: transparent;
    stroke-width: 1.4pt;
    stroke-miterlimit: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    transition: all var(--duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(1);
}

.menu__item.active .icon {
    stroke: #fff;
    animation: strok 1.5s reverse, activeIconScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes activeIconScale {
    0% {
        transform: scale(0.7);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 上一个激活项的图标消失动画 */
.menu__item.previous-active .icon {
    animation: previousActiveIconScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

@keyframes previousActiveIconScale {
    0% {
        transform: scale(1);
        opacity: 1;
        stroke: #fff;
    }
    100% {
        transform: scale(0.7);
        opacity: 0;
        stroke: #666;
    }
}

.menu__border {
    left: 0;
    bottom: 99%;
    width: 7em;
    height: 1.5em;
    position: absolute;
    clip-path: url(#menu);
    background-color: white;
    transition: transform var(--duration) cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.2s ease;
    opacity: 1; /* 确保初始透明度为1 */
}

.svg-container {
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

/* 动画关键帧 */
@keyframes strok {
    100% {
        stroke-dashoffset: 400;
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .bottom-menu {
        width: 95%;
        font-size: 1.2em;
        height: 65px;
        bottom: 15px;
    }
	.menu__border {
	    width: 7.25em;
	    height: 1.6em;
	}
    
    .menu__text {
        font-size: 0.45em;
    }
}

@media screen and (max-width: 480px) {
    .bottom-menu {
        font-size: 1em;
        height: 60px;
        padding: 0 1em;
    }
    
    .menu__text {
        font-size: 0.4em;
    }
}

/* 平板适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .bottom-menu {
        max-width: 450px;
        font-size: 1.3em;
    }
	.menu__border {
	    width: 7.5em;
	    height: 1.8em;
	}
}

/* 桌面端适配 */
@media screen and (min-width: 1025px) {
    .bottom-menu {
        max-width: 350px;
        font-size: 1.2em;
    }
	.menu__border {
	    width: 7.5em;
	    height: 1.8em;
	}
}










.card {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-title {
	font-size: 1.4rem;
	margin-bottom: 15px;
	color: #501e1e;
	border-bottom: 2px solid #f0f2f5;
	padding-bottom: 10px;
}

.upload-btn {
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
	color: white;
	border: none;
	padding: 14px 25px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	margin-top: 10px;
	display: inline-block;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

.upload-btn:hover {
	background-color: #b23026;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-preview {
	display: none max-width: 0;
	max-height: 0;
}

.settings-grid {
	display: grid;
	grid-template-columns: 0.4fr 1fr;
	gap: 20px;
}

@media (max-width: 760px) {
	.settings-grid {
		grid-template-columns: 1fr;
	}
}

.grid-inputs {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: nowrap;
	/* 防止换行 */
}

.grid-input {
	flex: 1;
	min-width: 120px;
}


/* 移动端优化 - 但保持同行显示 */
@media (max-width: 768px) {
	.grid-inputs {
		flex-direction: row;
		/* 保持横向排列 */
		flex-wrap: nowrap;
		/* 防止换行 */
	}

	.grid-input {
		min-width: 80px;
		/* 减小最小宽度以适应小屏幕 */
	}

	.grid-input:first-child {
		margin-right: 7.5px;
	}

	.grid-input:last-child {
		margin-left: 7.5px;
	}

}

/* 修复移动端数字输入框箭头显示问题 */
@media (max-width: 768px) {
	.grid-number-input {
		/* 确保在移动端始终显示数字输入的上下箭头 */
		-moz-appearance: textfield;
		appearance: textfield;
	}

	.grid-number-input::-webkit-outer-spin-button,
	.grid-number-input::-webkit-inner-spin-button {
		-webkit-appearance: inner-spin-button;
		appearance: inner-spin-button;
		opacity: 1;
		display: block;
	}

	/* 针对Firefox浏览器 */
	.grid-number-input::-moz-number-spin-box {
		display: block;
	}

	.grid-number-input:focus::-webkit-outer-spin-button,
	.grid-number-input:focus::-webkit-inner-spin-button {
		opacity: 1;
	}
}

label {
	display: block;
	margin-bottom: 5px;
	font-weight: 550;
	color: #501e1e;
}

input,
select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	transition: border 0.3s;
}

input:focus,
select:focus {
	border-color: #b23026;
	outline: none;
	box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
}

.toggle-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 8px 0;
	gap: 10px;
}

.toggle-container2 {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	align-self: flex-start;
	margin: -10px 10px;
	margin-bottom: 10px;
	gap: 10px;
}

.toggle-label {
	color: #501e1e;
	padding-bottom: 8px;
}

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 24px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked+.slider {
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
}

input:checked+.slider:before {
	transform: translateX(26px);
}

/* 添加画布拖拽相关样式 */
.canvas-container {
	width: 100%;
	overflow: hidden;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 15px;
	background-color: #f9f9f9;
	padding: 10px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	position: relative;
	touch-action: none;
	/* 禁用默认触摸行为以支持 pinch-zoom */
	cursor: grab;
}

.canvas-container.dragging {
	cursor: grabbing;
}

.canvas-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	transform-origin: center center;
	transition: transform 0.1s ease;
}

/* 画布缩放控制按钮样式 */
.zoom-controls {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 1001;
	/* 确保在最上层显示 */
	pointer-events: none;
	/* 防止遮挡画布交互 */
}

.zoom-btn {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
	font-weight: bold;
	color: #333;
	transition: all 0.2s ease;
	user-select: none;
	pointer-events: auto;
	/* 允许按钮交互 */
}

.zoom-btn:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: scale(1.1);
}

.zoom-btn:active {
	transform: scale(0.95);
}

/* 缩放级别显示 */
.zoom-level {
	background: rgba(255, 255, 255, 0.8);
	color: rgb(0, 0, 0);
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	text-align: center;
	min-width: 50px;
	pointer-events: auto;
}

/* 重置按钮样式 */
.reset-view-btn {
	position: absolute;
	bottom: 15px;
	right: 15px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	font-size: 12px;
	color: #333;
	transition: all 0.2s ease;
	z-index: 1001;
	pointer-events: auto;
}

.reset-view-btn:hover {
	background: rgba(255, 255, 255, 1);
	transform: scale(1.05);
}

.reset-view-btn:active {
	transform: scale(0.95);
}

/* 电脑端拖动提示 */
.desktop-drag-tip {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	z-index: 1002;
	display: none;
	pointer-events: none;
	backdrop-filter: blur(4px);
}

.desktop-drag-tip.show {
	display: block;
}

@media (min-width: 769px) {
	.desktop-drag-tip {
		font-size: 14px;
		padding: 12px 16px;
	}
}

/* 移动端提示 */
.mobile-zoom-tip {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
	z-index: 1002;
	display: none;
	pointer-events: none;
	backdrop-filter: blur(4px);
}

.mobile-zoom-tip.show {
	display: block;
}

@media (max-width: 768px) {
	.zoom-controls {
		top: 10px;
		right: 10px;
	}

	.zoom-btn {
		width: 32px;
		height: 32px;
		font-size: 16px;
	}

	.reset-view-btn {
		bottom: 10px;
		right: 10px;
		padding: 5px 10px;
		font-size: 11px;
	}

	.mobile-zoom-tip {
		font-size: 12px;
		padding: 10px 14px;
		max-width: 80%;
	}
}

/* 拖拽提示 */
.drag-tip {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 10px 15px;
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
	z-index: 20;
	display: none;
}

.drag-tip.show {
	display: block;
}

@media (max-width: 768px) {
	.drag-tip {
		font-size: 12px;
		padding: 8px 12px;
	}
}

/* 隐藏canvas-container的类 */
.canvas-container.hidden {
	display: none !important;
}

/* 隐藏header的类 */
header.hidden {
	display: none !important;
}

/* 手机端固定到顶部，原位置不显示 */
@media (max-width: 768px) {
	.canvas-container:not(.hidden) {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		margin: 0;
		padding: 10px;
		border-radius: 0;
		border-left: none;
		border-right: none;
		border-top: none;
		max-height: 35vh;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	}
}

canvas {
	display: block;
	margin: 0 auto;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	/* 添加以下样式 */
	max-width: 100%;
	height: auto;
	image-rendering: -moz-crisp-edges;
	/* Firefox */
	image-rendering: -webkit-optimize-contrast;
	/* Safari */
	image-rendering: pixelated;
	/* Chrome */
	image-rendering: crisp-edges;
	/* Standard */
}

.stats-container {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 20px;
}

@media (max-width: 768px) {
	.stats-container {
		grid-template-columns: 1fr;
	}
}

.stat-card {
	background: white;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-title {
	font-size: 1.2rem;
	margin-bottom: 15px;
	color: #501e1e;
	text-align: center;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f2f5;
}

.bead-count {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	color: #b23026;
}

:root {
	--bg-color: #f8f9fa;
	--border-color: #7d7b66;
	--swatch-border-color: #ddd;
	--text-color: #501e1e;
	--count-color: #b23026;
}



.crop-preview-dialog .dialog-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 15px 20px;
	background: #f8f9fa;
	border-top: 1px solid #dee2e6;
}

.crop-preview-dialog .btn {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.2s;
}

.crop-preview-dialog .btn-primary {
	background: #b23026;
	color: white;
}

.crop-preview-dialog .btn-primary:hover {
	background: #bb3009;
}

.crop-preview-dialog .btn-secondary {
	background: #7d7b66;
	color: white;
}

.crop-preview-dialog .btn-secondary:hover {
	background: #7d7b66;
}

/* 桌面端拖拽提示 */
.desktop-drag-tip {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 0.8rem;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.desktop-drag-tip.show {
	opacity: 1;
}

/* 背景色相关样式 */
.background-section {
	grid-column: 1 / -1;
	margin-bottom: 15px;
	padding: 8px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #7d7b66;
	box-sizing: border-box;
}

.background-section h4 {
	margin-bottom: 10px;
	color: #7d7b66;
	font-size: 0.9rem;
}

.background-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	margin-bottom: 10px;
}

.background-color-item {
	display: flex;
	align-items: center;
	padding: 2px;
	border-radius: 6px;
	background-color: white;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 60px;
}

.background-color-item:hover {
	border-color: #b23026;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(106, 17, 203, 0.2);
}


.background-color-item .color-swatch {
	width: 31px;
	height: 31px;
	justify-content: center;
}

.background-color-item .color-name {
	font-weight: 600;
	color: #501e1e;
	font-size: 0.9rem;
}

.canvas-selecting-background:hover {
	box-shadow: 0 0 0 2px #b23026;
}

@media screen and (max-width: 768px) {
	.background-section {
		transform: scale(0.9);
		transform-origin: top center;
	}
}

@media screen and (max-width: 480px) {
	.background-section {
		transform: scale(0.85);
		transform-origin: top center;
	}
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
	.background-section {
		margin: 0 0 15px 0;
		width: 100%;
	}
}

.colors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 0px;
	max-height: 480px;
	overflow-y: auto;
}

.color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(71px, 1fr));
	margin: -4px;
	overflow-x: auto;
}

.color-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px;
	border-radius: 6px;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
}

.color-swatch {
	width: 31px;
	height: 31px;
	border-radius: 3px;
	margin-bottom: 6px;
	border: 1px solid var(--swatch-border-color);
	will-change: background-color;
}

.color-name {
	font-weight: 600;
	color: var(--text-color);
	font-size: 0.9rem;
}

.color-count {
	color: var(--count-color);
	font-weight: 600;
	font-size: 0.95rem;
}

.loading {
	display: none;
	text-align: center;
	padding: 10px;
}

.spinner {
	border: 4px solid rgba(255, 255, 255, 0.329);
	border-radius: 50%;
	border-top: 4px solid #faee00;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

footer {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	color: #7d7b66;
	font-size: 0.9rem;
}

.setting-group {
	margin-bottom: 22px;
	border: 1.5px solid #d5d5d5;
	/* 添加描边 */
	padding: 10px;
	border-radius: 10px;
}

.setting-group h3 {
	margin-bottom: 12px;
	color: #333;
	border-bottom: 1px solid #d5d5d5;
	padding-bottom: 6px;
}

.input-row input,
.input-row select {
	padding: 7px 16px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
}

.input-row input[type="number"] {
	text-align: center;
}

.input-row {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	gap: 10px;
	font-size: 1rem;
}

.input-row label {
	min-width: 120px;
	font-weight: 500;
	font-size: 1rem;
}

.slider-container {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.slider-container input[type="range"] {
	flex: 1;
}

.slider-value {
	min-width: 30px;
	text-align: center;
	font-weight: bold;
}

.color-picker {
	display: flex;
	align-items: center;
	gap: 2px;
}

.color-picker input[type="color"] {
	position: absolute;
	width: 0;
	height: 0;
	padding: 0;
	margin: 0;
	border: none;
	opacity: 0;
	pointer-events: none;
	/* 禁用输入框本身的点击事件 */
}

.color-preview {
	width: 30px;
	height: 30px;
	border-radius: 5px;
	border: 1px solid #ddd;
	background-color: #ff0000;
	cursor: pointer;
	/* 添加手指光标表示可点击 */
}

.control-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

.save-btn-container {
	margin-bottom: 15px;
	text-align: right;
}

@media (max-width: 768px) {
	.input-row {
		flex-direction: row;
		align-items: center;
	}

	.input-row label {
		min-width: auto;
		margin-bottom: 0;
		flex-shrink: 0;
		font-size: 0.9rem;
		width: 80px;
		/* 固定标签宽度 */
	}

	.slider-container,
	.color-picker {
		flex: 1;
		justify-content: flex-end;
		/* 右对齐 */
	}

	.save-btn-container {
		text-align: center;
	}
}

/* 颜色选项菜单样式 ___________________*/

.color-options-menu {
	background: var(--color-bg-primary, white);
	border: 1px solid var(--color-border-default, #ddd);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 180px;
	overflow: hidden;
}

.color-options-header {
	justify-content: flex-end;
	align-items: center;
	background: var(--color-bg-secondary, #f5f7fa00);
	border-bottom: 1px solid var(--color-border-light, #eeeeee00);
	height: 0;
}

.close-options {

	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: var(--color-text-muted, #66666600);
	outline: none;
	/* 建议补充 focus 样式 */
}

.close-options:focus,
.close-options:hover {
	color: var(--color-text-primary, #333);
}

.color-options-content {
	padding: 5px 0;
}

.option-btn {
	display: block;
	width: 100%;
	padding: 8px 15px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	color: var(--color-text-primary, #333);
	outline: none;
}

.option-btn:hover,
.option-btn:focus {
	background: var(--color-bg-hover, #f0f2f5);
}

.option-btn:active {
	background: var(--color-bg-active, #e4e7eb);
}


/* 替换颜色对话框样式 */
.replace-color-dialog {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 150px;
	z-index: 1001;
}

.replace-color-dialog .dialog-content {
	background: white;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	max-height: 51vh;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px;
	background: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
}

.close-dialog {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.dialog-body {
	padding: 20px;
	max-height: 480px;
}

.search-section {
	margin-bottom: 15px;
}

.search-input {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}


.color-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
	border: 1px solid #eee;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.color-option:hover {
	background: #f8f9fa;
	border-color: #b23026;
}

.color-option .color-swatch {
	width: 30px;
	height: 30px;
	border-radius: 4px;
	margin-bottom: 5px;
	border: 1px solid #ddd;
}

.color-option .color-name {
	font-size: 12px;
	font-weight: 600;
	color: #333;
}

/* 颜色选项选中状态 */
.color-option.selected {
	border: 2px solid #b23026;
	transform: scale(1.1);
	box-shadow: 0 4px 8px #faee00;
}

/* 对话框操作按钮 */
.dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}


/* 颜色列表样式调整 */
.background-section,
.main-colors-section {
	margin-bottom: 20px;
}

.background-section h4,
.main-colors-section h4 {
	display: flex;
	margin-bottom: 8px;
	color: #666;
	font-size: 18px;
	border-bottom: 1px solid #eee;
	padding-top: 5px;
}

.color-item {
	display: flex;
	align-items: center;
	padding: 8px;
	border-radius: 6px;
	background-color: white;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 70px;
	cursor: pointer;
}

.color-item:hover {
	border-color: #b23026;
	transform: translateY(-0.2px);
	box-shadow: 0 2px 8px rgba(106, 17, 203, 0.2);
}

.setting-group {
	margin-bottom: 22px;
	border: 1.5px solid #d5d5d5;
	padding: 10px;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.setting-group.collapsed {
	padding: 5px 10px;
}

.setting-group h3 {
	margin-bottom: 12px;
	color: #333;
	border-bottom: 1px solid #d5d5d5;
	padding-bottom: 6px;
	cursor: pointer;
	user-select: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.setting-group.collapsed h3 {
	margin-bottom: 0;
	border-bottom: none;
}

.setting-group .toggle-icon {
	transition: transform 0.3s ease;
}

.setting-group.collapsed .toggle-icon {
	transform: rotate(180deg);
}

.setting-group .group-content {
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	opacity: 1;
}

.setting-group.collapsed .group-content {
	max-height: 0 !important;
	opacity: 0;
}

/* 确保内容区域在折叠时不会显示滚动条 */
.setting-group.collapsed .group-content::-webkit-scrollbar {
	display: none;
}


/* 修改消息弹窗样式 */
.toast-message {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #b23026 40%, #ff5a28 100%);
	color: white;
	padding: 12px 16px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9999999999999;
	max-width: 100%;
	width: auto;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	will-change: opacity, transform;
}

/* 显示时的动画 */
.toast-message.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* 初始状态 slightly below */
.toast-message {
	transform: translateX(-50%) translateY(-20px);
}

/* 替换成功消息样式 */
.replacement-success-message {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
	color: white;
	padding: 12px 16px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1002;
	transition: opacity 0.3s ease, transform 0.3s ease;
	max-width: 100%;
	width: auto;
	opacity: 0;
	will-change: opacity, transform;
}

.replacement-success-message.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.replacement-success-message.initial {
	transform: translateX(-50%) translateY(-20px);
}

.replacement-success-message .message-content {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.color-with-name {
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 8px;
	border-radius: 4px;
}

.color-swatch-small {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-name-small {
	font-size: 12px;
	font-weight: 600;
}

.undo-replacement-btn {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	transition: background 0.2s;
	margin-left: 5px;
}

.undo-replacement-btn:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* 撤销成功消息样式 */
.undo-success-message {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
	color: white;
	padding: 12px 16px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1002;
	transition: opacity 0.3s ease, transform 0.3s ease;
	max-width: 90%;
	width: auto;
	opacity: 0;
	will-change: opacity, transform;
}

.undo-success-message.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.undo-success-message.initial {
	transform: translateX(-50%) translateY(-20px);
}

/* 手机端适配：整体缩放略小 */
@media screen and (max-width: 768px) {

	.toast-message,
	.replacement-success-message,
	.undo-success-message {
		transform: scale(0.9) translateX(-50%) translateY(-10px);
		font-size: 14px;
		padding: 10px 12px;
	}

	.color-name-small,
	.undo-replacement-btn {
		font-size: 11px;
	}

	.color-swatch-small {
		width: 14px;
		height: 14px;
	}
}

@media screen and (max-width: 768px) {

	.toast-message,
	.replacement-success-message,
	.undo-success-message {
		transform: scale(0.85) translateX(-50%) translateY(-8px);
		font-size: 13px;
		padding: 8px 10px;
	}

	.color-name-small,
	.undo-replacement-btn {
		font-size: 10px;
	}

	.color-swatch-small {
		width: 12px;
		height: 12px;
	}
}


@media screen and (max-width: 768px) {

	.color-options-header,
	.close-options,
	.color-options-menu {
		transform: scale(0.9);
		transform-origin: top center;
	}

}


@media screen and (max-width: 768px) {
	body {
		padding: 15px;
		max-width: 100%;
	}

	header {
		padding: 15px 10px;
		margin-bottom: 20px;
	}

	.subtitle {
		font-size: 1rem;
	}

	.card {
		padding: 15px;
	}

	.card-title {
		font-size: 1.2rem;
		margin-bottom: 12px;
	}
}

@media screen and (max-width: 768px) {
	body {
		padding: 10px;
	}

	header {
		padding: 12px 8px;
		border-radius: 8px;
	}

	.card {
		padding: 12px;
		border-radius: 8px;
	}

	.card-title {
		font-size: 1.1rem;
	}

	.upload-btn {
		padding: 12px 20px;
		font-size: 0.95rem;
	}

	.setting-group {
		padding: 8px;
		margin-bottom: 15px;
	}

	.setting-group h3 {
		font-size: 1rem;
		margin-bottom: 8px;
	}
}

@media (hover: none) and (pointer: coarse) {

	/* 针对触屏设备优化按钮大小 */
	.upload-btn,
	.option-btn,
	.color-option {
		min-height: 10px;
		/* 符合移动端最小触控区域标准 */
	}

	.toggle-container,
	.toggle-container-secondary {
		min-height: 25px;
		align-items: center;
	}

	input,
	select {
		min-height: 28px;
	}

	/* 增加触摸反馈 */
	.upload-btn:active,
	.option-btn:active,
	.color-option:active {
		transform: scale(0.98);
	}
}

@media screen and (max-width: 768px) {

	.color-grid,
	.background-section {
		grid-template-columns: repeat(auto-fill, minmax(74px, 1rem));
		margin: -8px;
	}

	.color-item .background-color-item {
		transform: scale(1.16);
	}

	.color-swatch {
		width: 28px;
		height: 28px;
	}

	.color-name,
	.color-count {
		font-size: 0.85rem;
	}
}

@media screen and (max-width: 768px) {
	.stats-container {
		gap: 10px;
	}

	.stat-title {
		font-size: 1rem;
		margin-bottom: 10px;
	}

	.bead-count {
		font-size: 2rem;
	}
}

@media screen and (max-width: 768px) {

	.input-row {
		gap: 8px;
	}

	.input-row label {
		min-width: 100px;
		font-weight: 500;
		font-size: 1rem;
	}

	input,
	select {
		padding: 10px 12px;
		font-size: 16px;
		/* 防止iOS缩放 */
	}
}







.container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

h1 {
	text-align: center;
	margin-bottom: 20px;
	padding: 20px;
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
	color: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	font-size: 2rem;
}

.controls {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.grid-inputs {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: nowrap;
}

.grid-input {
	flex: 1;
	min-width: 120px;
}


.input-row:last-child {
	margin-bottom: 0;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #501e1e;
	font-size: 1rem;
}

input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 2px dashed #ddd;
	border-radius: 8px;
	background: #f8f9fa;
	cursor: pointer;
	transition: border-color 0.3s;
	color: transparent;
}

input[type="file"]:hover {
	border-color: #b23026;
}

input[type="range"] {
	width: 100%;
	margin: 10px 0;
	-webkit-appearance: none;
	height: 6px;
	background: #7d7b66;
	border-radius: 3px;
	outline: none;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type="number"] {
	width: 80px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
	text-align: center;
}

input[type="number"]:focus {
	border-color: #b23026;
	outline: none;
	box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
}

input[type="checkbox"] {
	width: auto;
	margin-right: 8px;
	transform: scale(1.2);
}

.input-row input,
.input-row select {
	padding: 7px 16px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
}

.input-row input[type="number"] {
	text-align: center;
}

input[type="file"]::file-selector-button {
	color: #333;
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 6px 12px;
	margin-right: 10px;
	cursor: pointer;
}

input[type="file"]:valid {
	color: #666;
}

.grid-size-row {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	gap: 10px;
	font-size: 1rem;
}

.grid-size-row label {
	min-width: 120px;
	font-weight: 500;
	font-size: 1rem;
	margin-bottom: 0;
}
/* 默认隐藏图像对比区域 */
.image-comparison-container {
    display: none; /* 使用 !important 确保优先级 */
    background: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-comparison-container h3 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #501e1e;
	border-bottom: 2px solid #f0f2f5;
	padding-bottom: 10px;
	width: 100%;
	/* 标题占满宽度 */
	text-align: center;
}

.comparison-wrapper {
	position: relative;
	max-width: 100%;
	/* 限制最大宽度为父容器宽度 */
	height: 400px;
	overflow: hidden;
	border: 2px solid #7d7b66;
	border-radius: 8px;
	background: #f8f9fa;
	/* 移除固定宽度，让容器跟随内容 */
}

#originalImageContainer {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#originalImageContainer:not(:empty) {
	background: white;
}

#originalImage {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

#resultCanvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

@media (max-width: 768px) {
	.comparison-wrapper {
		height: 300px;
		max-width: 100%;
		/* 确保在移动端不超出屏幕 */
	}

	/* 其他移动端样式保持不变 */
}

/* 分割线样式 */
.splitter {
	position: absolute;
	top: 0;
	left: 60%;
	/* 默认位置，露出40%原图 */
	width: 3px;
	height: 100%;
	background-color: #b23026;
	cursor: col-resize;
	z-index: 20;
	transition: background-color 0.2s;
}

.splitter::before {
	content: '';
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	background-color: #b23026;
	border-radius: 50%;
	z-index: 21;
}

.splitter:hover {
	background-color: #ff5a28;
}

.splitter.dragging {
	background-color: #ff5a28;
}

.splitter.dragging::before {
	background-color: #ff5a28;
}

/* 透明度控制 */
.transparency-control {
	margin-top: 15px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 8px;
}

.transparency-control label {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.transparency-control span {
	font-weight: normal;
	color: #7d7b66;
}

button {
	background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-right: 10px;
}

button:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px #faee00;
}

button:active:not(:disabled) {
	transform: translateY(0);
}

button:disabled {
	background: #7d7b66;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

#blockSizeLabel {
	color: #7d7b66;
	font-size: 0.9rem;
	margin-left: 10px;
}

.next-button-container {
	text-align: center;
	margin-top: 20px;
}

.slider-btn {
	width: 30px;
	height: 30px;
	border-radius: 15%;
	background: #faee00;
	color: black;
	border: none;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
	background: #faee00;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.slider-btn:active {
	transform: translateY(0);
}

.slider-container {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.slider-container input[type="range"] {
	flex: 1;
}

.size-presets {
	display: flex;
	gap: 1px;
	margin-top: 4px;
}

.size-preset {
	flex: 1;
	padding: 4px 12px;
	border: 1px solid #ccc;
	background: #f5f5f5;
	border-radius: 4px;
	cursor: pointer;
	color: #333333;
	text-align: center;
}

.size-preset:hover {
	background: #e0e0e0;
}

.size-preset.active {
	background: #ff5a28;
	color: white;
	border-color: #ff5a28;
}

/* 移动端适配 */
@media (max-width: 768px) {
	body {
		padding: 5px;
	}

	h1 {
		font-size: 1rem;
		padding: 15px;
		margin-bottom: 15px;
	}

	.controls {
		padding: 15px;
	}

	.comparison-wrapper {
		height: 300px;
	}


	.image-comparison-container h3 {
		font-size: 1rem;
	}

	.input-row {
		margin-bottom: 10px;
	}

	label {
		font-size: 0.8rem;
	}

	input[type="number"] {
		width: 60px;
		padding: 5px 8px;
	}

	button {
		padding: 8px 16px;
		font-size: 0.9rem;
	}

	#blockSizeLabel {
		display: block;
		margin-left: 0;
		margin-top: 5px;
	}
}

/* 触屏设备优化 */
@media (hover: none) and (pointer: coarse) {
	button {
		min-height: 4px;
	}

	input[type="range"] {
		min-height: 4px;
	}

	input[type="checkbox"] {
		min-height: 4px;
		min-width: 4px;
	}
}

/* 遮罩层 */
.notice-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	transition: opacity 0.3s ease;
}

/* 内容卡片 */
.notice-content {
	background: #fff;
	color: #333;
	padding: 20px 24px;
	border-radius: 12px;
	width: 90%;
	max-width: 420px;
	text-align: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	font-size: 15px;
	line-height: 1.6;
	animation: popIn 0.3s ease;
}

/* 弹出动画 */
@keyframes popIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* 标题 */
.notice-content h3 {
	margin-top: 0;
	color: #ff5a28;
	font-size: 18px;
}

/* 按钮区 */
.notice-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}

/* 主按钮 */
#closeNoticeBtn {
	padding: 8px 20px;
	background: #ff5a28;
	color: white;
	border: none;
	border-radius: 20px;
	font-size: 15px;
	cursor: pointer;
}

#closeNoticeBtn:hover {
	background: #ff5a28;
}

/* 次按钮 */
#neverShowBtn {
	padding: 8px 20px;
	background: #ccc;
	color: #333;
	border: none;
	border-radius: 20px;
	font-size: 15px;
	cursor: pointer;
}

#neverShowBtn:hover {
	background: #bbb;
}




/* 图纸 */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #7d7b66;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
    border-color: #b23026;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    background: #b23026;
    border-color: #b23026;
}

.category-icon svg {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon svg {
    filter: brightness(0) invert(1);
}

.category-name {
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    color: #501e1e;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* 我的世界主界面 */
.minecraft-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 5px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.tab-item {
    background: #ffffff; /* 白色背景 */
    border: 2px solid #b23026; /* 道奇蓝边框 */
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    color: #b23026; /* 蓝色文字 */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    font-family: inherit;
}

.tab-item:hover {
    background: #ffffd5; /* 浅蓝色悬停背景 */
    color: #b23026; /* 深蓝色悬停文字 */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* 悬停时阴影稍强 */
    border-color: #b23026; /* 悬停时边框变深 */
}

/* 我的世界物品 - 可折叠分类 */
.category-section {
    margin: 9px 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #ffffd5; /* 添加浅蓝色边框增强层次感 */
}

.category-title {
    background: #ffffd5; /* 浅蓝色背景 */
    color: #b23026; /* 深蓝色文字 */
    padding: 6px 10px; /* 增加内边距提升舒适度 */
    margin: 0;
    font-size: 1rem;
    border-left: 5px solid #b23026; /* 道奇蓝左侧边框 */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease; /* 统一所有属性的过渡效果 */
}

.category-title:hover {
    background: #D4E6FF; /* 悬停时稍深的蓝色 */
    color: #b23026; /* 文字颜色同步加深 */
}

.category-title::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #b23026; /* 箭头颜色与边框一致 */
}

/* 可选：展开状态的样式（如果需要） */
.category-section.active .category-title {
    background: #D4E6FF;
    border-left-color: #b23026;
}

.category-section.active .category-title::after {
    transform: rotate(180deg);
}
.category-section.collapsed .category-title::after {
    transform: rotate(-90deg);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.category-section.collapsed .items-grid {
    max-height: 0;
    padding: 0 15px;
    opacity: 0;
}

.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #7d7b66;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #b23026;
}

.item-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 2px;
}

.item-name {
    font-size: 11px;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    color: #501e1e;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        padding: 15px;
        margin: 10px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .minecraft-tabs {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px;
        margin: 10px;
    }
    
    .tab-item {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .item-card {
        padding: 6px;
    }
    
    .item-image {
        width: 40px;
        height: 40px;
    }
    
    .item-name {
        font-size: 10px;
    }
    
    .back-button {
        margin: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .toast {
        padding: 10px 20px;
        font-size: 0.9rem;
        transform: scale(0.9) translate(-55%, -55%);
    }
}

@media screen and (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .category-item {
        padding: 10px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .minecraft-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    
    .tab-item {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 10px;
    }
    
    .item-image {
        width: 35px;
        height: 35px;
    }
    
    .back-button {
        margin: 10px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .toast {
        padding: 8px 16px;
        font-size: 0.8rem;
        transform: scale(0.85) translate(-58%, -58%);
    }
}

/* 平板适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 18px;
        padding: 18px;
    }
    
    .minecraft-tabs {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 18px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 10px;
        padding: 15px;
    }
}

/* 桌面端适配 */
@media screen and (min-width: 1025px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 25px;
        padding: 25px;
    }
    
    .minecraft-tabs {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
        padding: 25px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 12px;
        padding: 20px;
    }
}

/* 触屏设备优化 */
@media (hover: none) and (pointer: coarse) {
    .category-item:active,
    .tab-item:active,
    .item-card:active,
    .back-button:active {
        transform: scale(0.98);
    }
    
    .category-item:hover,
    .tab-item:hover,
    .item-card:hover,
    .back-button:hover {
        transform: none;
    }
}

body {
				background-color: #f5f5f5;
				min-height: 100vh;
				padding: 20px;
			}

			.container {
				display: flex;
				flex-direction: column;
				gap: 20px;
				margin: 0 auto;
				padding-bottom: 30px;
			}

			.user-info {
				background: #f8f9fa;
				padding: 10px;
				border-radius: 10px;
				margin-bottom: 10px;
			}

			.info-item {
				margin-bottom: 15px;
			}

			.info-item label {
				display: flex;
				color: #666;
				font-size: 14px;
				margin-bottom: 5px;
			}

			.info-value {
				display: flex;
				background: white;
				padding: 10px;
				border-radius: 5px;
				border: 1px solid #ddd;
			}

			.password-field {
				flex: 1;
				letter-spacing: 2px;
			}

			.masked {
				filter: blur(3px);
			}

			.eye-icon {
				background: none;
				border: none;
				cursor: pointer;
				padding: 5px;
				margin-left: 10px;
				display: flex;
				align-items: center;
				justify-content: center;
			}

			.eye-icon svg {
				width: 20px;
				height: 20px;
				fill: none;
				stroke: #666;
				stroke-width: 2;
				stroke-linecap: round;
				stroke-linejoin: round;
			}

			.btn-primary:hover:not(:disabled) {
				background: #b23026;
			}

			.btn-primary:disabled {
				background: #7d7b66;
				cursor: not-allowed;
				opacity: 0.6;
			}

			.btn-secondary {
				background: #b23026;
				color: white;
			}

			.btn-secondary:hover {
				background: #545b62;
			}

			.modal {
				display: none;
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background: rgba(0, 0, 0, 0.5);
				z-index: 1000;
				opacity: 0;
				transition: opacity 0.3s ease;
			}

			.modal.show {
				opacity: 1;
			}

			.modal-content {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%) scale(0.7);
				background: white;
				padding: 30px;
				border-radius: 15px;
				max-width: 400px;
				width: 90%;
				transition: transform 0.3s ease;
			}

			.modal.show .modal-content {
				transform: translate(-50%, -50%) scale(1);
			}

			.modal-buttons {
				display: flex;
				gap: 10px;
				margin-top: 20px;
			}

			.modal-buttons .btn {
				flex: 1;
				margin: 0;
			}

			.input-group {
				margin-bottom: 15px;
				position: relative;
			}

			.input-group label {
				display: block;
				margin-bottom: 5px;
				color: #333;
			}

			.input-group input {
				width: 100%;
				padding: 10px;
				border: 1px solid #ddd;
				border-radius: 5px;
				font-size: 16px;
				transition: border-color 0.3s;
			}

			.input-group input:focus {
				border-color: #ff5a28;
				outline: none;
			}

			.input-group input.error {
				border-color: #dc3545;
			}

			.error-text {
				color: #dc3545;
				font-size: 12px;
				margin-top: 5px;
				display: none;
			}

			.error-text.show {
				display: block;
			}

			.slider-container {
				margin: 20px 0;
				background: #f0f0f0;
				border-radius: 25px;
				height: 50px;
				position: relative;
				overflow: hidden;
			}

			.slider-track {
				position: absolute;
				top: 0;
				left: 0;
				height: 100%;
				background: #28a745;
				width: 0;
				transition: width 0.3s;
			}

			.slider-thumb {
				position: absolute;
				top: 5px;
				left: 5px;
				width: 40px;
				height: 40px;
				background: white;
				border-radius: 50%;
				cursor: pointer;
				box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
				z-index: 2;
			}

			.slider-text {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				color: #666;
				z-index: 1;
				user-select: none;
			}

			.loading {
				display: none;
				text-align: center;
				margin: 10px 0;
			}

			.loading-spinner {
				border: 3px solid #f3f3f3;
				border-top: 3px solid #ff5a28;
				border-radius: 50%;
				width: 20px;
				height: 20px;
				animation: spin 1s linear infinite;
				margin: 0 auto;
			}

			@keyframes spin {
				0% {
					transform: rotate(0deg);
				}

				100% {
					transform: rotate(360deg);
				}
			}

			.warning-text {
				color: #dc3545;
				font-size: 14px;
				margin: 10px 0;
				text-align: center;
			}

			.info-text {
				color: #666;
				font-size: 14px;
				margin: 10px 0;
				text-align: center;
			}

			/* 抖动动画 */
			@keyframes shake {

				0%,
				100% {
					transform: translateX(0);
				}

				10%,
				30%,
				50%,
				70%,
				90% {
					transform: translateX(-5px);
				}

				20%,
				40%,
				60%,
				80% {
					transform: translateX(5px);
				}
			}

			.shake {
				animation: shake 0.5s;
			}
			
			
			
			.points-info {
			    border: 1px solid #b23026;
			    border-radius: 10px;
			    padding: 15px;
			}
			.points-display {
			    font-size: 16px;
			    font-weight: bold;
			    color: #ff5a28;
			}
			.points-btn {
				margin-left: 20px;
			    padding: 8px 16px;
			    border: none;
			    cursor: pointer;
			    font-size: 14px;
			}
			.btn-test-add {
			    background: #ff5a28;
			    color: white;
			}
			
			.btn-test-minus {
			    background: #dc3545;
			    color: white;
			}
			
			/* 支付弹窗样式 */
			.payment-modal {
			    display: none;
			    position: fixed;
			    top: 0;
			    left: 0;
			    width: 100%;
			    height: 100%;
			    background: rgba(0, 0, 0, 0.8);
			    z-index: 2000;
			    align-items: center;
			    justify-content: center;
			}
			
			.payment-content {
			    background: white;
			    padding: 30px;
			    border-radius: 15px;
			    max-width: 400px;
			    width: 90%;
			    text-align: center;
			    position: relative;
			}
			
			.payment-close {
			    position: absolute;
			    top: 15px;
			    right: 15px;
			    background: none;
			    border: none;
			    font-size: 24px;
			    cursor: pointer;
			    color: #666;
			}
			
			.payment-plans {
			    display: flex;
			    flex-direction: column;
			    gap: 10px;
			    margin: 20px 0;
			}
			
			.payment-plan {
			    padding: 15px;
			    border: 2px solid #7d7b66;
			    border-radius: 10px;
			    cursor: pointer;
			    transition: all 0.3s;
			}
			
			.payment-plan:hover {
			    border-color: #ff5a28;
			    background: #f8f9fa;
			}
			
			.payment-plan.selected {
			    border-color: #28a745;
			    background: #fff79e;
			}
			
			.plan-price {
			    font-size: 18px;
			    font-weight: bold;
			    color: #e67e22;
			}
			
			.plan-points {
			    color: #666;
			    margin-top: 5px;
			}
			
			.qrcode-container {
			    margin: 20px 0;
			}
			
			#paymentQrcode {
			    width: 200px;
			    height: 200px;
			    border: 1px solid #ddd;
			    border-radius: 10px;
			}
			
			.payment-status {
			    margin: 15px 0;
			    padding: 10px;
			    border-radius: 5px;
			}
			
			.status-pending {
			    background: #fff79e;
			    color: #856404;
			}
			
			.status-success {
			    background: #fff79e;
			    color: #155724;
			}
			
			.status-error {
			    background: #fff79e;
			    color: #721c24;
			}
			
			.countdown {
			    color: #666;
			    margin: 10px 0;
			}
			
			/* 订单管理样式 */
			.tabs {
			    display: flex;
			    border-bottom: 1px solid #ddd;
			    margin-bottom: 20px;
			}
			
			.tab-btn {
			    flex: 1;
			    padding: 10px;
			    background: none;
			    border: none;
			    border-bottom: 2px solid transparent;
			    cursor: pointer;
			    position: relative;
			}
			
			.tab-btn.active {
			    border-bottom-color: #ff5a28;
			    color: #ff5a28;
			}
			
			.badge {
			    position: absolute;
			    top: 5px;
			    right: 10px;
			    background: #dc3545;
			    color: white;
			    border-radius: 50%;
			    width: 18px;
			    height: 18px;
			    font-size: 12px;
			    display: flex;
			    align-items: center;
			    justify-content: center;
			}
			
			.tab-content {
			    min-height: 300px;
			}
			
			.tab-pane {
			    display: none;
			}
			
			.tab-pane.active {
			    display: block;
			}
			
			.orders-list {
			    max-height: 400px;
			    overflow-y: auto;
			}
			
			.order-item {
			    border: 1px solid #7d7b66;
			    border-radius: 8px;
			    padding: 15px;
			    margin-bottom: 10px;
			    background: #f8f9fa;
			}
			
			.order-header {
			    display: flex;
			    justify-content: between;
			    align-items: center;
			    margin-bottom: 10px;
			}
			
			.order-title {
			    font-weight: bold;
			    color: #333;
			}
			
			.order-status {
			    padding: 4px 8px;
			    border-radius: 4px;
			    font-size: 12px;
			}
			
			.status-pending {
			    background: #fff79e;
			    color: #856404;
			}
			
			.status-paid {
			    background: #fff79e;
			    color: #155724;
			}
			
			.order-detail {
			    font-size: 14px;
			    color: #666;
			}
			
			.order-detail div {
			    margin: 2px 0;
			}
			
			.order-actions {
			    margin-top: 10px;
			    display: flex;
			    gap: 10px;
			}
			
			.empty-orders {
			    text-align: center;
			    color: #666;
			    padding: 40px 0;
			    font-size: 16px;
			}
			
			/* 小红点样式 */
			.badge-dot {
			    position: absolute;
			    top: 8px;
			    right: 8px;
			    width: 8px;
			    height: 8px;
			    background: #dc3545;
			    border-radius: 50%;
			}
			
			
			
			/* VIP相关样式 */
			.vip-section {
			    background: #fff3e0;
			    border: 1px solid #ffb74d;
			    border-radius: 10px;
			    padding: 15px;
			    margin-bottom: 20px;
			}
			
			.vip-info {
			    margin-bottom: 5px;
			}
			
			.vip-status {
			    font-size: 14px;
			    font-weight: bold;
			}
			
			
			/* VIP支付弹窗样式 */
			.vip-payment-content {
			    max-width: 95%;
			    width: 900px;
			    max-height: 90vh;
			    overflow-y: auto;
			}
			
			.vip-selection-section {
			    padding: 10px 0;
			}
			
			.vip-plans-grid {
			    display: grid;
			    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
			    gap: 15px;
			    margin: 20px 0;
			}
			
			.vip-plan-card {
			    border: 2px solid #7d7b66;
			    border-radius: 12px;
			    padding: 20px;
			    cursor: pointer;
			    transition: all 0.3s ease;
			    text-align: center;
			    background: white;
			    position: relative;
			    overflow: hidden;
			}
			
			.vip-plan-card:hover {
			    border-color: #ffb74d;
			    transform: translateY(-2px);
			    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
			}
			
			.vip-plan-card.selected {
			    border-color: #ff6b35;
			    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
			    transform: translateY(-2px);
			    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.2);
			}
			
			.vip-plan-card.selected::before {
			    content: "✓ 已选择";
			    position: absolute;
			    top: 10px;
			    right: 10px;
			    background: #ff6b35;
			    color: white;
			    padding: 4px 8px;
			    border-radius: 12px;
			    font-size: 12px;
			    font-weight: bold;
			}
			
			.plan-name {
			    font-size: 18px;
			    font-weight: bold;
			    color: #333;
			    margin-bottom: 8px;
			}
			
			.plan-price {
			    font-size: 28px;
			    font-weight: bold;
			    color: #e67e22;
			    margin-bottom: 8px;
			}
			
			.plan-price .unit {
			    font-size: 16px;
			    color: #666;
			}
			
			.plan-duration {
			    color: #666;
			    font-size: 14px;
			    margin-bottom: 10px;
			}
			
			.plan-recommend {
			    background: #ff6b35;
			    color: white;
			    padding: 4px 8px;
			    border-radius: 8px;
			    font-size: 12px;
			    display: inline-block;
			    margin-top: 5px;
			}
			
			/* VIP权益区域样式 */
			.vip-benefits-section {
			    margin: 30px 0;
			    border-top: 1px solid #eee;
			    padding-top: 20px;
			}
			
			.vip-benefits-section h4 {
			    text-align: center;
			    margin-bottom: 15px;
			    color: #333;
			    font-size: 18px;
			}
			
			.benefits-table-container {
			    max-height: 300px;
			    overflow-y: auto;
			    border: 1px solid #7d7b66;
			    border-radius: 8px;
			    background: white;
			}
			
			/* VIP权益表格样式 */
			.vip-benefits-table {
			    width: 100%;
			    border-collapse: collapse;
			    font-size: 14px;
			    min-width: 600px;
			}
			
			.vip-benefits-table th,
			.vip-benefits-table td {
			    border: 1px solid #7d7b66;
			    padding: 12px 8px;
			    text-align: center;
			    word-break: break-word;
			}
			
			.vip-benefits-table th {
			    background: linear-gradient(135deg, #f8f9fa, #7d7b66);
			    font-weight: bold;
			    color: #333;
			    position: sticky;
			    top: 0;
			    z-index: 10;
			}
			
			.vip-benefits-table tr:nth-child(even) {
			    background: #fafafa;
			}
			
			.vip-benefits-table tr:hover {
			    background: #f0f7ff;
			}
			
			.vip-benefits-table .vip-highlight {
			    background: #fff79e !important;
			    font-weight: bold;
			}
			
			.vip-benefits-table .free-col {
			    color: #666;
			    background: #f8f9fa;
			}
			
			.vip-benefits-table .points-col {
			    color: #e67e22;
			    background: #fffaf0;
			}
			
			.vip-benefits-table .vip-col {
			    color: #ff6b35;
			    background: #fff0e6;
			    font-weight: bold;
			}
			
			/* VIP支付操作区域 */
			.vip-payment-actions {
			    text-align: center;
			    margin-top: 25px;
			    padding-top: 20px;
			    border-top: 1px solid #eee;
			}
			
			.vip-payment-process,
			.vip-payment-result {
			    text-align: center;
			    padding: 20px 0;
			}
			
			/* 响应式设计 */
			@media (max-width: 768px) {
			    .vip-payment-content {
			        width: 95%;
			        max-width: 95%;
			        margin: 10px;
			    }
			    
			    .vip-plans-grid {
			        grid-template-columns: 1fr;
			        gap: 10px;
			    }
			    
			    .vip-plan-card {
			        padding: 15px;
			    }
			    
			    .benefits-table-container {
			        max-height: 250px;
			    }
			    
			    .vip-benefits-table {
			        font-size: 12px;
			        min-width: 500px;
			    }
			    
			    .vip-benefits-table th,
			    .vip-benefits-table td {
			        padding: 8px 4px;
			    }
			}
			
			@media (max-width: 480px) {
			    .vip-benefits-table {
			        font-size: 11px;
			        min-width: 400px;
			    }
			    
			    .vip-benefits-table th,
			    .vip-benefits-table td {
			        padding: 6px 3px;
			    }
			    
			    .plan-name {
			        font-size: 16px;
			    }
			    
			    .plan-price {
			        font-size: 24px;
			    }
			}
			
			
			
			/* 支付状态样式 */
			.payment-status {
			    margin: 15px 0;
			    padding: 12px;
			    border-radius: 8px;
			    text-align: center;
			    font-weight: 500;
			}
			
			.status-pending {
			    background: #fff79e;
			    color: #856404;
			    border: 1px solid #ffeaa7;
			}
			
			.status-success {
			    background: #fff79e;
			    color: #155724;
			    border: 1px solid #c3e6cb;
			}
			
			.status-error {
			    background: #fff79e;
			    color: #721c24;
			    border: 1px solid #f5c6cb;
			}
			
			.countdown {
			    color: #666;
			    margin: 10px 0;
			    font-size: 14px;
			}
			
			
			
			/* 模态框基础样式 */
			.payment-modal {
			    display: none;
			    position: fixed;
			    top: 0;
			    left: 0;
			    width: 100%;
			    height: 100%;
			    background: rgba(0, 0, 0, 0.8);
			    z-index: 2000;
			    align-items: center;
			    justify-content: center;
			    padding: 20px;
			    box-sizing: border-box;
			}
			
			.payment-content {
			    background: white;
			    padding: 30px;
			    border-radius: 15px;
			    max-width: 500px;
			    width: 90%;
			    text-align: center;
			    position: relative;
			    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
			    animation: modalAppear 0.3s ease;
			}
			
			@keyframes modalAppear {
			    from {
			        opacity: 0;
			        transform: translateY(-20px) scale(0.9);
			    }
			    to {
			        opacity: 1;
			        transform: translateY(0) scale(1);
			    }
			}
			
			.payment-close {
			    position: absolute;
			    top: 15px;
			    right: 15px;
			    background: none;
			    border: none;
			    font-size: 24px;
			    cursor: pointer;
			    color: #666;
			    width: 30px;
			    height: 30px;
			    border-radius: 50%;
			    display: flex;
			    align-items: center;
			    justify-content: center;
			    transition: all 0.3s ease;
			}
			
			.payment-close:hover {
			    background: #f5f5f5;
			    color: #333;
			}
			
			/* 滚动条样式 */
			.benefits-table-container::-webkit-scrollbar {
			    width: 6px;
			    height: 6px;
			}
			
			.benefits-table-container::-webkit-scrollbar-track {
			    background: #f1f1f1;
			    border-radius: 3px;
			}
			
			.benefits-table-container::-webkit-scrollbar-thumb {
			    background: #c1c1c1;
			    border-radius: 3px;
			}
			
			.benefits-table-container::-webkit-scrollbar-thumb:hover {
			    background: #a8a8a8;
			}
			
			/* 订单类型区分样式 */
			.points-order {
			    border-left: 4px solid #28a745;
			}
			
			.vip-order {
			    border-left: 4px solid #ff6b35;
			}
			
			.order-item {
			    border: 1px solid #7d7b66;
			    border-radius: 8px;
			    padding: 15px;
			    margin-bottom: 10px;
			    background: #f8f9fa;
			    transition: all 0.3s ease;
			}
			
			.order-item:hover {
			    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
			    transform: translateY(-1px);
			}
			
			
			/* 下拉刷新样式 */
			.pull-refresh-indicator {
			    position: fixed;
			    top: -50px;
			    left: 0;
			    width: 100%;
			    height: 50px;
			    text-align: center;
			    line-height: 50px;
			    background: #f8f9fa;
			    z-index: 9999;
			    transition: top 0.3s;
			    border-bottom: 1px solid #dee2e6;
			}
			
			.pull-refresh-indicator.active {
			    top: 0;
			}
			
			.refresh-spinner {
			    display: inline-block;
			    width: 20px;
			    height: 20px;
			    border: 2px solid #f3f3f3;
			    border-top: 2px solid #ff5a28;
			    border-radius: 50%;
			    animation: spin 1s linear infinite;
			    margin-right: 10px;
			}
			/* 底部文字链接样式 - 新增部分 */
			        .bottom-links {
			            display: flex;
			            flex-direction: column;
			            align-items: center;
			            margin-top: 20px;
			            padding-top: 15px;
			            border-top: 1px solid #eee;
			            text-align: center;
			            width: 100%;
			        }
			        
			        .link-row {
			            margin-bottom: 12px;
			            font-size: 15px;
			            color: #555;
			            width: 100%;
			        }
			        
			        .link-row:last-child {
			            margin-bottom: 0;
			        }
			        
			        .text-link {
			            color: #ff5a28;
			            text-decoration: none;
			            font-weight: 500;
			            cursor: pointer;
			            padding: 2px 4px;
			            border-radius: 4px;
			            transition: all 0.2s ease;
			            display: inline-block;
			        }
			        
			        .text-link:hover {
			            color: #b23026;
			            background-color: rgba(74, 108, 247, 0.08);
			            text-decoration: underline;
			        }
			        
			        .text-link:active {
			            transform: scale(0.98);
			        }
			        
					
					
					
					
					
					
					
					/* 模态框基础样式 */
					.dynamic-modal {
					    position: fixed;
					    top: 0;
					    left: 0;
					    width: 100%;
					    height: 100%;
					    background: rgba(0, 0, 0, 0.5);
					    z-index: 9999;
					    display: none;
					    align-items: center;
					    justify-content: center;
					}
					
					.dynamic-modal-content {
					    background: white;
					    border-radius: 12px;
					    padding: 20px;
					    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
					    animation: modalFadeIn 0.3s ease;
					    max-width: 90%;
					    width: 320px;
					}
					
					@keyframes modalFadeIn {
					    from {
					        opacity: 0;
					        transform: translateY(-20px);
					    }
					    to {
					        opacity: 1;
					        transform: translateY(0);
					    }
					}
					
					.dynamic-modal-buttons {
					    display: flex;
					    gap: 10px;
					    margin-top: 20px;
					}
					
					.dynamic-btn {
					    padding: 10px 20px;
					    border: none;
					    border-radius: 8px;
					    font-size: 16px;
					    cursor: pointer;
					    transition: background 0.3s;
					    flex: 1;
					}
					
					.dynamic-btn-primary {
					    background: #ff5a28;
					    color: white;
					}
					
					.dynamic-btn-primary:hover {
					    background: #b23026;
					}
					
					.dynamic-btn-secondary {
					    background: #f0f0f0;
					    color: #333;
					}
					
					.dynamic-btn-secondary:hover {
					    background: #e0e0e0;
					}
					
					.dynamic-btn-warning {
					    background: #ffc107;
					    color: #333;
					}
					
					.dynamic-btn-warning:hover {
					    background: #e0a800;
					}
					
					/* 禁用状态的开关 */
					.toggle-container.disabled {
					    opacity: 0.5;
					    pointer-events: none;
					}
					
					.toggle-switch input:disabled + .slider {
					    opacity: 0.5;
					    cursor: not-allowed;
					}
					
					.subtitle {
					    opacity: 0.9;
					    font-size: 14px;
					}
					
					.env-info {
					    background: rgba(255, 255, 255, 0.15);
					    border-radius: 10px;
					    padding: 4px 6px;
					    font-size: 13px;
					    display: flex;
					    flex-wrap: wrap;
					}
					
					.env-item {
					    display: flex;
					    align-items: center;
					    gap: 8px;
					}
					
					.env-icon {
					    font-size: 15px;
					}
					
					.warning-banner {
					    background: #fff79e;
					    border-left: 4px solid #ffc107;
					    padding: 15px;
					    border-radius: 8px;
					    margin-bottom: 25px;
					    display: flex;
					    align-items: center;
					    gap: 12px;
					}
					
					.warning-icon {
					    color: #ff9800;
					    font-size: 24px;
					}
					
					.faq-section {
					    background: white;
					    border-radius: 16px;
					    padding: 10px;
					    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
					    margin-bottom: 0px;
					}
					
					.section-title {
					    display: flex;
					    align-items: center;
					    gap: 10px;
					    margin-bottom: 20px;
					    color: #501e1e;
					    font-size: 18px;
					    padding-bottom: 10px;
					    border-bottom: 2px solid #f1f1f1;
					}
					
					.section-icon {
					    color: #b23026;
					}
					
					.faq-item {
					    border: 1px solid #eaeaea;
					    border-radius: 10px;
					    margin-bottom: 15px;
					    overflow: hidden;
					    transition: all 0.3s ease;
					}
					
					.faq-item:hover {
					    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
					}
					
					.faq-question {
					    padding: 12px 5px;
						font-size: 15px;
						padding-left: 12px;
					    background: #f8f9fa;
					    cursor: pointer;
					    display: flex;
					    justify-content: space-between;
					    align-items: center;
					    color: #501e1e;
					    transition: background 0.2s;
					}
					
					.faq-question:hover {
					    background: #f0f2f5;
					}
					
					.faq-toggle {
						padding-right: 5px;
					    color: #b23026;
					    transition: transform 0.3s;
					}
					
					.faq-answer {
					    padding: 0;
					    max-height: 0;
					    overflow: hidden;
					    transition: all 0.4s ease;
					}
					
					.faq-answer.active {
					    padding: 15px;
					    max-height: 2000px;
					}
					
					.answer-content {
					    line-height: 1.7;
						font-size: 14px;
					}
					
					.device-specific {
					    background: #f8f9ff;
					    border-radius: 8px;
					    padding: 15px;
					    margin: 15px 0;
					    border-left: 3px solid #b23026;
					}
					
					.device-title {
					    font-weight: 600;
					    margin-bottom: 8px;
					    color: #501e1e;
					    display: flex;
					    align-items: center;
					    gap: 8px;
					}
					
					.help-image {
					    width: 100%;
					    max-width: 400px;
					    border-radius: 8px;
					    margin: 15px auto;
					    display: block;
					    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
					}
					
					.wechat-link {
					    color: #ff5a28;
					    text-decoration: none;
					    font-weight: 600;
					    cursor: pointer;
					    transition: color 0.2s;
					}
					
					.wechat-link:hover {
					    color: #b23026;
					    text-decoration: underline;
					}
					
					.problem-form {
					    background: white;
					    border-radius: 15px;
					    padding: 25px;
					    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
					    display: none;
					}
					
					.form-group {
					    margin-bottom: 20px;
					}
					
					input, textarea, select {
					    width: 100%;
					    padding: 12px 10px;
					    border: 1px solid #ddd;
					    border-radius: 8px;
					    font-size: 16px;
					    transition: border 0.3s;
					}
					
					input:focus, textarea:focus, select:focus {
					    border-color: #b23026;
					    outline: none;
					    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
					}
					
					textarea {
					    min-height: 120px;
					    resize: vertical;
					}
					
					.env-display {
					    background: #f8f9fa;
					    border-radius: 8px;
					    padding: 10px;
					    margin-bottom: 10px;
					    font-size: 14px;
					}
					
					.env-field {
					    display: flex;
					    margin-top: 5px;
					}
					
					.env-label {
					    width: 120px;
					    font-weight: 600;
					}
					
					.toast {
					    position: fixed;
					    bottom: 30px;
					    left: 50%;
					    transform: translateX(-50%);
					    background: #333;
					    color: white;
					    padding: 12px 24px;
					    border-radius: 8px;
					    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
					    z-index: 1000;
					    opacity: 0;
					    transition: opacity 0.3s;
					}
					
					.toast.show {
					    opacity: 1;
					}
					
					.footer {
					    text-align: center;
					    margin-top: 0px;
					    color: #777;
					    font-size: 14px;
					}
					
					@media (max-width: 768px) {
					    .env-info {
					        flex-direction: column;
					        gap: 2px;
					    }
					    
					    .faq-section, .problem-form {
					        padding: 14px;
					    }
					    
					}
					
					/* 折叠动画 */
					@keyframes slideDown {
					    from {
					        opacity: 0;
					        transform: translateY(-10px);
					    }
					    to {
					        opacity: 1;
					        transform: translateY(0);
					    }
					}
					
					.faq-answer.active .answer-content {
					    animation: slideDown 0.4s ease;
					}
					
					.faq-toggle.rotated {
					    transform: rotate(180deg);
					}
					
					
					
					/* 新增样式 */
					.env-selector {
					    display: flex;
					    flex-wrap: wrap;
					    gap: 10px;
					    background: rgba(255, 255, 255, 0.1);
					    padding: 10px;
					    border-radius: 8px;
					}
					
					.env-select-item {
					    display: flex;
					    align-items: center;
					    gap: 5px;
					}
					
					.env-select-label {
					    font-size: 14px;
					    white-space: nowrap;
					}
					
					.env-select {
					    padding: 5px 10px;
					    border-radius: 5px;
					    border: 1px solid rgba(0, 0, 0, 0.3);
					    color: black;
					    font-size: 14px;
					    min-width: 120px;
					}
					
					.env-note {
					    font-size: 12px;
					    opacity: 0.8;
					    margin-top: 5px;
					    font-style: italic;
					}
					
					.modal.show {
					    display: flex;
					    opacity: 1;
					}
					
					
					.modal-header {
					    display: flex;
					    justify-content: space-between;
					    align-items: center;
					    margin-bottom: 20px;
					    padding-bottom: 15px;
					    border-bottom: 1px solid #eee;
					}
					
					.modal-title {
					    font-size: 20px;
					    color: #501e1e;
					    display: flex;
					    align-items: center;
					    gap: 10px;
					}
					
					.modal-close {
					    background: none;
					    border: none;
					    font-size: 24px;
					    cursor: pointer;
					    color: #777;
					    padding: 0;
					    width: 30px;
					    height: 30px;
					    display: flex;
					    align-items: center;
					    justify-content: center;
					    border-radius: 50%;
					}
					
					.modal-close:hover {
					    background: #f5f5f5;
					    color: #333;
					}
					
					/* 表单样式优化 */
					.env-display {
					    background: #f8f9fa;
					    border-radius: 8px;
					    padding: 15px;
					    margin-bottom: 15px;
					}
					
					.env-field {
					    display: flex;
					    align-items: center;
					    margin-bottom: 12px;
					}
					
					.env-label {
					    width: 100px;
					    font-weight: 600;
					    font-size: 14px;
					}
					
					.env-input {
					    flex: 1;
					    padding: 10px;
					    border: 1px solid #ddd;
					    border-radius: 6px;
					    font-size: 14px;
					    background: white;
					}
					
					.form-group {
					    margin-bottom: 20px;
					}
					
					.form-group label {
					    display: block;
					    margin-bottom: 8px;
					    font-weight: 600;
					    color: #501e1e;
					    font-size: 15px;
					}
					
					textarea {
					    width: 100%;
					    padding: 12px;
					    border: 1px solid #ddd;
					    border-radius: 8px;
					    font-size: 14px;
					    min-height: 120px;
					    resize: vertical;
					}
					
					.modal-buttons {
					    display: flex;
					    gap: 15px;
					    margin-top: 25px;
					}
					
					.modal-btn {
					    flex: 1;
					    padding: 12px;
					    border-radius: 8px;
					    font-size: 16px;
					    font-weight: 600;
					    cursor: pointer;
					    border: none;
					    display: flex;
					    align-items: center;
					    justify-content: center;
					    gap: 8px;
					}
					
					.modal-btn-primary {
					    background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
					    color: white;
					}
					
					.modal-btn-secondary {
					    background: #f8f9fa;
					    color: #333;
					    border: 1px solid #ddd;
					}
					
					/* 反馈按钮样式 */
					#submitProblemBtn {
					    width: 100%;
					    padding: 15px;
					    margin: 20px 0;
					    background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
					    color: white;
					    border: none;
					    border-radius: 10px;
					    font-size: 16px;
					    font-weight: 600;
					    cursor: pointer;
					    display: flex;
					    align-items: center;
					    justify-content: center;
					    gap: 10px;
					}
					
					#submitProblemBtn:hover {
					    transform: translateY(-2px);
					    box-shadow: 0 5px 15px #faee00;
					}
					
					
					@media (max-width: 768px) {
					    .env-selector {
					        flex-direction: column;
					    }
					    
					    .env-select-item {
					        width: 100%;
					    }
					    
					    .env-select {
					        flex: 1;
					    }
					    
					    .modal-content {
					        width: 95%;
					        padding: 20px;
					    }
					    
					    .modal-buttons {
					        flex-direction: column;
					    }
					}
					
					.install-btn-container {
					      position: fixed;
					      bottom: 120px;
					      right: 20px;
					      z-index: 999;
					    }
					    .install-btn-container.hidden {
					      display: none;
					    }
					    .install-btn {
					      background: linear-gradient(135deg, #b23026 0%, #ff5a28 100%);
					      color: white;
					      border: none;
					      padding: 12px 20px;
					      border-radius: 50px;
					      font-size: 1rem;
					      font-weight: 600;
					      cursor: pointer;
					      box-shadow: 0 4px 12px rgba(0,0,0,.15);
					      display: flex;
					      align-items: center;
					      gap: 8px;
					    }
					
					/* 底部广告容器样式 */
					.bottom-ad-container {
					  position: relative;
					  width: 100%;
					  background: transparent;
					  z-index: 997;
					  margin-top: auto;
					}
					
					.bottom-ad {
					  display: block;
					  width: 100%;
					  max-width: 1024px;
					  height: auto;
					  margin: 0 auto;
					  cursor: pointer;
					  transition: opacity 0.2s ease;
					  user-select: none;
					  -webkit-tap-highlight-color: transparent;
					}
					
					.bottom-ad:hover {
					  opacity: 0.9;
					}
					
					.bottom-ad:active {
					  opacity: 0.8;
					}
					
					/* 适配不同设备 */
					@media (max-width: 768px) {
					  .bottom-ad {
					    max-width: 100%;
					  }
					}
					
					/* 确保页面内容区域有足够的底部间距 */
					.container.with-ad-bottom {
					  padding-bottom: 80px !important;
					}
					
					/* 调整导航栏上方间距 */
					.bottom-menu {
					  margin-top: auto;
					}
					
					
					
					:root {
					  --theme-color: #ff2800;
					}
					* { margin: 0; padding: 0; box-sizing: border-box; }
					body {
					  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
					  height: 100vh;
					  display: flex;
					  overflow: hidden;
					  background: #fff;
					}
					
					/* 默认：平板 + 电脑（侧边导航） */
					nav {
					  width: 90px;
					  background: #fff;
					  display: flex;
					  flex-direction: column;
					  align-items: center;
					  padding-top: 30px;
					  box-shadow: 4px 0 15px rgba(0,0,0,0.08);
					  z-index: 10;
					  transition: all 0.3s;
					}
					.logo {
					  margin-bottom: 50px;
					}
					.logo-bg {
					  background: linear-gradient(to bottom, #de3926, #ff7200);
					  color: #fff;
					  font-weight: 900;
					  font-size: 1.3em;
					  padding: 23px 10px;
					  border-radius: 20px;
					}
					.nav-item {
					  position: relative;
					  display: flex;
					  flex-direction: column;
					  align-items: center;
					  text-decoration: none;
					  color: #333;
					  margin: 35px 0;
					  transition: color 0.3s;
					}
					.nav-item .icon {
					  width: 32px;
					  height: 32px;
					  stroke: currentColor;
					  stroke-width: 2;
					  fill: none;
					  transition: stroke 0.3s;
					}
					.nav-item span {
					  font-size: 0.9em;
					  font-weight: 550;
					  margin-top: 8px;
					  transition: all 0.3s;
					}
					/* 侧边高亮：左侧红条 + 文字图标变色加粗 */
					.nav-item.active {
					  color: var(--theme-color);
					  font-weight: 600;
					}
					.nav-item.active .icon {
					  stroke: var(--theme-color);
					}
					.nav-item.active::before {
					  content: '';
					  position: absolute;
					  left: -30px;
					  top: 50%;
					  transform: translateY(-50%);
					  width: 6px;
					  height: 35px;
					  background: var(--theme-color);
					  border-radius: 3px;
					}
					
					main {
					  flex: 1;
					  background: #ffffff;
					  display: flex;
					  flex-direction: column;
					  overflow-y: auto;
					  padding: 10px;
					}
					
					/* Banner 卡片通用样式 */
					.banner-card {
					  margin: 8px;
					  border-radius: 20px;
					  overflow: hidden;
					  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
					  margin-bottom: 20px;
					}
					.banner-card img {
					  width: 100%;
					  display: block;
					}
					
					/* 主 Banner（16:9） */
					.main-banner {
					  aspect-ratio: 16 / 9;
					  object-fit: contain;
					  background: #ff5a28;
					}
					
					/* 星星 SVG */
					.star-svg {
					  position: absolute;
					  width: 8vw;
					  height: 8vw;
					  opacity: 0.8;
					  animation: sparkle 4s infinite ease-in-out;
					}
					.star-svg:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
					.star-svg:nth-child(2) { top: 25%; right: 20%; animation-delay: 1s; }
					.star-svg:nth-child(3) { bottom: 35%; left: 25%; animation-delay: 2s; }
					.star-svg:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 3s; }
					
					@keyframes sparkle {
					  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
					  50% { transform: scale(1.4) rotate(15deg); opacity: 1; }
					}
					
					/* 底部信息卡片 */
					.bottom-info {
					  margin: 8px;
					  background: #fff;
					  padding: 18px 20px;
					  border-radius: 16px;
					  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
					  font-size: 1em;
					  display: flex;
					  align-items: center;
					  justify-content: left;
					  gap: 10px;
					  margin-bottom: 20px;
					}
					.bottom-info a {
					  color: var(--theme-color);
					  text-decoration: none;
					  font-weight: bold;
					}
					.bottom-info .arrow {
					  justify-content: left;
					  margin-left: 10px;
					  font-weight: bold;
					  color: #333;
					}
					.bell-svg {
					  width: 1.4em;
					  height: 1.4em;
					  fill: #ff69b4;
					}
					
					/* 手机端适配（max-width: 767px） */
					@media (max-width: 767px) {
					  body {
					    flex-direction: column;
					  }
					  nav {
					    position: fixed;
					    bottom: 0;
					    left: 0;
					    width: 100%;
					    height: 70px;
					    flex-direction: row;
					    justify-content: space-around;
					    align-items: center;
					    padding: 8px 0;
					    background: #fff;
					  }
					  .logo {
					    display: none;
					  }
					  
					  .nav-item .icon {
					    width: 29px;
					    height: 29px;
					    stroke-width: 2;
					  }
					  
					  .nav-item span {
					    font-size: 0.85em;
					    font-weight: 530;
					    margin-top: 3px;
					  }
					  
					  .nav-item.active::before{
					    display: none;
					  }
					  .nav-item {
					    margin: 0;
					    width: 25%;
					  }
					  .nav-item.active::before {
					    top: 0;
					    left: 50%;
					    transform: translateX(-50%);
					    width: 36px;
					    height: 4px;
					    border-radius: 2px;
					  }
					  main {
						  padding: 0px;
					    padding-bottom: 80px; /* 为底部导航留空间 */
					  }
					  .banner-card {
					    margin: 8px;
					    margin-bottom: 10px;
					  }
					  /* 底部信息卡片 */
					  .bottom-info {
					    margin: 8px;
					    padding: 15px 10px;
					    border-radius: 16px;
					    font-size: 0.9em;
					    gap: 8px;
					    margin-bottom: 10px;
					  }
					}
					
					
					
					        /* 新增样式：仿照图片的红色会员卡 + 白色圆角卡片列表风格 */
					        .member-card {
					            background: linear-gradient(135deg, #ff3333, #cc0000);
					            color: white;
					            border-radius: 24px;
					            margin: 20px;
					            padding: 20px 20px 25px;
					            box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
					            position: relative;
					            text-align: center;
					        }
					        .big-circle {
					            width: 100px;
					            height: 100px;
					            background: #cc0000;
					            color: #ffffff;
					            border-radius: 50%;
					            display: flex;
					            align-items: center;
					            justify-content: center;
					            font-size: 28px;
					            font-weight: bold;
					            margin: 0 auto 24px;
					            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
					            border: 3px solid white; /* 添加白色描边 */
					        }
							
							.user_id {
								margin-top: -10px;
								font-size: 25px;
					            font-weight: bold;
								
							}
					        .points-row {
					            display: flex;
					            justify-content: center;
					            align-items: center;
					            gap: 3px;
					            margin: 10px 0;
					            font-size: 16px;
					        }
					        .points-btn {
					            background: rgba(255, 255, 255, 0.3);
					            color: white;
					            border: 1px solid white;
					            padding: 5px 12px;
					            border-radius: 20px;
					            font-size: 13px;
					        }
					        .vip-button {
					            background: #8f1212;
					            color: #ff3333;
					            border: none;
					            padding: 8px 16px;
					            border-radius: 30px;
					            font-size: 16px;
					            font-weight: bold;
					            cursor: pointer;
					            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
					        }
					        .settings-list {
					            margin: 0 20px 40px;
					        }
					        .setting-item {
					            background: white;
					            border-radius: 18px;
					            padding: 18px 16px;
					            margin-bottom: 16px;
					            display: flex;
					            align-items: center;
					            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
					            cursor: pointer;
					        }
					        .setting-item .icon {
					            width: 28px;
					            height: 28px;
					            margin-right: 16px;
					            flex-shrink: 0;
					        }
					        .setting-item .text {
					            flex: 1;
					            font-size: 17px;
					            color: #333;
					        }
					        .setting-item .right {
					            font-size: 15px;
					            color: #888;
					        }
					        .right.red { color: #ff3333; font-weight: bold; }
					        .right.green { color: #00aa00; font-weight: bold; }
					        /* 开关样式 */
					        .switch {
					            position: relative;
					            display: inline-block;
					            width: 52px;
					            height: 28px;
					        }
					        .switch input {
					            opacity: 0;
					            width: 0;
					            height: 0;
					        }
					        .slider {
					            position: absolute;
					            cursor: pointer;
					            top: 0; left: 0; right: 0; bottom: 0;
					            background-color: #ccc;
					            transition: .4s;
					            border-radius: 34px;
					        }
					        .slider:before {
					            position: absolute;
					            content: "";
					            height: 22px;
					            width: 22px;
					            left: 3px;
					            bottom: 3px;
					            background-color: white;
					            transition: .4s;
					            border-radius: 50%;
					        }
					        input:checked + .slider {
					            background-color: #ff3333;
					        }
					        input:checked + .slider:before {
					            transform: translateX(24px);
					        }
							@media (max-width: 768px) {
							    .member-card {
							        border-radius: 20px;
							        margin: 12px 12px 16px;
							        padding: 16px 14px 20px;
							        box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25);
							    }
							    
							    .big-circle {
							        width: 80px;
							        height: 80px;
							        font-size: 23px;
							        margin: 0 auto 18px;
							        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
							    }
							    
							    .user_id {
							        margin-top: -8px;
							        font-size: 20px;
							    }
							    
							    .points-row {
							        gap: 2px;
							        margin: 8px 0;
							        font-size: 14px;
							    }
							    
							    .points-btn {
							        padding: 4px 10px;
							        font-size: 12px;
							        border-radius: 16px;
							    }
							    
							    .vip-button {
							        padding: 7px 14px;
							        font-size: 14px;
							        border-radius: 24px;
							        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
							    }
							    
							    .settings-list {
							        margin: 0 12px 30px;
							    }
							    
							    .setting-item {
							        border-radius: 16px;
							        padding: 14px 12px;
							        margin-bottom: 12px;
							        min-height: 56px;
							    }
							    
							    .setting-item .icon {
							        width: 24px;
							        height: 24px;
							        margin-right: 14px;
							    }
							    
							    .setting-item .text {
							        font-size: 15px;
							    }
							    
							    .setting-item .right {
							        font-size: 13px;
							        padding-left: 8px;
							    }
							    
							    /* 开关样式适配 */
							    .switch {
							        width: 46px;
							        height: 26px;
							    }
							    
							    .slider:before {
							        height: 20px;
							        width: 20px;
							        left: 3px;
							        bottom: 3px;
							    }
							    
							    input:checked + .slider:before {
							        transform: translateX(20px);
							    }
							    
							    /* 确保设置项内容紧凑且完整显示 */
							    .setting-item .right {
							        white-space: nowrap;
							        overflow: hidden;
							        text-overflow: ellipsis;
							        max-width: 40%;
							    }
							}
					
							@media (max-width: 768px) {
							    .member-card {
							        border-radius: 20px;
							        margin: 12px 12px 16px;
							        padding: 16px 14px 20px;
							        box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25);
							    }
							    
							    .big-circle {
							        width: 80px;
							        height: 80px;
							        font-size: 24px;
							        margin: 0 auto 18px;
							        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
							    }
							    
							    .user_id {
							        margin-top: -8px;
							        font-size: 20px;
							    }
							    
							    .points-row {
							        gap: 2px;
							        margin: 8px 0;
							        font-size: 14px;
							    }
							    
							    .points-btn {
							        padding: 4px 10px;
							        font-size: 12px;
							        border-radius: 16px;
							    }
							    
							    .vip-button {
							        padding: 7px 14px;
							        font-size: 14px;
							        border-radius: 24px;
							        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
							    }
							    
							    .settings-list {
							        margin: 0 12px 30px;
							    }
							    
							    .setting-item {
							        border-radius: 16px;
							        padding: 14px 12px;
							        margin-bottom: 12px;
							        min-height: 56px;
							    }
							    
							    .setting-item .icon {
							        width: 24px;
							        height: 24px;
							        margin-right: 14px;
							    }
							    
							    .setting-item .text {
							        font-size: 15px;
							    }
							    
							    .setting-item .right {
							        font-size: 13px;
							        padding-left: 8px;
							    }
							    
							    /* 开关样式适配 */
							    .switch {
							        width: 46px;
							        height: 26px;
							    }
							    
							    .slider:before {
							        height: 20px;
							        width: 20px;
							        left: 3px;
							        bottom: 3px;
							    }
							    
							    input:checked + .slider:before {
							        transform: translateX(20px);
							    }
							    
							    /* 确保设置项内容紧凑且完整显示 */
							    .setting-item .right {
							        white-space: nowrap;
							        overflow: hidden;
							        text-overflow: ellipsis;
							        max-width: 40%;
							    }
							}
					
					/* 兑换码模态框样式 */
					#exchangeResult {
					    margin: 10px 0;
					    min-height: 20px;
					    padding: 8px;
					    border-radius: 5px;
					    font-size: 14px;
					    line-height: 1.4;
					}
					
					/* 兑换码模态框样式 */
					.exchangeModal-modal {
					    display: none;
					    position: fixed;
					    top: 0;
					    left: 0;
					    width: 100%;
					    height: 100%;
					    background: rgba(0, 0, 0, 0.8);
					    z-index: 2000;
					    align-items: center;
					    justify-content: center;
					    padding: 20px;
					    box-sizing: border-box;
					}
					
					/* 加载动画 */
					.exchangeModal-loading {
					    text-align: center;
					    padding: 10px;
					}
					
					.exchangeModal-loading-spinner {
					    border: 3px solid #f3f3f3;
					    border-top: 3px solid #3498db;
					    border-radius: 50%;
					    width: 20px;
					    height: 20px;
					    animation: spin 1s linear infinite;
					    margin: 0 auto 10px;
					}
					
					@keyframes spin {
					    0% { transform: rotate(0deg); }
					    100% { transform: rotate(360deg); }
					}
