:root { color-scheme: light; --blue: #3b7df0; --blue-d: #2f6bd6; --text: #333; --muted: #777; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: #fff; color: var(--text);
       font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
[hidden] { display: none !important; }

/* 顶部彩色像素块横幅（由 app.js 按屏幕宽度生成） */
.banner { position: relative; height: 130px; overflow: hidden; }
.banner svg { display: block; width: 100%; height: 100%; }

.langs { position: absolute; top: 12px; right: 16px; font-size: 13px; background: rgba(255,255,255,.82);
         border-radius: 14px; padding: 5px 12px; backdrop-filter: blur(4px); }
.langs a { color: #666; text-decoration: none; margin: 0 6px; }
.langs a.on { color: var(--blue); font-weight: 600; }

main { max-width: 560px; margin: -64px auto 0; padding: 0 24px 56px; text-align: center; position: relative; }

.badge { width: 152px; height: 152px; margin: 0 auto; border-radius: 50%; background: #fff;
         box-shadow: 0 2px 14px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; }
.icon { width: 100px; height: 100px; border-radius: 22.5%; overflow: hidden; background: #e9eef8; display: flex;
        align-items: center; justify-content: center; font-size: 44px; font-weight: 700; color: #8aa0c8; }
.icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 { margin: 22px 0 10px; font-size: 26px; font-weight: 500; letter-spacing: .5px; }

.actions { margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 220px; padding: 0 28px;
       height: 50px; border-radius: 4px; background: var(--blue); color: #fff; text-decoration: none; font-size: 17px;
       transition: background .15s; }
.btn:hover { background: var(--blue-d); }
/* 平台图标：Android / iOS 是实心图标，PC 是线条图标；颜色跟随按钮文字色 */
.pi { flex: none; width: 22px; height: 22px; }
.pi-fill { fill: currentColor; stroke: none; }
.pi-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip .pi { width: 16px; height: 16px; margin-right: 7px; }
.apply { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.item { display: inline-flex; flex-direction: column; align-items: center; }
.pkg-info { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.item.primary .pkg-info { font-size: 13px; }
.others { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px 14px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid #cfd9ee;
        border-radius: 17px; color: var(--blue); text-decoration: none; font-size: 13px; background: #fff; }
.chip:hover { background: #f1f6ff; }

.empty { display: inline-block; padding: 14px 22px; border: 1px dashed #c8d2e6; border-radius: 6px; color: var(--muted); font-size: 14px; }

/* 下拉按钮：Android / iOS 提供"直接下载"和"扫码下载"两个选项（PC 没有扫码） */
.dd { position: relative; display: inline-block; }
.dd-toggle { font: inherit; cursor: pointer; }
.dd-toggle svg.caret { width: 12px; height: 12px; margin-left: 8px; fill: none; stroke: currentColor; stroke-width: 2.2;
                 stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.dd-toggle[aria-expanded="true"] svg.caret { transform: rotate(180deg); }
button.btn { border: 0; }
.dd-menu { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 6px); z-index: 5; min-width: 100%;
           background: #fff; border: 1px solid #dfe5f1; border-radius: 6px; box-shadow: 0 6px 20px rgba(30,50,90,.16);
           overflow: hidden; text-align: left; }
.dd-menu a, .dd-menu button { display: block; width: 100%; padding: 11px 18px; border: 0; background: #fff; color: #333;
                              font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.dd-menu a:hover, .dd-menu button:hover { background: #f1f6ff; color: var(--blue); }

/* 二维码：点"扫码下载"才显示 */
.qr { position: relative; display: inline-block; margin-top: 26px; padding: 14px 14px 12px; border: 1px solid #e6e9ef;
      border-radius: 8px; background: #fff; box-shadow: 0 4px 16px rgba(30,50,90,.08); }
.qr-box { line-height: 0; }
.qr-box svg { width: 176px; height: 176px; }
.qr-text { margin-top: 8px; font-size: 13px; color: var(--muted); }
.qr-close { position: absolute; top: 2px; right: 6px; border: 0; background: none; font-size: 22px; line-height: 1;
            color: #aaa; cursor: pointer; }
.qr-close:hover { color: #555; }

.intro { margin-top: 34px; padding-top: 22px; border-top: 1px solid #eef0f4; text-align: left; }
.intro h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.intro p { margin: 0; font-size: 14px; color: #555; line-height: 1.8; white-space: pre-wrap; }

/* 电脑：横幅更高，内容区略放大 */
@media (min-width: 768px) {
  .banner { height: 170px; }
  main { margin-top: -80px; max-width: 640px; }
  .badge { width: 172px; height: 172px; }
  .icon { width: 116px; height: 116px; font-size: 52px; }
  h1 { font-size: 30px; }
  .btn { font-size: 18px; height: 54px; min-width: 240px; }
  .langs { top: 18px; right: 28px; font-size: 14px; }
}
