/* App Store 风格下载页 */
.dl-layout.store-page,
.download-body.store-page{
  min-height:100vh;
  background:#fff;
  padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));
  -webkit-font-smoothing:antialiased;
}
html[data-theme="dark"] .dl-layout.store-page,
html[data-theme="dark"] .download-body.store-page{background:#000}

.store-main,
.play-main{
  width:100%;max-width:none;
  margin:0 auto;
  padding:4px 20px 32px;
}

/* —— 顶部：图标 + 名称 + 获取 —— */
.store-hero{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:8px 0 18px;
}
.store-hero-icon{flex-shrink:0}
.store-icon{
  display:block;
  width:118px;height:118px;
  border-radius:26px;
  object-fit:cover;
  background:#f2f2f7;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 8px 24px rgba(0,0,0,.08);
}
html[data-theme="dark"] .store-icon{
  background:#1c1c1e;
  box-shadow:0 4px 20px rgba(0,0,0,.35);
}

.store-hero-body{
  flex:1;
  min-width:0;
  padding-top:4px;
}
.store-name{
  margin:0 0 4px;
  font-size:22px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.02em;
  color:var(--text);
}
.store-publisher{
  margin:0 0 14px;
  font-size:15px;
  line-height:1.3;
  color:var(--text-muted);
}

.store-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.store-cta[hidden],
.store-guide[hidden],
.store-desktop[hidden]{
  display:none!important;
}
.store-get-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  height:32px;
  padding:0 22px;
  border:none;
  border-radius:999px;
  background:#007aff;
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
  text-decoration:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:opacity .15s ease, transform .1s ease;
}
.store-get-btn:active{opacity:.82;transform:scale(.97)}
.store-get-btn--open{background:#34c759}
.store-get-btn--disabled{
  background:#c7c7cc;
  color:#fff;
  cursor:not-allowed;
}
html[data-theme="dark"] .store-get-btn--disabled{background:#3a3a3c}

.store-more-btn{
  width:32px;height:32px;
  border:none;border-radius:50%;
  background:#f2f2f7;
  color:var(--text);
  font-size:18px;line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
html[data-theme="dark"] .store-more-btn{background:#1c1c1e}

.store-cta-note{
  flex:1 1 100%;
  margin:2px 0 0;
  font-size:11px;
  color:var(--text-muted);
}

/* —— 指标栏（评分 / 价格 / 版本） —— */
.store-metrics{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:0;
  margin:0 0 22px;
  padding:12px 0;
  border-top:1px solid rgba(60,60,67,.12);
  border-bottom:1px solid rgba(60,60,67,.12);
}
html[data-theme="dark"] .store-metrics{
  border-color:rgba(84,84,88,.45);
}
.store-metric{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:0;
  text-align:center;
}
.store-metric-top{
  font-size:20px;
  font-weight:700;
  line-height:1.1;
  color:var(--text);
  font-style:normal;
}
.store-metric-stars{
  font-size:8px;
  letter-spacing:.5px;
  color:#8e8e93;
  line-height:1;
}
.store-metric em{
  font-size:11px;
  font-style:normal;
  color:var(--text-muted);
  white-space:nowrap;
}
.store-metric-sep{
  width:1px;
  align-self:stretch;
  margin:4px 0;
  background:rgba(60,60,67,.12);
  flex-shrink:0;
}
html[data-theme="dark"] .store-metric-sep{background:rgba(84,84,88,.45)}

/* —— 截图横滑 —— */
.store-shots{
  margin:0 -20px 24px;
  padding:0;
  overflow:visible;
}
.store-shots-track{
  display:flex;
  gap:12px;
  padding:0 20px 4px;
  scroll-padding-inline:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.store-shots-track::-webkit-scrollbar{display:none}
.store-shot{
  flex:0 0 auto;
  margin:0;
  scroll-snap-align:start;
}
.store-shot img{
  display:block;
  width:200px;
  height:356px;
  object-fit:cover;
  border-radius:18px;
  background:#f2f2f7;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
}
html[data-theme="dark"] .store-shot img{background:#1c1c1e;box-shadow:0 4px 20px rgba(0,0,0,.4)}

/* —— 内容区块 —— */
.store-panel{
  padding:20px 0;
  border-top:1px solid rgba(60,60,67,.12);
}
html[data-theme="dark"] .store-panel{border-color:rgba(84,84,88,.45)}
.store-panel:first-of-type{border-top:none;padding-top:0}

.store-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.store-panel-head h2{
  margin:0;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--text);
}
.store-panel-tag{
  font-size:11px;
  font-weight:600;
  padding:3px 8px;
  border-radius:6px;
  background:#eef4ff;
  color:#007aff;
}
.store-panel-tag--green{background:#e8f5e9;color:#2e7d32}

.store-version-line{
  margin:0 0 8px;
  font-size:13px;
  color:var(--text-muted);
}
.store-whatsnew{
  margin:0;
  font-size:15px;
  line-height:1.55;
  color:var(--text);
}
.store-whatsnew p{margin:0 0 8px}
.store-whatsnew ul,.store-whatsnew ol{margin:0 0 8px;padding-left:20px}
.store-whatsnew li{margin-bottom:4px}

.store-desc-wrap{position:relative}
.store-desc{
  margin:0;
  font-size:15px;
  line-height:1.55;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.store-desc.is-expanded{
  display:block;
  -webkit-line-clamp:unset;
}
.store-desc-more{
  margin-top:6px;
  padding:0;
  border:none;
  background:none;
  color:#007aff;
  font-size:15px;
  font-weight:500;
  cursor:pointer;
}
html[data-theme="dark"] .store-desc-more{color:#0a84ff}

.store-steps{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:store-step;
}
.store-steps li{
  position:relative;
  padding:0 0 12px 28px;
  font-size:15px;
  line-height:1.5;
  color:var(--text);
}
.store-steps li:last-child{padding-bottom:0}
.store-steps li::before{
  counter-increment:store-step;
  content:counter(store-step);
  position:absolute;
  left:0;top:1px;
  width:20px;height:20px;
  border-radius:50%;
  background:#007aff;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:20px;
  text-align:center;
}
html[data-theme="dark"] .store-steps li::before{background:#0a84ff}

.store-desktop-tip{
  margin:0 0 14px;
  font-size:15px;
  line-height:1.55;
  color:var(--text-muted);
}
.store-url-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  margin-bottom:18px;
  border-radius:12px;
  background:#f2f2f7;
}
html[data-theme="dark"] .store-url-row{background:#1c1c1e}
.store-url-row code{
  flex:1;
  min-width:0;
  font-size:12px;
  word-break:break-all;
  color:var(--text);
}
.store-url-copy{
  flex-shrink:0;
  border:none;
  border-radius:999px;
  padding:7px 14px;
  background:#007aff;
  color:#fff;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.store-qr{
  display:block;
  margin:0 auto;
  padding:10px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
}

/* —— 信息表 —— */
.store-info{margin:0}
.store-info-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:11px 0;
  border-bottom:1px solid rgba(60,60,67,.08);
}
.store-info-row:last-child{border-bottom:none;padding-bottom:0}
html[data-theme="dark"] .store-info-row{border-color:rgba(84,84,88,.25)}
.store-info-row dt{
  margin:0;
  font-size:15px;
  color:var(--text-muted);
  flex-shrink:0;
}
.store-info-row dd{
  margin:0;
  font-size:15px;
  color:var(--text);
  text-align:right;
}

/* —— 安装提示 —— */
.store-tip-list{
  margin:0;
  padding:0;
  list-style:none;
}
.store-tip-list li{
  position:relative;
  padding:0 0 10px 14px;
  font-size:14px;
  line-height:1.55;
  color:var(--text-muted);
}
.store-tip-list li:last-child{padding-bottom:0}
.store-tip-list li::before{
  content:'';
  position:absolute;
  left:0;top:.55em;
  width:5px;height:5px;
  border-radius:50%;
  background:#8e8e93;
}

/* —— 导航栏适配 —— */
.store-page .ios-nav-inline .ios-nav-title{opacity:0}
.play-page .ios-nav-title,
.desktop-page .ios-nav-title{color:var(--text)}

.dl-layout[hidden]{display:none!important}

@media (max-width:380px){
  .store-icon{width:100px;height:100px;border-radius:22px}
  .store-name{font-size:20px}
  .store-metric-top{font-size:17px}
  .store-shot img{width:168px;height:300px}
}

@media (min-width:768px){
  .store-main{padding-inline:24px}
  .store-shots{margin-inline:-24px}
  .store-shots-track{padding-inline:24px;scroll-padding-inline:24px}
  .play-main{padding-inline:24px}
  .play-shots-track{padding-inline:24px}
}

/* ══════════════════════════════════════
   Android · Google Play 风格
   ══════════════════════════════════════ */
.play-page{
  min-height:100vh;
  background:#f6f8fa;
  padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));
}
html[data-theme="dark"] .play-page{background:#121212}

.play-main{
  padding:12px 16px 32px;
}

.play-hero{
  text-align:center;
  padding:16px 12px 20px;
}
.play-icon{
  width:96px;height:96px;
  border-radius:22px;
  object-fit:cover;
  margin:0 auto 14px;
  display:block;
  box-shadow:0 4px 16px rgba(0,0,0,.12);
}
html[data-theme="dark"] .play-icon{box-shadow:0 4px 20px rgba(0,0,0,.45)}
.play-name{
  margin:0 0 4px;
  font-size:24px;font-weight:500;
  color:var(--text);
  letter-spacing:-.01em;
}
.play-dev{
  margin:0 0 6px;
  font-size:14px;
  color:#01875f;
  font-weight:500;
}
html[data-theme="dark"] .play-dev{color:#4caf50}
.play-tagline{
  margin:0;
  font-size:12px;
  color:var(--text-muted);
}

.play-install-card{
  background:var(--panel-bg);
  border-radius:16px;
  padding:18px 16px;
  margin-bottom:16px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
html[data-theme="dark"] .play-install-card{
  border:1px solid #2a2a2a;
  box-shadow:none;
}
.play-install-btn{
  display:block;width:100%;
  min-height:48px;
  border:none;border-radius:8px;
  background:#01875f;
  color:#fff;
  font-size:16px;font-weight:500;
  letter-spacing:.02em;
  cursor:pointer;
  text-decoration:none;
  text-align:center;line-height:48px;
  -webkit-tap-highlight-color:transparent;
}
.play-install-btn:active{opacity:.9}
.play-install-btn--open{background:#1a73e8}
html[data-theme="dark"] .play-install-btn--open{background:#8ab4f8;color:#0d1117}
.play-install-link{
  display:block;width:100%;
  margin-top:10px;
  padding:0;border:none;background:none;
  color:#01875f;font-size:14px;font-weight:500;
  cursor:pointer;text-align:center;
}
html[data-theme="dark"] .play-install-link{color:#4caf50}
.play-install-note{
  margin:12px 0 0;
  font-size:12px;
  text-align:center;
  color:var(--text-muted);
}

.play-stats{
  display:flex;
  gap:0;
  margin-bottom:20px;
  padding:14px 0;
  background:var(--panel-bg);
  border-radius:16px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
html[data-theme="dark"] .play-stats{border:1px solid #2a2a2a;box-shadow:none}
.play-stat{
  flex:1;
  text-align:center;
  padding:0 8px;
  border-right:1px solid rgba(0,0,0,.08);
}
.play-stat:last-child{border-right:none}
html[data-theme="dark"] .play-stat{border-color:rgba(255,255,255,.1)}
.play-stat strong{
  display:block;
  font-size:15px;font-weight:500;
  color:var(--text);
  margin-bottom:2px;
}
.play-stat span{
  display:block;
  font-size:10px;
  letter-spacing:.3px;
  color:#f9a825;
  margin-bottom:2px;
}
.play-stat em{
  display:block;
  font-size:11px;font-style:normal;
  color:var(--text-muted);
}

.play-section{
  background:var(--panel-bg);
  border-radius:16px;
  padding:18px 16px;
  margin-bottom:14px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
html[data-theme="dark"] .play-section{border:1px solid #2a2a2a;box-shadow:none}
.play-section--green{
  background:linear-gradient(180deg,#e8f5e9 0%,var(--panel-bg) 100%);
}
html[data-theme="dark"] .play-section--green{
  background:linear-gradient(180deg,#1b2e1f 0%,#141414 100%);
}
.play-section-title{
  margin:0 0 12px;
  font-size:16px;font-weight:500;
  color:var(--text);
}

.play-shots{margin-bottom:14px}
.play-shots .play-section-title{padding:0 4px 10px}
.play-shots-track{
  display:flex;gap:10px;
  overflow-x:auto;padding:0 4px 4px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.play-shots-track::-webkit-scrollbar{display:none}
.play-shot{flex:0 0 auto;margin:0;scroll-snap-align:start}
.play-shot img{
  display:block;width:140px;height:248px;
  object-fit:cover;border-radius:12px;
  background:#e0e0e0;
}

.play-desc{
  margin:0;
  font-size:14px;line-height:1.6;
  color:var(--text-muted);
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.play-desc.is-expanded{
  display:block;-webkit-line-clamp:unset;
}
.play-desc-more{
  margin-top:8px;padding:0;border:none;background:none;
  color:#01875f;font-size:14px;font-weight:500;cursor:pointer;
}
html[data-theme="dark"] .play-desc-more{color:#4caf50}

.play-steps{
  margin:0 0 14px;padding:0;list-style:none;
}
.play-steps li{
  display:flex;align-items:flex-start;gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
  font-size:14px;line-height:1.5;color:var(--text);
}
.play-steps li:last-child{border-bottom:none;padding-bottom:0}
.play-steps li::before{
  content:counter(step);
  counter-increment:step;
  flex-shrink:0;
  width:24px;height:24px;
  border-radius:50%;
  background:#01875f;color:#fff;
  font-size:12px;font-weight:600;
  line-height:24px;text-align:center;
}
.play-section--green .play-steps{counter-reset:step}

.play-browser-tip{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(1,135,95,.08);
}
html[data-theme="dark"] .play-browser-tip{background:rgba(76,175,80,.12)}
.play-browser-icon{
  flex-shrink:0;
  width:36px;height:36px;
  border-radius:50%;
  background:#01875f;color:#fff;
  font-size:20px;line-height:36px;text-align:center;
}
.play-browser-tip p{
  margin:0;font-size:13px;line-height:1.45;color:var(--text-muted);
}

.play-info-list{
  margin:0;padding:0;list-style:none;
}
.play-info-list li{
  display:flex;justify-content:space-between;gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
  font-size:14px;
}
.play-info-list li:last-child{border-bottom:none;padding-bottom:0}
html[data-theme="dark"] .play-info-list li{border-color:rgba(255,255,255,.08)}
.play-info-list span{color:var(--text-muted)}
.play-info-list b{font-weight:500;color:var(--text);text-align:right}

/* ══════════════════════════════════════
   电脑扫码页
   ══════════════════════════════════════ */
.desktop-page{
  min-height:100vh;
  background:#f2f2f7;
  display:flex;align-items:center;
  padding:24px 16px;
}
html[data-theme="dark"] .desktop-page{background:#000}
.desktop-main{
  max-width:400px;margin:0 auto;width:100%;
}
.desktop-card{
  background:var(--panel-bg);
  border-radius:20px;
  padding:32px 24px;
  text-align:center;
  box-shadow:0 4px 24px rgba(0,0,0,.08);
}
html[data-theme="dark"] .desktop-card{border:1px solid #2a2a2a;box-shadow:none}
.desktop-icon{
  width:80px;height:80px;border-radius:18px;
  margin:0 auto 14px;display:block;
}
.desktop-card h1{
  margin:0 0 8px;font-size:22px;font-weight:700;
}
.desktop-desc{
  margin:0 0 20px;font-size:14px;color:var(--text-muted);
}
.desktop-qr{
  display:block;margin:0 auto 18px;
  padding:10px;border-radius:12px;background:#fff;
}
.desktop-url-row{
  display:flex;flex-direction:column;gap:10px;
}
.desktop-url-row code{
  font-size:12px;word-break:break-all;
  color:var(--text-muted);
  padding:10px;background:#f2f2f7;border-radius:10px;
}
html[data-theme="dark"] .desktop-url-row code{background:#1c1c1e}
.desktop-copy{
  border:none;border-radius:10px;
  padding:12px;background:#007aff;color:#fff;
  font-size:15px;font-weight:600;cursor:pointer;
}
