/* 基本样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #0d1117;
}

#app {
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
/* 固定头部和导航区域 */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #0d1117;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  flex-wrap: nowrap;
}

.header h1 {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.title-container {
  position: relative;
  display: inline-block;
}

.header h1 .title-highlight {
  background: linear-gradient(120deg, #00e676, #1f6feb);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 24px;
  position: relative;
  text-shadow: none;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.4);
}

.title-badge {
  background-color: #ffffff;
  color: #000000;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: -8px;
  right: -35px;
  z-index: 2;
  transform: rotate(5deg);
}

.title-badge::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.header h1 .title-highlight::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 6px;
  background: linear-gradient(120deg, #00e676, #1f6feb);
  z-index: -1;
  filter: blur(4px);
  opacity: 0.7;
}

/* 删除不再使用的样式 */

/* 导航栏 */
.nav-wrapper {
  background-color: #0d1117;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
}

.nav {
  display: flex;
  padding: 10px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  color: #c9d1d9;
  margin-right: 20px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav .nav-item:hover {
  background-color: rgba(56, 139, 255, 0.1);
}

.date-display {
  margin-left: auto;
  color: #58a6ff;
  font-weight: 500;
  min-width: auto;
  max-width: none;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: none;
  border: none;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

.nav .date-display i {
  margin-right: 8px;
  color: #58a6ff;
}

/* 日期显示无需悬停效果 */

.nav-item.active {
  background-color: rgba(56, 139, 253, 0.1);
  color: #58a6ff;
}

.nav-item i {
  margin-right: 8px;
  font-size: 16px;
}

/* 内容区域 */
.content {
  padding-top: 120px; /* 头部+导航栏的高度加上一点空间 */
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  color: #c9d1d9;
  font-size: 18px;
  font-weight: 600;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 8px;
  font-size: 18px;
  color: #58a6ff;
}

.section-divider {
  height: 1px;
  flex-grow: 1;
  background-color: #30363d;
}

/* 卡片布局 */
.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background-color: #161b22;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #58a6ff;
}

.card-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #238636;
  color: #ffffff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 2;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 20px;
  padding-top: 45px;
  position: relative;
}

.card h3 {
  color: #e6edf3;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.4;
  margin-right: 15px; /* 右侧保留少量空间 */
  padding-top: 5px;
}

.card p {
  color: #8b949e;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 67px; /* 保持固定高度，确保卡片布局一致 */
}

.card .duration, .card .audience {
  color: #8b949e;
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.card .duration i, .card .audience i {
  margin-right: 5px;
  color: #58a6ff;
  font-size: 14px;
}

.card .info-container {
  margin-bottom: 15px;
}

.card .play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1f6feb;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card .play-button:hover {
  background-color: #2188ff;
}

.card .play-button i {
  margin-right: 5px;
}

/* 课程卡片 */
.course-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.course-card {
  background-color: #161b22;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #58a6ff;
}

.course-card .course-status {
  display: inline-block;
  background-color: #238636;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.course-card .course-status.completed {
  background-color: #1f6feb;
}

.course-card h3 {
  color: #e6edf3;
  margin-bottom: 10px;
  font-size: 18px;
}

.course-card .instructor {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.course-card .instructor i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
  color: #8b949e;
  font-size: 18px;
}

.course-card .instructor .name {
  color: #8b949e;
  font-size: 14px;
}

.course-card .course-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.course-card .course-info .tag {
  font-size: 12px;
  color: #8b949e;
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.course-card .course-info .tag i {
  margin-right: 5px;
  font-size: 14px;
}

.course-card .course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.course-card .update-date {
  color: #8b949e;
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-right: 10px;
  margin-bottom: 5px;
}

.course-card .update-date i {
  margin-right: 5px;
  color: #6e7681;
}

.course-card .difficulty {
  color: #8b949e;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.course-card .difficulty i {
  color: #f1e05a;
  margin-right: 2px;
  font-size: 12px;
}

.course-card .tools-used {
  color: #8b949e;
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.course-card .tools-used i {
  color: #6e7681;
  margin-right: 5px;
}

.course-card .description {
  color: #8b949e;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card .contact-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.course-card .contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.course-card .contact-info .name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.course-card .contact-info .email {
  font-size: 16px;
  margin-bottom: 10px;
}

.course-card .contact-info .phone {
  font-size: 16px;
  margin-bottom: 10px;
}

.course-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.course-card .entry-button {
  display: inline-flex;
  align-items: center;
  background-color: #1f6feb;
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.course-card .entry-button:hover {
  background-color: #2188ff;
}

.course-card .entry-button i {
  margin-left: 5px;
}

/* 联系我部分 */
.profile-card {
  width: 100%;
  max-width: 800px;
  background-color: #161b22;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #30363d;
}

.profile-header {
  display: flex;
  padding: 30px;
  background: linear-gradient(135deg, #0d1117, #1f2938);
  border-bottom: 1px solid #30363d;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #30363d;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background-color: #0d1117;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  margin-left: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0 0 5px 0;
}

.profile-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.title-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 30px;
  background-color: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  transition: all 0.2s ease;
}

.title-tag.primary {
  background-color: #1f6feb;
  color: white;
  border: 1px solid #1158c7;
}

a.title-tag {
  text-decoration: none;
  cursor: pointer;
}

a.title-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  background-color: #2ea043;
  border-color: #2ea043;
}

.profile-social {
  display: flex;
  gap: 15px;
}

.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1117, #161b22);
  margin-bottom: 10px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
}

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

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  background-color: #2ea043;
}

.profile-bio {
  padding: 30px;
}

.bio-title {
  font-size: 20px;
  color: white;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.bio-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #238636, #58a6ff);
  border-radius: 3px;
}

.achievement-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.achievement-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 12px 15px;
  background-color: #21262d;
  border-radius: 8px;
  border-left: 3px solid #238636;
  transition: all 0.3s ease;
}

.achievement-list li:hover {
  background-color: #262d36;
  transform: translateX(5px);
  border-left-color: #58a6ff;
}

.achievement-list li i {
  color: #238636;
  margin-right: 12px;
  font-size: 18px;
  padding-top: 2px;
}

/* 保留旧的联系按钮样式，但更新其颜色和效果 */
.contact-button {
  display: inline-flex;
  align-items: center;
  background-color: #1f6feb;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: #2ea043;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 二维码模态窗口样式 */
.qrcode-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.qrcode-modal.active {
  display: flex;
}

.qrcode-content {
  background-color: #0d1117;
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
  width: 300px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.qrcode-img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.close-modal, .close-newsboy-modal {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 20px;
  color: #8b949e;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(27, 31, 35, 0.8);
  transition: all 0.2s ease;
}

.close-modal:hover, .close-newsboy-modal:hover {
  color: #58a6ff;
  background-color: rgba(36, 41, 46, 1);
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .course-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .course-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .date-display {
    margin-top: 10px;
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .header .count {
    margin-top: 10px;
  }
  
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-container {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .nav {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .nav-item {
    margin-right: 10px;
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .section-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 15px 15px;
    margin-top: 75px; /* 为固定头部留出更多空间 */
  }
  
  .card h3 {
    font-size: 16px;
  }
  
  .card p {
    font-size: 13px;
  }
  
  .card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .header-container, .nav-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* 优化移动端的模态窗口 */
  .video-modal-content, .qrcode-content {
    padding: 20px 15px;
    max-width: 95%;
    margin: 0 10px;
  }
}

/* 视频详情模态窗口样式 */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  background-color: #0d1117;
  padding: 25px;
  border-radius: 10px;
  max-width: 90%;
  width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-video-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #8b949e;
  transition: color 0.3s;
}

.close-video-modal:hover {
  color: #58a6ff;
}

.video-modal-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #58a6ff;
  font-size: 20px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  color: #8b949e;
  font-size: 14px;
}

.modal-meta div {
  display: flex;
  align-items: center;
}

.modal-meta i {
  margin-right: 5px;
  color: #58a6ff;
}

#modal-description {
  line-height: 1.6;
  color: #c9d1d9;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

/* 课程详情模态窗口样式 */
.course-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.course-modal.active {
  display: flex;
}

.course-modal-content {
  background-color: #0d1117;
  padding: 25px;
  border-radius: 10px;
  max-width: 90%;
  width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-course-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #8b949e;
  transition: color 0.3s;
}

.close-course-modal:hover {
  color: #58a6ff;
}

.course-modal-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #58a6ff;
  font-size: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#course-modal-description {
  line-height: 1.6;
  color: #c9d1d9;
  margin: 20px 0;
  font-size: 15px;
}

.modal-tools {
  display: flex;
  align-items: center;
  margin: 15px 0;
  color: #8b949e;
  font-size: 14px;
}

.modal-tools i {
  margin-right: 5px;
  color: #58a6ff;
}

/* 卡片样式优化 */
.card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* 触摸高亮效果 */
  touch-action: manipulation; /* 减少点击延迟 */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card:active {
  transform: scale(0.98);
  transition: transform 0.1s;
}

.short-description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-actions, .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 5px;
}

.entry-button, .play-button {
  background-color: #238636;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.detail-button {
  background-color: #2d333b;
  color: #c9d1d9;
  border: none;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.detail-button:hover {
  background-color: #444c56;
}

/* AI工具集合 */
.tools-container {
  padding: 20px 0;
}

/* 工具类别样式 */
.tool-category {
  margin-bottom: 25px;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #58a6ff;
  border-left: 4px solid #58a6ff;
  padding-left: 10px;
  display: flex;
  align-items: center;
}

.category-title i {
  margin-right: 10px;
  font-size: 1.3rem;
}

/* 工具卡片网格布局 */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

/* 工具卡片样式 */
.tool-card {
  background: #161b22;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  border-color: #58a6ff;
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #58a6ff, #3178c6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.tool-icon i {
  color: white;
  font-size: 1.2rem;
}

.tool-card h4 {
  font-size: 1.1rem;
  margin: 0 0 6px 0;
  color: #fff;
}

.tool-card p {
  color: #8b949e;
  font-size: 0.85rem;
  margin-bottom: 10px;
  flex: 1;
}

/* 标签样式 */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tool-tags .tag {
  background: rgba(88, 166, 255, 0.15);
  color: #58a6ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background-color: rgba(88, 166, 255, 0.15);
  color: #58a6ff;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto;
  width: fit-content;
  align-self: flex-end;
}

.tool-link:hover {
  background-color: #58a6ff;
  color: white;
}

.tool-link i {
  margin-left: 5px;
  font-size: 0.8rem;
}

/* 响应式布局调整 */
@media screen and (max-width: 768px) {
  .tool-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .tool-card {
    padding: 15px;
  }
  
  .category-title {
    font-size: 1.3rem;
    margin-left: 15px;
    margin-right: 15px;
  }
}
