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

:root {
	--primary: #00ff9f;
	--secondary: #ff00ff;
	--accent: #00a835;
	--bg: #0a0a0a;
	--panel-bg: rgba(0, 255, 159, 0.05);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: var(--bg);
	color: var(--primary);
	min-height: 100vh;
	overflow-x: hidden;
}

[v-cloak] {
	display: none;
}

.app-container {
	display: flex;
	min-height: 100vh;
	padding: 20px;
	gap: 20px;
}

/* 左侧样式列表 */
.side-left {
	width: 200px;
	flex-shrink: 0;
}

.side-left h1 {
	font-size: 24px;
	margin-bottom: 15px;
	color: var(--secondary);
	text-shadow: 0 0 20px var(--secondary);
	letter-spacing: 8px;
	text-align: center;
}

/* 模式切换 */
.mode-switch {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
}

.mode-switch button {
	flex: 1;
	padding: 10px;
	background: transparent;
	border: 2px solid var(--primary);
	color: var(--primary);
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: bold;
	transition: all 0.2s ease;
}

.mode-switch button:hover {
	background: rgba(0, 255, 159, 0.1);
}

.mode-switch button.active {
	background: var(--primary);
	color: var(--bg);
}

.style-list {
	background: var(--panel-bg);
	border: 1px solid var(--primary);
	border-radius: 8px;
	padding: 12px;
}

.style-section {
	margin-bottom: 15px;
}

.style-section:last-child {
	margin-bottom: 0;
}

.style-section h4 {
	font-size: 11px;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	opacity: 0.7;
}

.style-section a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	margin: 4px 0;
	background: rgba(0, 255, 159, 0.08);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 13px;
}

.style-section a:hover {
	background: rgba(0, 255, 159, 0.15);
	transform: translateX(2px);
}

.style-section a.active {
	background: var(--primary);
	color: var(--bg);
	font-weight: bold;
}

.style-section a .name {
	flex: 1;
}

.style-section a .badge {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--secondary);
	margin-left: 8px;
}

.style-section a .badge.remove {
	background: #ff4444;
	position: relative;
}

.style-section a .badge.remove::before,
.style-section a .badge.remove::after {
	content: '';
	position: absolute;
	width: 6px;
	height: 2px;
	background: white;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
}

.style-section a .badge.remove::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* 中间预览区 */
.main-area {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.output-box {
	flex: 1;
	background: #000;
	border: 2px solid var(--primary);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 0 30px rgba(0, 255, 159, 0.1);
}

.output-box canvas {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.output-box canvas.hidden {
	display: none;
}

.placeholder {
	text-align: center;
	color: var(--accent);
	padding: 40px;
}

.placeholder p {
	margin: 10px 0;
	font-size: 14px;
}

.sample-images {
	height: 100px;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px;
	background: var(--panel-bg);
	border: 1px solid var(--primary);
	border-radius: 8px;
}

.sample-images img {
	height: 80px;
	width: auto;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	opacity: 0.6;
	object-fit: cover;
}

.sample-images img:hover {
	opacity: 1;
	transform: scale(1.05);
	box-shadow: 0 0 15px rgba(0, 255, 159, 0.3);
}

/* 右侧控制面板 */
.side-right {
	width: 300px;
	flex-shrink: 0;
}

.action-btns {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.btn {
	padding: 12px 20px;
	background: var(--primary);
	color: var(--bg);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	transition: all 0.2s ease;
	flex: 1;
}

.btn:hover {
	background: #00cc7f;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 255, 159, 0.3);
}

.btn.wire {
	background: transparent;
	border: 2px solid var(--primary);
	color: var(--primary);
}

.btn.wire:hover {
	background: rgba(0, 255, 159, 0.1);
}

.btn.full {
	width: 100%;
}

.controls {
	background: var(--panel-bg);
	border: 1px solid var(--primary);
	border-radius: 8px;
	padding: 15px;
	max-height: calc(100vh - 180px);
	overflow-y: auto;
}

.control-group {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(0, 255, 159, 0.2);
}

.control-group:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.control-group h3 {
	font-size: 13px;
	color: var(--secondary);
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.control-item {
	margin-bottom: 12px;
}

.control-item:last-child {
	margin-bottom: 0;
}

.control-item label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--primary);
	margin-bottom: 6px;
}

.control-item label span {
	color: var(--accent);
	font-family: monospace;
}

.control-item.checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.control-item input[type="range"] {
	width: 100%;
	height: 6px;
	background: rgba(0, 255, 159, 0.2);
	border-radius: 3px;
	outline: none;
	-webkit-appearance: none;
}

.control-item input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	background: var(--primary);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
}

.control-item input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 0 10px var(--primary);
}

.control-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--primary);
	cursor: pointer;
}

.control-item select {
	width: 100%;
	padding: 8px 12px;
	background: var(--bg);
	border: 1px solid var(--primary);
	border-radius: 4px;
	color: var(--primary);
	font-size: 13px;
	cursor: pointer;
	outline: none;
}

.control-item select:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.control-item select option {
	background: var(--bg);
	color: var(--primary);
}

/* 滚动条 */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: rgba(0, 255, 159, 0.05);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: #00cc7f;
}

/* 响应式 */
@media (max-width: 1024px) {
	.app-container {
		flex-direction: column;
	}
	
	.side-left,
	.side-right {
		width: 100%;
	}
	
	.side-left h1 {
		font-size: 20px;
		letter-spacing: 4px;
	}
	
	.style-list {
		display: flex;
		gap: 15px;
		overflow-x: auto;
	}
	
	.style-section {
		flex-shrink: 0;
		min-width: 150px;
	}
	
	.output-box {
		min-height: 300px;
	}
}

@media (max-width: 600px) {
	.app-container {
		padding: 10px;
		gap: 10px;
	}
	
	.action-btns {
		flex-direction: column;
	}
	
	.btn {
		width: 100%;
	}
}