:root {
  --primary: #1A2332;
  --accent: #EA580C;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --bg: #FFFFFF;
  --bg-page: #F4F5F7;
  --text-primary: #1A2332;
  --text-secondary: #5C6573;
  --text-muted: #94A0AE;
  --border: #ECEEF2;
  --radius: 14px;
  --shadow: 0 10px 32px rgba(26, 35, 50, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.page-m-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.m-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
}

.m-app__hero {
  position: relative;
  margin: 0 -16px 16px;
  padding: calc(18px + env(safe-area-inset-top)) 20px 24px;
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(234, 88, 12, 0.35), transparent 55%),
    linear-gradient(160deg, #1A2332 0%, #2A3548 100%);
  color: #fff;
  overflow: hidden;
}

.m-app__hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.18);
}

.m-app__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.m-app__brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.m-app__brand-name {
  font-size: 17px;
  font-weight: 800;
}

.m-app__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.m-app__title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.m-app__title em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: #FFB38A;
}

.m-app__desc {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.m-app__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.m-app__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.m-app__preview {
  position: relative;
  z-index: 1;
  margin: 18px auto 0;
  width: 58%;
  max-width: 220px;
}

.m-app__preview-frame {
  border-radius: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.m-app__preview-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 19.5;
}

.m-app__preview-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-app__float {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.m-app__float--live {
  top: 52%;
  left: 4%;
  color: #c2410c;
}

.m-app__float--study {
  bottom: 8%;
  right: 4%;
}

.m-app__card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 14px;
}

.m-app__card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.m-app__card-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.m-app__dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-app__dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}

.m-app__dl-btn small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.2;
}

.m-app__dl-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.m-app__dl-btn--ios {
  background: var(--primary);
  color: #fff;
}

.m-app__dl-btn--android {
  background: #3DDC84;
  color: #13351f;
}

.m-app__dl-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

body.is-wx-mask {
  overflow: hidden;
}

.m-app__wx-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: calc(10px + env(safe-area-inset-top)) 18px 28px;
  background: rgba(10, 14, 22, 0.78);
  color: #fff;
  cursor: pointer;
}

.m-app__wx-mask[hidden] {
  display: none;
}

.m-app__wx-mask__guide {
  width: max-content;
  max-width: calc(100vw - 36px);
  text-align: right;
}

.m-app__wx-mask__arrow {
  display: block;
  width: 72px;
  height: 58px;
  margin: 0 4px 10px auto;
  color: #fff;
}

.m-app__wx-mask__guide p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.m-app__wx-mask__ok {
  margin: auto auto 8px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.m-app__share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.m-app__qr {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.m-app__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m-app__share-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.m-app__share-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

.m-app__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.m-app__feature {
  padding: 14px 12px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.04);
}

.m-app__feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.m-app__feature-icon--course { background: #fff7ed; color: var(--accent); }
.m-app__feature-icon--live { background: #eff6ff; color: #2563eb; }
.m-app__feature-icon--sync { background: #f0fdf4; color: #16a34a; }
.m-app__feature-icon--healer { background: #fdf4ff; color: #9333ea; }
.m-app__feature-icon--school { background: #fef9c3; color: #ca8a04; }
.m-app__feature-icon--promo { background: #fce7f3; color: #db2777; }

.m-app__feature h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.m-app__feature p {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-app__screens {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.m-app__screens::-webkit-scrollbar {
  display: none;
}

.m-app__screen {
  flex: 0 0 42%;
  max-width: 168px;
  scroll-snap-align: start;
  text-align: center;
}

.m-app__screen-frame {
  border-radius: 16px;
  padding: 6px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.m-app__screen-inner {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  background: var(--bg-page);
}

.m-app__screen-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-app__screen-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.m-app__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-app__step {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.m-app__step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
}

.m-app__step-head--ios {
  background: #f4f4f5;
}

.m-app__step-head--android {
  background: #ecfdf5;
  color: #14532d;
}

.m-app__step-list {
  margin: 0;
  padding: 12px 14px 14px 32px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.m-app__step-list li + li {
  margin-top: 6px;
}

.m-app__faq-item {
  border-bottom: 1px solid var(--border);
}

.m-app__faq-item:last-child {
  border-bottom: none;
}

.m-app__faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
}

.m-app__faq-q i {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.m-app__faq-item.open .m-app__faq-q i {
  transform: rotate(180deg);
}

.m-app__faq-a {
  display: none;
  padding: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.m-app__faq-item.open .m-app__faq-a {
  display: block;
}

.m-app__cta {
  text-align: center;
  padding: 4px 0 8px;
}

.m-app__cta-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.m-app__foot {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}
