/* ============================================================
   Appick 新版静态原型 —— 对齐 ui-new/app-listing-{light,dark}@3x.png
   无外部依赖，纯 CSS 手写，移动端优先，桌面端居中
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
    /* 品牌色 */
    --brand: #ff5722;
    --brand-cta: #ff6b35;          /* CTA 纯橘色（设计图无渐变） */
    --brand-cta-teal: #00c9a7;     /* section 2 CTA 纯青绿色 */
    --brand-purple-grad: linear-gradient(135deg, #8a5cf6, #5b21b6);
    --brand-teal: #00c9a7;
    --hot-red: #ff4b2b;

    /* 亮模式 */
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-2: #fafbff;
    --card-hover-bg: #fff9f6;
    --border: rgba(15, 23, 42, 0.06);
    --text: #1f2937;
    --text-2: #52606d;
    --text-3: #8c98a4;

    /* Banner */
    --banner-grad: linear-gradient(120deg, #ff4b2b, #ff8c42);

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-banner: 0 4px 20px rgba(255, 75, 43, 0.25);
    --shadow-cta: none;
    --shadow-cta-teal: none;

    /* 其他 */
    --header-bg: #ffffff;          /* 纯白不透明（对齐设计图） */
    --header-border: rgba(15, 23, 42, 0.06);
    --radius-card: 14px;
    --radius-icon: 14px;
    --radius-cta: 20px;

    /* 骨架屏 shimmer */
    --skeleton-base: #eee;
    --skeleton-shine: #f5f5f5;
}

[data-theme="dark"] {
    --bg: #0f1115;
    --surface: #1c1f25;
    --surface-2: #24272e;
    --card-hover-bg: #1f1d33;
    --border: rgba(255, 255, 255, 0.06);
    --text: #f3f4f6;
    --text-2: #c5cdd6;
    --text-3: #8d97a2;

    --banner-grad: linear-gradient(120deg, #e53935, #ff6d00);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-banner: 0 4px 20px rgba(229, 57, 53, 0.35);
    --shadow-cta: 0 2px 8px rgba(255, 75, 43, 0.45);
    --shadow-cta-teal: 0 2px 8px rgba(0, 201, 167, 0.4);

    --header-bg: #181a1f;
    --header-border: rgba(255, 255, 255, 0.06);

    /* 骨架屏 shimmer（深色） */
    --skeleton-base: #2a2d33;
    --skeleton-shine: #3a3e46;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .3s ease, color .3s ease;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 5px;
}

/* ---------- 顶栏 ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    /* 不再使用 backdrop-filter 毛玻璃，对齐设计图纯白/深底 */
    border-bottom: 1px solid var(--header-border);
}

.topbar-inner {
    position: relative;          /* 给抽屉绝对定位做锚点 */
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.brand .flame { width: 22px; height: 22px; flex: none; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}
.nav a {
    padding: 6px 10px;
    border-radius: 16px;
    color: var(--text-3);
    white-space: nowrap;
    transition: color .2s;
}
.nav a:hover { color: var(--text); }
/* 焦点样式：去掉浏览器默认蓝色 outline，换成柔和光环（仅键盘 Tab 时出现） */
.nav a:focus,
.nav a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent);
}
.nav a.active {
    color: var(--brand);
    font-weight: 600;
}

.theme-btn {
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    transition: background-color .2s, color .2s, border-color .2s;
}
.theme-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- 语言切换 ---------- */
.lang-switcher {
    flex: none;
    position: relative;
    /* 默认（PC）：隐藏 mobile 副本，显示 pc 副本 */
}
/* 桌面端副本：在 mobile-panel 里，紧跟 nav 之后 */
.lang-switcher.lang-switcher-pc {
    margin-left: 0;       /* 不要推到最右，夹在 nav 和 theme-btn 之间 */
}
/* 移动端副本：在 brand 旁，始终可见 */
.lang-switcher.lang-switcher-mobile {
    margin-left: auto;    /* 推到 brand 右边、汉堡左边 */
}
/* PC：隐藏 mobile 副本 */
.lang-switcher.lang-switcher-mobile { display: none; }
.lang-btn {
    width: auto;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    line-height: 1;
    transition: background-color .2s, color .2s, border-color .2s;
}
.lang-btn:hover { background: var(--surface-2); color: var(--text); }
.lang-btn .lang-icon {
    color: var(--text-3);
    flex: none;
}
.lang-btn .lang-label { font-weight: 500; }
.lang-btn .lang-arrow {
    flex: none;
    color: var(--text-3);
    transition: transform .2s ease, color .2s;
}
.lang-btn .lang-arrow.is-open {
    transform: rotate(180deg);
    color: var(--text-2);
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 120px;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    z-index: 200;
}
.lang-menu.is-open { display: block; }

.lang-menu li { padding: 0; }
.lang-opt {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: background-color .15s, color .15s;
}
.lang-opt:hover { background: var(--surface-2); color: var(--text); }
.lang-opt.active {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    font-weight: 600;
}

/* 汉堡按钮 */
.nav-toggle {
    display: none;                    /* PC 端默认隐藏 */
    flex: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background-color .2s;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s;
}
/* 激活时变 X 号 */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 移动端抽屉（默认显示，PC 端被媒体查询覆盖） ---------- */
.mobile-panel { display: flex; align-items: center; gap: 4px; }

/* ========== 移动端：汉堡显示、nav 折叠进抽屉 ========== */
@media (max-width: 600px) {
    .nav-toggle { display: flex; }

    /* 抽屉从顶部滑下 */
    .mobile-panel {
        position: absolute;
        top: 100%;                /* 顶栏正下方 */
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        box-shadow: var(--shadow-sm);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .22s ease, opacity .2s ease, visibility .2s;
    }
    .mobile-panel.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    /* nav 改成纵向 */
    .mobile-panel .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    .mobile-panel .nav a {
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    /* lang-switcher 移动端：显示 brand 旁的副本，隐藏抽屉里的副本 */
    .lang-switcher.lang-switcher-mobile { display: flex; }
    .lang-switcher.lang-switcher-pc { display: none; }

    /* lang-menu 在移动端左对齐（避免 right:0 向左溢出屏幕） */
    .lang-menu {
        left: 0;
        right: auto;
    }
    
    /* theme-btn 靠右 */
    .mobile-panel .theme-btn {
        align-self: flex-end;
        margin-left: 0;  /* 移除 PC 端的 margin-left: auto */
    }
}

/* ---------- Banner ---------- */
.banner {
    /* 与 section/卡片同宽，避免视觉参差不齐 */
    display: block;             /* <a> 块级撑满 container */
    margin: 16px 0;
    background: var(--banner-grad);
    border-radius: var(--radius-card);
    padding: 22px 20px;
    color: #fff;
    text-decoration: none;       /* 去掉 <a> 下划线 */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-banner);
    transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(255, 75, 43, 0.35);
    filter: brightness(1.04);
}
.banner:active { transform: scale(0.99); }

/* Banner 背景色变体（通过后端 bg_color 字段动态切换）*/
.banner.banner-teal {
    background: linear-gradient(120deg, #00c9a7, #10b981);
    box-shadow: 0 4px 20px rgba(0, 201, 167, 0.25);
}
.banner.banner-teal::after,
.banner.banner-teal::before {
    background: rgba(255, 255, 255, 0.18);
}
.banner.banner-purple {
    background: linear-gradient(120deg, #8a5cf6, #5b21b6);
    box-shadow: 0 4px 20px rgba(138, 92, 246, 0.3);
}
.banner.banner-purple::after,
.banner.banner-purple::before {
    background: rgba(255, 255, 255, 0.18);
}

.banner::after {
    content: "";
    position: absolute;
    right: -30px; top: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.banner::before {
    content: "";
    position: absolute;
    right: 40px; bottom: -50px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}
.banner-title {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    /* 单行截断，防止超长标题撑高 banner */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.banner-sub {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.92;
    position: relative;
    z-index: 1;
    /* 桌面端最多 2 行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Section ---------- */
.section { margin-top: 22px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2px 0 2px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    /* 防止超长标题把竖线挤出屏幕（flex 里 min-width:0 是关键） */
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.section-title::before {
    content: "";
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--brand);
}
.section-title.teal::before { background: var(--brand-teal); }

.section-more {
    font-size: 13px;
    color: var(--text-3);
    white-space: nowrap;
    transition: color .2s;
}
.section-more:hover { color: var(--brand); }

/* section 副标题描述 —— 浅灰小字，单行截断 */
.section-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-3);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* section 下方细分隔线 */
.section-divider {
    margin: 8px 0 10px;
    height: 1px;
    background: var(--border);
    border-radius: 1px;
}

/* ---------- App 卡片列表 ---------- */
.app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;   /* 重置 <a> 默认下划线 */
    color: inherit;          /* 重置 <a> 默认蓝色文字 */
}
.app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    background: var(--card-hover-bg);
}
.app-card:active { transform: scale(0.99); }

.app-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-icon);
    object-fit: cover;
    flex: none;
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}

.app-main { flex: 1; min-width: 0; }

.app-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-name {
    font-size: 16px;          /* ↑ 15 → 16（桌面端） */
    font-weight: 700;         /* ↑ 600 → 700 更粗，标题感更强 */
    color: var(--text);       /* 标题保持主色不变 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* HOT 标签 —— 默认红色小方块（section 1） */
.app-tag {
    flex: none;
    font-size: 9px;           /* 调小：10px → 9px */
    font-weight: 600;
    line-height: 1;
    padding: 2px 5px;         /* 调小：3px 6px → 2px 5px */
    border-radius: 3px;       /* 调小：4px → 3px */
    background: var(--hot-red);
    color: #fff;
}
/* section 2 用紫色渐变胶囊 */
.app-tag.is-purple {
    background: var(--brand-purple-grad);
    border-radius: 8px;       /* 调小：10px → 8px */
    padding: 3px 6px;         /* 调小：4px 8px → 3px 6px */
}

.app-desc {
    margin-top: 5px;
    font-size: 11px;          /* ↓ 12 → 11，描述更弱视觉权重 */
    color: var(--text-3);     /* 保持最浅一级 */
    line-height: 1.5;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Phase 3（已实施）：BFF 把 description 里 <span style="color:red"> 翻译成 <span class="hl">，
   高亮文字用 CSS class 实现，不再走 inline style → CSP style-src 可以去掉 unsafe-inline */
.app-desc .hl {
    color: #ef4444;            /* 红色高亮（明模式） */
    font-weight: 600;
}
[data-theme="dark"] .app-desc .hl {
    color: #f87171;            /* 暗模式下调柔和 */
}

.app-side {
    flex: none;
    display: flex;
    flex-direction: row;     /* 横排：count 在左 CTA 在右 */
    align-items: center;
    justify-content: flex-end;
    gap: 10px;              /* 改成 10px 水平间距 */
}
/* 因为 HTML 里 CTA 在前、count 在后，用 order 让 count 排左边 */
.app-side .app-count { order: 1; }
.app-side .app-cta   { order: 2; }

.app-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 数字和单位右对齐 */
    text-align: right;
    line-height: 1.2;
}
.app-count .num {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
}
.app-count .unit {
    font-size: 11px;
    color: var(--text-3);
}

/* CTA 按钮 —— 纯橘色（section 1，设计图无渐变） */
.app-cta {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--radius-cta);
    background: var(--brand-cta);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-cta);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.app-cta:hover { transform: scale(1.04); filter: brightness(1.05); }

/* section 2 用纯青绿色（设计图也无渐变） */
.app-cta.is-teal {
    background: var(--brand-cta-teal);
    box-shadow: var(--shadow-cta-teal);
}

/* ---------- 底部免责 ---------- */
.footer {
    margin: 28px 0 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px 16px;
    box-shadow: var(--shadow-card);
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.footer-desc {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-3);
    text-align: left;
    line-height: 1.85;
}

.footer-warn {
    margin-top: 12px;
    font-size: 13px;
    color: var(--hot-red);
    font-weight: 500;
}

.footer-addr {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-2);
}
.footer-addr a {
    color: var(--brand-teal);
    font-weight: 600;
}

.footer-addr a {
    color: var(--brand-teal);
    font-weight: 600;
}

/* 二维码：默认隐藏（移动端），PC 端显示 */
.qr-block {
    display: none;
}

/* ---------- 响应式（桌面端二维码 + footer 两栏） ---------- */
@media (min-width: 601px) {
    .footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 32px;
        padding: 20px 24px;
    }
    .footer-left {
        flex: 1;
        min-width: 0;
    }
    .qr-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        flex: none;
    }
    .qr-img {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        background: #fff;           /* QR 码必须白底才能扫描 */
        padding: 6px;
        box-shadow: var(--shadow-card);
    }
    .qr-tip {
        font-size: 12px;
        color: var(--text-3);
        margin: 0;
    }
    .qr-tip-en {
        font-size: 11px;
        color: var(--text-3);
        margin: 0;
    }
}

@media (max-width: 420px) {
    .app-icon { width: 50px; height: 50px; border-radius: 12px; }
    .app-card { padding: 12px; gap: 10px; }
    .app-cta { padding: 6px 14px; font-size: 12px; }
    .app-name { font-size: 15px; }  /* ↑ 14→15 同步桌面 +1px */
    .section-title { font-size: 15px; }
    /* banner 字号降 + sub 强制 1 行（banner 高度小） */
    .banner-title { font-size: 15px; }
    .banner-sub {
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;        /* 覆盖基础的 line-clamp */
    }
    /* 移动端描述行：强制 1 行截断（卡片整齐优先），字号更小 */
    .app-desc {
        font-size: 9px;           /* ↓ 10 → 9 */
        line-height: 1.5;
        letter-spacing: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        display: block;
    }
}

/* 极窄屏（iPhone SE 等 ≤ 360px）：字号再降 */
@media (max-width: 360px) {
    .app-desc { font-size: 8px; }     /* ↓ 9 → 8 */
    .app-name { font-size: 14px; }   /* ↑ 13 → 14 */
    .app-cta { padding: 5px 12px; font-size: 11px; }
    .banner-title { font-size: 14px; }
    .banner-sub { font-size: 11px; }
    .section-title { font-size: 14px; }
}

@media (min-width: 721px) {
    .container { padding: 0 5px; }
}

/* ---------- 动画 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- 全局 Loading Overlay ---------- */
.app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg-page, #ffffff);
    backdrop-filter: blur(4px);
    animation: app-loading-fade-in 0.15s ease-out;
}

[data-theme="dark"] .app-loading {
    background: #0f0f12;
}

.app-loading__spinner {
    display: flex;
    gap: 8px;
}

.app-loading__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8a5cf6;
    animation: app-loading-bounce 0.6s infinite ease-in-out both;
}

.app-loading__dot:nth-child(1) { animation-delay: -0.32s; }
.app-loading__dot:nth-child(2) { animation-delay: -0.16s; }

.app-loading__text {
    font-size: 14px;
    color: var(--text-muted, #888);
    letter-spacing: 0.05em;
}

@keyframes app-loading-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes app-loading-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40%           { transform: scale(1); }
}

/* ---------- App-List Skeleton（镜像真实 app-card 横向三栏） ---------- */
.app-list--loading {
    /* 和 .app-list 完全一致：纵向堆叠 */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-card {
    /* 和 .app-card 完全一致的外观 */
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #eee);
    border-radius: var(--radius-card, 12px);
    padding: 14px;
}

/* shimmer 统一入口：所有骨架元素共用这套渐变 */
.sk-icon,
.sk-line,
.sk-tag,
.sk-count,
.sk-cta {
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
}

.sk-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-icon, 14px);
    flex: none;
}

.sk-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sk-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sk-line--name {
    height: 16px;
    border-radius: 4px;
    width: 35%;
    min-width: 80px;
}

.sk-tag {
    height: 12px;
    border-radius: 3px;
    width: 26px;
    flex: none;
}

.sk-line--desc-full {
    height: 12px;
    border-radius: 4px;
    width: 100%;
}

.sk-line--desc-half {
    height: 12px;
    border-radius: 4px;
    width: 55%;
}

.sk-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: none;
}

.sk-count {
    height: 14px;
    border-radius: 4px;
    width: 44px;
}

.sk-cta {
    height: 28px;
    border-radius: 14px;
    width: 72px;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- App-List Loading Overlay ---------- */
.app-list-wrap {
    position: relative;
}

.app-list-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    pointer-events: none;
}

[data-theme="dark"] .app-list-overlay {
    background: rgba(15, 15, 18, 0.55);
}

.app-list-overlay__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border, #eee);
    border-top-color: #8a5cf6;
    border-radius: 50%;
    animation: app-list-spin 0.7s linear infinite;
}

@keyframes app-list-spin {
    to { transform: rotate(360deg); }
}
