/* 布局修复 */
.content-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 25px;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

.tool-section {
  margin-bottom: 40px;
  position: relative;
}

.see-all {
  position: absolute;
  right: 0;
  top: 5px;
}

.see-all a {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.see-all a i {
  margin-left: 5px;
  font-size: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .tag {
  display: inline-block;
  padding: 5px 10px;
  background: #f5f7fa;
  border-radius: 15px;
  color: #666;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-cloud .tag:hover {
  background: var(--primary-color);
  color: white;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
}

.top-links {
  display: flex;
  gap: 15px;
}

.top-links a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.top-links a:hover {
  color: var(--primary-color);
}

/* 响应式导航 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .advanced-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: none;
  }
  
  .advanced-nav.active {
    display: block;
  }
  
  .advanced-nav ul {
    flex-direction: column;
  }
  
  .advanced-nav li {
    margin: 10px 0;
  }
}

/* 确保主容器在移动设备上有足够的内边距 */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
} 

/* 修复工具卡片描述显示问题 */
.tool-content {
  height: auto !important;
  min-height: 0 !important;
}

.tool-content p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 1em !important;
  position: static !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  pointer-events: auto !important;
}

/* 确保卡片容器不会隐藏内容 */
.tool-card, 
.advanced-card {
  height: auto !important;
  min-height: 50px !important;
  overflow: visible !important;
}

/* 针对高级卡片样式的修复 */
.advanced-card .card-body p.card-desc {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 移除任何可能隐藏描述的样式 */
.tool-content p::before,
.tool-content p::after,
.card-body p::before,
.card-body p::after {
  display: none !important;
  content: none !important;
} 