/* ============================================================
 * 咖喱软件 - 全局样式
 * ============================================================ */
:root {
    --primary: #f28c28;
    --primary-600: #df7a14;
    --primary-050: #fff6ec;
    --primary-100: #ffe8cf;
    --accent: #ff6b35;
    --bg: #f5f6f8;
    --card: #ffffff;
    --line: #e9edf1;
    --line-2: #f2f4f7;
    --text: #20242b;
    --text-2: #5c6672;
    --text-3: #99a2ad;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(23, 28, 36, .05), 0 8px 24px rgba(23, 28, 36, .05);
    --shadow-lg: 0 16px 40px rgba(23, 28, 36, .16);
    --xunlei: #0f7ae5;
    --quark: #00a6e2;
    --baidu: #d8432e;
    --aliyun: #5b6cfa;
    --lanzou: #3f8cff;
    --other: #8b95a1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    padding-bottom: 30px;
}
a { text-decoration: none; color: inherit; }
img { vertical-align: middle; }
ul, ol { list-style: none; }
button { font-family: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ============ 顶部介绍条 ============ */
.topbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(118deg, #ffa84d 0%, #ff7a2e 46%, #f4511e 100%);
    color: #fff;
}
.topbar::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 68%);
    top: -300px;
    right: -110px;
    pointer-events: none;
}
.topbar::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -230px;
    left: -80px;
    pointer-events: none;
}
.topbar-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(180, 60, 0, .18);
}
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.brand-domain {
    font-size: 12.5px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 2px 10px;
    border-radius: 999px;
    color: #fff;
}
.topbar-actions { display: flex; gap: 8px; }
.btn {
    display: inline-block;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    transition: all .18s ease;
    border: none;
    text-align: center;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .32); }
.btn-light { background: #fff; color: var(--accent); font-weight: 700; box-shadow: 0 4px 14px rgba(190, 60, 0, .16); }
.btn-light:hover { background: #fff6ee; }

/* ============ 公告条 ============ */
.notice {
    background: var(--primary-050);
    border-bottom: 1px solid var(--primary-100);
    font-size: 13px;
    color: #9c5a10;
}
.notice-inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.notice-icon { flex-shrink: 0; }
.notice-text { line-height: 1.7; }

/* ============ 搜索 ============ */
.search-box {
    position: relative;
    margin: 24px auto 4px;
    max-width: 660px;
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1.5px solid var(--primary-100);
    border-radius: 999px;
    padding: 0 18px;
    box-shadow: var(--shadow);
    transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(242, 140, 40, .12), var(--shadow);
}
.search-icon { color: var(--text-3); margin-right: 9px; line-height: 0; flex-shrink: 0; }
.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14.5px;
    padding: 12px 0;
    color: var(--text);
}
.search-box input::placeholder { color: var(--text-3); }
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 340px;
    overflow: auto;
    z-index: 60;
    padding: 6px;
}
.search-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.search-dropdown li:hover { background: var(--primary-050); }
.search-dropdown li .sd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-dropdown li .sd-name b { color: var(--primary-600); }
.search-dropdown li .sd-sub { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.search-dropdown li .sd-cat {
    font-size: 11px;
    color: #fff;
    background: var(--primary);
    border-radius: 999px;
    padding: 1px 8px;
    flex-shrink: 0;
}
.search-dropdown li .sd-go { color: var(--primary-600); font-size: 12px; flex-shrink: 0; }
.search-dropdown .sd-empty { cursor: default; justify-content: center; color: var(--text-3); font-size: 13px; }
.search-dropdown .sd-empty:hover { background: transparent; }

/* ============ 布局：侧栏 + 内容 ============ */
.layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 18px;
}

/* 侧栏 */
.sidebar {
    width: 206px;
    flex-shrink: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 16px;
}
.sidebar-title {
    padding: 12px 16px 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
    border-bottom: 1px solid var(--line);
    letter-spacing: 1px;
}
.sidebar .cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px 11px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    font-size: 14.5px;
    transition: all .14s ease;
}
.sidebar .cat .cat-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sidebar .cat .cat-icon { font-size: 17px; }
.sidebar .cat .cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .cat .cat-count {
    font-size: 11px;
    color: var(--text-3);
    background: #f1f3f6;
    border-radius: 999px;
    padding: 1px 8px;
    flex-shrink: 0;
}
.sidebar .cat:hover { background: #faf8f5; }
.sidebar .cat.active {
    background: var(--primary-050);
    border-left-color: var(--primary);
    font-weight: 700;
}
.sidebar .cat.active .cat-name { color: var(--primary-600); }
.sidebar .cat.active .cat-count { background: #ffe8cf; color: var(--primary-600); }
.sidebar .cat .lock {
    font-size: 11px;
    color: var(--text-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 7px;
    flex-shrink: 0;
}
.sidebar .cat.locked { cursor: not-allowed; }
.sidebar .cat.locked:hover { background: transparent; }
.sidebar .cat.locked .cat-name { color: var(--text-3); }

/* 内容区 */
.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}
.section-head h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.section-head .count { font-size: 13px; color: var(--text-3); }
.section-head .count b { color: var(--primary-600); font-size: 15px; }

/* 软件卡片（手风琴） */
.sw-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.sw-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease;
}
.sw-title:hover { background: #fdf7ef; }
.sw-title:active { background: #faf1e6; }
.sw-icon {
    width: 46px;
    min-width: 46px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .08);
}
.sw-icon.photo {
    background: #fff;
    border: 1px solid #eef0f3;
    box-shadow: none;
    overflow: hidden;
    padding: 1px;
}
.sw-icon.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 9px;
}
.sw-name { flex: 1; min-width: 0; }
.sw-name .nm { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-name .sub { font-size: 12.5px; color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-meta {
    font-size: 12px;
    color: var(--text-3);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.sw-meta b { color: var(--primary-600); font-size: 14px; }
.sw-title .arrow {
    font-size: 13px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: transform .25s ease;
    display: inline-block;
}
.sw-card.open .arrow { transform: rotate(180deg); color: var(--primary); }
.sw-body { display: none; }
.sw-card.open .sw-body { display: block; }
.sw-body .vlist { border-top: 1px dashed #e4e8ec; }

/* 版本链接行 */
.vlist { padding: 2px 0 6px; }
.vlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text);
    transition: background .14s ease;
    cursor: pointer;
    border-top: 1px solid var(--line-2);
}
.vlink:first-child { border-top: none; }
a.vlink:hover { background: #fff7ec; }
.vlink .net {
    font-size: 11.5px;
    color: #fff;
    border-radius: 5px;
    padding: 2px 9px;
    flex-shrink: 0;
    line-height: 1.6;
}
.net-xunlei { background: var(--xunlei); }
.net-quark { background: var(--quark); }
.net-baidu { background: var(--baidu); }
.net-aliyun { background: var(--aliyun); }
.net-lanzou { background: var(--lanzou); }
.net-other { background: var(--other); }
.vlink .vname { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlink .hot {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff5f6d, #ff8a5c);
    border-radius: 999px;
    padding: 1px 8px;
    flex-shrink: 0;
}
.vlink .pwd {
    font-style: normal;
    font-size: 12px;
    color: #b0610a;
    background: #fff3e0;
    border: 1px solid #ffe4bd;
    border-radius: 999px;
    padding: 1px 10px;
    flex-shrink: 0;
}
.vlink .go {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-600);
    background: var(--primary-050);
    border-radius: 999px;
    padding: 4px 12px;
    flex-shrink: 0;
    transition: all .14s ease;
    white-space: nowrap;
}
a.vlink:hover .go { background: var(--primary); color: #fff; }
.vlink .soon { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.vlink.pending { cursor: default; }
.vlink.pending .vname { color: #b6bdc6; }
.vlink.pending .net { background: #e4e8ee; color: #8d97a3; }
.vlink.pending:hover { background: transparent; }

/* 空状态 */
.empty-tip {
    text-align: center;
    color: var(--text-3);
    padding: 56px 16px;
    font-size: 14.5px;
    background: var(--card);
    border: 1px dashed #d8dee4;
    border-radius: var(--radius);
}
.empty-tip .big { font-size: 44px; display: block; margin-bottom: 12px; }

/* ============ 页脚 ============ */
.footer {
    margin-top: 46px;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}
.footer-sub { margin-top: 5px; font-size: 12px; color: #b6bdc6; }
.footer-title { font-weight: 700; color: var(--text-2); margin-bottom: 6px; }

/* ============ 弹层 ============ */
[hidden] { display: none !important; }
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(16, 22, 32, .48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 470px;
    max-height: 82vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
    animation: pop .2s ease;
}
@keyframes pop {
    from { transform: scale(.96) translateY(6px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    font-weight: 800;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}
.modal-close {
    border: none;
    background: #f1f3f6;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    transition: all .15s;
}
.modal-close:hover { background: #e5e8ec; color: #222; }
.modal-body { padding: 18px; font-size: 14px; }
.tutorial-list { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.tutorial-list li::marker { color: var(--primary); font-weight: 700; }
.modal-tip {
    margin-top: 15px;
    background: var(--primary-050);
    border: 1px solid var(--primary-100);
    border-radius: 10px;
    padding: 10px 13px;
    color: #9c5a10;
    font-size: 13px;
    line-height: 1.7;
}
.contact-body { display: flex; flex-direction: column; gap: 11px; }
.contact-body p { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.contact-body p .dot { color: var(--primary); font-weight: 800; }
.contact-body code {
    background: #f4f6f8;
    border: 1px solid var(--line);
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 13px;
    word-break: break-all;
}

/* ============ Toast ============ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 44px;
    transform: translateX(-50%);
    background: rgba(22, 28, 38, .86);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 300;
    max-width: 88vw;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: toastUp .22s ease;
}
@keyframes toastUp {
    from { transform: translate(-50%, 10px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============ 移动端适配 ============ */
@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        position: static;
        display: flex;
        align-items: stretch;
        overflow-x: auto;
        padding: 5px;
        gap: 5px;
        border-radius: 999px;
        box-shadow: none;
    }
    .sidebar-title { display: none; }
    .sidebar .cat {
        border-left: none;
        border-radius: 999px;
        padding: 8px 13px;
        flex-shrink: 0;
        font-size: 14px;
        white-space: nowrap;
        background: #fff;
        border: 1px solid var(--line);
    }
    .sidebar .cat.active {
        border-left: none;
        background: var(--primary);
        border-color: var(--primary);
    }
    .sidebar .cat.active .cat-name { color: #fff; }
    .sidebar .cat.active .cat-count { background: rgba(255, 255, 255, .25); color: #fff; }
    .sidebar .cat .cat-icon { font-size: 15px; }
}
@media (max-width: 560px) {
    .brand-name { font-size: 20px; }
    .brand-domain { display: none; }
    .topbar-actions .btn-sm { padding: 6px 10px; }
    .sw-title { padding: 12px 12px; gap: 10px; }
    .sw-icon { width: 40px; min-width: 40px; height: 38px; font-size: 13px; border-radius: 9px; }
    .sw-name .sub { display: none; }
    .sw-meta { display: none; }
    .vlink { flex-wrap: wrap; gap: 6px 10px; padding: 12px; }
    .vlink .vname { flex: 1 1 100%; order: 1; white-space: normal; word-break: break-all; }
    .vlink .net { order: 2; }
    .vlink .hot { order: 3; }
    .vlink .pwd { order: 4; }
    .vlink .go, .vlink .soon { order: 5; margin-left: auto; }
}

/* ============ 行首小图标 ============ */
.vlink .vicon {
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef0f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vlink .vicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.vlink .vicon.vchip {
    border: none;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: .3px;
}

/* ============ 侧栏分类图标 ============ */
.cat .cat-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line), 0 2px 5px rgba(23, 28, 36, .06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}
.cat.active .cat-icon {
    background: #fff6ec;
    box-shadow: 0 0 0 1px var(--primary-100);
}

@media (max-width: 560px) {
    .vlink .vicon { order: 2; }
    .sidebar .cat .cat-icon { width: 20px; min-width: 20px; height: 20px; font-size: 12px; }
}


/* ============ 侧栏：操作系统选择面板 ============ */
.sidebar .os-panel {
    padding: 12px 10px 10px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}
.sidebar .os-panel .os-cap {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 7px 9px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-2);
    letter-spacing: 1px;
}
.sidebar .os-panel .os-cap i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f7fdb, #6a717a);
    display: inline-block;
}
.sidebar .os-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 9px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: all .14s ease;
    font-family: inherit;
}
.sidebar .os-opt:hover { background: #faf5ee; color: var(--primary-600); }
.sidebar .os-opt .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #cfd6de;
    flex: 0 0 auto;
    position: relative;
    transition: border-color .14s ease;
}
.sidebar .os-opt .dot::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
    transition: background .14s ease;
}
.sidebar .os-opt.active { background: var(--primary-050); color: var(--primary-600); }
.sidebar .os-opt.active .dot { border-color: var(--primary); }
.sidebar .os-opt.active .dot::after { background: var(--primary); }
.sidebar .os-opt .os-name { flex: 1; text-align: left; }
.sidebar .os-opt .os-num {
    font-size: 10.5px;
    color: var(--text-3);
    background: #f1f3f6;
    border-radius: 999px;
    padding: 1px 7px;
    flex-shrink: 0;
}
.sidebar .os-opt.active .os-num { background: #ffe8cf; color: var(--primary-600); }

@media (max-width: 900px) {
    .sidebar .os-panel {
        display: flex;
        align-items: center;
        gap: 6px;
        border-bottom: none;
        background: transparent;
        padding: 6px 10px;
        flex-shrink: 0;
    }
    .sidebar .os-panel .os-cap { display: none; }
    .sidebar .os-panel .os-opt {
        width: auto;
        padding: 8px 14px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid var(--line);
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 14px;
    }
    .sidebar .os-panel .os-opt .dot { display: none; }
    .sidebar .os-panel .os-opt .os-num { display: none; }
    .sidebar .os-panel .os-opt.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
}

/* \u7248\u672c\u884c\u7cfb\u7edf\u6807\u7b7e */
.vlink .os-tag {
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 5px;
    padding: 2px 7px;
    line-height: 1.5;
    flex-shrink: 0;
    letter-spacing: .3px;
}
.os-tag.os-win { background: #1f7fdb; color: #fff; }
.os-tag.os-mac { background: #6a717a; color: #fff; }

/* \u641c\u7d22\u4e0b\u62c9\u91cc\u7684\u7cfb\u7edf\u5c0f\u6807\u7b7e */
.search-dropdown li .sd-os {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    flex-shrink: 0;
    line-height: 1.6;
}
.sd-os.os-win { background: #1f7fdb; }
.sd-os.os-mac { background: #6a717a; }

/* ============ \u4fa7\u680f\u5206\u7c7b\u56fe\u6807\uff08SVG \u78c1\u8d34\uff09 ============ */
.sidebar .cat .cat-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line), 0 2px 5px rgba(23, 28, 36, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sidebar .cat .cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sidebar .cat .cat-icon.cat-emoji { font-size: 15px; background: #fff; }
.sidebar .cat.active .cat-icon {
    box-shadow: 0 0 0 1.5px var(--primary-100), 0 2px 6px rgba(242, 140, 40, .18);
    transform: scale(1.05);
}

/* \u65e0\u56fe\u6807\u6587\u4ef6\u65f6\u7684\u884c\u9996\u8272\u5757 */
.vlink .vicon.vchip {
    font-size: 10.5px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

@media (max-width: 560px) {
    .sidebar .cat .cat-icon { width: 22px; min-width: 22px; height: 22px; font-size: 12px; }
    .vlink .os-tag { order: 2; }
}

/* ============ \u4fa7\u680f\uff1a\u670d\u52a1\u5206\u652f ============ */
.sidebar-divider {
    border-top: 1px dashed #e2e6eb;
    margin: 8px 10px 4px;
}
.sidebar .svc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px 11px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    font-size: 14.5px;
    transition: all .14s ease;
}
.sidebar .svc .cat-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sidebar .svc .svc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .svc .svc-count {
    font-size: 11px;
    color: var(--text-3);
    background: #f1f3f6;
    border-radius: 999px;
    padding: 1px 8px;
    flex-shrink: 0;
}
.sidebar .svc:hover { background: #faf8f5; }
.sidebar .svc.active {
    background: var(--primary-050);
    border-left-color: var(--primary);
    font-weight: 700;
}
.sidebar .svc.active .svc-name { color: var(--primary-600); }
.sidebar .svc.active .svc-count { background: #ffe8cf; color: var(--primary-600); }
.sidebar .svc .cat-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line), 0 2px 5px rgba(23, 28, 36, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar .svc .cat-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar .svc.active .cat-icon {
    box-shadow: 0 0 0 1.5px var(--primary-100), 0 2px 6px rgba(242, 140, 40, .18);
}

/* ============ \u670d\u52a1\u5361\u7247 ============ */
.sw-card.svc-card { overflow: hidden; }
.svc-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 18px 10px;
}
.svc-hero-ic {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(23, 28, 36, .10);
    background: #fff;
    flex-shrink: 0;
}
.svc-hero-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.svc-hero-main { min-width: 0; flex: 1; }
.svc-hero-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 800;
    flex-wrap: wrap;
}
.svc-hero-title .svc-badge {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff7a2e, #f4511e);
    border-radius: 999px;
    padding: 2px 10px;
    letter-spacing: .5px;
}
.svc-hero-desc {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-2);
}
.svc-card .vlist { padding: 6px 0 4px; }
.svc-card .vlink .vicon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 7px;
}
.svc-card .vlink .vname { font-weight: 700; }
.svc-tip {
    margin: 0 16px 14px;
    font-size: 12px;
    color: var(--text-3);
    background: var(--primary-050);
    border: 1px solid var(--primary-100);
    border-radius: 10px;
    padding: 8px 12px;
    line-height: 1.7;
}
@media (max-width: 560px) {
    .svc-hero { padding: 14px 14px 8px; gap: 11px; }
    .svc-hero-ic { width: 48px; min-width: 48px; height: 48px; border-radius: 12px; }
    .svc-hero-title { font-size: 16px; }
}

@media (max-width: 900px) {
    .sidebar-divider { display: none; }
    .sidebar .svc {
        width: auto;
        border-left: none;
        border-radius: 999px;
        padding: 8px 14px;
        flex-shrink: 0;
        white-space: nowrap;
        background: #fff;
        border: 1px solid var(--line);
        font-size: 14px;
        gap: 6px;
    }
    .sidebar .svc .cat-icon { width: 20px; min-width: 20px; height: 20px; }
    .sidebar .svc .svc-count { background: #f1f3f6; }
    .sidebar .svc.active {
        border-left: none;
        background: var(--primary);
        border-color: var(--primary);
    }
    .sidebar .svc.active .svc-name { color: #fff; }
    .sidebar .svc.active .svc-count { background: rgba(255, 255, 255, .25); color: #fff; }
}
