/* ===== 基础重置与变量 ===== */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box !important;
}

:root {
	--bg-primary: #0a0a0a;
	--bg-secondary: #141414;
	--bg-tertiary: #1a1a1a;
	--bg-hover: #222222;
	--border: #2a2a2a;
	--text-primary: #ffffff;
	--text-secondary: #888888;
	--text-muted: #555555;
	--accent: #4DFFF8;
	--accent-dim: rgba(77, 255, 248, 0.15);
	--accent-light: #7FF0F9;
	--primary: #6c4dff;
	--primary-hover: #5a3df0;
	--primary-light: rgba(108, 77, 255, 0.1);
	--primary-border: rgba(108, 77, 255, 0.3);
	--sidebar-width: 200px;
	--operation-width: 320px;
	--thumb-width: 72px;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100vh;
	overflow: hidden;
}

/* ===== 侧边栏 ===== */
.sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: var(--sidebar-width);
	height: 100vh;
	background: var(--bg-secondary);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	z-index: 100;
}

.sidebar-logo {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 16px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.logo-text-wrap {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.logo-text {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--accent);
}

.logo-beta {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
}

.logo-slogan {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 1.5px;
	color: var(--text-muted);
	opacity: 0.6;
	text-transform: uppercase;
}

.sidebar-nav {
	padding: 16px 12px 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.sidebar-tools {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	padding: 0 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tools-title {
	font-size: 12px;
	color: var(--text-muted);
	padding: 16px 10px 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-top: 1px solid var(--border);
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s;
	color: var(--text-secondary);
	user-select: none;
}

.nav-item:hover {
	background: var(--bg-hover);
	color: var(--text-primary);
}

.nav-item.active {
	background: var(--accent-dim);
	color: var(--accent);
}

.nav-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	font-size: 24px;
}

.nav-label {
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

.sidebar-footer {
	margin-top: auto;
	padding: 12px;
	padding-top: 0;
	border-top: 1px solid var(--border);
	position: relative;
	flex-shrink: 0;
}

/* 用户卡片悬浮弹出 */
.user-card-popup {
	position: absolute;
	left: 0;
	bottom: 100%;
	width: 320px;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: 12px 12px 0 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	z-index: 9999;
	transition: none !important;
	animation: none !important;
	padding: 20px;
	margin-bottom: -13px;
}

.sidebar-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s;
}

.sidebar-user:hover {
	background: var(--bg-hover);
}

.user-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bg-tertiary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: var(--text-secondary);
	background-size: cover;
	background-position: center;
	border: 2px solid var(--border);
	flex-shrink: 0;
	transition: border-color 0.2s;
}

.sidebar-user:hover .user-avatar {
	border-color: var(--accent);
}

.user-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.user-name {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-status {
	font-size: 12px;
	color: var(--text-muted);
}

.user-arrow {
	color: var(--text-muted);
	font-size: 14px;
}

/* ===== 用户卡片弹窗内容 ===== */
.user-card-content {
	padding: 0;
}

.user-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.user-avatar-lg {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bg-tertiary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 600;
	color: var(--accent);
	background-size: cover;
	background-position: center;
	border: 2px solid var(--accent);
	flex-shrink: 0;
}

.user-meta {
	flex: 1;
	min-width: 0;
}

.user-name-lg {
	font-size: 17px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.user-email {
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 方案信息区 */
.user-plan-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.plan-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.plan-label {
	font-size: 13px;
	color: var(--text-muted);
}

.plan-right {
	display: flex;
	align-items: center;
	gap: 4px;
}

.plan-icon {
	color: #f59e0b;
	font-size: 16px;
}

.plan-name {
	font-size: 16px;
	font-weight: 800;
	color: var(--text-primary);
}

.upgrade-btn {
	background: var(--accent) !important;
	border-color: var(--accent) !important;
	color: #000 !important;
	font-weight: 600 !important;
	height: 28px !important;
	padding: 0 14px !important;
	font-size: 12px !important;
}

.upgrade-btn:hover {
	background: var(--accent-light) !important;
	border-color: var(--accent-light) !important;
}

.user-expire {
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 16px;
}

.user-points-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	margin-bottom: 8px;
}

.points-label {
	font-size: 14px;
	color: var(--text-secondary);
}

.points-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--accent);
	display: flex;
	align-items: center;
	gap: 4px;
}

.user-actions {
	display: flex;
	flex-direction: column;
}

.action-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 8px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	color: var(--text-secondary);
	font-size: 14px;
}

.action-row:hover {
	background: var(--bg-hover);
	color: var(--text-primary);
}

.action-row .el-icon:first-child {
	font-size: 16px;
	color: var(--text-muted);
}

.action-row:hover .el-icon:first-child {
	color: var(--text-primary);
}

.action-row.logout {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	color: #ef4444;
	border-radius: 0;
}

.action-row.logout:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.action-row .arrow {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-muted);
}

/* ===== 主体布局 ===== */
.main-wrapper {
	margin-left: var(--sidebar-width);
	height: 100vh;
	display: flex;
}

/* ===== 操作面板 ===== */
.operation-panel {
	width: var(--operation-width);
	background: var(--bg-secondary);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.panel-header {
	padding: 16px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.panel-header h3 {
	font-size: 16px;
	font-weight: 600;
}

.panel-body {
	flex: 1;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow-y: auto;
}

.panel-footer {
	padding: 12px 16px 16px;
	border-top: 1px solid var(--border);
	flex-shrink: 0;
}

/* ===== 表单区块 ===== */
.form-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-label {
	font-size: 13px;
	color: var(--text-secondary);
	font-weight: 500;
}

.required {
	color: #ef4444;
	margin-left: 2px;
}

/* 可选标签 */
.optional {
	font-size: 11px;
	color: var(--text-muted);
	font-weight: normal;
}

/* 产品类别 */
.category-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.category-item {
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--bg-tertiary);
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid transparent;
}

.category-item:hover {
	background: var(--bg-hover);
}

.category-item.active {
	background: var(--accent-dim);
	color: var(--accent);
	border-color: var(--accent);
}

/* 图片上传 */
.upload-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.upload-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: 8px;
	border: 2px dashed var(--text-muted);
	background: var(--bg-tertiary);
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.upload-item:hover {
	border-color: var(--accent);
}

.upload-item.main {
	border-style: solid;
	border-color: var(--text-muted);
}

.upload-item.main:hover {
	border-color: var(--accent);
}

.upload-item.main.hasImg {
	border-color: var(--accent) !important;
	border-width: 2px;
}

.upload-item.selected {
	border-color: var(--accent);
	border-style: solid;
}

.upload-item:hover {
	border-color: var(--accent);
}

.upload-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.upload-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--text-muted);
	font-size: 10px;
	text-align: center;
	padding: 4px;
}

.upload-placeholder .el-icon {
	font-size: 16px;
	color: var(--text-secondary);
}

.required-tag {
	color: #ef4444;
	font-size: 9px;
}

.upload-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
}

.upload-item:hover .upload-remove {
	opacity: 1;
}

.upload-remove .el-icon {
	font-size: 12px;
	color: white;
}

/* 选择器 */
.selector-box {
	position: relative;
	aspect-ratio: 3/4;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-tertiary);
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.selector-box:hover {
	border-color: var(--accent);
}

.selector-box.selected {
	border-color: var(--accent);
}

.selector-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.selector-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--text-muted);
	font-size: 12px;
}

.selector-placeholder .el-icon {
	font-size: 20px;
	color: var(--text-secondary);
}

.selector-clear {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
}

.selector-clear .el-icon {
	font-size: 12px;
	color: white;
}

/* 并列选择器区域 */
.inline-selectors {
	display: flex;
	gap: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 4px;
}

.selector-inline {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.selector-label {
	font-size: 12px;
	color: var(--text-secondary);
	text-align: center;
}

.selector-thumb {
	position: relative;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-tertiary);
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.selector-inline:hover .selector-thumb {
	border-color: var(--accent);
}

.selector-inline.selected .selector-thumb {
	border-color: var(--accent);
}

/* 模特、场景、构造 - 都是竖版 3:4 长图 */
.model-selector .selector-thumb,
.scene-selector .selector-thumb,
.construct-selector .selector-thumb {
	aspect-ratio: 3/4;
}

/* 构造必选，用实线边框 */
.construct-selector .selector-thumb {
	border-style: solid !important;
}

.selector-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.selector-inline .selector-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--text-muted);
}

.selector-inline .selector-placeholder .el-icon {
	font-size: 20px;
	color: var(--text-secondary);
}

/* 默认虚线边框 */
.selector-inline .selector-thumb {
	border: 2px dashed var(--text-muted);
}

/* 选中后实线边框 */
.selector-inline.selected .selector-thumb {
	border: 2px solid var(--accent);
	border-style: solid;
}

.selector-inline .selector-clear {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
}

.selector-inline:hover .selector-clear {
	opacity: 1;
}

.selector-inline .selector-clear .el-icon {
	font-size: 12px;
	color: white;
}

.construct-count {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background: var(--accent);
	color: white;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 10px;
}

/* 构造选择 */
.construct-box {
	min-height: 60px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-tertiary);
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.construct-box:hover {
	border-color: var(--accent);
}

.construct-placeholder {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-muted);
	font-size: 12px;
}

.construct-placeholder .el-icon {
	font-size: 18px;
	color: var(--text-secondary);
}

.multi-hint {
	color: var(--accent);
	font-size: 11px;
}

.construct-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.construct-tag {
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	border: 1px solid;
}

/* 比例 - 风格统一到产品类别 */
.ratio-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

.ratio-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 8px 6px 10px;
	border-radius: 6px;
	background: var(--bg-tertiary);
	cursor: pointer;
	transition: all 0.2s;
	font-size: 11px;
	color: var(--text-secondary);
	border: 1px solid transparent;
}

.ratio-item:hover {
	background: var(--bg-hover);
}

.ratio-item.active {
	background: var(--accent-dim);
	color: var(--accent);
	border-color: var(--accent);
}

.ratio-preview {
	width: 100%;
	background: #ffffff;
	border-radius: 2px;
	margin-bottom: 8px;
}

.ratio-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.ratio-label {
	font-size: 12px;
}

.ratio-value {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-muted);
}

.ratio-item.active .ratio-value {
	color: var(--accent);
}

/* 分辨率 - 风格统一到产品类别 */
.resolution-tabs {
	display: flex;
	gap: 6px;
}

.resolution-item {
	flex: 1;
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--bg-tertiary);
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid transparent;
	text-align: center;
}

.resolution-item:hover {
	background: var(--bg-hover);
}

.resolution-item.active {
	background: var(--accent-dim);
	color: var(--accent);
	border-color: var(--accent);
}

/* 积分消耗 */
.points-consume {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--bg-tertiary);
	font-size: 13px;
}

.points-consume .points-value {
	color: var(--accent);
	font-size: 16px;
	font-weight: 600;
}

/* 任务进度 */
.task-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--bg-tertiary);
	font-size: 12px;
	color: var(--text-secondary);
}

.task-count {
	margin-left: auto;
	color: var(--accent);
	font-weight: 500;
}

/* 生成按钮 */
.generate-btn {
	width: 100%;
	height: 44px;
	background: var(--accent) !important;
	border: none !important;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
}

.generate-btn:hover:not(:disabled) {
	background: #5a3de8 !important;
}

.generate-btn:disabled {
	background: var(--bg-tertiary) !important;
	color: var(--text-muted) !important;
}

/* ===== 产出区 ===== */
.output-area {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: var(--bg-primary);
	min-width: 0;
}

.output-header {
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.filter-tabs {
	display: flex;
	gap: 4px;
}

.tab {
	padding: 5px 14px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all 0.2s;
}

.tab:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
}

.tab.active {
	color: var(--text-primary);
	background: var(--bg-tertiary);
	font-weight: 500;
}

.header-actions {
	display: flex;
	gap: 8px;
}

.action-btn-light {
	background: var(--bg-tertiary) !important;
	border: 1px solid var(--border) !important;
	color: var(--text-primary) !important;
}

.action-btn-primary {
	background: var(--accent) !important;
	border: none !important;
}

.chat-scroll-area {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	gap: 16px;
}

.empty-state {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	gap: 12px;
}

.empty-state p {
	font-size: 14px;
}

.session-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 900px;
}

.session-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.session-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sender-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bg-tertiary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.sender-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sender-info {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.sender-name {
	font-weight: 600;
}

.sender-model {
	color: var(--text-secondary);
	background: var(--bg-tertiary);
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 11px;
}

.sender-meta {
	color: var(--text-muted);
}

.sender-actions {
	color: var(--text-muted);
	cursor: pointer;
}

.session-prompt {
	font-size: 13px;
	line-height: 1.7;
	padding-left: 42px;
}

.session-images {
	padding-left: 42px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.result-img-card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: var(--bg-secondary);
	width: 240px;
	height: 240px;
}

.result-img-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.img-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	opacity: 0;
	transition: opacity 0.2s;
}

.result-img-card:hover .img-overlay {
	opacity: 1;
}

.img-overlay .el-button {
	background: rgba(255,255,255,0.15);
	border: none;
	color: white;
}

.session-footer-actions {
	padding-left: 42px;
	display: flex;
	gap: 4px;
}

.session-footer-actions .el-button {
	color: var(--text-secondary);
}

.thumb-sidebar {
	width: var(--thumb-width);
	border-left: 1px solid var(--border);
	padding: 12px 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
	flex-shrink: 0;
}

.thumb-item {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-secondary);
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s;
}

.thumb-item:hover {
	border-color: var(--accent);
}

.thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== 弹窗 ===== */
.model-grid, .scene-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.model-item, .scene-item {
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s;
}

.model-item:hover, .scene-item:hover {
	border-color: var(--accent);
}

.model-item.selected, .scene-item.selected {
	border-color: var(--accent);
}

.model-item img, .scene-item img {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
}

.model-name, .scene-name {
	padding: 8px;
	font-size: 12px;
	text-align: center;
	background: var(--bg-tertiary);
}

/* 统一弹窗布局 */
.filter-bar {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	padding-bottom: 16px !important;
	border-bottom: 1px solid var(--border) !important;
	width: 100% !important;
	box-sizing: border-box !important;
	flex-shrink: 0;
}

.filter-tag {
	padding: 6px 16px;
	border-radius: 22px;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid transparent;
}

.filter-tag:hover {
	background: var(--bg-hover);
	color: var(--text-primary);
}

.filter-tag.active {
	background: var(--accent-dim);
	color: var(--accent);
	border-color: var(--accent);
}

.unified-dialog {
	display: flex !important;
	gap: 24px !important;
	height: 100% !important;
	width: 100% !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

/* 左侧容器：包含 filter-bar 和 unified-list */
.unified-left {
	display: flex !important;
	flex-direction: column !important;
	width: auto;
	flex-shrink: 0;
	height: 100% !important;
	overflow: hidden !important;
}

/* 左侧待选列表 - 一行5个 */
.unified-list {
	flex: 1 !important;
	min-height: 0 !important;
	width: 800px !important;
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 8px !important;
	gap: 12px !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	align-content: start !important;
	padding: 12px !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}



.unified-item {
	position: relative !important;
	aspect-ratio: 3/4 !important;
	border-radius: 3px !important;
	cursor: pointer;
	background: var(--bg-tertiary);
	border: 2px solid transparent !important;
	transition: all 0.2s;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.unified-item:hover {
	border-color: var(--border) !important;
	transform: translateY(-2px);
}

.unified-item.selected {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 2px var(--accent-dim);
}

.unified-item img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	box-sizing: border-box !important;
}

.unified-item .item-name {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 6px 8px;
	background: linear-gradient(transparent, rgba(0,0,0,0.85));
	color: #fff;
	font-size: 11px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.unified-item .check-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	background: var(--accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
	font-size: 13px;
}

/* 右侧大预览区 - 自适应，保持3:4比例 */
.unified-preview {
    min-width: 100px !important;
    max-width: 1000px !important;
    position: relative;
    display: grid;
    align-items: stretch;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    align-content: stretch;
    justify-content: space-around;
    justify-items: stretch;
}

.preview-image {
position: relative;
    aspect-ratio: 3 / 4 !important;
    max-height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.preview-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.preview-image.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--text-muted);
}

.preview-image.empty span {
	font-size: 14px;
}

.unified-preview .preview-name {
    display: inline-block;
    text-align: center;
    position: sticky;
    width: 100%;
    bottom: 20px;
    font-size: 20px;
    height: 32px;
    line-height: 32px;
    font-weight: 600;
    background: #00000088;
    color: var(--text-primary);
}

.unified-preview .preview-actions {
	margin-top: 28px;
	display: flex;
	gap: 12px;
	width: 100%;
	flex-shrink: 0;
}

.unified-preview .preview-actions .el-button {
	flex: 1;
	height: 44px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px;
	transition: all 0.25s ease;
}

/* 青色主题按钮 - 呼吸效果增强 */
.unified-preview .preview-actions .btn-confirm {
	background: var(--accent) !important;
	border-color: var(--accent) !important;
	color: #000 !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 16px rgba(77, 255, 248, 0.4), 0 0 40px rgba(77, 255, 248, 0.2) !important;
	animation: breathe 2s ease-in-out infinite !important;
}

@keyframes breathe {
	0%, 100% {
		box-shadow: 0 4px 16px rgba(77, 255, 248, 0.4), 0 0 40px rgba(77, 255, 248, 0.15);
	}
	50% {
		box-shadow: 0 6px 24px rgba(77, 255, 248, 0.6), 0 0 60px rgba(77, 255, 248, 0.35);
	}
}

.unified-preview .preview-actions .btn-confirm:hover:not(:disabled) {
	background: var(--accent-light) !important;
	border-color: var(--accent-light) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(77, 255, 248, 0.5), 0 0 80px rgba(77, 255, 248, 0.3) !important;
	animation: breathe-strong 1.5s ease-in-out infinite !important;
}

@keyframes breathe-strong {
	0%, 100% {
		box-shadow: 0 6px 20px rgba(77, 255, 248, 0.5), 0 0 50px rgba(77, 255, 248, 0.2);
	}
	50% {
		box-shadow: 0 8px 35px rgba(77, 255, 248, 0.7), 0 0 100px rgba(77, 255, 248, 0.4);
	}
}

.unified-preview .preview-actions .btn-confirm:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 4px 16px rgba(77, 255, 248, 0.4) !important;
	animation: none !important;
}

.unified-preview .preview-actions .btn-confirm:disabled {
	background: rgba(77, 255, 248, 0.15) !important;
	border-color: rgba(77, 255, 248, 0.25) !important;
	color: rgba(0, 0, 0, 0.4) !important;
	box-shadow: none !important;
	animation: none !important;
}

.unified-preview .preview-actions .btn-cancel {
	background: var(--accent-dim) !important;
	border-color: rgba(77, 255, 248, 0.3) !important;
	color: var(--accent) !important;
}

.unified-preview .preview-actions .btn-cancel:hover {
	background: rgba(77, 255, 248, 0.2) !important;
	border-color: var(--accent) !important;
	transform: translateY(-2px);
}

.unified-preview .preview-actions .btn-cancel:active {
	transform: translateY(0);
}

/* 隐藏旧的预览相关样式 */
.dialog-with-preview,
.preview-panel {
	display: none;
}

/* 构造弹窗 */
.construct-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.construct-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 10px;
	background: var(--bg-tertiary);
	cursor: pointer;
	transition: all 0.2s;
	border: 2px solid transparent;
}

.construct-option:hover {
	background: var(--bg-hover);
	border-color: var(--border);
}

.construct-option.selected {
	background: var(--accent-dim);
	border-color: var(--accent);
}

.construct-preview {
	width: 56px;
	height: 40px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--border);
	flex-shrink: 0;
}

.construct-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.construct-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.construct-name {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-primary);
}

.construct-layers {
	font-size: 10px;
	color: var(--text-muted);
}

.construct-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.selected-count {
	font-size: 13px;
	color: var(--text-secondary);
}

.footer-btns {
	display: flex;
	gap: 8px;
}

.check-icon {
	margin-left: auto;
	color: var(--accent);
}

/* 滚动条 */
::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-muted);
}

/* Element Plus */
.el-input__wrapper {
	background: var(--bg-tertiary) !important;
	box-shadow: none !important;
	border: 1px solid var(--border) !important;
}

.el-input__inner {
	color: var(--text-primary) !important;
}

.el-input__inner::placeholder {
	color: var(--text-muted) !important;
}

/* ===== Dialog 主容器 ===== */
.el-dialog {
	background: var(--bg-secondary) !important;
	border: 1px solid var(--border) !important;
	
	width: auto;
	/*
	max-width: 1500px !important;
	min-width: 800px !important;
	*/
	height: 80vh !important;
	max-height: 80vh !important;
	position: relative !important;
	margin: auto !important;
	padding: 0 !important;
	overflow: hidden !important;
	box-shadow: none !important;
	border-radius: 16px !important;
}

.el-dialog__header {
	border-bottom: 1px solid var(--border);
	padding: 16px 24px;
	flex-shrink: 0;
	height: 56px;
	box-sizing: border-box;
}

.el-dialog__title {
	color: var(--text-primary);
	font-weight: 600;
	font-size: 16px;
}

.el-dialog__body {
	padding: 20px 24px 24px !important;
	height: calc(100% - 56px) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

.el-dialog__footer {
	border-top: 1px solid var(--border);
	padding: 16px 24px;
}

.el-overlay {
	position: fixed !important;
	overflow: auto !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
}

.el-overlay-dialog {
	position: fixed !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.el-dialog__wrapper {
	position: static !important;
	width: 100% !important;
	height: 80vh !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* ===== Dialog 内容区 - 统一布局 ===== */
.el-dialog__body {
	display: flex !important;
	flex-direction: column !important;
}

.el-dialog__body > .unified-dialog {
	flex: 1 !important;
	width: 100% !important;
	min-height: 0 !important;
}

/* 筛选栏 */
.unified-left .filter-bar {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	padding-bottom: 16px !important;
	border-bottom: 1px solid var(--border) !important;
	width: 100% !important;
	box-sizing: border-box !important;
	flex-shrink: 0;
}

/* ===== 全局按钮样式 ===== */
.el-button--primary {
	background: var(--accent) !important;
	border-color: var(--accent) !important;
	color: #000 !important;
	font-weight: 600 !important;
	box-shadow: 0 4px 12px rgba(77, 255, 248, 0.4), 0 0 40px rgba(77, 255, 248, 0.15) !important;
	transition: all 0.25s ease;
	animation: breathe 2s ease-in-out infinite !important;
}

.el-button--primary:hover:not(:disabled) {
	background: var(--accent-light) !important;
	border-color: var(--accent-light) !important;
	box-shadow: 0 6px 20px rgba(77, 255, 248, 0.5), 0 0 60px rgba(77, 255, 248, 0.3) !important;
	transform: translateY(-1px);
	animation: breathe-strong 1.5s ease-in-out infinite !important;
}

.el-button--primary:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(77, 255, 248, 0.4) !important;
	animation: none !important;
}

.el-button--default {
	background: var(--accent-dim) !important;
	border-color: rgba(77, 255, 248, 0.3) !important;
	color: var(--accent) !important;
	transition: all 0.25s ease;
}

.el-button--default:hover:not(:disabled) {
	background: rgba(77, 255, 248, 0.2) !important;
	border-color: var(--accent) !important;
	color: var(--accent) !important;
	transform: translateY(-1px);
}

.el-button--default:active:not(:disabled) {
	transform: translateY(0);
}
