/* Product presentation matches the v7 Figma comparison and gallery components. */
.miaopu-page .shell { width: calc(100% - 48px); max-width: 1200px; }
.miaopu-hero { padding: 48px 0; }
.miaopu-hero .eyebrow { font-size: 12px; line-height: 20px; }
.miaopu-hero h1 { margin-top: 16px; font-size: 48px; line-height: 62px; }
.miaopu-lead { margin-top: 16px; max-width: 760px; font-size: 16px; line-height: 26px; }
.miaopu-summary { margin-top: 16px; font-size: 12px; line-height: 20px; }
.miaopu-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 0;
  border-top: 0;
  border-bottom: 0;
  font-size: 14px;
}
.miaopu-page .miaopu-nav a { min-height: 44px; justify-content: center; border-radius: 6px; }
.miaopu-nav a[aria-current="true"] { background: var(--soft); color: var(--green); }
.miaopu-product { padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.miaopu-product h2,
.miaopu-method h2,
.miaopu-scope h2 { font-size: 32px; line-height: 42px; }
.miaopu-product-description { margin-top: 16px; font-size: 14px; line-height: 23px; }
.miaopu-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 16px 0;
}
.miaopu-comparison figure { min-width: 0; }
.miaopu-comparison figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
  margin-bottom: 8px;
}
.miaopu-comparison a,
.miaopu-gallery-preview,
.miaopu-gallery-thumbs a {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}
.miaopu-comparison img {
  width: 100%;
  height: 320px;
  object-fit: contain;
}
.miaopu-gallery-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 23px;
  font-weight: 500;
}
.miaopu-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}
.miaopu-gallery-preview img {
  width: 100%;
  height: 440px;
  object-fit: contain;
}
.miaopu-gallery-thumbs {
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
  height: 440px;
}
.miaopu-gallery-thumbs a {
  position: relative;
  min-height: 0;
  border: 2px solid transparent;
  transition: border-color 160ms ease;
}
.miaopu-gallery-thumbs a[aria-current="true"] {
  border-color: var(--green);
}
.miaopu-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.miaopu-gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}
.miaopu-gallery-footer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.miaopu-active-caption { font-size: 12px; color: var(--muted); line-height: 20px; }
.miaopu-gallery-footer [data-lightbox] {
  color: var(--green);
  display: inline-block;
  font-size: 12px;
  padding: 8px 0;
}
.miaopu-gallery-footer button {
  flex: none;
  width: 148px;
  min-height: 44px;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.miaopu-gallery-footer button:hover { background: var(--soft); }
.miaopu-method,
.miaopu-scope { padding: 48px 0; }
.miaopu-disclosure { margin-bottom: 24px; font-size: 12px; line-height: 20px; }
.miaopu-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.miaopu-method-grid article { padding: 16px; background: #fff; border-radius: 8px; }
.miaopu-method-grid h3,
.miaopu-method-grid p { font-size: 14px; line-height: 23px; font-weight: 400; }
.miaopu-method-grid h3 { color: var(--muted); letter-spacing: 0; }
.miaopu-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.miaopu-scope-grid article { padding: 24px; background: #fff; border-radius: 8px; }
.miaopu-scope-grid article:last-child { background: var(--soft); }
.miaopu-scope-grid h3 { font-size: 20px; line-height: 33px; }
.miaopu-scope-grid ul { list-style: none; padding: 0; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 23px; }
.miaopu-scope-grid li + li { margin-top: 0; }
.miaopu-next { padding: 32px 0; min-height: 140px; border-top: 1px solid var(--line); }
.miaopu-next strong { font-size: 32px; line-height: 42px; }
@media (max-width: 700px) {
  .miaopu-page .site-header > .shell { height: 68px; gap: 10px; }
  .miaopu-page .brand { font-size: 20px; }
  .miaopu-page .header-actions { gap: 12px; }
  .miaopu-page .back-link { font-size: 12px; }
  .miaopu-hero { padding: 32px 0; }
  .miaopu-hero h1 { font-size: clamp(26px, 8.21vw, 32px); line-height: 1.3; }
  .miaopu-nav { gap: 8px; font-size: 12px; }
  .miaopu-product { padding: 32px 0; }
  .miaopu-product h2,
  .miaopu-method h2,
  .miaopu-scope h2 { font-size: 26px; line-height: 1.3; }
  .miaopu-comparison { gap: 16px; }
  .miaopu-comparison img { height: 180px; }
  .miaopu-gallery-layout { display: block; }
  .miaopu-gallery-preview img { height: 282px; }
  .miaopu-gallery-thumbs {
    display: flex;
    height: 64px;
    gap: 8px;
    margin-top: 16px;
  }
  .miaopu-gallery-thumbs a { flex: 1; min-width: 0; }
  .miaopu-gallery-footer { gap: 16px; align-items: start; }
  .miaopu-gallery-footer p { font-size: 12px; }
  .miaopu-gallery-footer button { font-size: 12px; width: 131px; }
  .miaopu-method, .miaopu-scope { padding: 32px 0; }
  .miaopu-method-grid, .miaopu-scope-grid { grid-template-columns: 1fr; }
  .miaopu-method-grid article { padding: 20px 16px; }
  .miaopu-next strong { font-size: 26px; line-height: 1.3; }
  .miaopu-page .case-links { display: flex; flex-direction: column; align-items: start; gap: 0; }
  .miaopu-page .footer-home { margin-left: 0; }
  .miaopu-page .footer-meta { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .miaopu-gallery-thumbs a { transition: none; }
}
