﻿@charset "utf-8";
html,
body {
	margin: 0;
	padding: 0;
	background: #f4f4f4;
}
.mt30 {
	margin-top: 30px;
}
.mt60 {
	margin-top: 60px;
}

.new_banner {
	width: 100%;
	border-radius: 5px;
	max-width: 1720px;
}
.new_banner_left {
	width: 100%;
	border-radius: 5px;
	height: 310px;
	background: url(../img/banner_search.png) center no-repeat;
	position: relative;
}
.new_banner_right {
	width: 300px;
	display: flex;
	flex-wrap: wrap;
}
.banner_right_item {
	width: calc((100% - 20px) / 2);
	height: calc((100% - 20px) / 2);
	border-radius: 5px;
	overflow: hidden;
	cursor: pointer;
}
.new_banner_left .banner_search_box {
	width: 560px;
	position: absolute;
	left: 50%;
	top: 135px;
	transform: translate(-50%, 0);
}
.new_banner_left .banner_search_box .input_box {
	width: 100%;
	height: 42px;
	background: #fff;
	border-radius: 4px;
	float: left;
}
.new_banner_left .banner_search_box .search_input {
	color: #666;
	width: 90%;
	height: 42px;
	padding: 0 20px;
	box-sizing: border-box;
	border: none;
	border-radius: 4px;
	float: left;
}
.new_banner_left .banner_search_box .search_btn {
	color: #7d8ba5;
	text-align: center;
	width: 10%;
	height: 42px;
	padding: 0 20px;
	box-sizing: border-box;
	border: none;
	border-radius: 4px;
	background: none;
	float: left;
	cursor: pointer;
}
.new_banner_left .banner_search_box .search_btn i {
	font-size: 24px;
}
.new_banner_left .banner_search_box .hot {
	text-align: center;
	width: 100%;
	height: 50px;
	line-height: 50px;
	float: left;
}
.new_banner_left .banner_search_box .hot a {
	color: #fff;
	margin: 0 10px;
}
.new_banner_left .banner_search_box .open_box {
	width: 100%;
	padding: 10px 20px;
	background: #fff;
	box-sizing: border-box;
	border-radius: 4px;
	box-shadow: #cacaca 0px 5px 5px;
	position: absolute;
	top: 43px;
	left: 0px;
	z-index: 99;
	display: none;
}
.new_banner_left .banner_search_box .open_box .titie {
	color: #8693ab;
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.new_banner_left .banner_search_box .open_box .titie em {
	font-style: normal;
	cursor: pointer;
}
.new_banner_left .banner_search_box .open_box .history {
	width: 100%;
	padding: 15px 0;
	border-bottom: 1px solid #ebeef5;
	display: inline-block;
}
.new_banner_left .banner_search_box .open_box .history a {
	color: #666;
	height: 30px;
	line-height: 30px;
	margin-right: 10px;
	background: #f1f2f4;
	padding: 0 15px;
	border-radius: 3px;
	display: inline-block;
}
.new_banner_left .banner_search_box .open_box .hot_list {
	width: 100%;
	display: inline-block;
}
.new_banner_left .banner_search_box .open_box .hot_list li {
	width: 25%;
	height: 18px;
	line-height: 18px;
	margin-top: 15px;
	float: left;
	overflow: hidden;
}
.new_banner_left .banner_search_box .open_box .hot_list li span {
	color: #fff;
	text-align: center;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	background: #bbbdc3;
	margin-right: 10px;
	float: left;
}
.new_banner_left .banner_search_box .open_box .hot_list li:first-child span {
	background: #fa2323;
}
.new_banner_left .banner_search_box .open_box .hot_list li:nth-child(2) span {
	background: #f96302;
}
.new_banner_left .banner_search_box .open_box .hot_list li:nth-child(3) span {
	background: #ff9306;
}

.new_banner_right .banner_right_item img {
	width: 100%;
	height: 100%;
}
.banner_right_item:nth-child(1) {
	margin: 0 20px 20px 0 !important;
}
.banner_right_item:nth-child(2) {
	margin: 0 0 20px 0 !important;
}
.banner_right_item:nth-child(3) {
	margin: 0 20px 0px 0 !important;
}
.banner_right_item:nth-child(4) {
	margin: 0 0 0px 0 !important;
}
.new_banner_left .swiper-container .swiper-wrapper .swiper-slide {
	width: 100%;
	height: 100%;
}
.new_banner_left .swiper-container .swiper-wrapper .swiper-slide img {
	width: auto;
	height: 100%;
}
.five {
	width: 100%;
	margin: 20px auto;
	box-shadow: 0px 2px 11px 0px rgba(0, 87, 255, 0.24);
	border-radius: 4px;
	display: flex;
}
.five_item {
	width: calc(100% / 5);
	height: 150px;
	padding-left: 20px;
	box-sizing: border-box;
	padding-top: 30px;
}
.five_item:hover {
	cursor: pointer;
	box-shadow: 0px 2px 11px 0px rgba(0, 87, 255, 0.24);
}
.five_item:hover .item_t {
	color: #0057ff !important;
}
.five_item:hover .item_desc {
	color: #0057ff !important;
}
.item_img_font {
	display: flex;
}

.five .five_item .item_img_font .item_img {
	width: 60px;
	height: 60px;
	margin-right: 30px;
}

.five .five_item .item_img_font .item_font .item_t {
	color: #171717;
	font-size: 20px;
	font-weight: bold;
	margin: 0;
}
.five .five_item .item_img_font .item_font .item_desc {
	color: #000000;
	font-size: 14px;
	padding-top: 10px;
}
.item_bot_font {
	display: flex;
}
.item_bot_font a {
	font-size: 12px;
	color: #a8a8a8;
	margin-right: 10px;
	margin-top: 15px;
	display: block;
	cursor: pointer;
}
.item_bot_font a:hover {
	color: #0057ff;
}
.xmt {
	background: url(../img/xmt.svg);
	background-size: 100% 100%;
}
.tb {
	background: url(../img/tb.svg);
	background-size: 100% 100%;
}
.ad {
	background: url(../img/ad.svg);
	background-size: 100% 100%;
}
.sj {
	background: url(../img/sj.svg);
	background-size: 100% 100%;
}
.gif {
	background: url(../img/gif.svg);
	background-size: 100% 100%;
}
.new_content .new_listitems {
	position: relative;
	width: 100%;
}
.new_content .new_listitems .new_item {
	width: calc((100% - 60px) / 4);
	height: auto;
	margin: 0 20px 20px 0;
}
.new_content .new_listitems .new_item:nth-child(4n) {
	margin-right: 0 !important;
}
.new_content .new_listitems .new_item:hover {
	box-shadow: 0px 2px 11px 0px rgba(0, 87, 255, 0.24);
	cursor: pointer;
}
.new_content .new_listitems .new_item .new_item_img {
	position: relative;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
}
.new_content .new_listitems .new_item .new_item_img img {
	width: 100%;
}
.new_content .new_listitems .new_item .new_item_txt {
	margin: 10px 0;
}
.new_content .new_listitems .new_item .new_item_txt a {
	padding: 0 20px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	font-size: 16px;
	color: #666;
	text-align: center;
	display: block;
}

.keywords_block {
	width: 100%;
	display: flex;
}
.keywords_block .keywords_box {
	width: calc(100% / 3);
	padding-left: 30px;
	box-sizing: border-box;
}
.keywords_block .keywords_box:first-child {
	padding-left: 0px;
}
.keywords_block .keywords_box:last-child .keywords_list {
	border-right: none;
}
.keywords_block .keywords_box:last-child .keywords_list a {
	width: calc(100% / 6);
}
.keywords_block .keywords_box .keywords_title {
	width: 100%;
	line-height: 40px;
	font-size: 15px;
	font-weight: bold;
	padding-left: 30px;
	box-sizing: border-box;
}
.keywords_block .keywords_box .keywords_title.i1 {
	background: url(../img/image_new/ico_01.png) left no-repeat;
}
.keywords_block .keywords_box .keywords_title.i2 {
	background: url(../img/image_new/ico_02.png) left no-repeat;
}
.keywords_block .keywords_box .keywords_title.i3 {
	background: url(../img/image_new/ico_03.png) left no-repeat;
}
.keywords_block .keywords_box .keywords_list {
	width: 100%;
	height: 50px;
	line-height: 25px;
	border-right: 1px solid #f7f7f7;
	margin-top: 5px;
	padding-right: 15px;
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
}
.keywords_block .keywords_box .keywords_list a {
	color: #222;
	font-size: 13px;
	width: 25%;
	height: 25px;
	line-height: 25px;
	padding-right: 5px;
	box-sizing: border-box;
	overflow: hidden;
}

.project_block {
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.project_block .project_box {
	color: #111;
	font-size: 18px;
	font-weight: bold;
	width: 15.5%;
	height: 98px;
	line-height: 98px;
	box-shadow: #f4f4f4 0px 0px 5px;
	border-radius: 3px;
	display: flex;
	align-items: center;
	word-break: keep-all;
	overflow: hidden;
}
.project_block .project_box:hover {
	box-shadow: #ddd 0px 3px 10px;
}
.project_block .project_box img {
	width: 55px;
	height: 55px;
	margin: 0 10%;
}

/*长尾词页*/
.longwords_list {
	/*width: 1200px;*/
	/*min-width: 1200px;*/
	padding: 10px 0;
}
.longwords_list a {
	padding: 0 12px;
	height: 30px;
	line-height: 30px;
	display: block;
	float: left;
	margin: 7px 15px 7px 0;
	border-radius: 3px;
	color: #666;
	background: #e8e8e8;
	border: 1px solid #fafafa;
	font-size: 13px;
}
.longwords_list a:hover {
	background: #039;
	color: #fff;
}

/* 首页精选专题 */
.project_block2 {
	width: 100%;
	margin: 10px 0 30px 0;
	display: flex;
	overflow: hidden;
}
.project_block2 li {
	width: 15.6%;
	height: 0px;
	padding-bottom: 7.7%;
	margin-right: 1.25%;
	position: relative;
	flex-shrink: 0;
}
.project_block2 li:last-child {
	margin-right: 0;
}
.project_block2 img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	left: 50%;
	top: 50%;
	position: absolute;
	transform: translate(-50%, -50%);
}
.goinfo:hover {
	cursor: pointer;
}

/* 首页AI生成图片 */
.ai_ai_container {
	width: 100%;
	max-width: 1100px;
	border-radius: 8px;
	border: 1px solid #ebeced;
	box-sizing: border-box;
	margin: 0 auto;
	position: relative;
}

.ai_img_title {
	width: 100%;
	font-size: 18px;
	color: #333;
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	position: relative;
}
.ai_img_title.title2 {
	font-size: 16px;
	align-items: flex-start;
}
.ai_img_title.title2 h3 {
	color: #111;
	font-size: 16px;
	font-weight: bold;
	margin-top: 20px;
}
.ai_img_title > div {
	display: flex;
	align-items: center;
}
.ai_img_title > div > h2 {
	color: #111;
	font-size: 32px;
	font-weight: bold;
}
.ai_img_title .buy_point {
	color: #0772fc;
	font-size: 14px;
	margin-left: 16px;
	position: absolute;
	right: 50%;
	bottom: 0;
	transform: translateX(550px);
	display: flex;
	align-items: center;
	cursor: pointer;
}
.ai_img_title .buy_point i {
	font-size: 16px;
	margin-left: 5px;
}

.ai_img_title > div > a {
	color: #0772fc;
	background: #f0f7ff;
	border: 1px solid #d4e4fa;
	border-radius: 34px;
	padding: 6px 14px;
	font-size: 14px;
	margin-left: 16px;
}
.ai_img_title > p {
	color: #97a3c8;
	font-size: 14px;
	margin-top: 10px;
}

/* 主内容区域 - 左右布局 */
.ai_main_content {
	padding: 20px 30px;
	display: flex;
}

/* 左侧预览区 */
.ai_preview_area {
	width: 80px;
	margin-right: 20px;
	display: flex;
	align-items: center;
	justify-content: left;
}

.ai_image_preview {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
}

.ai_upload_placeholder {
	text-align: center;
	transition: all 0.3s ease;
}

.ai_upload_placeholder:hover {
	transform: scale(1.05);
}

.ai_add_icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 15px;
	background: #f8fafc url(../img/generate_img/generate_img05.png) center no-repeat;
	border: 1px dashed #d0d7e3;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: #8c98a0;
	transition: all 0.3s ease;
}

.ai_upload_text {
	font-size: 14px;
	color: #8b9dc3;
}

/* 图片堆叠容器 */
.ai_image_stack {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	/* 给容器一个最小尺寸 */
	min-width: 80px;
	min-height: 100px;
}

/* 堆叠的图片项 - 容器100*80，图片80*80，右侧留20px间隙防止hover丢失 */
.ai_stack_item {
	position: absolute;
	width: 100px;
	height: 80px;
	border-radius: 8px;
	overflow: visible;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	cursor: pointer;
}

.ai_stack_item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	display: block;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 默认堆叠状态 - 每个图片错开角度和位置 */
.ai_image_stack:not(:hover) .ai_stack_item {
	transform-origin: center center;
	transform: rotate(var(--rotate-stack, 0deg));
}

/* 超过5张的图片降低透明度 */
.ai_image_stack:not(:hover) .ai_stack_item:nth-child(n + 6) {
	opacity: 0.5;
}

/* 悬停时展开所有图片 - 线性展开 */
.ai_image_stack:hover .ai_stack_item {
	opacity: 1 !important;
	transform: translate(var(--translate-hover), 0) scale(1) !important;
	display: block;
}

.ai_image_stack:hover .ai_stack_item img {
	box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

/* 删除按钮 */
.ai_stack_delete {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	background: rgba(0, 0, 0, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 10;
	backdrop-filter: blur(5px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ai_stack_item:hover .ai_stack_delete,
.ai_image_stack:hover .ai_stack_delete {
	opacity: 1;
}

.ai_stack_delete:hover {
	background: rgba(239, 68, 68, 0.95);
	border-color: rgba(255, 255, 255, 0.4);
	transform: scale(1.15);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* 添加更多按钮 */
.ai_stack_add {
	position: absolute;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	border: 1px dashed rgba(0, 212, 255, 0.5);
	background: rgba(0, 212, 255, 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	color: #00d4ff;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: -10;
	transform-origin: center center;
}

/* 悬停时添加按钮位置 - 跟随展开 */
.ai_image_stack:hover .ai_stack_add {
	transform: translate(var(--translate-hover), 0) scale(1) !important;
	z-index: 11;
}

.ai_stack_add:hover {
	border-color: #00d4ff;
	background: rgba(0, 212, 255, 0.1);
	transform: scale(1.05);
}

/* 右侧控制区域 */
.ai_control_area {
	flex: 1;
	display: flex;
}

.ai_prompt_text {
	width: 100%;
	height: 120px;
	font-size: 16px;
	color: #333;
	border: none;
	box-sizing: border-box;
	resize: none;
	font-family: inherit;
	transition: all 0.3s ease;
}

.ai_prompt_text::placeholder {
	color: #999;
}

/* 分辨率包装器 */
.ai_resolution_wrapper {
	position: relative;
}

/* 设置下拉菜单 */
.ai_settings_dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: #fff;
	backdrop-filter: blur(10px);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	min-width: 520px;
	max-width: 600px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	z-index: 300;
	animation: ai_slideUp 0.3s ease;
	padding: 20px;
}

.ai_settings_dropdown.show {
	display: block;
}

/* 设置下拉菜单内的标题 */
.ai_settings_dropdown .ai_section_title {
	font-size: 13px;
	color: #666;
	margin-bottom: 12px;
	font-weight: 400;
}

/* 设置下拉菜单内的比例网格 */
.ai_settings_dropdown .ai_ratio_grid {
	padding: 2px;
	background: #f5f5f5;
	border-radius: 4px;
	display: grid;
	grid-template-columns: repeat(9, 1fr);
}

/* 设置下拉菜单内的分辨率网格 */
.ai_settings_dropdown .ai_resolution_grid {
	padding: 2px;
	background: #f5f5f5;
	border-radius: 4px;
	display: flex;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

/* 设置下拉菜单内的比例和分辨率部分 */
.ai_settings_dropdown .ai_ratio_section,
.ai_settings_dropdown .ai_resolution_section,
.ai_settings_dropdown .ai_output_section {
	margin-bottom: 20px;
}

.ai_settings_dropdown .ai_output_section {
	margin-bottom: 0;
}

.ai_section_title {
	font-size: 13px;
	color: #666;
	margin-bottom: 12px;
	font-weight: 400;
}

/* 比例网格 */
.ai_ratio_grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
}

.ai_ratio_item {
	background: #f5f5f5;
	padding: 12px 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ai_ratio_item:hover {
	border-color: #0772fc;
	background: #e8f4ff;
}

.ai_ratio_item.active {
	background: #fff;
	border-color: #0772fc;
}

.ai_ratio_item[data-ratio='intelligent'].active {
	background: linear-gradient(135deg, #e8f0ff 0%, #f0e8ff 100%);
	border-color: #0772fc;
	box-shadow: 0 0 10px rgba(7, 114, 252, 0.2);
}

.ai_ratio_icon {
	margin: 0 auto 6px;
	border: 1px solid #999;
	border-radius: 1px;
	background: transparent;
}

/* 智能比例图标 - 渐变背景 */
.ai_ratio_icon.ratio_intelligent {
	width: 16px;
	height: 16px;
	border: none;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 2px;
	position: relative;
}
.ai_ratio_icon.ratio_intelligent::after {
	content: '✦';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 8px;
}

/* 21:9 超宽屏 */
.ai_ratio_icon.ratio_21_9 {
	width: 18px;
	height: 8px;
}

/* 16:9 宽屏 */
.ai_ratio_icon.ratio_16_9 {
	width: 16px;
	height: 9px;
}

/* 3:2 */
.ai_ratio_icon.ratio_3_2 {
	width: 15px;
	height: 10px;
}

/* 4:3 */
.ai_ratio_icon.ratio_4_3 {
	width: 14px;
	height: 11px;
}

/* 1:1 正方形 */
.ai_ratio_icon.ratio_1_1 {
	width: 12px;
	height: 12px;
}

/* 3:4 */
.ai_ratio_icon.ratio_3_4 {
	width: 11px;
	height: 14px;
}

/* 2:3 */
.ai_ratio_icon.ratio_2_3 {
	width: 10px;
	height: 15px;
}

/* 9:16 竖屏 */
.ai_ratio_icon.ratio_9_16 {
	width: 9px;
	height: 16px;
}

/* 5:4 */
.ai_ratio_icon.ratio_5_4 {
	width: 15px;
	height: 12px;
}

/* 4:5 */
.ai_ratio_icon.ratio_4_5 {
	width: 12px;
	height: 15px;
}

/* 选中状态下图标边框变蓝 */
.ai_ratio_item.active .ai_ratio_icon {
	border-color: #0772fc;
}
.ai_ratio_item:hover .ai_ratio_icon {
	border-color: #0772fc;
}

.ai_ratio_label {
	font-size: 11px;
	color: #333;
	font-weight: 500;
}

/* 分辨率网格 */
.ai_resolution_grid {
	display: flex;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.ai_resolution_item {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #333;
	font-size: 14px;
	position: relative;
	flex: 1;
}

.ai_resolution_item:hover {
	background: #fff;
}

.ai_resolution_item.active {
	background: #fff;
	color: #333;
}

/* 生成数量网格 */
.ai_output_grid {
	padding: 2px;
	background: #f5f5f5;
	border-radius: 4px;
	display: flex;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.ai_output_item {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	color: #333;
	font-size: 14px;
	position: relative;
	flex: 1;
}

.ai_output_item:hover {
	background: #fff;
}

.ai_output_item.active {
	background: #fff;
	color: #333;
}

.ai_badge {
	position: absolute;
	top: 6px;
	right: 6px;
	background: #0772fc;
	color: #fff;
	font-size: 9px;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 500;
}

/* 底部控制栏 */
.ai_footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0px 25px 18px 25px;
}

.ai_footer_left {
	display: flex;
	align-items: center;
	gap: 18px;
}
.ai_footer_right {
	display: flex;
	align-items: center;
}
.ai_footer_right .count {
	color: #0772fc;
	font-size: 14px;
	padding: 4px 12px;
	background: #f0f7ff;
	border: 1px solid #d4e4fa;
	border-radius: 40px;
	margin-right: 20px;
}

/* 模型选择按钮 */
.ai_model_wrapper {
	position: relative;
}

.ai_model_btn {
	color: #0772fc;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f0f7ff;
	border: 1px solid #e3e8f0;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	user-select: none;
}

.ai_model_btn:hover {
	background: #e0f0ff;
	border-color: #00d4ff;
	box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.ai_model_btn * {
	pointer-events: none;
}

.ai_model_name {
	color: #0772fc;
	font-size: 13px;
	font-weight: 500;
}

.ai_arrow {
	color: #64748b;
	font-size: 9px;
	transition: transform 0.3s ease;
}

.ai_arrow.small {
	font-size: 8px;
}

/* 模型下拉菜单 */
.ai_model_dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	backdrop-filter: blur(10px);
	border-radius: 12px;
	min-width: 200px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	z-index: 300;
	animation: ai_slideUp 0.3s ease;
}

.ai_model_dropdown.show {
	display: block;
}

.ai_dropdown_title {
	padding: 12px 16px;
	color: #000;
	font-size: 14px;
	border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.ai_model_option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ai_model_option:hover {
	background: rgba(0, 212, 255, 0.1);
}

.ai_model_option.active {
	background: rgba(0, 212, 255, 0.2);
}

/* 选项区域 */
.ai_options {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ai_resolution_display {
	color: #666;
	display: flex;
	align-items: center;
	background: #f3f4f5;
	border: 1px solid #e3e8f0;
	gap: 5px;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 4px;
	transition: all 0.3s ease;
	user-select: none;
}

.ai_resolution_display:hover {
	background: #e0f0ff;
	box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.ai_resolution_display * {
	pointer-events: none;
}
.ai_resolution_display #ratioText {
	padding-right: 10px;
	position: relative;
}
.ai_resolution_display #ratioText::after {
	content: '';
	width: 1px;
	height: 10px;
	background: #ccc;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

/* 生成按钮 */
.ai_generate_btn {
	color: #fff;
	font-size: 16px;
	width: 130px;
	height: 40px;
	background: #0772fc;
	border: none;
	border-radius: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.ai_generate_btn::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transform: rotate(45deg);
	animation: ai_shine 3s infinite;
}

.ai_generate_btn:hover {
	transform: scale(1.05);
}

.ai_generate_btn:active {
	transform: scale(0.95);
}
.ai_generate_btn span {
	font-size: 16px;
	margin-left: 5px;
}

.ai_record_history {
	width: 100%;
	height: 30px;
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: right;
	position: relative;
}
.ai_record_history .history_btn {
	height: 30px;
	background: #f3f4f9;
	border-radius: 30px;
	padding: 0 15px;
	display: flex;
	align-items: center;
	cursor: pointer;
	position: absolute;
	right: 0;
	top: 0;
}
.ai_record_history .history_btn span {
	height: 30px;
	line-height: 30px;
	background: url(../img/generate_img/generate_img06.png) left no-repeat;
	padding-left: 20px;
}

.ai_history_block {
	display: none;
}
.ai_history_block.show {
	display: block;
	animation: ai_fadeIn 0.3s ease;
}
.ai_history_box {
	width: 100%;
	border-radius: 16px;
	border: 1px solid #ebeced;
	box-shadow: 0px 0px 6px 4px rgba(0, 0, 0, 0.03);
	padding: 20px 25px;
	box-sizing: border-box;
}
.ai_history_box ul {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 30px;
}
.ai_history_box ul li {
	width: calc((100% - 120px) / 4);
	max-width: 240px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.ai_history_box ul li img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	border-radius: 3px;
	cursor: pointer;
}
.ai_history_box ul li > div {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-around;
	margin-top: 10px;
}
.ai_history_box ul li > div .download_btn {
	color: #222;
	font-size: 14px;
	height: 32px;
	line-height: 32px;
	padding: 0 15px 0 35px;
	border-radius: 4px;
	cursor: pointer;
	background: #f3f4f5 url(../img/generate_img/generate_img07.png) 15px no-repeat;
}
.ai_history_box ul li > div .generate_btn {
	color: #222;
	font-size: 14px;
	height: 32px;
	line-height: 32px;
	padding: 0 15px 0 35px;
	border-radius: 4px;
	cursor: pointer;
	background: #f3f4f5 url(../img/generate_img/generate_img08.png) 15px no-repeat;
}
.ai_history_box ul li .btn_box > div:hover {
	opacity: 0.8;
}
/* 正在生成/失败的占位图样式 */
.ai_history_box ul li .generating_placeholder {
	width: 100%;
	height: 240px;
	background: #fff;
	border-radius: 3px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #ddd;
}
.ai_history_box ul li .generating_placeholder span {
	color: #999;
	font-size: 14px;
}
.ai_history_box ul li.generating .generating_placeholder {
	animation: generating-pulse 1.5s ease-in-out infinite;
}
@keyframes generating-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.6;
	}
}
.ai_history_box ul li .generating_placeholder.failed {
	border-color: #ff6b6b;
	background: #fff5f5;
}
.ai_history_box ul li .generating_placeholder.failed span {
	color: #ff6b6b;
}
.ai_history_preview {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: none;
}
.ai_history_preview .preview_box {
	max-width: 80vw;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.ai_history_preview .preview_box img {
	max-width: 80vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ai_history_preview .preview_box .close {
	width: 40px;
	height: 40px;
	background: url(../img/generate_img/generate_close.png) center no-repeat;
	position: absolute;
	top: 0px;
	right: -60px;
	cursor: pointer;
}

.ai_generate_cover {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: none;
}
.ai_generate_cover .ai_generate_pop {
	width: 630px;
	background: #fff;
	border-radius: 12px;
	box-sizing: border-box;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
.ai_generate_cover .ai_generate_pop .ai_generate_title {
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	width: 100%;
	height: 60px;
	background: #8591b3;
	border-radius: 10px 10px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ai_generate_cover .ai_generate_pop .ai_generate_close {
	width: 13px;
	height: 13px;
	background: url(../img/generate_img/generate_close2.png) center no-repeat;
	position: absolute;
	top: 25px;
	right: 20px;
	cursor: pointer;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content {
	width: 100%;
	padding: 20px 40px;
	box-sizing: border-box;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li {
	width: 100%;
	margin: 20px 0;
	display: flex;
	align-items: center;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li > span {
	font-size: 16px;
	width: 80px;
	flex-shrink: 0;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_select {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_select .price_item {
	width: 145px;
	border: 2px solid #e0e3e9;
	border-radius: 5px;
	padding: 25px 0;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_select .price_item > span {
	color: #000;
	font-size: 22px;
	font-weight: bold;
	background: url(../img/generate_img/generate_img04.png) left no-repeat;
	padding-left: 30px;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_select .price_item > p {
	font-size: 16px;
	margin-top: 10px;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_select .price_item > p > strong {
	color: #ff4800;
	font-size: 28px;
	margin-right: 5px;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_select .price_item.slt {
	border: 2px solid #1594ff;
	background: url(../img/generate_img/generate_img09.png) right bottom no-repeat;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_num {
	font-size: 14px;
	color: #ff4800;
}
.ai_generate_cover .ai_generate_pop .ai_generate_content li .price_num strong {
	font-size: 30px;
}
.qr_block {
	width: 100%;
	padding-left: 80px;
	display: flex;
	align-items: center;
}
.qr_block .wx_box {
	width: 135px;
	margin-right: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.qr_block .wx_box .code {
	width: 100%;
	height: 135px;
	border: 1px solid #4bb414;
	border-radius: 5px;
	margin-bottom: 10px;
	padding: 10px;
	background: url(../img/generate_img/loading.svg) center no-repeat;
	box-sizing: border-box;
}
.qr_block .wx_box .code img {
	width: 100%;
	height: 100%;
}
.qr_block .wx_box span {
	padding-left: 25px;
	background: url(../img/generate_img/generate_img10.png) left no-repeat;
}
.qr_block .ali_box {
	width: 135px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.qr_block .ali_box .code {
	width: 100%;
	height: 135px;
	border: 1px solid #00a7e3;
	border-radius: 5px;
	margin-bottom: 10px;
	padding: 10px;
	background: url(../img/generate_img/loading.svg) center no-repeat;
	box-sizing: border-box;
}
.qr_block .ali_box .code img {
	width: 100%;
	height: 100%;
}
.qr_block .ali_box span {
	padding-left: 25px;
	background: url(../img/generate_img/generate_img11.png) left no-repeat;
}
.ai_agree {
	font-size: 14px;
	color: #666;
	padding-left: 80px;
}
.ai_agree a {
	color: #0772fc;
}
/* 生成中遮罩 */
.ai_generating_cover {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: inherit;
}
.ai_generating_spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ai_spin 1s linear infinite;
}
.ai_generating_text {
	margin-top: 16px;
	color: #fff;
	font-size: 16px;
}

/* 动画 */
@keyframes ai_fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ai_slideUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ai_shine {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

@keyframes ai_spin {
	to {
		transform: rotate(360deg);
	}
}
