/* ===== 页面专属 CSS：products（APP下载） ===== */

.page-products {
  --px-blue-glow: rgba(15, 111, 255, 0.22);
  --px-gold-glow: rgba(201, 162, 39, 0.3);
  --px-card-radius: 14px;
  --px-cut-size: 14px;
  background: var(--bg);
  color: var(--text);
}

.page-products .page-shell {
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* 面包屑 */
.page-products .breadcrumb {
  padding: 32px 0 0;
}
.page-products .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-products .breadcrumb-list li {
  display: flex;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--text-dim);
}
.page-products .breadcrumb-list li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-dim);
  font-size: 1.1em;
}
.page-products .breadcrumb-list a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-products .breadcrumb-list a:hover {
  color: var(--blue);
}

/* ===== 下载中心 Hero ===== */
.page-products .download-hero {
  position: relative;
  padding-block: 56px 40px;
  overflow: hidden;
}
.page-products .download-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 111, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 111, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 72% 42%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 72% 42%, #000, transparent 72%);
  pointer-events: none;
}
.page-products .download-hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--border);
  transform: rotate(18deg);
  border-radius: 32px;
  pointer-events: none;
}
.page-products .hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
.page-products .hero-copy .eyebrow {
  margin-bottom: 14px;
}
.page-products .hero-copy h1 {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-products .hero-copy .lead {
  margin: 20px 0 0;
  max-width: 620px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}
.page-products .hero-download-btn {
  margin-top: 32px;
  clip-path: polygon(0 0, calc(100% - var(--px-cut-size)) 0, 100% var(--px-cut-size), 100% 100%, 0 100%);
}
.page-products .hero-icon {
  display: flex;
  justify-content: center;
  position: relative;
}
.page-products .hero-icon::before {
  content: '';
  position: absolute;
  inset: 26px;
  border-radius: 32px;
  background: var(--px-blue-glow);
  filter: blur(28px);
  z-index: 0;
}
.page-products .hero-icon img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

/* ===== 下载中心面板 ===== */
.page-products .download-panel {
  padding-block: 40px 64px;
}
.page-products .panel-grid {
  display: grid;
  gap: 44px;
  align-items: stretch;
}

.page-products .panel-features .eyebrow {
  margin-bottom: 12px;
}
.page-products .panel-features h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 0 0 12px;
}
.page-products .panel-features .section-intro {
  color: var(--text-dim);
  font-family: var(--font-body);
  line-height: 1.7;
  margin: 0 0 28px;
}

.page-products .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.page-products .feature-list li {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--px-card-radius);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.page-products .feature-list li:hover {
  border-color: var(--blue);
  transform: translateX(4px);
}
.page-products .feature-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--px-blue-glow);
}
.page-products .feature-list li:nth-child(2) .feature-icon {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.35);
}
.page-products .feature-list li:nth-child(3) .feature-icon {
  background: var(--gold);
  box-shadow: 0 0 12px var(--px-gold-glow);
}
.page-products .feature-list h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2px 0 6px;
}
.page-products .feature-list p {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.page-products .phone-visual {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.page-products .phone-visual img {
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.page-products .privacy-note {
  margin: 20px 0 0;
  color: var(--text-dim);
}
.page-products .inline-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.page-products .inline-link:hover {
  text-decoration: underline;
}

/* ===== 下载卡片（右侧） ===== */
.page-products .panel-download {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  align-self: start;
}
.page-products .panel-download::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 52px;
  height: 52px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-radius: 0 20px 0 0;
}
.page-products .panel-download::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  transform-origin: top right;
}

.page-products .download-tabs {
  margin-top: 8px;
}
.page-products .download-tabs .tab-list {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.page-products .download-tabs .tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-products .download-tabs .tab-btn[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}

.page-products .version-fact {
  text-align: center;
  padding: 8px 0 0;
}
.page-products .version-fact .tag {
  margin-bottom: 10px;
}
.page-products .version-num {
  font-family: var(--font-headline);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
  color: var(--text);
}
.page-products .version-fact .small {
  color: var(--text-dim);
  margin: 0;
}

.page-products .qr-display {
  width: 190px;
  height: 190px;
  margin: 24px auto 18px;
  padding: 10px;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 10px 34px var(--px-gold-glow);
}
.page-products .qr-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-products .qr-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.5;
  margin: 0 0 20px;
}

.page-products .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ===== 版本历史 ===== */
.page-products .version-history {
  padding-block: 64px 56px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 80%);
  position: relative;
}
.page-products .version-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-products .version-history .section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 12px 0;
}
.page-products .version-history .section-intro {
  color: var(--text-dim);
  font-family: var(--font-body);
  line-height: 1.7;
  margin: 0;
}

.page-products .version-illustration img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.page-products .version-list {
  display: grid;
  gap: 12px;
}

.page-products .version-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.page-products .version-item[open] {
  border-left-color: var(--gold);
  background: rgba(201, 162, 39, 0.05);
}
.page-products .version-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.page-products .version-item summary::-webkit-details-marker {
  display: none;
}
.page-products .version-badge {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  background: rgba(15, 111, 255, 0.12);
  color: var(--blue);
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.page-products .version-item[open] .version-badge {
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold);
}
.page-products .version-note {
  flex: 1;
  color: var(--text-dim);
  font-size: var(--fs-small);
}
.page-products .version-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}
.page-products .version-arrow::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.page-products .version-item[open] .version-arrow::before {
  transform: rotate(-135deg);
  top: 7px;
}
.page-products .version-detail {
  padding: 0 18px 16px 20px;
}
.page-products .version-detail ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.page-products .version-detail li + li {
  margin-top: 6px;
}

.page-products .version-footnote {
  color: var(--text-dim);
  margin: 0;
}

/* ===== 安装指引 ===== */
.page-products .install-guide {
  padding-block: 64px 56px;
}
.page-products .install-guide .section-head {
  text-align: left;
}
.page-products .install-guide .section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 12px 0;
}
.page-products .install-guide .section-intro {
  color: var(--text-dim);
  font-family: var(--font-body);
  line-height: 1.7;
  margin: 0;
}

.page-products .install-steps {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.page-products .install-step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 26px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.page-products .install-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
  border-color: var(--blue);
}
.page-products .install-step::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38px;
  height: 38px;
  background: var(--orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 16px 0;
  opacity: 0.85;
}
.page-products .install-step:nth-child(2)::after {
  background: var(--blue);
}
.page-products .install-step:nth-child(3)::after {
  background: var(--gold);
}

.page-products .step-num {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.page-products .install-step:nth-child(2) .step-num {
  -webkit-text-stroke-color: var(--orange);
}
.page-products .install-step:nth-child(3) .step-num {
  -webkit-text-stroke-color: var(--gold);
}
.page-products .install-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.page-products .install-step p {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin: 0;
}

.page-products .install-visual {
  margin-top: 36px;
}
.page-products .install-visual img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

/* ===== 安卓账户设置 ===== */
.page-products .account-setup {
  padding-block: 64px 56px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-panel) 100%);
  position: relative;
}
.page-products .setup-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.page-products .setup-copy .eyebrow {
  margin-bottom: 12px;
}
.page-products .setup-copy h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 0 0 12px;
}
.page-products .setup-copy .section-intro {
  color: var(--text-dim);
  font-family: var(--font-body);
  line-height: 1.7;
  margin: 0 0 28px;
}

.page-products .setup-steps {
  counter-reset: setup-counter;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 16px;
}
.page-products .setup-steps li {
  counter-increment: setup-counter;
  position: relative;
  padding-left: 44px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.page-products .setup-steps li::before {
  content: counter(setup-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  background: rgba(15, 111, 255, 0.08);
}
.page-products .setup-steps li:nth-child(2)::before {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 0, 0.08);
}
.page-products .setup-steps li:nth-child(3)::before {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.page-products .setup-steps li:nth-child(4)::before {
  border-color: var(--success);
  color: var(--success);
  background: rgba(61, 187, 117, 0.08);
}

.page-products .setup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.page-products .text-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-small);
}
.page-products .text-link:hover {
  text-decoration: underline;
}

.page-products .setup-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 24px 24px;
  text-align: center;
  position: relative;
}
.page-products .setup-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-radius: 20px 0 0 0;
}
.page-products .setup-card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.page-products .setup-card .small {
  color: var(--text-dim);
  margin: 18px 0 0;
  line-height: 1.6;
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-products .hero-icon img {
    max-width: 250px;
  }
  .page-products .qr-display {
    width: 210px;
    height: 210px;
  }
  .page-products .setup-card img {
    max-width: 240px;
  }
}

@media (min-width: 768px) {
  .page-products .page-shell {
    padding-inline: 32px;
  }

  .page-products .install-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .phone-visual {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .page-products .hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 64px;
  }
  .page-products .hero-icon img {
    max-width: 280px;
  }

  .page-products .panel-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .page-products .panel-download {
    padding: 36px 30px;
  }

  .page-products .version-layout {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-areas:
      "head list"
      "image list"
      "footnote list";
    gap: 28px 48px;
  }
  .page-products .version-history .section-head {
    grid-area: head;
  }
  .page-products .version-illustration {
    grid-area: image;
  }
  .page-products .version-list {
    grid-area: list;
    padding-top: 8px;
  }
  .page-products .version-footnote {
    grid-area: footnote;
  }

  .page-products .setup-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}
