.page-products {
  --tp-line: rgba(164, 111, 196, .22);
  --tp-line-strong: rgba(164, 111, 196, .48);
  --tp-gold-line: rgba(227, 180, 72, .45);
  --tp-ink-soft: rgba(246, 242, 233, .78);
  display: block;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
}

/* ---------- 首屏 ---------- */
.page-products .tp-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 52px) clamp(52px, 8vw, 96px);
  background:
    radial-gradient(120% 90% at 86% 6%, rgba(109, 46, 143, .58), transparent 64%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  border-bottom: 1px solid var(--tp-gold-line);
}

.page-products .tp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(164, 111, 196, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(164, 111, 196, .16) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.page-products .tp-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
}

.page-products .tp-crumb { grid-column: 1 / -1; }

.page-products .tp-crumb .breadcrumb-link { color: rgba(246, 242, 233, .68); }
.page-products .tp-crumb .breadcrumb-link:hover { color: var(--green); }
.page-products .tp-crumb .breadcrumb-sep { color: rgba(246, 242, 233, .38); }
.page-products .tp-crumb .breadcrumb-current { color: var(--gold); }

.page-products .tp-eyebrow-dark {
  color: var(--gold);
  border-bottom-color: var(--tp-gold-line);
}

.page-products .tp-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 14px 0 clamp(16px, 2.4vw, 24px);
  color: var(--paper);
  max-width: 20ch;
}

.page-products .tp-title em {
  font-style: normal;
  color: var(--gold);
}

.page-products .tp-lede {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.06rem);
  line-height: 1.85;
  color: var(--tp-ink-soft);
}

.page-products .tp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 48px);
  list-style: none;
  margin: clamp(24px, 4vw, 38px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--tp-line);
}

.page-products .tp-stat-num {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.page-products .tp-stat-label {
  display: block;
  margin-top: 9px;
  font-size: .76rem;
  letter-spacing: .14em;
  color: rgba(246, 242, 233, .66);
}

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

.page-products .tp-hero-media .media-frame {
  border: 1px solid rgba(164, 111, 196, .42);
  background-color: rgba(27, 11, 43, .55);
}

.page-products .tp-hero-media .media-caption {
  color: rgba(246, 242, 233, .58);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
}

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

.page-products .media-caption {
  margin-top: 10px;
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(36, 22, 51, .66);
}

/* ---------- 吸顶索引条 ---------- */
.page-products .tp-indexbar {
  position: sticky;
  top: 56px;
  z-index: 6;
  background: rgba(246, 242, 233, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.page-products .tp-indexbar-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .tp-indexbar-inner::-webkit-scrollbar { display: none; }

.page-products .tp-indexbar-label {
  flex: none;
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--grape);
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.page-products .tp-indexbar-link {
  flex: none;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  transition: color .16s ease, border-color .16s ease;
}

.page-products .tp-indexbar-link:hover,
.page-products .tp-indexbar-link:focus-visible {
  color: var(--grape);
  border-bottom-color: var(--green);
}

.page-products #index-regions,
.page-products #index-scenes,
.page-products #index-channels,
.page-products #index-fields { scroll-margin-top: 112px; }

/* ---------- 通用块头 ---------- */
.page-products .tp-head { max-width: 66ch; }

.page-products .tp-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 14px 0 0;
  color: var(--text);
}

.page-products .tp-head .lede {
  margin: 14px 0 0;
  max-width: 56ch;
  line-height: 1.85;
}

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

.page-products .tp-lede-dark { color: rgba(246, 242, 233, .78); }

/* ---------- 总览 ---------- */
.page-products .tp-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-products .tp-ov-card {
  padding: 24px 22px 20px;
  border-left: 3px solid var(--grape);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-products .tp-ov-card:nth-child(2) { border-left-color: var(--green-deep); }
.page-products .tp-ov-card:nth-child(3) { border-left-color: var(--gold); }

.page-products .tp-ov-no {
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--grape);
}

.page-products .tp-ov-title {
  font-family: var(--serif);
  font-size: 1.28rem;
  margin: 0;
  color: var(--text);
}

.page-products .tp-ov-text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(36, 22, 51, .82);
}

.page-products .tp-ov-foot {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--green-deep);
}

/* ---------- 地区索引 ---------- */
.page-products .tp-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-products .tp-region-media { margin: 0; max-width: 420px; }

.page-products .tp-region-grid {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .tp-region { background: var(--paper); }

.page-products .tp-region-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 74px;
  padding: 12px 10px;
  background: var(--paper);
  background-image: linear-gradient(to right, var(--tp-line) 1px, transparent 1px);
  background-size: 64px 100%;
  transition: background-color .18s ease, color .18s ease;
}

.page-products .tp-region-node:hover,
.page-products .tp-region-node.is-linked {
  background-color: var(--ink);
  color: var(--paper);
}

.page-products .tp-region-no {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-products .tp-region-node:hover .tp-region-no,
.page-products .tp-region-node.is-linked .tp-region-no { color: var(--green); }

.page-products .tp-region-name {
  font-size: .84rem;
  line-height: 1.3;
  color: inherit;
}

.page-products .tp-region-node--cross {
  background-color: rgba(30, 47, 77, .08);
}

.page-products .tp-region-node--cross .tp-region-name { color: var(--indigo); }

.page-products .tp-tree {
  list-style: none;
  margin: clamp(34px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  counter-reset: none;
}

.page-products .tp-tree-node {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--grape-lite);
  padding: 22px 20px 20px;
}

.page-products .tp-tree-node::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 1px;
  height: 18px;
  background: var(--tp-line-strong);
}

.page-products .tp-tree-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  background: var(--grape);
  color: var(--paper);
  font-size: .8rem;
}

.page-products .tp-tree-node h3 {
  font-family: var(--serif);
  font-size: 1.14rem;
  margin: 0 0 8px;
  color: var(--text);
}

.page-products .tp-tree-node p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(36, 22, 51, .8);
}

/* ---------- 场景筛选 ---------- */
.page-products .tp-scenes .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: clamp(24px, 4vw, 36px) 0 clamp(22px, 3vw, 30px);
  padding: 14px 16px;
  border: 1px solid rgba(164, 111, 196, .34);
}

.page-products .tp-scenes .filter-btn {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 9px 14px;
  border: 1px solid rgba(246, 242, 233, .32);
  background: transparent;
  color: rgba(246, 242, 233, .86);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.page-products .tp-scenes .filter-btn:hover { border-color: var(--green); color: var(--green); }

.page-products .tp-scenes .filter-btn[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.page-products .tp-scenes .filter-status {
  margin: 0 0 0 auto;
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-products .tp-scene-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-products .tp-scene {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 18px;
  background: rgba(246, 242, 233, .97);
  border: 1px solid rgba(216, 210, 196, .5);
  border-top: 2px solid var(--grape);
  color: var(--text);
  transition: opacity .16s ease;
}

.page-products .tp-scene.is-switching { opacity: .35; }

.page-products .tp-scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-products .tp-scene-no {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--grape);
}

.page-products .tp-scene .copy-btn {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  padding: 4px 9px;
  border: 1px solid var(--tp-line-strong);
  background: transparent;
  color: var(--grape);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}

.page-products .tp-scene .copy-btn:hover { border-color: var(--green-deep); color: var(--green-deep); }

.page-products .tp-scene .copy-btn[data-copied] {
  border-color: var(--green-deep);
  color: var(--green-deep);
  background: rgba(155, 197, 61, .14);
}

.page-products .tp-scene-media { margin: 0; }
.page-products .tp-scene-media .media-frame { border: 1px solid var(--line); }

.page-products .tp-scene-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0;
  color: var(--text);
}

.page-products .tp-scene-text {
  margin: 0;
  font-size: .93rem;
  line-height: 1.8;
  color: rgba(36, 22, 51, .82);
}

.page-products .tp-scene .detail {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.page-products .tp-scene .detail-summary {
  cursor: pointer;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--green-deep);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products .tp-scene .detail-summary::-webkit-details-marker { display: none; }

.page-products .tp-scene .detail-summary::before {
  content: "+";
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--grape);
}

.page-products .tp-scene .detail[open] .detail-summary::before { content: "−"; }

.page-products .tp-scene .detail-body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.page-products .tp-scene .detail-body p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(36, 22, 51, .76);
}

/* ---------- 渠道分栏 ---------- */
.page-products .tp-channel-list {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-products .tp-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 22px 0 22px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--wine);
}

.page-products .tp-channel-no {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--wine);
}

.page-products .tp-channel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-products .tp-channel-head h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  margin: 0;
  color: var(--text);
}

.page-products .tp-channel-body {
  display: grid;
  gap: 6px;
}

.page-products .tp-channel-body p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(36, 22, 51, .8);
}

/* ---------- 字段与节奏 ---------- */
.page-products .tp-fields {
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
}

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

.page-products .tp-fields-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 14px 0 0;
  color: var(--paper);
}

.page-products .tp-fields-main .lede {
  margin: 14px 0 0;
  max-width: 54ch;
  color: var(--tp-ink-soft);
}

.page-products .tp-field-list {
  list-style: none;
  margin: clamp(26px, 4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(164, 111, 196, .24);
  border: 1px solid rgba(164, 111, 196, .24);
}

.page-products .tp-field {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px;
  background: var(--ink);
}

.page-products .tp-field-no {
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-products .tp-field h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--paper);
}

.page-products .tp-field p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(246, 242, 233, .75);
}

.page-products .tp-rhythm {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--tp-gold-line);
}

.page-products .tp-rhythm-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 16px;
  color: var(--paper);
}

.page-products .tp-rhythm-list { margin: 0; }

.page-products .tp-rhythm-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(164, 111, 196, .3);
}

.page-products .tp-rhythm-row dt {
  font-size: .8rem;
  color: var(--green);
}

.page-products .tp-rhythm-row dd {
  margin: 0;
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(246, 242, 233, .76);
}

.page-products .tp-fields-media { margin: 0; align-self: start; }

.page-products .tp-fields-media .media-frame {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--tp-line-strong);
  background-color: rgba(27, 11, 43, .6);
}

.page-products .tp-fields-media .media-caption {
  color: rgba(246, 242, 233, .58);
  font-family: var(--mono);
  font-size: .72rem;
}

/* ---------- 边界 ---------- */
.page-products .tp-limits-card {
  padding: clamp(24px, 4vw, 40px);
  border-left: 4px solid var(--grape);
}

.page-products .tp-limits-card h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.22;
  margin: 12px 0 0;
  color: var(--text);
}

.page-products .tp-limit-list {
  list-style: none;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .tp-limit-list li {
  position: relative;
  padding-left: 24px;
  font-size: .94rem;
  line-height: 1.82;
  color: rgba(36, 22, 51, .82);
}

.page-products .tp-limit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 2px;
  background: var(--green-deep);
}

.page-products .tp-limits-more {
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.85;
  color: rgba(36, 22, 51, .78);
}

.page-products .tp-limits-more a {
  color: var(--grape);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
}

.page-products .tp-limits-more a:hover { color: var(--green-deep); }

/* ---------- 动效 ---------- */
.page-products [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

.page-products [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-products [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-products .tp-region-node,
  .page-products .tp-scene,
  .page-products .tp-scenes .filter-btn { transition: none; }
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-products .tp-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-products .tp-scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-products .tp-region-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .page-products .tp-region-node { min-height: 78px; padding: 12px 10px; }
  .page-products .tp-tree { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .page-products .tp-tree-node { border-top-width: 2px; }
  .page-products .tp-tree-node + .tp-tree-node { border-left: none; }
  .page-products .tp-tree-node::after {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 100%;
    height: 1px;
    background: var(--tp-line-strong);
  }
}

@media (min-width: 900px) {
  .page-products .tp-hero-shell {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
  .page-products .tp-hero-media { transform: translateY(-16px); }
  .page-products .tp-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(28px, 4vw, 56px);
  }
  .page-products .tp-region-media { justify-self: end; }
  .page-products .tp-channel {
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 8px 28px;
    align-items: start;
    padding: 26px 0 26px 22px;
  }
  .page-products .tp-channel-head { align-self: start; }
  .page-products .tp-channel-body { align-self: start; }
  .page-products .tp-fields-shell {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }
  .page-products .tp-fields-media { justify-self: end; }
}

@media (min-width: 1120px) {
  .page-products .tp-scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-products .tp-region-node { min-height: 84px; }
}

@media (max-width: 420px) {
  .page-products .tp-region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-products .tp-region-node { min-height: 70px; padding: 10px 8px; }
  .page-products .tp-region-name { font-size: .78rem; }
  .page-products .tp-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .page-products .tp-rhythm-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .page-products .tp-scenes .filter-status { margin-left: 0; width: 100%; }
}
