/* 检测项目页：参考同行 materialTest 的类目 + 项目卡结构 */
.v2-cat-hero {
  position: relative;
  overflow: clip;
  padding: clamp(52px, 6vw, 80px) 0 clamp(56px, 7vw, 92px);
  color: #fff;
  background:
    linear-gradient(102deg, rgba(8, 47, 82, .94), rgba(0, 121, 195, .62)),
    url("page-items-wide.webp") center / cover no-repeat;
}
.v2-cat-hero .crumb { margin-bottom: 18px; color: rgba(255, 255, 255, .66); }
.v2-cat-hero .crumb a { color: rgba(255, 255, 255, .66); }
.v2-cat-hero .crumb a:hover { color: #fff; }
.v2-cat-hero .crumb em { color: rgba(255, 255, 255, .4); }
.v2-cat-hero h1 { margin: 0 0 14px; max-width: 18ch; font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; line-height: 1.16; letter-spacing: -.01em; }
.v2-cat-hero p { margin: 0; max-width: 64ch; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.9; }
.v2-cat-stats { display: flex; flex-wrap: wrap; margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22); }
.v2-cat-stats span { padding: 14px 26px 0 0; margin-right: 26px; border-right: 1px solid rgba(255, 255, 255, .18); font-size: 12px; color: rgba(255, 255, 255, .7); }
.v2-cat-stats span:last-child { border-right: none; }
.v2-cat-stats b { margin-right: 6px; font-size: 24px; font-weight: 700; color: #fff; }

.v2-cat-section { padding-bottom: clamp(48px, 6vw, 80px); background: var(--v2-bg); }
.v2-cat-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 28px; }
.v2-cat-side { position: sticky; top: 96px; background: #fff; border: 1px solid var(--v2-line); border-radius: 8px; overflow: hidden; }
.v2-cat-side-title { padding: 14px 16px; background: var(--v2-blue); color: #fff; font-size: 14px; font-weight: 600; }
.v2-cat-side button { display: block; width: 100%; padding: 12px 16px; text-align: left; font-size: 13.5px; color: var(--v2-ink-2); border-bottom: 1px solid var(--v2-line); transition: background .2s var(--ease), color .2s var(--ease); }
.v2-cat-side button:last-child { border-bottom: none; }
.v2-cat-side button:hover { background: var(--v2-blue-soft); color: var(--v2-blue); }
.v2-cat-side button.is-active { background: var(--v2-blue-soft); color: var(--v2-blue); font-weight: 600; box-shadow: inset 3px 0 0 var(--v2-blue); }

.v2-cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 13px; color: var(--v2-muted); }
.v2-cat-bar b { font-size: 14px; color: var(--v2-blue-deep); }
.v2-cat-bar a { color: var(--v2-blue); font-weight: 600; margin-left: auto; }
.v2-cat-hint { color: var(--v2-muted); font-size: 12px; }
.v2-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v2-cat-card { background: #fff; border: 1px solid var(--v2-line); border-radius: 8px; overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.v2-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.v2-cat-card[hidden] { display: none; }
.v2-cat-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 132px; overflow: hidden; background: linear-gradient(135deg, #082f52, #0a5f9e 55%, #35a7e0); }
.v2-cat-visual::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px); background-size: 38px 38px; }
.v2-cat-visual::after { content: "TEST ITEM"; position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: rgba(255, 255, 255, .55); }
.v2-cat-visual code { position: relative; font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.v2-cat-body { padding: 16px 18px 18px; }
.v2-cat-tag { display: inline-block; padding: 2px 8px; border-radius: 2px; background: var(--v2-blue-soft); color: var(--v2-blue); font-size: 11px; }
.v2-cat-body h3 { margin: 9px 0 6px; font-size: 18px; font-weight: 600; color: var(--v2-ink); }
.v2-cat-method { margin: 0; min-height: 44px; color: var(--v2-muted); font-size: 12.5px; line-height: 1.75; }
.v2-cat-spec { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--v2-line); }
.v2-cat-spec div { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 3px 0; }
.v2-cat-spec dt { font-size: 11.5px; color: var(--v2-muted); }
.v2-cat-spec dd { margin: 0; color: var(--v2-ink-2); font-size: 12px; line-height: 1.7; }
.v2-cat-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--v2-blue); font-size: 12.5px; font-weight: 600; }
.v2-cat-link::after { content: ""; width: 18px; height: 1px; background: var(--v2-blue); transition: width .2s var(--ease); }
.v2-cat-link:hover::after { width: 28px; }

@media (max-width: 1080px) {
  .v2-cat-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .v2-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .v2-cat-hero { padding: 38px 0 44px; }
  .v2-cat-stats span { padding: 10px 16px 0 0; margin-right: 16px; }
  .v2-cat-layout { grid-template-columns: 1fr; padding-top: 18px; }
  .v2-cat-side { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .v2-cat-side::-webkit-scrollbar { display: none; }
  .v2-cat-side-title { display: none; }
  .v2-cat-side button { width: auto; white-space: nowrap; border-bottom: none; border-right: 1px solid var(--v2-line); }
  .v2-cat-side button.is-active { box-shadow: inset 0 -3px 0 var(--v2-blue); }
  .v2-cat-grid { grid-template-columns: 1fr; }
}
