/* 过程软测量页视觉升级 */

section[id] {
  scroll-margin-top: calc(var(--header-h) + 58px);
}

/* 子导航 */
.ss-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.ss-subnav .container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-block: 8px;
}

.ss-subnav a {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.ss-subnav a:hover {
  color: var(--blue);
  background: rgba(29, 78, 216, 0.07);
}

/* 取点流程 */
.ss-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-flow li {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 50px -46px rgba(10, 22, 38, 0.5);
}

.ss-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  font-weight: 700;
  color: rgba(29, 78, 216, 0.42);
}

.ss-flow-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.ss-flow h3 {
  margin-top: 6px;
  font-size: 19px;
  color: var(--head);
}

.ss-flow p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.ss-point {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.09);
  font-size: 11.5px;
  font-weight: 600;
  color: #0e7490;
}

/* 指标卡统一 */
.soft-grid {
  gap: 20px;
  margin-bottom: 0;
}

.soft-card {
  padding: 26px;
  background: var(--surface);
  box-shadow: 0 24px 50px -46px rgba(10, 22, 38, 0.5);
}

.soft-card:hover {
  transform: translateY(-3px);
}

.soft-card h3 {
  font-size: 19px;
}

.soft-card dt {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.soft-card dd {
  font-size: 13.8px;
  line-height: 1.75;
}

/* 对照表 */
.table-block {
  margin-bottom: 0;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 50px -46px rgba(10, 22, 38, 0.45);
}

.table-wrap table {
  font-size: 13.2px;
  line-height: 1.7;
}

.table-wrap th {
  background: #eef3fa;
  font-size: 12.5px;
  color: var(--head);
}

.table-wrap tbody tr:nth-child(even) {
  background: rgba(238, 242, 249, 0.45);
}

.table-wrap td:first-child {
  font-weight: 700;
  color: var(--head);
  white-space: nowrap;
}

.td-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(29, 78, 216, 0.08);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue);
}

/* 优先级卡统一 */
.quad-block {
  margin-bottom: 0;
}

.quad-card {
  border-radius: 14px;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 20px 44px -44px rgba(10, 22, 38, 0.45);
}

@media (max-width: 860px) {
  .ss-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ss-flow li::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .ss-flow {
    grid-template-columns: minmax(0, 1fr);
  }
}
