.page-products {
  --cut-size: 16px;
  --node-gap: 2rem;
  --tree-line-color: rgba(255,107,53,0.4);
  --slider-max-width: 360px;
  --card-radius: 0;
  background-color: var(--color-bg-dark);
  color: var(--color-surface);
  font-family: var(--font-body);
  padding-bottom: 3rem;
}

/* 首屏轮播 */
.product-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1rem 2rem;
  position: relative;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: var(--slider-max-width);
  aspect-ratio: 360 / 640;
  overflow: hidden;
  border-radius: var(--cut-size);
  box-shadow: 0 8px 32px rgba(255,107,53,0.3);
}

.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slider-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.dot.is-active {
  background: var(--color-primary);
}

.hero-caption {
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--color-primary);
  text-transform: uppercase;
  margin: 0;
}

.hero-sub {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--color-accent-yellow);
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

/* 技能树功能路径 */
.product-features {
  padding: 2rem 1rem;
  position: relative;
}

.feature-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--node-gap);
  position: relative;
}

.tree-node {
  position: relative;
  max-width: 360px;
  width: 100%;
  padding: 1.5rem;
  background: var(--color-bg-dark-alt);
  border-left: 4px solid var(--color-primary);
  text-align: center;
  clip-path: polygon(0 0, calc(100% - var(--cut-size)) 0, 100% var(--cut-size), 100% 100%, 0 100%);
}

.node-icon {
  width: 80px;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
  background: rgba(255,107,53,0.1);
  border-radius: 8px;
  padding: 4px;
}

.node-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
}

.node-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 260px;
  margin-inline: auto;
}

.node-arrow {
  display: none;
}

/* 手机端不显示箭头，桌面端显示 */
@media (min-width: 768px) {
  .feature-tree {
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
  }

  .tree-node {
    max-width: 280px;
  }

  .node-arrow {
    display: block;
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 3px;
    background: var(--tree-line-color);
  }

  .node-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -3px;
    border: 4px solid transparent;
    border-left-color: var(--color-primary);
    border-right: none;
  }

  .tree-node:last-child .node-arrow {
    display: none;
  }
}

.feature-summary {
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--color-accent-yellow);
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  border-top: 1px dashed var(--color-primary);
  border-bottom: 1px dashed var(--color-primary);
}

/* 下载区域 */
.product-download {
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #102040 100%);
}

.download-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-surface);
  margin: 0 0 1.5rem;
}

.download-actions {
  display: flex;
  justify-content: center;
}

.download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 2rem;
  background: var(--color-accent-red);
  border: none;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(255,42,42,0.4);
}

.download-btn:hover {
  background: #e02424;
  transform: scale(1.03);
}

.btn-label {
  line-height: 1;
}

.btn-sub {
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 300;
  opacity: 0.8;
}

.download-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.download-tip-box {
  max-width: 400px;
  margin: 1rem auto 0;
  padding: 1rem;
  background: rgba(255,193,7,0.1);
  border: 1px solid var(--color-accent-yellow);
  color: var(--color-accent-yellow);
  font-size: 0.85rem;
  display: none;
}

.download-tip-box:target,
.download-tip-box.is-visible {
  display: block;
}

.download-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.download-links a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 版本与兼容 */
.product-version {
  padding: 2rem 1rem;
}

.version-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 1.5rem;
}

.version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.version-item {
  padding: 1rem;
  background: var(--color-bg-dark-alt);
  clip-path: polygon(0 0, calc(100% - var(--cut-size)) 0, 100% var(--cut-size), 100% 100%, 0 100%);
}

.version-label {
  display: block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.version-value {
  display: block;
  font-size: 0.95rem;
  color: var(--color-surface);
}

.version-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

/* 信任声明 */
.product-trust {
  padding: 1rem;
  text-align: center;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: rgba(58,74,107,0.2);
  display: inline-block;
  padding: 0.6rem 1.5rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* 氛围图 */
.product-atmosphere {
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.atmosphere-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--cut-size);
  opacity: 0.7;
}

/* 移动端窄屏适配 */
@media (max-width: 480px) {
  .product-hero {
    padding: 0.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .tree-node {
    padding: 1rem;
  }
  .version-grid {
    grid-template-columns: 1fr;
  }
  .download-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* 桌面端增强 */
@media (min-width: 1024px) {
  .product-hero {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 2rem;
  }
  .hero-caption {
    text-align: left;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .feature-tree {
    gap: 3rem;
  }
  .tree-node {
    max-width: 320px;
  }
  .product-download {
    padding: 3rem 2rem;
  }
  .product-version {
    padding: 3rem 2rem;
  }
  .version-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* reduced-motion 兼容 */
@media (prefers-reduced-motion: reduce) {
  .slider-track {
    transition: none;
  }
  .download-btn {
    transition: none;
  }
  .dot,
  .tree-node {
    transition: none;
  }
}
