.tech-page .site-header {
  position: sticky;
  top: 0;
}

.tech-page main {
  background: var(--color-white);
}

.tech-breadcrumb {
  background: #f4f8fb;
}

.tech-breadcrumb .container {
  display: flex;
  min-height: 50px;
  align-items: center;
}

.tech-breadcrumb .breadcrumbs {
  gap: 10px;
  color: #24364b;
  font-size: 14px;
}

.tech-breadcrumb .breadcrumbs li,
.tech-breadcrumb .breadcrumbs a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-breadcrumb .breadcrumbs a {
  color: #172c43;
}

.tech-breadcrumb .breadcrumbs .icon {
  width: 18px;
  height: 18px;
  color: #0879c9;
}

.tech-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background: #062d58;
}

.tech-hero::before {
  position: absolute;
  inset: 0 0 0 43%;
  background: var(--tech-hero-image, url("../images/category-injectors-web.jpg")) center 43% / cover no-repeat;
  content: "";
  filter: saturate(0.8);
  transform: scale(1.03);
}

.tech-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #062d58 0%, #073a70 38%, rgb(6 45 88 / 82%) 53%, rgb(6 45 88 / 15%) 100%);
  content: "";
}

.tech-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 208px;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.tech-hero h1 {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
  color: var(--color-white);
  font-size: 46px;
  letter-spacing: -1.5px;
}

.tech-hero h1::before {
  width: 9px;
  height: 42px;
  flex: 0 0 auto;
  background: #008cff;
  content: "";
  transform: skew(-20deg);
}

.tech-hero__content > p {
  margin-bottom: 22px;
  color: #f2f7fc;
  font-size: 18px;
  line-height: 1.65;
}

.tech-search {
  display: flex;
  width: min(600px, 100%);
  height: 46px;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-white);
}

.tech-search > .icon {
  width: 19px;
  height: 19px;
  margin-left: 15px;
  color: #7b8795;
}

.tech-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.tech-search:focus-within {
  box-shadow: 0 0 0 3px rgb(0 140 255 / 30%);
}

.tech-search button {
  height: 100%;
  padding-inline: 26px;
  color: var(--color-white);
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
}

.tech-search button:hover {
  background: var(--color-primary-dark);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
}

.tech-category {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 14px 10px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  color: #172c43;
  background: var(--color-white);
  box-shadow: 0 3px 10px rgb(16 24 40 / 4%);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.tech-category:hover,
.tech-category.is-active {
  border-color: #8bc5ec;
  color: #0759a6;
  background: #f0f8ff;
  transform: translateY(-2px);
}

.tech-category .icon {
  width: 32px;
  height: 32px;
  color: #0879c9;
  stroke-width: 1.6;
}

.tech-tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 4px;
  color: #0759a6;
  background: #e2f1fd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.tech-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #0759a6;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.tech-text-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.tech-guides {
  padding-top: 24px;
  scroll-margin-top: 100px;
}

/* 分类筛选态下的「查看全部」入口，替代原来的区块标题行。 */
.tech-guides__filter {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.tech-guides__filter .tech-text-link {
  font-size: 13px;
}

/* 文章列表：一行一条，去掉封面图，靠标题 + 摘要 + 元信息区分。 */
.tech-guide-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e3e9ef;
  list-style: none;
}

.tech-guide-item {
  display: block;
  padding: 22px 4px 24px;
  border-bottom: 1px solid #e8eef4;
  transition: background-color var(--transition-fast);
}

.tech-guide-item:hover,
.tech-guide-item:focus-visible {
  background: #f7fbfe;
}

.tech-guide-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #7b8795;
  font-size: 12px;
  line-height: 1.4;
}

.tech-guide-item h3 {
  margin: 10px 0 8px;
  color: #172c43;
  font-size: 21px;
  letter-spacing: -0.4px;
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.tech-guide-item:hover h3 {
  color: #0759a6;
}

.tech-guide-item > p {
  max-width: 880px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tech-guide-item .tech-text-link {
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination__item {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: var(--color-white);
  font-size: 13px;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pagination__item:hover:not(.is-disabled):not(.is-active),
.pagination__item.is-active {
  border-color: var(--color-primary);
  color: var(--color-white);
  background: var(--color-primary);
}

.pagination__item.is-active {
  box-shadow: 0 5px 12px rgb(0 109 255 / 22%);
}

.pagination__item.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination__dots {
  padding-inline: 3px;
  color: var(--color-muted);
}

.tech-empty {
  margin-top: 20px;
  padding: 42px 20px;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #f5f8fb;
  text-align: center;
}

.tech-empty h3 {
  margin-bottom: 8px;
}

.tech-empty p {
  margin-bottom: 20px;
  color: var(--color-muted);
}

.tech-cta {
  padding-top: 34px;
  padding-bottom: 58px;
}

.tech-cta__panel {
  position: relative;
  display: grid;
  min-height: 150px;
  /* 文案列不再吃满剩余空间，按钮紧跟在文案后面。 */
  grid-template-columns: minmax(0, 560px) auto minmax(180px, 1fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 26px 30px;
  border-radius: 10px;
  background: linear-gradient(110deg, #f4faff 0%, #e7f4ff 70%, #d5ebff 100%);
}

.tech-cta__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.tech-cta h2 {
  margin-bottom: 10px;
  color: #172c43;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.tech-cta p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tech-cta__button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  color: var(--color-white);
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tech-cta__button:hover {
  background: var(--color-primary-dark);
}

.tech-cta__button .icon {
  width: 20px;
  height: 20px;
}

.tech-cta__media {
  position: relative;
  width: 100%;
  height: 140px;
  pointer-events: none;
}

.tech-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 1199px) {
  .tech-categories {
    gap: 12px;
  }

  .tech-category {
    font-size: 12px;
  }
}

@media (max-width: 1023px) {
  .tech-hero__content {
    padding-block: 34px;
  }

  .tech-hero h1 {
    font-size: 31px;
  }

  .tech-guide-item h3 {
    font-size: 19px;
  }

  .tech-cta__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 28px;
  }

  .tech-cta__media {
    height: 160px;
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .tech-hero h1 {
    font-size: 29px;
  }

  .tech-hero__break {
    display: none;
  }

  .tech-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-category {
    min-height: 92px;
    font-size: 13px;
  }

  .tech-guide-item {
    padding: 20px 2px 22px;
  }

  .tech-guide-item h3 {
    font-size: 18px;
  }

  .tech-cta__panel {
    grid-template-columns: 1fr;
    padding: 26px 24px 0;
  }

  .tech-cta__button {
    justify-self: start;
  }

  .tech-cta__media {
    width: calc(100% + 48px);
    height: 180px;
    margin-inline: -24px;
  }
}

@media (max-width: 479px) {
  .tech-hero h1 {
    font-size: 26px;
  }

  .tech-hero__content > p {
    font-size: 14px;
  }

  .tech-search button {
    padding-inline: 18px;
  }

  .tech-search input {
    font-size: 12px;
  }

  .tech-guide-item h3 {
    font-size: 17px;
  }

  .pagination__item {
    min-width: 31px;
    height: 32px;
    padding-inline: 6px;
  }

  .tech-cta h2 {
    font-size: 22px;
  }
}

@media (max-width: 1023px) {
  .tech-hero__content {
    padding-block: 28px;
  }

  .tech-hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .tech-breadcrumb .container {
    min-height: 44px;
  }

  .tech-hero::before {
    inset: 0;
    opacity: 0.35;
  }

  .tech-hero::after {
    background: linear-gradient(90deg, rgb(6 45 88 / 96%), rgb(6 45 88 / 72%));
  }

  .tech-hero__content {
    min-height: 300px;
    padding-block: 30px;
  }

  .tech-hero h1 {
    gap: 14px;
    font-size: 34px;
    letter-spacing: -1px;
  }

  .tech-hero h1::before {
    width: 7px;
    height: 34px;
  }

  .tech-hero__content > p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 479px) {
  .tech-hero h1 {
    font-size: 34px;
  }
}
