/* ===== 页面专属：应用中心 .page-products ===== */
.page-products {
  --page-bg-start: #1a1a1a;
  --page-bg-end: #2a1a20;
  --page-accent: #e63946;
  --page-gold: #f4a261;
  --page-card-bg: #222;
  --page-border-light: #444;
  --page-phone-border: #c0a060;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(160deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  color: var(--color-text, #f8f9fa);
  padding: 0;
  overflow-x: hidden;
}

/* ---- 面包屑 ---- */
.page-products .breadcrumb {
  padding: 1rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--color-secondary, #f4a261);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.page-products .breadcrumb a {
  color: var(--color-secondary, #f4a261);
  text-decoration: none;
  transition: color 0.2s;
}
.page-products .breadcrumb a:hover,
.page-products .breadcrumb a:focus-visible {
  color: var(--page-accent, #e63946);
  outline: 2px solid var(--page-accent, #e63946);
  outline-offset: 2px;
}
.page-products .breadcrumb .sep {
  color: var(--color-border, #555);
  user-select: none;
}
.page-products .breadcrumb [aria-current="page"] {
  color: var(--color-text, #f8f9fa);
  font-weight: 600;
}

/* ---- Hero 首屏 ---- */
.page-products .app-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.25rem 2.5rem;
  overflow: hidden;
}
.page-products .hero-scene-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}
.page-products .hero-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.4) contrast(1.1);
}
.page-products .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  width: 100%;
  max-width: 1200px;
}
/* 手机列 */
.page-products .phone-col {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}
/* 文字列 */
.page-products .text-col {
  flex: 1;
  text-align: center;
}
.page-products .text-col h1 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.1;
  color: var(--color-text, #f8f9fa);
  margin: 0 0 0.3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  letter-spacing: -0.02em;
}
.page-products .hero-sub {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--page-gold, #f4a261);
  margin: 0 0 0.6rem;
  font-style: italic;
}
.page-products .hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text, #f8f9fa);
  opacity: 0.85;
  margin: 0 0 1.4rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.page-products .hero-dl-btn {
  display: inline-block;
  padding: 0.85rem 2.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  background: var(--page-accent, #e63946);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.page-products .hero-dl-btn:hover,
.page-products .hero-dl-btn:focus-visible {
  background: var(--color-button-hover, #c1121f);
  outline: 2px solid var(--page-gold, #f4a261);
  outline-offset: 3px;
  transform: scale(1.02);
}

/* ---- 手机模型 ---- */
.page-products .phone-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.page-products .screen-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-products .phone-body {
  position: relative;
  width: 180px;
  height: 360px;
  background: #111;
  border-radius: 28px;
  border: 3px solid var(--page-phone-border, #c0a060);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), inset 0 0 0 2px #2a2a2a;
  overflow: hidden;
  transition: border-color 0.3s;
}
@media (min-width: 480px) {
  .page-products .phone-body {
    width: 220px;
    height: 440px;
    border-radius: 34px;
  }
}
@media (min-width: 768px) {
  .page-products .phone-body {
    width: 260px;
    height: 530px;
    border-radius: 40px;
  }
}
.page-products .phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #222;
  border-radius: 0 0 4px 4px;
  z-index: 5;
}
@media (min-width: 480px) {
  .page-products .phone-notch {
    width: 72px;
    height: 7px;
  }
}
@media (min-width: 768px) {
  .page-products .phone-notch {
    width: 84px;
    height: 8px;
  }
}
.page-products .phone-home {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: #333;
  border-radius: 3px;
  z-index: 5;
}
@media (min-width: 480px) {
  .page-products .phone-home {
    width: 42px;
    height: 5px;
  }
}
@media (min-width: 768px) {
  .page-products .phone-home {
    width: 48px;
    height: 5px;
  }
}
.page-products .phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.page-products .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-products .phone-screen--front {
  opacity: 1;
  z-index: 2;
}
.page-products .phone-screen--back {
  opacity: 0;
  z-index: 1;
}
.page-products .screen-toggle:checked ~ .phone-body .phone-screen--front {
  opacity: 0;
  z-index: 1;
}
.page-products .screen-toggle:checked ~ .phone-body .phone-screen--back {
  opacity: 1;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .page-products .phone-screen {
    transition: none;
  }
}
.page-products .screen-toggle-label {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--page-gold, #f4a261);
  border: 1px solid var(--page-phone-border, #c0a060);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
.page-products .screen-toggle-label:hover,
.page-products .screen-toggle-label:focus-visible {
  background: var(--page-phone-border, #c0a060);
  color: #1a1a1a;
  outline: 2px solid var(--page-gold, #f4a261);
  outline-offset: 2px;
}

/* ---- 核心功能 ---- */
.page-products .features-section {
  padding: 2.5rem 1.25rem;
  background: var(--page-card-bg, #222);
  position: relative;
}
.page-products .features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--page-accent, #e63946), var(--page-gold, #f4a261));
}
.page-products .features-section h2 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1.8rem;
  text-align: center;
  color: var(--color-text, #f8f9fa);
}
.page-products .features-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.page-products .feature-card {
  background: var(--page-bg-start, #1a1a1a);
  border-left: 4px solid var(--page-accent, #e63946);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  transition: border-color 0.2s;
  list-style: none;
}
.page-products .feature-card[open] {
  border-left-color: var(--page-gold, #f4a261);
}
.page-products .feature-card summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.page-products .feature-card summary::-webkit-details-marker {
  display: none;
}
.page-products .feature-card summary:hover,
.page-products .feature-card summary:focus-visible {
  background: rgba(255,255,255,0.04);
  outline: none;
}
.page-products .feature-card summary:focus-visible {
  outline: 2px solid var(--page-accent, #e63946);
  outline-offset: -2px;
}
.page-products .feat-num {
  font-family: "DIN Condensed", "Impact", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--page-accent, #e63946);
  min-width: 2.2rem;
  line-height: 1;
}
.page-products .feat-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}
@media (min-width: 480px) {
  .page-products .feat-icon {
    width: 40px;
    height: 40px;
  }
}
.page-products .feat-title {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text, #f8f9fa);
  flex: 1;
}
.page-products .feat-detail {
  padding: 0 1.2rem 1.2rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text, #f8f9fa);
  opacity: 0.82;
}
@media (min-width: 640px) {
  .page-products .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  .page-products .feature-card {
    border-left: none;
    border-top: 4px solid var(--page-accent, #e63946);
    border-radius: 8px;
  }
  .page-products .feature-card[open] {
    border-top-color: var(--page-gold, #f4a261);
  }
  .page-products .feature-card summary {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1rem 0.8rem;
  }
  .page-products .feat-num {
    font-size: 2rem;
  }
  .page-products .feat-detail {
    text-align: center;
    padding: 0 1rem 1.2rem;
  }
}

/* ---- 下载方式 ---- */
.page-products .download-section {
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.page-products .download-section h2 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1.8rem;
  color: var(--color-text, #f8f9fa);
}
.page-products .download-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  max-width: 600px;
  margin: 0 auto;
}
.page-products .qrcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.page-products .qrcode-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: 2px solid var(--page-border-light, #444);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  transition: transform 0.2s;
  cursor: pointer;
}
.page-products .qrcode-img:hover {
  transform: scale(1.04);
}
@media (min-width: 480px) {
  .page-products .qrcode-img {
    width: 180px;
    height: 180px;
  }
}
.page-products .qrcode-label {
  font-size: 0.9rem;
  color: var(--color-secondary, #f4a261);
  margin: 0;
}
.page-products .dl-btns {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 280px;
}
.page-products .dl-btns .button {
  display: block;
  width: 100%;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  background: var(--page-accent, #e63946);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  text-align: center;
}
.page-products .dl-btns .button:hover,
.page-products .dl-btns .button:focus-visible {
  background: var(--color-button-hover, #c1121f);
  outline: 2px solid var(--page-gold, #f4a261);
  outline-offset: 3px;
  transform: scale(1.02);
}
.page-products .dl-btns .button--secondary {
  background: transparent;
  border: 2px solid var(--page-gold, #f4a261);
  color: var(--page-gold, #f4a261);
}
.page-products .dl-btns .button--secondary:hover,
.page-products .dl-btns .button--secondary:focus-visible {
  background: var(--page-gold, #f4a261);
  color: #1a1a1a;
}
@media (min-width: 480px) {
  .page-products .dl-btns {
    flex-direction: row;
    max-width: 400px;
  }
}

/* ---- 更新日志 ---- */
.page-products .changelog-section {
  padding: 2.5rem 1.25rem;
  background: var(--page-card-bg, #222);
  text-align: center;
}
.page-products .changelog-section h2 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1.8rem;
  color: var(--color-text, #f8f9fa);
}
.page-products .changelog-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.8rem;
  max-width: 640px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.page-products .changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--page-bg-start, #1a1a1a);
  border-radius: 6px;
  border-left: 3px solid var(--page-gold, #f4a261);
}
.page-products .cl-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.page-products .cl-badge--new {
  background: var(--page-accent, #e63946);
  color: #fff;
}
.page-products .cl-badge--opt {
  background: var(--page-gold, #f4a261);
  color: #1a1a1a;
}
.page-products .cl-badge--speed {
  background: #2d6a4f;
  color: #fff;
}
.page-products .cl-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text, #f8f9fa);
  flex: 1;
}
.page-products .changelog-section .button--secondary {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  background: transparent;
  border: 2px solid var(--page-gold, #f4a261);
  color: var(--page-gold, #f4a261);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.page-products .changelog-section .button--secondary:hover,
.page-products .changelog-section .button--secondary:focus-visible {
  background: var(--page-gold, #f4a261);
  color: #1a1a1a;
  outline: 2px solid var(--page-accent, #e63946);
  outline-offset: 3px;
}

/* ---- 推广横幅 ---- */
.page-products .promo-banner {
  padding: 0;
  line-height: 0;
}
.page-products .promo-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* ---- 桌面端增强 (768px+) ---- */
@media (min-width: 768px) {
  .page-products .breadcrumb {
    padding: 1.5rem 2rem 0;
    font-size: 0.9rem;
  }
  .page-products .app-hero {
    padding: 2rem 2rem 3.5rem;
  }
  .page-products .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .page-products .phone-col {
    flex: 0 0 auto;
    justify-content: flex-end;
  }
  .page-products .text-col {
    text-align: left;
  }
  .page-products .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }
  .page-products .features-section,
  .page-products .download-section,
  .page-products .changelog-section {
    padding: 3.5rem 2rem;
  }
  .page-products .download-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
  }
  .page-products .qrcode-img {
    width: 200px;
    height: 200px;
  }
  .page-products .dl-btns {
    flex-direction: column;
    max-width: 240px;
  }
  .page-products .changelog-list {
    gap: 1rem;
  }
  .page-products .changelog-item {
    padding: 1rem 1.2rem;
  }
}

/* ---- 宽屏 (1024px+) ---- */
@media (min-width: 1024px) {
  .page-products .breadcrumb {
    padding: 2rem 3rem 0;
  }
  .page-products .app-hero {
    padding: 2.5rem 3rem 4rem;
  }
  .page-products .hero-inner {
    gap: 5rem;
  }
  .page-products .phone-body {
    width: 280px;
    height: 570px;
    border-radius: 44px;
  }
  .page-products .features-section,
  .page-products .download-section,
  .page-products .changelog-section {
    padding: 4rem 3rem;
  }
  .page-products .features-grid {
    gap: 1.8rem;
  }
}

/* ---- 极宽屏 (1400px+) ---- */
@media (min-width: 1400px) {
  .page-products .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
}
