/* ================================================
   应用中心 · page-products 专属样式
   移动优先，桌面端增强
   ================================================ */
.page-products {
  --pp-red: #E6321A;
  --pp-blue: #1B4FC4;
  --pp-green: #0FA862;
  --pp-gold: #F5C518;
  --pp-dark: #0D0D12;
  --pp-light: #F5F6FA;
  --pp-text: #1A1A24;
  --pp-muted: #5C5C70;
  --pp-card: #FFFFFF;
  overflow-x: clip;
}

/* ===== 面包屑 ===== */
.page-products .breadcrumb {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 20px 20px 0;
}
.page-products .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.page-products .breadcrumb__link {
  color: var(--pp-blue);
  text-decoration: none;
  font-weight: 700;
}
.page-products .breadcrumb__sep {
  color: var(--pp-muted);
}
.page-products .breadcrumb__current {
  color: var(--pp-muted);
  font-weight: 700;
}

/* ===== 首屏 Hero ===== */
.page-products__hero {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 72px;
  background: linear-gradient(115deg, var(--pp-dark) 0%, #14141F 54%, var(--pp-blue) 54.2%, var(--pp-blue) 100%);
  color: #F5F6FA;
}
.page-products__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-race, linear-gradient(90deg, var(--pp-red), var(--pp-gold)));
  z-index: 2;
}
.page-products__hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 50, 26, 0.3) 0%, transparent 68%);
  pointer-events: none;
}
.page-products__hero-side-note {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(245, 246, 250, 0.45);
  pointer-events: none;
}
.page-products__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  align-items: center;
}
.page-products__hero-copy {
  max-width: 680px;
}
.page-products__hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pp-gold);
}
.page-products__hero-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--pp-gold);
  flex: none;
}
.page-products__hero-title {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #F5F6FA;
}
.page-products__hero-intro {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 246, 250, 0.78);
  max-width: 620px;
}
.page-products__hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 198, 24, 0.4);
  background: rgba(245, 198, 24, 0.08);
  font-family: var(--font-data, monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-gold);
}

/* Hero 模拟屏 */
.page-products__hero-panel {
  width: 100%;
  max-width: 460px;
  justify-self: center;
  background: rgba(13, 13, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: rotate(1.5deg);
}
.page-products__hero-panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-products__hero-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pp-red);
}
.page-products__hero-panel-dot--gold {
  background: var(--pp-gold);
}
.page-products__hero-panel-dot--green {
  background: var(--pp-green);
}
.page-products__hero-panel-label {
  margin-left: auto;
  font-family: var(--font-data, monospace);
  font-size: 11px;
  color: rgba(245, 246, 250, 0.5);
}
.page-products__hero-panel-body {
  padding: 10px 16px;
  display: grid;
  gap: 8px;
}
.page-products__hero-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--pp-red);
}
.page-products__hero-panel-row:nth-child(2) {
  border-left-color: var(--pp-gold);
}
.page-products__hero-panel-row:nth-child(3) {
  border-left-color: var(--pp-green);
}
.page-products__hero-panel-league {
  font-size: 14px;
  font-weight: 800;
  color: #F5F6FA;
}
.page-products__hero-panel-rank {
  font-family: var(--font-data, monospace);
  font-size: 13px;
  color: var(--pp-gold);
}
.page-products__hero-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 246, 250, 0.6);
}
.page-products__hero-panel-foot-num {
  font-family: var(--font-data, monospace);
  font-size: 15px;
  font-weight: 700;
  color: var(--pp-gold);
}

/* ===== 章节标题共用 ===== */
.page-products__section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}
.page-products__section-head .section__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--pp-text);
}
.page-products__section-head .section__intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pp-muted);
  max-width: 720px;
}
.page-products__section-head--dark .section__title {
  color: #F5F6FA;
}
.page-products__section-head--dark .section__intro {
  color: rgba(245, 246, 250, 0.62);
}

/* ===== 核心功能 ===== */
.page-products__features,
.page-products__versions,
.page-products__entry {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 72px 20px;
}
.page-products__features {
  padding-top: 64px;
}

/* 图片基础自适应 */
.page-products .img-frame img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.page-products figcaption {
  font-size: 12px;
  color: var(--pp-muted);
  margin-top: 10px;
  text-align: right;
  font-family: var(--font-data, monospace);
  letter-spacing: 0.02em;
}

.page-products__device-figure {
  margin: 0 0 36px;
}
.page-products__device-figure img {
  border-radius: 8px;
  box-shadow: var(--shadow-float, none);
}

/* 筛选器 */
.page-products .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 26px;
}
.page-products .tag-btn {
  appearance: none;
  border: 1px solid rgba(27, 79, 196, 0.4);
  background: transparent;
  color: var(--pp-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-products .tag-btn:hover {
  border-color: var(--pp-blue);
  background: rgba(27, 79, 196, 0.08);
}
.page-products .tag-btn.is-active {
  background: var(--pp-blue);
  border-color: var(--pp-blue);
  color: #FFFFFF;
}

/* 功能卡片 */
.page-products__feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.page-products__feature-card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--pp-card);
  border: 1px solid rgba(27, 79, 196, 0.16);
  border-radius: 6px;
  box-shadow: var(--shadow-card, none);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  display: flex;
  flex-direction: column;
  transition: transform 0.26s var(--ease-out, ease), box-shadow 0.26s ease, border-color 0.26s ease;
}
.page-products__feature-card:hover,
.page-products__feature-card:focus-within {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-float, none);
  border-color: rgba(230, 50, 26, 0.34);
}
.page-products__feature-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.page-products__feature-num {
  font-family: var(--font-data, monospace);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--pp-blue);
  font-weight: 700;
}
.page-products__feature-icon-box {
  position: relative;
  width: 46px;
  height: 38px;
  border: 1px solid rgba(27, 79, 196, 0.24);
  border-radius: 4px;
  background: rgba(245, 246, 250, 0.7);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}
.page-products__feature-icon-box::before,
.page-products__feature-icon-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pp-red);
}
.page-products__feature-icon-box::after {
  left: 16px;
  background: var(--pp-gold);
}
.page-products__feature-icon {
  width: 26px;
  height: 26px;
  color: var(--pp-red);
}
.page-products__feature-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--pp-text);
}
.page-products__feature-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--pp-muted);
  flex-grow: 1;
}
.page-products .card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-products .card__link:hover,
.page-products .card__link:focus {
  color: var(--pp-red);
}

/* ===== 版本对照 ===== */
.page-products__versions {
  border-top: 1px solid rgba(27, 79, 196, 0.1);
  border-bottom: 1px solid rgba(27, 79, 196, 0.1);
}
.page-products__version-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.page-products__version-card {
  position: relative;
  background: var(--pp-card);
  border: 1px solid rgba(27, 79, 196, 0.14);
  border-radius: 6px;
  box-shadow: var(--shadow-card, none);
  padding: 26px 22px 22px;
  overflow: hidden;
}
.page-products__version-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--pp-blue);
}
.page-products__version-card[data-filter-value="mobile"]::before {
  background: var(--pp-gold);
}
.page-products__version-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-text);
}
.page-products__version-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--pp-blue);
  color: #FFFFFF;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 900;
}
.page-products__version-card[data-filter-value="mobile"] .page-products__version-tag {
  background: var(--pp-gold);
  color: var(--pp-dark);
}
.page-products__version-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-products__version-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pp-text);
}
.page-products__version-steps b {
  flex: none;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-blue);
  border-radius: 2px;
  color: #FFFFFF;
  font-family: var(--font-data, monospace);
  font-size: 12px;
}
.page-products__version-card[data-filter-value="mobile"] .page-products__version-steps b {
  background: var(--pp-green);
}
.page-products__version-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--pp-light);
  border-left: 3px solid var(--pp-green);
  font-size: 13px;
  line-height: 1.6;
  color: var(--pp-muted);
}
.page-products__version-figure {
  margin: 28px 0 0;
}

/* ===== 服务能力 ===== */
.page-products__capabilities {
  position: relative;
  background: var(--pp-dark);
  color: #F5F6FA;
  padding: 68px 20px 72px;
  overflow: hidden;
}
.page-products__capabilities::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-race, linear-gradient(90deg, var(--pp-red), var(--pp-gold)));
}
.page-products__capabilities::after {
  content: "";
  position: absolute;
  left: -80px;
  top: 40px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(245, 198, 24, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.page-products__capabilities-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}
.page-products__capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
.page-products__capability-stat {
  position: relative;
  padding: 26px 22px 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.page-products__capability-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.page-products__capability-stat::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 46px;
  height: 46px;
  background: var(--pp-red);
  opacity: 0.22;
  transform: rotate(45deg);
}
.page-products__stat-num {
  display: block;
  font-family: var(--font-data, monospace);
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--pp-gold);
}
.page-products__stat-label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #F5F6FA;
}
.page-products__capability-stat p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(245, 246, 250, 0.55);
}
.page-products__network-figure {
  margin: 0;
}
.page-products__capabilities-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-data, monospace);
  font-size: 13px;
  color: rgba(245, 246, 250, 0.7);
}
.page-products__capabilities-contact span::before {
  content: "● ";
  color: var(--pp-gold);
}

/* ===== 使用入口 ===== */
.page-products__entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.page-products__entry-card {
  display: block;
  text-decoration: none;
  background: var(--pp-card);
  border: 1px solid rgba(27, 79, 196, 0.16);
  border-radius: 6px;
  box-shadow: var(--shadow-card, none);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-products__entry-card:hover,
.page-products__entry-card:focus-visible {
  transform: translateY(-4px) rotate(0.6deg);
  box-shadow: var(--shadow-float, none);
}
.page-products__entry-index {
  font-family: var(--font-data, monospace);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--pp-gold);
  font-weight: 700;
}
.page-products__entry-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-text);
}
.page-products__entry-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pp-muted);
}
.page-products__entry-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 32px;
  padding: 20px 24px;
  background: var(--pp-light);
  border-left: 4px solid var(--pp-blue);
  text-decoration: none;
  transition: background 0.25s ease;
}
.page-products__entry-banner:hover {
  background: #FFFFFF;
}
.page-products__entry-banner span {
  font-family: var(--font-data, monospace);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--pp-red);
  font-weight: 700;
}
.page-products__entry-banner strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-text);
}
.page-products__entry-figure {
  margin: 0;
}

/* ===== 底部氛围图 ===== */
.page-products__track {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 0;
}
.page-products__track img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== 平板及以上 ===== */
@media (min-width: 640px) {
  .page-products__capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-products__feature-grid,
  .page-products__entry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== 桌面 ===== */
@media (min-width: 960px) {
  .page-products__hero {
    padding: 64px 40px 84px;
  }
  .page-products__hero-inner {
    grid-template-columns: 7fr 5fr;
    gap: 60px;
  }
  .page-products__hero-panel {
    justify-self: end;
  }
  .page-products__features,
  .page-products__versions,
  .page-products__entry {
    padding: 80px 40px;
  }
  .page-products__features {
    padding-top: 72px;
  }
  .page-products__feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .page-products__version-paths {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    position: relative;
  }
  .page-products__version-paths::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--pp-gold), rgba(245, 198, 24, 0.1));
  }
  .page-products__capabilities {
    padding-left: 40px;
    padding-right: 40px;
  }
  .page-products__capabilities-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .page-products__entry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .page-products__version-figure,
  .page-products__entry-figure {
    margin-top: 36px;
  }
}
