/* ==========================================================================
   App Store 式移动端（今天 / 游戏 / 应用 / 搜索）
   ----------------------------------------------------------------------
   只在 ≤860px 生效，桌面端完全不受影响（所有规则都在 media query 内，
   或依赖 .pane-as 这类只有移动端才出现的容器）。

   设计对齐 iOS App Store：
   · 大标题 34px 左对齐 + 右上角圆形头像；
   · 横向胶囊分类条，选中态反色；
   · 88% 宽、可横滑吸附的编辑推荐大卡，底部一条渐变压底 +
     图标 / 名称 / 分类 / 「获取」胶囊；
   · 区块标题 22px 粗体带右箭头，副标题一行灰字；
   · 榜单行 60px 圆角图标 + 名称副标题 + 右侧「打开」或云朵下载；
   · 悬浮胶囊底栏，选中项是一块浅色药丸。
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --as-blue: #0A84FF;
    /* 蓝色小字不能用 --as-blue：#0A84FF 在近白底上只有 3:1，
       13px 的「全部 402」「打开」压不住。浅色下换成深一档的同色系。 */
    --as-link: #0A84FF;
    --as-fill: rgba(120, 120, 128, .18);
    --as-fill-2: rgba(120, 120, 128, .10);
    --as-sep: rgba(120, 120, 128, .22);
    --as-card: var(--bg-soft);
    --as-pad: 20px;
  }

  /* 整页：顶部不留白，交给每个栏目的 .as-top 自己排 */
  .page {
    padding: 0 0 calc(96px + env(safe-area-inset-bottom));
    max-width: none;
  }
  body { background: var(--bg); }

  /* 旧顶栏在移动端让位给大标题 */
  .topbar { display: none; }
  .foot { display: none; }

  /* 栏目容器：每个 pane 自己负责左右 20px 的排版 */
  .pane-as {
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
  }
  .pane-as.is-on { display: block; }
  /* 桌面那套「推荐 + 榜单」长页面在手机端整体下线 */
  .pane-desk { display: none !important; }

  /* ---------------------------------------------------------------- 页头 */
  .as-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top)) var(--as-pad) 12px;
  }
  .as-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.032em;
    color: var(--text);
  }
  .as-sub {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--text-3);
    letter-spacing: -.01em;
  }
  .as-avatar {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    background:
      radial-gradient(120% 120% at 30% 20%, #A78BFA 0%, #7C3AED 52%, #5B21B6 100%);
    box-shadow: 0 6px 18px -8px rgba(124, 58, 237, .85), inset 0 1px 0 rgba(255,255,255,.28);
    transition: transform .18s var(--spring);
  }
  .as-avatar:active { transform: scale(.93); }
  .as-avatar svg { width: 20px; height: 20px; }
  .as-avatar b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
  .as-avatar.is-in { color: #fff; }

  /* ---------------------------------------------------------------- 分类条 */
  .as-chips {
    display: flex;
    gap: 8px;
    padding: 2px var(--as-pad) 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .as-chips::-webkit-scrollbar { display: none; }
  .as-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--as-fill-2);
    border: 1px solid var(--as-sep);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background .16s, color .16s, border-color .16s, transform .16s var(--spring);
  }
  .as-chip:active { transform: scale(.96); }
  .as-chip.is-on {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
  }
  .as-chip .as-chip-ico {
    font-size: 14px;
    line-height: 1;
    filter: saturate(1.15);
  }

  /* ---------------------------------------------------------------- 大卡轨道 */
  .as-rail {
    display: flex;
    gap: 12px;
    padding: 0 var(--as-pad) 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .as-rail::-webkit-scrollbar { display: none; }
  .as-rail > * { scroll-snap-align: start; }

  /* 编辑推荐大卡：宽度 84%，右侧留出下一张的边，暗示可横滑 */
  .as-hero {
    position: relative;
    flex: 0 0 84%;
    height: 404px;
    border-radius: 22px;
    overflow: hidden;
    background: #0B0B0F;
    border: 0;
    padding: 0;
    text-align: left;
    color: #fff;
    box-shadow: 0 18px 40px -26px rgba(0,0,0,.9);
    -webkit-tap-highlight-color: transparent;
    transition: transform .22s var(--spring);
  }
  .as-hero:active { transform: scale(.985); }
  .as-hero-art {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
  }
  /* 图标水印：把 1024px 图标放大、模糊，当编辑插画用 */
  .as-hero-mark {
    position: absolute;
    right: -52px; top: -44px;
    width: 264px; height: 264px;
    border-radius: 60px;
    object-fit: cover;
    opacity: .82;
    transform: rotate(12deg);
    filter: saturate(1.32) blur(3px);
    /* 圆形径向淡出：只留一团色块，不留 App 图标的硬直角 */
    -webkit-mask-image: radial-gradient(closest-side, #000 34%, rgba(0,0,0,.55) 62%, transparent 96%);
    mask-image: radial-gradient(closest-side, #000 34%, rgba(0,0,0,.55) 62%, transparent 96%);
    pointer-events: none;
  }
  .as-hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,.58) 66%, rgba(0,0,0,.90) 100%),
      linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 62%);
    pointer-events: none;
  }
  .as-hero-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 18px 18px 16px;
  }
  .as-kicker {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    margin-bottom: 7px;
  }
  .as-hero-title {
    display: block;
    font-size: 27px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.028em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
  }
  .as-hero-sub {
    display: block;
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255,255,255,.74);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .as-hero-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
  }
  .as-hero-foot .ico {
    width: 42px; height: 42px;
    border-radius: 11px;
    box-shadow: 0 6px 14px -8px rgba(0,0,0,.9);
  }
  .as-hero-foot-copy { min-width: 0; }
  .as-hero-foot-copy b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .as-hero-foot-copy span {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: rgba(255,255,255,.62);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .as-get-wrap { margin-left: auto; text-align: center; }
  .as-get {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 74px;
    padding: 0 17px;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22);
    transition: background .16s, transform .16s var(--spring);
  }
  .as-get:active { transform: scale(.94); background: rgba(255,255,255,.34); }
  .as-iap {
    display: block;
    margin-top: 4px;
    font-size: 8.5px;
    line-height: 1.1;
    color: rgba(255,255,255,.52);
    white-space: nowrap;
  }

  /* ---------------------------------------------------------------- 次级卡 */
  .as-mini {
    position: relative;
    display: block;
    width: calc(100% - var(--as-pad) * 2);
    margin: 6px auto 0;
    padding: 16px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(120% 140% at 88% 8%, rgba(255,255,255,.24), transparent 56%),
      radial-gradient(120% 120% at 6% 96%, var(--card-b, #274690), transparent 62%),
      linear-gradient(150deg, #1B1B22, #0C0C11);
    border: 1px solid rgba(255,255,255,.07);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }
  .as-mini-mark {
    position: absolute;
    right: -22px; bottom: -30px;
    width: 132px; height: 132px;
    border-radius: 30px;
    object-fit: cover;
    opacity: .5;
    transform: rotate(-14deg);
    filter: saturate(1.2) blur(1.5px);
    -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 76%);
    mask-image: linear-gradient(200deg, #000 20%, transparent 76%);
  }
  .as-mini-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 20px;
    padding: 0 7px;
    border-radius: 5px;
    background: rgba(255,255,255,.16);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255,255,255,.86);
    margin-bottom: 10px;
  }
  .as-mini-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
  }
  .as-mini-sub {
    margin-top: 5px;
    font-size: 12.5px;
    color: rgba(255,255,255,.66);
    line-height: 1.4;
    max-width: 78%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .as-mini-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
  }
  .as-mini-foot .ico { width: 38px; height: 38px; border-radius: 10px; }
  .as-mini-foot .as-get { margin-left: auto; }

  /* ---------------------------------------------------------------- 区块头 */
  .as-sec {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 26px var(--as-pad) 8px;
  }
  .as-sec-l { min-width: 0; }
  .as-sec h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.028em;
    color: var(--text);
  }
  .as-sec h2 svg { width: 17px; height: 17px; opacity: .55; margin-top: 2px; }
  .as-sec p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--text-3);
  }
  .as-sec-more {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--as-link);
    padding: 4px 0;
  }
  /* 可点的区块标题：整行都是热区，箭头展开后转成向下 */
  .as-sec.is-more {
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 12px;
  }
  .as-sec.is-more:active h2 { opacity: .55; }
  .as-sec.is-more:focus-visible {
    outline: 2px solid var(--as-blue);
    outline-offset: -2px;
  }
  .as-sec-chev {
    display: inline-flex;
    transition: transform .18s var(--spring);
  }
  /* 箭头是「进入下一页」的指示，不再旋转成向下；按下去整体暗一下 */
  .as-sec.is-more:active .as-sec-chev { transform: translateX(2px); }

  /* ---------------------------------------------------------------- 全部列表页 */
  /* 区块标题的箭头点进去是一张独立页面：返回 / 大标题 / 总数 / 完整列表。
     和 iOS 客户端 push 出来的 StoreAppListPage 对齐。 */
  .as-listpage { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .as-listpage-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px var(--as-pad) 0;
  }
  .as-back {
    flex: none;
    width: 40px; height: 40px;
    margin-left: -10px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--as-link);
    -webkit-tap-highlight-color: transparent;
  }
  .as-back svg { width: 23px; height: 23px; }
  .as-back:active { opacity: .5; }
  .as-listpage-top h1 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .as-listpage-n {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
  }
  .as-listpage-sub {
    margin: 1px var(--as-pad) 8px;
    font-size: 13px;
    color: var(--text-3);
  }
  .as-list-sentinel { height: 1px; }
  .as-list-end {
    padding: 26px 0 8px;
    text-align: center;
    font-size: 12px;
    color: var(--text-4);
  }

  /* ---------------------------------------------------------------- 榜单行 */
  .as-list { padding: 0 var(--as-pad); }
  .as-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 0;
    text-align: left;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .as-row + .as-row { box-shadow: inset 0 .5px 0 var(--as-sep); }
  .as-row .ico {
    flex: none;
    width: 60px; height: 60px;
    border-radius: 14px;
  }
  .as-row-copy { min-width: 0; flex: 1; }
  .as-row-copy b {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .as-row-copy span {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .as-row-act { flex: none; display: flex; align-items: center; }
  .as-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 64px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--as-fill);
    color: var(--as-link);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
  }
  .as-open:active { opacity: .6; }
  /* 云下载：直接拿 iOS 那枚 SF Symbol（icloud.and.arrow.down）渲成蒙版用，
     形状和客户端一模一样，颜色仍跟着主题的 --as-blue 走。
     手绘过两次都对不上：系统符号的云是扁的、云底被箭头切断、箭头要够粗，
     靠肉眼估贝塞尔控制点怎么调都差一口气。 */
  .as-dl {
    width: 44px; height: 44px;
    margin-right: -6px;
    color: var(--as-blue);
    background: currentColor;
    -webkit-mask: url(icons/cloud-dl-mask.png) center / 27px 27px no-repeat;
    mask: url(icons/cloud-dl-mask.png) center / 27px 27px no-repeat;
  }
  .as-dl:active { opacity: .55; transform: scale(.92); }

  /* 一行里的小标签（广告 / 内购 / 开源） */
  .as-tagline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 10.5px;
    color: var(--text-4);
  }
  .as-tagline i {
    font-style: normal;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--as-fill);
    color: var(--text-3);
    font-size: 9.5px;
  }

  /* ---------------------------------------------------------------- 浏览网格 */
  .as-browse {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px var(--as-pad) 0;
  }
  .as-tile {
    position: relative;
    height: 98px;
    padding: 13px 14px;
    border-radius: 17px;
    overflow: hidden;
    text-align: left;
    color: #fff;
    background: var(--tile, linear-gradient(150deg, #3B82F6, #2563EB));
    box-shadow: 0 10px 24px -20px rgba(0,0,0,.9);
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s var(--spring);
  }
  .as-tile:active { transform: scale(.97); }
  .as-tile b {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.22;
    text-shadow: 0 1px 8px rgba(0,0,0,.18);
  }
  .as-tile i {
    position: absolute;
    right: 10px; bottom: 8px;
    font-style: normal;
    font-size: 30px;
    line-height: 1;
    opacity: .92;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.22));
    transform: rotate(-6deg);
  }
  .as-tile::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 120% at 92% 100%, rgba(255,255,255,.26), transparent 58%);
    pointer-events: none;
  }

  /* ---------------------------------------------------------------- 搜索页 */
  .as-searchbar {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px var(--as-pad) 6px;
    height: 44px;
    padding: 0 12px;
    border-radius: 13px;
    background: var(--as-fill);
    color: var(--text-3);
  }
  .as-searchbar svg { width: 18px; height: 18px; flex: none; }
  .as-searchbar input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 16px !important;
    outline: none;
    letter-spacing: -.01em;
  }
  .as-searchbar input::placeholder { color: var(--text-3); }
  .as-searchbar .as-mic {
    flex: none;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    color: var(--text-3);
  }
  .as-searchbar .as-mic svg { width: 17px; height: 17px; }

  .as-empty {
    margin: 26px var(--as-pad);
    padding: 22px 18px;
    border-radius: 18px;
    background: var(--as-fill-2);
    text-align: center;
    color: var(--text-3);
    font-size: 13.5px;
  }
  .as-empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 5px; }

  /* ---------------------------------------------------------------- 底栏 */
  /* 底栏是浮在内容上的一块玻璃，颜色不能写死。站点主题是三态：跟随系统
     （无 data-theme）、手动深色、手动浅色；把底色固定在 #1C1C1E 上时，
     浅色页面里那块 72% 的黑会在白底上糊成中灰，而图标文字是 #8E8E93，
     两者只有 1.9:1 —— 这就是「字看不清」的来源。
     这里只声明一套调色板变量，具体取值由文件末尾的三组主题规则覆盖。 */
  .tabbar {
    --tb-glass: rgba(18, 18, 22, .86);
    --tb-line: rgba(255,255,255,.12);
    --tb-ink: #B4B4BF;
    --tb-pill: rgba(255,255,255,.14);
    --tb-on: #4DA3FF;
    --tb-shadow: 0 16px 40px -20px rgba(0,0,0,.9), inset 0 .5px 0 rgba(255,255,255,.10);

    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(430px, calc(100% - 28px));
    padding: 6px;
    gap: 2px;
    border: .5px solid var(--tb-line);
    background: var(--tb-glass);
    -webkit-backdrop-filter: blur(26px) saturate(1.8);
    backdrop-filter: blur(26px) saturate(1.8);
    box-shadow: var(--tb-shadow);
  }
  .tb {
    height: 52px;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--tb-ink);
    letter-spacing: -.01em;
  }
  .tb::before {
    background: var(--tb-pill);
    border: 0;
    border-radius: 999px;
  }
  .tb svg { width: 22px; height: 22px; stroke-width: 1.7; }
  .tb.is-on { color: var(--tb-on); }
  .tb.is-on svg { transform: none; }
  .tb:active { transform: scale(.95); }
  .tb-badge {
    top: 4px;
    margin-left: 6px;
    background: #FF3B30;
  }

  /* 计数 / 状态 */
  .as-count {
    padding: 12px var(--as-pad) 2px;
    font-size: 12.5px;
    color: var(--text-3);
  }

  /* 旧的「安装 / 我的」两栏原本靠 .page 的左右内边距，这里补回来；
     页头自己已经带 20px，去掉重复的一层，标题才和卡片对齐。 */
  .pane-mob { padding: 0 16px; }
  .pane-mob .as-top { padding-left: 0; padding-right: 0; }

  /* 「我的」页：从头像进入，底栏让位 */
  body.as-account-open .tabbar { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
  .as-done {
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--as-fill);
    color: var(--as-blue);
    font-size: 14px;
    font-weight: 700;
  }

  /* 详情页 / 专题页的返回：保持原样，只把底部留白对上新的底栏 */
  .detail, .topic, .cats-page { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

  .as-foot {
    padding: 30px var(--as-pad) 8px;
    color: var(--text-4);
    font-size: 11.5px;
    line-height: 1.7;
  }
  .as-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 10px;
  }
  .as-foot-links a, .as-foot-links button {
    padding: 0; border: 0; background: none;
    color: var(--text-3); font: inherit; text-decoration: none;
  }
}

@media (min-width: 861px) {
  .pane-as { display: none !important; }
  .as-head, .as-top { display: none; }
}

/* ==========================================================================
   底栏玻璃的三套主题
   --------------------------------------------------------------------------
   主题是三态的：无 data-theme 时跟随系统，data-theme=light / dark 时锁定。
   @media (prefers-color-scheme: light) 只能覆盖「跟随系统 + 系统浅色」这一种，
   所以三套必须齐写，否则总有一种组合下的玻璃和文字撞色：

   · 跟随系统 + 系统深色 → 基础值（浅字 + 暗玻璃）
   · 跟随系统 + 系统浅色 → 本块第一组
   · 手动深色（系统可能是浅色）→ 第三组压回暗玻璃，否则被系统浅色调浅
   · 手动浅色（系统可能是深色）→ 第二组

   浅色下落选文字用 #55555F（对 #FAFAFC 约 7.4:1），选中蓝用 #0B63CE
   （压在深色大卡上最差也有 4.6:1）——#0A84FF 在近白底上只有 3:1，
   10px 小字在阳光下读不出来。
   ========================================================================== */

@media (max-width: 860px) and (prefers-color-scheme: light) {
  :root { --as-link: #0B5FD0; }
  .tabbar {
    --tb-glass: rgba(250, 250, 252, .88);
    --tb-line: rgba(0,0,0,.08);
    --tb-ink: #55555F;
    --tb-pill: rgba(0,0,0,.06);
    --tb-on: #0A5CBF;
    --tb-shadow: 0 12px 32px -18px rgba(18,20,30,.42), inset 0 .5px 0 rgba(255,255,255,.9);
  }
}

@media (max-width: 860px) {
  :root[data-theme="light"] { --as-link: #0B5FD0; }
  :root[data-theme="dark"] { --as-link: #0A84FF; }
  /* 手动选浅色（系统深色时也照样浅） */
  :root[data-theme="light"] .tabbar {
    --tb-glass: rgba(250, 250, 252, .88);
    --tb-line: rgba(0,0,0,.08);
    --tb-ink: #55555F;
    --tb-pill: rgba(0,0,0,.06);
    --tb-on: #0A5CBF;
    --tb-shadow: 0 12px 32px -18px rgba(18,20,30,.42), inset 0 .5px 0 rgba(255,255,255,.9);
  }
  /* 手动选深色：系统浅色时也要压回暗玻璃 */
  :root[data-theme="dark"] .tabbar {
    --tb-glass: rgba(18, 18, 22, .86);
    --tb-line: rgba(255,255,255,.12);
    --tb-ink: #B4B4BF;
    --tb-pill: rgba(255,255,255,.14);
    --tb-on: #4DA3FF;
    --tb-shadow: 0 16px 40px -20px rgba(0,0,0,.9), inset 0 .5px 0 rgba(255,255,255,.10);
  }
}
