.page-products {
  --pp-glow: rgba(57, 255, 20, 0.34);
  --pp-soft-line: rgba(255, 255, 255, 0.08);
  --pp-gradient: linear-gradient(135deg, #00A8FF 0%, #39FF14 100%);
  display: block;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 168, 255, 0.06) 0%, rgba(11, 27, 43, 0) 28%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-body);
  line-height: 1.7;
}

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 16px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.page-products .breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-products .breadcrumb a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-products .apps-hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 16px 48px;
}

.page-products .apps-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--pp-soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--pp-soft-line) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

.page-products .apps-hero__frame {
  position: absolute;
  top: 24px;
  right: 10px;
  bottom: 28px;
  left: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  pointer-events: none;
}

.page-products .apps-hero__frame::before {
  content: "STANDBY / CN";
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

.page-products .apps-hero__frame::after {
  content: "2019 → PRESENT";
  position: absolute;
  bottom: 12px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  opacity: 0.8;
}

.page-products .apps-hero__inner {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-products .apps-hero__index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.page-products .apps-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  color: var(--text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page-products .apps-hero__title span {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: none;
  margin-top: 6px;
}

.page-products .apps-hero__lead {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-sub);
}

.page-products .apps-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.page-products .apps-hero__actions .btn-cta {
  background: var(--accent);
  color: #07121b;
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px var(--pp-glow);
}

.page-products .apps-hero__actions .btn-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.55);
}

.page-products .apps-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.page-products .apps-hero__meta span::before {
  content: "▲";
  color: var(--highlight);
  margin-right: 6px;
  font-size: 10px;
}

.page-products .apps-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-products .apps-hero__svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.page-products .section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 16px;
}

.page-products .section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  position: relative;
}

.page-products .section-heading .section-index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.page-products .section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.02em;
}

.page-products .section-heading p {
  margin: 4px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  max-width: 48rem;
}

/* 应用下载入口 */
.page-products .apps-download__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .download-card {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.page-products .download-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--line) 0 4px,
    transparent 4px 8px
  );
  opacity: 0.6;
  pointer-events: none;
}

@media (hover: hover) {
  .page-products .download-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .page-products .download-card--android:hover {
    border-color: var(--accent);
  }

  .page-products .download-card--web:hover {
    border-color: var(--highlight);
  }
}

.page-products .download-card__mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-products .download-card__os {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.page-products .download-card__mark {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.page-products .download-card__mark svg {
  filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.25));
}

.page-products .download-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text);
}

.page-products .download-card > p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

.page-products .download-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.page-products .download-card__list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-sub);
  font-size: 13px;
}

.page-products .download-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.page-products .download-card__list li:nth-child(2)::before {
  color: var(--accent);
}

.page-products .download-card__list li:nth-child(3)::before {
  color: var(--highlight);
}

.page-products .download-card .btn {
  align-self: flex-start;
}

/* Bento 核心功能区 */
.page-products .bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .bento-item {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .page-products .bento-item:hover {
    transform: scale(1.01);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
}

.page-products .feature-card__media {
  position: relative;
  min-height: 120px;
  background: var(--bg);
}

.page-products .feature-card__media img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.page-products .feature-card__media--square img {
  max-height: 260px;
  object-fit: cover;
}

.page-products .feature-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.page-products .feature-card__body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text);
}

.page-products .feature-card__body p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

.page-products .feature-card__icon {
  filter: drop-shadow(0 0 12px rgba(57, 255, 20, 0.25));
  margin-bottom: 2px;
}

.page-products .feature-card .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pp-blink 1.8s ease-in-out infinite;
}

.page-products .feature-card .tag,
.page-products .download-card .tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-products .feature-card--live {
  background:
    linear-gradient(160deg, rgba(0, 168, 255, 0.14) 0%, rgba(11, 27, 43, 0) 50%),
    var(--bg-deep);
}

.page-products .feature-card--live .feature-card__media {
  background: linear-gradient(135deg, #001a2e 0%, #0b1b2b 100%);
}

.page-products .feature-card--live .feature-card__media img {
  object-fit: cover;
  min-height: 260px;
  max-height: 420px;
}

.page-products .feature-card--archive {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(245, 241, 232, 0.08) 0%, transparent 50%),
    var(--bg-deep);
}

.page-products .feature-card--archive .feature-card__media img {
  max-height: 340px;
}

.page-products .feature-card--notify {
  background: linear-gradient(120deg, #00324d 0%, #0b1b2b 70%);
}

.page-products .feature-card--clip .feature-card__media img {
  max-height: 260px;
}

.page-products .feature-card--switch {
  background: linear-gradient(220deg, #0b1b2b 0%, #002b4a 90%);
}

/* 时间轴条 */
.page-products .apps-timeline {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px 32px;
}

.page-products .apps-timeline__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.page-products .apps-timeline__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--pp-gradient);
}

.page-products .apps-timeline__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--highlight);
  text-transform: uppercase;
}

.page-products .apps-timeline__item {
  position: relative;
  font-size: 14px;
  color: var(--text-sub);
  padding-left: 0;
}

.page-products .apps-timeline__item + .apps-timeline__item::before {
  content: "→";
  margin-right: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* 使用流程 */
.page-products .flow-tree {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.page-products .flow-node {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  padding-top: 32px;
  overflow: hidden;
}

.page-products .flow-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--pp-gradient);
}

.page-products .flow-node__num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--line);
  font-weight: 700;
  line-height: 1;
}

.page-products .flow-node h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text);
}

.page-products .flow-node p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

.page-products .flow-diagram {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-deep);
}

.page-products .flow-diagram img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.page-products .flow-diagram figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* 设备适配 */
.page-products .devices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .device-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  position: relative;
}

.page-products .device-card__screen {
  width: 48px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--primary);
  margin-bottom: 12px;
  position: relative;
}

.page-products .device-card__screen::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 6px 0 var(--highlight), 0 12px 0 rgba(57, 255, 20, 0.4);
}

.page-products .device-card__screen--tablet {
  width: 56px;
  height: 40px;
}

.page-products .device-card__screen--desktop {
  width: 64px;
  height: 32px;
}

.page-products .device-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text);
}

.page-products .device-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

/* 回流 */
.page-products .apps-backlink {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px 56px;
  text-align: center;
}

.page-products .apps-backlink p {
  color: var(--text-sub);
  font-size: 15px;
  margin: 0 0 14px;
}

/* 按钮微调 */
.page-products .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.page-products .btn-primary {
  background: var(--primary);
  color: #07121b;
}

.page-products .btn-primary:hover {
  background: #ffffff;
  color: #07121b;
}

.page-products .btn-cta {
  background: var(--accent);
  color: #07121b;
}

.page-products .btn-cta:hover {
  background: #ffffff;
  color: #07121b;
}

.page-products .btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.page-products .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* 标签微调 */
.page-products .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.page-products .tag-live {
  background: rgba(57, 255, 20, 0.14);
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.5);
}

.page-products .tag-hot {
  background: rgba(255, 107, 53, 0.16);
  color: var(--highlight);
  border: 1px solid rgba(255, 107, 53, 0.45);
}

.page-products .tag-archive {
  background: rgba(245, 241, 232, 0.12);
  color: var(--paper);
  border: 1px solid rgba(245, 241, 232, 0.3);
}

@keyframes pp-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .apps-hero__svg circle,
  .page-products .feature-card .status-dot {
    animation: none;
  }

  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 平板及以上 */
@media (min-width: 768px) {
  .page-products .breadcrumb {
    padding-top: 28px;
  }

  .page-products .apps-hero {
    padding: 48px 24px 64px;
  }

  .page-products .apps-hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }

  .page-products .apps-hero__title {
    font-size: clamp(40px, 5vw, 56px);
  }

  .page-products .section {
    padding: 56px 24px;
  }

  .page-products .apps-download__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .download-card:last-child {
    grid-column: span 2;
  }

  .page-products .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .bento-item--wide {
    grid-column: span 2;
  }

  .page-products .bento-item--tall {
    grid-row: span 2;
  }

  .page-products .feature-card--live .feature-card__media img {
    min-height: 300px;
    max-height: 600px;
  }

  .page-products .flow-tree {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .page-products .flow-node {
    padding: 24px 20px;
    padding-top: 40px;
  }

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

  .page-products .apps-backlink {
    padding-bottom: 64px;
  }
}

/* 桌面 */
@media (min-width: 1024px) {
  .page-products .apps-download__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .download-card:last-child {
    grid-column: span 1;
  }

  .page-products .bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 18px;
  }

  .page-products .feature-card--live {
    grid-column: 1 / span 5;
    grid-row: span 2;
  }

  .page-products .feature-card--live .feature-card__media {
    flex: 1;
  }

  .page-products .feature-card--live .feature-card__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 480px;
    object-fit: cover;
  }

  .page-products .feature-card--sync {
    grid-column: 6 / span 4;
  }

  .page-products .feature-card--notify {
    grid-column: 10 / span 3;
  }

  .page-products .feature-card--archive {
    grid-column: 6 / span 7;
  }

  .page-products .feature-card--clip {
    grid-column: 1 / span 7;
  }

  .page-products .feature-card--clip .feature-card__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .page-products .feature-card--clip .feature-card__media img {
    grid-column: 1 / -1;
    object-fit: cover;
    max-height: 300px;
  }

  .page-products .feature-card--switch {
    grid-column: 8 / span 5;
  }

  .page-products .feature-card--sync .feature-card__media img {
    max-height: 300px;
  }

  .page-products .apps-timeline {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-products .flow-diagram img {
    max-height: 480px;
  }
}
