@media screen and (max-width:768px) {
	*{margin:0;
	padding:0;
}
html,body {
	height:100%;
	width:100%;
}
/*内容样式，使用flex布局*/.content {
	width:15rem;
	display:flex;
	flex-direction:column;
	justify-content:space-around;
	align-items:center;
	/*height:46rem;
	*/position:absolute;
	top:5%;
}
/*搜索框总体样式*/.baidu {
	position:relative;
	width:14rem;
	height:2.6rem;
	left:50%;
	transform:translateX(-50%);
}
.baidu-2 {
	height:2.6rem;
	padding-top:20px;
}
/*取消多级搜索，只保留百度*/#Select-2 {
	position:absolute;
	left:0;
}
.Select-box-2 {
	display:none;
	float:none;
}
.Select-box-2 li {
	background-color:yellow;
	display:none;
	float:none;
}
/*输入框样式*/#kw-2 {
	/*width:10rem;
	*/height:1.2rem;
	border:0;
	position:absolute;
	padding-left:10px;
}
/*搜索框样式*/#su-2 {
	width:3rem;
	text-align:center;
	line-height:0rem;
	position:absolute;
	background-color:1890ff;
	border-color:blue;
	right:1rem;
	border-radius:0;
	height:1.2rem;
	border-radius:5px;
}
#su-2:hover {
	background-color:blue;
}
#su-2:avtive {
	background-color:blue;
	box-shadow:none;
}
/*content下的所有div宽度*/.content div {
	width:100%;
}
/*每个选择框的宽度*/.content li {
	width:4.69rem;
}
/*放弃content外的footer*/.footer {
	display:none;
}
/*关闭自定义按钮*/.zdy_button {
	display:none;
}
/*关闭天气*/.tianqi {
	display:none;
}
/*关闭背景遮罩*/.bg_img {
	display:none;
}
.bg_img .bg_mask {
	display:none;
}
/*移动端使用的footer*/.footer1 {
	display:block;
	text-align:center;
	position:relative;
	padding-top:10px;
	bottom:0;
	color:white;
}
input[type="button"],input[type="submit"],input[type="reset"] {
	-webkit-appearance:none;
}
textarea {
	-webkit-appearance:none;
}
}/* 功能按钮区布局 */
.function-buttons {
	position:fixed;
	top:20px;
	right:40px;
	display:flex;
	gap:15px;
}
/* 恢复默认按钮样式 */
.reset_button {
	width:40px;
	height:40px;
	border-radius:50%;
	background:rgba(255,255,255,0.2);
	display:flex;
	align-items:center;
	justify-content:center;
	cursor:pointer;
	transition:all 0.3s;
}
.reset_button:hover {
	background:rgba(255,255,255,0.3);
	transform:scale(1.1);
}
.reset_button img {
	width:24px;
	height:24px;
}
/* 恢复默认确认弹窗样式 */
.reset_confirm {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	display:flex;
	align-items:center;
	justify-content:center;
	z-index:9999;
}
.reset_content {
	width:350px;
	background:#fff;
	border-radius:8px;
	padding:20px;
	box-shadow:0 5px 15px rgba(0,0,0,0.3);
}
.reset_top {
	display:flex;
	justify-content:space-between;
	align-items:center;
	font-size:18px;
	font-weight:bold;
	margin-bottom:20px;
	padding-bottom:10px;
	border-bottom:1px solid #eee;
}
.reset_close {
	width:20px;
	height:20px;
	background:url(../img/close.jpg) no-repeat center;
	background-size:contain;
	cursor:pointer;
}
.reset_mid {
	text-align:center;
	margin-bottom:25px;
	font-size:16px;
}
.reset_foot {
	display:flex;
	justify-content:space-between;
}
.reset_cancel,.reset_confirm_btn {
	width:45%;
	text-align:center;
	padding:8px 0;
	border-radius:4px;
	cursor:pointer;
}
.reset_cancel {
	background:#f5f5f5;
	color:#333;
}
.reset_confirm_btn {
	background:#ff6b6b;
	color:#fff;
}
/* 移动端适配 */
@media (max-width:768px) {
	.function-buttons {
	right:20px;
	gap:10px;
}
.reset_button {
	width:36px;
	height:36px;
}
.reset_content {
	width:90%;
	max-width:300px;
}
}/* 分类标题样式（添加编辑功能） */
.jj-list-tit {
	position:relative;
	cursor:pointer;
	padding-right:30px;
	text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
	/* 给编辑图标留空间 */
}
/* 分类编辑图标（默认隐藏，hover显示） */
.category_edit_icon {
	position:absolute;
	right:10px;
	top:50%;
	transform:translateY(-50%);
	font-size:12px;
	color:#999;
	display:none;
	transition:all 0.2s;
}
.jj-list-tit:hover .category_edit_icon {
	display:inline-block;
	color:#666;
}
/* 分类编辑弹窗样式 */
.category_edit {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	display:flex;
	align-items:center;
	justify-content:center;
	z-index:9999;
}
.category_edit_content {
	width:350px;
	background:#fff;
	border-radius:8px;
	padding:20px;
	box-shadow:0 5px 15px rgba(0,0,0,0.3);
}
.category_edit_top {
	display:flex;
	justify-content:space-between;
	align-items:center;
	font-size:18px;
	font-weight:bold;
	margin-bottom:20px;
	padding-bottom:10px;
	border-bottom:1px solid #eee;
}
.category_edit_close {
	width:20px;
	height:20px;
	background:url(../img/close.jpg) no-repeat center;
	background-size:contain;
	cursor:pointer;
}
.category_edit_mid {
	margin-bottom:25px;
}
.category_edit_mid .zdy_input {
	width:100%;
	padding:10px;
	font-size:16px;
}
.category_edit_foot {
	display:flex;
	justify-content:space-between;
}
.category_edit_cancel,.category_edit_confirm {
	width:45%;
	text-align:center;
	padding:8px 0;
	border-radius:4px;
	cursor:pointer;
}
.category_edit_cancel {
	background:#f5f5f5;
	color:#333;
}
.category_edit_confirm {
	background:#409eff;
	color:#fff;
}
/* 移动端适配 */
@media (max-width:768px) {
	.category_edit_content {
	width:90%;
	max-width:300px;
}
}
/* 底部样式优化 */
.footer, .footer1 {
    padding: 20px 0;
    text-align: center;
    line-height: 1.8;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-divider {
    margin: 0 8px;
    color: inherit;
    opacity: 0.6;
}

.copyright {
    font-size: 12px;
    opacity: 0.8;
}

/* 移动端底部适配 */
@media (max-width: 768px) {
    .footer1 {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .footer1 .footer-divider {
        margin: 0 5px;
    }
    
    .footer1 .copyright {
        font-size: 11px;
        margin-top: 5px;
    }
}

/* PC端底部增强 */
@media (min-width: 769px) {
    .footer {
        font-size: 14px;
    }
    
    .footer a:hover {
        color: #ffffff;
        text-decoration: underline;
        transition: color 0.3s;
    }
}

/* 背景切换按钮（保持简洁） */
.bg_button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

.bg_button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2);
}

.bg_button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* 背景面板（核心优化：解决闪烁） */
.bg_panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden; /* 避免初始渲染闪烁 */
    transition: opacity 0.2s ease, visibility 0.2s ease; /* 统一过渡 */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px); /* 轻微毛玻璃，不夸张 */
}

/* 显示状态（无闪烁） */
.bg_panel.active {
    opacity: 1;
    visibility: visible;
}

/* 面板内容（极致简洁） */
.bg_panel_content {
    background: #fff;
    width: 400px;
    max-width: 92%;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(10px); /* 轻微位移增强过渡 */
    transition: transform 0.2s ease;
}

.bg_panel.active .bg_panel_content {
    transform: translateY(0);
}

/* 面板头部 */
.bg_panel_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.bg_panel_top span:first-child {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.bg_panel_close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.bg_panel_close:hover {
    color: #333;
    background: #f8f8f8;
}

/* 背景选项（简洁列表） */
.bg_option {
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.bg_option.active {
    border-left-color: #0271CD;
    background: #e8f4fd;
    color: #0271CD;
}

.bg_option:hover {
    background: #f2f2f2;
}

/* 自定义背景区域 */
.bg_custom_group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #eee;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-bottom: 10px;
}

/* 统一按钮样式 */
.zdy_b {
    border: none;
    background-color: #0271CD;
    color: #fff;
    /*padding: 8px 16px;*/
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.zdy_b:hover {
    background-color: #015ba0;
}

.upload-btn-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* URL输入行 */
.bg_url_row {
    display: flex;
    gap: 6px;
    width: 100%;
}

.bg_url_row input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.bg_url_row input:focus {
    outline: none;
    border-color: #0271CD;
}

/* 面板底部 */
.bg_panel_foot {
    margin-top: 16px;
    text-align: right;
}

.bg_reset {
    background-color: #666;
}

.bg_reset:hover {
    background-color: #444;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bg_button {
        width: 36px;
        height: 36px;
    }
    
    .bg_button img {
        width: 20px;
        height: 20px;
    }
    
    .bg_panel_content {
        padding: 14px;
    }
    
    .bg_url_row {
        flex-direction: column;
        gap: 8px;
    }
    
    .zdy_b {
        width: 100%;
        padding: 2px;
    }
}
/* 友情链接行间距优化 */
.footer-links + .footer-links {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1); /* 移动端分隔线 */
}

@media (min-width: 769px) {
    .footer-links + .footer-links {
        border-top-color: rgba(175, 175, 175, 0.2); /* PC端分隔线 */
    }
}