/* ===== APP 分发系统 · 前台样式 v2（毛玻璃 Glassmorphism） ===== */
:root {
    --bg: #0a0a14;
    --bg2: #10101f;
    --card: rgba(255, 255, 255, .055);
    --card-hover: rgba(255, 255, 255, .09);
    --card-border: rgba(255, 255, 255, .09);
    --card-border-hi: rgba(139, 92, 246, .45);
    --text: #eceefb;
    --text-sub: #939bbd;
    --primary: #6366f1;
    --primary2: #a855f7;
    --accent: #22d3ee;
    --green: #34d399;
    --danger: #f87171;
    --amber: #fbbf24;
    --radius: 18px;
    --blur: blur(18px) saturate(150%);
    --shadow: 0 18px 45px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(99, 102, 241, .16), transparent 60%),
        radial-gradient(800px 380px at 90% -5%, rgba(168, 85, 247, .13), transparent 60%),
        radial-gradient(1000px 500px at 50% 110%, rgba(34, 211, 238, .07), transparent 60%),
        linear-gradient(165deg, var(--bg) 0%, var(--bg2) 55%, #12122a 100%) fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(99, 102, 241, .4); }

.container { max-width: 780px; margin: 0 auto; padding: 0 16px 48px; }

/* ===== 线条图标 ===== */
.ic-wrap { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; }
.ic-svg { display: block; }

/* ===== Hero（毛玻璃） ===== */
.hero {
    position: relative;
    padding: 40px 16px 26px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(560px 220px at 50% -30%, rgba(129, 140, 248, .28), transparent 65%);
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.logo-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.logo-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary2), var(--accent));
    box-shadow: 0 0 18px rgba(139, 92, 246, .95), 0 0 40px rgba(34, 211, 238, .4);
    animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.15); opacity: .85; } }
.logo-text { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; color: #c9cdee; }
.hero-title {
    font-size: 30px; font-weight: 800; letter-spacing: .5px;
    background: linear-gradient(90deg, #a5b4fc, #e9d5ff, #67e8f9, #a5b4fc);
    background-size: 300% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 300% center; } }

.search-box {
    display: flex; gap: 8px; margin: 22px auto 0; max-width: 500px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px; padding: 6px 6px 6px 20px;
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within {
    border-color: rgba(129, 140, 248, .6);
    box-shadow: 0 8px 36px rgba(99, 102, 241, .25), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.search-box .ic-wrap { color: var(--text-sub); flex: none; }
.search-box input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; min-width: 0; }
.search-box input::placeholder { color: var(--text-sub); }
.search-box button {
    border: 0; border-radius: 999px; padding: 9px 24px; font-size: 14px; font-weight: 600; cursor: pointer;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    color: #fff; display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, .4);
    transition: transform .15s, box-shadow .2s;
}
.search-box button:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(99, 102, 241, .55); }
.search-box button:active { transform: scale(.97); }

/* ===== 公告 ===== */
.notice {
    max-width: 780px; margin: 16px auto 0; padding: 12px 18px;
    display: flex; align-items: center; gap: 12px;
    background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .28);
    border-radius: 14px;
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.notice-tag {
    flex: none; font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .4);
}
.notice-text { font-size: 13px; color: #c7cbe8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 分类栏 ===== */
.cat-bar { max-width: 780px; margin: 18px auto 0; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat {
    flex: none; padding: 8px 18px; border-radius: 999px; font-size: 13px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--card-border); color: var(--text-sub);
    cursor: pointer; transition: all .22s;
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.cat:hover { color: var(--text); border-color: rgba(129, 140, 248, .4); transform: translateY(-1px); }
.cat.on {
    color: #fff; font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(99, 102, 241, .45);
}

/* ===== 应用卡片（毛玻璃 + 悬浮） ===== */
.app-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.app-card {
    position: relative;
    display: flex; align-items: center; gap: 16px; padding: 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2, .8, .3, 1.2), box-shadow .3s, border-color .3s, background .3s;
}
.app-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px 120px at 0% 0%, rgba(129, 140, 248, .12), transparent 60%);
}
.app-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: var(--card-border-hi);
    box-shadow: 0 22px 52px rgba(0, 0, 0, .5), 0 0 0 1px rgba(139, 92, 246, .15), 0 8px 30px rgba(99, 102, 241, .18);
}
.app-card:hover::after { opacity: 1; }
.app-card:active { transform: scale(.985); }

.ic {
    width: 58px; height: 58px; border-radius: 15px; object-fit: cover; flex: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ic-lg { width: 100px; height: 100px; border-radius: 24px; object-fit: cover; }
.ic-sm { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.ic-xs { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
.ic-placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }

.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 16.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-meta { font-size: 12px; color: var(--text-sub); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.app-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.badges { display: inline-flex; gap: 6px; }
.badge {
    font-style: normal; font-size: 10.5px; padding: 2px 9px; border-radius: 999px; letter-spacing: .5px;
    background: rgba(99, 102, 241, .16); border: 1px solid rgba(99, 102, 241, .3); color: #a5b4fc;
}
.badge.light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #d5d9f0; }
.dl-count { font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 5px; }
.arrow { color: var(--text-sub); font-size: 20px; flex: none; display: inline-flex; transition: transform .25s, color .25s; }
.app-card:hover .arrow { color: #a5b4fc; transform: translateX(3px); }

/* ===== 详情页 ===== */
.detail-hero {
    position: relative;
    text-align: center; padding: 52px 20px 30px;
    overflow: hidden;
}
.detail-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(520px 240px at 50% -20%, rgba(99, 102, 241, .3), transparent 65%),
        radial-gradient(380px 180px at 80% 0%, rgba(168, 85, 247, .16), transparent 60%);
}
.back-btn {
    position: absolute; left: 18px; top: 16px; width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--card-border);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    color: var(--text); transition: all .25s;
}
.back-btn:hover { border-color: var(--card-border-hi); color: #a5b4fc; transform: translateX(-2px); }
.detail-ic-wrap { position: relative; margin-bottom: 16px; }
.detail-ic-wrap .ic-lg { margin: 0 auto; box-shadow: 0 18px 50px rgba(99, 102, 241, .45), 0 0 0 1px rgba(255, 255, 255, .1); }
.detail-name { font-size: 24px; font-weight: 800; }
.detail-sub { font-size: 13px; color: var(--text-sub); margin-top: 6px; }
.detail-badges { margin-top: 12px; display: flex; justify-content: center; gap: 6px; }

.detail-body { margin-top: 8px; }

.dl-panel { display: flex; flex-direction: column; gap: 14px; }
.dl-btn {
    display: flex; align-items: center; gap: 16px; padding: 17px 20px; border-radius: var(--radius);
    color: #fff; font-weight: 600; border: 0; cursor: pointer;
    transition: transform .22s cubic-bezier(.2, .8, .3, 1.2), box-shadow .3s, filter .2s;
}
.dl-btn:hover { transform: translateY(-3px); filter: brightness(1.07); }
.dl-btn:active { transform: scale(.98); }
.dl-btn.android { background: linear-gradient(135deg, #22c55e, #059669); box-shadow: 0 12px 34px rgba(34, 197, 94, .32), inset 0 1px 0 rgba(255,255,255,.25); }
.dl-btn.ios { background: linear-gradient(135deg, #3b82f6, #7c3aed); box-shadow: 0 12px 34px rgba(99, 102, 241, .38), inset 0 1px 0 rgba(255,255,255,.25); }
.dl-btn.h5 { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 12px 34px rgba(245, 158, 11, .32), inset 0 1px 0 rgba(255,255,255,.25); }
.dl-btn .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); flex: none; }
.dl-btn .ic-svg { width: 22px; height: 22px; }
.dl-btn-tx { display: flex; flex-direction: column; line-height: 1.35; }
.dl-btn-tx b { font-size: 16px; }
.dl-btn-tx i { font-style: normal; font-size: 12px; opacity: .88; font-weight: 400; }

.qr-row { display: flex; justify-content: center; }
.qr-btn {
    border: 0; cursor: pointer; padding: 12px 28px; border-radius: 999px; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--card-border); color: var(--text);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    transition: all .25s;
}
.qr-btn:hover { border-color: var(--card-border-hi); color: #a5b4fc; transform: translateY(-1px); }

/* ===== 面板 ===== */
.panel {
    margin-top: 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.panel:hover { border-color: rgba(139, 92, 246, .3); box-shadow: 0 16px 44px rgba(0, 0, 0, .35); }
.panel-title {
    font-size: 15px; font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: center; gap: 9px;
}
.panel-title::before {
    content: ""; width: 4px; height: 17px; border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary2), var(--accent));
    box-shadow: 0 0 12px rgba(139, 92, 246, .6);
}

.info-list { list-style: none; font-size: 13px; }
.info-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--text-sub); flex: none; }
.info-list em { font-style: normal; word-break: break-all; text-align: right; color: #d7dbf2; }

.desc { font-size: 14px; color: #cdd3ec; white-space: pre-wrap; }

.tips { margin-left: 18px; font-size: 13px; color: #cdd3ec; display: flex; flex-direction: column; gap: 7px; }
.tips li::marker { color: #a5b4fc; }
.tips-warn { margin-top: 12px; font-size: 12px; color: var(--amber); display: flex; gap: 6px; align-items: flex-start; }
.tips-warn .ic-wrap { margin-top: 1px; }

.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item {
    display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 13px;
    background: rgba(255, 255, 255, .04); border: 1px solid transparent;
    transition: all .25s;
}
.related-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(139, 92, 246, .25); transform: translateX(3px); }
.related-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.related-tx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-tx i { font-style: normal; font-size: 12px; color: var(--text-sub); }

/* ===== 二维码弹窗（毛玻璃） ===== */
.qr-mask {
    position: fixed; inset: 0; z-index: 99; padding: 24px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(4, 4, 14, .72);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.qr-mask[hidden] { display: none; }
.qr-pop {
    background: rgba(255, 255, 255, .98);
    border-radius: 22px; padding: 28px; text-align: center; max-width: 330px; width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    animation: pop .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { transform: scale(.9) translateY(10px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qr-svg svg { width: 100%; height: auto; border-radius: 10px; }
.qr-tip { font-size: 13px; color: #64748b; margin: 14px 0 16px; }
.qr-copy {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 12px;
    background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff; font-size: 14px; font-weight: 600;
    transition: filter .2s;
}
.qr-copy:hover { filter: brightness(1.1); }
.qr-close {
    display: block; width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px;
    border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 13px; cursor: pointer;
    transition: all .2s;
}
.qr-close:hover { background: #f8fafc; }

/* ===== 分页 / 空态 / 底部 ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.pg-btn {
    padding: 9px 20px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--card-border); color: var(--text);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    transition: all .22s;
}
.pg-btn:hover { border-color: var(--card-border-hi); color: #a5b4fc; transform: translateY(-1px); }
.pg-info { font-size: 13px; color: var(--text-sub); }

.empty { text-align: center; padding: 80px 20px; color: var(--text-sub); }
.empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .55; filter: drop-shadow(0 10px 24px rgba(99,102,241,.35)); }
.empty-sub { font-size: 12.5px; margin-top: 8px; opacity: .7; }

.footer { text-align: center; padding: 30px 16px 44px; font-size: 12.5px; color: var(--text-sub); }
.footer-sub { margin-top: 4px; opacity: .7; }

/* ===== 桌面适配 ===== */
@media (min-width: 768px) {
    .container { max-width: 920px; }
    .app-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .app-card { padding: 18px; }
    .dl-panel { max-width: 520px; margin: 0 auto; }
    .panel { max-width: 660px; margin-left: auto; margin-right: auto; }
}
