/* 页面基础容器 */
.equipments-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
}

/* 头部样式 */
.equipments-header {
  position: relative;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2rem;
}

.equipments-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  font-family: var(--font-family-title, inherit);
  color: #fff;
}

.equipments-subtitle {
  color: var(--color-text-muted, #888);
  font-size: 1rem;
}

.equipments-badge {
  position: absolute;
  right: 0;
  top: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 分组标题样式 */
.group-section {
  margin-bottom: 4rem;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  width: fit-content;
  border-radius: 4px;
}

.group-icon {
  color: var(--color-accent, #eab308);
  font-weight: bold;
}

.group-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.group-count {
  font-size: 0.8rem;
  background: var(--color-accent, #eab308);
  color: #000;
  padding: 0 6px;
  border-radius: 3px;
  font-weight: bold;
}

/* 网格布局 */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* 卡片主体 - 重点：增加了 text-decoration 和 cursor */
.equipment-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none; /* 移除链接下划线 */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.equipment-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 机能风角装饰 */
.tech-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-accent, #eab308);
}

.top-left {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.top-right {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}
.bottom-left {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}
.bottom-right {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* 内容排版 */
.item-meta-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.meta-status {
  position: relative;
  padding-left: 15px;
}

.meta-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--color-accent, #eab308);
}

.item-title {
  font-size: 1.4rem;
  margin-bottom: 0.4rem; /* 缩减边距，腾位给规格小字 */
  color: #fff;
}

/* 重点：规格小字样式 */
.item-specification {
  font-size: 0.75rem;
  color: var(--color-accent, #eab308);
  font-family: var(--font-mono, monospace);
  opacity: 0.7;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-image-box {
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border-radius: 2px;
}

.item-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta-footer {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.8rem;
  text-align: right;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .equipments-title {
    font-size: 1.8rem;
  }
}
