@charset "UTF-8";

/* ===== 光学工具集封面页 ===== */
.tools-cover {
  padding: 1rem 0;
}

.tools-cover-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tools-cover-header .page-title {
  font-size: 2rem;
  color: #1D2129;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tools-cover-header .page-subtitle {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* 卡片网格 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tools-cover-header {
    margin-bottom: 1.5rem;
  }
  .tools-cover-header .page-title {
    font-size: 1.5rem;
  }
}

/* 单个卡片 */
.tools-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--el-gray-300);
  border-radius: 10px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(15,76,129,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tools-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f4c81, #0FC6C2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tools-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(15,76,129,0.1), 0 2px 8px rgba(15,76,129,0.06);
  border-color: rgba(15,76,129,0.15);
}

.tools-card:hover::before {
  transform: scaleX(1);
}

.tools-card:hover .tools-card-icon {
  transform: scale(1.08);
  background: rgba(15,76,129,0.08);
}

.tools-card:hover .tools-card-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* 卡片图标 */
.tools-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(15,76,129,0.06);
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.tools-card-icon i {
  font-size: 28px;
  color: #0f4c81;
}

.tools-card-icon .bi-circle,
.tools-card-icon .bi-circle-half {
  font-size: 14px;
}

/* 卡片标题 */
.tools-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1D2129;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

/* 卡片描述 */
.tools-card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

/* 卡片特性标签 */
.tools-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tools-card-tag {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.5;
}

/* 卡片底部箭头 */
.tools-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #0f4c81;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
  align-self: flex-start;
}

.tools-card-arrow i {
  font-size: 12px;
}
