* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
	background-color: #f5f5f5;
	color: #333;
	max-width: 100%;
	overflow-x: hidden;
}

.container {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #fff;
}

/* 页面头部 */
.page-header {
	padding: 20px 15px 15px;
	background-color: #fff;
	border-bottom: 1px solid #eee;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-title {
	font-size: 22px;
	color: #333;
	margin-bottom: 8px;
	font-weight: 600;
}

.page-subtitle {
	font-size: 14px;
	color: #999;
	line-height: 1.5;
}

/* 分类筛选 */
.category-filter {
	display: flex;
	overflow-x: auto;
	padding: 15px 15px 10px;
	background-color: #fff;
	border-bottom: 1px solid #f0f0f0;
	gap: 10px;
	scrollbar-width: none;
	/* Firefox */
}

.category-filter::-webkit-scrollbar {
	display: none;
	/* Chrome, Safari, Opera */
}

.category-btn {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background-color: #fff;
	color: #666;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.category-btn:hover {
	border-color: #07c160;
	color: #07c160;
}

.category-btn.active {
	background-color: #07c160;
	border-color: #07c160;
	color: white;
}

/* 文案卡片容器 */
.content-section {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
	background-color: #f8f8f8;
}

.template-cards {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* 文案卡片样式 */
.template-card {
	background-color: #fff;
	border-radius: 12px;
	padding: 18px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border-left: 4px solid #07c160;
}

.template-card:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.template-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.template-title {
	font-size: 16px;
	color: #333;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.template-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	background-color: #e6f7ff;
	color: #1890ff;
	font-weight: 600;
}

.template-content {
	color: #555;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 15px;
	word-break: break-word;
}

.content-preview {
	max-height: 80px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.content-full {
	max-height: none;
}

.toggle-content {
	color: #07c160;
	font-size: 13px;
	cursor: pointer;
	margin-top: 5px;
	display: inline-block;
}

.template-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	border-top: 1px dashed #eee;
}

.use-count {
	font-size: 13px;
	color: #999;
	display: flex;
	align-items: center;
	gap: 5px;
}

.template-actions {
	display: flex;
	gap: 10px;
}

.action-btn {
	padding: 6px 15px;
	border-radius: 15px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	display: flex;
	align-items: center;
	gap: 5px;
}

.copy-btn {
	background-color: #e6f7ff;
	color: #1890ff;
}

.copy-btn:hover {
	background-color: #d0eaff;
}

.use-btn {
	background-color: #07c160;
	color: white;
}

.use-btn:hover {
	background-color: #06ad56;
}

/* 使用提示 */
.usage-tip {
	background-color: #f0f9ff;
	border-radius: 12px;
	padding: 15px;
	margin-bottom: 20px;
	border-left: 4px solid #1890ff;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tip-icon {
	color: #1890ff;
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 2px;
}

.tip-content h3 {
	font-size: 15px;
	color: #1890ff;
	margin-bottom: 5px;
	font-weight: 600;
}

.tip-content p {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

/* 空状态 */
.empty-state {
	text-align: center;
	padding: 50px 20px;
	color: #999;
}

.empty-icon {
	font-size: 60px;
	color: #e0e0e0;
	margin-bottom: 15px;
}

.empty-text {
	font-size: 16px;
	margin-bottom: 10px;
}

/* 复制成功提示 */
.copy-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 12px 25px;
	border-radius: 25px;
	font-size: 13px;
	z-index: 9999;
	animation: fadeInOut 2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

@keyframes fadeInOut {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.9);
	}

	15% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	85% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.9);
	}
}

/* 底部导航栏 */
.nav-section {
	height: 70px;
	width: 100%;
	background-color: #fff;
	border-top: 1px solid #eee;
	display: flex;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #888;
	transition: all 0.3s ease;
	position: relative;
}

.nav-btn.active {
	color: #07c160;
}

.nav-btn.active::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #07c160;
}

.nav-icon {
	font-size: 20px;
	margin-bottom: 5px;
}

.nav-text {
	font-size: 12px;
}

/* 隐藏的文本区域，用于复制 */
.copy-textarea {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	width: 1px;
	height: 1px;
}

/* 响应式调整 */
@media (max-height: 700px) {
	.page-header {
		padding: 15px 15px 12px;
	}

	.template-card {
		padding: 15px;
	}

	.nav-section {
		height: 65px;
	}
}

@media (max-width: 400px) {
	.template-content {
		font-size: 14px;
	}

	.action-btn {
		padding: 5px 12px;
		font-size: 12px;
	}

	.category-btn {
		padding: 6px 12px;
		font-size: 13px;
	}
}

/* 添加到 copywriting.css 文件中 */

.action-btn.ai-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	color: white;
}

.action-btn.ai-btn:hover {
	background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.ai-btn i {
	margin-right: 5px;
}

/* AI文案助手浮标样式 - 魔法棒主题 */
.ai-assistant-float {
	position: fixed;
	bottom: 80px;
	right: 16px;
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(255, 154, 158, 0.4);
	z-index: 999;
	transition: all 0.3s ease;
	animation: floatMagic 3s ease-in-out infinite;
	border: 3px solid white;
	overflow: hidden;
}

/* 魔法棒主体 */
.ai-float-icon {
	font-size: 28px;
	color: white;
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 魔法星星 */
.ai-float-icon::after {
	content: '✨';
	position: absolute;
	top: -8px;
	right: -8px;
	font-size: 14px;
	animation: sparkle 1.5s infinite;
}

.ai-float-text {
	font-size: 10px;
	color: white;
	font-weight: 700;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.5px;
	margin-top: 2px;
	position: relative;
	z-index: 2;
}

/* 魔法波纹效果 */
.ai-float-pulse {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff85a2 0%, #ffacc8 100%);
	/* background: linear-gradient(135deg, rgba(255, 154, 158, 0.8) 0%, rgba(250, 208, 196, 0.8) 100%); */
	animation: magicPulse 2s infinite;
	z-index: 1;
}

/* 额外的小星星装饰 */
.ai-assistant-float::before {
	content: '★';
	position: absolute;
	top: 5px;
	left: 5px;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.8);
	animation: starTwinkle 3s infinite;
}

@keyframes floatMagic {

	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}

	25% {
		transform: translateY(-8px) rotate(5deg);
	}

	75% {
		transform: translateY(-4px) rotate(-5deg);
	}
}

@keyframes magicPulse {
	0% {
		transform: scale(0.9);
		opacity: 0.7;
	}

	50% {
		transform: scale(1.1);
		opacity: 0.3;
	}

	100% {
		transform: scale(0.9);
		opacity: 0.7;
	}
}

@keyframes sparkle {

	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.3);
		opacity: 0.8;
	}
}

@keyframes starTwinkle {

	0%,
	100% {
		opacity: 0.5;
		transform: scale(1);
	}

	50% {
		opacity: 1;
		transform: scale(1.2);
	}
}

/* 悬停效果 */
.ai-assistant-float:hover {
	transform: scale(1.1) rotate(10deg);
	box-shadow: 0 8px 25px rgba(255, 154, 158, 0.6);
}