/* ===================================================================
   工具中心 · /tools/
   页面作用域：.page-products
   =================================================================== */

.page-products {
  background:
    radial-gradient(760px 460px at 92% -6%, rgba(20, 69, 58, 0.62), transparent 62%),
    radial-gradient(520px 420px at -8% 20%, rgba(12, 92, 74, 0.26), transparent 64%),
    var(--c-carbon);
  color: var(--c-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page-products .tp-crumb {
  padding-top: 22px;
}

.page-products .tp-section {
  padding: 52px 0;
  border-top: 1px solid var(--line-soft);
}

/* ---------- 通用章节头 ---------- */
.page-products .tp-head {
  margin-bottom: 26px;
}

.page-products .tp-head-index {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--c-cyan);
}

.page-products .tp-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4.4vw, 1.85rem);
  line-height: 1.26;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--c-mist);
}

.page-products .tp-head p {
  margin: 10px 0 0;
  max-width: 48em;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--c-neutral);
}

.page-products .tp-head--tight {
  margin-bottom: 16px;
}

/* ---------- 首屏 ---------- */
.page-products .tp-hero {
  padding: 34px 0 52px;
}

.page-products .tp-hero-grid {
  display: grid;
  gap: 32px;
}

.page-products .tp-hero-title {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 7.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--c-mist);
  text-wrap: balance;
}

.page-products .tp-lede {
  margin: 20px 0 0;
  max-width: 33em;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--c-body);
}

.page-products .tp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.page-products .tp-hero-stats li {
  min-width: 96px;
}

.page-products .tp-hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-cyan);
}

.page-products .tp-hero-stats span {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--c-neutral);
}

.page-products .tp-hero-cta {
  margin-top: 26px;
}

.page-products .tp-hero-visual {
  padding: 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(20, 69, 58, 0.5), rgba(11, 15, 14, 0.2));
}

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

/* ---------- 筛选条 ---------- */
.page-products .tp-filterbar {
  position: sticky;
  top: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 14px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(14, 43, 36, 0.86);
  backdrop-filter: blur(10px);
}

.page-products .tp-filter-label {
  margin-right: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--c-neutral);
}

/* ---------- 三张工具卡 ---------- */
.page-products .tp-tools {
  display: grid;
  gap: 18px;
}

.page-products .tp-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(20, 69, 58, 0.42), rgba(11, 15, 14, 0.18));
  transition: transform var(--t-base) ease, border-color var(--t-base) ease, background var(--t-base) ease;
}

.page-products .tp-tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), rgba(40, 240, 200, 0) 72%);
  opacity: 0.6;
}

.page-products .tp-tool:hover,
.page-products .tp-tool:focus-within {
  transform: translateY(-3px);
  border-color: var(--glass-line);
  background: linear-gradient(170deg, rgba(20, 69, 58, 0.62), rgba(11, 15, 14, 0.28));
}

.page-products .tp-tool-num {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--c-cyan);
}

.page-products .tp-tool-title {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--c-mist);
}

.page-products .tp-tool-sub {
  margin: -8px 0 0;
  font-size: 0.9375rem;
  color: var(--c-neutral);
}

.page-products .tp-tool-facts {
  display: grid;
  gap: 13px;
  margin: 0;
}

.page-products .tp-fact {
  display: grid;
  gap: 3px;
}

.page-products .tp-fact dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--c-cyan);
}

.page-products .tp-fact dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--c-body);
}

.page-products .tp-tool-media {
  position: relative;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--c-carbon);
  aspect-ratio: 16 / 10;
}

.page-products .tp-tool-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity var(--t-base) ease, transform var(--t-base) ease;
}

.page-products .tp-tool:hover .tp-tool-media img,
.page-products .tp-tool:focus-within .tp-tool-media img {
  opacity: 1;
  transform: scale(1.02);
}

.page-products .tp-tool-scene {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-neutral);
  transition: color var(--t-base) ease;
}

.page-products .tp-tool:hover .tp-tool-scene,
.page-products .tp-tool:focus-within .tp-tool-scene {
  color: var(--c-cyan);
}

.page-products .tp-tool-link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  font-size: 0.875rem;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--glass-line);
  transition: border-color var(--t-fast) ease;
}

.page-products .tp-tool-link:hover,
.page-products .tp-tool-link:focus-visible {
  border-bottom-color: var(--c-cyan);
}

/* ---------- 六种提醒 ---------- */
.page-products .tp-alerts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .tp-alert {
  padding: 18px 18px 16px;
  border: 1px solid var(--line-soft);
  border-left-width: 2px;
  border-left-color: var(--c-cyan-deep);
  border-radius: var(--radius);
  background: rgba(20, 69, 58, 0.26);
  transition: border-left-color var(--t-base) ease, background var(--t-base) ease;
}

.page-products .tp-alert:hover,
.page-products .tp-alert:focus-within {
  border-left-color: var(--c-cyan);
  background: rgba(20, 69, 58, 0.44);
}

.page-products .tp-alert h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--c-mist);
}

.page-products .tp-alert p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.66;
  color: var(--c-body);
}

/* ---------- 三步时间线 ---------- */
.page-products .tp-flow {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .tp-flow::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-cyan), rgba(40, 240, 200, 0.1));
}

.page-products .tp-flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding-bottom: 30px;
}

.page-products .tp-flow-item:last-child {
  padding-bottom: 0;
}

.page-products .tp-flow-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--glass-line);
  border-radius: 50%;
  background: var(--c-carbon);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--c-cyan);
}

.page-products .tp-flow-body h3 {
  margin: 4px 0 6px;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 650;
  color: var(--c-mist);
}

.page-products .tp-flow-body p {
  margin: 0;
  max-width: 40em;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--c-body);
}

/* ---------- 对照表 ---------- */
.page-products .tp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.page-products .tp-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

.page-products .tp-table thead th {
  background: var(--c-ink-mid);
  color: var(--c-mist);
  font-weight: 600;
  white-space: nowrap;
}

.page-products .tp-table tbody tr:nth-child(odd) {
  background: rgba(20, 69, 58, 0.32);
}

.page-products .tp-table tbody tr:hover {
  background: rgba(40, 240, 200, 0.08);
}

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

.page-products .tp-table td:first-child {
  color: var(--c-mist);
  font-weight: 600;
}

.page-products .tp-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--c-orange);
  white-space: nowrap;
}

/* ---------- 设备与门槛 ---------- */
.page-products .tp-device-grid {
  display: grid;
  gap: 28px;
}

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

.page-products .tp-device-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-body);
}

.page-products .tp-device-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--c-cyan);
  transform: rotate(45deg);
}

.page-products .tp-device-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--c-neutral);
}

.page-products .tp-device-note a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--glass-line);
}

.page-products .tp-device-note a:hover,
.page-products .tp-device-note a:focus-visible {
  border-bottom-color: var(--c-cyan);
}

.page-products .tp-device-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  aspect-ratio: 14 / 9;
  background: var(--c-carbon);
}

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

/* ---------- 页尾收束 ---------- */
.page-products .tp-outro {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}

.page-products .tp-outro-media {
  position: relative;
}

.page-products .tp-outro-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  opacity: 0.5;
}

.page-products .tp-outro-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 14, 0.3) 0%, rgba(11, 15, 14, 0.86) 58%, var(--c-carbon) 100%);
}

.page-products .tp-outro-body {
  position: relative;
  margin-top: -110px;
  padding-bottom: 68px;
}

.page-products .tp-outro-body h2 {
  margin: 0;
  max-width: 24em;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--c-mist);
}

.page-products .tp-outro-body p {
  margin: 14px 0 0;
  max-width: 46em;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--c-body);
}

.page-products .tp-outro-body .cta-row {
  margin-top: 24px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-products .tp-alerts {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .tp-table {
    font-size: 1rem;
  }
}

@media (min-width: 880px) {
  .page-products .tp-hero {
    padding: 46px 0 62px;
  }

  .page-products .tp-hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
  }

  .page-products .tp-tools {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .page-products .tp-tool:nth-child(2) {
    margin-top: 44px;
  }

  .page-products .tp-tool:nth-child(3) {
    margin-top: 88px;
  }

  .page-products .tp-device-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .page-products .tp-alerts {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .tp-section {
    padding: 64px 0;
  }
}

@media (max-width: 639px) {
  .page-products .tp-outro-body {
    margin-top: -58px;
    padding-bottom: 56px;
  }

  .page-products .tp-filterbar {
    top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tp-tool,
  .page-products .tp-tool-media img,
  .page-products .tp-alert,
  .page-products .tp-tool-scene,
  .page-products .tp-tool-link {
    transition: none;
  }

  .page-products .tp-tool:hover,
  .page-products .tp-tool:focus-within {
    transform: none;
  }

  .page-products .tp-tool:hover .tp-tool-media img,
  .page-products .tp-tool:focus-within .tp-tool-media img {
    transform: none;
  }
}
