/* ============================================================
   ui.css — 分区 / 卡片 / 状态 / 响应式
   ============================================================ */

/* ---------- 分区 ---------- */
.sec{
    margin-bottom:30px;
}

.sec-hd{
    display:flex;
    align-items:baseline;
    gap:9px;
    margin:0 2px 12px;
}

.sec-title{
    position:relative;
    font-size:15px;
    font-weight:600;
    letter-spacing:.2px;
    color:var(--ink);
    padding-left:13px;
}

.sec-title::before{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:5px;
    height:5px;
    margin-top:-2.5px;
    border-radius:2px;
    background:var(--accent);
    box-shadow:0 0 0 3px rgba(47,107,255,.09);
}

.sec-num{
    font-size:11.5px;
    font-weight:400;
    color:var(--ink-3);
    letter-spacing:.2px;
    font-variant-numeric:tabular-nums;
}

/* ---------- 列表 ---------- */
.list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

/* ---------- 卡片 ---------- */
.card{
    position:relative;
    display:flex;
    align-items:center;
    gap:13px;
    padding:14px 16px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:border-color .22s var(--ease),box-shadow .28s var(--ease),transform .28s var(--ease);
}

.card:hover{
    border-color:#dfe4ec;
    box-shadow:var(--shadow-hover);
    transform:translateY(-1px);
}

.card.is-reco{
    border-color:rgba(47,107,255,.24);
    background:linear-gradient(180deg,#fbfcff 0%,#ffffff 60%);
}

/* 头像 */
.av{
    position:relative;
    flex-shrink:0;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:12px;
    background:var(--accent-soft);
}

.av span{
    font-size:17px;
    font-weight:600;
    color:var(--accent);
    opacity:.8;
    user-select:none;
}

.av img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    background:var(--accent-soft);
}

/* 文本区 */
.card-body{
    flex:1;
    min-width:0;
}

.card-head{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
}

.card-name{
    font-size:14.5px;
    font-weight:600;
    line-height:1.4;
    color:var(--ink);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.card-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:4px;
    margin-top:3px;
    font-size:12.5px;
    color:var(--ink-3);
    font-variant-numeric:tabular-nums;
}

.card-meta b{
    margin-left:1px;
    font-weight:600;
    color:var(--ink-2);
}

.tag{
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    padding:1px 7px;
    border-radius:99px;
    background:var(--accent-soft);
    color:var(--accent);
    font-size:10.5px;
    font-weight:600;
    letter-spacing:.3px;
    line-height:1.6;
}

/* 容量条 */
.bar{
    height:3px;
    margin-top:9px;
    border-radius:99px;
    background:var(--line-2);
    overflow:hidden;
}

.bar i{
    display:block;
    height:100%;
    border-radius:99px;
    background:linear-gradient(90deg,#7ba2ff,#2f6bff);
    transition:width .7s var(--ease);
}

.bar.is-full i{
    background:linear-gradient(90deg,#f2b273,#e2813b);
}

/* 加入按钮 */
.card-btn{
    flex-shrink:0;
    padding:7px 16px;
    border-radius:99px;
    font-size:12.5px;
    font-weight:500;
    letter-spacing:.3px;
    color:var(--accent);
    background:var(--accent-soft);
    text-decoration:none;
    white-space:nowrap;
    transition:color .2s var(--ease),background .2s var(--ease),box-shadow .25s var(--ease),transform .2s var(--ease);
}

.card-btn:hover{
    color:#fff;
    background:var(--accent);
    box-shadow:0 8px 18px -10px rgba(47,107,255,.95);
    transform:translateY(-1px);
}

.card-btn:active{
    transform:translateY(0);
}

/* ---------- 骨架屏 ---------- */
.sk{
    display:flex;
    align-items:center;
    gap:13px;
    padding:14px 16px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
}

.sk-av{
    flex-shrink:0;
    width:44px;
    height:44px;
    border-radius:12px;
    background:#eef1f5;
}

.sk-l{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sk-l i{
    display:block;
    height:10px;
    border-radius:6px;
    background:#eef1f5;
}

.sk-l i:first-child{ width:44%; }
.sk-l i:last-child{ width:26%; height:8px; }

.sk-b{
    flex-shrink:0;
    width:54px;
    height:28px;
    border-radius:99px;
    background:#eef1f5;
}

.sk-av,
.sk-l i,
.sk-b{
    animation:pulse 1.5s ease-in-out infinite;
}

@keyframes pulse{
    0%,100%{ opacity:.55; }
    50%{ opacity:1; }
}

/* ---------- 轻微提示 ---------- */
.notice{
    display:flex;
    align-items:center;
    gap:9px;
    padding:12px 15px;
    border:1px dashed #e3e8ef;
    border-radius:var(--radius);
    background:var(--surface-2);
    color:var(--ink-3);
    font-size:12.5px;
}

.notice i{
    flex-shrink:0;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#e8b27a;
}

/* ---------- 空 / 错误 ---------- */
.empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    padding:26px 16px;
    border:1px dashed #e3e8ef;
    border-radius:var(--radius);
    background:var(--surface-2);
    color:var(--ink-3);
    font-size:12.5px;
    text-align:center;
}

.empty-retry{
    padding:4px 12px;
    border-radius:99px;
    border:1px solid var(--line);
    background:var(--surface);
    color:var(--ink-2);
    font-size:12px;
    transition:color .2s var(--ease),border-color .2s var(--ease);
}

.empty-retry:hover{
    color:var(--accent);
    border-color:rgba(47,107,255,.35);
}

/* ---------- 入场 ---------- */
.card{
    animation:rise .42s var(--ease) both;
}

.list.is-static .card{
    animation:none;
}

@keyframes rise{
    from{ opacity:0; transform:translateY(8px); }
    to{ opacity:1; transform:translateY(0); }
}

/* ---------- 响应式 ---------- */
@media (max-width:560px){
    :root{
        --gap:12px;
        --radius:13px;
    }

    body{
        font-size:13.5px;
    }

    .hd{
        align-items:center;
        padding:28px 2px 20px;
    }

    .hd-brand{
        gap:11px;
    }

    .hd-logo{
        width:38px;
        height:38px;
        border-radius:11px;
    }

    .hd-title{
        font-size:21px;
        letter-spacing:-.3px;
    }

    .hd-sub{
        margin-top:5px;
        font-size:12px;
    }

    .hd-refresh{
        width:36px;
        height:36px;
    }

    .hd-refresh svg{
        width:15px;
        height:15px;
    }

    .sec{
        margin-bottom:24px;
    }

    .sec-title{
        font-size:14.5px;
    }

    .card{
        padding:12px;
        gap:11px;
    }

    .av,
    .sk-av{
        width:40px;
        height:40px;
        border-radius:11px;
    }

    .av span{
        font-size:16px;
    }

    .card-name{
        font-size:14px;
    }

    .card-meta{
        font-size:12px;
    }

    .card-btn{
        padding:6px 13px;
        font-size:12px;
    }

    .ft{
        padding:18px 2px 28px;
    }
}

@media (max-width:360px){
    .card-btn{
        padding:6px 11px;
    }

    .card-head .tag{
        padding:0 6px;
        font-size:10px;
    }
}
