/* ====================================
   乐享趣味工具 · 增强样式
   配合 /le-print/ 节日祝福专题页
   ==================================== */

.tool-box-container {
  max-width: 100%; overflow: hidden; padding: 0 8px;
  font-family: "Microsoft YaHei", sans-serif;
}

.tool-title {
  text-align: center; margin: 0 0 6px;
}
.tool-title-span {
  display: inline-block; font-size: 20px; font-weight: 700;
  color: #d63031; padding: 6px 28px;
  border-bottom: 3px solid #e8a735; letter-spacing: 2px;
}

.tool-subtitle {
  text-align: center; font-size: 13px; color: #aaa; margin: 0 0 24px;
}

.tool-nav-list {
  list-style: none !important;
  margin: 0 !important; padding: 0 !important;
  display: flex !important; flex-wrap: wrap !important;
  justify-content: center; gap: 20px;
}
.tool-nav-list::before,
.tool-nav-list::after { display: none !important; }

.tool-item {
  flex: 0 0 auto; width: 130px;
  list-style: none !important;
  text-align: center; padding: 0 !important; margin: 0 !important;
}
.tool-item::before { display: none !important; }

.tool-link {
  text-decoration: none !important;
  display: block;
}

/* --- 圆形图标 --- */
.tool-icon {
  width: 96px; height: 96px; margin: 0 auto 12px;
  border-radius: 50%; position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; align-items: center; justify-content: center;
}
.tool-link:hover .tool-icon {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* 虚线光环（hover 旋转） */
.tool-icon::after {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.4);
  pointer-events: none;
}
.tool-link:hover .tool-icon::after {
  animation: spin-ring 10s linear infinite;
}
@keyframes spin-ring {
  100% { transform: rotate(360deg); }
}

/* --- 各节日配色 --- */
.icon-ny { background: linear-gradient(135deg, #e8453c 0%, #ff6b63 100%); }
.icon-yx { background: linear-gradient(135deg, #e8a735 0%, #ffd275 100%); }
.icon-dw { background: linear-gradient(135deg, #27ae60 0%, #6fcf97 100%); }
.icon-zq { background: linear-gradient(135deg, #f39c12 0%, #f7dc6f 100%); }
.icon-gq { background: linear-gradient(135deg, #d63031 0%, #e17055 100%); }

/* --- Emoji 图标（伪元素） --- */
.icon-ny::before { content: "\01F9E7"; }
.icon-yx::before { content: "\01F3EE"; }
.icon-dw::before { content: "\01F38B"; }
.icon-zq::before { content: "\01F391"; }
.icon-gq::before { content: "\01F1E8\01F1F3"; }

.tool-icon::before {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}

/* --- 文字 --- */
.tool-text {
  margin: 0 !important;
  font-size: 15px; color: #555; font-weight: 600;
  letter-spacing: 1px; line-height: 1.4;
}

/* --- 响应式 --- */
@media (max-width: 600px) {
  .tool-nav-list { gap: 14px; }
  .tool-item { width: 100px; }
  .tool-icon { width: 68px; height: 68px; }
  .tool-icon::before { font-size: 30px; }
  .tool-text { font-size: 13px; }
}