/* ========== 大江体育 · 解决方案页专属样式 ========== */
.page-products .p2-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.page-products .p2-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

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

.page-products .p2-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 15, 28, 0.86) 0%, rgba(15, 15, 28, 0.58) 60%, rgba(15, 15, 28, 0.1) 100%);
}

.page-products .p2-hero-inner {
  width: 100%;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  color: #ffffff;
}

.page-products .p2-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.page-products .p2-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.page-products .p2-breadcrumb li + li::before {
  content: "›";
  color: var(--accent);
  margin: 0 8px;
}

.page-products .p2-hero-inner .p2-hero-marker {
  background: var(--accent);
  color: #ffffff;
}

.page-products .p2-hero-title {
  margin: 12px 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: #ffffff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.28);
}

.page-products .p2-hero-sub {
  display: block;
  color: #ffffff;
  font-weight: 800;
}

.page-products .p2-hero-lead {
  max-width: 640px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.page-products .p2-hero-lead strong {
  font-weight: 700;
  color: var(--accent);
}

/* ---------- 左右错位布局 ---------- */
.page-products .p2-engine-section {
  padding-top: 56px;
  padding-bottom: 36px;
}

.page-products .p2-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-products .p2-split-main {
  min-width: 0;
}

.page-products .p2-split-side {
  min-width: 0;
}

/* ---------- 章节标题 ---------- */
.page-products .p2-section-head,
.page-products .p2-guide-head {
  max-width: 600px;
  margin-bottom: 24px;
}

.page-products .p2-section-head .section-index,
.page-products .p2-guide-head .section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-products .p2-section-head .eyebrow,
.page-products .p2-guide-head .eyebrow {
  margin-bottom: 8px;
}

.page-products .p2-section-head .section-title,
.page-products .p2-guide-head .section-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.page-products .p2-section-head .section-copy,
.page-products .p2-guide-head .section-copy {
  margin: 0;
  color: #31415b;
}

/* ---------- 核心数据引擎 / 翻转卡片 ---------- */
.page-products .p2-engine-card {
  background: #ffffff;
  border: 2px solid var(--text);
  box-shadow: 8px 8px 0 var(--primary);
}

.page-products .p2-flip {
  position: relative;
  min-height: 380px;
  outline: none;
  border: none;
  background: #ffffff;
}

.page-products .p2-flip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.page-products .p2-flip-inner {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1.2);
}

.page-products .p2-flip:hover .p2-flip-inner,
.page-products .p2-flip:focus-within .p2-flip-inner {
  transform: rotateY(180deg);
}

.page-products .p2-flip-front,
.page-products .p2-flip-back {
  box-sizing: border-box;
  min-height: 380px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #ffffff;
}

.page-products .p2-flip-front {
  display: flex;
  align-items: center;
  padding: 20px 18px;
}

.page-products .p2-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 26px 24px;
  overflow: auto;
}

.page-products .p2-flip-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.page-products .p2-flip-back p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #31415b;
}

.page-products .p2-meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.page-products .p2-meta-list div {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

.page-products .p2-meta-list dt {
  flex: 0 0 56px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-products .p2-meta-list dd {
  margin: 0;
  color: #31415b;
}

.page-products .p2-engine-card .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.page-products .p2-engine-card .data-table {
  margin: 0;
  min-width: 420px;
}

.page-products .p2-engine-note {
  margin: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6c7a91;
}

/* ---------- 平台筛选命令栏 ---------- */
.page-products .p2-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 24px;
  background: var(--text);
  border: 2px solid var(--text);
  box-shadow: 5px 5px 0 var(--border);
}

.page-products .p2-filter-label {
  margin-right: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-products .p2-filter .filter-btn {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1;
  padding: 9px 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}

.page-products .p2-filter .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.page-products .p2-filter .filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--primary);
  transform: translateY(-1px);
}

/* ---------- 终端卡片 ---------- */
.page-products .p2-terminal-stack {
  display: grid;
  gap: 26px;
}

.page-products .p2-terminal-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--text);
}

.page-products .p2-terminal-card[data-category="tablet"] {
  box-shadow: 7px 7px 0 var(--secondary);
}

.page-products .p2-terminal-card[data-category="desktop"] {
  box-shadow: 7px 7px 0 var(--accent);
}

.page-products .p2-terminal-media {
  border-bottom: 2px solid var(--text);
  background: #f4f6f9;
}

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

.page-products .p2-terminal-body {
  padding: 20px 20px 24px;
}

.page-products .p2-terminal-body .eyebrow {
  margin-bottom: 10px;
}

.page-products .p2-terminal-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.page-products .p2-terminal-title .section-index {
  display: inline-block;
  padding: 8px 10px;
  background: var(--text);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.page-products .p2-terminal-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #31415b;
}

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

.page-products .p2-feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.page-products .p2-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--text);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-products .p2-terminal-card[data-category="tablet"] .p2-feature-list li::before {
  background: var(--secondary);
}

.page-products .p2-terminal-card[data-category="desktop"] .p2-feature-list li::before {
  background: var(--accent);
}

.page-products .p2-filter-hint {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--secondary);
  background: rgba(0, 184, 148, 0.07);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #6c7a91;
}

/* ---------- 新手引导 ---------- */
.page-products .p2-guide-section {
  margin-top: 48px;
  padding-top: 64px;
  padding-bottom: 56px;
  background:
    linear-gradient(160deg, rgba(30, 144, 255, 0.1) 0%, rgba(248, 249, 250, 0) 48%),
    var(--bg);
}

.page-products .p2-guide-layout {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
}

.page-products .p2-guide-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 800;
}

.page-products .p2-guide-copy p {
  margin: 0 0 14px;
  max-width: 640px;
  line-height: 1.75;
  color: #31415b;
}

.page-products .p2-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.page-products .p2-guide-media {
  border: 2px solid var(--text);
  box-shadow: 12px 12px 0 var(--accent);
  background: #ffffff;
}

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

/* ---------- 下一步内链 ---------- */
.page-products .p2-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 2px solid var(--text);
}

.page-products .p2-next-links a {
  position: relative;
  padding-bottom: 3px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  transition: background 0.16s;
}

.page-products .p2-next-links a:hover,
.page-products .p2-next-links a:focus-visible {
  background: rgba(30, 144, 255, 0.1);
}

/* ---------- 桌面端布局增强 ---------- */
@media (min-width: 1024px) {
  .page-products .p2-hero {
    min-height: 620px;
  }

  .page-products .p2-hero-inner {
    padding: 72px 40px 96px;
  }

  .page-products .p2-split {
    flex-direction: row;
    align-items: flex-start;
    gap: 52px;
  }

  .page-products .p2-split-main {
    flex: 1 1 55%;
  }

  .page-products .p2-split-side {
    flex: 1 1 38%;
    padding-top: 8px;
  }

  .page-products .p2-engine-section {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .page-products .p2-terminal-stack {
    gap: 32px;
  }

  .page-products .p2-guide-layout {
    grid-template-columns: minmax(0, 1fr) 1.15fr;
    gap: 56px;
  }

  .page-products .p2-guide-section {
    padding-top: 80px;
    padding-bottom: 72px;
  }
}
