/* 通用：栏目页 Banner */
.page-hero {
  padding: 34px 0;
  background: linear-gradient(180deg, var(--bg-soft), #fff 85%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 30px;
  margin: 0;
}

.breadcrumb {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* 产品分类子页（独立 HTML） */
.category-main {
  padding: 132px 0 56px;
  background: #fff;
}

.product-detail-main {
  padding: 132px 0 48px;
  background: #fff;
}

.product-detail-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: start;
}

.product-detail-media {
  position: relative;
}

.product-detail-zoom {
  border: 1px solid #e6eaf2;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.product-detail-zoom img {
  width: 100%;
  display: block;
  transition: transform 0.12s ease;
}

.product-detail-lens {
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(32, 68, 170, 0.22);
  border: 1px solid rgba(32, 68, 170, 0.52);
  display: none;
  pointer-events: none;
  background-image: radial-gradient(rgba(35, 70, 165, 0.4) 1px, transparent 1px);
  background-size: 6px 6px;
}

.product-detail-preview {
  position: absolute;
  top: 0;
  right: -292px;
  width: 270px;
  height: 270px;
  border: 1px solid #dbe1ec;
  background: #fff no-repeat center / 240%;
  display: none;
}

.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-detail-thumb {
  border: 1px solid #e2e7f0;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.product-detail-thumb.is-active {
  border-color: var(--brand);
}

.product-detail-thumb img {
  width: 100%;
  display: block;
}

.product-detail-code {
  margin: 0;
  font-size: 26px;
  color: #8a92a3;
}

.product-detail-title {
  margin: 10px 0 14px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 400;
  color: #1f2952;
}

.product-detail-desc {
  margin: 0;
  color: #4b5467;
  font-size: 15px;
  line-height: 1.9;
}

.product-detail-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
}

.detail-btn {
  min-width: 168px;
  height: 50px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.detail-btn.is-active {
  background: #163893;
}

.detail-btn.is-added {
  animation: detailBtnAdded 0.42s ease;
}

.detail-btn.is-duplicate {
  animation: detailBtnDuplicate 0.36s ease;
}

@keyframes detailBtnAdded {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.16);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes detailBtnDuplicate {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

.product-detail-action-panels {
  margin-top: 16px;
}

.detail-action-panel {
  border: none;
  background: transparent;
  padding: 0;
}

.detail-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-contact-card {
  border: 1px solid #edf1f6;
  padding: 12px 14px;
}

.detail-contact-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #28b0ff, #1c85db);
  position: relative;
}

.detail-contact-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.detail-contact-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 20px;
  height: 11px;
  border-radius: 12px 12px 2px 2px;
  background: #fff;
  transform: translateX(-50%);
}

.detail-contact-head h4 {
  margin: 0;
  font-size: 22px;
  color: #19a5ff;
  font-weight: 700;
}

.detail-contact-card p {
  margin: 4px 0;
  color: #3a4356;
  font-size: 14px;
  line-height: 1.7;
}

.detail-contact-card p span {
  color: #6f788e;
}

.detail-contact-card p strong {
  font-weight: 400;
  color: #3a4356;
  white-space: nowrap;
  display: inline-block;
}

.detail-wechat-scan {
  border: none;
  background: transparent;
  color: #1f47ab;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.detail-download-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1f2738;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.detail-download-toggle-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.detail-download-toggle-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #1f47ab;
  border-bottom: 2px solid #1f47ab;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.detail-download-toggle.is-open .detail-download-toggle-icon::before {
  transform: translate(-50%, -30%) rotate(225deg);
}

.detail-download-list {
  display: block;
}

.detail-download-item {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #eef2f8;
  color: #2b3244;
}

.detail-download-item:hover {
  color: var(--brand);
}

.detail-download-empty {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #eef2f8;
  color: #8f96a8;
}

.detail-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
}

.detail-wechat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 28, 0.45);
}

.detail-wechat-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid #e8edf6;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.detail-wechat-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #f1f4fb;
  cursor: pointer;
  font-size: 18px;
}

.detail-wechat-dialog h4 {
  margin: 0;
  font-size: 18px;
  color: #1f2738;
}

.detail-wechat-qr {
  margin: 14px auto 10px;
  width: 220px;
  aspect-ratio: 1 / 1;
  border: 1px solid #e8edf6;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #778095;
  font-weight: 700;
  background: repeating-linear-gradient(
    45deg,
    #f4f7fb,
    #f4f7fb 10px,
    #eef2f8 10px,
    #eef2f8 20px
  );
}

.detail-wechat-dialog p {
  margin: 0;
  color: #7a8193;
  font-size: 14px;
}

.detail-tabs {
  margin-top: 22px;
  display: flex;
  gap: 34px;
  border-bottom: 1px solid #d5dcea;
  padding-bottom: 10px;
  width: 100%;
}

.detail-tabs button {
  border: none;
  background: transparent;
  padding: 0 2px 10px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  color: #1f2738;
  position: relative;
}

.detail-tabs button.active {
  color: #1f2738;
  font-weight: 700;
}

.detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -11px;
  height: 3px;
  background: #d1243b;
}

.detail-tab-content {
  margin-top: 22px;
  padding: 12px 0 6px;
  border-top: none;
}

.detail-backend-text {
  margin-top: 6px;
  padding: 6px 0 0;
  min-height: 0;
  color: #1f2738;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-tab-content h3 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 500;
  color: #1f2738;
  padding-left: 14px;
  position: relative;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.detail-tab-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 28px;
  background: var(--brand);
}

.detail-tab-content h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f398e;
}

.detail-tab-content p,
.detail-list {
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: #2b3140;
}

.detail-tab-content p + p {
  margin-top: 6px;
}

.detail-list {
  padding-left: 18px;
}

.detail-recommend-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-recommend-card {
  display: block;
  color: inherit;
}

.detail-recommend-image {
  display: grid;
  place-items: center;
  height: 212px;
  background: #fff;
  border: 1px solid #e5e9f0;
  padding: 10px;
  overflow: hidden;
}

.detail-recommend-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-recommend-name {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #2b3140;
  text-align: center;
}

.detail-app-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 46px;
  row-gap: 22px;
}

.detail-app-item {
  border-bottom: 1px solid #eef1f6;
  padding-bottom: 14px;
  display: block;
  color: #171f31;
  text-decoration: none;
  outline: none;
}

.detail-tab-content .detail-app-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.32;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.detail-app-item:hover,
.detail-app-item:active,
.detail-app-item:focus-visible,
.detail-app-item:visited {
  color: var(--brand);
}

.detail-app-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(31, 71, 171, 0.18);
  border-radius: 6px;
}

.detail-app-excerpt {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.85;
  color: #6c7486;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-app-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.detail-app-more-btn {
  min-width: 122px;
  height: 34px;
  border: 1px solid #173ea8;
  background: #1d3ca6;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.detail-app-more-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("../images/icon-loading-more.png") no-repeat center / contain;
}

.detail-app-more-btn.is-loading::before {
  animation: detail-spin 0.8s linear infinite;
}

.detail-app-more-btn.is-finished {
  background: #8f97ab;
  border-color: #8f97ab;
}

.detail-app-more-btn:disabled {
  cursor: not-allowed;
  opacity: 0.92;
}

@keyframes detail-spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-doc-list {
  margin-top: 26px;
}

.detail-doc-item {
  display: inline-block;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: #131c2f;
  text-decoration: none;
  transition: color 0.18s ease;
}

.detail-doc-item:hover {
  color: var(--brand);
}

.detail-doc-item:active,
.detail-doc-item:focus-visible,
.detail-doc-item:visited {
  color: var(--brand);
}

.category-main .container {
  max-width: 1100px;
}

.category-title {
  margin: 0 0 18px;
  font-size: 38px;
  font-weight: 400;
  color: #1a1f2c;
}

.category-hero {
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: none;
}

.category-hero.hero-carousel {
  position: relative;
  min-height: 220px;
}

.category-hero.hero-carousel .hero-slide {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.category-hero.hero-carousel .hero-overlay-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}

.category-hero img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.category-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.9;
  color: #4a5160;
}

.category-service-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.category-service-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e6eaf2;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-service-card:hover {
  border-color: rgba(30, 49, 144, 0.35);
  box-shadow: var(--shadow-soft);
}

.category-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1c3d99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-service-icon svg {
  width: 26px;
  height: 26px;
}

.category-service-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.category-service-sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #8b93a5;
  text-transform: uppercase;
}

.category-product-band {
  background: #f5f6fa;
  margin-top: 12px;
  padding: 26px 0 30px;
}

.category-product-section {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.category-products-heading {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1f2c;
}

.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: #fff;
  border-radius: 0;
  border: 1px solid #e6eaf2;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  border-color: rgba(30, 49, 144, 0.32);
  box-shadow: var(--shadow-soft);
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding-bottom: 14px;
}

.product-card-img {
  aspect-ratio: 4 / 3;
  background: #eef1f7;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-name {
  margin: 12px 16px 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1f2c;
}

.product-card-desc {
  margin: 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7385;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card--subcategory {
  position: relative;
}

.product-card--subcategory .product-card-link {
  position: relative;
}

.product-sub-hover {
  position: absolute;
  inset: 0;
  background: rgba(22, 52, 145, 0.88);
  color: #fff;
  padding: 22px 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.product-sub-hover-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.product-sub-hover-line {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.product-sub-hover-desc {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 88%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.product-sub-hover-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}

.product-card--subcategory:hover .product-sub-hover {
  opacity: 1;
}

.product-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.product-page-btn {
  min-width: 46px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #f0f2f7;
  background: #fff;
  color: #222c3d;
  border-radius: 0;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.product-page-btn.nav-btn {
  min-width: 98px;
}

.product-page-btn:hover {
  border-color: #d5dbea;
}

.product-page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-page-btn.is-disabled,
.product-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  .product-detail-wrap {
    grid-template-columns: 1fr;
  }

  .detail-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-app-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .detail-tab-content .detail-app-title {
    font-size: 16px;
  }

  .detail-app-excerpt {
    font-size: 16px;
    line-height: 1.7;
  }

  .detail-doc-item {
    font-size: 20px;
    line-height: 1.4;
  }

  .product-detail-preview {
    display: none !important;
  }

  .category-service-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-main {
    padding-top: 120px;
  }

  .category-title {
    font-size: 26px;
  }

  .product-grid-3 {
    grid-template-columns: 1fr;
  }
}
