.page-products {
  --tool-line: rgba(154, 163, 160, 0.26);
  --tool-dash: rgba(154, 163, 160, 0.4);
  --rail-w: 248px;
  background: var(--deep-black-green);
  color: var(--paper);
}

.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

/* ---------- 首屏 ---------- */

.page-products .tools-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 44px) 0 68px;
  color: var(--paper);
  background:
    radial-gradient(900px 480px at 92% -12%, rgba(31, 111, 92, 0.42), transparent 68%),
    radial-gradient(620px 420px at 2% 112%, rgba(242, 107, 42, 0.13), transparent 70%),
    linear-gradient(175deg, #0E2B26 0%, #0A1E1A 56%, #071310 100%);
  border-bottom: 1px solid rgba(227, 178, 60, 0.2);
}

.page-products .tools-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(154, 163, 160, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154, 163, 160, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 84%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 84%);
}

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

.page-products .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--archive);
}

.page-products .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 10px;
  color: rgba(154, 163, 160, 0.55);
}

.page-products .breadcrumb-item a {
  color: var(--archive);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.page-products .breadcrumb-item a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

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

.page-products .tools-hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-products .tools-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 6.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--paper);
}

.page-products .tools-hero .lede {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(244, 241, 232, 0.8);
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-products .hero-media {
  position: relative;
  margin: 0;
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 56px 0 0;
  padding: 0;
  background: rgba(154, 163, 160, 0.22);
  border: 1px solid rgba(154, 163, 160, 0.22);
}

.page-products .hero-stats .stat {
  padding: 20px 20px 22px;
  background: #0B211D;
}

.page-products .hero-stats dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--archive);
}

.page-products .hero-stats dd {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
}

.page-products .stat-num {
  margin-right: 3px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
}

/* ---------- 媒体容器 ---------- */

.page-products .media-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--tool-line);
  background: #071310;
}

.page-products .media-frame[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
.page-products .media-frame[data-ratio="3x4"] { aspect-ratio: 3 / 4; }
.page-products .media-frame[data-ratio="21x9"] { aspect-ratio: 21 / 9; }

.page-products .media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-products .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 16, 0) 42%, rgba(7, 19, 16, 0.62) 100%);
  pointer-events: none;
}

/* ---------- 工作台主体 ---------- */

.page-products .tools-workbench {
  background: linear-gradient(180deg, #101B2E 0%, #0C1826 100%);
  color: var(--paper);
}

.page-products .tools-workbench .layout-split {
  display: grid;
  gap: 36px;
}

.page-products .tools-main {
  min-width: 0;
}

.page-products .section-head h2 {
  color: var(--paper);
}

.page-products .tools-workbench .lede,
.page-products .tools-flow .lede {
  color: rgba(244, 241, 232, 0.78);
}

/* 左侧索引 */

.page-products .tools-rail {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.page-products .rail-block {
  min-width: 0;
}

.page-products .rail-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-products .rail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .rail-tag {
  padding: 5px 12px;
  border: 1px solid var(--tool-line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 232, 0.72);
}

.page-products .rail-tag.is-current {
  border-color: var(--gold);
  background: rgba(227, 178, 60, 0.14);
  color: var(--gold);
}

.page-products .rail-league {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .rail-league li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--tool-dash);
  font-size: 14px;
  color: rgba(244, 241, 232, 0.86);
}

.page-products .rail-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--archive);
}

.page-products .rail-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .rail-links a {
  display: block;
  padding-left: 14px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 241, 232, 0.82);
  text-decoration: none;
  transition: color 180ms ease;
}

.page-products .rail-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--whistle);
}

.page-products .rail-links a:hover {
  color: var(--gold);
}

.page-products .rail-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--archive);
}

/* ---------- 工具卡 ---------- */

.page-products .tool-card {
  position: relative;
  margin-top: 32px;
  padding: 30px 24px 32px;
  border: 1px solid var(--tool-line);
  background: rgba(10, 24, 42, 0.62);
  transition: border-color 220ms ease, background-color 220ms ease;
}

.page-products .tool-card:hover {
  border-color: rgba(242, 107, 42, 0.52);
  background: rgba(12, 28, 48, 0.78);
}

.page-products .tool-bar {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(227, 178, 60, 0.2) 72%, rgba(227, 178, 60, 0) 100%);
}

.page-products .tool-head {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tool-line);
}

.page-products .tool-no {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-products .tool-title {
  margin: 0;
  font-size: clamp(21px, 2.8vw, 29px);
  line-height: 1.16;
  font-weight: 800;
  color: var(--paper);
}

.page-products .tool-kicker {
  margin: 0;
  font-size: 15px;
  color: var(--archive);
}

.page-products .tool-body {
  display: grid;
  gap: 24px;
  padding-top: 22px;
}

.page-products .tool-banner {
  margin-top: 22px;
}

.page-products .tool-copy p {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.88;
  color: rgba(244, 241, 232, 0.86);
}

.page-products .tool-copy p:last-child {
  margin-bottom: 0;
}

.page-products .tool-io {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 24px;
  padding: 18px 18px 20px;
  border: 1px dashed var(--tool-dash);
  background: rgba(7, 19, 16, 0.5);
}

.page-products .io-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--whistle);
}

.page-products .io-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .io-list li {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
  color: rgba(244, 241, 232, 0.78);
}

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

/* 折叠说明 */

.page-products .tool-detail {
  margin-top: 26px;
  border-top: 1px dashed var(--tool-dash);
}

.page-products .tool-detail > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-products .tool-detail > summary::-webkit-details-marker {
  display: none;
}

.page-products .tool-detail > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(227, 178, 60, 0.5);
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.page-products .tool-detail[open] > summary::before {
  content: "–";
}

.page-products .tool-detail > summary:focus-visible {
  outline: 2px solid var(--whistle);
  outline-offset: 3px;
}

.page-products .detail-body {
  padding-top: 8px;
}

.page-products .field-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.page-products .field-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--archive);
}

.page-products .field-table th,
.page-products .field-table td {
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px dashed var(--tool-dash);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .field-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-products .field-table td {
  color: rgba(244, 241, 232, 0.82);
}

.page-products .field-table td:first-child {
  font-family: var(--font-mono);
  white-space: nowrap;
  color: var(--paper);
}

/* 名次曲线示例 */

.page-products .curve-figure {
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--tool-line);
  background: rgba(7, 19, 16, 0.62);
}

.page-products .curve-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .curve-grid {
  stroke: rgba(154, 163, 160, 0.2);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.page-products .curve-a {
  fill: none;
  stroke: var(--turf);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-products .curve-b {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-products .curve-dot-a { fill: var(--turf); }
.page-products .curve-dot-b { fill: var(--gold); }

.page-products .axis-label {
  fill: var(--archive);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.page-products .curve-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--archive);
}

/* 纪律卡 */

.page-products .tool-card--discipline {
  position: relative;
  overflow: hidden;
}

.page-products .discipline-media {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0.16;
  pointer-events: none;
}

.page-products .discipline-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.7);
}

.page-products .tool-card--discipline .tool-bar,
.page-products .tool-card--discipline .tool-head,
.page-products .tool-card--discipline .tool-body,
.page-products .tool-card--discipline .tool-detail {
  position: relative;
  z-index: 1;
}

.page-products .discipline-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.page-products .discipline-legend .tag-yellow {
  background: rgba(232, 195, 58, 0.16);
  border: 1px solid var(--discipline-yellow);
  color: var(--discipline-yellow);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-products .discipline-legend .tag-red {
  background: rgba(192, 57, 43, 0.16);
  border: 1px solid var(--discipline-red);
  color: #E4796B;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-products .legend-note {
  font-size: 12px;
  color: var(--archive);
}

.page-products .discipline-figure {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 120px;
  padding: 18px;
  border: 1px dashed var(--tool-dash);
  background: rgba(7, 19, 16, 0.42);
}

.page-products .discipline-caption {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--archive);
}

/* ---------- 三步上手 ---------- */

.page-products .tools-flow {
  background: linear-gradient(180deg, #0E2B26 0%, #0A211D 100%);
  border-top: 1px solid rgba(227, 178, 60, 0.16);
  border-bottom: 1px solid rgba(227, 178, 60, 0.16);
}

.page-products .flow-steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(154, 163, 160, 0.2);
  border: 1px solid rgba(154, 163, 160, 0.2);
}

.page-products .flow-step {
  padding: 30px 24px 34px;
  background: #0B211D;
}

.page-products .flow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(56px, 9vw, 96px);
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(227, 178, 60, 0.34);
}

.page-products .flow-step h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
}

.page-products .flow-step p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.88;
  color: rgba(244, 241, 232, 0.8);
}

/* ---------- 常用人群 ---------- */

.page-products .tools-audience {
  background: var(--paper);
  color: var(--ink-green);
}

.page-products .tools-audience .eyebrow {
  color: var(--whistle);
}

.page-products .tools-audience .section-head h2 {
  color: var(--ink-green);
}

.page-products .tools-audience .section-head .lede {
  color: rgba(14, 43, 38, 0.74);
}

.page-products .audience-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.page-products .audience-card {
  padding: 22px 20px 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(14, 43, 38, 0.14);
  border-top: 3px solid var(--gold);
}

.page-products .audience-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-green);
}

.page-products .audience-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.82;
  color: rgba(14, 43, 38, 0.78);
}

.page-products .audience-card p.audience-tools {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--turf);
}

.page-products .audience-media {
  margin-top: 34px;
  border-color: rgba(14, 43, 38, 0.18);
}

/* ---------- 收尾 ---------- */

.page-products .tools-cta {
  background: #071310;
}

.page-products .cta-panel {
  display: grid;
  gap: 26px;
  padding: 36px 24px;
  border: 1px solid rgba(227, 178, 60, 0.28);
  background: linear-gradient(135deg, rgba(16, 27, 46, 0.92), rgba(7, 19, 16, 0.96));
}

.page-products .cta-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.2;
  color: var(--paper);
}

.page-products .cta-copy p {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.88;
  color: rgba(244, 241, 232, 0.8);
}

.page-products .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-products .cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--tool-dash);
}

.page-products .cta-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--archive);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.page-products .cta-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- 媒体查询 ---------- */

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

  .page-products .tools-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .tool-body {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 30px;
  }

  .page-products .tool-body--split {
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
  }

  .page-products .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .cta-panel {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    padding: 48px 44px;
  }
}

@media (min-width: 1024px) {
  .page-products .tools-hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 56px;
  }

  .page-products .tools-workbench .layout-split {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-products .tools-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding-left: 20px;
    border-left: 1px solid var(--tool-line);
  }

  .page-products .audience-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tool-card,
  .page-products .rail-links a,
  .page-products .breadcrumb-item a,
  .page-products .cta-links a {
    transition: none;
  }
}
