/* Msg2me 应用商城介绍页 / 领取条 — t321
 * 独立命名空间，不模仿 dismall。适配站点浅色与深色。
 */
.m2m-appshop {
  --as-accent: #6366f1;
  --as-accent-deep: #4f46e5;
  --as-accent-soft: #818cf8;
  --as-ink: #0f172a;
  --as-muted: #64748b;
  --as-line: color-mix(in srgb, currentColor 12%, transparent);
  --as-card: #fff;
  --as-hero: #0b1020;
  --as-gold: #e7c27d;
  --as-radius: 18px;
  --as-max: 1120px;
  color: var(--as-ink);
  max-width: var(--as-max);
  margin: 0 auto;
  padding: 8px 20px 72px;
  box-sizing: border-box;
}
html.dark .m2m-appshop,
body.dark .m2m-appshop {
  --as-ink: #e8edf7;
  --as-muted: #94a3b8;
  --as-card: #141a2b;
}
.m2m-appshop *,
.m2m-appshop *::before,
.m2m-appshop *::after { box-sizing: border-box; }

.m2m-appshop .shop-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #94a3b8;
  margin: 8px 0 20px;
}
.m2m-appshop .shop-crumb a { color: #94a3b8; text-decoration: none; }
.m2m-appshop .shop-crumb a:hover { color: var(--as-accent-soft); }

/* Hero */
.as-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(1200px 480px at 80% 20%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(800px 400px at 10% 100%, rgba(15, 23, 42, 0.55), transparent 55%),
    var(--as-hero);
  color: #f8fafc;
  border-radius: calc(var(--as-radius) + 4px);
  padding: 28px 24px 26px;
  margin: 0 0 56px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(165, 180, 252, 0.16);
  box-shadow: 0 24px 60px rgba(8, 11, 24, 0.28);
}
.as-hero-copy { position: relative; z-index: 1; min-width: 0; }
.as-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--as-gold);
}
.as-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.as-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.as-hero .as-lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.86);
  max-width: 38rem;
}
.as-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.as-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(199, 210, 254, 0.22);
}
.as-hero-media {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.as-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.as-section { margin: 0 0 56px; }
.as-section-head { margin: 0 0 22px; max-width: 40rem; }
.as-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--as-ink);
}
.as-section-head p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--as-muted);
}

.as-feature-grid,
.as-step-grid,
.as-pack-grid {
  display: grid;
  gap: 16px;
}
.as-feature-grid { grid-template-columns: 1fr; }
.as-step-grid { grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.as-pack-grid { grid-template-columns: 1fr; }

.as-feature,
.as-step {
  background: var(--as-card);
  border: 1px solid var(--as-line);
  border-radius: 16px;
  padding: 22px 22px 20px;
}
.as-feature h3,
.as-step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--as-ink);
}
.as-feature p,
.as-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--as-muted);
}
.as-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #eef2ff;
  background: var(--as-accent-deep);
}

/* Claim / download panel */
.shop-appshop-claim {
  margin: 0;
  padding: 26px 24px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent 42%),
    var(--as-card);
  border: 1px solid var(--as-line);
}
.shop-appshop-claim.is-community { margin: 0 0 24px; }
.shop-appshop-claim h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--as-ink);
}
.shop-appshop-claim .shop-appshop-lead-sm,
.shop-appshop-claim .shop-appshop-note {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--as-muted);
  margin: 0 0 14px;
}
.shop-appshop-claim .shop-appshop-note { margin: 4px 0 0; font-size: 0.84rem; }
.shop-appshop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}
.shop-appshop-actions button,
.shop-appshop-actions a.shop-appshop-login {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 0;
  background: var(--as-accent-deep);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
  transition: background .15s ease, transform .15s ease;
}
.shop-appshop-actions button:hover,
.shop-appshop-actions a.shop-appshop-login:hover {
  background: #4338ca;
  color: #fff;
  transform: translateY(-1px);
}
.shop-appshop-actions button:disabled { opacity: 0.65; cursor: wait; transform: none; box-shadow: none; }
.shop-appshop-status { min-height: 1.4em; margin: 0 0 6px; font-size: 0.9rem; color: var(--as-muted); }
.shop-appshop-status.is-error { color: #f43f5e; }

/* Product cards */
.as-pack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--as-card);
  border: 1px solid var(--as-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.as-pack:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--as-accent) 45%, var(--as-line));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: inherit;
  text-decoration: none;
}
.as-pack-cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
}
.as-pack-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.as-pack-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.as-pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.as-pack-meta span {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--as-accent-deep);
  background: color-mix(in srgb, var(--as-accent) 12%, transparent);
  border-radius: 999px;
  padding: 3px 8px;
}
html.dark .as-pack-meta span,
body.dark .as-pack-meta span { color: #c7d2fe; }
.as-pack h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--as-ink);
}
.as-pack-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--as-muted);
}
.as-pack-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.as-price {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--as-ink);
  font-variant-numeric: tabular-nums;
}
.as-price small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--as-muted);
  margin-right: 4px;
}
.as-pack-cta {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--as-accent-deep);
}
html.dark .as-pack-cta,
body.dark .as-pack-cta { color: var(--as-accent-soft); }

@media (min-width: 768px) {
  .m2m-appshop { padding-top: 12px; }
  .as-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    padding: 40px 40px 36px;
    gap: 36px;
    margin-bottom: 72px;
  }
  .as-section { margin-bottom: 72px; }
  .as-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .as-step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .as-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .shop-appshop-actions button,
  .shop-appshop-actions a.shop-appshop-login { flex: 0 0 auto; min-width: 220px; }
}
@media (min-width: 1100px) {
  .as-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Community / standalone claim bar: tokens without .m2m-appshop parent */
.shop-appshop-claim {
  --as-accent: #6366f1;
  --as-accent-deep: #4f46e5;
  --as-accent-soft: #818cf8;
  --as-ink: #0f172a;
  --as-muted: #64748b;
  --as-line: color-mix(in srgb, currentColor 12%, transparent);
  --as-card: #fff;
}
html.dark .shop-appshop-claim,
body.dark .shop-appshop-claim {
  --as-ink: #e8edf7;
  --as-muted: #94a3b8;
  --as-card: #141a2b;
}

/* Claim nestled in the dark hero */
.as-hero .shop-appshop-claim {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.as-hero .shop-appshop-claim h2 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.as-hero .shop-appshop-claim .shop-appshop-lead-sm,
.as-hero .shop-appshop-claim .shop-appshop-note { color: rgba(226, 232, 240, 0.76); }
.as-hero .shop-appshop-actions button,
.as-hero .shop-appshop-actions a.shop-appshop-login {
  background: #fff;
  color: #1e1b4b;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.as-hero .shop-appshop-actions button:hover,
.as-hero .shop-appshop-actions a.shop-appshop-login:hover {
  background: #eef2ff;
  color: #1e1b4b;
}
.as-hero .shop-appshop-status { color: rgba(226, 232, 240, 0.8); }
.as-hero .shop-appshop-status.is-error { color: #fecdd3; }
