/* ==========================================================================
   Jun Music 1.0 · 下载页营销层
   在 style.css 之上做「沉浸式发布页」：深色 Hero + 白卡片 + 鎏金点缀
   ========================================================================== */

html { scroll-padding-top: 24px; }

body.mkt {
  background: #f4f4f6;
  color: #2c2c31;
}
html[data-theme='dark'] body.mkt { background: #08080b; color: #cfcfd6; }

/* 背景极光弱化，避免打扰内容 */
body.mkt .bg-aurora { opacity: .45; }
html[data-theme='dark'] body.mkt .bg-aurora { opacity: .6; }

.m-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 悬浮主题按钮 */
.m-theme.theme-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(12, 12, 16, .58);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.m-theme.theme-btn:hover { color: #ffd966; transform: scale(1.05); }
html[data-theme='light'] .m-theme.theme-btn .ic-sun { display: block; }
html[data-theme='light'] .m-theme.theme-btn .ic-moon { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.m-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  padding: 74px 0 92px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 78% 8%, #26262f 0%, #121217 42%, #08080b 78%);
  border-radius: 0 0 44px 44px;
  isolation: isolate;
}
.m-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .38), transparent);
}
.m-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}
.m-hero-glow.g1 {
  width: 620px; height: 620px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(212, 175, 55, .26), transparent 66%);
}
.m-hero-glow.g2 {
  width: 520px; height: 520px;
  left: -180px; bottom: -260px;
  background: radial-gradient(circle, rgba(120, 140, 255, .16), transparent 68%);
}
.m-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 20%, #000 0%, transparent 78%);
  opacity: .7;
}
.m-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 30px;
  align-items: center;
}
.m-hero-copy { max-width: 560px; }
.m-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  letter-spacing: 3.2px;
  font-weight: 700;
  color: #f0d78a;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid rgba(240, 215, 138, .26);
  background: rgba(240, 215, 138, .06);
  border-radius: 999px;
}
.m-kicker i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ffd966;
  box-shadow: 0 0 10px rgba(255, 217, 102, .8);
}
.m-hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -2px;
  font-weight: 900;
  color: #fff;
}
.m-gold {
  background: linear-gradient(100deg, #fff2c4 0%, #ffd966 34%, #d4af37 68%, #a87f16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.m-lede {
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .62);
  max-width: 480px;
}
.m-hero-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 30px 0 24px;
  flex-wrap: wrap;
}
.m-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
  color: #0b0b0f !important;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
  transition: transform .2s ease, box-shadow .2s ease;
}
.m-cta svg { width: 19px; height: 19px; }
.m-cta em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: #8b8b93;
  padding-left: 10px;
  border-left: 1px solid rgba(0, 0, 0, .12);
}
.m-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(0, 0, 0, .42); }
.m-cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
  transition: background .2s ease, border-color .2s ease;
}
.m-cta-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); }
.m-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .42);
}
.m-hero-specs li { display: inline-flex; align-items: center; gap: 7px; }
.m-hero-specs svg { width: 14px; height: 14px; opacity: .8; }

/* 三台手机 */
.m-hero-art {
  position: relative;
  height: 600px;
  perspective: 1600px;
}
.m-phone {
  position: absolute;
  width: 224px;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .62);
  background: #0b0b0e;
  transition: transform .5s ease;
}
.m-phone img { display: block; width: 100%; height: auto; }
.m-phone.p-front {
  left: 50%;
  top: 26px;
  width: 240px;
  margin-left: -120px;
  transform: rotate(-3.5deg);
  z-index: 3;
}
.m-phone.p-mid {
  left: 0;
  top: 78px;
  transform: rotate(-9deg) scale(.9);
  opacity: .82;
  z-index: 2;
}
.m-phone.p-back {
  right: 0;
  top: 58px;
  transform: rotate(8deg) scale(.9);
  opacity: .74;
  z-index: 1;
}
.m-hero-art:hover .p-front { transform: rotate(-1.5deg) translateY(-6px); }
.m-hero-art:hover .p-mid { transform: rotate(-11deg) scale(.9) translateX(-6px); }
.m-hero-art:hover .p-back { transform: rotate(10deg) scale(.9) translateX(6px); }

.m-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 20px;
  height: 32px;
  margin-left: -10px;
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
}
.m-scroll-hint i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .6);
  animation: mScroll 1.8s ease-in-out infinite;
}
@keyframes mScroll {
  0%, 100% { transform: translateY(0); opacity: .25; }
  45% { transform: translateY(9px); opacity: 1; }
}

/* ==========================================================================
   数据条：压在 Hero 下沿
   ========================================================================== */
body.mkt .stat-strip {
  margin-top: -38px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 24px 60px rgba(16, 16, 24, .1);
  position: relative;
  z-index: 6;
}
html[data-theme='dark'] body.mkt .stat-strip {
  background: #121218;
  border-color: rgba(255, 255, 255, .07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.m-sec { margin: 104px 0; position: relative; }
.m-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #b8860b;
  text-transform: uppercase;
  margin-bottom: 14px;
}
html[data-theme='dark'] .m-eyebrow { color: #d4af37; }
.m-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.m-head h2 {
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.16;
  color: #111114;
}
html[data-theme='dark'] .m-head h2 { color: #f4f4f7; }
.m-head p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #86868f;
}
html[data-theme='dark'] .m-head p { color: #9a9aa6; }

/* 特性四宫格 */
.m-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.m-feat {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .055);
  border-radius: 24px;
  padding: 26px 22px 24px;
  box-shadow: 0 10px 30px rgba(16, 16, 24, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
html[data-theme='dark'] .m-feat {
  background: #121218;
  border-color: rgba(255, 255, 255, .07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.m-feat:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(16, 16, 24, .1); }
.m-feat-ic {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #1a1a1f, #08080b);
  color: #f0d78a;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.m-feat-ic svg { width: 22px; height: 22px; }
.m-feat h3 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: #141418;
}
html[data-theme='dark'] .m-feat h3 { color: #f2f2f6; }
.m-feat p {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.8;
  color: #83838d;
}
html[data-theme='dark'] .m-feat p { color: #9c9ca8; }

/* 左右分栏 */
.m-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 112px 0;
}
.m-split.flip .m-split-copy { order: 2; }
.m-split.flip .m-split-art { order: 1; }
.m-split-copy h2 {
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 900;
  letter-spacing: -1.1px;
  line-height: 1.2;
  color: #111114;
}
html[data-theme='dark'] .m-split-copy h2 { color: #f4f4f7; }
.m-split-copy > p {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.95;
  color: #7d7d87;
  max-width: 460px;
}
html[data-theme='dark'] .m-split-copy > p { color: #9a9aa6; }
.m-checks {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a52;
}
html[data-theme='dark'] .m-checks li { color: #c3c3cd; }
.m-checks svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: #b8860b;
}

.m-split-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.m-split-art.single { padding: 10px 0; }
.m-shot {
  width: 250px;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 34px 80px rgba(16, 16, 24, .2), 0 2px 0 rgba(255, 255, 255, .6) inset;
  background: #fff;
}
html[data-theme='dark'] .m-shot {
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .6);
}
.m-shot img { display: block; width: 100%; height: auto; }
.m-split-art.two { height: 520px; }
.m-split-art.two .m-shot:first-child {
  width: 228px;
  transform: translateX(-44px) rotate(-4deg);
}
.m-split-art.two .m-shot.tilt {
  position: absolute;
  width: 208px;
  right: 8px;
  top: 54px;
  transform: rotate(7deg);
  z-index: 2;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .28);
}

/* 1.0 更新：深色面板 */
.m-whatsnew {
  background:
    radial-gradient(90% 70% at 12% 0%, #24242c 0%, #101014 46%, #08080b 100%);
  border-radius: 38px;
  padding: 64px 48px 56px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
  position: relative;
}
.m-whatsnew::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .17), transparent 68%);
}
.m-whatsnew .m-head { margin-bottom: 38px; }
.m-whatsnew .m-head h2 { color: #fff; }
.m-whatsnew .m-head p { color: rgba(255, 255, 255, .5); }
.m-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  position: relative;
  z-index: 2;
}
.m-witem {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.m-num {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
  font-weight: 700;
  color: #d4af37;
  line-height: 1;
  padding-top: 2px;
  min-width: 30px;
}
.m-witem h3 { font-size: 14.5px; font-weight: 800; color: #fff; letter-spacing: -.1px; }
.m-witem p { margin-top: 7px; font-size: 12px; line-height: 1.8; color: rgba(255, 255, 255, .5); }

/* 截图轮播 */
.m-gallery-sec { margin: 96px 0; }
.m-gallery-sec .m-head { margin-bottom: 28px; }
body.mkt .m-gallery-sec .slide {
  width: 236px;
  border-radius: 26px;
  background: #fff;
  border-color: rgba(0, 0, 0, .06);
  box-shadow: 0 18px 50px rgba(16, 16, 24, .12);
}
html[data-theme='dark'] body.mkt .m-gallery-sec .slide {
  background: #121218;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
body.mkt .m-gallery-sec .slide img,
body.mkt .m-gallery-sec .slide .shot-err {
  height: auto;
  aspect-ratio: 660 / 1428;
  object-fit: cover;
}
body.mkt .m-gallery-sec .slide figcaption {
  font-size: 11.5px;
  letter-spacing: .5px;
  padding: 10px 12px;
  background: transparent;
  color: #8b8b93;
}
html[data-theme='dark'] body.mkt .m-gallery-sec .slide figcaption { color: #a9a9b4; }
body.mkt .m-gallery-sec .carousel-track { padding: 8px 2px 18px; gap: 16px; }
body.mkt .m-gallery-sec .dots { margin-top: 6px; }
body.mkt .m-gallery-sec .dots .dot { background: rgba(0, 0, 0, .14); }
body.mkt .m-gallery-sec .dots .dot.active { background: #111; }
html[data-theme='dark'] body.mkt .m-gallery-sec .dots .dot { background: rgba(255, 255, 255, .18); }
html[data-theme='dark'] body.mkt .m-gallery-sec .dots .dot.active { background: #ffd966; }

/* 下载区 */
.m-dl-wrap {
  position: relative;
  margin: 104px 0;
  padding: 56px 28px 52px;
  border-radius: 40px;
  background:
    radial-gradient(80% 90% at 50% 0%, #23232b 0%, #0e0e12 52%, #08080b 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
.m-dl-glow {
  position: absolute;
  left: 50%;
  top: -220px;
  width: 620px;
  height: 420px;
  margin-left: -310px;
  background: radial-gradient(circle, rgba(212, 175, 55, .2), transparent 66%);
  pointer-events: none;
}
body.mkt .m-dl-wrap .dl-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .5);
}
html[data-theme='dark'] body.mkt .m-dl-wrap .dl-card {
  background: #15151c;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .6);
}
body.mkt .m-dl-wrap .dl-ver-line h2 { font-size: 30px; }
body.mkt .m-dl-wrap .dl-inner { padding-bottom: 26px; }
.m-theme.theme-btn { transition: opacity .25s ease, transform .25s ease; }
.m-theme.theme-btn.is-away { opacity: 0; pointer-events: none; transform: translateY(-6px); }

/* 通用区块（历史版本 / 日志 / FAQ / 反馈） */
body.mkt .block { margin-top: 34px; }
body.mkt .block-head,
body.mkt .fb-card,
body.mkt .faq-collapsible,
body.mkt .perm-collapsible {
  border-radius: 22px;
}
body.mkt .site-footer { margin-top: 72px; }

/* 移动端 */
@media (max-width: 980px) {
  .m-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .m-hero-copy { max-width: none; }
  .m-hero-art { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
  .m-grid4 { grid-template-columns: 1fr 1fr; }
  .m-split { gap: 40px; }
}

@media (max-width: 760px) {
  .m-wrap { padding: 0 15px 48px; }
  .m-hero { padding: 58px 0 78px; border-radius: 0 0 30px 30px; }
  .m-hero-inner { padding: 0 18px; }
  .m-hero h1 { font-size: 36px; letter-spacing: -1.2px; }
  .m-lede { font-size: 13.5px; }
  .m-hero-actions { gap: 10px; }
  .m-cta, .m-cta-ghost { width: 100%; justify-content: center; }
  .m-cta em { display: none; }
  .m-hero-art { height: 486px; }
  .m-phone { width: 188px; border-radius: 24px; }
  .m-phone.p-front { width: 204px; margin-left: -102px; }
  .m-phone.p-mid { left: -22px; top: 60px; }
  .m-phone.p-back { right: -26px; top: 48px; }
  .m-scroll-hint { display: none; }
  body.mkt .stat-strip { margin-top: -30px; }
  .m-sec { margin: 68px 0; }
  .m-head { margin-bottom: 30px; }
  .m-head h2 { font-size: 27px; }
  .m-grid4 { gap: 12px; }
  .m-feat { padding: 20px 16px 18px; border-radius: 20px; }
  .m-feat-ic { width: 40px; height: 40px; border-radius: 13px; margin-bottom: 14px; }
  .m-split, .m-split.flip { grid-template-columns: 1fr; gap: 26px; margin: 68px 0; }
  .m-split.flip .m-split-copy { order: 1; }
  .m-split.flip .m-split-art { order: 2; }
  .m-split-copy h2 { font-size: 26px; }
  .m-split-art.single { padding: 0; }
  .m-shot { width: 220px; border-radius: 24px; }
  .m-split-art.two { height: 430px; }
  .m-split-art.two .m-shot:first-child { width: 190px; transform: translateX(-30px) rotate(-4deg); }
  .m-split-art.two .m-shot.tilt { width: 176px; right: 0; top: 42px; }
  .m-whatsnew { padding: 36px 20px 30px; border-radius: 28px; }
  .m-timeline { grid-template-columns: 1fr; gap: 0; }
  .m-witem { padding: 16px 0; }
  .m-witem:last-child { border-bottom: none; }
  .m-gallery-sec { margin: 64px 0; }
  body.mkt .m-gallery-sec .slide { width: 190px; border-radius: 22px; }
  .m-dl-wrap { margin: 68px 0; padding: 34px 14px 30px; border-radius: 30px; }
  body.mkt .m-dl-wrap .dl-ver-line h2 { font-size: 26px; }
  body.mkt .site-footer { margin-top: 48px; }
}

@media (max-width: 420px) {
  .m-feat h3 { font-size: 14px; }
  .m-feat p { font-size: 11.5px; }
  .m-hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-phone, .m-cta, .m-feat { transition: none !important; }
  .m-scroll-hint i { animation: none; }
}
