/* ===== 页面基底 ===== */
.page-products {
  position: relative;
  display: block;
  overflow: hidden;
}

/* ===== 首屏 ===== */
.products-hero {
  position: relative;
  padding: 2rem 0 3rem;
  background:
    radial-gradient(circle at 86% 16%, rgba(122, 59, 255, 0.22), transparent 40%),
    radial-gradient(circle at 8% 90%, rgba(228, 67, 138, 0.14), transparent 38%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-panel) 100%);
  border-bottom: 1px solid var(--border-line);
}

.products-hero__inner,
.products-service__grid,
.products-download__head,
.products-download__grid,
.products-sync__inner {
  width: min(var(--container-max), 100% - var(--space-pad) * 2);
  margin-inline: auto;
}

.products-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.products-hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0.6rem 0 0.9rem;
}

.products-hero__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
  max-width: 42em;
  margin: 0;
}

.products-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.products-hero__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .products-hero__grid {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }
}

/* ===== 服务章节通用 ===== */
.products-service {
  position: relative;
  padding: 3rem 0;
}

.products-service--desktop {
  background: var(--navy-deep);
}

.products-service--ky {
  background:
    radial-gradient(circle at 12% 30%, rgba(34, 211, 238, 0.1), transparent 42%),
    radial-gradient(circle at 85% 70%, rgba(122, 59, 255, 0.16), transparent 46%),
    var(--navy-deep);
  border-top: 1px solid rgba(42, 62, 117, 0.7);
  border-bottom: 1px solid rgba(42, 62, 117, 0.7);
}

.products-service--mobile {
  background: var(--navy-deep);
}

.products-service__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.products-service__media {
  position: relative;
  min-width: 0;
}

.products-service__media figure {
  margin: 0;
}

.products-service__media .media-frame,
.products-download__aside .media-frame {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--navy-panel);
  box-shadow: var(--shadow-card);
}

.products-service__media .media-frame img,
.products-download__aside .media-frame img,
.products-sync__media img {
  width: 100%;
  height: auto;
  display: block;
}

.products-service__media figcaption,
.products-download__aside figcaption {
  font-size: 0.78rem;
  color: var(--slate);
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--border-line);
  line-height: 1.5;
}

.products-service__no {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.products-service__no::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}

.products-service__body h2 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.95rem);
  line-height: 1.35;
  color: var(--paper);
  margin: 0 0 0.85rem;
}

.products-service__body h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--magenta);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.products-service__lead {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

.products-service__list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.products-service__list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.7;
}

.products-service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.products-service__action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.products-service__note {
  margin-top: 1.1rem;
  padding: 0.65rem 1rem;
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.07);
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .products-service__grid {
    grid-template-columns: 7fr 5fr;
    gap: 3.25rem;
  }

  .products-service__grid--reverse {
    grid-template-columns: 5fr 7fr;
  }

  .products-service__grid--reverse .products-service__media {
    order: 2;
  }

  .products-service__grid--reverse .products-service__body {
    order: 1;
  }
}

/* ===== KY 演示 ===== */
.ky-demo {
  position: relative;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-panel);
  background: linear-gradient(160deg, rgba(18, 27, 62, 0.92), rgba(11, 16, 38, 0.9));
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.ky-demo__radio {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ky-demo__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.ky-demo__label {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-cap);
  color: var(--slate);
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.ky-demo__label:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

#ky-all:checked ~ .ky-demo__labels label[for="ky-all"],
#ky-final:checked ~ .ky-demo__labels label[for="ky-final"],
#ky-key:checked ~ .ky-demo__labels label[for="ky-key"],
#ky-overtime:checked ~ .ky-demo__labels label[for="ky-overtime"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}

#ky-all:focus-visible ~ .ky-demo__labels label[for="ky-all"],
#ky-final:focus-visible ~ .ky-demo__labels label[for="ky-final"],
#ky-key:focus-visible ~ .ky-demo__labels label[for="ky-key"],
#ky-overtime:focus-visible ~ .ky-demo__labels label[for="ky-overtime"] {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.ky-demo__stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 7 / 5;
  background: var(--navy-panel);
  border: 1px solid var(--border-line);
}

.ky-demo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--t-mid);
}

.ky-demo__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 184, 46, 0);
  transition: background var(--t-mid);
  pointer-events: none;
}

#ky-final:checked ~ .ky-demo__stage::after {
  background: rgba(245, 184, 46, 0.16);
}

#ky-key:checked ~ .ky-demo__stage::after {
  background: rgba(34, 211, 238, 0.14);
}

#ky-overtime:checked ~ .ky-demo__stage::after {
  background: rgba(228, 67, 138, 0.16);
}

#ky-final:checked ~ .ky-demo__stage .ky-demo__img {
  filter: saturate(1.4) hue-rotate(-10deg) contrast(1.06);
}

#ky-key:checked ~ .ky-demo__stage .ky-demo__img {
  filter: grayscale(0.35) saturate(1.55) hue-rotate(160deg) contrast(1.05);
}

#ky-overtime:checked ~ .ky-demo__stage .ky-demo__img {
  filter: saturate(1.25) hue-rotate(285deg) contrast(1.1);
}

.ky-demo__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: none;
  padding: 0.3rem 0.68rem;
  border: 1px solid var(--gold);
  background: rgba(11, 16, 38, 0.85);
  border-radius: var(--radius-cap);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.ky-demo__badge--all {
  display: inline-block;
}

#ky-final:checked ~ .ky-demo__stage .ky-demo__badge--all,
#ky-key:checked ~ .ky-demo__stage .ky-demo__badge--all,
#ky-overtime:checked ~ .ky-demo__stage .ky-demo__badge--all {
  display: none;
}

#ky-final:checked ~ .ky-demo__stage .ky-demo__badge--final,
#ky-key:checked ~ .ky-demo__stage .ky-demo__badge--key,
#ky-overtime:checked ~ .ky-demo__stage .ky-demo__badge--overtime {
  display: inline-block;
}

/* ===== 移动端演示 ===== */
.mobile-demo {
  max-width: 420px;
  margin-inline: auto;
}

.mobile-demo__phone {
  position: relative;
  border-radius: 32px;
  border: 6px solid var(--border-line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--navy-panel);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}

.mobile-demo__phone:hover,
.mobile-demo__phone:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(5, 8, 25, 0.5);
}

.mobile-demo__phone img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-demo__hot {
  position: absolute;
  bottom: 2.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-cap);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.mobile-demo__hot--left {
  left: 1.4rem;
  background: var(--gold);
  color: var(--navy-deep);
}

.mobile-demo__hot--right {
  right: 1.4rem;
  background: rgba(11, 16, 38, 0.78);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
}

.mobile-demo__phone:hover .mobile-demo__hot--left,
.mobile-demo__phone:focus-within .mobile-demo__hot--left {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.mobile-demo__phone:hover .mobile-demo__hot--right,
.mobile-demo__phone:focus-within .mobile-demo__hot--right {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ===== 下载与批次 ===== */
.products-download {
  position: relative;
  padding: 3rem 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 184, 46, 0.1), transparent 38%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-panel) 55%, var(--navy-deep) 100%);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.products-download__head {
  margin-bottom: 1.75rem;
}

.products-download__head h2,
.products-sync__body h2 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--paper);
  margin: 0.5rem 0 0.75rem;
}

.products-download__head h2::after,
.products-sync__body h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.products-download__head > p:last-child {
  color: var(--slate);
  line-height: 1.7;
  margin: 0;
  max-width: 46em;
}

.products-download__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.products-download__list {
  display: grid;
  gap: 0.85rem;
}

.download-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(11, 16, 38, 0.6);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}

.download-item:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 184, 46, 0.55);
  box-shadow: var(--shadow-card);
}

.download-item--current {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.1), rgba(11, 16, 38, 0.82));
  border-color: rgba(245, 184, 46, 0.6);
}

.download-item__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.download-item__index {
  min-width: 2.9rem;
  text-align: center;
  padding: 0.55rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid var(--border-line);
  border-radius: 12px;
}

.download-item__content {
  min-width: 0;
}

.download-item__content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 0.25rem;
}

.download-item__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
}

.download-item__content p:last-child {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--slate);
  margin: 0;
}

.products-download__aside {
  display: grid;
  gap: 1rem;
}

.download-note {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  background: var(--navy-panel);
  overflow: hidden;
}

.download-note summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-soft);
  background: rgba(245, 184, 46, 0.05);
  border-bottom: 1px solid transparent;
}

.download-note[open] summary {
  border-bottom-color: var(--border-line);
}

.download-note summary::-webkit-details-marker {
  display: none;
}

.download-note summary::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1;
}

.download-note[open] summary::after {
  content: "−";
}

.download-note ul {
  margin: 0;
  padding: 1rem 1.2rem 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.download-note li {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--slate);
}

@media (min-width: 900px) {
  .products-download__grid {
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
  }
}

/* ===== 数据同步结尾 ===== */
.products-sync {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.products-sync::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 55%, rgba(91, 42, 157, 0.4), transparent 52%);
  pointer-events: none;
}

.products-sync__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.products-sync__media {
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-card);
}

.products-sync__body p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--slate);
  margin: 0 0 0.85rem;
}

.products-sync__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.35rem 0;
}

.products-sync__stat {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-line);
  border-radius: 12px;
  background: rgba(18, 27, 62, 0.65);
}

@media (min-width: 640px) {
  .products-sync__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .products-sync__inner {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }
}
