.page-products {
  overflow-x: clip;
  padding-bottom: clamp(40px, 7vw, 88px);
}

.page-products .breadcrumbs {
  padding-block: clamp(14px, 2vw, 22px) 0;
}

.page-products .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--star-45);
}

.page-products .breadcrumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--star-45);
}

.page-products .breadcrumbs a {
  color: var(--star-70);
  text-decoration: none;
}

.page-products .breadcrumbs a:hover,
.page-products .breadcrumbs a:focus-visible {
  color: var(--cyan);
}

/* ---------- 首屏：分屏 ---------- */

.page-products .tools-hero {
  position: relative;
  padding: clamp(20px, 4vw, 44px) 0 clamp(34px, 6vw, 72px);
}

.page-products .tools-hero__inner {
  display: grid;
  gap: clamp(28px, 5vw, 46px);
  align-items: center;
}

.page-products .tools-hero__copy,
.page-products .tools-hero__visual,
.page-products .chapter {
  min-width: 0;
}

@media (min-width: 980px) {
  .page-products .tools-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(40px, 5vw, 76px);
  }
}

.page-products .tools-hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--star-92);
  margin: 14px 0 0;
}

.page-products .tools-hero__copy .lead {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--star-70);
}

.page-products .tools-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .hero-facts li {
  border-top: 1px solid rgba(90, 60, 196, 0.6);
  padding-top: 12px;
}

.page-products .hero-facts__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.page-products .hero-facts__label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--star-45);
}

.page-products .hero-visual {
  position: relative;
  border-radius: var(--r-panel);
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(120% 80% at 82% 0%, rgba(53, 224, 214, 0.16), transparent 62%),
    linear-gradient(165deg, var(--galaxy) 0%, var(--ink-deep) 74%);
  border: 1px solid rgba(90, 60, 196, 0.6);
  overflow: hidden;
}

.page-products .hero-visual::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -70px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(53, 224, 214, 0.22);
  pointer-events: none;
}

.page-products .hero-visual::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 178, 80, 0.18);
  pointer-events: none;
}

.page-products .hero-visual__frame {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.page-products .hero-visual__shot {
  display: block;
  width: min(238px, 62%);
  height: auto;
  max-width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(53, 224, 214, 0.35);
  background: rgba(6, 11, 34, 0.55);
  object-fit: cover;
}

.page-products .branch-tree {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
}

.page-products .branch {
  position: relative;
  padding-left: 32px;
}

.page-products .branch::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(53, 224, 214, 0.45), rgba(53, 224, 214, 0));
}

.page-products .branch:last-child::before {
  display: none;
}

.page-products .branch__dot {
  position: absolute;
  left: 4px;
  top: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: rgba(53, 224, 214, 0.2);
  box-shadow: 0 0 0 4px rgba(53, 224, 214, 0.08);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-products .branch:hover .branch__dot,
.page-products .branch:focus-within .branch__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(53, 224, 214, 0.2);
}

.page-products .branch__link {
  display: block;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .branch__link:hover,
.page-products .branch__link:focus-visible {
  background: rgba(53, 224, 214, 0.08);
  border-color: rgba(53, 224, 214, 0.36);
  transform: translateX(3px);
}

.page-products .branch__name {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--star-92);
}

.page-products .branch__note {
  display: block;
  margin-top: 2px;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--star-45);
}

/* ---------- 堆叠画板 ---------- */

.page-products .stack {
  display: grid;
  gap: clamp(22px, 4vw, 46px);
}

.page-products .chapter {
  position: relative;
  border-radius: var(--r-panel);
  padding: clamp(22px, 4vw, 46px);
  background: var(--paper);
  color: var(--ink-88);
  box-shadow: 0 26px 60px -40px rgba(6, 11, 34, 0.95);
}

@media (min-width: 1024px) {
  .page-products .chapter:nth-child(even) {
    margin-left: clamp(0px, 3vw, 44px);
  }
  .page-products .chapter:nth-child(odd) {
    margin-right: clamp(0px, 3vw, 44px);
  }
}

.page-products .chapter--deep {
  background:
    radial-gradient(95% 70% at 12% 0%, rgba(90, 60, 196, 0.52), transparent 66%),
    linear-gradient(170deg, var(--galaxy), var(--ink-deep) 72%);
  color: var(--star-92);
  border: 1px solid rgba(53, 224, 214, 0.22);
}

.page-products .chapter__head {
  display: grid;
  gap: 10px 26px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

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

.page-products .chapter__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 6vw, 3.7rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--nebula);
}

.page-products .chapter--deep .chapter__num {
  color: var(--gold);
}

.page-products .chapter__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.28;
  color: var(--ink);
}

.page-products .chapter--deep .chapter__title {
  color: var(--star-92);
}

.page-products .chapter__lead {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 0.99rem;
  line-height: 1.8;
  color: var(--ink-62);
}

.page-products .chapter--deep .chapter__lead {
  color: var(--star-70);
}

.page-products .chapter__next {
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--paper-shade);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-62);
}

.page-products .chapter--deep .chapter__next {
  border-top-color: rgba(247, 249, 255, 0.18);
  color: var(--star-70);
}

.page-products .chapter__next .link-inline {
  color: var(--bay);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 111, 183, 0.42);
}

.page-products .chapter--deep .chapter__next .link-inline {
  color: var(--cyan);
  border-bottom-color: rgba(53, 224, 214, 0.5);
}

.page-products .h-card {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- 图 ---------- */

.page-products .figure {
  margin: clamp(20px, 3vw, 30px) 0 0;
}

.page-products .figure--side {
  margin: 0;
}

.page-products .figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--paper-shade);
  background: rgba(6, 11, 34, 0.06);
  object-fit: cover;
}

.page-products .chapter--deep .figure img {
  border-color: rgba(53, 224, 214, 0.22);
  background: rgba(6, 11, 34, 0.4);
}

.page-products .figure__cap {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ink-62);
}

.page-products .chapter--deep .figure__cap {
  color: var(--star-45);
}

/* ---------- 01 注册三步 ---------- */

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

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

.page-products .step {
  border-radius: var(--r-card);
  border: 1px solid var(--paper-shade);
  background: rgba(255, 255, 255, 0.62);
  padding: 18px 18px 20px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .step:hover {
  border-color: var(--nebula);
  transform: translateY(-3px);
}

.page-products .step__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--bay);
}

.page-products .step__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
}

.page-products .step__text {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-62);
}

/* ---------- 02 检索 ---------- */

.page-products .search-panel {
  border-radius: var(--r-card);
  border: 1px solid var(--paper-shade);
  background: rgba(255, 255, 255, 0.6);
  padding: clamp(16px, 2.6vw, 24px);
}

.page-products .search-panel__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(46, 111, 183, 0.45);
  border-radius: var(--r-pill);
  background: #ffffff;
  padding: 12px 20px;
}

.page-products .search-panel__icon {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 2px solid var(--bay);
  border-radius: 50%;
}

.page-products .search-panel__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--bay);
  transform: rotate(45deg);
}

.page-products .search-panel__hint {
  font-size: 0.9rem;
  color: var(--ink-62);
}

.page-products .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-products .filter-bar .chip {
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
  border: 1px solid var(--paper-shade);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-88);
  padding: 8px 17px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-products .filter-bar .chip:hover,
.page-products .filter-bar .chip:focus-visible {
  border-color: var(--nebula);
  color: var(--nebula);
}

.page-products .filter-bar .chip[aria-pressed="true"] {
  border-color: var(--nebula);
  background: var(--nebula);
  color: var(--star-92);
  box-shadow: 0 10px 24px -14px rgba(90, 60, 196, 0.9);
}

.page-products .filter-status {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-62);
}

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

.page-products .result {
  display: grid;
  gap: 3px 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--bay);
  background: rgba(46, 111, 183, 0.08);
}

@media (min-width: 640px) {
  .page-products .result {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: baseline;
  }
}

.page-products .result__kind {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  color: var(--nebula);
}

.page-products .result__title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}

.page-products .result__meta {
  font-size: 0.81rem;
  color: var(--ink-62);
}

/* ---------- 03 订阅切换 ---------- */

.page-products .switch-grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

@media (min-width: 900px) {
  .page-products .switch-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }
}

.page-products .switch-grid__body .h-card + .plain-list,
.page-products .switch-grid__body .h-card + .tier-list {
  margin-top: 14px;
}

.page-products .switch-grid__body .tier-list + .h-card,
.page-products .switch-grid__body .plain-list + .h-card {
  margin-top: clamp(20px, 3vw, 28px);
}

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

.page-products .plain-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--ink-62);
}

.page-products .plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 214, 0.16);
}

.page-products .chapter--deep .plain-list li {
  color: var(--star-70);
}

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

.page-products .tier {
  display: grid;
  gap: 4px 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--nebula);
  background: rgba(90, 60, 196, 0.08);
}

@media (min-width: 640px) {
  .page-products .tier {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: baseline;
  }
}

.page-products .tier__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--nebula);
}

.page-products .tier__desc {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--ink-62);
}

/* ---------- 04 企业八项 ---------- */

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

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

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

.page-products .fn {
  border-radius: var(--r-card);
  border: 1px solid rgba(90, 60, 196, 0.5);
  background: rgba(43, 26, 99, 0.5);
  padding: 18px 16px 20px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .fn:hover,
.page-products .fn:focus-within {
  border-color: rgba(53, 224, 214, 0.6);
  background: rgba(43, 26, 99, 0.82);
  transform: translateY(-3px);
}

.page-products .fn__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-products .fn__name {
  margin: 9px 0 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--star-92);
}

.page-products .fn__text {
  margin: 7px 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--star-70);
}

/* ---------- 05 多端同步 ---------- */

.page-products .sync-stats {
  list-style: none;
  margin: 0 0 clamp(16px, 3vw, 24px);
  padding: 0;
  display: grid;
  gap: 14px;
}

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

.page-products .sync-stat {
  border-radius: var(--r-card);
  border: 1px solid var(--paper-shade);
  background: linear-gradient(150deg, rgba(90, 60, 196, 0.14), rgba(53, 224, 214, 0.1));
  padding: 18px 20px;
}

.page-products .sync-stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--nebula);
}

.page-products .sync-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--ink-62);
}

/* ---------- 06 版本对照 ---------- */

.page-products .version-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

.page-products .version {
  border-radius: var(--r-card);
  border: 1px solid var(--paper-shade);
  background: rgba(255, 255, 255, 0.62);
  padding: 18px 18px 20px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .version:hover {
  border-color: var(--nebula);
  transform: translateY(-3px);
}

.page-products .version__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--ink-deep);
  background: var(--gold);
  border-radius: var(--r-pill);
  padding: 3px 13px;
}

.page-products .version h3 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--ink);
}

.page-products .version p {
  margin: 8px 0 0;
  font-size: 0.89rem;
  line-height: 1.75;
  color: var(--ink-62);
}

/* ---------- 收束 ---------- */

.page-products .closing {
  margin-top: clamp(30px, 5vw, 56px);
}

.page-products .closing__inner {
  border-radius: var(--r-panel);
  border: 1px solid rgba(53, 224, 214, 0.28);
  background: linear-gradient(140deg, var(--nebula) 0%, var(--galaxy) 58%, var(--ink-deep) 100%);
  padding: clamp(26px, 4vw, 48px);
}

.page-products .closing__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.3;
  color: var(--star-92);
}

.page-products .closing__text {
  margin: 14px 0 0;
  max-width: 46em;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--star-70);
}

.page-products .closing__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 24px;
}

.page-products .closing__links a {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 214, 0.45);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .closing__links a:hover,
.page-products .closing__links a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(242, 178, 80, 0.65);
}

/* ---------- 窄屏收拢 ---------- */

@media (max-width: 640px) {
  .page-products .chapter {
    border-radius: 18px;
  }

  .page-products .tools-hero__copy h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.6rem);
  }

  .page-products .hero-visual {
    border-radius: 18px;
  }

  .page-products .closing__inner {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .step,
  .page-products .fn,
  .page-products .version,
  .page-products .branch__link {
    transition: none;
  }

  .page-products .step:hover,
  .page-products .fn:hover,
  .page-products .fn:focus-within,
  .page-products .version:hover,
  .page-products .branch__link:hover {
    transform: none;
  }
}
