* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
}
#searchInput {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
}
html,
body {
	height: 100%;
}
body {
	background: #f0f2f6;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}
.setting-trigger {
	position: fixed;
	top: 24px;
	right: 24px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(0,0,0,0.35);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	font-size: 18px;
	transition: background 0.2s;
	z-index: 98;
}
.setting-trigger:hover {
	background: rgba(0,0,0,0.55);
}
.setting-slide-wrapper {
	position: fixed;
	top: 0;
	right: -380px;
	width: 380px;
	max-width: 92vw;
	height: 100%;
	z-index: 999;
	transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	align-items: stretch;
}
.setting-slide-wrapper.active {
	right: 0;
}
.setting-close-outer {
	position: absolute;
	left: -48px;
	top: 16px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: none;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: all 0.3s;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
}
.setting-slide-wrapper.active .setting-close-outer {
	opacity: 1;
	pointer-events: auto;
}
.setting-close-outer:hover {
	background: rgba(0,0,0,0.7);
	transform: rotate(90deg);
}
.setting-panel {
	flex: 1;
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
	overflow-y: auto;
	padding: 24px 28px 40px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	border-radius: 0;
	position: relative;
}
.setting-panel::-webkit-scrollbar {
	width: 6px;
}
.setting-panel::-webkit-scrollbar-track {
	background: #f5f5f5;
}
.setting-panel::-webkit-scrollbar-thumb {
	background: #d0d7de;
	border-radius: 8px;
}
.page-mask {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: transparent;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.page-mask.active {
	opacity: 1;
	pointer-events: auto;
	background: transparent;
}
.setting-content h2 {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 10px;
}
.user-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 10px;
}
.user-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
.user-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #e8ecf1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #667eea;
}
.user-name {
	font-weight: 500;
	color: #1a1a2e;
}
.user-arrow {
	color: #ccc;
	font-size: 18px;
}
.reset-setting-wrap {
	margin-top: 30px;
}
.reset-setting-wrap h3 {
	font-size: 18px;
	font-weight: bold;
	color: #111;
	margin: 0 0 12px;
}
.reset-desc {
	font-size: 14px;
	color: #777;
	margin: 0 0 20px;
}
.btn-reset-setting {
	width: 100%;
	height: 44px;
	font-size: 15px;
	background: #eeeeee;
	border: none;
	border-radius: 12px;
	color: #333;
	cursor: pointer;
	transition: 0.2s;
}
.btn-reset-setting:hover {
	background: #e2e2e2;
}
.switch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}
.switch-text {
	font-size: 14px;
	color: #333;
	font-weight: 450;
}
.switch {
	position: relative;
	width: 48px;
	height: 26px;
	flex-shrink: 0;
	cursor: pointer;
}
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.slider-switch {
	position: absolute;
	inset: 0;
	background: #d0d7de;
	border-radius: 26px;
	transition: background 0.3s;
}
.slider-switch::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.switch input:checked + .slider-switch {
	background: #667eea;
}
.switch input:checked + .slider-switch::before {
	transform: translateX(22px);
}
.bookmark-item {
	position: relative;
}
.bookmark-item .delete-btn {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: none;
	background: #ef4444;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	z-index: 10;
	padding: 0;
}
.bookmark-item .delete-btn:hover {
	background: #dc2626;
	transform: scale(1.1);
}
.bookmark-item.edit-mode .delete-btn {
	display: flex;
}
.bookmark-hidden #bookmarkGrid {
	display: none;
}
.bookmark-hidden .bookmark-count {
	display: none;
}
.add-bookmark-section {
	margin-top: 20px;
	padding: 16px 0;
	border-top: 1px solid #f0f0f0;
	display: none;
}
.add-bookmark-section.active {
	display: block;
}
.add-bookmark-section h3 {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 12px;
}
.add-bookmark-section .form-group {
	margin-bottom: 12px;
}
.add-bookmark-section .form-group label {
	display: block;
	font-size: 13px;
	color: #666;
	margin-bottom: 4px;
	font-weight: 500;
}
.add-bookmark-section .form-group input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.add-bookmark-section .form-group input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.add-bookmark-section .form-error {
	color: #ef4444;
	font-size: 12px;
	margin-top: 4px;
	display: none;
}
.add-bookmark-section .form-error.show {
	display: block;
}
.add-bookmark-section .btn-add-bookmark {
	width: 100%;
	padding: 10px;
	background: #667eea;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}
.add-bookmark-section .btn-add-bookmark:hover {
	background: #5a6fd6;
}
.add-bookmark-section .btn-add-bookmark:active {
	transform: scale(0.98);
}
.add-bookmark-section .btn-add-bookmark:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.add-bookmark-section .icon-preview {
	display: inline-block;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #667eea;
	color: #fff;
	text-align: center;
	line-height: 36px;
	font-size: 18px;
	font-weight: 600;
	margin-right: 8px;
}
.add-bookmark-section .icon-style-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
}
html,body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}
.soft-bg {
	position: fixed;
	inset: 0;
	background: #f6f7f9;
	z-index: -3;
}
.bg-wallpaper {
	position: fixed;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: -2;
	filter: none;
}
.global-mask {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0);
	z-index: -1;
	transition: background 0.24s ease;
}
.section-title {
	font-size: 18px;
	font-weight: 600;
	margin: 10px 0 14px;
	color: #111;
}
.wallpaper-preview {
	width: 100%;
	height: 142px;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 16px;
	position: relative;
	cursor: pointer;
}
.wallpaper-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.2s;
}
.wallpaper-preview .change-tip {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.4);
	color: #fff;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 10px;
	opacity: 0;
	transition: opacity 0.2s;
}
.wallpaper-preview:hover .change-tip {
	opacity: 1;
}
.wallpaper-preview:hover img {
	transform: scale(1.03);
}
.slider-row {
	margin: 16px 0;
}
.slider-label {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #444;
	margin-bottom: 6px;
}
input[type="range"] {
	width: 100%;
	cursor: pointer;
}
.wall-modal-outer {
    position: fixed;
    inset: 0; 
    background: rgba(0,0,0,0);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.wall-modal-outer.show {
    opacity: 1;
    pointer-events: auto;
}
.wall-modal-box {
    width: min(620px, 92vw);
    max-width: 92vw;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 480px;
    max-height: 82vh;
    margin-top: 20px;
    margin-right: 20px;
    opacity: 0;
}
.wall-modal-outer.show {
    opacity: 1;
    pointer-events: auto;
}
.wall-modal-outer.show .wall-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.wall-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}
.wall-modal-head h3 {
	font-size: 18px;
	font-weight: 600;
	color: #111;
}
.wall-modal-close {
	border: none;
	background: transparent;
	font-size: 22px;
	cursor: pointer;
	color: #777;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}
.wall-modal-close:hover {
	background: #f2f2f2;
}
.wall-tabs {
	display: flex;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}
.wall-tab-item {
	padding: 12px 20px;
	cursor: pointer;
	font-size: 15px;
	color: #555;
	position: relative;
	transition: 0.2s;
}
.wall-tab-item.active {
	color: #667eea;
}
.wall-tab-item.active::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: #667eea;
}
.wall-tab-containers {
	height: 360px;
	overflow-y: auto;
	flex-shrink: 0;
}
.wall-tab-panel {
	padding: 16px 20px;
	display: none;
}
.wall-tab-panel.active {
	display: block;
}
.wall-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px,1fr));
	gap: 12px;
}
.wall-gallery-item {
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	aspect-ratio: 16/9;
}
.wall-gallery-item.selected {
	border-color: #667eea;
}
.wall-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.2s;
}
.wall-gallery-item:hover img {
	transform: scale(1.06);
}
.wallpaper-preview {
	position: relative;
	overflow: hidden;
	--preview-color: #ffffff;
}
.wallpaper-preview.color-mode img {
	visibility: hidden;
	position: absolute;
}
.wallpaper-preview.color-mode::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--preview-color);
	border-radius: inherit;
}
.custom-wall-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 12px;
}
.custom-wall-preview-box {
	width: 100%;
	height: 160px;
	border-radius: 8px;
	background: #f2f2f2;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 12px;
}
.custom-wall-preview-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.custom-wall-btn {
	padding: 9px 16px;
	background: #667eea;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}
.custom-wall-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.wall-tab-containers::-webkit-scrollbar {
	width: 6px;
}
.wall-tab-containers::-webkit-scrollbar-thumb {
	background: #cccccc;
	border-radius: 3px;
}
.wall-tab-containers::-webkit-scrollbar-track {
	background: transparent;
}
.wallpaper-toggle-btn {
	position: fixed;
	bottom: 0px;
	right: 80px;
	width: 49px;
	height: 89px;
	background: url('images/bz.png') center/cover no-repeat;
	cursor: pointer;
	z-index: 50;
	display: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wallpaper-toggle-btn.active {
	display: block;
}
.wallpaper-toggle-btn .btn-loading {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top: 3px solid #ffffff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	display: none;
	z-index: 2;
	position: absolute;
	top: 24px;
	left: 49%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.wallpaper-toggle-btn .btn-loading.active {
	display: block;
}
@keyframes spin {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}
.wallpaper-toggle-btn .light-dot {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 0 8px 3px rgba(255,255,255,0.8);
	opacity: 0;
	pointer-events: none;
	z-index: 3;
}
@keyframes flashLight {
	0% {
		opacity: 0;
		transform: scale(0.6);
	}
	40% {
		opacity: 1;
		transform: scale(1.3);
		box-shadow: 0 0 16px 6px rgba(255,255,255,0.95);
	}
	100% {
		opacity: 0;
		transform: scale(0.6);
		box-shadow: 0 0 0px 0px rgba(255,255,255,0);
	}
}
.wallpaper-toggle-btn .light-dot.flash {
	animation: flashLight 0.7s ease-out forwards;
}
.hide {
	display: none !important;
}
.switch-row#wallpaperToggleRow.disabled {
	opacity: 0.45;
	pointer-events: none;
}
#toastContainer {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
	max-width: 90%;
}
.toast-item {
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	animation: toastIn 0.3s ease-out;
	pointer-events: auto;
	min-width: 200px;
	text-align: center;
	backdrop-filter: blur(4px);
}
.toast-item.success {
	background: rgba(34, 197, 94, 0.92);
}
.toast-item.error {
	background: rgba(239, 68, 68, 0.92);
}
.toast-item.info {
	background: rgba(59, 130, 246, 0.92);
}
.toast-item.warning {
	background: rgba(234, 179, 8, 0.92);
}
@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@keyframes toastOut {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
}
.toast-item.hiding {
	animation: toastOut 0.3s ease-in forwards;
}
.confirm-modal-outer {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}
.confirm-modal-outer.show {
	opacity: 1;
	pointer-events: auto;
}
.confirm-modal-box {
	background: #ffffff;
	width: 300px;
	border-radius: 14px;
	padding: 32px 24px 24px;
	position: relative;
}
.confirm-modal-close {
	position: absolute;
	right: 14px;
	top: 10px;
	border: none;
	background: transparent;
	font-size: 24px;
	cursor: pointer;
	color: #222;
	line-height: 1;
}
.confirm-modal-text {
	font-size: 18px;
	font-weight: 500;
	color: #111;
	margin-bottom: 24px;
	line-height: 1.3;
	text-align: left;
}
.confirm-modal-buttons {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}
.confirm-modal-buttons button {
	width: 110px;
	height: 42px;
	font-size: 16px;
	border-radius: 8px;
	cursor: pointer;
	border: none;
}
.btn-cancel {
	background: #fff;
	border: 1px solid #cccccc !important;
	color: #222;
}
.btn-ok {
	background: #ed3833;
	color: #fff;
}
.container {
	max-width: 1100px;
	width: 100%;
	background: transparent;
	padding: 0 2rem 0;
	border: none;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.hero-center-wrapper {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 1rem 0;
	justify-content: flex-start;
	padding-top: 150px;
}
.container.has-bookmarks .hero-center-wrapper {
	flex: none;
	min-height: auto;
	justify-content: flex-start;
	padding-top: 50px;
}
.header-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-bottom: 2rem;
}
.container.has-bookmarks .header-logo {
	margin-bottom: 2rem;
}
.logo-title {
	font-size: 2.4rem;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0.2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	white-space: nowrap;
}
.logo-title .dot {
	color: rgba(255, 255, 255, 0.55);
	font-weight: 700;
	margin: 0 0.1rem;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}
.search-section {
	display: flex;
	justify-content: center;
	width: 100%;
	position: relative;
}
.search-box-wrapper {
	display: flex;
	align-items: center;
	background: #ffffff;
	border-radius: 16px;
	padding: 0.5rem 0.3rem 0.5rem 1.2rem;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	width: 100%;
	max-width: 700px;
	position: relative;
	flex-wrap: nowrap;
}
.search-box-wrapper:focus-within {
	border-color: #cbd5e1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.engine-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 16px;
	background: #f5f7fa;
	cursor: pointer;
	margin-right: 10px;
	position: relative;
	flex-shrink: 0;
	font-size: 20px;
}
.engine-trigger:hover {
	background: #e9edf3;
}
.engine-pop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 10px;
	z-index: 999;
	gap: 8px;
	flex-wrap: nowrap;
	display: none;
}
.engine-pop.show {
	display: flex;
}
.engine-btn {
	background: transparent;
	border: none;
	padding: 8px 16px;
	border-radius: 16px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #2c6282;
	cursor: pointer;
	white-space: nowrap;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.engine-btn:hover {
	background: #d9e2ef;
	color: #0b1e33;
}
.engine-btn.active {
	background: #d9e2ef;
	border: 2px solid #1e6fdf;
	color: #1e6fdf;
}
.search-input-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
}
.search-box-wrapper input[type="text"] {
	flex: 1;
	border: none;
	background: transparent;
	padding: 0.9rem 0.3rem;
	font-size: 1rem;
	outline: none;
	color: #0b1e33;
	min-width: 80px;
}
.search-box-wrapper input[type="text"]::placeholder {
	color: #8b9bb5;
	font-weight: 400;
	letter-spacing: 0.2px;
}
.search-go-btn {
	background: #1e6fdf;
	border: none;
	color: #fff;
	padding: 0.75rem 1.6rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	margin-left: 0.4rem;
	cursor: pointer;
	letter-spacing: 0.4px;
	white-space: nowrap;
	flex-shrink: 0;
}
.search-go-btn:hover {
	background: #0f5bc0;
	transform: scale(0.97);
	box-shadow: 0 6px 14px rgba(118, 209, 118, 0.25);
}

.search-box-wrapper {
    position: relative;
}
.search-history-wrap {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 16px;
    z-index: 998;
    display: none;
    max-height: 60vh;
    overflow-y: auto;
}
.search-history-wrap.show {
    display: block;
}
.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 18px;
    color: #333;
}
.clear-history-btn {
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    cursor: pointer;
}
.clear-history-btn:hover {
    color: #ed3833;
}
.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.history-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}
.history-item span:first-child {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item:hover {
    background: #e5e7eb;
}
.history-item .del-tag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #777;
}
.history-item .del-tag:hover {
    background: #ddd;
    color: #ed3833;
}
.history-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin-top: 8px;
}
.site-nav-bar {
	width: 100%;
	max-width: 700px;
	padding: 10px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 auto;
	position: relative;
}
.site-nav-bar.hide {
	opacity: 0;
	pointer-events: none;
	height: 0;
	padding: 0;
	margin: 0;
	overflow: hidden;
}
.site-nav-item {
	background: rgba(0,0,0,0.15);
	border-radius: 8px;
	padding: 6px 14px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}
.sitenav-more-pop {
  position: absolute;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  padding: 12px;
  display: none;
  z-index: 99;
  width: 90%;
  left: 50% !important;
  transform: translateX(-50%);
  margin-top: 10px !important;
}
.sitenav-more-pop.show {
  display: block;
}
.sitenav-more-pop .pop-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 16px;
  background: transparent;
}
.sitenav-more-pop .site-nav-item {
  white-space: nowrap;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
  color: #1a1a2e;
  background: transparent;
}
.sitenav-more-pop .site-nav-item:hover {
  background-color: #f2f3f5;
}
body.wallpaper-off .nav-item {
	color: #1e293b;
	text-shadow: none;
}
body.wallpaper-off .logo-title {
	color: #1e6fdf;
}
body.wallpaper-off .logo-title .dot {
	color: #1e6fdf;
}
body.wallpaper-off .site-nav-item {
	background: rgba(0,0,0,0.08);
	color: #1e293b;
}
body.wallpaper-off .nav-item.add-bookmark-btn-item .add-text {
    color: #1e293b !important;
    text-shadow: none;
}
.site-nav-item:hover {
	background: #fff;
	color: #1e6fdf;
}
body.wallpaper-off .site-nav-item:hover {
	background: #1e6fdf;
	color: #fff;
}
#bookmarkGrid {
	flex: 1;
	overflow-y: auto;
	padding-bottom: 0.5rem;
}
.nav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 1rem 0.5rem;
	padding-top: 1.2rem;
	padding-bottom: 0.5rem;
	justify-items: center;
	flex-shrink: 0;
}
.nav-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.5rem 0.2rem 0.4rem;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 450;
	text-decoration: none;
	border-radius: 12px;
	background: transparent;
	border: 1px solid transparent;
	width: 100%;
	min-height: 78px;
	text-align: center;
	word-break: break-word;
	text-shadow: 0 1px 4px rgba(0,0,0,0.65);
}
.nav-item:hover {
	background: #f8fafc;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: #dce3ed;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.nav-item .nav-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: bold;
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 10px 10px -6px rgba(95, 100, 121, 0.75);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.nav-item span:last-child {
	line-height: 1.3;
	font-weight: 450;
	letter-spacing: 0.2px;
	font-size: 0.78rem;
	color: #1e293b;
}
.bookmark-count {
	text-align: center;
	color: #334155;
	font-size: 0.8rem;
	letter-spacing: 0.3px;
	display: inline-block;
	margin-left: auto;
	margin-right: auto;
	padding: 0.4rem 1.2rem;
	border-radius: 60px;
	flex-shrink: 0;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	background: rgba(0, 0, 0, 0.08);
}
.bookmark-count .count-num {
	font-weight: 600;
	color: #334155;
}
.bookmark-count .count-limit {
	color: #334155;
}
.bookmark-count .count-warning {
	color: #334155;
}

.nav-item.add-bookmark-btn-item {
    cursor: pointer;
}
.add-bookmark-btn-item .add-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: grid;
    place-items: center;
    transition: 0.2s ease;
}
.add-bookmark-btn-item:hover .add-box {
    background: rgba(0, 0, 0, 0.15);
}
.add-bookmark-btn-item .add-icon {
    font-size: 32px;
    color: #fff !important;
    font-weight: 500;
    line-height: 1;
}
.nav-item.add-bookmark-btn-item .add-text {
    font-size: 0.78rem;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.65);
}
.calendar-modal-outer {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 99999;
    display: none;
}
.calendar-modal-outer.show {
    display: block !important;
}
.calendar-modal-box {
    background: rgba(255,251,240,0.65);
    border-radius: 14px;
    width: 300px;
    padding: 18px;
    position: relative;
    border: 1px solid #e9e2d0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.calendar-wrap {
    text-align: center;
}
.calendar-center-col {
    position: relative;
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
}
.cal-prev, .cal-next {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
}
.cal-year-month {
    font-size: 22px;
    color: #222;
    margin-bottom: 8px;
}
.cal-day-num {
    font-size: 72px;
    font-weight: bold;
    color: #d62828;
    line-height: 1;
    margin: 8px 0;
}
.cal-lunar {
    font-size: 20px;
    color: #222;
    margin-bottom: 16px;
}
.cal-yiji-block {
    border: 1px solid #ddcdac;
    border-radius: 10px;
    padding: 14px;
    background: rgba(255,255,240,0.65);
    text-align: left;
}
.yi-line, .ji-line {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    margin: 10px 0;
    gap: 10px;
}
.tag-yi {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(214,40,40,0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.tag-ji {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(17,17,17,0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.yi-text, .ji-text {
    line-height: 1.6;
    color: #333;
}

/* 随机一言组件 */
.yulu-box {
    position: fixed;
    bottom: 40px;
    right: 270px;
    display: none;
    align-items:center;
    background:rgba(0,0,0,0.35);
    padding:4px 12px;
    border-radius:6px;
    max-width: calc(100vw - 110px);
    z-index: 990;
}
.yulu-box.show {
    display: flex;
}
.star-group{
    position:relative;
    width:22px;
    height:22px;
    margin-right:12px;
    flex-shrink:0;
}
.star{
    position:absolute;
    width:8px;
    height:8px;
    background:#fff;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}
.star1{
    top:4px;
    left:6px;
    animation: twinkle1 3.6s infinite ease-in-out;
}
.star2{
    top:7px;
    left:0px;
    animation: twinkle2 3.6s infinite ease-in-out;
}
.star3{
    top:10px;
    left:5px;
    animation: twinkle3 3.6s infinite ease-in-out;
}
@keyframes twinkle2{
    0%{opacity:0;transform:scale(0.85);}
    15%{opacity:1;transform:scale(1.05);}
    30%,100%{opacity:0;transform:scale(0.85);}
}
@keyframes twinkle3{
    0%,30%{opacity:0;transform:scale(0.85);}
    45%{opacity:1;transform:scale(1.05);}
    60%,100%{opacity:0;transform:scale(0.85);}
}
@keyframes twinkle1{
    0%,60%{opacity:0;transform:scale(0.85);}
    75%{opacity:1;transform:scale(1.05);}
    90%,100%{opacity:0;transform:scale(0.85);}
}
.text{
    font-size:14px;
    color:#ffffff;
    text-shadow:0 0 4px rgba(255,255,255,0.05);
    line-height:1.5;
}
.btn-bookmark-op {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: #e8ebf0;
    color: #222;
    transition: 0.2s ease;
}
.btn-bookmark-op:hover {
    background: #d8dde6;
}
.btn-bookmark-op.export-btn {
    background: #dbeafe;
    color: #1d4ed8;
}
.btn-bookmark-op.export-btn:hover {
    background: #bfdbfe;
}
.btn-bookmark-op.import-btn {
    background: #dcfce7;
    color: #15803d;
}
.btn-bookmark-op.import-btn:hover {
    background: #bbf7d0;
}
.bookmark-import-export-wrap > div {
    flex-wrap: wrap;
}

.cloud-bookmark-modal-outer{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    opacity:0;
    visibility:hidden;
    transition:0.2s;
}
.cloud-bookmark-modal-outer.show{
    opacity:1;
    visibility:visible;
}
.cloud-bookmark-modal-box{
    background:#fff;
    width:min(92%,760px);
    border-radius:14px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    max-height:85vh;
}
.cloud-modal-head{
    padding:18px 22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #eee;
}
.cloud-modal-head h3{
    margin:0;
    font-size:20px;
    font-weight:500;
}
.cloud-modal-close{
    border:none;
    background:none;
    font-size:24px;
    cursor:pointer;
    color:#666;
}
.cloud-modal-content{
    padding:20px 22px;
    overflow-y:auto;
    flex:1;
}
.cloud-tag-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.cloud-tag-item{
    display:flex;
    align-items:center;
    gap:6px;
    background:#f1f3f6;
    padding:8px 12px;
    border-radius:8px;
}
.cloud-tag-name{
    font-size:14px;
}
.cloud-tag-del{
    width:18px;
    height:18px;
    border:none;
    background:#ddd;
    border-radius:50%;
    cursor:pointer;
    display:grid;
    place-items:center;
    font-size:12px;
    line-height:1;
}
.cloud-modal-buttons{
    padding:16px 22px;
    display:flex;
    gap:14px;
    justify-content:flex-end;
    border-top:1px solid #eee;
}
.cloud-modal-buttons button{
    padding:10px 26px;
    border-radius:8px;
    border:none;
    font-size:15px;
    cursor:pointer;
}
.btn-overlay{
    background:#dbeafe;
    color:#1d4ed8;
}
.btn-merge{
    background:#dcfce7;
    color:#15803d;
}
.btn-cancel{
    background:#e5e7eb;
    color:#333;
}
@media (max-width: 768px) {
	.setting-trigger {
		top: 20px;
		right: 20px;
	}
	.setting-slide-wrapper {
		right: -100%;
		width: 100%;
	}
	.setting-close-outer {
		left: 12px;
		top: 12px;
		width: 36px;
		height: 36px;
		font-size: 18px;
		border-radius: 6px;
		z-index: 10;
	}
	.setting-panel {
		padding: 64px 18px 30px;
	}
	.container {
		padding: 0 0.8rem 2rem;
	}
	.header-hero-title {
		font-size: 1.9rem;
	}
	.header-logo {
		margin-top: 60px;
	}
	.search-box-wrapper {
		max-width: 100%;
		padding: 0.35rem 0.2rem 0.35rem 0.6rem;
		border-radius: 10px;
	}
	.search-box-wrapper input[type="text"] {
		padding: 0.65rem 0.2rem;
		font-size: 0.95rem;
		min-width: 60px;
	}
	.engine-pop {
		max-width: calc(100vw - 30px);
		overflow-x: auto;
	}
	.engine-btn {
		padding: 6px 10px;
		font-size: 0.72rem;
	}
	.search-go-btn {
		padding: 0.5rem 0.8rem;
		font-size: 0.85rem;
		margin-left: 0.3rem;
		border-radius: 10px;
	}
	.nav-grid {
		grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
		gap: 0.5rem;
	}
	.nav-item {
		min-height: 70px;
		padding: 0.4rem 0.1rem;
	}
	.nav-item .nav-icon {
		width: 44px;
		height: 44px;
		font-size: 1.5rem;
		border-radius: 16px;
	}
	.nav-item span:last-child {
		font-size: 0.7rem;
	}
	.hero-center-wrapper {
		min-height: 200px;
		padding: 0.5rem 0;
	}
	.calendar-modal-outer,
	.calendar-modal-outer.show {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
	.calendar-switch-row {
		display: none !important;
	}
	.text {
		font-size:12px;
		white-space:normal;
	}
	.yulu-box {
		bottom: 150px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		max-width: calc(100vw - 32px);
	}
}
@media (max-width: 480px) {
	.setting-trigger {
		top: 17px;
		right: 17px;
		width: 36px;
		height: 36px;
		font-size: 16px;
	}
	.setting-slide-wrapper {
		right: -100%;
		width: 100%;
	}
	.setting-close-outer {
		left: 12px;
		top: 12px;
		width: 36px;
		height: 36px;
		font-size: 18px;
		border-radius: 6px;
		z-index: 10;
	}
	.setting-panel {
		padding: 64px 18px 30px;
	}
	.header-hero-title {
		font-size: 1.6rem;
	}
	.header-logo {
		margin-top: 60px;
	}
	.container {
		padding: 0 0.5rem 1.6rem;
	}
	.engine-trigger {
		width: 30px;
		height: 30px;
		font-size: 15px;
		margin-right: 6px;
	}
	.engine-btn {
		font-size: 0.68rem;
		padding: 0.2rem 0.4rem;
	}
	.search-go-btn {
		font-size: 0.78rem;
		padding: 0.4rem 0.6rem;
		margin-left: 0.2rem;
	}
	.search-box-wrapper input[type="text"] {
		padding: 0.55rem 0.15rem;
	}
	.nav-grid {
		grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
		gap: 0.3rem;
	}
	.nav-item .nav-icon {
		width: 38px;
		height: 38px;
		font-size: 1.2rem;
		border-radius: 14px;
	}
	.nav-item span:last-child {
		font-size: 0.65rem;
	}
	.hero-center-wrapper {
		min-height: 150px;
	}
	.calendar-modal-outer,
	.calendar-modal-outer.show {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
	.calendar-switch-row {
        		display: none !important;
	}
	.text {
		font-size:12px;
		white-space:normal;
	}
	.yulu-box {
		bottom: 150px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		max-width: calc(100vw - 32px);
	}
}
::-webkit-scrollbar {
	width: 10px;
}
::-webkit-scrollbar-track {
	background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}