.page-products {
  --mono: "Cascadia Code", "SFMono-Regular", "Lightweight Mono", Consolas, "Liberation Mono", monospace;
  --term-bg: #061024;
  --term-line: rgba(57, 255, 20, 0.35);
  --violet-glow: rgba(123, 47, 247, 0.35);
  --gold-glow: rgba(245, 197, 24, 0.35);
  --section-space: clamp(56px, 8vw, 96px);
  position: relative;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(123, 47, 247, 0.12) 0%, transparent 30%),
    linear-gradient(180deg, rgba(11, 27, 61, 0.6) 0%, var(--bg) 40%);
}

.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products .container {
  position: relative;
  z-index: 1;
}

.page-products .section-head {
  margin-bottom: clamp(22px, 4vw, 36px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.page-products .section-head__text {
  min-width: 0;
  flex: 1;
  padding-top: 10px;
}

.page-products .section-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--neon);
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  line-height: 1.4;
}

.page-products .section-title {
  position: relative;
  padding-left: 16px;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.page-products .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--neon), var(--accent));
  transform: skewX(-12deg);
}

.page-products .terminal-line {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--text);
}

.page-products .terminal-line--out {
  color: var(--muted);
}

.page-products .terminal-prompt {
  display: inline-block;
  color: var(--neon);
  font-weight: 700;
  margin-right: 0.5em;
  user-select: none;
}

.page-products .terminal-output {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--neon);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--term-line);
  border-radius: 8px;
  padding: 6px 12px;
  margin: 0 0 14px;
}

.page-products .btn {
  position: relative;
}

.page-products .btn-primary {
  overflow: hidden;
}

.page-products .breadcrumb {
  margin-bottom: 22px;
}

.page-products .page-products__crumb-sep {
  color: var(--muted);
  margin: 0 8px;
  font-family: var(--mono);
}

.page-products .page-products__crumb-current {
  color: var(--neon);
  font-weight: 600;
}

/* ===== Hero / 应用下载 ===== */
.page-products .product-hero {
  position: relative;
  padding: clamp(18px, 4vw, 40px) 0 44px;
  overflow: hidden;
}

.page-products .product-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.28), transparent 70%);
  pointer-events: none;
}

.page-products .product-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}

.page-products .product-hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-products .product-hero__section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.08);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-products .product-hero__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin: 14px 0 16px;
  letter-spacing: 0.02em;
}

.page-products .product-hero__lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 12px;
  max-width: 620px;
}

.page-products .product-hero__lead strong {
  color: var(--neon);
  font-weight: 600;
}

.page-products .product-hero__source {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 560px;
}

.page-products .product-hero__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
}

.page-products .product-hero__store-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.page-products .product-hero__store {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: rgba(16, 38, 74, 0.85);
  border: 1px solid rgba(168, 192, 224, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}

.page-products .product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .product-hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

@media (min-width: 860px) {
  .page-products .product-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .page-products .product-hero__visual {
    transform: rotate(2deg) translateY(8px);
  }
}

/* 手机线框 */
.page-products .phone-shell {
  position: relative;
  width: min(72vw, 300px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(16, 38, 74, 0.92), rgba(8, 18, 39, 0.97));
  box-shadow: var(--shadow-lg), inset 0 0 28px rgba(57, 255, 20, 0.08);
}

.page-products .phone-shell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 6px;
  height: 58px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: var(--line);
}

.page-products .phone-shell__screen {
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-deep);
  aspect-ratio: 1 / 2;
}

.page-products .phone-shell__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .phone-shell__badge {
  position: absolute;
  bottom: 28px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.28);
}

.page-products .phone-shell__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: pageProductsPulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes pageProductsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
  }
}

/* ===== 终端卡片 ===== */
.page-products .product-features {
  margin-top: var(--section-space);
}

.page-products .terminal-card {
  border: 1px solid rgba(57, 255, 20, 0.32);
  border-radius: var(--radius);
  background: var(--term-bg);
  box-shadow: var(--shadow-lg), 0 0 38px rgba(123, 47, 247, 0.18);
  overflow: hidden;
}

.page-products .terminal-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0F2349, #0B1B3D);
}

.page-products .terminal-card__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.page-products .terminal-card__dot--red { background: #FF5F57; }
.page-products .terminal-card__dot--yellow { background: #FEBD2E; }
.page-products .terminal-card__dot--green { background: #28C840; }

.page-products .terminal-card__title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-products .terminal-card__body {
  padding: 18px 16px 8px;
}

.page-products .terminal-card__body .terminal-line {
  margin-bottom: 8px;
}

/* 功能模块 details */
.page-products .feature-cli-list {
  margin-top: 12px;
}

.page-products .feature-cli {
  border-bottom: 1px solid rgba(168, 192, 224, 0.14);
}

.page-products .feature-cli:last-child {
  border-bottom: none;
}

.page-products .feature-cli__cmd {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 15px 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

.page-products .feature-cli__cmd::-webkit-details-marker {
  display: none;
}

.page-products .feature-cli__cmd::before {
  content: "▸";
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.page-products .feature-cli[open] .feature-cli__cmd::before {
  transform: rotate(90deg);
  color: var(--neon);
}

.page-products .feature-cli__cmd:hover {
  background: rgba(57, 255, 20, 0.06);
}

.page-products .feature-cli[open] .feature-cli__cmd {
  color: var(--neon);
}

.page-products .feature-cli__flag {
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.page-products .feature-cli__desc {
  padding: 0 16px 18px 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-products .feature-cli__desc p {
  margin: 0;
  max-width: 640px;
}

/* ===== 会员区块 ===== */
.page-products .product-membership {
  margin-top: var(--section-space);
}

.page-products .membership-panel {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 28px 24px;
  border: 1px solid rgba(245, 197, 24, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245, 197, 24, 0.08), transparent 50%),
    linear-gradient(160deg, rgba(16, 38, 74, 0.96), rgba(8, 18, 39, 0.98));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.page-products .membership-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.18), transparent 70%);
  pointer-events: none;
}

.page-products .membership-panel__badge {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-products .membership-panel__badge img {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(245, 197, 24, 0.6);
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.22);
  object-fit: cover;
}

.page-products .membership-panel__content {
  min-width: 0;
}

.page-products .membership-panel__content .terminal-line {
  margin-bottom: 12px;
}

.page-products .membership-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-products .membership-panel__intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.page-products .membership-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .membership-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(245, 197, 24, 0.14);
  padding-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.page-products .membership-list__mark {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid rgba(245, 197, 24, 0.5);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.4;
}

.page-products .membership-panel__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-products .membership-panel__note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 900px) {
  .page-products .membership-panel {
    grid-template-columns: 260px 1fr;
    padding: 40px 48px;
  }
}

/* 订阅按钮光效 */
@media (prefers-reduced-motion: no-preference) {
  .page-products .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
    transform: translateX(-130%);
    transition: transform 0.5s ease;
    pointer-events: none;
  }

  .page-products .btn-primary:hover::after {
    transform: translateX(130%);
  }

  .page-products .btn-primary:hover {
    box-shadow: 0 0 24px rgba(123, 47, 247, 0.5);
    transform: translateY(-1px);
  }
}

/* ===== 推送设置 ===== */
.page-products .product-notification {
  margin-top: var(--section-space);
}

.page-products .notification-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-products .notification-guide .terminal-line {
  margin-bottom: 14px;
}

.page-products .notification-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .notification-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(16, 38, 74, 0.7);
  border-left: 2px solid var(--neon);
}

.page-products .notification-steps__num {
  flex: 0 0 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
}

.page-products .notification-steps__content {
  min-width: 0;
}

.page-products .notification-steps__content h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.page-products .notification-steps__content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.page-products .notification-preview {
  text-align: center;
}

.page-products .notification-preview img {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.page-products .notification-preview__caption {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

@media (min-width: 820px) {
  .page-products .notification-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
  }
}

/* ===== 数据服务 ===== */
.page-products .product-data {
  margin-top: var(--section-space);
}

.page-products .data-panel {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.page-products .data-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-products .data-panel__stats .stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 38, 74, 0.92), rgba(8, 18, 39, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.page-products .data-panel__stats .stat-num {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--neon);
  line-height: 1.1;
}

.page-products .data-panel__stats .stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.page-products .data-panel__chart {
  padding: 18px;
  border-radius: 14px;
  background: var(--term-bg);
  border: 1px solid rgba(57, 255, 20, 0.28);
  box-shadow: var(--shadow-lg);
}

.page-products .data-panel__chart .terminal-line {
  margin-bottom: 6px;
}

.page-products .data-panel__caption {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.5;
  margin: 0 0 14px;
}

.page-products .data-panel__chart img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(168, 192, 224, 0.14);
}

.page-products .data-notes {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(16, 38, 74, 0.55);
  border-radius: 0 12px 12px 0;
}

.page-products .data-notes p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 780px;
}

@media (min-width: 960px) {
  .page-products .data-panel {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
  }
}

/* ===== 周报区块 ===== */
.page-products .product-weekly {
  margin-top: var(--section-space);
}

.page-products .weekly-card {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(123, 47, 247, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(16, 38, 74, 0.9), rgba(8, 18, 39, 0.95));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.page-products .weekly-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

.page-products .weekly-card__content .terminal-line {
  margin-bottom: 12px;
}

.page-products .weekly-card__content h2 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}

.page-products .weekly-card__content > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
}

.page-products .weekly-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (min-width: 860px) {
  .page-products .weekly-card {
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 36px 44px;
  }
}

/* ===== 支持卡片 ===== */
.page-products .product-support {
  margin-top: var(--section-space);
}

.page-products .product-support__title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
}

.page-products .product-support__grid {
  display: grid;
  gap: 18px;
}

.page-products .product-support__grid .card {
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-products .product-support__grid .card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}

.page-products .product-support__grid .card p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .card__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--neon);
  border: 1px solid var(--line);
  background: rgba(57, 255, 20, 0.06);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

@media (min-width: 720px) {
  .page-products .product-support__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== 滚动显现辅助 ===== */
@media (prefers-reduced-motion: no-preference) {
  .page-products [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .page-products [data-reveal].is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}
