 
  /*标题*/
h1.text-center {
	font-size: 2rem;
	margin-bottom: 0.2rem;
	letter-spacing: 3.3px;
}
h1.text-center img {
	margin-top: 3px; 
}
h1 {
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
@media (max-width: 768px) {
	h1.text-center {
		letter-spacing: 1.4px;
	}
	h1.text-center img {
		margin-top: 1px; 
	}
}

:root {
	--primary-color: #1677ff;
	--primary-hover: #0958d9;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
	--border-color: #e5e7eb;
}



/* =======================
   分类标题（category-title）
   ======================= */

.category-title {
	position: relative;
	font-size: 1.1rem;
	font-weight: 650;
	color: #1f2937;
	letter-spacing: 0.2px;
	margin-bottom: 1.35rem;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

/* 图标克制处理 */
.category-title i {
	color: #1677ff;
	font-size: 1.2rem;
	opacity: 0.9;
}



/* =======================
   移动端降级（防止块感过重）
   ======================= */

@media (max-width: 768px) {
	.tool-section {
		padding: 1.2rem 1.1rem 1.1rem;
		margin-bottom: 1.5rem;

		box-shadow:
			0 1px 2px rgba(0, 0, 0, 0.04);
		transform: none !important;
	}

	.category-title {
		font-size: 1.05rem;
		margin-bottom: 1.2rem;
	}

	.category-title::after {
		width: 24px;
	}
}

@media (max-width: 768px) {

	/* 保证一行两个（你已有 col-6，这里是兜底） */
	.tool-section .col-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	/* 工具卡片压缩但不臃肿 */
	.tool-card {
		padding: 0.75rem 0.7rem 0.8rem;
		border-radius: 12px;
		height: 100%;
		box-shadow:
			-1px 0 2px rgba(0, 0, 0, 0.02),
			0 1px 4px rgba(0, 0, 0, 0.03);
	}
	
	.tool-card:hover {
		box-shadow: 
			-2px 0 4px rgba(0, 0, 0, 0.03),
			0 2px 6px rgba(0, 0, 0, 0.04);
	}

	/* 工具名略缩，但仍然清晰 */
	.tool-name {
		font-size: 0.95rem;
		margin-bottom: 0.2rem;
		line-height: 1.25;
	}

	/* 描述最多两行，避免撑高卡片 */
	.tool-desc {
		font-size: 0.78rem;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* 行距略缩，整体更紧凑 */
	.row.g-3 {
		--bs-gutter-y: 0.6rem;
		--bs-gutter-x: 0.6rem;
	}

	/* 点击反馈（比 hover 更重要） */
	.tool-card:active {
		transform: scale(0.97);
		box-shadow:
			0 1px 2px rgba(0, 0, 0, 0.05);
	}
}

.tool-search {
  padding: 14px 16px;
  font-size: 0.8rem;
  border: none;
	background: rgba(255,255,255, 0.8);
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.02);
	border-radius: 50px; /* 胶囊型搜索框更现代 */
	text-align: center;
	transition: all 0.3s;
}

.tool-search {
	font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}


.tool-search:focus {
	background: #fff;
	box-shadow: 0 8px 30px rgba(22, 119, 255, 0.15);
	transform: scale(1.02);
}

.tool-name {
  font-weight: 600;
  color: #111;
  margin-bottom: .35rem;
  z-index: 2;
}

.tool-desc {
  font-size: .85rem;
  color: #8b94a0;;
  line-height: 1.4;
  z-index: 2;
}

.tool-card.disabled {
  opacity: .55;
  pointer-events: none;
}


.gradient-text {
	background: linear-gradient(180deg, #1677ff 0%, #722ed1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* 免费使用码按钮下方提示条 */     
.free-code-tooltip-mobile {
	display: none;
}

@media (max-width: 768px) {
	.sticky-free-code-btn {
		top: 55%;
		right: 3px; 
	}
	
	.free-code-tooltip-mobile {
		/* 移动端显示 */
		display: block;
		position: fixed;
		z-index: 9998;
		right: 1px; 
		top: calc(55% + 33px);
		transform: translateX(150%); /* 初始位置在屏幕外 */
		background: rgba(22, 119, 255, 0.9);
		color: white;
		padding: 5px 7px;
		border-radius: 6px;
		font-size: 0.9rem;
		white-space: nowrap;
		box-shadow: 0 2px 8px rgba(0,0,0,0.15);
		transition: transform 0.3s ease-in-out; /* 添加过渡动画 */
		animation: showTooltip 7s infinite; /* 循环动画 */
	}
	
	.free-code-tooltip-mobile::after {
		content: '';
		position: absolute;
		bottom: 100%;
		right: 24px; 
		border-width: 0 5px 5px 5px;
		border-style: solid;
		border-color: transparent transparent rgba(22, 119, 255, 0.9) transparent;
	}
	
	/* 定义显示/隐藏动画 */
	@keyframes showTooltip {
		0% { transform: translateX(150%); } /* 隐藏 */
		10% { transform: translateX(0); }    /* 显示 */
		60% { transform: translateX(0); }    /* 保持显示 */
		70% { transform: translateX(150%); } /* 隐藏 */
		100% { transform: translateX(150%); }
	}
}



/* 如果需要选中状态样式 */
.tool-card.active {
	border-color: var(--primary-color);
	box-shadow: var(--shadow-lg);
}



/*从common.css移过来的*/



/* 每日免费使用码列表样式 */
.daily-codes-list {
	max-height: 300px;
	overflow-y: auto;
	margin: 15px 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px; /* 列之间的间距 */
}

.daily-code-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background-color: #f8f9fa;
	transition: all 0.2s ease;
	width: 100%;
}

.daily-code-item:hover {
	background-color: #e9ecef;
}

.daily-code-item.used {
	background-color: #f8f9fa;
	opacity: 0.7;
}

.daily-code-text {
	font-family: 'Courier New', monospace;
	font-weight: bold;
	font-size: 1.1rem;
	letter-spacing: 1px;
	color: #2d3748;
}

.daily-code-status {
	font-size: 0.85rem;
	padding: 3px 8px;
	border-radius: 12px;
}

.status-available {
	background-color: #d4edda;
	color: #155724;
}

.status-used {
	background-color: #f8d7da;
	color: #721c24;
}

.daily-code-actions {
	display: flex;
	gap: 8px;
}

.copy-code-btn {
	background: #1677ff;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 5px 10px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.copy-code-btn:hover {
	background: #0f62d9;
}

.copy-code-btn:disabled {
	background: #6c757d;
	cursor: not-allowed;
}

.copy-code-btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.3);
	border-radius: inherit;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.3s ease;
}

.copy-code-btn:active::after {
	transform: translate(-50%, -50%) scale(1);
}



/* 移动端适配 */
@media (max-width: 768px) {
	.copy-code-btn {
		padding: 8px 12px !important;
		font-size: 0.9rem !important;
		min-height: 36px !important;
		min-width: 60px !important;
	}
	
	/* 修复使用码条目布局 */
	.daily-code-item {
		flex-direction: row !important;
		align-items: center !important;
		padding: 12px 15px !important;
	}
	
	.daily-code-text {
		font-size: 1rem !important;
		flex: 1 !important;
		text-align: left !important;
		margin-right: 10px !important;
	}
	
	.daily-code-actions {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex-shrink: 0 !important;
	}
	
	.daily-code-status {
		font-size: 0.8rem !important;
		padding: 4px 8px !important;
		white-space: nowrap !important;
	}
}



/* 工具按钮样式 */
.util-btn {
	background: transparent;
	border: 1px solid #dee2e6;
	color: #6c757d;
	padding: 0.4rem 1rem;
	border-radius: 6px;
	font-size: 0.85rem;
	transition: all 0.2s ease;
	margin: 0.3rem;
}

.util-btn:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
	color: #495057;
	transform: translateY(-1px);
}

/* 按钮容器样式 */
.util-buttons-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 1.5rem 0 2rem 0;
	gap: 0.5rem;
}

/* 查询结果样式 */
.query-result {
	margin-top: 15px;
	margin-bottom: 20px;
	padding: 12px;
	border-radius: 8px;
	display: none;
	line-height: 1.6;
}

.result-success {
	background: #e6f7ff;
	border: 1px solid #b3e0ff;
	color: #096dd9;
}

.result-error {
	background: #fff1f0;
	border: 1px solid #ffccc7;
	color: #d93025;
}

/* 反馈相关样式 */
.copy-code {
	animation: spin 1s linear infinite;
}

#feedbackContent:focus {
	border-color: #1677ff;
	box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}

/* 移动端适配 - 首页特有样式 */
@media (max-width: 768px) {

	/* 修复每日使用码布局 */
	.daily-codes-list {
		grid-template-columns: 1fr;
	}
	
	.daily-code-item {
		flex-direction: row !important;
		align-items: center !important;
		padding: 12px 15px !important;
		gap: 10px;
	}
	
	.daily-code-text {
		font-size: 1rem !important;
		flex: 1 !important;
		text-align: left !important;
		margin-right: 10px !important;
		font-family: 'Courier New', monospace !important;
	}
	
	.daily-code-actions {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex-shrink: 0 !important;
		align-self: auto !important;
	}
	
	.copy-code-btn {
		padding: 6px 12px !important;
		font-size: 0.85rem !important;
		min-height: 36px !important;
		min-width: 60px !important;
	}
	
	.d-flex.justify-content-between.align-items-center {
		font-size: 0.8rem;
		gap: 5px;
	}
	
	.d-flex.justify-content-between.align-items-center > div {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 45%;
	}

	/* 反馈模态框移动端适配 */
	#feedbackModal .code-modal {
		width: 95%;
		margin: 20px;
	}
	
	#feedbackContent {
		min-height: 120px;
	}
	
}


/* ===============================
 小卡片 · 背景水印图标
=============================== */

.img-icon {
  position: relative;
  overflow: hidden;
}

/* 通用水印层 */
.img-icon::after {
  content: "";
  position: absolute;
  right: -63px;
  bottom: 25px;
  width: 64px;
  height: 64px;
  opacity: 0.185;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none; /* 不遮挡点击 */
  z-index: 0; /* 水印层级设为0（底层） */
  transition: right 0.3s ease, opacity 0.3s ease;
}

/* 卡片内容层（文字/图标）- 新增样式 */
.img-icon > * {
  position: relative; /* 使z-index生效 */
  z-index: 1; /* 内容层级高于水印 */
}

/* hover 时水印仍在底层 */
.img-icon:hover::after {
  opacity: 0.77;
  bottom: 25px;
  right: 10px;
  z-index: 0; /* 保持底层 */
}

/* 大笨猫 */
.img-icon-cat::after {
  background-image: url("/static/icon/dumb_cat_game_icon.webp");
}

/* 打工飞人 */
.img-icon-flyman::after {
  background-image: url("/static/icon/flyman_game_icon.webp");
}

.img-icon-what-to-eat::after {
  background-image: url("/static/icon/what_to_eat.webp");
}

.img-icon-where-to-go::after {
  background-image: url("/static/icon/where_to_go.webp");
}

.img-icon-p_tu::after {
  background-image: url("/static/icon/p_tu.webp");
}

.img-icon-more::after {
  background-image: url("/static/icon/more.webp");
}

.img-icon-image-compress::after {
  background-image: url("/static/icon/compress.webp");
}

.img-icon-image-watermark::after {
  background-image: url("/static/icon/watermark.webp");
}

.img-icon-image-crop::after {
  background-image: url("/static/icon/crop.webp");
}

.img-icon-pic::after {
  background-image: url("/static/icon/pic.webp");
}

.img-icon-pdf-compress::after {
  background-image: url("/static/icon/compress.webp");
}

.img-icon-pdf-merge::after {
  background-image: url("/static/icon/merge.webp");
}

.img-icon-pdf-del::after {
  background-image: url("/static/icon/del.webp");
}

.img-icon-w2p::after {
  background-image: url("/static/icon/word.webp");
}

.img-icon-morse::after {
  background-image: url("/static/icon/morse.webp");
}

.img-icon-camera::after {
  background-image: url("/static/icon/camera.webp");
}

.img-icon-stopwatch::after {
  background-image: url("/static/icon/stopwatch.webp");
}

.img-icon-motou::after {
  background-image: url("/static/icon/motou.webp");
}

.img-icon-computer::after {
  background-image: url("/static/icon/computer.webp");
}

.img-icon-image-sketch::after {
  background-image: url("/static/icon/writing_hand.webp");
}

.img-icon-bead::after {
  background-image: url("/static/icon/bead_blueprint.webp");
}

/* emoji当图标

.emoji-icon {
  position: relative;
  overflow: hidden;
}
.emoji-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 41px; 
  opacity: 0.25;   
  pointer-events: none;
  width: auto;
  height: auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}


.emoji-icon:hover::after {
  opacity: 0.8;
  transform: scale(1.05);
}

.emoji-icon-what-to-eat::after {
  content: "🍽️";
}

.emoji-icon-where-to-go::after {
  content: "🎯";
  color: #8fa1d0; 
}

*/

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
body {
  /* 微妙渐变光晕背景 —— 让玻璃卡片有内容可"模糊" */
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 89, 199, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(0, 89, 199, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(114, 46, 209, 0.03) 0%, transparent 50%),
    #f7f9fb;
  background-attachment: fixed;
  font-family: 'Inter', sans-serif;
  color: #191c1e;
}
.header-anchor {
  font-family: 'Manrope', sans-serif;
}
/* ===== 玻璃质感 + 3D 浮起：分类大卡片 ===== */
.section-zone {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.03),
    0 4px 16px rgba(0, 89, 199, 0.04),
    0 8px 32px rgba(0, 89, 199, 0.03);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.section-zone:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 89, 199, 0.12);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 89, 199, 0.07),
    0 16px 40px rgba(0, 89, 199, 0.05);
}

.footer-info {
  text-align: center;
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  margin-top: 3rem;
  padding-bottom: 8rem; /* 给移动端悬浮导航留空间 */
}
.footer-info a {
  color: var(--primary);
  text-decoration: none;
}
.footer-info a:hover {
  text-decoration: underline;
}
/* ===== 玻璃质感 + 3D 立体：工具小卡片 ===== */
.section-zone a.bg-surface-container-lowest,
.tool-cards-grid .bg-surface-container-lowest {
  padding: 1.25rem !important;
  /* 半透白底 + 微玻璃感（无backdrop-filter，靠父级模糊穿透） */
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  /* 多层阴影制造"浮在纸面上"的3D感 */
  box-shadow:
    0 0.5px 1px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 89, 199, 0.04),
    0 4px 12px rgba(0, 89, 199, 0.03) !important;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}
/* hover：浮起 + 阴影加深 + 蓝色微光 */
.section-zone a.bg-surface-container-lowest:hover,
.tool-cards-grid .bg-surface-container-lowest:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(0, 89, 199, 0.18) !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 6px 16px rgba(0, 89, 199, 0.1),
    0 12px 28px rgba(0, 89, 199, 0.07) !important;
}
/* active：按下微缩反馈 */
.section-zone a.bg-surface-container-lowest:active,
.tool-cards-grid .bg-surface-container-lowest:active {
  transform: translateY(-1px) scale(0.98);
  transition: transform 0.1s ease;
}

/* 禁用的卡片保持静态 */
.tool-card-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}

/* ========== 关键修改：移动端工具卡片2列布局 ========== */
.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 移动端默认2列 */
  gap: 0.75rem; /* 缩小卡片间距，适配移动端 */
}
/* 大屏设备(≥768px)恢复1列 */
@media (min-width: 768px) {
  .tool-cards-grid {
	grid-template-columns: 1fr;
	gap: 1rem;
  }
}
/* 适配移动端卡片内边距和字体 */
@media (max-width: 767px) {
  .section-zone {
    padding: 1.5rem !important;
    backdrop-filter: blur(8px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.2) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,89,199,0.03) !important;
  }
  .section-zone:hover {
    transform: none;
  }
  .tool-cards-grid a, .tool-cards-grid div {
    padding: 1rem !important;
    box-shadow: 0 0.5px 1px rgba(0,0,0,0.03), 0 2px 4px rgba(0,89,199,0.03) !important;
    will-change: auto;
  }
  .tool-cards-grid a:hover, .tool-cards-grid div:hover {
    transform: translateY(-2px) scale(1.01);
  }
  .tool-cards-grid a:active, .tool-cards-grid div:active {
    transform: scale(0.97);
  }
  .tool-cards-grid h3 {
    font-size: 0.82rem !important;
  }
  .tool-cards-grid p {
    font-size: 0.65rem !important;
    line-height: 1.2;
  }
  .tool-cards-grid .material-symbols-outlined {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
}
