/* 全局变量 - 简洁版，减少性能消耗 */
:root {
	/* 主色调 */
	--primary-color: #ff6b6b;
	--primary-dark: #ee5a52;
	--primary-light: #ffa5a5;

	/* 辅助色 */
	--secondary-color: #4ecdc4;
	--secondary-dark: #26a69a;
	--accent-color: #45b7d1;
	--accent-dark: #2196f3;

	/* 渐变色彩 - 简化版 */
	--gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
	--gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
	--gradient-button: var(--gradient-primary);

	/* 状态色彩 */
	--success-color: #2ecc71;
	--success-dark: #27ae60;
	--warning-color: #f39c12;
	--warning-dark: #e67e22;
	--danger-color: #e74c3c;
	--danger-dark: #c0392b;

	/* 文本色彩 */
	--text-primary: #2c3e50;
	--text-secondary: #7f8c8d;
	--text-light: #ffffff;
	--text-muted: #95a5a6;

	/* 背景色彩 - 简化为纯色 */
	--background-primary: #f8f9fa;
	--background-card: #ffffff;
	--background-hover: #f0f3ff;
	--background-light: #f8f9fa;

	/* 边框和阴影 - 简化阴影效果 */
	--border-color: #e0e0e0;
	--border-color-hover: var(--primary-color);
	--border-radius: 8px;
	--border-radius-sm: 4px;
	--border-radius-lg: 12px;
	--border-radius-full: 25px;
	--box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--box-shadow-hover: 0 4px 15px rgba(0, 0, 0, 0.12);
	--box-shadow-elevated: 0 6px 20px rgba(0, 0, 0, 0.15);

	/* 过渡效果 - 恢复拖拽所需的transform和box-shadow效果 */
	--transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	--transition-fast: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease, opacity 0.1s ease;
	--transition-slow: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;

	/* 拖拽专用过渡效果 */
	--drag-transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;

	/* 间距 */
	--spacing-xs: 8px;
	--spacing-sm: 12px;
	--spacing-md: 20px;
	--spacing-lg: 30px;
	--spacing-xl: 40px;
	--spacing-xxl: 60px;

	/* 兼容旧变量名 */
	--gray-100: var(--background-light);
	--gray-200: var(--border-color);
	--gray-300: var(--border-color);
	--gray-400: var(--text-muted);
	--gray-500: var(--text-muted);
	--gray-600: var(--text-secondary);
	--gray-700: var(--text-primary);
	--gray-800: var(--text-primary);
	--gray-900: var(--text-primary);
	--white-color: var(--background-card);
	--light-color: var(--background-light);
	--dark-color: var(--text-primary);
	--info-color: var(--accent-color);
	--transition-base: var(--transition);
	--drag-transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* 基础重置样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-primary);
	background: var(--background-primary);
}

/* 统一输入框和文本域样式 - 简化版 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="url"],
input[type="search"],
textarea,
select {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-primary);
	background-color: var(--background-card);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ff6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1.5em 1.5em;
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	transition: var(--transition);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-family: inherit;
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* 移除文本输入框的下拉箭头 */
input[type="text"]:not(.select),
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="url"],
input[type="search"],
textarea {
	background-image: none;
}

/* 文本域特殊样式 */
textarea {
	resize: vertical;
	min-height: 120px;
	background-position: right 0.75rem bottom 0.75rem;
}

/* 下拉选项样式 - 简化 */
select option {
	padding: 8px 10px;
	background-color: var(--background-card);
	color: var(--text-primary);
	font-size: 14px;
	cursor: pointer;
}

select option:checked {
	background-color: var(--primary-color);
	color: var(--text-light);
}

select option:disabled {
	background-color: var(--background-light);
	color: var(--text-muted);
	cursor: not-allowed;
}

/* 输入框和下拉框悬停效果 - 简化 */
input:hover,
textarea:hover,
select:hover {
	border-color: var(--border-color-hover);
}

/* 输入框和下拉框聚焦效果 - 简化 */
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

/* 禁用状态样式 - 简化 */
input:disabled,
textarea:disabled,
select:disabled {
	opacity: 0.6;
	background-color: var(--background-light);
	cursor: not-allowed;
}

/* 只读状态样式 */
input[readonly],
textarea[readonly] {
	background-color: var(--background-hover);
	border-color: var(--border-color);
}

/* 错误状态样式 - 简化 */
input.error,
textarea.error,
select.error {
	border-color: var(--danger-color);
	box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* 成功状态样式 - 简化 */
input.success,
textarea.success,
select.success {
	border-color: var(--success-color);
	box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

/* 增强的自定义下拉框容器样式 */
.custom-select-container {
	position: relative;
	display: inline-block;
	width: 100%;
}

.custom-select-container select {
	width: 100%;
	z-index: 1;
	position: relative;
}

/* 搜索输入框特殊样式 */
input[type="search"] {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ff6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 19l-4-4m0-7A7 7 0 111 8a7 7 0 0114 0z'/%3e%3c/svg%3e");
	background-position: left 0.75rem center;
	padding-left: 2.5rem;
}

/* 响应式输入框和下拉框样式 */
@media (max-width: 768px) {

	input,
	textarea,
	select {
		padding: 10px 15px;
		font-size: 16px;
		border-radius: var(--border-radius-sm);
	}

	select option {
		padding: 12px 15px;
		font-size: 16px;
	}

	.search-filter select,
	.search-filter input {
		width: 100%;
		margin-bottom: 10px;
	}
}

/* 针对Firefox的特殊样式 */
@-moz-document url-prefix() {
	select {
		padding-right: 1.75em !important;
	}

	select option {
		padding: 10px 12px;
	}
}

/* 针对Safari的特殊样式 */
@media not all and (min-resolution:.001dpcm) {
	@supports (-webkit-appearance:none) {
		select {
			padding-right: 1.75em;
		}
	}
}

/* 通用按钮样式 - 简化版 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	user-select: none;
	border: 2px solid transparent;
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	line-height: 1.5;
	border-radius: var(--border-radius);
	transition: var(--transition);
	cursor: pointer;
	background-color: var(--background-card);
	color: var(--text-primary);
	gap: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-family: inherit;
}

.btn:focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.btn-primary {
	color: var(--text-light);
	background: var(--gradient-primary);
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.btn-primary:hover {
	background: var(--gradient-primary);
	border-color: var(--primary-dark);
}

.btn-secondary {
	color: var(--text-light);
	background: var(--gradient-secondary);
	border-color: var(--secondary-color);
	box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.btn-secondary:hover {
	background: var(--gradient-secondary);
	border-color: var(--secondary-dark);
}

/* 危险按钮样式 - 简化 */
.btn-danger {
	color: var(--text-light);
	background: linear-gradient(135deg, var(--danger-color) 0%, #ff6b6b 100%);
	border-color: var(--danger-color);
	box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
	background: linear-gradient(135deg, var(--danger-dark) 0%, var(--danger-color) 100%);
	border-color: var(--danger-dark);
}

/* 成功按钮样式 - 简化 */
.btn-success {
	color: var(--text-light);
	background: linear-gradient(135deg, var(--success-color) 0%, #27ae60 100%);
	border-color: var(--success-color);
	box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.btn-success:hover {
	background: linear-gradient(135deg, var(--success-dark) 0%, var(--success-color) 100%);
	border-color: var(--success-dark);
}

.btn-sm {
	padding: 0.375rem 1rem;
	font-size: 0.75rem;
	border-radius: var(--border-radius-sm);
}

.btn-large {
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: var(--border-radius-full);
}

.btn-dropdown {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	position: relative;
}

.btn-dropdown i:last-child {
	margin-left: 0.25rem;
}

.btn-block {
	display: block;
	width: 100%;
}

.btn-icon {
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid transparent;
	color: var(--text-light);
	padding: 0.5rem;
	border-radius: var(--border-radius-full);
	cursor: pointer;
	transition: var(--transition);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.btn-icon:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* 禁用按钮样式 - 简化 */
.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 按钮组样式 */
.btn-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 1;
	overflow: hidden;
}

.btn-group .btn {
	flex-shrink: 0;
	white-space: nowrap;
}

/* 操作按钮容器 */
.action-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 1;
	overflow: hidden;
}

/* 移除按钮的复杂动画效果 */
.btn>* {
    position: relative;
}

/* 表单控件样式 */
.form-control {
	display: block;
	width: 100%;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-primary);
	background-color: var(--background-card);
	background-clip: padding-box;
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	transition: var(--transition);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	font-family: inherit;
}

.form-control:focus {
	color: var(--text-primary);
	background-color: var(--background-card);
	border-color: var(--primary-color);
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.form-control[readonly] {
	background-color: var(--background-hover);
	border-color: var(--border-color);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.875rem;
}

/* 顶部导航栏 - 简化版 */
.main-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	background: var(--gradient-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	padding: 0 2rem;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 998;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.menu-toggle {
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: white;
	border-radius: var(--border-radius-full);
	padding: 0.75rem;
	font-size: 1.25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	position: relative;
}

.menu-toggle:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

.project-name {
	font-size: 1.5rem;
	font-weight: 900;
	color: white;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.main-nav ul {
	display: flex;
	list-style: none;
	gap: 0.5rem;
}

.main-nav li {
	margin: 0;
	position: relative;
}

.main-nav a {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	color: white;
	text-decoration: none;
	border-radius: var(--border-radius-full);
	gap: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.875rem;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.main-nav a:hover,
.main-nav .active a {
	color: white;
	background: var(--gradient-secondary);
	border-color: rgba(255, 255, 255, 0.5);
}

.main-nav i {
	font-size: 1.1rem;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.user-profile img {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	border: 3px solid white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

#userName {
	color: white;
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#dropdownMenu {
	background: white;
	border: 2px solid var(--border-color);
	box-shadow: var(--box-shadow-hover);
	border-radius: var(--border-radius-lg);
}

#dropdownMenu a {
	color: var(--text-primary);
	transition: var(--transition);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.5px;
}

#dropdownMenu a:hover {
	background: var(--gradient-primary);
	color: white;
	transform: translateX(10px);
}

#authButtons {
	gap: 1rem;
}

#authButtons .btn {
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: white;
}

#authButtons .btn:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

/* 导航遮罩层 */
.nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	z-index: 999;
	display: none;
	transition: var(--transition);
}

.nav-overlay.show {
	display: block;
	opacity: 1;
	visibility: visible;
}

/* 统一模态框样式 - 简化版 */
.modal,
.confirmation-dialog,
.task-detail-dialog,
.delete-confirm-dialog {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: var(--spacing-md);
}

.modal-content {
	background: var(--background-card);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--box-shadow-elevated);
	width: 100%;
	max-width: 500px;
	overflow: hidden;
	border: 2px solid var(--primary-color);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 40px);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--spacing-lg);
	background: var(--gradient-primary);
	color: var(--text-light);
	border-bottom: 2px solid var(--primary-color);
}

.modal-header h4,
.modal h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.modal-close {
	background: none;
	border: 2px solid var(--text-light);
	color: var(--text-light);
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: var(--transition);
	font-family: inherit;
}

.modal-close:hover {
	background: var(--text-light);
	color: var(--primary-color);
	transform: rotate(90deg);
	box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.modal-body {
	padding: var(--spacing-lg);
	max-height: calc(100vh - 200px);
	overflow-y: auto;
	flex: 1;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: var(--spacing-md);
	padding: var(--spacing-lg);
	background: var(--background-light);
	border-top: 2px solid var(--border-color);
	flex-wrap: wrap;
}

.modal-footer .btn {
	flex-shrink: 0;
}

.main-nav a i {
	font-size: 0.875rem;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.user-profile img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

/* 功能区 - 统一样式 - 简化版 */
.function-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	background: var(--background-card);
	border-bottom: 2px solid var(--border-color);
	padding: 0 var(--spacing-md);
	position: fixed;
	top: 70px;
	left: 0;
	right: 0;
	z-index: 999;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	/* 启用横向滚动 */
	-webkit-overflow-scrolling: touch;
	/* 隐藏滚动条 */
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* 隐藏Chrome/Safari滚动条 */
.function-bar::-webkit-scrollbar {
	display: none;
}

.function-left {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	flex-shrink: 0;
	overflow: visible;
}

.function-tab,
.tab {
	padding: 0.5rem 1.25rem;
	cursor: pointer;
	border-radius: var(--border-radius);
	font-weight: 600;
	flex-shrink: 0;
	white-space: nowrap;
	transition: var(--transition);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--background-card);
	color: var(--text-primary);
	border: 2px solid var(--border-color);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: inline-block;
}

.function-tab.active,
.tab.active {
	background: var(--gradient-primary);
	color: var(--text-light);
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.function-tab:hover:not(.active),
.tab:hover:not(.active) {
	background: var(--background-hover);
	border-color: var(--border-color-hover);
}

.function-right {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	flex-shrink: 0;
	overflow: visible;
	/* 移除max-width限制，允许内容自然展开 */
}

.action-buttons,
.btn-group {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	flex-shrink: 0;
	overflow: visible;
	/* 确保按钮组不换行 */
	flex-wrap: nowrap;
}

/* 确保按钮使用统一的样式 */
.function-bar .btn {
	flex-shrink: 0;
	white-space: nowrap;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.875rem;
	padding: 0.5rem 1.25rem;
}

.function-bar .btn-primary {
	background: var(--gradient-primary);
	color: var(--text-light);
	border-color: var(--primary-color);
	box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.function-bar .btn-secondary {
	background: var(--gradient-secondary);
	color: var(--text-light);
	border-color: var(--secondary-color);
	box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.function-bar .btn-danger {
	background: linear-gradient(135deg, var(--danger-color) 0%, #ff6b6b 100%);
	color: var(--text-light);
	border-color: var(--danger-color);
	box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.function-bar .btn-primary:hover {
	background: var(--gradient-primary);
	border-color: var(--primary-dark);
}

.function-bar .btn-secondary:hover {
	background: var(--gradient-secondary);
	border-color: var(--secondary-dark);
}

.function-bar .btn-danger:hover {
	background: linear-gradient(135deg, var(--danger-dark) 0%, var(--danger-color) 100%);
	border-color: var(--danger-dark);
}

/* 浮动提示条 */
.floating-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--gradient-primary);
	box-shadow: var(--box-shadow-hover);
	z-index: 998;
	padding: 0 var(--spacing-md);
	border-top: 2px solid var(--primary-color);
	transition: all 0.3s ease-in-out;
	max-height: 200px;
	overflow: hidden;
	transform: translateY(0);
	/* 确保内容在移动端也能横向滚动 */
	overflow-x: auto;
	overflow-y: hidden;
	/* 隐藏滚动条 */
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* 隐藏Chrome/Safari滚动条 */
.floating-bar::-webkit-scrollbar {
	display: none;
}

/* 优化隐藏状态，确保完全脱离文档流 */
.floating-bar.hidden {
	transform: translateY(100%);
	max-height: 0;
	padding: 0 var(--spacing-md);
	opacity: 0;
	pointer-events: none;
	/* 确保隐藏时不占用空间 */
	height: 0;
	transition: all 0.3s ease-in-out;
}

.floating-bar:hover {
	box-shadow: 0 -8px 25px rgba(255, 107, 107, 0.3);
}

.bar-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--spacing-sm) 0;
	gap: var(--spacing-md);
	/* 确保内容不换行 */
	flex-wrap: nowrap;
	/* 允许内容横向滚动 */
	min-width: max-content;
	width: 100%;
}

.bar-info {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--text-light);
	/* 允许内容自然展开 */
	flex-shrink: 0;
}

.bar-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	/* 限制文本宽度，防止在移动端过长 */
	max-width: 400px;
}

.bar-text strong {
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bar-text span {
	font-size: 0.875rem;
	opacity: 0.9;
	/* 确保文本在移动端也能正常显示 */
	word-break: break-word;
}

.bar-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--text-light);
	/* 允许内容自然展开 */
	flex-shrink: 0;
	justify-content: flex-end;
}

.bar-actions span {
	font-size: 0.875rem;
	font-weight: 600;
}

.close-btn {
	margin-left: var(--spacing-sm);
	background: rgba(255, 255, 255, 0.2);
	color: var(--text-light);
	border: 2px solid rgba(255, 255, 255, 0.3);
	/* 确保关闭按钮始终可见，不被挤压 */
	flex-shrink: 0;
	min-width: 45px;
	min-height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	/* 增大点击区域 */
	cursor: pointer;
	/* 确保按钮在最右侧，不被其他内容遮挡 */
	order: 999;
	/* 关键修改：使用sticky定位，确保始终显示在右侧 */
	position: sticky;
	right: 0;
	/* 增加z-index确保在最上层 */
	z-index: 1000;
	/* 突出显示，确保用户能看到 */
	background-color: rgba(231, 76, 60, 0.9);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 添加滚动指示器，提示用户可以横向滚动 */
.floating-bar::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 60px;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.5) 50%);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	opacity: 0.7;
	pointer-events: none;
}

/* 在移动端显示明显的滚动提示 */
@media (max-width: 768px) {
	.floating-bar::after {
		opacity: 1;
		animation: pulse 1.5s infinite;
	}

	@keyframes pulse {
		0% {
			opacity: 1;
			transform: translateY(-50%) scale(1);
		}

		50% {
			opacity: 0.5;
			transform: translateY(-50%) scale(1.1);
		}

		100% {
			opacity: 1;
			transform: translateY(-50%) scale(1);
		}
	}

	/* 移动端优化：缩小按钮间距，确保更多内容可见 */
	.bar-content {
		gap: var(--spacing-sm);
	}

	/* 移动端优化：减小文本宽度，确保关闭按钮可见 */
	.bar-text {
		max-width: 250px;
	}

	/* 移动端优化：减小按钮尺寸，确保更多内容可见 */
	.floating-bar .btn {
		padding: 0.4rem 0.8rem;
		font-size: 0.75rem;
	}
}

.close-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	color: var(--text-light);
	transform: scale(1.1) rotate(360deg);
	box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
}

.close-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	color: var(--text-light);
	transform: scale(1.1) rotate(360deg);
	box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
}

/* 积分消耗提示 */
.points-notice {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.2);
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
	color: var(--text-light);
	font-size: 0.875rem;
	font-weight: 600;
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: var(--transition);
}

.points-notice:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.3);
}

.points-notice i {
	font-size: 1.1rem;
	color: #ffd93d;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 主要内容区域 */
.main-content,
#pageContent,
.app-container {
	margin-top: 130px;
	/* 适配header(70px) + function-bar(60px)的高度 */
	min-height: calc(100vh - 130px);
	/* 确保至少填满视口剩余高度 */
	overflow: auto;
	/* 允许水平和垂直滚动 */
	background: var(--background-primary);
	overflow-y: auto; /* 垂直方向可滚动 */
    -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
}

/* 修复app-container内的pageContent布局 */
.app-container #pageContent {
	margin-top: 0;
	padding-top: 0;
	min-height: 100%;
}

/* 确保所有主内容元素都紧贴function-bar */
.main-content,
#pageContent {
	margin-top: 130px;
	position: relative;
	z-index: 1;
}

/* 分镜表格容器 */
.storyboard-table-container {
	overflow: auto;
	position: relative;
	transition: all 0.3s ease-in-out;
	/* 关键修复：设置明确的高度，确保overflow和sticky能正常工作 */
	height: calc(100vh - 200px);
	/* 确保在父容器中能正确计算高度 */
	min-height: 500px;
	/* 确保sticky定位不受影响 */
	transform: none !important;
	backface-visibility: visible !important;
	perspective: none !important;
	filter: none !important;
}

/* 分镜表格 */
.storyboard-table {
	width: auto;
	border-collapse: separate;
	border-spacing: 0;
	min-width: 3200px;
	/* 增加最小宽度以适应更多的列 */
	table-layout: fixed;
}

/* 为所有表头单元格设置sticky定位 */
.storyboard-table thead th {
	position: sticky;
	top: 0;
	background-color: var(--background-card);
	/* 增加z-index值，确保垂直方向上显示在最上层，不会被其他元素覆盖 */
	z-index: 100;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	vertical-align: middle;
	border-bottom: 2px solid var(--border-color);
	/* 确保sticky定位不受其他样式影响 */
	transform: none !important;
	backface-visibility: visible !important;
	perspective: none !important;
	filter: none !important;
}

/* 为普通表头列（非固定列）设置较低的z-index，确保水平滚动时不会遮挡固定列 */
.storyboard-table thead th:not(.fixed-col) {
	/* 普通表头列z-index比固定列低，确保水平滚动时固定列显示在前面 */
	z-index: 99;
}

/* 为固定列设置更高的z-index，确保水平滚动时显示在前面 */
.storyboard-table thead th.fixed-col {
	/* 固定列z-index比普通表头列高，确保水平滚动时显示在前面 */
	z-index: 101;
}

/* 确保表格行不会影响表头的sticky定位 */
.storyboard-table tr {
	transform: none !important;
}

/* 确保表格单元格不会影响表头的sticky定位 */
.storyboard-table td {
	transform: none !important;
}

/* 确保场次条不会影响表头的sticky定位 */
.scene-header {
	/* 场次条z-index比表头低，确保表头始终显示在上面 */
	z-index: 50 !important;
}

/* 确保场次条内容不会影响表头的sticky定位 */
.scene-header-content {
	z-index: 50 !important;
}

.storyboard-table thead tr {
	background-color: var(--background-card);
}

/* 表格单元格基础样式 */
.storyboard-table th,
.storyboard-table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--gray-300);
	vertical-align: top;
	border-right: 1px dashed var(--gray-300);
}

.storyboard-table th:last-child,
.storyboard-table td:last-child {
	border-right: none;
}

.storyboard-table th {
	font-weight: 600;
	color: var(--gray-700);
	background-color: var(--gray-100);
	white-space: nowrap;
	text-align: center;
	/* 表头文字水平居中显示 */
}

/* 为指定列添加自动换行样式 */
.storyboard-table td:nth-child(15),
/* 台词列 */
.storyboard-table td:nth-child(16),
/* 剧本列 */
.storyboard-table td:nth-child(24),
/* 各角色推荐服装列 */
.storyboard-table td:nth-child(25),
/* 各角色推荐妆造列 */
.storyboard-table td:nth-child(26) {
	/* 角色动作列 */
	white-space: normal;
	word-wrap: break-word;
	word-break: break-word;
	line-height: 1.4;
}

/* 为新增的所有列添加自动换行和高度限制 */
.storyboard-table tbody td {
	max-height: 151px;
	overflow: hidden;
	position: relative;
}

/* 为具有auto-wrap类的单元格添加样式（用于JavaScript动态生成的元素） */
.auto-wrap {
	white-space: normal;
	word-wrap: break-word;
	word-break: break-word;
	line-height: 1.4;
	max-height: 151px;
	overflow: hidden;
	position: relative;
}

/* 为所有普通文本单元格添加省略号效果 */
.storyboard-table tbody td:not(.image-cell):not(.fixed-col):not(.action-col) {
	max-height: 151px;
	overflow: hidden;
	position: relative;
}

.storyboard-table tbody td:not(.image-cell):not(.fixed-col):not(.action-col)::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
	pointer-events: none;
	display: none;
}

.storyboard-table tbody td:not(.image-cell):not(.fixed-col):not(.action-col).text-clamp::after {
	display: block;
}

/* 除排序、镜号、画面、参考画面、景别、时长（秒）之外的字段都可自动换行 */
.storyboard-table tbody td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)) {
	white-space: normal;
	word-wrap: break-word;
	word-break: break-word;
	line-height: 1.4;
}

/* 固定列样式 */
.storyboard-table .fixed-col {
	position: sticky;
	background-color: var(--gray-100);
	/* 基础z-index值，确保固定列在普通内容之上 */
	z-index: 110;
	border-right: 1px dashed var(--gray-300) !important;
	/* 确保固定列在垂直方向上也能正确显示 */
	vertical-align: middle;
	/* 确保sticky定位不受影响 */
	transform: none !important;
	backface-visibility: visible !important;
	perspective: none !important;
	filter: none !important;
}

/* 表头固定列 - 排序 */
.storyboard-table thead .fixed-col:first-child {
	/* 固定在左侧 */
	left: 0;
	background-color: var(--background-card);
	/* 更高的z-index，确保在所有表头之上 */
	z-index: 120;
	/* 确保宽度固定 */
	width: 50px;
}

/* 表头固定列 - 镜号 */
.storyboard-table thead .fixed-col:nth-child(2) {
	/* 固定在第一列右侧 */
	left: 50px;
	background-color: var(--background-card);
	/* 固定宽度 */
	width: 80px;
	/* 最高的z-index，确保在所有表头之上，包括第一列固定表头 */
	z-index: 121;
	/* 确保有边框分隔 */
	border-left: 1px dashed var(--gray-300) !important;
}

/* 表体固定列 - 排序 */
.storyboard-table tbody .fixed-col:first-child {
	/* 固定在左侧，与表头对齐 */
	left: 0;
	background-color: var(--white-color);
	/* 确保在表体内容之上，但低于表头固定列 */
	z-index: 115;
	/* 确保宽度固定 */
	width: 50px;
}

/* 表体固定列 - 镜号 */
.storyboard-table tbody .fixed-col:nth-child(2) {
	/* 固定在第一列右侧，与表头对齐 */
	left: 50px;
	background-color: var(--white-color);
	/* 固定宽度 */
	width: 80px;
	/* 确保在表体内容之上，但低于表头固定列，高于第一列固定列 */
	z-index: 116;
	/* 确保有边框分隔 */
	border-left: 1px dashed var(--gray-300) !important;
}

/* 列宽设置 */

/* 第1列：排序（固定列） */
.storyboard-table th:nth-child(1),
.storyboard-table td:nth-child(1) {
	width: 50px;
	min-width: 50px;
	max-width: 50px;
	/* 确保固定定位 */
	position: sticky;
	left: 0;
	/* 确保z-index正确 */
	z-index: inherit;
}

/* 第2列：镜号（固定列） */
.storyboard-table th:nth-child(2),
.storyboard-table td:nth-child(2) {
	width: 80px;
	min-width: 80px;
	max-width: 80px;
	/* 确保固定定位 */
	position: sticky;
	left: 50px;
	/* 确保z-index正确 */
	z-index: inherit;
}

/* 第3列：画面 */
.storyboard-table th:nth-child(3),
.storyboard-table td:nth-child(3) {
	width: 268.444px;
	/* 更新为新的图片列宽度 */
	min-width: 268.444px;
	max-width: 268.444px;
	border-right: 1px dashed var(--gray-300) !important;
	white-space: nowrap;
	vertical-align: top;
}

/* 第4列：参考画面 */
.storyboard-table th:nth-child(4),
.storyboard-table td:nth-child(4) {
	width: 268.444px;
	/* 更新为新的参考图列宽度 */
	min-width: 268.444px;
	max-width: 268.444px;
	border-right: 1px dashed var(--gray-300) !important;
	white-space: nowrap;
	vertical-align: top;
}

/* 确保图片单元格不会合并 */
.storyboard-table td.image-cell {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
	vertical-align: top;
	display: table-cell;
}

/* 确保表格行不合并列 */
.storyboard-table tr {
	border-collapse: separate;
}

/* 确保表格列不自动合并 */
.storyboard-table {
	border-collapse: separate;
	border-spacing: 0;
}

/* 第5列：景别 */
.storyboard-table th:nth-child(5),
.storyboard-table td:nth-child(5) {
	width: 100px;
	min-width: 100px;
}

/* 第6列：时长(秒) */
.storyboard-table th:nth-child(6),
.storyboard-table td:nth-child(6) {
	width: 80px;
	min-width: 80px;
}

/* 第7列：内容 */
.storyboard-table th:nth-child(7),
.storyboard-table td:nth-child(7) {
	width: 200px;
	min-width: 200px;
}

/* 第8列：备注 */
.storyboard-table th:nth-child(8),
.storyboard-table td:nth-child(8) {
	width: 150px;
	min-width: 150px;
}

/* 第9列：场景预期 */
.storyboard-table th:nth-child(9),
.storyboard-table td:nth-child(9) {
	width: 150px;
	min-width: 150px;
}

/* 第10列：声音 */
.storyboard-table th:nth-child(10),
.storyboard-table td:nth-child(10) {
	width: 150px;
	min-width: 150px;
}

/* 第11列：摄像机角度 */
.storyboard-table th:nth-child(11),
.storyboard-table td:nth-child(11) {
	width: 120px;
	min-width: 120px;
}

/* 第12列：运镜 */
.storyboard-table th:nth-child(12),
.storyboard-table td:nth-child(12) {
	width: 100px;
	min-width: 100px;
}

/* 第13列：摄像机装备 */
.storyboard-table th:nth-child(13),
.storyboard-table td:nth-child(13) {
	width: 150px;
	min-width: 150px;
}

/* 第14列：镜头焦段 */
.storyboard-table th:nth-child(14),
.storyboard-table td:nth-child(14) {
	width: 100px;
	min-width: 100px;
}

/* 第15列：构图与焦点 */
.storyboard-table th:nth-child(15),
.storyboard-table td:nth-child(15) {
	width: 360px;
	min-width: 360px;
}

/* 新增列的宽度设置 */

/* 第16列：光线与色调 */
.storyboard-table th:nth-child(16),
.storyboard-table td:nth-child(16) {
	width: 150px;
	min-width: 150px;
}

/* 第17列：地点 */
.storyboard-table th:nth-child(17),
.storyboard-table td:nth-child(17) {
	width: 150px;
	min-width: 150px;
}

/* 第18列：时间 */
.storyboard-table th:nth-child(18),
.storyboard-table td:nth-child(18) {
	width: 100px;
	min-width: 100px;
}

/* 第19列：天气 */
.storyboard-table th:nth-child(19),
.storyboard-table td:nth-child(19) {
	width: 100px;
	min-width: 100px;
}

/* 第20列：台词 */
.storyboard-table th:nth-child(20),
.storyboard-table td:nth-child(20) {
	width: 600px;
	min-width: 600px;
}

/* 第21列：剧本 */
.storyboard-table th:nth-child(21),
.storyboard-table td:nth-child(21) {
	width: 750px;
	min-width: 750px;
}

/* 第22列：角色清单 */
.storyboard-table th:nth-child(22),
.storyboard-table td:nth-child(22) {
	width: 200px;
	min-width: 200px;
}

/* 第23列：各角色推荐服装 */
.storyboard-table th:nth-child(23),
.storyboard-table td:nth-child(23) {
	width: 150px;
	min-width: 150px;
}

/* 第24列：各角色推荐妆造 */
.storyboard-table th:nth-child(24),
.storyboard-table td:nth-child(24) {
	width: 150px;
	min-width: 150px;
}

/* 第25列：角色动作 */
.storyboard-table th:nth-child(25),
.storyboard-table td:nth-child(25) {
	width: 150px;
	min-width: 150px;
}

/* 第26列：道具 */
.storyboard-table th:nth-child(26),
.storyboard-table td:nth-child(26) {
	width: 150px;
	min-width: 150px;
}

/* 第27列：自定义列 */
.storyboard-table th:nth-child(27),
.storyboard-table td:nth-child(27) {
	width: 150px;
	min-width: 150px;
}

/* 操作列 */
.storyboard-table .action-col {
	width: 40px;
	min-width: 40px;
	text-align: center;
}



/* 场次条 */
.scene-header td {
	padding: 0;
	background-color: var(--gray-200);
	border-bottom: 1px solid var(--gray-300);
}

.scene-header-content {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	gap: 0.75rem;
	position: sticky;
	left: 130px;
	min-width: calc(3200px - 130px);
	/* 增加最小宽度，减去固定列宽度 */
	z-index: 10;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	/* 确保场次条内容在固定列右侧显示 */
	background-color: var(--gray-200);
}

/* 场次条固定列 - 确保场次条的固定列与其他固定列对齐 */
.scene-header .fixed-col:first-child {
	left: 0;
	width: 50px;
	/* 确保z-index比表格固定列低，不会遮挡 */
	z-index: 110;
	/* 确保固定定位不受影响 */
	position: sticky !important;
	transform: none !important;
	background-color: var(--gray-200);
}

.scene-header .fixed-col:nth-child(2) {
	left: 50px;
	width: 80px;
	/* 确保z-index比表格固定列低，不会遮挡 */
	z-index: 110;
	/* 确保固定定位不受影响 */
	position: sticky !important;
	transform: none !important;
	background-color: var(--gray-200);
}

.scene-info {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.scene-name {
	font-weight: 600;
}

.scene-number {
	font-size: 0.75rem;
	color: var(--gray-600);
}

.scene-tags {
	display: flex;
	gap: 0.5rem;
}

.tag {
	background-color: var(--gray-300);
	padding: 0.25rem 0.5rem;
	border-radius: 2px;
	font-size: 0.75rem;
}

.scene-actions {
	display: flex;
	gap: 0.5rem;
}

.expand-btn {
	background: none;
	border: none;
	color: var(--gray-700);
	cursor: pointer;
	padding: 0.25rem;
}

.drag-handle {
	cursor: move;
	color: var(--primary-color);
	font-size: 16px;
	font-weight: bold;
	/* 使用更明显的拖拽图标 */
	transform: scale(1.2);
	transition: all 0.3s ease;
}

/* 分镜条上的拖拽图标缺省状态下为黑色 */
.shot-row .drag-handle {
	color: var(--text-primary);
}

/* 悬停效果 */
.drag-handle:hover {
	color: var(--primary-dark);
	transform: scale(1.4);
	/* 添加脉冲动画，更明显地提示可拖拽 */
	animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1.4);
	}
	50% {
		transform: scale(1.6);
	}
}

/* 分镜行 */
.shot-row td {
	background-color: var(--white-color);
	white-space: nowrap;
}

/* 斑马线样式 */
.shot-row:nth-child(even) td {
	background-color: #f8f9fa;
}

.shot-row:nth-child(odd) td {
	background-color: #ffffff;
}

/* 固定列的斑马线样式 */
.shot-row:nth-child(even) .fixed-col:first-child,
.shot-row:nth-child(even) .fixed-col:nth-child(2) {
	background-color: #f8f9fa;
}

.shot-row:nth-child(odd) .fixed-col:first-child,
.shot-row:nth-child(odd) .fixed-col:nth-child(2) {
	background-color: #ffffff;
}




/* 表体中除场次条外所有分镜的对齐方式 */
.shot-row td {
	vertical-align: middle;
	/* 垂直居中 */
}

/* 镜号、景别、时长（秒）这三个字段水平居中并垂直居中显示 */
.shot-row td:nth-child(2),
/* 镜号 */
.shot-row td:nth-child(5),
/* 景别 */
.shot-row td:nth-child(6) {
	/* 时长（秒） */
	text-align: center;
}

.image-cell {
	width: 268.444px;
	height: 151px;
}

.image-placeholder,
.reference-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px dashed var(--gray-300);
	border-radius: var(--border-radius);
	text-align: center;
	font-size: 0.75rem;
	color: var(--gray-500);
	gap: 0.25rem;
}

.image-placeholder i,
.reference-placeholder i {
	font-size: 1rem;
}

.reference-text {
	padding: 0.25rem;
	font-size: 0.7rem;
	line-height: 1.3;
}

/* 拖拽样式 - 增强版 */
.scene-header.dragging,
.shot-row.dragging {
	opacity: 0.9;
	box-shadow: var(--box-shadow-hover);
	position: relative;
	z-index: 100;
	transition: var(--drag-transition);
	transform: scale(1.02);
}

/* 拖拽占位符 */
.drag-placeholder {
	background-color: rgba(67, 110, 240, 0.1);
	border: 2px dashed var(--primary-color);
	transition: var(--drag-transition);
}

/* 拖拽插入动画 */
.drag-insert-animation {
	animation: insertSlide 0.3s ease-out;
}

/* 拖拽手柄悬停效果 */
.drag-handle {
	cursor: move;
	color: var(--primary-color);
	font-size: 16px;
	font-weight: bold;
	transform: scale(1.2);
	transition: all 0.3s ease;
}

.drag-handle:hover {
	color: var(--primary-dark);
	transform: scale(1.4);
	animation: pulse 1s ease-in-out infinite;
}

/* 分镜条上的拖拽图标缺省状态下为黑色 */
.shot-row .drag-handle {
	color: var(--text-primary);
}

/* 脉冲动画 */
@keyframes pulse {
	0%, 100% {
		transform: scale(1.4);
	}
	50% {
		transform: scale(1.6);
	}
}

/* 插入动画 */
@keyframes insertSlide {
	from {
		transform: translateX(-20px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* 响应式设计 */
@media (max-width: 992px) {
	.main-header {
		padding: 0 1rem;
	}

	.function-bar {
		padding: 0 1rem;
	}

	.floating-bar {
		padding: 0 1rem;
	}

	.main-content {
		margin-top: 110px;
	}

	.scene-header-content {
		min-width: 800px;
	}
	
	/* 结果显示区域优化 */
	.result-content {
		padding: var(--spacing-md);
		min-height: auto;
	}
	
	.image-container {
		padding: var(--spacing-md);
		min-height: auto;
	}
	
	.single-image {
		max-height: 400px;
	}
	
	.multi-image-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: var(--spacing-md);
	}
}

@media (max-width: 768px) {
	.header-right .btn-icon:not(:last-child) {
		display: none;
	}

	.scene-header-content {
		min-width: 600px;
	}
	
	/* 文生图和图生视频结果显示区域优化 */
	
	/* 结果卡片 */
	.result-card {
		/* 减少卡片内边距，让内容更接近边缘 */
		padding: var(--spacing-sm);
	}
	
	/* 结果内容容器 */
	.result-content {
		/* 减少内边距，让媒体内容占据更多空间 */
		padding: var(--spacing-xs);
		min-height: auto;
		/* 移除不必要的flex布局，让内容自然流动 */
		display: block;
	}
	
	/* 空状态容器 */
	.empty-state-container {
		/* 减少内边距，让空状态内容更接近边缘 */
		padding: var(--spacing-sm);
		/* 设置合适的最小高度 */
		min-height: 150px;
	}
	
	/* 结果显示区域 */
	.result-display {
		/* 减少内边距，让媒体内容占据更多空间 */
		padding: var(--spacing-xs);
		/* 确保宽度为100%，适应容器 */
		width: 100%;
	}
	
	/* 单张图片 */
	.single-image {
		max-height: none;
		width: 100%;
		height: auto;
		object-fit: contain;
	}
	
	/* 视频元素 */
	video {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: none !important;
		object-fit: contain;
	}
	
	/* 结果视频 */
	.result-video {
		max-height: none;
		width: 100%;
		height: auto;
		object-fit: contain;
	}
	
	/* 多张图片网格 */
	.multi-image-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--spacing-xs);
		width: 100%;
	}
	
	/* 图片项 */
	.image-item {
		padding: var(--spacing-xs);
	}
	
	/* 结果信息 */
	.result-info {
		margin-top: var(--spacing-sm);
		padding: var(--spacing-sm);
		width: 100%;
	}
	
	/* 信息网格 */
	.info-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-sm);
	}
	
	/* 信息项 */
	.info-item {
		padding: var(--spacing-sm);
	}
	
	/* 空状态 */
	.empty-state h3 {
		font-size: 1.25rem;
	}
	
	.empty-state p {
		font-size: 0.875rem;
		margin: 0.5rem 0;
	}
}

@media (max-width: 480px) {
	/* 超小屏设备优化 */
	
	/* 结果内容容器 */
	.result-content {
		padding: var(--spacing-xs);
	}
	
	/* 图片和视频容器 */
	.image-container,
	.video-container {
		padding: var(--spacing-xs);
	}
	
	/* 多张图片网格 */
	.multi-image-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-sm);
	}
	
	/* 单张图片 */
	.single-image {
		max-height: none;
	}
	
	/* 结果信息 */
	.result-info {
		margin-top: var(--spacing-sm);
		padding: var(--spacing-xs);
	}
	
	/* 信息项 */
	.info-item {
		padding: var(--spacing-xs);
	}
}

/* 生成结果区域优化样式 */
/* 结果卡片 */
.result-card {
	/* 减少卡片内边距，让内容更接近边缘 */
	padding: var(--spacing-md);
}

/* 结果内容容器 */
.result-content {
	/* 减少内边距，让媒体内容占据更多空间 */
	padding: var(--spacing-sm);
	min-height: auto;
	/* 移除不必要的flex布局，让内容自然流动 */
	display: block;
}

/* 空状态容器 */
.empty-state-container {
	/* 减少内边距，让空状态内容更接近边缘 */
	padding: var(--spacing-md);
	/* 保持原有的背景和边框样式 */
	background: var(--background-light);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius-lg);
	/* 居中对齐内容 */
	display: flex;
	align-items: center;
	justify-content: center;
	/* 设置合适的最小高度 */
	min-height: 200px;
}

/* 结果显示区域 */
.result-display {
	/* 减少内边距，让媒体内容占据更多空间 */
	padding: var(--spacing-sm);
	/* 保持原有的背景和边框样式 */
	background: var(--background-light);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius-lg);
	/* 居中对齐内容 */
	display: flex;
	align-items: center;
	justify-content: center;
	/* 确保宽度为100%，适应容器 */
	width: 100%;
	/* 允许内容溢出时自动调整大小 */
	overflow: hidden;
}

/* 结果图片 */
.result-display .single-image {
	/* 让图片占据更多空间 */
	max-height: none;
	/* 确保图片宽度适应容器 */
	width: 100%;
	height: auto;
	/* 保持图片比例 */
	object-fit: contain;
	/* 移除不必要的边框 */
	border: none;
	/* 移除不必要的阴影 */
	box-shadow: none;
}

/* 结果视频 */
.result-display .result-video {
	/* 让视频占据更多空间 */
	max-height: none;
	/* 确保视频宽度适应容器 */
	width: 100%;
	height: auto;
	/* 保持视频比例 */
	object-fit: contain;
	/* 移除不必要的边框 */
	border: none;
	/* 移除不必要的阴影 */
	box-shadow: none;
}

/* 多张图片网格优化 */
.result-display .multi-image-grid {
	/* 减少网格间距，让图片更紧凑 */
	gap: var(--spacing-sm);
	/* 确保网格宽度为100% */
	width: 100%;
}

/* 图片项优化 */
.result-display .image-item {
	/* 减少图片项内边距 */
	padding: var(--spacing-xs);
	/* 移除不必要的边框和阴影 */
	border: none;
	box-shadow: none;
}

/* 图片项内的图片 */
.result-display .image-item img {
	/* 让图片占据更多空间 */
	max-height: none;
	/* 确保图片宽度适应容器 */
	width: 100%;
	height: auto;
	/* 保持图片比例 */
	object-fit: contain;
}

/* 统一提示信息和通知样式 */
.alert {
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	margin-bottom: var(--spacing-md);
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	font-weight: 600;
	transition: var(--transition);
	border: 2px solid transparent;
	box-shadow: var(--box-shadow);
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		transform: translateY(-20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.alert-success {
	background: rgba(46, 204, 113, 0.1);
	color: var(--success-color);
	border-color: var(--success-color);
}

.alert-success i {
	color: var(--success-color);
}

.alert-warning {
	background: rgba(243, 156, 18, 0.1);
	color: var(--warning-color);
	border-color: var(--warning-color);
}

.alert-warning i {
	color: var(--warning-color);
}

.alert-danger {
	background: rgba(231, 76, 60, 0.1);
	color: var(--danger-color);
	border-color: var(--danger-color);
}

.alert-danger i {
	color: var(--danger-color);
}

.alert-info {
	background: rgba(69, 183, 209, 0.1);
	color: var(--accent-color);
	border-color: var(--accent-color);
}

.alert-info i {
	color: var(--accent-color);
}

.alert-dismissible {
	position: relative;
	padding-right: 40px;
}

.alert-dismissible .close {
	position: absolute;
	right: var(--spacing-sm);
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: inherit;
	transition: var(--transition);
	opacity: 0.7;
}

.alert-dismissible .close:hover {
	opacity: 1;
	transform: translateY(-50%) rotate(90deg);
}

/* 通知样式 */
.notification {
	position: fixed;
	top: var(--spacing-lg);
	right: var(--spacing-lg);
	z-index: 10000;
	min-width: 300px;
	max-width: 400px;
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-hover);
	background: var(--background-card);
	border: 2px solid var(--primary-color);
	animation: slideInRight 0.3s ease-out;
	transition: all 0.3s ease;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.notification.success {
	border-color: var(--success-color);
	background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, var(--background-card) 100%);
}

.notification.warning {
	border-color: var(--warning-color);
	background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, var(--background-card) 100%);
}

.notification.error {
	border-color: var(--danger-color);
	background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, var(--background-card) 100%);
}

.notification.info {
	border-color: var(--accent-color);
	background: linear-gradient(135deg, rgba(69, 183, 209, 0.1) 0%, var(--background-card) 100%);
}

.notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--spacing-xs);
}

.notification-title {
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.notification-body {
	font-size: 0.875rem;
	opacity: 0.9;
}

.notification-close {
	background: none;
	border: none;
	font-size: 16px;
	cursor: pointer;
	opacity: 0.7;
	transition: var(--transition);
	color: inherit;
}

.notification-close:hover {
	opacity: 1;
	transform: rotate(90deg);
}

/* 标签样式 */
.tag {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	padding: 0.3rem 0.75rem;
	border-radius: var(--border-radius-full);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: var(--transition);
	border: 2px solid transparent;
}

.tag-primary {
	background: var(--gradient-primary);
	color: var(--text-light);
	border-color: var(--primary-color);
}

.tag-secondary {
	background: var(--gradient-secondary);
	color: var(--text-light);
	border-color: var(--secondary-color);
}

.tag-success {
	background: rgba(46, 204, 113, 0.2);
	color: var(--success-color);
	border-color: var(--success-color);
}

.tag-warning {
	background: rgba(243, 156, 18, 0.2);
	color: var(--warning-color);
	border-color: var(--warning-color);
}

.tag-danger {
	background: rgba(231, 76, 60, 0.2);
	color: var(--danger-color);
	border-color: var(--danger-color);
}

.tag-info {
	background: rgba(69, 183, 209, 0.2);
	color: var(--accent-color);
	border-color: var(--accent-color);
}

/* 骨架屏样式 */
.skeleton {
	background: linear-gradient(90deg, var(--background-light) 25%, rgba(255, 107, 107, 0.1) 50%, var(--background-light) 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
	border-radius: var(--border-radius);
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

/* 统一UI元素样式 */

/* 卡片样式 */
.card {
	background: var(--background-card);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--box-shadow);
	transition: var(--transition);
	overflow: hidden;
	position: relative;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--gradient-primary);
	transform: scaleX(0);
	transition: var(--transition);
}

.card:hover {
	transform: translateY(-8px) scale(1.02);
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.card:hover::before {
	transform: scaleX(1);
}

.card-header {
	margin-bottom: var(--spacing-md);
	padding-bottom: var(--spacing-sm);
	border-bottom: 1px solid var(--border-color);
}

.card-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.card-body {
	margin-bottom: var(--spacing-md);
	border: 0px;
}

.card-footer {
	padding-top: var(--spacing-sm);
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
	gap: var(--spacing-sm);
}

/* 卡片容器 */
.card-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(800px, 1fr));
	gap: var(--spacing-lg);
	margin: var(--spacing-xl) 0;
}

/* 空数据状态 */
.no-data {
	text-align: center;
	padding: var(--spacing-xl);
	color: var(--text-muted);
	font-style: italic;
	background: var(--background-light);
	border-radius: var(--border-radius);
	border: 2px dashed var(--border-color);
	transition: var(--transition);
}

.no-data:hover {
	border-color: var(--primary-color);
	background: var(--background-hover);
}

.no-data i {
	font-size: 4rem;
	margin-bottom: var(--spacing-md);
	color: var(--primary-color);
	opacity: 0.5;
	transition: var(--transition);
}

.no-data:hover i {
	opacity: 1;
	transform: scale(1.2) rotate(360deg);
}

/* 分隔线 */
.divider {
	height: 2px;
	background: var(--gradient-primary);
	border: none;
	margin: var(--spacing-lg) 0;
	border-radius: 1px;
	box-shadow: var(--box-shadow);
	animation: pulse 2s ease-in-out infinite;
}

/* 加载状态 */
.loading-container {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-xl);
	gap: var(--spacing-md);
	color: var(--primary-color);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 107, 107, 0.3);
	border-radius: 50%;
	border-top-color: var(--primary-color);
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* 表单样式 */
.form-group {
	margin-bottom: var(--spacing-lg);
}

.form-group label {
	display: inline-block;
	margin-bottom: var(--spacing-sm);
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.875rem;
}

.form-group.required label::after {
	content: '*';
	color: var(--danger-color);
	margin-left: var(--spacing-xs);
}

.form-row {
	display: flex;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-md);
	flex-wrap: wrap;
}

.form-row .form-group {
	flex: 1;
	min-width: 250px;
}

.input-group {
	display: flex;
	align-items: stretch;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-md);
}

.input-group input,
.input-group select,
.input-group textarea {
	flex: 1;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.input-group .btn {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

/* 按钮组 */
.btn-group {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
}

.btn-group .btn {
	flex-shrink: 0;
}

/* 场次条样式优化 */
.scene-header-content {
	background: var(--gradient-secondary);
	color: var(--text-light);
	border-bottom: 2px solid var(--secondary-color);
}

.expand-btn {
	background: none;
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: var(--text-light);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: var(--border-radius);
	transition: var(--transition);
	font-size: 1rem;
}

.expand-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: var(--text-light);
	transform: scale(1.1) rotate(90deg);
}

/* 已在上方定义了drag-handle样式，此处不再重复定义 */

/* 图片单元格优化 */
.image-cell {
	background: var(--background-light);
	border-radius: var(--border-radius);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-xs);
	transition: var(--transition);
	border: 2px solid var(--border-color);
}

.image-cell:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
	transform: scale(1.02);
}

.image-placeholder,
.reference-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 2px dashed var(--primary-color);
	border-radius: var(--border-radius);
	text-align: center;
	font-size: 0.75rem;
	color: var(--text-muted);
	gap: var(--spacing-xs);
	transition: var(--transition);
	background: var(--background-card);
}

.image-placeholder:hover,
.reference-placeholder:hover {
	border-color: var(--accent-color);
	background: var(--background-hover);
	transform: scale(1.05);
	box-shadow: var(--box-shadow);
}

.image-placeholder i,
.reference-placeholder i {
	font-size: 1.5rem;
	color: var(--primary-color);
	transition: var(--transition);
}

.image-placeholder:hover i,
.reference-placeholder:hover i {
	transform: rotate(360deg) scale(1.2);
}

/* 拖拽样式优化 */
.scene-header.dragging,
.shot-row.dragging {
	opacity: 0.9 !important;
	box-shadow: var(--box-shadow-hover) !important;
	transform: scale(1.02) !important;
}

.drag-placeholder {
	background: rgba(255, 107, 107, 0.1) !important;
	border: 2px dashed var(--primary-color) !important;
	padding: var(--spacing-lg) !important;
	border-radius: var(--border-radius) !important;
	animation: pulse 1s ease-in-out infinite !important;
	margin: var(--spacing-md) 0 !important;
}

/* 标签样式优化 */
.tag {
	display: inline-flex !important;
	align-items: center !important;
	gap: var(--spacing-xs) !important;
	padding: 0.3rem 0.75rem !important;
	border-radius: var(--border-radius-full) !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	transition: var(--transition) !important;
	border: 2px solid transparent !important;
	background: var(--gradient-primary) !important;
	color: var(--text-light) !important;
	box-shadow: var(--box-shadow) !important;
}

.tag:hover {
	transform: translateY(-3px) !important;
	box-shadow: var(--box-shadow-hover) !important;
}

/* 分页样式优化 */
.pagination {
	background: var(--background-card) !important;
	border-radius: var(--border-radius) !important;
	box-shadow: var(--box-shadow) !important;
	transition: var(--transition) !important;
	padding: var(--spacing-md) !important;
	margin: var(--spacing-xl) 0 !important;
}

.pagination:hover {
	box-shadow: var(--box-shadow-hover) !important;
}

.page-btn {
	background: var(--background-card) !important;
	border: 2px solid var(--border-color) !important;
	border-radius: var(--border-radius) !important;
	color: var(--text-primary) !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: var(--transition) !important;
	font-size: 0.875rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.page-btn:hover:not(:disabled) {
	background: var(--gradient-primary) !important;
	color: var(--text-light) !important;
	border-color: var(--primary-color) !important;
	transform: translateY(-3px) !important;
	box-shadow: var(--box-shadow) !important;
}

.page-btn.active {
	background: var(--gradient-primary) !important;
	color: var(--text-light) !important;
	border-color: var(--primary-color) !important;
	box-shadow: var(--box-shadow) !important;
}

/* 文生图页面专用样式 */
.presets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-lg);
	background: var(--background-light);
	padding: var(--spacing-lg);
	border-radius: var(--border-radius);
	border: 2px solid var(--border-color);
	transition: var(--transition);
}

.presets-grid:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.preset-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-md);
	background: var(--background-card);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	gap: var(--spacing-xs);
	box-shadow: var(--box-shadow);
}

.preset-btn:hover {
	transform: translateY(-5px) scale(1.05);
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
	background: var(--background-hover);
}

.preset-btn.active {
	background: var(--gradient-primary);
	color: var(--text-light);
	border-color: var(--primary-color);
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
	transform: translateY(-5px);
}

.preset-btn i {
	font-size: 1.5rem;
	color: var(--primary-color);
	transition: var(--transition);
}

.preset-btn:hover i {
	transform: rotate(360deg) scale(1.2);
}

.preset-label {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.75rem;
	font-weight: 700;
}

.examples-title {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-md);
	font-weight: 700;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.examples-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-lg);
}

.example-btn {
	padding: var(--spacing-md);
	background: var(--background-light);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	box-shadow: var(--box-shadow);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

.example-btn:hover {
	transform: translateY(-5px) scale(1.05);
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
	background: var(--background-hover);
}

.image-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-xl);
	background: var(--background-light);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius-lg);
	transition: var(--transition);
	min-height: 400px;
}

.image-container:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.single-image {
	max-width: 100%;
	max-height: 500px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-hover);
	transition: var(--transition);
	cursor: pointer;
	border: 3px solid var(--background-card);
}

.single-image:hover {
	transform: scale(1.02);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.multi-image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--spacing-lg);
	width: 100%;
}

.image-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-md);
	background: var(--background-card);
	padding: var(--spacing-md);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: var(--transition);
	border: 2px solid var(--border-color);
}

.image-item:hover {
	transform: translateY(-8px) scale(1.02);
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.image-item img {
	max-width: 100%;
	max-height: 250px;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
}

.image-item:hover img {
	transform: scale(1.05);
}

.image-info {
	text-align: center;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.result-content {
	background: var(--background-light);
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-lg);
	min-height: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--border-color);
	transition: var(--transition);
}

.result-content:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.result-info {
	background: var(--background-card);
	border-radius: var(--border-radius);
	padding: var(--spacing-lg);
	margin-top: var(--spacing-lg);
	box-shadow: var(--box-shadow);
	border: 2px solid var(--border-color);
	width: 100%;
	transition: var(--transition);
}

.result-info:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--spacing-md);
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
	padding: var(--spacing-md);
	background: var(--background-light);
	border-radius: var(--border-radius);
	transition: var(--transition);
	border: 2px solid transparent;
}

.info-item:hover {
	border-color: var(--primary-color);
	background: var(--background-hover);
	transform: translateY(-3px);
}

.info-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-value {
	font-size: 1rem;
	font-weight: 800;
	color: var(--text-primary);
	word-break: break-word;
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

.loading-overlay.active {
	opacity: 1;
	visibility: visible;
}

.spinner {
	width: 80px;
	height: 80px;
	border: 8px solid rgba(255, 255, 255, 0.3);
	border-top: 8px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: var(--spacing-lg);
	box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.loading-text {
	text-align: center;
	color: var(--text-light);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	max-width: 500px;
}

.loading-text h3 {
	font-size: 1.5rem;
	margin-bottom: var(--spacing-md);
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.loading-text p {
	font-size: 1rem;
	margin-bottom: var(--spacing-xs);
	opacity: 0.9;
}

.error-alert {
	background: rgba(231, 76, 60, 0.1);
	border: 2px solid var(--danger-color);
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-lg);
	margin-top: var(--spacing-lg);
	width: 100%;
	transition: var(--transition);
	transform: translateY(20px);
	opacity: 0;
	display: none;
}

.error-alert.show {
	display: block;
	transform: translateY(0);
	opacity: 1;
	animation: slideIn 0.3s ease-out;
}

.error-header {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-md);
	color: var(--danger-color);
}

.error-header h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.error-header i {
	font-size: 1.5rem;
}

.error-alert p {
	margin: 0;
	color: var(--text-primary);
	font-weight: 600;
	line-height: 1.5;
}

.points-info {
	background: rgba(255, 217, 61, 0.1);
	border: 2px solid var(--warning-color);
	border-radius: var(--border-radius);
	padding: var(--spacing-md);
	margin: var(--spacing-md) 0 var(--spacing-lg);
	text-align: center;
	font-weight: 700;
	color: var(--warning-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: var(--transition);
}

.points-info:hover {
	background: rgba(255, 217, 61, 0.2);
	border-color: var(--warning-dark);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.points-info i {
	color: var(--warning-color);
	font-size: 1.2rem;
	animation: pulse 2s ease-in-out infinite;
}

.current-selection {
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 800;
	margin-left: var(--spacing-sm);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* 图生视频页面专用样式 */
.upload-preview-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--spacing-lg);
	align-items: start;
	background: var(--background-light);
	padding: var(--spacing-lg);
	border-radius: var(--border-radius);
	border: 2px solid var(--border-color);
	transition: var(--transition);
}

.upload-preview-row:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.upload-section {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.preview-section {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.file-input-container {
	width: 100%;
}

.file-input {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-xl);
	border: 2px dashed var(--border-color);
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	background: var(--background-card);
	text-align: center;
	min-height: 200px;
	gap: var(--spacing-sm);
	box-shadow: var(--box-shadow);
}

.file-input:hover {
	border-color: var(--primary-color);
	background: var(--background-hover);
	transform: translateY(-5px);
	box-shadow: var(--box-shadow-hover);
}

.file-input i {
	font-size: 3rem;
	color: var(--primary-color);
	transition: var(--transition);
}

.file-input:hover i {
	transform: scale(1.2) rotate(360deg);
}

.file-input p {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.5;
}

.file-input input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.preview-container {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-xl);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	background: var(--background-card);
	min-height: 200px;
	box-shadow: var(--box-shadow);
	transition: var(--transition);
}

.preview-container:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.preview-image {
	max-width: 100%;
	max-height: 300px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-hover);
	transition: var(--transition);
	border: 3px solid rgba(255, 255, 255, 0.5);
}

.preview-image:hover {
	transform: scale(1.02);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.empty-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-md);
	text-align: center;
	color: var(--text-secondary);
}

.empty-preview i {
	font-size: 3rem;
	color: var(--primary-color);
	opacity: 0.5;
	transition: var(--transition);
}

.empty-preview:hover i {
	opacity: 1;
	transform: scale(1.2) rotate(360deg);
}

.empty-preview p {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.status-info {
	background: rgba(78, 205, 196, 0.1);
	border: 2px solid var(--secondary-color);
	border-radius: var(--border-radius);
	padding: var(--spacing-md);
	text-align: center;
	font-weight: 600;
	color: var(--secondary-dark);
	transition: var(--transition);
	margin-top: var(--spacing-md);
}

.status-info.success {
	background: rgba(46, 204, 113, 0.1);
	border-color: var(--success-color);
	color: var(--success-dark);
}

.status-info.error {
	background: rgba(231, 76, 60, 0.1);
	border-color: var(--danger-color);
	color: var(--danger-dark);
}

.video-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: var(--spacing-lg);
	background: var(--background-card);
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: var(--transition);
	margin-bottom: var(--spacing-lg);
}

.video-container:hover {
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-hover);
}

.result-video {
	max-width: 100%;
	max-height: 500px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-hover);
	transition: var(--transition);
	border: 3px solid rgba(255, 255, 255, 0.5);
}

.result-video:hover {
	transform: scale(1.02);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.result-info-title {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-lg);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.generation-tip {
	margin-top: var(--spacing-lg);
	padding: var(--spacing-md);
	background: rgba(255, 217, 61, 0.1);
	border: 2px solid var(--warning-color);
	border-radius: var(--border-radius);
	text-align: center;
	font-weight: 600;
	color: var(--warning-dark);
	font-size: 0.875rem;
	transition: var(--transition);
}

.generation-tip:hover {
	background: rgba(255, 217, 61, 0.2);
	border-color: var(--warning-dark);
	box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.generation-tip p {
	margin: 0;
	line-height: 1.5;
}

/* 图片模态框样式 */
.image-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20000;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

.image-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.image-modal {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-lg);
	padding: var(--spacing-lg);
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--border-radius-lg);
	border: 2px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(20px);
	animation: modalSlideIn 0.3s ease-out;
}

.modal-image {
	max-width: 100%;
	max-height: 70vh;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-hover);
	border: 3px solid rgba(255, 255, 255, 0.5);
}

.modal-close-btn {
	position: absolute;
	top: var(--spacing-md);
	right: var(--spacing-md);
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: var(--text-light);
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: var(--transition);
}

.modal-close-btn:hover {
	background: var(--gradient-primary);
	border-color: var(--primary-color);
	transform: rotate(90deg) scale(1.1);
	box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.modal-download-btn {
	background: var(--gradient-primary);
	color: var(--text-light);
	border: 2px solid var(--primary-color);
	padding: var(--spacing-md) var(--spacing-xl);
	border-radius: var(--border-radius-full);
	font-weight: 800;
	text-decoration: none;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: var(--box-shadow);
}

.modal-download-btn:hover {
	background: var(--gradient-secondary);
	border-color: var(--secondary-color);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.modal-info {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
}

/* 工具提示样式 */
.tooltip {
	position: relative;
	display: inline-block;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 120px;
	background: var(--gradient-primary);
	color: var(--text-light);
	text-align: center;
	border-radius: var(--border-radius);
	padding: var(--spacing-xs) var(--spacing-sm);
	position: absolute;
	z-index: 1000;
	bottom: 125%;
	left: 50%;
	margin-left: -60px;
	opacity: 0;
	transition: var(--transition);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: var(--box-shadow);
	border: 2px solid var(--primary-color);
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
	transform: translateY(-5px);
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: var(--primary-color) transparent transparent transparent;
}




/*===========*/
