/* 小程序首页服务岛 → 官网：统一「左叙事 + 右价目」 */

.mp-store {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 1.15rem 1.5rem 1rem;
  position: relative;
  z-index: 2;
}

.mp-island {
  border-radius: 1.35rem;
  overflow: hidden;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.mp-island__veil,
.mp-island__mesh,
.mp-fx {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.mp-island--site {
  border: 1px solid rgba(180, 150, 90, 0.22);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mp-island--site .mp-island__veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, transparent 36%),
    linear-gradient(165deg, #f7f4ee 0%, #eef1f6 100%);
}

.mp-island--site .mp-island__mesh {
  background: radial-gradient(ellipse 90% 80% at 0% 0%, rgba(201, 169, 98, 0.18) 0%, transparent 58%);
}

.mp-island--ads {
  border: 1px solid rgba(61, 111, 217, 0.2);
  box-shadow: 0 12px 36px rgba(61, 111, 217, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.mp-island--ads .mp-island__veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 34%),
    linear-gradient(135deg, #eef3ff 0%, #dce8ff 100%);
}

.mp-island--ads .mp-island__mesh {
  background: radial-gradient(ellipse 90% 80% at 0% 100%, rgba(61, 111, 217, 0.16) 0%, transparent 58%);
}

.mp-island--vis {
  border: 1px solid rgba(107, 91, 149, 0.2);
  box-shadow: 0 12px 36px rgba(107, 91, 149, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.mp-island--vis .mp-island__veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 34%),
    linear-gradient(135deg, #f6f3fb 0%, #eee8f6 100%);
}

.mp-island--vis .mp-island__mesh {
  background: radial-gradient(ellipse 88% 76% at 100% 0%, rgba(107, 91, 149, 0.16) 0%, transparent 58%);
}

html[data-theme="dark"] .mp-island--site {
  border-color: rgba(201, 169, 98, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .mp-island--site .mp-island__veil {
  background: linear-gradient(165deg, rgba(22, 18, 12, 0.98) 0%, rgba(14, 16, 24, 0.98) 100%);
}

html[data-theme="dark"] .mp-island--site .mp-island__mesh {
  background: radial-gradient(ellipse 90% 80% at 0% 0%, rgba(201, 169, 98, 0.22) 0%, transparent 58%);
}

html[data-theme="dark"] .mp-island--ads {
  border-color: rgba(61, 111, 217, 0.32);
  box-shadow: none;
}

html[data-theme="dark"] .mp-island--ads .mp-island__veil {
  background: linear-gradient(135deg, rgba(8, 14, 32, 0.98) 0%, rgba(12, 22, 48, 0.96) 100%);
}

html[data-theme="dark"] .mp-island--ads .mp-island__mesh {
  background: radial-gradient(ellipse 90% 80% at 0% 100%, rgba(61, 111, 217, 0.26) 0%, transparent 58%);
}

html[data-theme="dark"] .mp-island--vis {
  border-color: rgba(107, 91, 149, 0.35);
  box-shadow: none;
}

html[data-theme="dark"] .mp-island--vis .mp-island__veil {
  background: linear-gradient(135deg, rgba(18, 14, 28, 0.98) 0%, rgba(22, 16, 36, 0.96) 100%);
}

html[data-theme="dark"] .mp-island--vis .mp-island__mesh {
  background: radial-gradient(ellipse 88% 76% at 100% 0%, rgba(107, 91, 149, 0.26) 0%, transparent 58%);
}

.mp-island__body {
  align-items: stretch;
  display: flex;
  gap: 1.4rem;
  justify-content: space-between;
  min-height: 13.5rem;
  padding: 1.35rem 1.35rem 1.4rem;
  position: relative;
  z-index: 1;
}

.mp-island__left {
  color: inherit;
  display: flex;
  flex: 0 1 18.5rem;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.mp-island__intro {
  color: inherit;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.mp-island__eyebrow {
  color: #8a7340;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.36em;
}

.mp-island--ads .mp-island__eyebrow {
  color: #3d6fd9;
}

.mp-island--vis .mp-island__eyebrow {
  color: #6b5b95;
}

html[data-theme="dark"] .mp-island__eyebrow {
  color: #c9a962;
}

html[data-theme="dark"] .mp-island--ads .mp-island__eyebrow {
  color: #7aa6ff;
}

html[data-theme="dark"] .mp-island--vis .mp-island__eyebrow {
  color: #c4b5e8;
}

.mp-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mp-mark {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26, 21, 16, 0.08);
  border-radius: 99rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.3rem;
  height: 1.85rem;
  padding: 0 0.7rem 0 0.35rem;
}

.mp-mark img {
  height: 0.9rem;
  object-fit: contain;
  width: 0.9rem;
}

.mp-mark--cn i {
  background: #1a1510;
  border-radius: 0.25rem;
  color: #faf6ef;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  padding: 0.08rem 0.22rem;
}

html[data-theme="dark"] .mp-mark {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #1a1510;
}

html[data-theme="dark"] .mp-mark--cn i {
  background: #e8d4a8;
  color: #1a1510;
}

.mp-island__name {
  color: #1a1510;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.55rem;
}

.mp-island--site .mp-island__name {
  margin-top: 0.45rem;
}

.mp-island__lead {
  color: rgba(26, 21, 16, 0.42);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

html[data-theme="dark"] .mp-island__name {
  color: #faf6ef;
}

html[data-theme="dark"] .mp-island__lead {
  color: rgba(250, 246, 239, 0.5);
}

.mp-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.mp-engine {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 21, 16, 0.08);
  border-radius: 99rem;
  color: rgba(26, 21, 16, 0.62);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 0.32rem;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem 0.22rem 0.28rem;
  text-decoration: none;
}

.mp-engine img {
  display: block;
  height: 0.9rem;
  object-fit: contain;
  width: 0.9rem;
}

html[data-theme="dark"] .mp-engine {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(250, 246, 239, 0.7);
}

.mp-rail {
  display: grid;
  flex: 1 1 28rem;
  gap: 0.45rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.mp-rail--site {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mp-rail--site::before {
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.45), transparent);
  content: "";
  height: 1px;
  left: 8%;
  pointer-events: none;
  position: absolute;
  right: 8%;
  top: 1.35rem;
}

.mp-rail--ads,
.mp-rail--vis {
  grid-template-columns: 1fr 1fr;
}

.mp-cell {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(26, 21, 16, 0.07);
  border-radius: 1.05rem;
  box-shadow: 0 8px 20px rgba(20, 14, 6, 0.04);
  color: #1a1510;
  display: flex;
  flex-direction: column;
  min-height: 9.4rem;
  overflow: hidden;
  padding: 0.85rem 0.8rem 0.9rem;
  position: relative;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mp-cell:hover {
  transform: translateY(-3px);
}

.mp-cell__idx {
  color: rgba(26, 21, 16, 0.34);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  position: relative;
}

.mp-cell__tag {
  background: #c9a962;
  border-radius: 99rem;
  color: #1a1408;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.12rem 0.4rem;
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
}

.mp-cell__name {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 1.15rem;
}

.mp-cell__mood {
  color: rgba(26, 21, 16, 0.42);
  display: block;
  font-size: 0.72rem;
  margin-top: 0.18rem;
}

.mp-cell__price {
  align-items: baseline;
  display: flex;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: auto;
  padding-top: 0.85rem;
}

.mp-cell__price em {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  margin-right: 0.08rem;
}

.mp-cell__price span {
  color: rgba(26, 21, 16, 0.38);
  font-size: 0.68rem;
  font-weight: 600;
  margin-left: 0.12rem;
}

.mp-cell.is-hot {
  background: #16120c;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(22, 18, 12, 0.22);
  color: #faf6ef;
}

.mp-cell.is-hot .mp-cell__idx {
  color: rgba(232, 212, 168, 0.45);
}

.mp-cell.is-hot .mp-cell__mood {
  color: rgba(232, 212, 168, 0.52);
}

.mp-cell.is-hot .mp-cell__price span {
  color: rgba(232, 212, 168, 0.48);
}

.mp-rail--ads .mp-cell.is-hot {
  background: #1a2744;
}

.mp-rail--ads .mp-cell.is-hot .mp-cell__tag {
  background: #7aa6ff;
  color: #10182c;
}

.mp-rail--vis .mp-cell {
  padding-top: 0;
}

.mp-rail--vis .mp-cell__idx {
  left: 0.8rem;
  position: absolute;
  top: 0.5rem;
  z-index: 1;
}

.mp-rail--vis .mp-cell__name {
  margin-top: 0.15rem;
}

.mp-rail--vis .mp-cell.is-hot .mp-cell__idx,
.mp-cell--still .mp-cell__idx,
.mp-cell--film .mp-cell__idx {
  color: rgba(250, 246, 239, 0.78);
}

.mp-cell__swatch {
  display: block;
  height: 3.1rem;
  margin: 0 -0.8rem 0.7rem;
}

.mp-cell--still .mp-cell__swatch {
  background:
    radial-gradient(circle at 28% 30%, rgba(250, 246, 239, 0.7), transparent 46%),
    linear-gradient(160deg, #e8d5b0, #8a6a3a 58%, #2a2018);
}

.mp-cell--film .mp-cell__swatch {
  background:
    radial-gradient(circle at 70% 24%, rgba(196, 181, 232, 0.55), transparent 46%),
    linear-gradient(160deg, #c4b5e8, #4a3a6a 55%, #1a1224);
  position: relative;
}

.mp-cell--film .mp-cell__swatch i {
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(250, 246, 239, 0.92);
  border-top: 6px solid transparent;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-20%, -50%);
}

.mp-rail--vis .mp-cell.is-hot {
  background: #1a1424;
}

.mp-rail--vis .mp-cell.is-hot .mp-cell__tag {
  background: #c4b5e8;
  color: #1a1424;
}

html[data-theme="dark"] .mp-cell {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #faf6ef;
}

html[data-theme="dark"] .mp-cell__idx {
  color: rgba(232, 212, 168, 0.32);
}

html[data-theme="dark"] .mp-cell__mood,
html[data-theme="dark"] .mp-cell__price span {
  color: rgba(232, 212, 168, 0.42);
}

html[data-theme="dark"] .mp-cell.is-hot {
  background: #c9a962;
  color: #1a1408;
}

html[data-theme="dark"] .mp-cell.is-hot .mp-cell__idx,
html[data-theme="dark"] .mp-cell.is-hot .mp-cell__mood,
html[data-theme="dark"] .mp-cell.is-hot .mp-cell__price span {
  color: rgba(26, 20, 8, 0.5);
}

html[data-theme="dark"] .mp-rail--ads .mp-cell.is-hot {
  background: #3d6fd9;
  color: #f4f7ff;
}

html[data-theme="dark"] .mp-rail--ads .mp-cell.is-hot .mp-cell__idx,
html[data-theme="dark"] .mp-rail--ads .mp-cell.is-hot .mp-cell__mood,
html[data-theme="dark"] .mp-rail--ads .mp-cell.is-hot .mp-cell__price span {
  color: rgba(244, 247, 255, 0.62);
}

html[data-theme="dark"] .mp-rail--vis .mp-cell.is-hot {
  background: #6b5b95;
  color: #f4f0fa;
}

html[data-theme="dark"] .mp-rail--vis .mp-cell.is-hot .mp-cell__idx,
html[data-theme="dark"] .mp-rail--vis .mp-cell.is-hot .mp-cell__mood,
html[data-theme="dark"] .mp-rail--vis .mp-cell.is-hot .mp-cell__price span {
  color: rgba(244, 240, 250, 0.62);
}

/* 建站图纸 */
.mp-fx--wire {
  right: auto;
  width: 18rem;
  z-index: 0;
}

.mp-wire {
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 0.55rem;
  box-sizing: border-box;
  opacity: 0.38;
  padding: 0.45rem;
  position: absolute;
  top: 52%;
  width: 7.6rem;
}

.mp-wire--a {
  left: 1.4rem;
  transform: rotate(-8deg);
}

.mp-wire--b {
  border-color: rgba(74, 140, 184, 0.22);
  left: 6.8rem;
  top: 58%;
  transform: rotate(7deg);
}

.mp-wire__chrome {
  display: flex;
  gap: 0.22rem;
  margin-bottom: 0.35rem;
}

.mp-wire__chrome i {
  background: rgba(201, 169, 98, 0.45);
  border-radius: 50%;
  height: 0.32rem;
  width: 0.32rem;
}

.mp-wire--b .mp-wire__chrome i {
  background: rgba(74, 140, 184, 0.5);
}

.mp-wire__hero {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.22), rgba(201, 169, 98, 0.06));
  border-radius: 0.28rem;
  height: 1.7rem;
}

.mp-wire__cards {
  display: flex;
  gap: 0.22rem;
  margin-top: 0.28rem;
}

.mp-wire__cards b {
  background: rgba(201, 169, 98, 0.16);
  border-radius: 0.18rem;
  flex: 1;
  height: 0.85rem;
}

.mp-wire__split {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.mp-wire__split span {
  background: rgba(74, 140, 184, 0.16);
  border-radius: 0.18rem;
  display: block;
  height: 0.45rem;
}

.mp-wire__split span:last-child {
  width: 62%;
}

html[data-theme="dark"] .mp-wire {
  opacity: 0.42;
}

/* 代投增长线 */
.mp-fx--chart {
  bottom: 0;
  height: 5.6rem;
  left: 0;
  mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 92%);
  opacity: 0.7;
  padding: 0 1.2rem 0.2rem;
  right: 38%;
  z-index: 0;
}

.mp-fx__spark {
  display: block;
  height: 100%;
  width: 100%;
}

html[data-theme="dark"] .mp-fx--chart {
  opacity: 0.55;
}

/* 视觉胶片 */
.mp-fx--lens {
  align-items: flex-end;
  display: flex;
  inset: auto auto 18% 18%;
  opacity: 0.9;
  width: auto;
  z-index: 0;
}

.mp-film {
  display: flex;
  gap: 0.4rem;
  transform: rotate(-8deg);
}

.mp-film__cell {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.42rem;
  box-shadow: 0 10px 22px rgba(40, 24, 64, 0.16);
  display: block;
  height: 4.4rem;
  overflow: hidden;
  position: relative;
  width: 3.15rem;
}

.mp-film__cell::after {
  background: linear-gradient(180deg, transparent 42%, rgba(12, 8, 20, 0.42));
  content: "";
  inset: 0;
  position: absolute;
}

.mp-film__cell--1 {
  background:
    radial-gradient(circle at 30% 28%, rgba(250, 246, 239, 0.55), transparent 42%),
    linear-gradient(160deg, #e8d5b0, #8a6a3a 58%, #2a2018);
}

.mp-film__cell--2 {
  background:
    radial-gradient(circle at 70% 24%, rgba(196, 181, 232, 0.55), transparent 46%),
    linear-gradient(160deg, #c4b5e8, #4a3a6a 55%, #1a1224);
  margin-top: 0.55rem;
}

.mp-film__cell--3 {
  background:
    radial-gradient(circle at 50% 40%, rgba(250, 246, 239, 0.28), transparent 50%),
    linear-gradient(160deg, #faf6ef, #6b5b95 42%, #0e0c12);
}

.mp-film__cell--3 i {
  border-left: 9px solid rgba(250, 246, 239, 0.92);
  border-bottom: 6px solid transparent;
  border-top: 6px solid transparent;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-30%, -50%);
  z-index: 1;
}

html[data-theme="dark"] .mp-film__cell {
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 64rem) {
  .mp-rail--site {
    grid-template-columns: repeat(4, minmax(7.4rem, 1fr));
  }
}

@media (max-width: 52rem) {
  .mp-island__body {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
  }

  .mp-island__left {
    flex: none;
  }

  .mp-rail,
  .mp-rail--site,
  .mp-rail--ads,
  .mp-rail--vis {
    display: grid;
    flex: none;
    min-height: 0;
    overflow: visible;
    width: 100%;
  }

  .mp-rail--site {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-rail--site::before {
    display: none;
  }

  .mp-rail--ads,
  .mp-rail--vis {
    grid-template-columns: 1fr 1fr;
  }

  .mp-cell {
    flex: none;
    height: auto;
    min-height: 0;
    padding: 0.72rem 0.7rem 0.78rem;
  }

  .mp-cell__price {
    margin-top: 0.55rem;
    padding-top: 0.45rem;
  }

  .mp-cell__swatch {
    height: 2.15rem;
    margin-bottom: 0.48rem;
  }

  .mp-fx--wire,
  .mp-fx--chart,
  .mp-fx--lens {
    display: none;
  }
}

@media (max-width: 40rem) {
  .mp-store {
    padding: 1rem 1rem 0.5rem;
  }

  .mp-island__name {
    font-size: 1.35rem;
  }
}
