/* ===== 业务中心 · 页面专属样式（作用域 .page-products） ===== */

.page-products {
  --pd-gap: clamp(18px, 2.6vw, 34px);
  --pd-panel-bg: rgba(18, 35, 61, 0.72);
}

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

.page-products .pd-hero {
  padding-block: clamp(26px, 4.4vw, 58px) clamp(30px, 4.6vw, 62px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-products .pd-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 58%;
  height: 160%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.11), rgba(0, 229, 255, 0) 62%);
  transform: skewX(-14deg);
  pointer-events: none;
}

.page-products .pd-hero__grid {
  display: grid;
  gap: clamp(26px, 3.6vw, 46px);
  align-items: end;
  position: relative;
}

.page-products .pd-hero__copy .display {
  margin: 12px 0 18px;
}

.page-products .pd-hl {
  color: var(--cyan);
  position: relative;
}

.page-products .pd-hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 3px;
  background: var(--orange);
}

.page-products .pd-hero__copy .lede {
  max-width: 62ch;
}

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

.page-products .pd-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: stretch;
}

.page-products .pd-stat {
  background: var(--console);
  padding: clamp(14px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-products .pd-stat__v {
  font-family: var(--font-data);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.page-products .pd-hero__stats .pd-stat:nth-child(2) .pd-stat__v {
  color: var(--orange);
}

.page-products .pd-hero__stats .pd-stat:nth-child(4) .pd-stat__v {
  color: var(--pulse);
}

/* ---------- 标签轨道 ---------- */

.page-products .pd-modules {
  padding-block: clamp(30px, 4.6vw, 62px);
}

.page-products .pd-tabbar {
  margin-bottom: clamp(24px, 3.6vw, 44px);
  position: relative;
}

.page-products .pd-tabbar::before {
  content: "业务模块 / BUSINESS MODULES";
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--steel);
  margin-bottom: 12px;
}

.page-products .tablist {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.page-products .tablist::-webkit-scrollbar {
  display: none;
}

.page-products .tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px clamp(14px, 2.4vw, 30px);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--silver);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.page-products .tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.page-products .tab:hover {
  color: var(--cyan);
}

.page-products .tab[aria-selected="true"] {
  color: var(--white);
  background: var(--console);
}

.page-products .tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.page-products .pd-tab__num {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  transition: color 0.22s ease;
}

.page-products .tab[aria-selected="true"] .pd-tab__num {
  color: var(--cyan);
}

/* ---------- 面板通用 ---------- */

.page-products .pd-pane {
  animation: pd-fade 0.32s ease both;
}

@keyframes pd-fade {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-pane { animation: none; }
}

.page-products .pd-pane__head {
  display: grid;
  gap: 12px;
  margin-bottom: var(--pd-gap);
  max-width: 78ch;
}

.page-products .pd-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}

.page-products .pd-pane__lede {
  color: var(--silver);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  margin: 0;
}

.page-products .pd-shot,
.page-products .pd-member__media,
.page-products .pd-scenes__media {
  margin: 0 0 var(--pd-gap);
}

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

/* ---------- 数据面板：统计卡 ---------- */

.page-products .pd-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .pd-metric {
  background: var(--console);
  padding: clamp(16px, 2.2vw, 26px);
  position: relative;
  transition: background-color 0.24s ease;
}

.page-products .pd-metric:hover {
  background: var(--panel);
}

.page-products .pd-metric__n {
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.page-products .pd-metric__t {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

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

.page-products .pd-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--silver);
  padding-left: 15px;
  position: relative;
}

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

.page-products .pd-note {
  margin-top: var(--pd-gap);
  border-left: 3px solid var(--orange);
  background: var(--pd-panel-bg);
  padding: clamp(16px, 2.2vw, 24px);
  display: grid;
  gap: 12px;
}

.page-products .pd-note--flat {
  border-left-color: var(--cyan);
}

.page-products .pd-note__text {
  margin: 0;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.8;
  max-width: 88ch;
}

.page-products .pd-note__link {
  justify-self: start;
  color: var(--cyan);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-products .pd-note__link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ---------- 联赛导航 ---------- */

.page-products .pd-league {
  align-items: start;
}

.page-products .pd-league__media {
  margin: 0;
}

.page-products .pd-tree {
  border: 1px solid var(--line);
  background: var(--pd-panel-bg);
  padding: clamp(16px, 2.4vw, 26px);
}

.page-products .pd-tree__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.page-products .pd-tree__count {
  font-family: var(--font-data);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.page-products .pd-tree__count-label {
  font-size: 13px;
  color: var(--silver);
}

.page-products .pd-tree__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-products .pd-tree__row--l2 {
  padding-left: 22px;
}

.page-products .pd-tree__row--l3 {
  padding-left: 44px;
}

.page-products .pd-tree__row--l1 {
  margin-top: 6px;
}

.page-products .pd-tree__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.28);
}

.page-products .pd-tree__dot--sub {
  width: 5px;
  height: 5px;
  background: var(--steel);
  box-shadow: none;
}

.page-products .pd-tree__name {
  font-size: 14.5px;
  color: var(--white);
  font-weight: 600;
}

.page-products .pd-tree__row--l2 .pd-tree__name {
  color: var(--silver);
  font-weight: 400;
}

.page-products .pd-tree__note {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-align: right;
}

.page-products .pd-tree__foot {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--silver);
}

/* ---------- 会员权益 ---------- */

.page-products .pd-years {
  display: grid;
  gap: 10px;
  margin-bottom: var(--pd-gap);
}

.page-products .pd-year {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--console);
  border-left: 3px solid var(--steel);
  padding: clamp(14px, 1.8vw, 20px);
}

.page-products .pd-year--current {
  border-left-color: var(--orange);
  background: rgba(255, 107, 26, 0.07);
}

.page-products .pd-year__badge {
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan);
  min-width: 42px;
}

.page-products .pd-year--current .pd-year__badge {
  color: var(--orange);
}

.page-products .pd-year__body {
  min-width: 0;
}

.page-products .pd-year__t {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.page-products .pd-year__d {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--silver);
}

.page-products .pd-member__media {
  margin-bottom: var(--pd-gap);
}

.page-products .pd-member-points {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .pd-point {
  background: var(--console);
  padding: clamp(16px, 2.2vw, 26px);
}

.page-products .pd-point__t {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
}

.page-products .pd-point__d {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--silver);
}

.page-products .pd-inline-link {
  margin: var(--pd-gap) 0 0;
  font-size: 14px;
  color: var(--silver);
}

.page-products .pd-inline-link a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

.page-products .pd-inline-link a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ---------- 资源下载 ---------- */

.page-products .pd-downloads {
  align-items: start;
}

.page-products .pd-dl-list {
  display: grid;
  gap: 12px;
}

.page-products .pd-dl {
  border: 1px solid var(--line);
  background: var(--console);
  padding: clamp(16px, 2.2vw, 22px);
  display: grid;
  gap: 14px;
  position: relative;
  transition: border-color 0.24s ease;
}

.page-products .pd-dl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--cyan);
  transition: width 0.28s ease;
}

.page-products .pd-dl:hover {
  border-color: var(--steel);
}

.page-products .pd-dl:hover::before {
  width: 100%;
}

.page-products .pd-dl__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-products .pd-dl__ver {
  font-family: var(--font-data);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.page-products .pd-dl__meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.page-products .pd-dl__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 7px;
}

.page-products .pd-dl__meta dt {
  font-size: 12.5px;
  color: var(--steel);
  letter-spacing: 0.04em;
}

.page-products .pd-dl__meta dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--silver);
  text-align: right;
}

.page-products .pd-dl__meta dd.data-num {
  color: var(--cyan);
}

.page-products .pd-dl__copy {
  justify-self: start;
}

.page-products .pd-download__media {
  margin: 0;
}

/* ---------- 适用场景 ---------- */

.page-products .pd-scenes {
  padding-block: clamp(30px, 4.6vw, 62px);
  border-top: 1px solid var(--line);
}

.page-products .pd-scene__grid {
  margin-bottom: var(--pd-gap);
}

.page-products .pd-scene {
  position: relative;
  border: 1px solid var(--line);
  background: var(--console);
  padding: clamp(18px, 2.4vw, 28px);
  transition: background-color 0.24s ease;
}

.page-products .pd-scene::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  pointer-events: none;
}

.page-products .pd-scene:hover {
  background: var(--panel);
}

.page-products .pd-scene__idx {
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--steel);
  margin-bottom: 12px;
}

.page-products .pd-scene__t {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.page-products .pd-scene__d {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--silver);
}

.page-products .pd-scene__tool {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .pd-scenes__media {
  margin: 0;
}

/* ---------- 版本对比 ---------- */

.page-products .pd-compare {
  padding-block: clamp(30px, 4.6vw, 62px);
  border-top: 1px solid var(--line);
}

.page-products .pd-compare__lede {
  margin: 12px 0 0;
  max-width: 80ch;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.8;
}

.page-products .pd-table-wrap {
  margin-top: var(--pd-gap);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}

.page-products .pd-table {
  min-width: 660px;
  width: 100%;
}

.page-products .pd-table__cap {
  caption-side: top;
  text-align: left;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--steel);
  padding: 14px 16px 12px;
  background: var(--arena);
}

.page-products .pd-table tbody th[scope="row"] {
  color: var(--white);
  font-weight: 600;
  text-align: left;
}

.page-products .pd-mark {
  color: var(--orange);
  font-weight: 700;
}

.page-products .pd-advice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}

.page-products .pd-advice__item {
  background: var(--console);
  padding: clamp(16px, 2.2vw, 24px);
}

.page-products .pd-advice__t {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cyan);
}

.page-products .pd-advice__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--silver);
}

.page-products .pd-end {
  margin-top: var(--pd-gap);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.8vw, 32px);
  border-left: 3px solid var(--orange);
  background: linear-gradient(90deg, rgba(255, 107, 26, 0.11), rgba(255, 107, 26, 0));
}

.page-products .pd-end__text {
  margin: 0;
  max-width: 70ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--white);
}

.page-products .pd-end__text a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

.page-products .pd-end__text a:hover {
  color: var(--white);
  border-color: var(--white);
}

.page-products .pd-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */

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

  .page-products .pd-member-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-products .pd-end {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-products .pd-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  }

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

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

@media (min-width: 1280px) {
  .page-products .pd-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-products .pd-hero::after {
    display: none;
  }

  .page-products .pd-year {
    grid-template-columns: auto 1fr;
    row-gap: 8px;
  }

  .page-products .pd-year .tag {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .page-products .pd-tree__note {
    display: none;
  }
}
