/* ============================================================
   戴世「墨影」动捕系统 — Product Page Styles
   moca-product.css

   7-Screen layout: Hero → Pain Points → Core Diff →
   Comparison → Data Value → Pioneer Plan → Motion CTA

   Uses --moca-* design tokens from style.css
   BEM: .moca-product-*
   ============================================================ */

/* ─────────────────────────────────────
   1. Product Page Container (match hero content width)
   ───────────────────────────────────── */
.moca-section .moca-container {
  max-width: 1100px;
}

/* ─────────────────────────────────────
   2. Shared Label / Title / Sub
   ───────────────────────────────────── */
.moca-product-label {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--moca-accent);
  margin-bottom: var(--moca-space-4);
}

.moca-product-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--moca-text-primary);
  margin-bottom: var(--moca-space-4);
}

.moca-product-sub {
  font-size: 19px;
  color: var(--moca-text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: var(--moca-space-8);
}

/* Light text variants (on dark backgrounds) */
.moca-section--dark .moca-product-title { color: #fff; }
.moca-section--dark .moca-product-sub   { color: rgba(255,255,255,0.65); }

/* ─────────────────────────────────────
   3. S1: Hero
   ───────────────────────────────────── */
.moca-product-hero {
  position: relative;
  min-height: calc(100dvh - var(--moca-header-total-height) - 56px);
  background: var(--moca-gray-900);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.moca-product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 80% 120% at 28% 50%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.30) 35%,
    rgba(0, 0, 0, 0.08) 55%,
    transparent 70%
  );
  pointer-events: none;
}

.moca-product-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px var(--moca-page-gutter);
  position: relative;
  z-index: 1;
}

.moca-product-hero__left {
  flex: 1;
  max-width: 560px;
}

.moca-product-hero__badge {
  display: inline-block;
  background: rgba(230,57,70,0.15);
  color: #ef9a9a;
  font-size: 17px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--moca-radius-full);
  margin-bottom: var(--moca-space-5);
}

.moca-product-hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}
.moca-product-hero__title em {
  font-style: normal;
  color: #ef5350;
}

.moca-product-hero__tagline {
  font-size: 19px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  white-space: nowrap;
}

.moca-product-hero__actions {
  display: flex;
  gap: var(--moca-space-4);
  flex-wrap: wrap;
}

.moca-product-hero__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.moca-product-hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─────────────────────────────────────
   4. Outline Button (light variant)
   ───────────────────────────────────── */
.moca-btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.moca-btn--outline-light:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ─────────────────────────────────────
   5. S2: Pain Point Rows (alternating text+image)
   ───────────────────────────────────── */
.moca-product-pain-grid {
  display: flex;
  flex-direction: column;
  gap: var(--moca-space-6);
}

.moca-product-pain-row {
  display: flex;
  align-items: center;
  gap: var(--moca-space-8);
  padding: var(--moca-space-7) 0;
}

.moca-product-pain-row--reverse {
  flex-direction: row-reverse;
}

.moca-product-pain-row__text {
  flex: 2;
}

.moca-product-pain-row__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--moca-text-primary);
  margin-bottom: var(--moca-space-3);
}

.moca-product-pain-row__desc {
  font-size: 18px;
  color: var(--moca-text-secondary);
  line-height: 1.7;
}

.moca-product-pain-row__img {
  flex: 3;
  border-radius: var(--moca-radius-md);
  overflow: hidden;
}
.moca-product-pain-row__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ─────────────────────────────────────
   6. S3: Core Differentiation — One Screen, 3 Tall Cards
   ───────────────────────────────────── */
.moca-product-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.moca-product-diff-card {
  background: var(--moca-white);
  border-radius: var(--moca-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.25s var(--moca-ease-out);
  display: flex;
  flex-direction: column;
}
.moca-product-diff-card:hover {
  box-shadow: var(--moca-shadow-md);
}

.moca-product-diff-card__img {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1111 50%, #1a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.moca-product-diff-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.moca-product-diff-card__img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--moca-accent);
  opacity: 0.5;
}

.moca-product-diff-card__body {
  padding: 32px 28px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.moca-product-diff-card__tag {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--moca-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--moca-space-3);
}

.moca-product-diff-card__heading {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--moca-space-3);
  color: var(--moca-text-primary);
}

.moca-product-diff-card__desc {
  font-size: 17px;
  color: var(--moca-text-secondary);
  line-height: 1.75;
  flex: 1;
}

/* ─────────────────────────────────────
   7. S4: Comparison Table
   ───────────────────────────────────── */
.moca-product-compare {
  width: 100%;
}

.moca-product-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--moca-white);
  border-radius: var(--moca-radius-lg);
  overflow: hidden;
  box-shadow: var(--moca-shadow-sm);
}

.moca-product-compare-table thead th {
  background: var(--moca-gray-900);
  color: #fff;
  padding: 18px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.moca-product-compare-table thead th:first-child { border-radius: 12px 0 0 0; }
.moca-product-compare-table thead th:last-child  { border-radius: 0 12px 0 0; }
.moca-product-compare-table thead th.is-highlight {
  background: var(--moca-accent);
}

.moca-product-compare-table tbody td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--moca-gray-100);
  font-size: 16px;
  color: var(--moca-text-secondary);
  vertical-align: middle;
}
.moca-product-compare-table tbody tr:last-child td { border-bottom: none; }

.moca-product-compare-table .col-label {
  font-weight: 600;
  color: var(--moca-text-primary);
  white-space: nowrap;
}

.moca-product-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--moca-radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.moca-product-tag--good  { background: #dcfce7; color: #16a34a; }
.moca-product-tag--bad  { background: #fee2e2; color: #dc2626; }
.moca-product-tag--warn { background: #fef3c7; color: #b45309; }

/* ─────────────────────────────────────
   8. S5: Data Value — One Screen, 3 Flow Cards
   ───────────────────────────────────── */
.moca-product-value-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.moca-product-value-card {
  background: var(--moca-white);
  border-radius: var(--moca-radius-lg);
  padding: 40px 32px;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  transition: box-shadow 0.25s var(--moca-ease-out);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.moca-product-value-card:hover {
  box-shadow: var(--moca-shadow-md);
}

/* Middle card highlighted */
.moca-product-value-card--highlight {
  border-color: rgba(230,57,70,0.15);
  background: linear-gradient(180deg, #fef5f5 0%, #fff 50%, #fef5f5 100%);
}

.moca-product-value-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.moca-product-value-card__icon--red  { background: #fee2e2; color: var(--moca-accent); }
.moca-product-value-card__icon--dark { background: var(--moca-gray-100); color: var(--moca-gray-700); }

.moca-product-value-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--moca-text-primary);
  margin-bottom: var(--moca-space-2);
}

.moca-product-value-card__sub {
  font-size: 17px;
  color: var(--moca-text-muted);
  line-height: 1.6;
  margin-bottom: var(--moca-space-4);
}

.moca-product-value-card__points {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 16px;
  color: var(--moca-text-secondary);
  line-height: 1.8;
}

/* Arrow between cards */
.moca-product-value-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--moca-accent);
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}

/* ─────────────────────────────────────
   9. S6: Pioneer Plan
   ───────────────────────────────────── */
.moca-product-pioneer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.moca-product-pioneer-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,0.2);
  padding: 10px 20px;
  border-radius: var(--moca-radius-md);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--moca-space-6);
}
.moca-product-pioneer-count strong {
  color: #ef5350;
  font-size: 24px;
}

.moca-product-pioneer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.moca-product-pioneer-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.moca-product-pioneer-list li strong { color: #fff; }

.moca-product-pioneer-list__num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--moca-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.moca-product-pioneer-qr {
  background: #fff;
  border-radius: var(--moca-radius-lg);
  padding: 36px;
  text-align: center;
  color: var(--moca-text-primary);
}

.moca-product-pioneer-qr__img {
  width: 160px; height: 160px;
  margin: 0 auto 16px;
  background: var(--moca-gray-100);
  border-radius: var(--moca-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--moca-text-muted);
}

.moca-product-pioneer-qr__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--moca-text-primary);
}
.moca-product-pioneer-qr__sub {
  font-size: 12px;
  color: var(--moca-text-secondary);
  margin-top: 4px;
}

/* ─────────────────────────────────────
   10. S7: Motion Archive
   ───────────────────────────────────── */
.moca-product-motion-hero {
  width: 100%;
  height: 320px;
  border-radius: var(--moca-radius-lg);
  margin-bottom: var(--moca-space-8);
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1111 50%, #1a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}


.moca-product-motion-hero__placeholder {
  font-size: 15px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.moca-product-motion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--moca-space-5);
  margin-bottom: 36px;
}

.moca-product-motion-card {
  background: var(--moca-white);
  border-radius: var(--moca-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.2s var(--moca-ease-out);
  text-align: left;
}
.moca-product-motion-card:hover {
  box-shadow: var(--moca-shadow-md);
}

.moca-product-motion-card__preview {
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1111 50%, #1a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.moca-product-motion-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moca-product-motion-card__body {
  padding: 20px;
}

.moca-product-motion-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--moca-radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--moca-space-2);
}
.moca-product-motion-card__tag--wushu  { background: #fef3c7; color: #b45309; }
.moca-product-motion-card__tag--dance  { background: #fee2e2; color: #dc2626; }
.moca-product-motion-card__tag--sports { background: #dbeafe; color: #2563eb; }
.moca-product-motion-card__tag--stunt  { background: #f3e8ff; color: #7c3aed; }

.moca-product-motion-card__desc {
  font-size: 16px;
  color: var(--moca-text-muted);
  margin-bottom: 10px;
}

.moca-product-motion-card__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--moca-accent);
  text-decoration: none;
  transition: color 0.2s;
}
.moca-product-motion-card__link:hover {
  color: var(--moca-accent-hover);
}

/* ─────────────────────────────────────
   11. Centered Text Utility
   ───────────────────────────────────── */
.moca-product-text-center { text-align: center; }

/* ─────────────────────────────────────
   12. S4: 应用场景 (Scene Cards)
   ───────────────────────────────────── */
.moca-product-scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--moca-space-5);
}

.moca-product-scene-card {
  position: relative;
  border-radius: var(--moca-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--moca-gray-900);
}
.moca-product-scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--moca-ease-out);
}
.moca-product-scene-card:hover img {
  transform: scale(1.04);
}

.moca-product-scene-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ─────────────────────────────────────
   13. S5: 产品介绍 (Product Intro)
   ───────────────────────────────────── */
.moca-product-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--moca-space-5);
}

.moca-product-intro-card {
  border-radius: var(--moca-radius-lg);
  overflow: hidden;
  background: var(--moca-gray-100);
}
.moca-product-intro-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ─────────────────────────────────────
   14. S6: 使用穿戴图 (Wear Demo)
   ───────────────────────────────────── */
.moca-product-wear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--moca-space-5);
}

.moca-product-wear-card {
  border-radius: var(--moca-radius-lg);
  overflow: hidden;
  background: var(--moca-gray-100);
}
.moca-product-wear-card img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
}
.moca-product-wear-card__label {
  text-align: center;
  padding: var(--moca-space-3);
  font-size: 17px;
  font-weight: 600;
  color: var(--moca-text-primary);
  background: var(--moca-white);
}

/* ─────────────────────────────────────
   15. S9: 产品配件清单 (Accessories)
   ───────────────────────────────────── */
.moca-product-accessories {
  border-radius: var(--moca-radius-lg);
  overflow: hidden;
  box-shadow: var(--moca-shadow-md);
}

.moca-product-accessories__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ─────────────────────────────────────
   16. 核心设备件参数表 (Spec Sheet)
   ───────────────────────────────────── */
.moca-product-spec {
  text-align: left;
}

.moca-product-spec__img {
  max-width: 800px;
  margin: 0 auto var(--moca-space-8);
  border-radius: var(--moca-radius-lg);
}

.moca-product-spec__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.moca-product-spec__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--moca-text-primary);
  margin-bottom: var(--moca-space-5);
  text-align: center;
}

.moca-product-spec .moca-btn {
  display: flex;
  margin: 0 auto;
  width: fit-content;
}

/* ─────────────────────────────────────
   17. Responsive — Tablet (≤ 968px)
   ───────────────────────────────────── */
@media (max-width: 968px) {
  .moca-section .moca-container {
    max-width: none;
  }

  .moca-product-hero {
    min-height: unset;
    height: auto;
  }
  .moca-product-hero__banner {
    position: relative;
    aspect-ratio: 16 / 9;
  }
  .moca-product-hero__inner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
  }
  .moca-product-hero__title {
    font-size: clamp(24px, 4.5vw, 32px);
  }
  .moca-product-hero__tagline {
    font-size: 16px;
    white-space: normal;
  }
  .moca-product-hero__badge {
    font-size: 14px;
  }

  .moca-product-sub {
    white-space: normal !important;
  }

  .moca-product-pain-row {
    flex-direction: column !important;
    gap: var(--moca-space-5);
    padding: var(--moca-space-5) 0;
  }
  .moca-product-pain-row__img { width: 100%; }

  .moca-product-diff-grid { grid-template-columns: 1fr; }
  .moca-product-diff-card { flex-direction: row; }
  .moca-product-diff-card__img {
    width: 180px; height: 200px; min-height: unset;
  }
  .moca-product-diff-card__img img {
    object-fit: contain;
  }

  .moca-product-value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .moca-product-value-arrow { display: none; }
  .moca-product-value-card { min-height: auto; padding: 32px 28px; }

  .moca-product-pioneer-grid { grid-template-columns: 1fr; }

  .moca-product-motion-hero { height: 200px; }
  .moca-product-motion-grid { grid-template-columns: repeat(2, 1fr); }

  .moca-product-scene-grid { grid-template-columns: 1fr; }
  .moca-product-scene-card {
    aspect-ratio: 3 / 4;
  }
  .moca-product-scene-card img {
    object-fit: contain;
  }
  .moca-product-intro-grid { grid-template-columns: 1fr; }
  .moca-product-wear-grid { grid-template-columns: 1fr; }
  .moca-product-wear-card img {
    height: auto;
    object-fit: contain;
  }

  /* 对比表格 — 自适应宽度 */
  .moca-product-compare-table thead th {
    padding: 10px 8px;
    font-size: 13px;
    white-space: normal;
    word-break: keep-all;
  }
  .moca-product-compare-table tbody td {
    padding: 10px 8px;
    font-size: 13px;
    white-space: normal;
  }
  .moca-product-compare-table .col-label {
    white-space: normal;
    font-size: 13px;
  }
  .moca-product-tag {
    font-size: 12px;
    padding: 2px 6px;
    white-space: normal;
  }
}

/* ─────────────────────────────────────
   13. Responsive — Mobile (≤ 640px)
   ───────────────────────────────────── */
@media (max-width: 640px) {
  .moca-product-hero__inner {
    padding: 24px var(--moca-page-gutter);
  }
  .moca-product-hero__title {
    font-size: clamp(20px, 5vw, 26px);
    margin-bottom: 12px;
  }
  .moca-product-hero__tagline {
    font-size: 14px;
    white-space: normal;
    margin-bottom: 20px;
  }
  .moca-product-hero__badge {
    font-size: 13px;
    padding: 4px 12px;
    margin-bottom: var(--moca-space-3);
  }
  .moca-product-hero__actions .moca-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .moca-product-motion-grid { grid-template-columns: 1fr; }

  .moca-product-sub {
    font-size: 16px;
  }

  /* 核心差异 — 移动端恢复垂直布局，图片全宽显示 */
  .moca-product-diff-card {
    flex-direction: column;
  }
  .moca-product-diff-card__img {
    width: 100%;
    height: 220px;
    min-height: unset;
  }

  /* 应用场景 — 更高比例，图片更大，完整显示不裁切 */
  .moca-product-scene-card {
    aspect-ratio: 3 / 4;
  }
  .moca-product-scene-card img {
    object-fit: contain;
  }

  /* 多种款式 — 图片完整显示不裁切 */
  .moca-product-wear-card img {
    height: auto;
    object-fit: contain;
  }

  /* 对比表格 — 手机端更紧凑 */
  .moca-product-compare-table thead th {
    padding: 8px 6px;
    font-size: 11px;
  }
  .moca-product-compare-table tbody td {
    padding: 8px 6px;
    font-size: 11px;
  }
  .moca-product-compare-table .col-label {
    font-size: 11px;
  }
  .moca-product-tag {
    font-size: 10px;
    padding: 1px 4px;
  }
}

/* ─────────────────────────────────────
   14. Reduced Motion
   ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {}

