/* 仅调整造模服务的数据检测入口与详情；顶部横幅沿用原版。 */
.svc-page #testing .svc-test-card {
  display: flex;
  flex-direction: column;
  border-radius: 9px;
  box-shadow: 0 4px 16px #244e7005;
}
.svc-page #testing .svc-test-card h3 {
  min-height: 61px;
}
.svc-page #testing .svc-test-card h3 span {
  transition:
    color 0.2s,
    transform 0.2s;
}
.svc-page #testing .svc-test-card:hover h3 span {
  color: #087bb7;
  transform: translate(2px, -2px);
}
.svc-page #testing .svc-test-card p {
  flex: 1;
  color: #5f7b8e;
  background: linear-gradient(180deg, #fff, #fafcfe);
  line-height: 1.9;
}
.svc-page #testing .svc-test-card:focus-visible {
  outline: 3px solid #79bde3;
  outline-offset: 4px;
  box-shadow: 0 8px 22px #2a7faa16;
}
.svc-page #testing .svc-test-other .svc-test-image:after {
  display: none;
}
/* 检测详情保持单列信息展示，序号加粗放大，导航采用简洁反馈。 */
#testing-detail {
  background: #fff;
}
#testing-detail .td-workspace {
  scroll-margin-top: 0;
}
#testing-detail .test-detail-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
#testing-detail .test-detail-main {
  min-width: 0;
}
#testing-detail .test-content-section {
  margin-bottom: 34px;
}
#testing-detail .test-content-section .eyebrow {
  font-size: 10px;
  color: #7897ac;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
#testing-detail .test-content-section h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #184b68;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
}
#testing-detail .test-content-section h2:before {
  content: '';
  display: block;
  width: 3px;
  height: 22px;
  flex: none;
  border-radius: 2px;
  background: #1686b8;
}
#testing-detail .td-scope-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #f5f9fc;
}
#testing-detail .td-scope {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2a6382;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}
#testing-detail .td-scope:before {
  content: '';
  display: block;
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b98b7;
}
#testing-detail .td-project-groups {
  display: grid;
  gap: 22px;
}
#testing-detail .td-project-group {
  min-width: 0;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
#testing-detail .td-project-group h3 {
  padding: 17px 22px;
  margin: 0;
  border-bottom: 1px solid #e3ecf2;
  background: #f8fbfd;
  color: #2b5e78;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.7;
}
#testing-detail .td-project-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
#testing-detail .td-project-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  min-height: 71px;
  margin: 0;
  padding: 19px 22px;
  border-bottom: 1px solid #e6edf2;
  background: #fff;
  color: #3d6075;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  transition: background 0.15s;
}
#testing-detail .td-project-list li:last-child {
  border-bottom: 0;
}
#testing-detail .td-project-list li:hover {
  background: #f4f9fc;
}
#testing-detail .td-project-number {
  display: block;
  flex: none;
  min-width: 35px;
  padding-top: 1px;
  color: #1b709e;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#testing-detail .td-project-name {
  min-width: 0;
  flex: 1;
}
#testing-detail .test-menu {
  padding: 23px 18px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #fff;
}
#testing-detail .test-menu h2 {
  padding: 0 8px;
  margin: 0 0 18px;
  font-size: 18px;
  color: #244c64;
}
#testing-detail .test-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin: 3px 0;
  padding: 12px 11px;
  border: 0;
  border-radius: 5px;
  color: #6b8393;
  font-size: 14px;
  line-height: 1.7;
  transition:
    background 0.15s,
    color 0.15s;
}
#testing-detail .test-menu a:hover {
  background: #f2f7fb;
  color: #126b9e;
}
#testing-detail .test-menu a[aria-current='page'] {
  background: #eaf4fb;
  color: #126b9e;
  font-weight: 700;
}
#testing-detail .test-menu a:focus-visible {
  outline: 3px solid #87bce0;
  outline-offset: 2px;
  background: #eef7fc;
}
@media (max-width: 1100px) {
  #testing-detail .test-detail-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 28px;
  }
}
@media (max-width: 800px) {
  #testing-detail .test-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 768px) {
  .svc-page #testing .svc-test-card h3 {
    min-height: 57px;
  }
}
@media (max-width: 560px) {
  #testing-detail .test-content-section {
    margin-bottom: 28px;
  }
  #testing-detail .test-content-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  #testing-detail .td-scope-list {
    padding: 17px 18px;
    gap: 14px;
  }
  #testing-detail .td-scope {
    font-size: 14px;
  }
  #testing-detail .td-project-group h3 {
    padding: 15px 17px;
    font-size: 15px;
  }
  #testing-detail .td-project-list li {
    padding: 17px;
    gap: 15px;
    min-height: 66px;
    font-size: 13px;
    line-height: 1.9;
  }
  #testing-detail .td-project-number {
    min-width: 30px;
    font-size: 22px;
    font-weight: 750;
  }
  #testing-detail .test-menu {
    padding: 22px 17px;
  }
  .svc-page #testing .svc-test-card h3 {
    min-height: 53px;
  }
  .svc-page #testing .svc-test-card p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #testing-detail .td-project-list li,
  #testing-detail .test-menu a,
  .svc-page #testing .svc-test-card h3 span {
    transition: none;
  }
  .svc-page #testing .svc-test-card:hover h3 span {
    transform: none;
  }
}

/* 12-center-expand：列表选中线由中心向两侧展开，行高保持固定。 */
#testing-detail .test-menu a {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: transparent;
  transition: color 0.28s ease;
}
#testing-detail .test-menu a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 5px;
  height: 1.5px;
  background: #1d86c8;
  transition:
    left 0.3s ease,
    right 0.3s ease;
}
#testing-detail .test-menu a:hover::after,
#testing-detail .test-menu a:focus-visible::after,
#testing-detail .test-menu a[aria-current='page']::after {
  left: 11px;
  right: 38px;
}
#testing-detail .test-menu a:hover,
#testing-detail .test-menu a:focus-visible,
#testing-detail .test-menu a[aria-current='page'] {
  background: transparent;
  color: #0a5e9b;
}
#testing-detail .test-menu .test-menu-label {
  min-width: 0;
  flex: 1;
  transition: transform 0.28s ease;
}
#testing-detail .test-menu a:hover .test-menu-label,
#testing-detail .test-menu a:focus-visible .test-menu-label,
#testing-detail .test-menu a[aria-current='page'] .test-menu-label {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  #testing-detail .test-menu a::after,
  #testing-detail .test-menu .test-menu-label {
    transition: none;
  }
  #testing-detail .test-menu a:hover .test-menu-label,
  #testing-detail .test-menu a:focus-visible .test-menu-label,
  #testing-detail .test-menu a[aria-current='page'] .test-menu-label {
    transform: none;
  }
}
/* test-menu-center-expand */
/* 03 Scan Index PRO v2: interaction layers fitted to the existing vertical menu. */
#testing-detail .test-menu a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  transition:
    background 0.26s ease,
    color 0.26s ease;
}
#testing-detail .test-menu a::before,
#testing-detail .test-menu a::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    width 0.26s ease,
    height 0.26s ease;
}
#testing-detail .test-menu a::before {
  left: 8px;
  top: 6px;
  border-left: 1px solid #2b8fc7;
  border-top: 1px solid #2b8fc7;
}
#testing-detail .test-menu a::after {
  left: auto;
  right: 8px;
  top: auto;
  bottom: 6px;
  border: 0;
  border-right: 1px solid #2b8fc7;
  border-bottom: 1px solid #2b8fc7;
  background: none;
  transform: none;
}
#testing-detail .test-menu-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-width: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(rgba(27, 131, 190, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 131, 190, 0.035) 1px, transparent 1px);
  background-size: 16px 16px;
  transition: opacity 0.24s ease;
}
#testing-detail .test-menu-scan-line {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  z-index: 2;
  min-width: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, #1b84bf, #79c9eb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
#testing-detail .test-menu a .test-menu-label {
  position: relative;
  z-index: 3;
}
#testing-detail .test-menu a:is(:hover, :focus-visible) {
  background: linear-gradient(180deg, #fcfeff, #f6fbfe);
  color: #0f6698;
  transform: none;
}
#testing-detail .test-menu a[aria-current='page'] {
  background: linear-gradient(180deg, #fbfdff, #eff7fc);
  color: #0d5f92;
  font-weight: 700;
}
#testing-detail .test-menu a:is(:hover, :focus-visible, [aria-current='page'])::after {
  left: auto;
  right: 8px;
  bottom: 6px;
  transform: none;
}
#testing-detail .test-menu a:is(:hover, :focus-visible) .test-menu-glow {
  opacity: 0.8;
}
#testing-detail .test-menu a[aria-current='page'] .test-menu-glow {
  opacity: 1;
}
#testing-detail .test-menu a:is(:hover, :focus-visible)::before,
#testing-detail .test-menu a:is(:hover, :focus-visible)::after {
  opacity: 1;
  width: 20px;
  height: 20px;
}
#testing-detail .test-menu a[aria-current='page']::before,
#testing-detail .test-menu a[aria-current='page']::after {
  opacity: 1;
  width: 22px;
  height: 22px;
}
#testing-detail .test-menu a[aria-current='page'] .test-menu-scan-line {
  transform: scaleX(1);
}
#testing-detail .test-menu a:is(:hover, :focus-visible, [aria-current='page']) .test-menu-label {
  color: #0d5f92;
  transform: none;
}
#testing-detail .test-menu a:is(:hover, :focus-visible, [aria-current='page']) .test-menu-arrow {
  color: #0d5f92;
  transform: none;
}
#testing-detail .td-project-group {
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}
#testing-detail .td-project-group:hover {
  border-color: #cddfe8;
  box-shadow: 0 10px 24px rgba(33, 83, 116, 0.035);
}
@media (prefers-reduced-motion: reduce) {
  #testing-detail .test-menu a,
  #testing-detail .test-menu a::before,
  #testing-detail .test-menu a::after,
  #testing-detail .test-menu-glow,
  #testing-detail .test-menu-scan-line,
  #testing-detail .td-project-group {
    transition: none;
  }
}
/* 03 Scan Index PRO v2: testing-content row interactions. */
#testing-detail .td-project-list li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    background 0.22s ease,
    color 0.22s ease;
}
#testing-detail .td-project-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #1b83be;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
#testing-detail .td-project-list li:hover {
  background: linear-gradient(90deg, #f7fbfe, rgba(255, 255, 255, 0));
}
#testing-detail .td-project-list li:hover::before {
  transform: scaleY(1);
}
#testing-detail .td-project-number {
  transition: transform 0.22s ease;
}
#testing-detail .td-project-name {
  transition: color 0.22s ease;
}
#testing-detail .td-project-list li:hover .td-project-number {
  transform: translateX(3px);
}
#testing-detail .td-project-list li:hover .td-project-name {
  color: #174f73;
}
@media (prefers-reduced-motion: reduce) {
  #testing-detail .td-project-list li,
  #testing-detail .td-project-list li::before,
  #testing-detail .td-project-number,
  #testing-detail .td-project-name {
    transition: none;
  }
  #testing-detail .td-project-list li:hover .td-project-number {
    transform: none;
  }
}
/* 03 Scan Index PRO v2: soft content switch without changing layout or scroll position. */
#testing-detail .test-detail-main {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
#testing-detail .test-detail-main.is-switching,
#testing-detail .test-detail-main.is-entering {
  opacity: 0;
  transform: translateY(5px);
}
@media (prefers-reduced-motion: reduce) {
  #testing-detail .test-detail-main {
    transition: none;
  }
  #testing-detail .test-detail-main.is-switching,
  #testing-detail .test-detail-main.is-entering {
    opacity: 1;
    transform: none;
  }
}
/* Top scan index: retain current content while moving the seven-category menu above it. */
#testing-detail .test-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}
#testing-detail .test-sidebar {
  grid-row: 1;
  min-width: 0;
}
#testing-detail .test-detail-main {
  grid-row: 2;
}
#testing-detail .test-menu {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(26, 72, 102, 0.055);
}
#testing-detail .test-menu h2 {
  grid-column: 1 / -1;
  padding: 16px 18px;
  margin: 0;
  border-bottom: 1px solid #e7eef3;
}
#testing-detail .test-menu a {
  min-width: 0;
  min-height: 88px;
  margin: 0;
  padding: 16px 14px 14px;
  border-right: 1px solid #e7eef3;
  border-radius: 0;
}
#testing-detail .test-menu a:last-child {
  border-right: 0;
}
#testing-detail .test-menu-scan-line {
  left: 14px;
  right: 14px;
}
@media (max-width: 1100px) {
  #testing-detail .test-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #testing-detail .test-menu a {
    border-bottom: 1px solid #e7eef3;
  }
}
@media (max-width: 800px) {
  #testing-detail .test-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #testing-detail .test-menu {
    grid-template-columns: minmax(0, 1fr);
  }
  #testing-detail .test-menu a {
    min-height: 72px;
    border-right: 0;
  }
}
/* The former sidebar must not stay sticky after becoming a top index. */
#testing-detail .test-sidebar {
  position: static;
  top: auto;
}
