.page-products {
  --product-pad: clamp(1.25rem, 4vw, 3.5rem);
  --product-panel-pad: clamp(1.15rem, 3vw, 2.1rem);
  --product-gap: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--text-main);
  background:
    radial-gradient(circle at 88% 4%, rgba(0, 194, 255, 0.16), transparent 32%),
    radial-gradient(circle at 6% 20%, rgba(212, 255, 0, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(11, 15, 26, 0) 0%, rgba(11, 15, 26, 0.5) 100%);
  overflow-x: clip;
}

.page-products .container-main {
  padding-bottom: calc(var(--product-pad) * 1.5);
}

/* ---------- 面包屑 ---------- */
.page-products .product-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem var(--product-pad) 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.page-products .product-crumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.page-products .product-crumb a:hover {
  color: var(--blue);
}

.page-products .crumb-sep {
  opacity: 0.55;
  font-family: var(--font-data);
}

/* ---------- 首屏 ---------- */
.page-products .product-intro {
  position: relative;
  padding: calc(var(--product-pad) * 1.25) var(--product-pad) 0;
  z-index: 0;
}

.page-products .product-intro::before {
  content: "APPS";
  position: absolute;
  top: -0.2em;
  right: var(--product-pad);
  z-index: -1;
  font-family: var(--font-data);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 13rem);
  letter-spacing: -0.08em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 194, 255, 0.22);
  pointer-events: none;
}

.page-products .product-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-products .product-intro h1 {
  margin: 0 0 1.25rem;
  max-width: 17ch;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-products .product-lead {
  max-width: 58ch;
  margin: 0 0 1.75rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.page-products .intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-products .meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--text-border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 0.875rem;
}

.page-products .meta-chip b {
  font-family: var(--font-data);
  color: var(--lime);
  font-weight: 600;
}

/* ---------- 通用章节 ---------- */
.page-products .section-block {
  position: relative;
  padding: calc(var(--product-pad) * 1.6) var(--product-pad);
}

.page-products .section-head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.page-products .section-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-products .section-num {
  font-family: var(--font-data);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.page-products .section-desc {
  max-width: 54ch;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- 可展开通用增强 ---------- */
.page-products summary.expand-trigger {
  list-style: none;
}

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

.page-products summary.expand-trigger::-moz-list-bullet {
  list-style: none;
}

.page-products details:not([open]) .expand-content {
  display: none;
}

.page-products details[open] .expand-content {
  display: block;
}

.page-products .expand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--text-border);
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--blue);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.page-products .expand-mark::after {
  content: "+";
}

.page-products details[open] .expand-mark::after {
  content: "–";
}

/* ---------- 下载与安装 ---------- */
.page-products .download-layout {
  display: grid;
  gap: var(--product-gap);
  align-items: start;
}

.page-products .version-rail {
  background: var(--bg-panel);
  border: 1px solid var(--text-border);
  border-radius: var(--radius-lg);
  padding: var(--product-panel-pad);
  box-shadow: var(--shadow-panel);
}

.page-products .rail-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-data);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.page-products .version-box {
  border-bottom: 1px solid var(--text-border);
}

.page-products .version-box:last-child {
  border-bottom: 0;
}

.page-products .version-box .expand-trigger {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1.05rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
}

.page-products .version-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 1rem;
  color: var(--bg-deep);
}

.page-products .version-icon.blue {
  background: var(--blue);
}

.page-products .version-icon.lime {
  background: var(--lime);
}

.page-products .version-icon.orange {
  background: var(--orange);
}

.page-products .version-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.page-products .version-main strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.page-products .version-main small {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.page-products .version-box .expand-content {
  padding: 0 1rem 1.2rem 3.6rem;
  color: var(--text-dim);
  font-size: 0.925rem;
  line-height: 1.65;
}

/* 手机框架 */
.page-products .phone-figure {
  position: relative;
  width: min(72%, 280px);
  margin: 0 auto;
}

.page-products .phone-figure::after {
  content: "";
  position: absolute;
  inset: auto 0 -14px 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 194, 255, 0.28), transparent);
  filter: blur(26px);
  z-index: -1;
}

.page-products .phone-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--text-border);
  box-shadow: var(--shadow-panel);
}

/* 下载面板 */
.page-products .download-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-card-grad);
  border: 1px solid var(--text-border);
  border-radius: var(--radius-lg);
  padding: var(--product-panel-pad);
  box-shadow: var(--shadow-panel);
}

.page-products .download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(0, 194, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.page-products .download-panel > * {
  position: relative;
  z-index: 1;
}

.page-products .qr-visual {
  width: 132px;
  height: 132px;
  margin-bottom: 0.7rem;
  padding: 6px;
  border-radius: 14px;
  background: #F5F8FF;
  box-shadow: 0 0 0 1px rgba(245, 248, 255, 0.2), 0 0 34px rgba(0, 194, 255, 0.32);
}

.page-products .qr-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-products .qr-note {
  margin: 0 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.page-products .panel-heading {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.page-products .panel-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-products .panel-text strong {
  color: var(--text-main);
}

.page-products .download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.page-products .panel-meta-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--text-border);
}

.page-products .panel-meta-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.page-products .panel-meta-list b {
  font-family: var(--font-data);
  font-weight: 600;
  color: var(--lime);
}

/* 按钮脉冲 */
@keyframes product-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 255, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(212, 255, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 255, 0, 0);
  }
}

.page-products .download-actions .btn-primary {
  animation: product-pulse 2.8s ease-out infinite;
}

.page-products .btn-ghost {
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.page-products .btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 194, 255, 0.08);
}

/* ---------- V4全新亮点 ---------- */
.page-products .features-layout {
  display: grid;
  gap: var(--product-gap);
  align-items: center;
}

.page-products .features-copy {
  min-width: 0;
}

.page-products .feature-lead {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-panel);
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-products .feature-box {
  margin-bottom: 0.85rem;
  background: var(--bg-card-grad);
  border: 1px solid var(--text-border);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: border-color var(--transition);
}

.page-products .feature-box:hover {
  border-color: rgba(0, 194, 255, 0.35);
}

.page-products .feature-box .expand-trigger {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
}

.page-products .feature-index {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
}

.page-products .feature-title {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.page-products .feature-box .expand-content {
  padding: 0 1.2rem 1.1rem 3.1rem;
  color: var(--text-dim);
  font-size: 0.925rem;
  line-height: 1.65;
}

.page-products .update-mechanism {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(0, 194, 255, 0.08);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.page-products .update-mechanism p {
  margin: 0;
}

.page-products .update-mechanism strong {
  color: var(--text-main);
}

.page-products .mechanism-dot {
  flex: none;
  color: var(--blue);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: mechanism-blink 2s ease-in-out infinite;
}

@keyframes mechanism-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.page-products .features-figure {
  margin: 0;
}

.page-products .features-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--text-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.page-products .features-figure figcaption {
  margin-top: 0.55rem;
  text-align: right;
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* 六项功能图标行 */
.page-products .features-icons-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--text-border);
}

.page-products .features-icons-row img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--text-border);
}

.page-products .features-icons-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}

.page-products .features-icons-copy p {
  margin: 0 0 1rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.page-products .features-icons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .features-icons-list li {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--text-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(11, 15, 26, 0.5);
}

/* ---------- 更新公告 ---------- */
.page-products .product-updates {
  margin-top: 0.5rem;
  background:
    linear-gradient(135deg, rgba(0, 194, 255, 0.1) 0%, transparent 55%),
    rgba(20, 28, 40, 0.78);
  border-radius: var(--radius-lg);
}

.page-products .product-updates::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--product-pad);
  right: var(--product-pad);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--lime), var(--orange));
}

.page-products .updates-wrap {
  position: relative;
  isolation: isolate;
}

.page-products .updates-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.page-products .updates-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-products .updates-list {
  display: grid;
  gap: 0.6rem;
}

.page-products .update-item {
  background: rgba(11, 15, 26, 0.8);
  border: 1px solid var(--text-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  transition: border-color var(--transition);
}

.page-products .update-item:hover {
  border-color: rgba(0, 194, 255, 0.35);
}

.page-products .update-item .expand-trigger {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
}

.page-products .update-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 75, 43, 0.8);
}

.page-products .update-title {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
}

.page-products .update-tag {
  padding: 0.12rem 0.6rem;
  border: 1px solid var(--text-border);
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--blue);
}

.page-products .update-item .expand-content {
  padding: 0 1.1rem 1rem 2.7rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- 使用指南 ---------- */
.page-products .guide-layout {
  display: grid;
  gap: var(--product-gap);
}

.page-products .guide-flow {
  background: var(--bg-panel);
  border: 1px solid var(--text-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-panel);
}

.page-products .guide-flow h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.page-products .guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-products .guide-steps li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.6rem;
  counter-increment: step;
  color: var(--text-main);
  font-size: 0.95rem;
}

.page-products .guide-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--lime);
}

.page-products .guide-figure {
  margin: 2rem 0 0;
}

.page-products .guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--text-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.page-products .guide-figure figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.page-products .guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.page-products .page-note {
  margin: 2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(0, 194, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}

.page-products .page-note a {
  color: var(--blue);
  text-decoration: none;
}

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

  .page-products .phone-figure {
    grid-column: 1 / -1;
    width: min(68%, 320px);
  }

  .page-products .features-icons-row {
    grid-template-columns: 300px 1fr;
  }

  .page-products .guide-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .page-products .download-layout {
    grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1.15fr);
  }

  .page-products .phone-figure {
    grid-column: auto;
    width: 100%;
    max-width: 280px;
  }

  .page-products .features-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .page-products .product-intro {
    padding-top: calc(var(--product-pad) * 1.6);
  }

  .page-products .product-intro h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }
}
