/* ==================================================================
 * 下载页（/download）—— 页面级样式
 * load 方式：View::render(..., ['css' => ['download']])，由 layout.php 输出
 *           <link ... /static/css/download.css?v=ASSET_VER>
 *
 * 用到的变量全部来自 app.css 的 :root（--text-primary / --bg-raise ...），
 * ★ 注意：--t1 / --t2 / --t3 在 app.css 里是**类选择器**（.t1::after 那种），
 *   不是颜色变量。写 var(--t1) 会整条声明失效 —— 这里不要用。
 * ================================================================== */

.dl {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) calc(var(--tb-h, 56px) + var(--sp-5));
  box-sizing: border-box;
}

/* ---------------- 品牌头 ---------------- */
.dl__hero {
  text-align: center;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
}
.dl__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-3);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  background: var(--grad-brand-soft, var(--brand-50));
  box-shadow: var(--sh-1);
}
.dl__name {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--text-primary);
}
.dl__slogan {
  margin: 0 0 var(--sp-3);
  font-size: 13.5px;
  color: var(--text-second);
}
.dl__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dl__chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.dl__chip--soft {
  color: var(--text-second);
  background: var(--bg-sunken);
  border-color: var(--line);
}
.dl__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-third);
  opacity: .55;
  flex: 0 0 auto;
}

/* ---------------- UA 提示条 ---------------- */
.dl__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--sp-4);
  padding: 11px 13px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--text-primary);
}
.dl__hint b { font-weight: 700; }
.dl__hint span { color: var(--text-second); }
.dl__hint--go {
  border-color: var(--brand-200);
  background: var(--brand-50);
}
.dl__hint--ok {
  border-color: var(--brand-200);
  background: var(--brand-50);
}
.dl__hint__btn {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-invert, #fff);
  background: var(--brand-600);
  text-decoration: none;
  box-shadow: var(--sh-brand, none);
}
.dl__hint__btn:active { transform: scale(.97); }

/* ---------------- 平台卡片 ---------------- */
.dl__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 640px) {
  .dl__cards { grid-template-columns: 1fr 1fr; }
}

.dl__card {
  position: relative;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.dl__card.is-you {
  border-color: var(--brand-300, var(--brand-200));
  box-shadow: var(--sh-2);
}

.dl__c__hd {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: var(--sp-3);
}
.dl__ico {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.dl__ico--and {
  color: #3ddc84;
  background: rgba(61, 220, 132, .12);
}
.dl__ico--ios {
  color: var(--text-primary);
  background: var(--bg-sunken);
}
.dl__c__t { min-width: 0; }
.dl__c__t h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
.dl__c__t p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-third);
}
.dl__rec {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  color: var(--text-invert, #fff);
  background: var(--brand-600);
}

.dl__c__info {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--sp-3);
  font-size: 12px;
  color: var(--text-third);
  min-height: 18px;
}
.dl__c__info--todo { color: var(--text-second); }
.dl__spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand-200);
  border-top-color: var(--brand-600);
  animation: dlspin .9s linear infinite;
  flex: 0 0 auto;
}
@keyframes dlspin { to { transform: rotate(360deg); } }

/* ---------------- 按钮 ---------------- */
.dl__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease-out), filter .2s var(--ease-out);
  box-sizing: border-box;
}
.dl__btn:active { transform: scale(.978); }
.dl__btn--main {
  color: var(--text-invert, #fff);
  background: var(--grad-brand, var(--brand-600));
  box-shadow: var(--sh-brand, var(--sh-1));
}
.dl__btn--ghost {
  color: var(--text-third);
  background: var(--bg-sunken);
  border-color: var(--line);
  cursor: not-allowed;
}

.dl__c__tips {
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.dl__c__tips li {
  position: relative;
  padding-left: 15px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-third);
}
.dl__c__tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300, var(--brand-200));
}
.dl__c__tips a { color: var(--brand-600); text-decoration: none; }

/* iPhone 步骤 */
.dl__steps {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-3) var(--sp-3) var(--sp-3) 30px;
  border-radius: var(--r-md);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-second);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.dl__steps--mini { margin-top: var(--sp-3); }
.dl__steps b { color: var(--text-primary); font-weight: 700; }
.dl__steps.is-flash {
  border-color: var(--brand-400, var(--brand-300));
  background: var(--brand-50);
}

/* ---------------- 二维码 ---------------- */
.dl__qr {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
@media (max-width: 560px) {
  .dl__qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.dl__qr__box {
  width: 148px;
  height: 148px;
  border-radius: var(--r-md);
  background: #fff;                 /* 二维码必须白底，别跟随暗色 */
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
}
.dl__qr__img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.dl__qr__img svg { width: 100%; height: auto; display: block; }
.dl__qr__ph {
  font-size: 11px;
  color: #8a9a92;
  text-align: center;
  line-height: 1.6;
  padding: 0 6px;
  word-break: break-all;
}
.dl__qr__t h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.dl__qr__t p {
  margin: 0 0 var(--sp-3);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-second);
}
.dl__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dl__copy:active { transform: scale(.97); }

/* ---------------- FAQ ---------------- */
.dl__faq {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  border: 1px solid var(--line);
}
.dl__faq__t {
  margin: 0 0 var(--sp-3);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.dl__acc {
  border-top: 1px solid var(--line);
  padding: var(--sp-3) 0;
}
.dl__acc:first-of-type { border-top: 0; padding-top: 0; }
.dl__acc:last-of-type { padding-bottom: 0; }
.dl__acc summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}
.dl__acc summary::-webkit-details-marker { display: none; }
.dl__acc summary::after {
  content: '';
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--text-third);
  border-bottom: 1.8px solid var(--text-third);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease-out);
  flex: 0 0 auto;
}
.dl__acc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.dl__acc p {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-second);
}

.dl__foot {
  margin: var(--sp-5) 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-third);
}

/* ---------------- 暗色微调 ---------------- */
html[data-theme="dark"] .dl__qr__box { border-color: var(--line-strong); }
html[data-theme="dark"] .dl__mark { box-shadow: none; }

/* ==================================================================
 * 登录页「下载宜宇 App」入口（2026-09-20）
 * 放在 download.css 而不是 app2026.css：只有 /login 与 /download 用得到。
 * /login 是 Nuxt 页 —— 那边通过 pages/login.vue 的 useHead 引本文件，
 * 与 PHP 兜底页 tpl/t_login.php 共用同一套 class，两端看起来完全一致。
 * ================================================================== */
.au__app {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 13px 14px;
  border-radius: var(--r-lg, 20px);
  background: var(--brand-50, #eef8f2);
  border: 1px solid var(--brand-100, #d6ecdf);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s var(--ease-out, ease), border-color .2s var(--ease-out, ease);
}
.au__app:active { transform: scale(.985); }
.au__app__ico {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--r-md, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600, #12a054);
  background: var(--bg-raise, #fff);
  box-shadow: var(--sh-1, 0 1px 2px rgba(0, 0, 0, .06));
}
.au__app__tx { min-width: 0; flex: 1 1 auto; }
.au__app__tx b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #16241d);
  line-height: 1.3;
}
.au__app__tx i {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--text-third, #7b8b83);
  line-height: 1.45;
}
.au__app__ar {
  flex: 0 0 auto;
  color: var(--brand-600, #12a054);
  opacity: .75;
  display: flex;
  align-items: center;
}
html[data-theme="dark"] .au__app {
  background: var(--bg-raise, #1b211e);
  border-color: var(--brand-800, #1d4a34);
}
html[data-theme="dark"] .au__app__ico {
  background: var(--bg-sunken, #141917);
}
/* 20260922fx1 · 备用下载（CDN 镜像）链接
   主按钮走同源路径，跨源镜像降级为次要链接；微信/QQ 内置浏览器里主按钮可能无反应，
   这里给用户第二条路。 */
.dl__alt{display:inline-block;margin-top:10px;font-size:13px;color:#8a8f98;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.dl__alt:active{opacity:.6}
