/* ========================================
   页面专属样式 — 应用中心 (page-products)
   作用域限定，移动端优先
   ======================================== */

.page-products {
  --pr-orange: #FF6B35;
  --pr-blue: #0B3B60;
  --pr-gold: #FFD700;
  --pr-bg-deep: #1A1A2E;
  --pr-bg-warm: #F5E6D0;
  --pr-white: #FFFFFF;
  --pr-gray: #B0B0C0;
  --pr-font-head: 'Arial Black', 'Impact', 'Franklin Gothic Heavy', sans-serif;
  --pr-font-body: Georgia, 'Times New Roman', serif;
  --pr-radius-lg: 16px;
  --pr-radius-pill: 9999px;
  --pr-transition: 280ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --pr-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  --pr-gap: 24px;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-family: var(--pr-font-body);
  font-size: 0.875rem;
  color: var(--pr-gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.page-products .breadcrumb a {
  color: var(--pr-blue);
  text-decoration: none;
  transition: color var(--pr-transition);
}
.page-products .breadcrumb a:hover,
.page-products .breadcrumb a:focus-visible {
  color: var(--pr-orange);
  text-decoration: underline;
}
.page-products .breadcrumb-sep {
  color: var(--pr-gray);
  margin: 0 2px;
  font-size: 1.1em;
}

/* ---------- 通用章节标题 ---------- */
.page-products .section-title {
  font-family: var(--pr-font-head);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--pr-bg-deep);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.page-products .section-desc {
  font-family: var(--pr-font-body);
  font-size: 1.05rem;
  color: var(--pr-gray);
  margin: 0 0 32px;
  max-width: 560px;
}

/* ===== 首屏 Hero ===== */
.page-products .pr-hero {
  background: linear-gradient(135deg, var(--pr-bg-deep) 0%, #2a2a4e 100%);
  padding: 40px 20px 60px;
  position: relative;
  overflow: hidden;
}
.page-products .pr-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-products .pr-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 1;
}

/* ----- mockup 设备 ----- */
.page-products .pr-hero-mockup {
  flex-shrink: 0;
  order: -1;
}
.page-products .mockup-device {
  width: 180px;
  height: 360px;
  background: #111;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,215,0,0.3);
  position: relative;
  margin: 0 auto;
}
.page-products .mockup-notch {
  width: 60px;
  height: 6px;
  background: #222;
  border-radius: 999px;
  margin: 0 auto 6px;
  position: relative;
  top: 2px;
}
.page-products .mockup-screen {
  background: var(--pr-bg-deep);
  border-radius: 18px;
  padding: 10px 8px;
  height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.page-products .mockup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-products .mockup-topbar-time {
  font-size: 0.65rem;
  color: var(--pr-white);
  font-family: var(--pr-font-head);
  letter-spacing: 0.5px;
}
.page-products .mockup-topbar-icons {
  display: flex;
  gap: 4px;
}
.page-products .mockup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pr-gray);
  display: inline-block;
}
.page-products .mockup-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.6rem;
  gap: 2px;
}
.page-products .mockup-team {
  color: var(--pr-white);
  font-family: var(--pr-font-head);
  font-size: 0.55rem;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-products .mockup-score {
  color: var(--pr-gold);
  font-family: var(--pr-font-head);
  font-size: 0.75rem;
  min-width: 18px;
  text-align: center;
}
.page-products .mockup-score[data-animate="true"] {
  animation: pr-score-pulse 1.8s ease-in-out infinite;
}
@keyframes pr-score-pulse {
  0%, 100% { transform: scale(1); color: var(--pr-gold); }
  50% { transform: scale(1.15); color: var(--pr-orange); }
}
.page-products .mockup-divider {
  color: var(--pr-gray);
  font-size: 0.6rem;
  margin: 0 2px;
}
.page-products .mockup-tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.page-products .mockup-tab {
  font-size: 0.5rem;
  color: var(--pr-gray);
  font-family: var(--pr-font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-products .mockup-tab.active {
  color: var(--pr-orange);
  position: relative;
}
.page-products .mockup-tab.active::after {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--pr-orange);
  margin: 2px auto 0;
  border-radius: 2px;
}
.page-products .mockup-homebtn {
  width: 28px;
  height: 28px;
  border: 2px solid #333;
  border-radius: 50%;
  margin: 6px auto 0;
}

/* ----- hero 内容 ----- */
.page-products .pr-hero-content {
  text-align: center;
  max-width: 520px;
}
.page-products .pr-hero-heading {
  font-family: var(--pr-font-head);
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--pr-white);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-products .pr-hero-sub {
  font-family: var(--pr-font-body);
  font-size: 1rem;
  color: var(--pr-gray);
  line-height: 1.6;
  margin: 0 0 24px;
}
.page-products .pr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}
.page-products .btn-download {
  background: var(--pr-orange);
  color: var(--pr-white);
  border: 2px solid transparent;
  padding: 12px 28px;
  font-family: var(--pr-font-head);
  font-size: 1.05rem;
  border-radius: var(--pr-radius-pill);
  cursor: pointer;
  transition: all var(--pr-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}
.page-products .btn-download:hover,
.page-products .btn-download:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(255,107,53,0.45);
}
.page-products .pulse-gold {
  animation: pr-glow-pulse 2s ease-in-out infinite;
}
@keyframes pr-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.3), 0 4px 14px rgba(255,107,53,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255,215,0,0.05), 0 4px 20px rgba(255,107,53,0.5); }
}
.page-products .btn-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.page-products .btn-outline {
  background: transparent;
  color: var(--pr-white);
  border: 2px solid var(--pr-white);
  padding: 12px 28px;
  font-family: var(--pr-font-head);
  font-size: 1rem;
  border-radius: var(--pr-radius-pill);
  text-decoration: none;
  transition: all var(--pr-transition);
  display: inline-flex;
  align-items: center;
}
.page-products .btn-outline:hover,
.page-products .btn-outline:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: var(--pr-gold);
  color: var(--pr-gold);
  transform: translateY(-2px);
}
.page-products .pr-hero-note {
  font-size: 0.8rem;
  color: var(--pr-gray);
  font-family: var(--pr-font-body);
  margin: 8px 0 0;
  opacity: 0.8;
}

/* ===== 下载弹窗 ===== */
.page-products .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.page-products .modal-overlay[hidden] {
  display: none;
}
.page-products .modal-panel {
  background: var(--pr-bg-warm);
  border-radius: var(--pr-radius-lg);
  padding: 36px 32px 32px;
  max-width: 360px;
  width: 100%;
  position: relative;
  box-shadow: var(--pr-card-shadow);
  text-align: center;
}
.page-products .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--pr-bg-deep);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--pr-transition);
}
.page-products .modal-close:hover,
.page-products .modal-close:focus-visible {
  background: rgba(0,0,0,0.08);
}
.page-products .modal-heading {
  font-family: var(--pr-font-head);
  font-size: 1.4rem;
  color: var(--pr-bg-deep);
  margin: 0 0 20px;
}
.page-products .modal-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.page-products .modal-qr {
  border-radius: 12px;
  background: var(--pr-white);
  padding: 8px;
  max-width: 100%;
  height: auto;
}
.page-products .modal-hint {
  font-family: var(--pr-font-body);
  font-size: 0.9rem;
  color: var(--pr-bg-deep);
  line-height: 1.5;
  margin: 0;
}
.page-products .modal-footnote {
  font-size: 0.78rem;
  color: var(--pr-gray);
  margin: 16px 0 0;
  font-family: var(--pr-font-body);
}

/* ===== 功能亮点 ===== */
.page-products .pr-features {
  background: var(--pr-bg-warm);
  padding: 60px 20px;
}
.page-products .pr-features-header {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0;
}
.page-products .pr-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pr-gap);
  max-width: 1200px;
  margin: 0 auto;
}

/* ----- 翻转卡片 ----- */
.page-products .feature-card {
  perspective: 800px;
  height: 260px;
}
.page-products .feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  border-radius: var(--pr-radius-lg);
}
.page-products .feature-card:hover .feature-card-inner,
.page-products .feature-card:focus-within .feature-card-inner {
  transform: rotateY(180deg);
}
.page-products .feature-card-front,
.page-products .feature-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--pr-radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--pr-card-shadow);
}
.page-products .feature-card-front {
  background: var(--pr-white);
  border: 2px solid rgba(255,107,53,0.15);
}
.page-products .feature-card-back {
  background: linear-gradient(135deg, var(--pr-bg-deep) 0%, #2a2a4e 100%);
  color: var(--pr-white);
  transform: rotateY(180deg);
  padding: 20px 18px;
  font-family: var(--pr-font-body);
  font-size: 0.9rem;
  line-height: 1.6;
}
.page-products .feature-card-back p {
  margin: 0;
}
.page-products .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255,107,53,0.08);
  border-radius: 50%;
  margin-bottom: 12px;
}
.page-products .feature-icon svg {
  width: 32px;
  height: 32px;
}
.page-products .feature-title {
  font-family: var(--pr-font-head);
  font-size: 1.2rem;
  color: var(--pr-bg-deep);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.page-products .feature-brief {
  font-family: var(--pr-font-body);
  font-size: 0.85rem;
  color: var(--pr-gray);
  margin: 0;
  line-height: 1.5;
}

/* 同步示意图 */
.page-products .pr-sync-visual {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.page-products .sync-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pr-radius-lg);
  box-shadow: var(--pr-card-shadow);
  object-fit: cover;
}
.page-products .sync-caption {
  font-family: var(--pr-font-body);
  font-size: 0.85rem;
  color: var(--pr-gray);
  font-style: italic;
  margin: 0;
}

/* ===== 使用场景 ===== */
.page-products .pr-scenarios {
  background: var(--pr-white);
  padding: 60px 20px;
}
.page-products .pr-scenarios-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-products .pr-scenarios-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.page-products .scenario-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page-products .scenario-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.page-products .scenario-num {
  font-family: var(--pr-font-head);
  font-size: 2rem;
  color: var(--pr-orange);
  line-height: 1;
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 40px;
}
.page-products .scenario-list strong {
  display: block;
  font-family: var(--pr-font-head);
  font-size: 1.1rem;
  color: var(--pr-bg-deep);
  margin-bottom: 4px;
}
.page-products .scenario-list p {
  font-family: var(--pr-font-body);
  font-size: 0.9rem;
  color: var(--pr-gray);
  line-height: 1.6;
  margin: 0;
}
.page-products .pr-scenario-visual {
  flex-shrink: 0;
}
.page-products .scenario-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pr-radius-lg);
  box-shadow: var(--pr-card-shadow);
  object-fit: cover;
}

/* ===== 用户反馈 ===== */
.page-products .pr-feedback {
  background: var(--pr-bg-deep);
  padding: 60px 20px;
  color: var(--pr-white);
}
.page-products .pr-feedback-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.page-products .pr-feedback .section-title {
  color: var(--pr-white);
}
.page-products .feedback-card {
  background: rgba(255,255,255,0.06);
  border-left: 4px solid var(--pr-gold);
  border-radius: 0 var(--pr-radius-lg) var(--pr-radius-lg) 0;
  padding: 24px 28px;
  margin: 32px 0;
  text-align: left;
}
.page-products .feedback-text {
  font-family: var(--pr-font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pr-white);
  margin: 0 0 12px;
  quotes: "“" "”" "‘" "’";
}
.page-products .feedback-text::before {
  content: "“";
  color: var(--pr-gold);
  font-size: 1.6rem;
  font-family: var(--pr-font-head);
  margin-right: 4px;
}
.page-products .feedback-text::after {
  content: "”";
  color: var(--pr-gold);
  font-size: 1.6rem;
  font-family: var(--pr-font-head);
  margin-left: 4px;
}
.page-products .feedback-meta {
  font-size: 0.85rem;
  color: var(--pr-gray);
  font-style: normal;
}
.page-products .feedback-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 28px 0;
}
.page-products .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 16px 28px;
  border-radius: var(--pr-radius-lg);
  min-width: 140px;
}
.page-products .stat-number {
  font-family: var(--pr-font-head);
  font-size: 2rem;
  color: var(--pr-gold);
  line-height: 1;
  margin-bottom: 6px;
}
.page-products .stat-label {
  font-family: var(--pr-font-body);
  font-size: 0.82rem;
  color: var(--pr-gray);
}
.page-products .feedback-cta {
  font-family: var(--pr-font-body);
  font-size: 0.95rem;
  color: var(--pr-gray);
  margin: 20px 0 0;
}
.page-products .feedback-cta a {
  color: var(--pr-orange);
  text-decoration: underline;
  transition: color var(--pr-transition);
}
.page-products .feedback-cta a:hover {
  color: var(--pr-gold);
}

/* ===== 相关链接 ===== */
.page-products .pr-related {
  background: var(--pr-bg-warm);
  padding: 48px 20px;
}
.page-products .pr-related-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.page-products .pr-related .section-title {
  margin-bottom: 20px;
}
.page-products .pr-related-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
}
.page-products .pr-related-links a {
  font-family: var(--pr-font-head);
  font-size: 0.95rem;
  color: var(--pr-blue);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--pr-transition);
}
.page-products .pr-related-links a:hover,
.page-products .pr-related-links a:focus-visible {
  color: var(--pr-orange);
  border-bottom-color: var(--pr-orange);
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-products .pr-hero-heading {
    font-size: 3rem;
  }
  .page-products .mockup-device {
    width: 200px;
    height: 400px;
  }
  .page-products .pr-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-products .feedback-stats {
    gap: 32px;
  }
}

@media (min-width: 900px) {
  .page-products .pr-hero-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .page-products .pr-hero-mockup {
    order: 0;
    flex: 0 0 240px;
  }
  .page-products .mockup-device {
    width: 220px;
    height: 440px;
  }
  .page-products .pr-hero-content {
    text-align: left;
    flex: 1;
    max-width: 560px;
  }
  .page-products .pr-hero-actions {
    justify-content: flex-start;
  }
  .page-products .pr-hero-heading {
    font-size: 3.6rem;
  }
  .page-products .pr-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-products .pr-scenarios-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .page-products .scenario-list {
    flex: 1;
    max-width: 480px;
  }
  .page-products .pr-scenario-visual {
    flex: 0 0 420px;
  }
  .page-products .section-title {
    font-size: 2.4rem;
  }
}

/* 确保图片响应式 */
.page-products img {
  max-width: 100%;
  height: auto;
}

/* 移动端微调 */
@media (max-width: 400px) {
  .page-products .pr-hero-heading {
    font-size: 1.8rem;
  }
  .page-products .mockup-device {
    width: 150px;
    height: 300px;
  }
  .page-products .feature-card {
    height: 220px;
  }
  .page-products .modal-panel {
    padding: 28px 20px 24px;
  }
}
</style>
