/* ===== KOK全站 平台服务页专属样式 ===== */
.page-products {
  --p-line: rgba(57, 255, 20, 0.22);
  --p-line-strong: rgba(57, 255, 20, 0.45);
  --p-panel: rgba(11, 27, 61, 0.66);
  --p-panel-deep: rgba(30, 10, 60, 0.72);
  --p-border-purple: rgba(106, 13, 173, 0.55);
  min-height: 70vh;
  background:
    linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--c-navy);
  color: var(--c-gray);
  overflow: hidden;
}

.page-products .breadcrumb {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 28px var(--gap) 0;
}
.page-products .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.page-products .breadcrumb-list a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.page-products .breadcrumb-list a:hover,
.page-products .breadcrumb-list a:focus-visible {
  color: var(--c-neon);
  outline: none;
}
.page-products .breadcrumb-sep {
  color: rgba(224, 224, 224, 0.4);
  margin-inline: 2px;
}
.page-products .breadcrumb-list [aria-current="page"] {
  color: var(--c-gray);
}

/* ===== Hero 标题区 ===== */
.page-products .hero-products {
  display: grid;
  gap: 36px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 56px var(--gap) 72px;
  position: relative;
}
.page-products .hero-products::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 55%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-products .hero-products-copy {
  position: relative;
  z-index: 1;
  margin-inline: calc(-1 * var(--gap));
  padding: 40px var(--gap) 44px;
  background: linear-gradient(135deg, var(--c-darkp), rgba(11, 27, 61, 0.55));
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  border-top: 1px solid var(--p-line);
}
.page-products .hero-products-kicker {
  margin: 0 0 14px;
  color: var(--c-neon);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-products .hero-products-title {
  margin: 0 0 20px;
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: clamp(28px, 5.4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
}
.page-products .hero-products-lead {
  margin: 0 0 28px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(224, 224, 224, 0.82);
}
.page-products .hero-products-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.page-products .hero-products-actions .btn {
  text-decoration: none;
}
.page-products .hero-products-media {
  position: relative;
  z-index: 1;
  translate: 0 4px;
}
.page-products .hero-products-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(106, 13, 173, 0.4);
  transform: rotate(-1deg) skewX(-1deg);
}
.page-products .hero-device-matrix {
  position: absolute;
  right: -12px;
  bottom: -16px;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.2));
  opacity: 0.9;
}

/* ===== 区块通用头部 ===== */
.page-products .section-head {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gap) 24px;
}
.page-products .section-index {
  margin: 0 0 8px;
  color: var(--c-neon);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.page-products .section-head h2 {
  margin: 0 0 12px;
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
}
.page-products .section-intro {
  margin: 0;
  max-width: 44em;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(224, 224, 224, 0.76);
}

/* ===== 平台能力 ===== */
.page-products .capabilities-section {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(30, 10, 60, 0.36), rgba(11, 27, 61, 0.2));
  border-block: 1px solid rgba(106, 13, 173, 0.28);
}
.page-products .capabilities-grid {
  display: grid;
  gap: 18px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gap);
}
.page-products .capability-card {
  position: relative;
  padding: 26px 22px 26px 26px;
  background: var(--p-panel);
  border: 1px solid rgba(106, 13, 173, 0.28);
  border-left: 3px solid var(--c-purple);
  transition: border-color 0.25s var(--ease), translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.page-products .capability-card:hover {
  border-color: var(--p-line-strong);
  border-left-color: var(--c-neon);
  translate: 3px -3px;
  box-shadow: 8px 10px 0 rgba(57, 255, 20, 0.06);
}
.page-products .capability-num {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(57, 255, 20, 0.28);
  font-family: var(--f-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}
.page-products .capability-card h3 {
  margin: 0 0 12px;
  padding-right: 34px;
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.page-products .capability-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(224, 224, 224, 0.84);
}

/* ===== 下载中心 ===== */
.page-products .download-section {
  padding: 76px 0;
  position: relative;
}
.page-products .download-section::before {
  content: "";
  position: absolute;
  top: 12%;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.page-products .download-layout {
  display: grid;
  gap: 36px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gap);
  position: relative;
  z-index: 1;
}
.page-products .download-media img,
.page-products .compat-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.page-products .download-step-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--c-neon);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(224, 224, 224, 0.7);
}
.page-products .download-tabs-shell {
  min-width: 0;
}
.page-products .download-panels {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(30, 10, 60, 0.9), rgba(11, 27, 61, 0.85));
  border: 1px solid var(--p-border-purple);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}
.page-products .download-panel {
  display: none;
  order: 2;
  padding: 30px 24px 32px;
  scroll-margin-top: 130px;
}
.page-products .download-panel:first-of-type {
  display: block;
}
.page-products #panel-monthly:target {
  display: block;
}
.page-products #panel-monthly:target ~ .download-panel:not(:target) {
  display: none;
}
.page-products .download-version-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--c-purple);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-products .download-version-name {
  margin-bottom: 10px;
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
}
.page-products .download-version-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
}
.page-products .download-changelog {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.page-products .download-changelog li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-bottom: 1px dashed rgba(106, 13, 173, 0.3);
  font-size: 14px;
  line-height: 1.6;
}
.page-products .download-changelog li:last-child {
  border-bottom: none;
}
.page-products .download-changelog li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--c-neon);
  transform: rotate(45deg);
}
.page-products .download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.page-products .download-actions .btn-soft {
  text-decoration: none;
}
.page-products .download-link {
  color: var(--c-blue);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 191, 255, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-products .download-link:hover,
.page-products .download-link:focus-visible {
  color: var(--c-neon);
  border-color: var(--c-neon);
  outline: none;
}
.page-products .download-tabs {
  display: flex;
  gap: 8px;
  order: 1;
  padding: 14px 14px 0;
  background: rgba(11, 27, 61, 0.7);
  border-bottom: 1px solid var(--p-border-purple);
}
.page-products .download-tab {
  display: inline-block;
  padding: 10px 18px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--c-gray);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-products .download-tab:hover,
.page-products .download-tab:focus-visible {
  color: var(--c-white);
  border-color: rgba(57, 255, 20, 0.25);
  outline: none;
}
.page-products .download-tab-stable {
  background: var(--c-darkp);
  border-color: var(--p-border-purple);
  color: var(--c-white);
}
.page-products #panel-monthly:target ~ .download-tabs .download-tab-stable {
  background: transparent;
  border-color: transparent;
  color: var(--c-gray);
}
.page-products #panel-monthly:target ~ .download-tabs .download-tab-monthly {
  background: var(--c-darkp);
  border-color: var(--p-border-purple);
  color: var(--c-white);
}

/* ===== 适配清单 ===== */
.page-products .compat-section {
  padding: 76px 0;
  background: linear-gradient(180deg, rgba(11, 27, 61, 0.1), rgba(30, 10, 60, 0.42));
  border-block: 1px solid rgba(106, 13, 173, 0.28);
}
.page-products .compat-layout {
  display: grid;
  gap: 36px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gap);
}
.page-products .compat-list {
  display: grid;
  gap: 14px;
}
.page-products .compat-category {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 18px;
  background: var(--p-panel);
  border: 1px solid rgba(0, 191, 255, 0.14);
  border-left: 3px solid var(--c-blue);
}
.page-products .compat-category-flag {
  border-left-color: var(--c-neon);
}
.page-products .compat-category h3 {
  margin: 0;
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
}
.page-products .compat-category p {
  margin: 0;
  font-size: 13px;
  color: rgba(224, 224, 224, 0.72);
  text-align: right;
  line-height: 1.6;
}
.page-products .compat-total {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--p-line);
  background: rgba(57, 255, 20, 0.05);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-white);
}
.page-products .compat-media img {
  border: 1px solid var(--p-border-purple);
}

/* ===== 移动端优势 ===== */
.page-products .mobile-section {
  padding: 76px 0;
}
.page-products .mobile-layout {
  display: grid;
  gap: 40px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gap);
}
.page-products .mobile-media img {
  display: block;
  width: 100%;
  max-width: 300px;
  max-height: 480px;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--p-border-purple);
  transform: rotate(1.5deg);
}
.page-products .mobile-points {
  display: grid;
  gap: 18px;
}
.page-products .mobile-point {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 14px;
  padding: 18px;
  background: var(--p-panel);
  border: 1px solid rgba(0, 191, 255, 0.14);
  transition: border-color 0.25s var(--ease), translate 0.25s var(--ease);
}
.page-products .mobile-point:hover {
  border-color: var(--p-line-strong);
  translate: 2px -2px;
}
.page-products .mobile-point-num {
  grid-row: 1 / span 2;
  color: var(--c-neon);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
}
.page-products .mobile-point h3 {
  margin: 0;
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
}
.page-products .mobile-point p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(224, 224, 224, 0.8);
}

/* ===== 会员中心 ===== */
.page-products .member-section {
  padding: 76px 0;
  background: linear-gradient(180deg, rgba(30, 10, 60, 0.4), rgba(11, 27, 61, 0.14));
  border-block: 1px solid rgba(106, 13, 173, 0.28);
}
.page-products .member-layout {
  display: grid;
  gap: 36px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gap);
}
.page-products .member-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--p-border-purple);
  box-shadow: 12px 14px 0 rgba(106, 13, 173, 0.12);
}
.page-products .member-content {
  min-width: 0;
}
.page-products .member-feature-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.page-products .member-feature-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(106, 13, 173, 0.3);
}
.page-products .member-feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-neon);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}
.page-products .member-help {
  padding: 20px;
  border: 1px solid var(--p-line);
  background: rgba(57, 255, 20, 0.04);
}
.page-products .member-help p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
}
.page-products .member-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.page-products .member-help-links .btn {
  text-decoration: none;
}
.page-products .member-help-links .download-link {
  font-size: 14px;
}

/* ===== 桌面端布局 ===== */
@media (min-width: 900px) {
  .page-products .hero-products {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 96px;
  }
  .page-products .hero-products-copy {
    clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%);
    padding: 52px 48px 56px calc(var(--gap) + 22px);
    margin-left: 0;
  }
  .page-products .hero-products-title {
    font-size: 48px;
  }
  .page-products .hero-products-media img {
    max-height: 520px;
  }
  .page-products .hero-device-matrix {
    width: 130px;
    height: 130px;
    right: -22px;
    bottom: -26px;
  }

  .page-products .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-products .download-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 44px;
  }
  .page-products .download-media {
    position: sticky;
    top: 120px;
  }

  .page-products .compat-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }
  .page-products .compat-category {
    padding: 20px 24px;
  }
  .page-products .compat-category h3 {
    font-size: 18px;
  }
  .page-products .compat-category p {
    font-size: 14px;
  }

  .page-products .mobile-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: center;
  }
  .page-products .mobile-media img {
    max-width: 340px;
    margin-inline: auto;
  }
  .page-products .mobile-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-products .member-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 52px;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .page-products .hero-products-copy {
    padding-left: 0;
  }
  .page-products .hero-products-actions .btn {
    transform-origin: left center;
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  }
  .page-products .hero-products-actions .btn:hover {
    transform: translateY(-2px) skewX(-2deg);
    filter: brightness(1.05);
  }
  .page-products .download-panel {
    padding: 40px 38px 36px;
  }
  .page-products .download-tab {
    padding: 12px 26px 14px;
    font-size: 15px;
  }
  .page-products .compat-section,
  .page-products .member-section {
    padding: 96px 0;
  }
  .page-products .mobile-section,
  .page-products .download-section {
    padding: 96px 0;
  }
}
