/* ================================
   自定义页面：硬件笔记入口页
================================ */

.customized-hardware-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.customized-hardware-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: 28px;
  padding: 34px 0 28px;
  border-bottom: 1px solid #dbe4ee;
}

.customized-hardware-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.customized-hardware-heading h1 {
  margin: 0 0 14px;
  color: #102033;
  font-size: 44px;
  font-weight: 850;
  line-height: 1.12;
}

.customized-hardware-heading p {
  max-width: 620px;
  margin: 0;
  color: #52616f;
  font-size: 16px;
  line-height: 1.8;
}

.customized-hardware-search {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.customized-hardware-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  color: #102033;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.customized-hardware-search button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: #1e3a8a;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.18s ease;
}

.customized-hardware-search button:hover {
  background: #1d4ed8;
}

.customized-hardware-sections {
  margin-top: 28px;
}

.customized-hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.customized-hardware-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  min-height: 164px;
  padding: 22px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.customized-hardware-card:hover {
  border-color: #1e3a8a;
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.1);
  transform: translateY(-2px);
}

.customized-hardware-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #1e3a8a;
  background: #f2f7fb;
  border: 1px solid #d7e4ee;
  border-radius: 8px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
}

.customized-hardware-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customized-hardware-card h2 {
  margin: 1px 0 10px;
  color: #102033;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.customized-hardware-card p {
  margin: 0;
  color: #52616f;
  font-size: 14px;
  line-height: 1.75;
}

.customized-hardware-card-posts {
  display: none;
}

.customized-hardware-empty {
  padding: 34px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.customized-hardware-empty h2 {
  margin: 0;
  color: #102033;
  font-size: 22px;
}


@media (max-width: 992px) {
  .customized-hardware-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .customized-hardware-search {
    max-width: 560px;
  }

  .customized-hardware-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .customized-hardware-header {
    padding-top: 22px;
  }

  .customized-hardware-heading h1 {
    font-size: 34px;
  }

  .customized-hardware-heading p {
    font-size: 15px;
  }

  .customized-hardware-search {
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
  }

  .customized-hardware-search input,
  .customized-hardware-search button {
    width: 100%;
  }

  .customized-hardware-page {
    padding: 24px 14px 44px;
  }

  .customized-hardware-grid {
    grid-template-columns: 1fr;
  }

  .customized-hardware-card {
    padding: 18px;
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .customized-hardware-page {
    padding: 18px 12px 36px;
  }

  .customized-hardware-header {
    gap: 18px;
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .customized-hardware-kicker {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .customized-hardware-heading h1 {
    margin-bottom: 10px;
    font-size: 30px;
  }

  .customized-hardware-heading p {
    font-size: 14px;
    line-height: 1.65;
  }

  .customized-hardware-search {
    flex-direction: row;
    min-height: 42px;
    padding: 3px;
  }

  .customized-hardware-search input {
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .customized-hardware-search button {
    width: 64px;
    height: 36px;
    padding: 0;
    font-size: 13px;
  }

  .customized-hardware-sections {
    margin-top: 18px;
  }

  .customized-hardware-grid {
    gap: 12px;
  }

  .customized-hardware-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .customized-hardware-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .customized-hardware-card h2 {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .customized-hardware-card p {
    font-size: 13px;
    line-height: 1.65;
  }

  .customized-hardware-empty {
    padding: 26px 16px;
  }
}
