/* ========================================
   首页样式 - 现代简约风格
   作者：胡智鹏
   日期：2025-11-18
   ======================================== */

/* 搜索框 - 精致设计 */
#searchBar {
  color: var(--md-sys-color-on-surface);
  background-color: rgb(255 255 255);
  width: 100%;
  font-size: 16px;
  margin-bottom: 2rem;
  padding: 0.875rem 3.5rem;
  border: 1px solid rgb(224 231 234);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(38, 50, 56, 0.04);
}

#searchBar:focus {
  border-color: rgb(84 110 122);
  box-shadow: 0 0 0 3px rgba(84, 110, 122, 0.12), 0 2px 6px rgba(38, 50, 56, 0.08);
}

#searchBar::placeholder {
  color: rgb(176 190 197);
}

/* 过滤按钮容器 */
#filtersContainer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* 过滤按钮 - 精致设计 */
.filter-button {
  color: rgb(96 125 139);
  user-select: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: rgb(255 255 255);
  border: 1px solid rgb(224 231 234);
  transition: all 0.2s ease;
  font-weight: 500;
}

.filter-button:hover {
  background-color: rgb(245 246 247);
  color: rgb(55 71 79);
  border-color: rgb(207 216 220);
  box-shadow: 0 2px 4px rgba(38, 50, 56, 0.06);
}

.filter-button.active {
  background-color: rgb(84 110 122);
  color: rgb(255 255 255);
  border-color: rgb(84 110 122);
  box-shadow: 0 2px 6px rgba(84, 110, 122, 0.24);
}

/* 搜索图标 */
.search-icon {
  position: absolute;
  margin: 0.875rem 1rem;
  border: none;
  color: rgb(96 125 139);
}

/* 收藏图标 */
.favorite-icon {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  color: rgb(176 190 197);
  transition: transform 0.2s ease, color 0.2s ease;
}

#tool-icon {
  height: 100%;
}

#tool-text {
  margin: 0 0 0 1.25rem;
}

.favorite-icon img {
  filter: brightness(0) saturate(0) invert(0.5);
}

.favorite-icon:hover {
  color: rgb(84 110 122);
}

.favorite-icon:hover .material-symbols-rounded {
  transform: scale(1.1);
}

.favorite-icon .material-symbols-rounded.fill {
  color: rgb(84 110 122);
}

/* Jumbotron - 简洁内边距 */
.jumbotron {
  padding: 2rem 1.5rem;
  background-color: transparent;
  border-radius: 0;
}

/* 移除花哨动画效果 */
.lookatme {
  opacity: 1;
  position: relative;
  display: inline-block;
}

/* 新功能标记 - 精致设计 */
.newfeature {
  display: flex;
  width: fit-content;
  padding: 0.25rem 0.625rem;
  background-color: rgb(236 239 241);
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgb(84 110 122);
  font-weight: 500;
}

/* 最近功能列表 */
.recent-features {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  overflow: hidden;
  justify-content: center;
  gap: 0.75rem;
}

/* 图标颜色 - 精致色调 */
.close-icon {
  color: rgb(176 190 197) !important;
  transition: color 0.2s ease;
}

.close-icon:hover {
  color: rgb(96 125 139) !important;
}

.add-icon {
  color: rgb(84 110 122) !important;
  transition: color 0.2s ease;
}

.add-icon:hover {
  color: rgb(55 71 79) !important;
}

/* ========================================
   功能卡片布局
   ======================================== */

.feature-card {
  border: 1px solid rgb(224 231 234);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgb(255 255 255);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  outline: 0px solid transparent;
  position: relative;
  box-shadow: 0 1px 3px rgba(38, 50, 56, 0.06), 0 1px 2px rgba(38, 50, 56, 0.08);
}

.feature-card a {
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.feature-card .card-text {
  font-size: 0.875rem;
  color: rgb(96 125 139);
}

.feature-card:hover {
  cursor: pointer;
  transform: translateY(-4px);
  border-color: rgb(207 216 220);
  box-shadow: 0 8px 16px rgba(38, 50, 56, 0.1), 0 4px 8px rgba(38, 50, 56, 0.08);
}

.card-title.text-primary {
  color: rgb(55 71 79);
  font-weight: 600;
}

.home-card-icon {
  width: 3rem;
  height: 3rem;
  transform: translateY(-5px);
}

.card-title {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: rgb(55 71 79);
}

/* 收藏图标 - 悬停显示 */
.feature-card:hover .favorite-icon {
  display: block !important;
}

.favorite-icon img {
  filter: brightness(0) invert(var(--md-theme-filter-color));
}

/* ========================================
   响应式优化 - 移动端
   ======================================== */

@media (max-width: 768px) {
  #searchBar {
    padding: 0.75rem 3rem;
    font-size: 14px;
    border-radius: 6px;
  }

  .search-icon {
    margin: 0.75rem 0.75rem;
  }

  #filtersContainer {
    gap: 8px;
    flex-wrap: wrap;
  }

  .filter-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .jumbotron {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  #searchBar {
    margin-bottom: 1.5rem;
  }

  #filtersContainer {
    gap: 6px;
  }

  .filter-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}
