/* 官网 · 微信小程序界面预览 */
.home-mp-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  scroll-margin-top: 5rem;
}

.home-mp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.home-mp-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.home-mp-phone {
  position: relative;
  width: 100%;
  max-width: 232px;
  padding: 3px;
  border-radius: 36px;
  background: linear-gradient(
    155deg,
    #2a2826 0%,
    #5c5752 12%,
    #9a9288 28%,
    #ddd6cc 42%,
    #f2ede6 50%,
    #b0a89c 62%,
    #6a645c 78%,
    #35322f 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.08) inset,
    0 24px 56px rgba(15, 23, 42, 0.22),
    0 8px 20px rgba(15, 23, 42, 0.12);
}

.home-mp-phone--iphone17::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 108px;
  width: 3px;
  height: 52px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #4a4642, #8a8278, #4a4642);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.home-mp-side-btn {
  position: absolute;
  left: -2px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #4a4642, #9a9288, #4a4642);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

.home-mp-side-btn--action {
  top: 92px;
  height: 28px;
}

.home-mp-side-btn--vol-up {
  top: 132px;
  height: 42px;
}

.home-mp-side-btn--vol-down {
  top: 182px;
  height: 42px;
}

.home-mp-bezel {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-mp-bezel::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  z-index: 4;
  pointer-events: none;
}

.home-mp-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  border-radius: 15px;
  background: #000;
  z-index: 3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -1px 2px rgba(255, 255, 255, 0.04);
}

.home-mp-island::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a2a3a, #05080c 70%);
  opacity: 0.85;
}

.home-mp-screen {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  overflow-y: auto;
  background: #f5f5f5;
  min-height: 380px;
  max-height: 420px;
  scrollbar-width: thin;
  padding-top: 30px;
}

.home-mp-label {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--home-text);
  text-align: center;
}

/* —— 小程序 UI 复刻（缩比） —— */
.mp-page {
  padding: 14px 12px 16px;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(0, 0, 0, 0.03), transparent 52%),
    linear-gradient(180deg, #fff 0%, #fafafa 50%, #f5f5f5 100%);
  min-height: 100%;
  font-size: 11px;
  line-height: 1.5;
  color: #1a1a1a;
}

.mp-hero {
  text-align: center;
  margin-bottom: 14px;
}

.mp-hero--compact {
  margin-bottom: 10px;
}

.mp-hero-title {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: 0.02em;
}

.mp-hero-sub {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.52);
  line-height: 1.5;
}

.mp-card {
  border-radius: 12px;
  padding: 12px 11px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.mp-card--center {
  text-align: center;
}

.mp-card-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mp-card-desc {
  margin: 0 0 8px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.55;
}

.mp-card--center .mp-card-desc {
  margin-bottom: 10px;
}

.mp-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mp-step-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #0a0a0a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-step strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mp-step p {
  margin: 0;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.45;
}

.mp-tip {
  font-size: 9px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.mp-section-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.mp-btn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: default;
}

.mp-btn--primary {
  background: linear-gradient(145deg, #1a1a1a, #000);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mp-btn--ghost {
  margin-top: 8px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.mp-status {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.mp-status--ok {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.mp-rid-box {
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  margin-bottom: 4px;
}

.mp-rid-label {
  display: block;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}

.mp-rid-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: ui-monospace, monospace;
  color: #0a0a0a;
}

.mp-rid-inline {
  margin-top: 8px;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.5);
}

.mp-rid-inline code {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  color: #0a0a0a;
}

/* Hero 右侧单手机预览（已迁移至 home.css .home-hero-showcase） */

@media (max-width: 1100px) {
  .home-mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .home-mp-grid {
    grid-template-columns: 1fr;
    max-width: 240px;
    margin: 0 auto;
  }
}
