/* ===== 页面专属：APP下载 (products) ===== */
.page-products {
  --page-bg: var(--winter-white);
  --page-accent: var(--spring-green);
  --page-accent-dark: #6BB544;
  --page-card-border: var(--clay);
  --page-hero-gradient: linear-gradient(135deg, var(--spring-green) 0%, #B5E48C 60%, var(--winter-white) 100%);
  --page-section-gap: 5rem;
  display: block;
  background: var(--page-bg);
  font-family: var(--font-body);
  color: var(--slate);
}

/* 容器继承共享定义，此处仅作引用 */
.page-products .container {
  max-width: var(--content-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ===== 面包屑 ===== */
.page-products .breadcrumb {
  position: relative;
  z-index: 2;
  padding: 1rem 1.25rem 0;
  font-size: var(--font-size-small, 0.875rem);
  color: var(--rock-gray);
  max-width: var(--content-max-width, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.page-products .breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.page-products .breadcrumb a:hover {
  border-color: var(--china-red);
}
.page-products .breadcrumb-sep {
  color: var(--rock-gray);
  margin: 0 0.1rem;
}
.page-products .breadcrumb [aria-current="page"] {
  color: var(--china-red);
  font-weight: 600;
}

/* ===== 首屏 Hero (非对称布局) ===== */
.page-products .products-hero {
  position: relative;
  background: var(--page-hero-gradient);
  overflow: hidden;
  padding: 0 0 3rem;
}
.page-products .hero-bg-shape {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60%;
  height: 140%;
  background: rgba(255,255,255,0.18);
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 0;
}
.page-products .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
}
.page-products .hero-mockup {
  flex: 0 0 auto;
  width: 180px;
}
.page-products .hero-app-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 16px 4px 16px 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  object-fit: cover;
}
.page-products .hero-download {
  flex: 1;
  text-align: center;
}
.page-products .hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--slate);
  line-height: 1.1;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}
.page-products .hero-sub {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--china-red);
  margin: 0 0 0.6rem;
}
.page-products .hero-desc {
  font-size: var(--font-size-body, 1rem);
  color: var(--slate);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.page-products .qr-area {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  cursor: default;
  transition: transform 0.3s ease;
}
.page-products .qr-area[data-hover="zoom"]:hover {
  transform: scale(1.08);
}
.page-products .qr-img {
  display: block;
  width: 140px;
  height: auto;
  border: 2px solid var(--clay);
  border-radius: 8px;
  object-fit: contain;
}
.page-products .qr-label {
  font-size: var(--font-size-small, 0.875rem);
  color: var(--rock-gray);
  letter-spacing: 0.04em;
}
.page-products .btn-download {
  display: inline-block;
  padding: 0.85rem 2.8rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: var(--china-red);
  border: none;
  border-radius: 4px 12px 4px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(211,47,47,0.35);
}
.page-products .btn-download:hover {
  background: #B71C1C;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211,47,47,0.45);
}
.page-products .btn-download[data-color-cycle]:focus {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

/* ===== 功能列表 (密集索引) ===== */
.page-products .products-features {
  padding: 4rem 0 3rem;
  background: var(--winter-white);
}
.page-products .section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rock-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  float: left;
  margin-right: 0.6rem;
  line-height: 1.4;
  opacity: 0.7;
}
.page-products .features-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate);
  margin: 0 0 2rem;
  line-height: 1.2;
  clear: none;
}
.page-products .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.page-products .feature-card {
  background: #fff;
  border: 1px solid var(--page-card-border);
  border-radius: 8px 2px 8px 2px;
  padding: 1.5rem 1.2rem 1.2rem;
  transition: box-shadow 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.page-products .feature-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.page-products .card-icon {
  width: 100%;
  max-height: 100px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  background: var(--winter-white);
}
.page-products .card-icon-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 100px;
}
.page-products .card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate);
  margin: 0 0 0.4rem;
}
.page-products .card-desc {
  font-size: var(--font-size-body, 1rem);
  color: var(--rock-gray);
  line-height: 1.6;
  margin: 0 0 0.8rem;
  flex: 1;
}
.page-products .card-link {
  font-size: var(--font-size-small, 0.875rem);
  color: var(--china-red);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  align-self: flex-start;
}
.page-products .card-link:hover {
  border-bottom-color: var(--china-red);
}

/* ===== 注册引导 (宽松叙事) ===== */
.page-products .products-register {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--winter-white) 0%, #F0F5F0 100%);
}
.page-products .register-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate);
  margin: 0 0 0.5rem;
  line-height: 1.2;
  clear: none;
}
.page-products .register-intro {
  font-size: 1.1rem;
  color: var(--rock-gray);
  max-width: 500px;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}
.page-products .register-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.page-products .step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  border-left: 4px solid var(--step-color, var(--spring-green));
  transition: background 0.2s;
}
.page-products .step:hover {
  background: #fff;
}
.page-products .step-num {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  background: var(--step-color, var(--spring-green));
  border-radius: 50%;
  line-height: 1;
}
.page-products .step-content {
  flex: 1;
}
.page-products .step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate);
  margin: 0 0 0.2rem;
}
.page-products .step-desc {
  font-size: var(--font-size-body, 1rem);
  color: var(--rock-gray);
  margin: 0;
  line-height: 1.5;
}
.page-products .register-visual {
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px 4px 12px 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.page-products .register-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== 平台服务范围 ===== */
.page-products .products-coverage {
  padding: 4rem 0;
  background: var(--slate);
  color: var(--winter-white);
}
.page-products .coverage-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--winter-white);
  margin: 0 0 1.5rem;
  line-height: 1.2;
  clear: none;
}
.page-products .coverage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.page-products .coverage-text {
  flex: 1;
}
.page-products .coverage-text p {
  font-size: var(--font-size-body, 1rem);
  line-height: 1.7;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.9);
}
.page-products .coverage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.page-products .coverage-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--spring-green);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.page-products .coverage-link:hover {
  color: #fff;
  border-bottom-color: var(--spring-green);
}
.page-products .coverage-visual {
  flex: 0 0 auto;
  max-width: 100%;
  border-radius: 12px 4px 12px 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.page-products .coverage-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== 桌面端媒体查询 ===== */
@media (min-width: 768px) {
  .page-products .products-hero {
    padding: 0 0 4rem;
  }
  .page-products .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 2rem;
  }
  .page-products .hero-mockup {
    width: 260px;
    flex-shrink: 0;
  }
  .page-products .hero-app-img {
    max-width: 300px;
  }
  .page-products .hero-download {
    text-align: left;
    flex: 1;
  }
  .page-products .hero-title {
    font-size: 3.5rem;
  }
  .page-products .hero-sub {
    font-size: 1.5rem;
  }
  .page-products .hero-desc {
    margin: 0 0 1.5rem;
  }
  .page-products .qr-area {
    flex-direction: row;
    gap: 0.8rem;
  }
  .page-products .qr-img {
    width: 160px;
  }
  .page-products .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
  .page-products .features-heading {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }
  .page-products .register-heading {
    font-size: 2.5rem;
  }
  .page-products .register-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .page-products .step {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }
  .page-products .step-num {
    margin-bottom: 0.4rem;
  }
  .page-products .coverage-wrapper {
    flex-direction: row;
    align-items: center;
  }
  .page-products .coverage-heading {
    font-size: 2.5rem;
  }
  .page-products .coverage-visual {
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .page-products .hero-mockup {
    width: 300px;
  }
  .page-products .hero-title {
    font-size: 4rem;
  }
  .page-products .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-products .register-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-products .step {
    padding: 1.5rem 1.2rem;
  }
  .page-products .coverage-wrapper {
    gap: 4rem;
  }
}

/* ===== reduced-motion 兼容 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-products .qr-area[data-hover="zoom"]:hover {
    transform: none;
  }
  .page-products .btn-download:hover {
    transform: none;
  }
  .page-products .feature-card:hover {
    transform: none;
  }
  .page-products .step:hover {
    background: rgba(255,255,255,0.7);
  }
}

.page-products {
  --step-color: transparent;
}
