* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Top Banner */
.top-banner {
  background-color: #1a1a1a;
  color: white;
  padding: 12px 20px;
  text-align: center;
  position: relative;
}

.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.banner-content a {
  color: #a3e635;
  text-decoration: none;
  font-weight: 600;
}

.close-banner {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Header */
.header {
  background-color: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea;
  background-color: #f5f7ff;
}

.nav-link:active {
  transform: scale(0.98);
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding-top: 8px;
  background-color: transparent;
  display: none;
  z-index: 1000;
  pointer-events: none;
}

/* 创建一个透明的桥梁区域，连接触发元素和下拉菜单 */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 8px;
  background-color: transparent;
  pointer-events: auto;
}

.dropdown-menu-content {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: auto;
  min-width: 800px;
  max-width: 1200px;
  max-height: 600px;
  overflow-x: hidden !important;
  overflow-y: auto;
  padding: 24px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  pointer-events: auto;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
  pointer-events: auto;
}

.dropdown-loading {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  pointer-events: auto;
}

/* 多列布局 - 每个一级分类一列 */
.dropdown-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}

/* 一级分类列 */
.dropdown-category-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 一级分类标题 */
.dropdown-category-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}

/* 一级分类链接（作为标题） */
.dropdown-category-link {
  display: inline-block;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
  transition: color 0.2s;
}

.dropdown-category-link:hover {
  color: #a3e635;
}

/* 子分类列表 */
.dropdown-submenu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

/* 子分类项 */
.dropdown-submenu-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 子分类链接 */
.dropdown-submenu-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  line-height: 1.4;
}

.dropdown-submenu-link:hover {
  color: #a3e635;
}

/* 子分类图标 */
.dropdown-submenu-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 子分类内容 */
.dropdown-submenu-content {
  flex: 1;
  min-width: 0;
}

.dropdown-submenu-name {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.dropdown-submenu-description {
  display: block;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* 新标签 */
.dropdown-new-badge {
  display: inline-block;
  background-color: #a3e635;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}

.logo-image {
  height: 28px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;
}

.logo-icon {
  font-size: 24px;
}

.btn-submit,
.btn-signup,
.btn-login {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-submit {
  background-color: white;
  border: 1px solid #e5e5e5;
  color: #1a1a1a;
}

.btn-signup {
  background-color: #a3e635;
  color: #1a1a1a;
}

.btn-login {
  background-color: white;
  border: 1px solid #e5e5e5;
  color: #1a1a1a;
}

.btn-submit:hover,
.btn-login:hover {
  background-color: #f5f5f5;
}

.btn-signup:hover {
  background-color: #8fd400;
}

.search-icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px 60px; /* 适中的留白 */
  background-color: #fdfbf7; /* 暖调米色背景，更有温度 */
  /* 噪点纹理保持不变，增加纸质感 */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.03); /* 底部加一条极淡的分割线 */
}

/* 核心容器 - 去掉卡片背景，变为透明布局容器 */
.hero-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  max-width: 1000px;
  width: 100%;
  position: relative;
  /* 去掉 overflow: hidden 以免切断搜索框阴影 */
  overflow: visible;
}

/* 彻底移除光晕 */
.hero-card::before,
.hero-card::after {
  display: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.6); /* 半透明白 */
  color: #854d0e; /* 深褐色文字，配合米色背景 */
  border: 1px solid rgba(133, 77, 14, 0.1);
  border-radius: 6px; 
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: none; 
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #292524; /* 暖深灰，比纯黑柔和 */
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: #57534e; /* 暖灰色 */
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

/* 搜索框 - 保持用户喜欢的样式，但微调以适应无卡片背景 */
.search-container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  position: relative;
  z-index: 10;
  background: #ffffff; /* 纯白背景 */
  border: 1px solid #e4e4e7; /* 极细的哑光边框 */
  padding: 4px;
  border-radius: 12px;
  transition: all 0.3s ease;
  /* 稍微加强一点阴影，因为背景变浅了 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.search-container:focus-within {
  background: white;
  border-color: #a3e635;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025), 0 0 0 2px rgba(163, 230, 53, 0.1);
}

.search-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #1f2937;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 0 24px;
  background-color: #a3e635;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 4px;
}

.search-btn:hover {
  background-color: #84cc16;
  /* 去掉悬停时的位移，保持稳重 */
  transform: none;
}

.blob {
  display: none;
}

.hero::before { display: none; } /* 移除之前的流体背景 */

/* Categories */
.categories {
  padding: 20px 20px 0; /* 底部 padding 设为 0 */
  max-width: 1200px;
  margin: 0 auto;
  /* 移除 margin-top 负值，恢复与 hero 的距离 */
}

.category-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px; /* 减少 pill 组之间的间距 */
}

/* 移除最后一个 pill 组的 margin-bottom，让它紧贴 filter bar */
.category-pills:last-child {
  margin-bottom: 4px;
}

.pill {
  padding: 10px 24px;
  border: 2px solid #1a1a1a;
  border-radius: 25px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  background-color: white;
}

.pill:hover {
  background-color: #1a1a1a;
  color: white;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center; /* 垂直居中 */
  padding: 12px 20px; /* 增加左右 padding */
  max-width: 1400px;
  margin: 0 auto 20px; /* 增加底部间距 */
  background-color: #ffffff; /* 纯白背景 */
  border-bottom: 1px solid #f3f4f6; /* 底部加一条极淡分割线 */
  /* 还可以选择加上顶部边框或者圆角，视喜好而定 */
}

.filter-left,
.filter-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.filter-bar label {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563; /* 深灰文字 */
}

.filter-select {
  padding: 8px 36px 8px 16px; /* 右侧预留箭头空间 */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.2s ease;
  appearance: none; /* 移除默认箭头 */
  -webkit-appearance: none;
  
  /* 自定义下拉箭头 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.filter-select:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.filter-select:focus {
  outline: none;
  border-color: #a3e635;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.1);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 0 40px; /* 去掉顶部 padding */
  max-width: 1400px;
  margin: 0 auto;
}

/* Category Section */
.category-section {
  grid-column: 1 / -1;
  margin-bottom: 40px;
}

/* 工具网格中的分类标题（不是category-hero中的） */
.tools-grid .category-title,
.category-section .category-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

/* 显示更多按钮容器 */
.load-more-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 20px;
  padding: 20px 0;
  width: 100%;
  clear: both;
}

.btn-load-more {
  display: inline-block;
  background: #a3e635;
  color: #1a1a1a;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #a3e635;
  min-width: 200px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.btn-load-more:hover {
  background: #84cc16;
  border-color: #84cc16;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(163, 230, 53, 0.3);
}

.category-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  background-color: white;
  cursor: pointer;  /* 显示为可点击的手型光标 */
}

.tool-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.tool-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff8e7, #fef3c7);
  color: #b45309;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.favorite-btn:hover {
  background-color: #f5f5f5;
  transform: scale(1.1);
}

.tool-content {
  padding: 20px;
  position: relative;
}

.tool-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-right: 80px;
}

.verified-badge {
  display: inline-block;
  background-color: #10b981;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.tool-rating {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
}

.rating {
  font-size: 14px;
  font-weight: 600;
}

.tool-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Leaderboard */
.mytools {
  position: fixed;
  right: 20px;
  top: 200px;
  width: 280px;
  max-height: calc(100vh - 220px);
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 50%, #f5f9ff 100%);
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, padding 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mytools:hover,
.mytools:focus-within {
  overflow-y: auto;
}

.mytools.collapsed {
  width: 60px;
  padding: 20px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mytools-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  min-height: 24px;
}

.mytools h3 {
  font-size: 18px;
  margin-bottom: 0;
  transition: opacity 0.3s ease;
  flex: 1;
}

.mytools.collapsed .mytools-header h3 {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mytools-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.3s;
  flex-shrink: 0;
  z-index: 10;
}

.mytools.collapsed .mytools-toggle {
  transform: translateY(-50%) rotate(180deg);
}

.mytools-toggle:hover {
  background-color: #f5f5f5;
}

.mytools.collapsed .mytools-toggle {
  transform: rotate(180deg);
}

.mytools-content {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 16px;
  overflow: visible;
}

.mytools.collapsed .mytools-content {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  flex: 0;
  margin: 0;
  padding: 0;
}

.mytools-add {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mytools-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 0px;
  box-sizing: border-box;
}

.mytools-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mytools-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mytools-add-btn {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  border: none;
  background-color: #6ee046;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mytools-add-btn:hover {
  background-color: #5cc736;
  transform: translateY(-1px);
}

.mytools-add-btn:active {
  background-color: #49aa27;
  transform: scale(0.95);
}

.mytools-list {
  flex: 1;
  overflow-y: hidden;
  overflow-x: hidden;
  padding-right: 6px;
}

.mytools-content:hover .mytools-list,
.mytools-content:focus-within .mytools-list {
  overflow-y: auto;
}

.mytools-list::-webkit-scrollbar {
  width: 6px;
}

.mytools-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

.mytools-list::-webkit-scrollbar-track {
  background: transparent;
}

.mytools-cta {
  font-size: 12px;
  line-height: 1.6;
  color: #1f2937;
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
}

.mytools-collapsed-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
}

.mytools.collapsed .mytools-collapsed-list {
  display: flex;
}

.mytools-collapsed-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mytools-collapsed-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.mytools-collapsed-avatar:hover {
  transform: scale(1.1);
}

.mytools-collapsed-item .user-avatar {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.mytools-collapsed-delete {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 16px;
  height: 16px;
  background-color: #ef4444;
  color: white;
  border: 1.5px solid white;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.mytools-collapsed-item:hover .mytools-collapsed-delete {
  opacity: 1;
}

.mytools-collapsed-delete:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}

.mytools-collapsed-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  padding: 10px 0;
  color: #999;
}

.countdown {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.mytools-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f7;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mytools-item:hover {
  background-color: #f9fafb;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 6px;
  box-sizing: border-box;
}

.mytools-item .mytools-delete {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 18px;
  height: 18px;
  background-color: #ef4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mytools-item:hover .mytools-delete {
  opacity: 1;
}

.mytools-item .mytools-delete:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}

.mytools-search-results {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background-color: white;
  margin-top: 8px;
}

.mytools-search-result-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

.mytools-search-result-item:last-child {
  border-bottom: none;
}

.mytools-search-result-item:hover {
  background-color: #f9fafb;
}

.mytools-search-result-item .result-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.mytools-search-result-item .result-desc {
  font-size: 11px;
  color: #666;
}

/* Detail Page Styles */
.detail-hero {
  text-align: center;
  padding: 60px 20px 0px;
}

.detail-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.detail-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.detail-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-section {
  padding: 40px 20px;
  max-width: 1380px;
  min-height: 400px;
  height: auto;
  max-height: 600px;
  overflow: hidden; 
  margin: 0 auto;
}

/* 隐藏空的 feature-section，防止占据空间 */
.feature-section:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* 如果图片加载失败或被隐藏，隐藏整个区域 */
.feature-section[style*="display: none"],
.feature-section:has(img[src=""]) {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
}

/* 隐藏注册和登录功能相关元素 */
#switchToRegister,
#registerForm,
#userAuthArea,
#loginForm,
#switchToLogin,
#authModal {
  display: none !important;
}

.feature-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
}

.detail-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px;
}

.badge {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.detail-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px;
}

.btn-visit {
  padding: 12px 32px;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-visit:hover {
  background-color: #333;
}

.btn-favorite,
.btn-share {
  padding: 12px 16px;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-favorite:hover,
.btn-share:hover {
  background-color: #f5f5f5;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0;
}

.detail-main {
  max-width: 100%;
}

/* 详情页面中的工具网格 */
.detail-main .tools-grid {
  padding: 20px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.detail-section {
  margin-bottom: 40px;
}

.detail-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.detail-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 24px;
}

.detail-section p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.detail-section ol {
  padding-left: 20px;
}

.detail-section li {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.rating-card,
.ownership-card,
.promote-card {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.rating-score {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.rating-stars {
  text-align: center;
  font-size: 20px;
  margin-bottom: 8px;
}

.rating-count {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.rating-details {
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background-color: #a3e635;
}

.rating-value {
  font-weight: 600;
  font-size: 14px;
}

.btn-claim,
.btn-report {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.btn-claim:hover,
.btn-report:hover {
  background-color: #f5f5f5;
}

.promote-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.promote-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 12px;
}

/*detail review */

/* Reviews */
.content-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-summary {
  display: flex;
  gap: 32px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 32px;
}

.review-summary-score {
  text-align: center;
}

.rating-stars-xl {
  color: #fbbf24;
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.rating-stars-small {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 1px;
}

.rating-number-xl {
  font-size: 48px;
  font-weight: 800;
  display: block;
  color: #1a1a1a;
}
.rating-number {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}
.rating-subtext {
  color: #6b7280;
  font-size: 14px;
}

.review-summary-details {
  flex: 1;
}

.review-count-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.btn-primary {
  background: #a3e635;
  color: #1a1a1a;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #84cc16;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-item {
  background: #f9fafb;
  padding: 24px;
  border-radius: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-weight: 600;
  font-size: 15px;
}

.review-date {
  color: #9ca3af;
  font-size: 13px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.review-content {
  color: #4b5563;
  line-height: 1.6;
}

.review-question {
  font-weight: 600;
  margin: 16px 0 8px;
  font-size: 14px;
  color: #1a1a1a;
}

.review-answer {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.pagination-reviews {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination-btn:hover {
  border-color: #a3e635;
  background: #f0fdf4;
}


/* Category Page Styles */
.category-hero {
  background: #1c2739;
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.category-hero .category-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  color: white !important;
  border-bottom: none !important;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-hero .category-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.95;
  color: white;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Category hero中的搜索框样式 */
.category-hero .search-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 10;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.category-hero .search-input {
  flex: 1;
  padding: 16px 28px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  background-color: transparent;
  color: #1a1a1a;
  outline: none;
}

.category-hero .search-input::placeholder {
  color: #999;
}

.category-hero .search-input:focus {
  outline: none;
}

.category-hero .search-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-hero .search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.category-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
}

.category-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 20px;
}
.category-main {
  min-width: 0;
  padding: 0;
}

.sidebar-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sidebar-section:hover {
  background-color: #e5e7eb;
}

.sidebar-section.active {
  background-color: #a3e635;
}

.sidebar-subcategories {
  margin-left: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap; /* 允许换行 */
  gap: 8px; /* 间距 */
  padding-left: 12px;
  border-left: 2px solid #e5e7eb;
}

.sidebar-sub-item {
  padding: 4px 10px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px; /* 圆角更明显，像标签 */
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block; /* 内联块级元素 */
}

.sidebar-sub-item:hover {
  background-color: #f3f4f6;
  color: #333;
  border-color: #d1d5db;
}

.sidebar-sub-item.active {
  background-color: #a3e635; /* 激活颜色 */
  color: #1a1a1a;
  font-weight: 600;
  border-color: #a3e635;
}

.sidebar-icon {
  font-size: 18px;
}

.sidebar-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 20px 0;
}

.sidebar-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #666;
}

.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-tag {
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  color: #1a1a1a;
  transition: all 0.3s;
  cursor: pointer;
}

.related-tag:hover {
  background-color: #f5f5f5;
}

.related-tag.active {
  background-color: #a3e635;
  border-color: #a3e635;
  color: #1a1a1a;
  font-weight: 600;
}

.related-tag.active:hover {
  background-color: #8fd400;
  border-color: #8fd400;
}

.category-main {
  min-width: 0;
  padding: 0;
}

/* Category页面中的工具网格 */
.category-main .tools-grid {
  padding: 20px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Category页面中的筛选栏 */
.category-main .filter-bar {
  padding: 2px 0;
  margin-bottom: 5px;
}

/* Footer Styles */
.footer {
  background-color: #1a1a1a;
  color: white;
  margin-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-logo-image {
  height: 32px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #999;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: all 0.3s;
}

.social-link:hover {
  background-color: #a3e635;
  color: #1a1a1a;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: #a3e635;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 14px;
  color: #666;
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-bottom-links a {
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-bottom-links a:hover {
  color: #a3e635;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .mytools {
    display: none;
  }

  .detail-container {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-main .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-layout {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .category-sidebar {
    position: static;
  }

  .category-main .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-column:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .detail-title {
    font-size: 32px;
  }

  .category-title {
    font-size: 32px;
  }

  .nav-container {
    flex-direction: column;
    gap: 16px;
  }

  .nav-left,
  .nav-right {
    flex: none;
    justify-content: center;
  }

  .logo {
    position: static;
    transform: none;
    order: -1;
  }

  .logo-image {
    height: 26px;
    max-width: 240px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .category-main .tools-grid {
    grid-template-columns: 1fr;
  }

  .detail-main .tools-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-column:first-child {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 登录/注册弹窗样式 */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.auth-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.auth-modal-close:hover {
  color: #1a1a1a;
}

.auth-form h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.form-group .required {
  color: #ef4444;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.btn-auth-primary {
  width: 100%;
  padding: 12px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 20px;
}

.btn-auth-primary:hover {
  background-color: #2563eb;
}

.btn-auth-primary:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-switch a {
  color: #3b82f6;
  text-decoration: none;
  margin-left: 4px;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* 数字验证码样式 */
.captcha-container {
  margin-top: 8px;
}

.captcha-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: 4px;
  text-align: center;
  font-weight: 600;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.captcha-input-wrapper input:focus {
  outline: none;
  border-color: #3b82f6;
}

.captcha-image-input {
  width: 120px;
  height: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
  object-fit: contain;
  background-color: #f5f5f5;
}

.captcha-image-input:hover {
  border-color: #3b82f6;
}

.btn-refresh-captcha {
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: #1a1a1a;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.btn-refresh-captcha:hover {
  background-color: #e5e5e5;
}

/* 用户头像样式 */
.user-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
}

.user-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
  font-weight: 600;
  color: white;
  font-size: 16px;
  user-select: none;
}

.user-avatar-circle:hover {
  transform: scale(1.05);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.user-avatar-container:hover .user-dropdown {
  display: block;
}

.user-dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.3s;
}

.user-dropdown-item:hover {
  background-color: #f5f5f5;
}

.user-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.user-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.user-dropdown-divider {
  height: 1px;
  background-color: #e5e5e5;
  margin: 4px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .auth-modal-content {
    padding: 30px 20px;
    max-width: 95%;
  }

  .captcha-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .captcha-image-input {
    width: 100%;
    height: 50px;
  }

  .btn-refresh-captcha {
    width: 100%;
  }

  .user-avatar-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

.user-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.user-avatar-wrapper .mytools-delete {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 18px;
  height: 18px;
  background-color: #ef4444;
  color: white;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

.user-avatar-wrapper:hover .mytools-delete {
  opacity: 1;
}

.mytools-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f7;
}
