/* App Store 风格安装页 —— 与参考站版式一致，颜色走系统蓝 */
.appstore-page{background:#f2f2f7;}
.appstore-page .content{max-width:720px;margin:0 auto;padding:0 0 40px;}
.appstore-page .standalone{padding:0;}

.as-wrap{background:#fff;min-height:100vh;padding:0 20px 48px;box-sizing:border-box;overflow-x:clip;max-width:100%;}
@media (min-width:721px){
  .as-wrap{margin:24px auto;min-height:0;border-radius:18px;box-shadow:0 1px 3px rgba(0,0,0,.08);padding-top:8px;}
}

/* ---------- 右上角语言切换（浮层定位，不占布局高度） ---------- */
.as-wrap{position:relative;}
.as-topbar{position:absolute;top:6px;right:0;padding:0;z-index:30;line-height:0;}
.as-lang{position:relative;display:inline-block;}
.as-lang-current{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:0;background:transparent;color:#0a84ff;font-size:12px;font-family:inherit;cursor:pointer;line-height:1.2;}
.as-lang-current:active{color:#0070e0;}
.as-lang-current svg{flex:0 0 auto;opacity:1;}
.as-lang-caret{transition:transform .18s ease;}
.as-lang[data-open="1"] .as-lang-caret{transform:rotate(180deg);}
.as-lang-list{position:absolute;right:0;top:calc(100% + 4px);min-width:124px;padding:5px;margin:0;background:#fff;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.16),0 0 0 .5px rgba(0,0,0,.06);z-index:40;line-height:1.3;}
.as-lang-list[hidden]{display:none;}
.as-lang-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:#111;font-size:13px;font-family:inherit;text-align:left;cursor:pointer;line-height:1.3;}
.as-lang-item:hover,.as-lang-item:active{background:#f2f2f7;}
.as-lang-item.is-active{color:#0a84ff;font-weight:600;}
.as-lang-item.is-active::after{content:"✓";font-size:12px;}

/* ---------- 头部 ---------- */
.as-head{display:flex;gap:18px;align-items:flex-start;padding:20px 0 20px;}
.as-icon-box{flex:0 0 auto;}
.as-icon{width:104px;height:104px;border-radius:22.5%;display:block;object-fit:cover;background:#e5e5ea;box-shadow:0 1px 4px rgba(0,0,0,.12);}
.as-icon-fallback{display:flex;align-items:center;justify-content:center;font-size:44px;font-weight:600;color:#8e8e93;}
.as-head-main{min-width:0;flex:1;}
.as-title{margin:2px 0 6px;font-size:clamp(21px,6vw,26px);line-height:1.2;font-weight:700;color:#111;letter-spacing:-.02em;word-break:break-word;}
.as-sub{margin:0 0 14px;font-size:13px;line-height:1.5;color:#8e8e93;}
.as-actions{display:flex;gap:10px;flex-wrap:wrap;}

.as-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 22px;border-radius:19px;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer;border:1px solid transparent;transition:opacity .15s;}
.as-btn-primary{background:#0a84ff;color:#fff;}
.as-btn-primary:active{opacity:.75;}
.as-btn-primary[disabled]{background:#c7c7cc;color:#fff;cursor:default;}
.as-btn-ghost{background:#fff;color:#0a84ff;border-color:#0a84ff;}
.as-btn-ghost:active{background:#f0f7ff;}
.as-btn-block{display:flex;width:100%;}

/* ---------- 三栏数据 ---------- */
.as-facts{display:flex;border-top:1px solid #e5e5ea;border-bottom:1px solid #e5e5ea;padding:14px 0;min-width:0;}
.as-fact{flex:1 1 0;min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 6px;border-right:1px solid #e5e5ea;}
.as-fact:last-child{border-right:0;}
.as-fact-label{font-size:12px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.as-fact-value{font-size:clamp(17px,5.2vw,22px);font-weight:700;color:#111;line-height:1.15;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.as-fact-foot{font-size:12px;color:#8e8e93;min-height:16px;}
.as-stars{display:inline-flex;gap:1px;}
.as-stars svg{width:11px;height:11px;fill:#c7c7cc;}
.as-stars svg.on{fill:#ff9f0a;}

/* ---------- 区块 ---------- */
.as-block{padding:22px 0 4px;border-bottom:1px solid #e5e5ea;}
.as-block:last-of-type{border-bottom:0;}
.as-h2{margin:0 0 12px;font-size:22px;font-weight:700;color:#111;letter-spacing:-.01em;}
.as-desc{margin:0 0 16px;font-size:15px;line-height:1.65;color:#3a3a3c;white-space:pre-wrap;}

/* ---------- 评分 ---------- */
.as-rating{display:flex;gap:26px;align-items:center;}
.as-score{display:flex;flex-direction:column;align-items:center;gap:2px;flex:0 0 auto;}
.as-score strong{font-size:58px;line-height:1;font-weight:700;color:#111;letter-spacing:-.03em;}
.as-score span{font-size:12px;color:#8e8e93;}
.as-bars{flex:1 1 auto;display:flex;flex-direction:column;gap:5px;min-width:0;overflow:hidden;}
.as-bar-row{display:flex;align-items:center;gap:8px;}
.as-bar-stars{display:inline-flex;gap:1px;flex:0 0 60px;justify-content:flex-end;}
.as-bar-stars svg{width:10px;height:10px;fill:#c7c7cc;}
.as-bar-stars svg.on{fill:#8e8e93;}
.as-bar{flex:1;height:7px;border-radius:4px;background:#e5e5ea;overflow:hidden;}
.as-bar i{display:block;height:100%;border-radius:4px;background:#c7c7cc;}
.as-review-total{display:flex;justify-content:space-between;margin-top:12px;font-size:12px;color:#8e8e93;}

.as-review{margin:20px 0 6px;padding:16px;border-radius:12px;background:#f2f2f7;}
.as-review header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px;}
.as-review header strong{font-size:15px;color:#111;}
.as-review-stars{color:#ff9f0a;font-size:12px;letter-spacing:1px;}
.as-review time{margin-left:auto;font-size:12px;color:#8e8e93;}
.as-review p{margin:0 0 8px;font-size:14px;line-height:1.6;color:#3a3a3c;}
.as-review footer{font-size:12px;color:#8e8e93;}

/* ---------- 信息表 ---------- */
.as-info-list{margin:0 0 14px;}
.as-info-list > div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f2f2f7;font-size:14px;min-width:0;}
.as-info-list > div:last-child{border-bottom:0;}
.as-info-list dt{color:#8e8e93;flex:0 0 auto;}
.as-info-list dd{margin:0;color:#111;text-align:right;min-width:0;word-break:break-word;}
.as-legal{margin:12px 0 0;font-size:12px;line-height:1.6;color:#8e8e93;}

/* ---------- 教程 ---------- */
.as-steps{margin:0 0 12px;padding-left:20px;font-size:14px;line-height:1.75;color:#3a3a3c;}
.as-steps li{margin-bottom:8px;}
.as-steps strong{color:#111;}
.as-steps em{font-style:normal;font-weight:600;color:#0a84ff;}
.as-tip{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:#fff8e6;font-size:13px;line-height:1.6;color:#8a6d1f;}

/* ---------- 电脑端扫码页 ---------- */
.qr-page .content{padding:0;}
.qr-page .standalone{padding:0;}
.as-qr{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:32px 24px;box-sizing:border-box;background:#f2f2f7;}
.as-qr-card{display:flex;flex-direction:column;align-items:center;width:100%;max-width:440px;padding:44px 40px 40px;background:#fff;border-radius:24px;box-shadow:0 10px 40px rgba(0,0,0,.10);text-align:center;box-sizing:border-box;}
.as-qr-icon{width:128px;height:128px;border-radius:22.5%;object-fit:cover;background:#e5e5ea;box-shadow:0 4px 14px rgba(0,0,0,.16);display:flex;align-items:center;justify-content:center;font-size:52px;font-weight:600;color:#8e8e93;}
.as-qr-name{margin:20px 0 0;font-size:24px;line-height:1.3;font-weight:600;color:#111;letter-spacing:-.01em;word-break:break-word;max-width:100%;}
.as-qr-code{width:280px;height:280px;max-width:100%;margin:26px 0 0;display:block;image-rendering:pixelated;}
.as-qr-hint{margin:20px 0 0;font-size:18px;font-weight:600;color:#111;}
.as-qr-sub{margin:8px 0 0;font-size:14px;line-height:1.55;color:#8e8e93;}
@media (max-width:520px){
  .as-qr{padding:24px 16px;}
  .as-qr-card{padding:30px 22px 26px;max-width:100%;}
  .as-qr-icon{width:100px;height:100px;}
  .as-qr-name{font-size:19px;margin-top:14px;}
  .as-qr-code{width:210px;height:210px;margin-top:20px;}
  .as-qr-hint{font-size:15px;margin-top:16px;}
  .as-qr-sub{font-size:13px;}
}

/* ---------- 安装教程弹窗（底部弹层） ---------- */
html.as-modal-open{overflow:hidden;}
.as-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center;}
.as-modal[hidden]{display:none;}
.as-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.42);animation:as-fade .18s ease;}
.as-modal-panel{position:relative;width:100%;max-width:520px;max-height:86vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#fff;border-radius:18px 18px 0 0;padding:18px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -10px 36px rgba(0,0,0,.22);animation:as-sheet .22s ease;}
.as-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.as-modal-head .as-h2{margin:0;}
.as-modal-x{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:50%;background:#f2f2f7;color:#8e8e93;font-size:17px;line-height:1;font-family:inherit;cursor:pointer;}
.as-modal-x:active{background:#e5e5ea;}
@keyframes as-fade{from{opacity:0;}to{opacity:1;}}
@keyframes as-sheet{from{transform:translateY(16px);}to{transform:none;}}
@media (min-width:521px){
  .as-modal{align-items:center;}
  .as-modal-panel{border-radius:16px;padding-bottom:20px;}
}

/* ---------- 进度 / 提示 ---------- */
.as-progress{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:12px 18px;border-radius:14px;background:rgba(28,28,30,.94);color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.28);z-index:60;}
.as-progress strong{display:block;font-size:14px;}
.as-progress span{font-size:12px;color:#d1d1d6;}
.as-progress-spinner{width:20px;height:20px;border-radius:50%;border:2px solid rgba(255,255,255,.28);border-top-color:#fff;animation:as-spin .8s linear infinite;flex:0 0 auto;}
@keyframes as-spin{to{transform:rotate(360deg);}}
.as-safari{margin:18px 0 0;font-size:12px;line-height:1.6;color:#8e8e93;text-align:center;}

@media (max-width:430px){
  .as-wrap{padding:0 16px 40px;}
  .as-head{gap:14px;padding:16px 0 16px;}
  .as-icon{width:88px;height:88px;}
  .as-title{font-size:23px;}
  .as-score strong{font-size:48px;}
  .as-rating{gap:18px;}
}
/* 二维码页的手动入口：给被误判成电脑的手机/平板留一条路 */
.as-qr-manual{display:inline-block;margin-top:18px;padding:10px 18px;border-radius:10px;
  font-size:14px;line-height:1.4;color:#0a84ff;text-decoration:none;
  background:rgba(10,132,255,.08);border:1px solid rgba(10,132,255,.25)}
.as-qr-manual:active{background:rgba(10,132,255,.16)}
@media (max-width:520px){.as-qr-manual{font-size:13px;padding:9px 14px}}
