/* ===== 页面专属：products ===== */
.page-products {
  --card-bg-start: #0e1a2b;
  --card-bg-end: #141e32;
  --card-border-glow: rgba(255, 127, 42, 0.25);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --badge-color: #ff7f2a;
  --badge-pulse: #e66a1f;
  --stat-color: #ff7f2a;
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 3rem;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  color: var(--color-text-primary, #f0f4f8);
}

/* --- 背景 --- */
.page-products__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.page-products__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(0.4) contrast(1.2);
}

/* --- 面包屑 --- */
.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 1.2rem 0 0.6rem;
  font-family: var(--font-small, "Inter", sans-serif);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary, #a0b4c8);
}
.page-products .breadcrumb__link {
  color: var(--color-accent, #ff7f2a);
  text-decoration: none;
  transition: opacity var(--transition-fast, 0.2s);
}
.page-products .breadcrumb__link:hover {
  opacity: 0.75;
}
.page-products .breadcrumb__sep {
  color: var(--color-text-secondary, #a0b4c8);
  opacity: 0.5;
}
.page-products .breadcrumb__current {
  color: var(--color-text-primary, #f0f4f8);
  font-weight: 400;
}

/* --- 首屏标题区 --- */
.page-products__hero {
  position: relative;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(108, 142, 178, 0.2);
}
.page-products__hero-title {
  font-family: var(--font-heading, "Inter", "Segoe UI", sans-serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  color: var(--color-text-primary, #f0f4f8);
  line-height: 1.1;
}
.page-products__hero-sub {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--color-accent, #ff7f2a);
  margin: 0 0 0.8rem;
  letter-spacing: 0.04em;
}
.page-products__hero-trust {
  font-family: var(--font-small, "Inter", sans-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #a0b4c8);
  max-width: 720px;
  margin: 0;
  padding: 0.6rem 0 0;
  border-top: 1px solid rgba(108, 142, 178, 0.15);
}

/* --- 版本说明区 --- */
.page-products__version {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 2.5rem 0;
  margin-bottom: 1rem;
}
.version__heading {
  font-family: var(--font-heading, "Inter", "Segoe UI", sans-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  color: var(--color-text-primary, #f0f4f8);
  display: inline-block;
  position: relative;
}
.version__heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent, #ff7f2a), transparent);
  margin-top: 6px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.version__desc {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #a0b4c8);
  max-width: 640px;
  margin: 0 0 1.2rem;
}
.version__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.version__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 1.2rem 0.6rem 0;
  border-right: 1px solid rgba(108, 142, 178, 0.2);
}
.version__stat:last-child {
  border-right: none;
}
.version__stat-num {
  font-family: var(--font-heading, "Inter", "Segoe UI", sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--stat-color, #ff7f2a);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(255, 127, 42, 0.3);
}
.version__stat-label {
  font-family: var(--font-small, "Inter", sans-serif);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-text-secondary, #a0b4c8);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.version__media {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: flex-start;
}
.version__img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius, 6px);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(108, 142, 178, 0.15);
}
.version__img--small {
  max-width: 320px;
}

/* --- 卡片网格标题 --- */
.page-products__section-title {
  font-family: var(--font-heading, "Inter", "Segoe UI", sans-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-text-primary, #f0f4f8);
  margin: 0 0 1.6rem;
  position: relative;
  display: inline-block;
}
.page-products__section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent, #ff7f2a), transparent);
  margin-top: 6px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* --- 卡片网格 --- */
.cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --- 通用卡片 --- */
.page-products .card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--card-bg-start), var(--card-bg-end));
  border: 1px solid rgba(108, 142, 178, 0.18);
  border-radius: var(--border-radius, 6px);
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base, 0.35s), box-shadow var(--transition-base, 0.35s), border-color var(--transition-base, 0.35s);
  overflow: hidden;
}
.page-products .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent, #ff7f2a), var(--color-accent-hover, #e66a1f));
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  opacity: 0.7;
}
.page-products .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: var(--card-border-glow);
}
.page-products .card:focus-within {
  outline: 2px solid var(--color-accent, #ff7f2a);
  outline-offset: 2px;
}

/* 卡片图标 */
.card__icon-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-bottom: 0.8rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(108, 142, 178, 0.12);
  background: rgba(10, 15, 30, 0.4);
}
.card__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 卡片徽章 */
.card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-small, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0a0f1e;
  background: var(--badge-color);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  animation: badgePulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 127, 42, 0.4);
  cursor: default;
  z-index: 1;
}
@keyframes badgePulse {
  0%, 100% { background: var(--badge-color); box-shadow: 0 0 12px rgba(255, 127, 42, 0.4); }
  50% { background: var(--badge-pulse); box-shadow: 0 0 24px rgba(255, 127, 42, 0.7); }
}

/* 卡片标题 */
.card__title {
  font-family: var(--font-heading, "Inter", "Segoe UI", sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-text-primary, #f0f4f8);
  margin: 0.2rem 0 0.4rem;
}
/* 卡片描述 */
.card__desc {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #a0b4c8);
  margin: 0 0 0.6rem;
  flex: 1;
}

/* 卡片额外内容（渐进增强：默认可见） */
.card__extra {
  font-family: var(--font-small, "Inter", sans-serif);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #a0b4c8);
  padding: 0.6rem 0 0.2rem;
  border-top: 1px solid rgba(108, 142, 178, 0.1);
  margin-bottom: 0.6rem;
}
.card__extra p {
  margin: 0;
}

/* 卡片按钮 */
.card__btn {
  align-self: flex-start;
  margin-top: auto;
}

/* --- 卡片变体：主要（SETUP文档）--- */
.page-products .card--primary {
  grid-column: 1 / -1;
  border-left: 3px solid var(--color-accent, #ff7f2a);
}
.page-products .card--primary .card__title {
  color: var(--color-accent, #ff7f2a);
  font-size: 1.35rem;
}

/* --- 卡片变体：宽（注册指引）--- */
.page-products .card--wide {
  grid-column: 1 / -1;
}

/* --- 按钮覆写 --- */
.page-products .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-small, "Inter", sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--border-radius, 6px);
  cursor: pointer;
  transition: background var(--transition-fast, 0.2s), box-shadow var(--transition-fast, 0.2s), transform var(--transition-fast, 0.2s);
  text-decoration: none;
  line-height: 1.4;
}
.page-products .btn--primary {
  background: var(--color-accent, #ff7f2a);
  color: #0a0f1e;
}
.page-products .btn--primary:hover {
  background: var(--color-accent-hover, #e66a1f);
  box-shadow: 0 0 20px rgba(255, 127, 42, 0.4);
  transform: scale(1.03);
}
.page-products .btn--outline {
  background: transparent;
  color: var(--color-accent, #ff7f2a);
  border: 1px solid var(--color-accent, #ff7f2a);
}
.page-products .btn--outline:hover {
  background: rgba(255, 127, 42, 0.12);
  box-shadow: 0 0 16px rgba(255, 127, 42, 0.2);
}

/* --- 注册指引区 --- */
.page-products__guide {
  padding: 2.5rem 0 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(108, 142, 178, 0.12);
}
.guide__inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-start;
}
.guide__img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius, 6px);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(108, 142, 178, 0.12);
}
.guide__text {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #a0b4c8);
  max-width: 520px;
}
.guide__text p {
  margin: 0 0 1rem;
}

/* --- 信任声明 --- */
.page-products__trust {
  padding: 1.4rem 1.6rem;
  margin-top: 1.5rem;
  background: rgba(10, 15, 30, 0.5);
  border-left: 3px solid var(--color-accent, #ff7f2a);
  border-radius: var(--border-radius, 6px);
  font-family: var(--font-small, "Inter", sans-serif);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #a0b4c8);
}
.page-products__trust p {
  margin: 0;
}

/* ===== 响应式：平板及以上 ===== */
@media (min-width: 640px) {
  .page-products {
    padding: 0 2rem 4rem;
  }
  .page-products__version {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .version__text {
    flex: 1 1 55%;
  }
  .version__media {
    flex: 1 1 40%;
    justify-content: flex-end;
  }
  .cards__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-products .card--primary {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  .page-products .card--wide {
    grid-column: 2 / 3;
  }
  .guide__inner {
    flex-direction: row;
    align-items: center;
  }
  .guide__img {
    max-width: 55%;
  }
}

@media (min-width: 960px) {
  .page-products__version {
    gap: 3rem;
  }
  .cards__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .page-products .card--primary {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    padding: 2rem 1.8rem;
  }
  .page-products .card--secondary:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
  .page-products .card--secondary:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }
  .page-products .card--wide {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
    align-items: center;
  }
  .page-products .card--wide .card__icon-wrap {
    margin-bottom: 0;
  }
  .page-products .card--wide .card__extra {
    border-top: none;
    padding-top: 0;
    margin-bottom: 0;
  }
  .page-products .card--wide .card__btn {
    margin-top: 0;
    align-self: center;
  }
  .version__media {
    flex-direction: row;
  }
  .version__img--small {
    max-width: 280px;
  }
}
/* ===== 防止横向溢出 ===== */
.page-products img,
.page-products .card,
.page-products .version__img,
.page-products .guide__img {
  max-width: 100%;
  height: auto;
}
.page-products {
  overflow-x: hidden;
}
/* ===== 窄屏额外保护 ===== */
@media (max-width: 400px) {
  .page-products {
    padding: 0 0.8rem 2rem;
  }
  .card__badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    top: 0.7rem;
    right: 0.7rem;
  }
  .card__icon-wrap {
    width: 60px;
    height: 60px;
  }
  .card__icon-wrap img {
    width: 60px;
    height: 60px;
  }
  .version__stat-num {
    font-size: 1.5rem;
  }
}
