/* ===== 板块与下载（/offerings/）页面专属样式 ===== */

.page-products {
  --face: var(--cobalt);
  --p-shadow: 8px 8px 0 0 rgba(0, 0, 0, .55);
  --p-shadow-sm: 4px 4px 0 0 rgba(0, 0, 0, .55);
  --p-gap: clamp(18px, 3.6vw, 34px);
  position: relative;
  display: block;
  overflow-x: clip;
  color: var(--fog);
  font-family: var(--font-body);
}

.page-products [data-face="magenta"] { --face: var(--magenta); }
.page-products [data-face="cobalt"]  { --face: var(--cobalt); }
.page-products [data-face="lime"]    { --face: var(--lime); }
.page-products [data-face="amber"]   { --face: var(--amber); }
.page-products [data-face="cyan"]    { --face: var(--cyan); }
.page-products [data-face="wine"]    { --face: var(--wine); }

.page-products [id] { scroll-margin-top: 104px; }

.page-products .section {
  position: relative;
  padding-block: clamp(40px, 7vw, 84px);
}

.page-products .section-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(25px, 4.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -.012em;
  color: var(--fog);
}

.page-products .section-lede {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-products .media-frame {
  margin: 0;
  border: 2px solid var(--edge);
  background:
    linear-gradient(135deg, rgba(43, 91, 255, .22), rgba(255, 46, 136, .16) 55%, rgba(22, 217, 227, .18));
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
}

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

/* ---------- 首屏 ---------- */
.page-products .hero {
  overflow: hidden;
  padding-block: clamp(26px, 5vw, 52px) clamp(40px, 8vw, 88px);
}

.page-products .hero__cut {
  position: absolute;
  top: -18%;
  right: -14%;
  width: min(78vw, 640px);
  aspect-ratio: 1 / 1;
  background: linear-gradient(138deg, var(--cobalt), var(--magenta) 58%, var(--amber));
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 58% 100%);
  opacity: .32;
  pointer-events: none;
}

.page-products .hero__cube {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: clamp(72px, 13vw, 150px);
  aspect-ratio: 1 / 1;
  border: 2px solid var(--cyan);
  transform: rotate(-14deg);
  opacity: .5;
  pointer-events: none;
  box-shadow: inset 0 0 0 12px rgba(22, 217, 227, .08);
}

.page-products .hero__cube::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(255, 176, 32, .6);
  transform: rotate(22deg);
}

.page-products .hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .display-title {
  margin: 14px 0 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 7.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -.02em;
  transform: rotate(-1.6deg);
  transform-origin: left center;
}

.page-products .display-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--magenta);
  text-stroke: 2px var(--magenta);
}

.page-products .hero__lede {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fog);
}

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

.page-products .hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--graphite);
}

.page-products .hero__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding-left: 12px;
  border-left: 3px solid var(--cobalt);
}

.page-products .hero__facts .mono {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fog);
  letter-spacing: -.02em;
}

/* ---------- 六板块矩阵 ---------- */
.page-products .faces__head {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-bottom: clamp(22px, 4vw, 36px);
}

.page-products .faces__art {
  max-width: 240px;
  width: 100%;
}

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

.page-products .face-card {
  position: relative;
  padding: 20px 18px 18px;
  border: 2px solid var(--edge);
  border-left: 4px solid var(--face);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 62%),
    var(--panel);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.page-products .face-card:hover,
.page-products .face-card:focus-within {
  transform: translate(-2px, -2px);
  border-color: var(--face);
  box-shadow: var(--p-shadow-sm);
}

.page-products .face-card__idx {
  display: inline-block;
  padding: 3px 8px;
  background: var(--face);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.page-products .face-card__title {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--fog);
}

.page-products .face-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-products .face-card__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--face);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.page-products .face-card__link:hover {
  color: var(--fog);
}

/* ---------- 下载 ---------- */
.page-products .download__grid {
  display: grid;
  gap: var(--p-gap);
}

.page-products .download__body > p {
  margin: 18px 0 0;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.8;
}

.page-products .steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  min-height: 32px;
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fog);
}

.page-products .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-deep);
  background: var(--face);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, .5);
}

.page-products .note-line {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--lime);
  background: rgba(79, 240, 138, .07);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-products .note-line .mono {
  font-family: var(--font-mono);
  color: var(--lime);
}

.page-products .download__shot {
  max-width: 380px;
  width: 100%;
}

/* ---------- 板块面板 ---------- */
.page-products .console__head {
  margin-bottom: clamp(18px, 3vw, 26px);
}

.page-products .hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-products .hub-tab {
  padding: 9px 15px;
  border: 2px solid var(--edge);
  border-bottom: 4px solid var(--face);
  background: rgba(255, 255, 255, .03);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.page-products .hub-tab:hover,
.page-products .hub-tab:focus-visible {
  border-color: var(--face);
  background: rgba(255, 255, 255, .07);
}

.page-products .hub-panel {
  display: none;
  padding: clamp(20px, 4vw, 34px);
  border: 2px solid var(--edge);
  border-top: 5px solid var(--face);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 46%),
    var(--panel-2);
  box-shadow: var(--p-shadow);
}

.page-products .hub-panel:first-child,
.page-products .hub-panel:target { display: block; }

.page-products .hub-panels:has(.hub-panel:target) .hub-panel:first-child:not(:target) {
  display: none;
}

.page-products .panel-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--fog);
}

.page-products .hub-panel__grid {
  display: grid;
  gap: 22px;
}

.page-products .hub-panel__text > p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--fog);
}

.page-products .hub-panel__text > p:last-child { margin-bottom: 0; }

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

.page-products .bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-products .bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 3px;
  background: var(--face);
}

.page-products .bullets strong {
  color: var(--fog);
  font-weight: 700;
}

.page-products .bullets .mono {
  font-family: var(--font-mono);
  color: var(--face);
}

.page-products .hub-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-products .hub-panel .media-frame { align-self: start; }

/* ---------- 参考表 ---------- */
.page-products .specs__head {
  margin-bottom: clamp(18px, 3vw, 26px);
}

.page-products .spec-wrap {
  border: 2px solid var(--edge);
  background: var(--panel);
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
}

.page-products .spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-products .spec-table th {
  text-align: left;
  padding: 13px 14px;
  background: rgba(43, 91, 255, .18);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}

.page-products .spec-table td {
  padding: 13px 14px;
  border-top: 1px solid var(--edge-soft);
  color: var(--graphite);
  vertical-align: middle;
}

.page-products .spec-table td .mono,
.page-products .spec-table td.mono {
  font-family: var(--font-mono);
  color: var(--fog);
  letter-spacing: -.01em;
}

.page-products .tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.page-products .tag--must {
  background: var(--magenta);
  color: var(--ink-deep);
}

.page-products .tag--advice {
  background: var(--amber);
  color: var(--ink-deep);
}

.page-products .tag--ref {
  border: 1px solid var(--edge-strong);
  color: var(--graphite);
}

.page-products .specs__art {
  margin-top: clamp(20px, 3.4vw, 32px);
}

/* ---------- 常见问题 ---------- */
.page-products .trouble__head {
  margin-bottom: clamp(18px, 3vw, 26px);
}

.page-products .faq {
  display: grid;
  gap: 10px;
}

.page-products .faq details {
  border: 2px solid var(--edge);
  background: var(--panel);
  transition: border-color .22s var(--ease);
}

.page-products .faq details[open] {
  border-color: var(--face);
}

.page-products .faq summary {
  position: relative;
  padding: 16px 18px 16px 48px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--fog);
  cursor: pointer;
  list-style: none;
}

.page-products .faq summary::-webkit-details-marker { display: none; }

.page-products .faq summary::before {
  content: "+";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 21px;
  line-height: 1;
  color: var(--face);
}

.page-products .faq details[open] summary::before { content: "−"; }

.page-products .faq__body {
  padding: 0 18px 18px 48px;
  border-top: 1px solid var(--edge-soft);
  margin-top: 2px;
  padding-top: 14px;
}

.page-products .faq__steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-products .faq__steps li::marker {
  font-family: var(--font-mono);
  color: var(--face);
}

.page-products .trouble__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-products .trouble__foot a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
}

.page-products .trouble__foot a:hover {
  color: var(--amber);
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-products .faces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .hero__lede { font-size: 17px; }
}

@media (min-width: 860px) {
  .page-products .faces__head {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

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

  .page-products .download__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: start;
  }

  .page-products .download__shot {
    max-width: none;
    justify-self: end;
  }

  .page-products .hub-panel__grid--media-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: start;
  }

  .page-products .hub-panel__grid--media-left {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .hero__inner { max-width: 100%; }
}

@media (max-width: 699px) {
  .page-products .spec-table thead { display: none; }

  .page-products .spec-table,
  .page-products .spec-table tbody,
  .page-products .spec-table tr,
  .page-products .spec-table td {
    display: block;
    width: 100%;
  }

  .page-products .spec-table tr {
    padding: 13px 14px;
    border-top: 1px solid var(--edge-soft);
  }

  .page-products .spec-table tr:first-child { border-top: 0; }

  .page-products .spec-table td {
    padding: 3px 0;
    border: 0;
  }

  .page-products .spec-table td:first-child {
    font-weight: 700;
    color: var(--fog);
  }

  .page-products .spec-table td:last-child {
    margin-top: 6px;
  }

  .page-products .hero__cube { opacity: .3; }
  .page-products .display-title { transform: rotate(-1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .face-card,
  .page-products .hub-tab,
  .page-products .faq details {
    transition: none;
  }
}
