.page-products {
  background: var(--ink-deep);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 首屏 ---------- */
.page-products .tools-hero {
  position: relative;
  padding: clamp(20px, 4vw, 36px) 0 clamp(38px, 7vw, 76px);
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(255, 210, 74, .10), transparent 62%),
    linear-gradient(180deg, var(--ink-night) 0%, var(--ink-deep) 100%);
  border-bottom: 1px solid var(--line);
}

.page-products .tools-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(234, 242, 238, .55) 0 1px, transparent 1px 88px);
  opacity: .05;
  pointer-events: none;
}

.page-products .tools-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .breadcrumb {
  margin: 0 0 clamp(28px, 6vw, 54px);
}

.page-products .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-dim);
}

.page-products .breadcrumb li + li::before {
  content: "/ ";
  color: var(--line);
}

.page-products .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.page-products .breadcrumb a:hover {
  color: var(--whistle);
}

.page-products .breadcrumb [aria-current="page"] {
  color: var(--text);
}

.page-products .tools-hero h1 {
  margin: 0 0 20px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 7.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--text);
}

.page-products .tools-hero__lede {
  margin: 0 0 clamp(28px, 5vw, 46px);
  max-width: 64ch;
  font-size: clamp(15px, 2.4vw, 17.5px);
  line-height: 1.85;
  color: var(--text-dim);
}

.page-products .hero-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .hero-keys li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--ink-night);
}

.page-products .hero-keys__k {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-dim);
}

.page-products .hero-keys strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  color: var(--text);
}

/* ---------- 主体两栏 ---------- */
.page-products .tools-body {
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.page-products .tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 46px);
}

.page-products .tools-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}

.page-products .aside-panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 47, 58, .6), rgba(12, 28, 51, .85));
}

.page-products .aside-panel--glass {
  background: rgba(27, 47, 58, .48);
  backdrop-filter: blur(6px);
}

.page-products .aside-label {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--text-dim);
}

.page-products .aside-nav {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .aside-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.page-products .aside-nav a:hover,
.page-products .aside-nav a:focus-visible {
  color: var(--text);
  background: var(--whistle-soft);
  border-left-color: var(--whistle);
}

.page-products .aside-nav .mono {
  font-size: 11px;
  color: var(--whistle);
}

.page-products .aside-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.page-products .aside-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.page-products .aside-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-products .aside-facts dt {
  font-size: 13px;
  color: var(--text-dim);
}

.page-products .aside-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--whistle);
}

.page-products .aside-facts dd span {
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

@media (min-width: 1000px) {
  .page-products .tools-grid {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 48px;
  }

  .page-products .tools-aside {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 600px) and (max-width: 999px) {
  .page-products .tools-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 章节 ---------- */
.page-products .tools-block {
  padding: clamp(30px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
}

.page-products .tools-main > .tools-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-products .tools-block__head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-products .tools-block__no {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--text-dim);
  transition: color .3s var(--ease);
}

.page-products .tools-block.is-current .tools-block__no {
  color: var(--whistle);
}

.page-products .tools-block h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4.6vw, 38px);
  line-height: 1.2;
  color: var(--text);
}

.page-products .tools-block__sub {
  margin: 0;
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dim);
}

/* ---------- 产品线面板 ---------- */
.page-products .line-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .line-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  background: var(--ink-night);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.page-products .line-panel:hover {
  border-top-color: var(--whistle);
  transform: translateY(-3px);
}

.page-products .line-panel__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-products .line-panel__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-dim);
}

.page-products .line-panel h3 {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.25;
  color: var(--text);
}

.page-products .line-panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-products .line-panel__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.page-products .line-panel__list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.page-products .line-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--whistle);
}

.page-products .line-panel__list b {
  margin-right: .5em;
  font-weight: 500;
  color: var(--text-dim);
}

@media (min-width: 880px) {
  .page-products .line-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- 图片 ---------- */
.page-products .tools-figure {
  margin: clamp(22px, 3.5vw, 34px) 0 0;
}

.page-products .tools-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  object-fit: cover;
}

.page-products .tools-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- 操作路径 ---------- */
.page-products .path-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .path-step {
  position: relative;
  padding: 18px 16px;
  border: 1px solid var(--line);
  background: rgba(27, 47, 58, .55);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.page-products .path-step__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 1px solid var(--whistle);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whistle);
}

.page-products .path-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
}

.page-products .path-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

@media (min-width: 800px) {
  .page-products .path-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .page-products .path-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    right: -6px;
    width: 12px;
    height: 1px;
    background: var(--whistle);
    opacity: .6;
  }
}

/* ---------- 叠层视图 ---------- */
.page-products .stack-view {
  display: grid;
  gap: 22px;
}

.page-products .stack-layers {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .stack-layers li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: rgba(12, 28, 51, .88);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.page-products .stack-layers li:nth-child(1) {
  width: 100%;
  border-left-color: var(--whistle);
  background: rgba(255, 210, 74, .09);
}

.page-products .stack-layers li:nth-child(2) { width: 94%; }
.page-products .stack-layers li:nth-child(3) { width: 88%; }
.page-products .stack-layers li:nth-child(4) { width: 82%; }
.page-products .stack-layers li:nth-child(5) { width: 76%; }
.page-products .stack-layers li:nth-child(6) { width: 70%; }

.page-products .stack-layers li:hover {
  background: rgba(255, 210, 74, .14);
}

.page-products .stack-layers__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whistle);
}

.page-products .stack-layers__name {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

.page-products .stack-rules {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .stack-rules li {
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-products .stack-rules b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 500;
  color: var(--text);
}

.page-products .stack-example {
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--whistle);
  background: rgba(27, 47, 58, .5);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text);
}

@media (min-width: 900px) {
  .page-products .stack-view {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
}

/* ---------- 字段表 ---------- */
.page-products .field-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.page-products .field-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-products .field-table table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .field-table thead th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-night);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: left;
  color: var(--text-dim);
}

.page-products .field-table tbody th,
.page-products .field-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.page-products .field-table tbody th {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--whistle);
}

.page-products .field-table tbody td {
  line-height: 1.75;
  color: var(--text-dim);
}

.page-products .field-table tbody tr {
  transition: background .2s var(--ease);
}

.page-products .field-table tbody tr:hover {
  background: var(--whistle-soft);
}

.page-products .field-table tbody tr:hover td {
  color: var(--text);
}

.page-products .field-table tbody tr:last-child th,
.page-products .field-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .fields-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 32px);
  margin-top: clamp(24px, 3.5vw, 36px);
}

.page-products .tools-figure--square {
  margin: 0;
}

.page-products .refresh-note h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.page-products .refresh-note ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .refresh-note li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
}

.page-products .refresh-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 1px;
  background: var(--whistle);
}

@media (min-width: 880px) {
  .page-products .fields-split {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- 场景配置 ---------- */
.page-products .scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .scene-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--ink-night);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.page-products .scene-card:hover {
  transform: translateY(-3px);
  border-color: var(--whistle);
}

.page-products .scene-card__tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  background: var(--whistle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #0B1F1A;
}

.page-products .scene-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}

.page-products .scene-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .scene-card li {
  position: relative;
  padding-left: 15px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-products .scene-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 6px;
  height: 1px;
  background: var(--turf);
}

@media (min-width: 880px) {
  .page-products .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- 上手清单 ---------- */
.page-products .start-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 32px);
}

.page-products .start-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-products .start-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-products .start-list .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whistle);
  padding-top: .35em;
}

.page-products .start-list b {
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
  color: var(--text);
}

.page-products .pitfall {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--score-red);
  background: rgba(12, 28, 51, .88);
}

.page-products .pitfall h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.page-products .pitfall ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pitfall li {
  padding-left: 14px;
  border-left: 2px solid var(--score-red);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-products .pitfall b {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--text);
}

@media (min-width: 880px) {
  .page-products .start-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- 后续入口 ---------- */
.page-products .tools-next {
  margin-top: clamp(30px, 5vw, 50px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(27, 47, 58, .75), rgba(12, 28, 51, .9));
}

.page-products .tools-next h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--text);
}

.page-products .tools-next ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .tools-next li {
  background: var(--ink-deep);
}

.page-products .tools-next a {
  display: block;
  padding: 16px 18px 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.page-products .tools-next a:hover {
  color: var(--whistle);
}

.page-products .tools-next li span {
  display: block;
  padding: 0 18px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

@media (min-width: 760px) {
  .page-products .tools-next ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-products {
  --i: 0.3s;
}
