
html, * {-webkit-user-select:text!important; -moz-user-select:text!important;}
/*下方这句不动它，翻译开始*/

* {
	padding: 0;
	margin: 0;
	font-size: 1rem;
}

/*翻译主页整体样式 
文本对齐︰ 中心;
背景色︰ #f1f6ee 
使用夜间默认时修改为#000000即可
*/

body {
	text-align: center;
    /*background-image:none !important;已有效果代码，上行可赋空。常规可换图片地址('img/bg.jpg') !important*/
    background-size: 100% !important;
    background-repeat: no-repeat;
 	background-color: #ffffff;
/*可删上面的固定句语*/
}

/*翻译
搜索栏字体样式 
宽度︰ 90%;
高度︰ 40px;
背景颜色︰ 透明;
边境︰ 无;
大纲︰ 0;
字体大小︰ 16px;
字体颜色: #4a4266;
填充︰ 0 10px;
边界半径︰ 50px
*/

/* 搜索模块样式 */
#content {
    width: 100%;
    padding: 25px 0 15px;
}

.search_part {
    margin-bottom: 10px;
}

.search_bar {
    box-shadow: 0 0 5px rgba(70, 70, 40, 0.3); /* 阴影透明度降低，适配透明背景 */
    animation: fadeIn 2.5s;
    background-color: rgba(255, 255, 255, 0.15) !important; /* 搜索框背景半透明 */
    border-radius: 8px; /* 圆角优化 */
    display: table;
    vertical-align: middle;
    width: 90%;
    max-width: 55rem;
    margin: 10px auto;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px); /* 毛玻璃效果，提升视觉体验 */
    -webkit-backdrop-filter: blur(5px); /* 兼容webkit内核 */
}

#search_submit {
    outline: none;
    height: 40px;
    float: right;
    color: #4a4266;
    font-size: 1.5rem;
    font-weight: 500;
    border: none;
    background-color: transparent;
    padding: 0 13px;
    cursor: pointer;
    /* 搜索按钮按压反馈 */
    transition: transform 0.1s ease, opacity 0.1s ease;
}

#search_submit:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.search_bar span {
    display: block;
    font-size: 0.75rem;
    overflow: hidden;
    padding-left: 2px;
    margin-right: 42px;
    vertical-align: middle;
}

/* 清除按钮样式优化 */
.search_bar span i#clear {
    display: none;
    float: right;
    width: 35px;
    height: 40px;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5IDYuNDFMMTcuNTkgNSIDEyIDEwLjU5IDYuNDEgNSA1IDYuNDEgMTAuNTkgMTIgNSAxNy41OSA2LjQxIDE5IDEyIDEzLjQxIDE3LjU5IDE5IDE5IDE3LjU5IDEzLjQxIDEyTTEyIDE1YzEuNjYgMCAzLTEuMzQgMy0zcy0xLjM0LTMtMy0zLTNhMyAzIDAgMCAwIDAgNnoiIGZpbGw9IiM3MEM5MzMiLz48L3N2Zz4=) no-repeat center;
    background-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.search_bar span i#clear:active {
    transform: scale(0.9);
    opacity: 0.7;
}

.search_bar .si {
    margin: 0 38px 0 10px;
}

#search_input {
    width: 95%;
    height: 40px;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1.5rem;
    color: #70DB93;
    padding: 0 10px;
    border-radius: 50px;
}

/* 百度搜索占位符样式 */
#search_input::placeholder {
    color: #99ccaa;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 搜索建议样式 - 背景半透明 */
#suggest {
    position: absolute;
    left: -1px;
    right: -1px;
    top: 40px;
    border: 1px solid rgba(204, 204, 204, 0.3);
    background: rgba(255, 255, 255, 0.9); /* 建议面板背景半透明 */
    line-height: 40px;
    z-index: 10;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#suggest ul#suglist {
    list-style: none;
}

#suggest li {
    border-bottom: 1px solid rgba(238, 238, 238, 0.5);
    text-align: left;
    padding-left: 16px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s ease;
}

#suggest li:last-child {
    border-bottom: none;
}

#suggest li:hover, #suggest li:active {
    background: rgba(245, 245, 245, 0.8);
}

#suggest li b {
    float: right;
    width: 44px;
    height: 40px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAI5JREFUSEtjZCACLF261J6RkbELpPT///9l0dHRB4nQRlgJ0ODny5Yt+w/CIDZhHUSqgBkKo4nURljZqMHwMBohQQFK/ECvnkT3LgX8kyAzGZATPwWGgTMPSiYCGvyEWgYiGfyEAcjxoKaroWZ5EM52QBUjJLkRExajQUH7Qgg5E4HYxMQLUWpgmYiUxA8AOdLMz+iDKvIAAAAASUVORK5CYII=) no-repeat scroll center center transparent;
    background-size: 11px;
}

#suggest .close {
    text-align: right;
    font-size: 14px;
    color: #888;
    padding-right: 12px;
    cursor: pointer;
    border-top: 1px solid rgba(238, 238, 238, 0.5);
    transition: background-color 0.2s ease, color 0.2s ease;
}

#suggest .close:hover {
    color: #555;
    background: rgba(249, 249, 249, 0.8);
}

#suggest .close:active {
    background: rgba(238, 238, 238, 0.8);
    transform: scale(0.98);
}

#content {
	width: 100%;
	text-align: center;
	padding-top: 25px;
	padding-bottom: 15px;
}

/*翻译
书签框架样式
-webkit 动画︰ fadeInDown 1s;
动画︰ fadeInDown 1s;
位置︰ 相对应;
显示︰ 显示在内部;
宽度︰ 75px;
边境︰ 0;
*/
/* 特殊链接容器（书签、历史、主页收集）- 居中显示 */
.special-links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    margin: 0 auto;
    max-width: 400px; /* 限制宽度，确保居中紧凑 */
}

.box {
    animation: fadeInDown 1s;
    position: relative;
    display: inline-block;
    width: 75px;
    border: 0;
    cursor: pointer;
    /* 核心：添加按压反馈基础样式 + 背景半透明，移除box-shadow */
    background-color: transparent;
    transition: all 0.15s ease;
    transform-origin: center center;
    border-radius: 8px;
    padding: 8px 4px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* 鼠标悬停效果（桌面端）- 移除阴影，仅保留背景和位移变化 */
.box:hover {
    transform: translateY(-2px);
    background-color: transparent;
}

/* 按压效果（点击/触摸）- 移除阴影变化 */
.box:active {
    transform: scale(0.92) translateY(0);
    opacity: 0.85;
    background-color: transparent;
}

/* 修复a标签覆盖层，确保点击生效 */
.box a {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1; /* 确保a标签在最上层，不遮挡点击 */
}

/* 图标样式 - 移除所有阴影相关属性，确保边缘无阴影 */
.icon {
    width: 3rem;
    height: 3rem;
    max-width: 4.5rem;
    object-fit: contain;
    transition: all 0.1s ease;
    /* 明确移除图标可能的阴影/描边 */
    box-shadow: none !important;
    filter: drop-shadow(0 0 0 transparent) !important;
    border: none !important;
    outline: none !important;
}

.box:active .icon {
    transform: scale(0.95);
    filter: brightness(0.9) drop-shadow(0 0 0 transparent) !important;
}

/* 文字按压反馈 */
.url {
    color: #70DB93;
    height: 1.5rem;
    line-height: 1.5rem;
    width: 4.5rem;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    margin: auto;
    border-radius: 0 5px 5px 0;
    text-overflow: ellipsis;
    padding: 3px 0 0.5rem;
    transition: color 0.1s ease;
}

.box:active .url {
    color: #5cb878; /* 按压时文字颜色加深 */
}



/* 一言模块样式 - 背景半透明 */
#app-items {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    color: #70DB93;
    font-size: 1rem;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* 今日诗词模块 - 楷书样式 + 布局优化 + 背景半透明 */
.poem-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 15px 20px;
    background-color: transparent;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#poem_sentence, #poem_info {
    color: #70DB93;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0.5rem auto;
    max-width: 600px;
    transition: all 0.2s ease;
    /* 楷书字体设置（优先系统楷书，其次备选） */
    font-family: "楷体", "KaiTi", "STKaiti", "SimKai", "AR PL UKai CN", "AR PL UKai HK", "AR PL UKai TW", "AR PL UKai TW MBE", "AR PL KaitiM GB", "KaiTi TC", "KaiTi SC", serif;
}

#poem_sentence {
    font-size: 1.4rem; /* 诗句字号稍大 */
    font-weight: 500;
}

#poem_info {
    font-size: 1rem; /* 作者/朝代字号稍小 */
    opacity: 0.9;
}

#timeshow{width:100%; height:3.5rem; line-height:5rem;color: #70DB93;}

/*翻译:以下为页面效果，千万勿动！！！*/
@-webkit-keyframes flipInX {
	0% {
		-webkit-transform: perspective(400px) rotateX(90deg);
		transform: perspective(400px) rotateX(90deg);
		opacity: 0
	}

	40% {
		-webkit-transform: perspective(400px) rotateX(-10deg);
		transform: perspective(400px) rotateX(-10deg)
	}

	70% {
		-webkit-transform: perspective(400px) rotateX(10deg);
		transform: perspective(400px) rotateX(10deg)
	}

	100% {
		-webkit-transform: perspective(400px) rotateX(0);
		transform: perspective(400px) rotateX(0);
		opacity: 1
	}
}

@keyframes flipInX {
	0% {
		-webkit-transform: perspective(400px) rotateX(90deg);
		-ms-transform: perspective(400px) rotateX(90deg);
		transform: perspective(400px) rotateX(90deg);
		opacity: 0
	}

	40% {
		-webkit-transform: perspective(400px) rotateX(-10deg);
		-ms-transform: perspective(400px) rotateX(-10deg);
		transform: perspective(400px) rotateX(-10deg)
	}

	70% {
		-webkit-transform: perspective(400px) rotateX(10deg);
		-ms-transform: perspective(400px) rotateX(10deg);
		transform: perspective(400px) rotateX(10deg)
	}

	100% {
		-webkit-transform: perspective(400px) rotateX(0);
		-ms-transform: perspective(400px) rotateX(0);
		transform: perspective(400px) rotateX(0);
		opacity: 1
	}
}

@-webkit-keyframes fadeIn {
	0% {
		opacity: 0
	}

	100% {
		opacity: 1
	}
}

@keyframes fadeIn {
	0% {
		opacity: 0
	}

	100% {
		opacity: 1
	}
}

@-webkit-keyframes fadeInDown {
	0% {
		opacity: 0;
		-webkit-transform: translateY(-20px);
		transform: translateY(-20px)
	}

	100% {
		opacity: 1;
		-webkit-transform: translateY(0);
		transform: translateY(0)
	}
}

@keyframes fadeInDown {
	0% {
		opacity: 0;
		-webkit-transform: translateY(-20px);
		-ms-transform: translateY(-20px);
		transform: translateY(-20px)
	}

	100% {
		opacity: 1;
		-webkit-transform: translateY(0);
		-ms-transform: translateY(0);
		transform: translateY(0)
	}
}

canvas {
    padding:0;
    margin:0;
    position: absolute;
    z-index: -1;
    left:0px;
}
