:root {
    --peak-bg: #030406;
    --peak-card: rgba(12, 18, 28, 0.98);
    --peak-primary: #00d2ff;
    --peak-primary-rgb: 0, 210, 255;
    --peak-primary-soft: rgba(0, 210, 255, 0.1);
    --peak-text: #f1f5f9;
    --peak-muted: #94a3b8;
    --peak-border: rgba(255, 255, 255, 0.05);
    --peak-danger: #ff4757;
    --peak-accent: #00ff88;
    --container-w: 1240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'PingFang SC', sans-serif;
}

body {
    background: var(--peak-bg);
    color: var(--peak-text);
    -webkit-font-smoothing: antialiased;
}

.aero-container {
    max-width: var(--container-w);
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
}

.glass-card {
    background: var(--peak-card);
    backdrop-filter: blur(40px);
    border: 1px solid var(--peak-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header */
.aero-header {
    background: rgba(10, 15, 25, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-v35 h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.brand-v35 h1 span {
    color: var(--peak-primary);
}

.brand-v35 p {
    font-size: 0.75rem;
    color: var(--peak-muted);
    font-weight: 700;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.compact-device-station {
    display: flex;
    gap: 10px;
}

.ai-badge-mini {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.ai-badge-mini.detecting {
    color: var(--peak-primary);
    border-color: rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.05);
}

.ai-badge-mini.done {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.ai-badge-mini.fail {
    color: #ff9f43;
    border-color: rgba(255, 159, 67, 0.3);
    background: rgba(255, 159, 67, 0.1);
    font-weight: 800;
}

.action-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--peak-muted);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.device-status-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.device-status-pill.helper-active {
    color: var(--peak-accent);
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.device-status-pill .status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--peak-muted);
}

.helper-active .status-dot {
    background: var(--peak-accent);
    box-shadow: 0 0 10px var(--peak-accent);
    animation: breath 2s infinite;
}

.device-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--peak-border);
    padding: 7px 16px;
    border-radius: 14px;
    font-size: 0.8rem;
    color: var(--peak-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.device-item.active {
    border-color: var(--peak-primary);
    color: #fff;
    background: var(--peak-primary-soft);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.empty-state-v36 {
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
    animation: fadeIn 0.8s ease-out;
}

.empty-art {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.05));
    opacity: 0.6;
    animation: floating 4s infinite ease-in-out;
}

.empty-state-v36 h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.empty-state-v36 p {
    font-size: 0.95rem;
    color: var(--peak-muted);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 600;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes breath {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: drop-shadow(0 0 5px var(--peak-accent));
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px var(--peak-accent));
    }
}

.helper-art {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px var(--peak-primary));
}

.helper-step-guide {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.step-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-num {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--peak-primary);
    color: #000;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.7rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.step-txt strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
}

.step-txt p {
    font-size: 0.8rem;
    color: var(--peak-muted);
}

.loading-mini {
    font-size: 0.75rem;
    color: var(--peak-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--peak-border);
}

.loading-mini.connected-helper {
    color: var(--peak-accent);
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.loading-mini.connected-helper::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--peak-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--peak-accent);
    animation: breath 2s infinite;
}

.btn-peak-primary {
    background: linear-gradient(135deg, #00d2ff, #0099ff);
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
    letter-spacing: 0.5px;
}

.btn-peak-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 25px rgba(0, 210, 255, 0.4);
}

/* 状态栏 3.7：极致清爽定位 */
.entry-status-bar {
    margin: 0.6rem 0 1.2rem;
    display: flex;
    justify-content: flex-end;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--peak-muted);
}

.status-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--peak-primary);
    animation: breath 2s infinite;
    box-shadow: 0 0 10px var(--peak-primary);
}

/* 过滤器与导航 */
.shelf-nav {
    margin-bottom: 1.8rem;
    padding: 1rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 16px;
}

.tab-item {
    border: none;
    background: transparent;
    color: var(--peak-muted);
    padding: 9px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.tab-item.active {
    background: rgba(0, 210, 255, 0.15);
    color: var(--peak-primary);
    border: 1px solid rgba(0, 210, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.2);
}

.btn-peak-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--peak-muted);
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.peak-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
    overflow-y: hidden;
    /* 默认隐藏滚动条 */
}

.peak-textarea:hover,
.peak-textarea:focus {
    overflow-y: auto;
    /* 仅在交互时按需出现，或保持静默 */
}

.peak-textarea {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* 极致去滚动条设计 */
.peak-textarea::-webkit-scrollbar {
    display: none;
}

.btn-peak-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.list-super-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.2rem 1.4rem;
    /* 核心调整：将排序按钮向左推 1rem，对齐下方安装按钮 */
}

.low-profile-sorter {
    display: flex;
    gap: 12px;
}

.sorter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--peak-border);
    color: var(--peak-muted);
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.sorter-pill.active {
    color: var(--peak-primary);
    border-color: var(--peak-primary);
    background: var(--peak-primary-soft);
}

/* 3.7 列表项：审美巅峰重塑 */
.peak-item {
    display: flex;
    align-items: center;
    height: 110px;
    /* Slightly taller for breathing room */
    padding: 0 1.8rem;
    padding-right: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    margin-bottom: 1.2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.peak-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.peak-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 210, 255, 0.3);
    transform: scale(1.01) translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 210, 255, 0.1);
}

.peak-item:hover::before {
    opacity: 1;
}

/* 3.7 核心 Identity 复合标识块 */
.p-icon-v36 {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(45deg, #1e293b, #0f172a);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--peak-primary);
    margin-right: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.peak-item:hover .p-icon-v36 {
    transform: scale(1.1);
    border-color: var(--peak-primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.p-identity-box {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 180px;
    margin-right: 1rem;
}

.p-name-v36 {
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
    transition: 0.3s;
}

.peak-item:hover .p-name-v36 {
    color: var(--peak-primary);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.p-qr-v36 {
    width: 20px;
    height: 20px;
    padding: 1.5px;
    border-radius: 4px;
    background: #000;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.p-qr-v36:hover {
    transform: scale(6);
    /* 放大更清晰，居中放大不偏移 */
    z-index: 100;
    opacity: 1;
    border-color: var(--peak-primary);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    border-radius: 2px;
    /* 放大后圆角调整 */
}

.p-qr-v36 img {
    width: 100%;
    height: 100%;
    filter: grayscale(1) brightness(1.2);
}

/* 3.7 环境标签：实体质感进化 */
.p-env-v36 {
    width: 100px;
    display: flex;
    justify-content: center;
    margin-right: 2rem;
}

.peak-env-tag {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.peak-env-tag.env-release {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(0, 153, 255, 0.25));
    color: #fff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}

.peak-env-tag.env-test {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.25));
    color: #fff;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.peak-env-tag.env-pre {
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.15), rgba(255, 140, 0, 0.25));
    color: #fff;
    border: 1px solid rgba(255, 180, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.2);
}

.p-ver-v36 {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-right: 2rem;
}

.v-txt {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.b-txt {
    font-size: 0.8rem;
    color: var(--peak-muted);
    font-weight: 700;
    opacity: 0.9;
}

.p-time-v36 {
    width: 110px;
    font-size: 0.85rem;
    color: var(--peak-muted);
    font-weight: 700;
    text-align: center;
}

.p-spacer-v36 {
    flex: 1;
}

/* 3.7 备注：质感右对齐 */
.p-tag-v36 {
    max-width: 320px;
    font-size: 0.9rem;
    color: var(--peak-muted);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 2rem;
    opacity: 0.8;
}

.p-tag-v36 i {
    color: var(--peak-primary);
    font-style: normal;
    margin-right: 5px;
    opacity: 0.7;
}

.p-actions-v36 {
    display: flex;
    align-items: center;
    /* 确保按钮垂直居中，不拉伸 */
    justify-content: flex-end;
    gap: 16px;
}

.btn-peak-install {
    background: linear-gradient(135deg, #111827, #0f172a);
    color: var(--peak-primary);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 10px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* 禁止换行 */
    line-height: 1.4;
}

.btn-peak-install:hover {
    background: var(--peak-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
    border-color: transparent;
}

.btn-peak-del {
    color: var(--peak-muted);
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.4;
    background: transparent;
    border: none;
}

.btn-peak-del:hover {
    color: var(--peak-danger);
    opacity: 1;
    transform: scale(1.1);
}

/* Modals & Toast */
.pgy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: none;
}

@keyframes scan-line {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    30% {
        opacity: 0.2;
    }

    70% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.peak-list-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(0, 210, 255, 0.06), transparent);
    pointer-events: none;
    z-index: 5;
    animation: scan-line 8s infinite linear;
}

.peak-list-view {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    border-radius: 32px;
}

.peak-qr-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    padding: 3.5rem;
    width: 420px;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.peak-qr-modal img {
    width: 240px;
    height: 240px;
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 14px 40px;
    border-radius: 16px;
    font-weight: 850;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 3.8.1 发布弹窗旗舰版样式补全 */
.modal-peak {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.peak-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.peak-modal-header p {
    color: var(--peak-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.peak-dropzone {
    background: rgba(0, 210, 255, 0.03);
    border: 2px dashed rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.peak-dropzone:hover {
    background: rgba(0, 210, 255, 0.06);
    border-color: var(--peak-primary);
}

.dz-art {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

.peak-dropzone p {
    font-weight: 700;
    color: var(--peak-primary);
    font-size: 1.1rem;
}

#uploadFileInfo {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    align-items: center;
    gap: 1rem;
}

.file-name {
    font-weight: 800;
    font-size: 0.9rem;
    flex: 1;
}

.file-size {
    color: var(--peak-muted);
    font-size: 0.8rem;
}

.peak-fieldset {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.peak-fieldset label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--peak-muted);
    margin-left: 4px;
}

.peak-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--peak-border);
    border-radius: 14px;
    padding: 1.2rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    resize: none;
    height: 120px;
    transition: 0.3s;
    outline: none;
}

.peak-textarea:focus {
    border-color: var(--peak-primary);
    background: rgba(0, 0, 0, 0.5);
}

.peak-modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-peak-cancel {
    background: transparent;
    border: none;
    color: var(--peak-muted);
    font-weight: 800;
    cursor: pointer;
    padding: 0 1.5rem;
}

.btn-peak-confirm {
    background: linear-gradient(135deg, #00d2ff, #0099ff);
    color: #000;
    border: none;
    padding: 12px 36px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    transition: 0.3s;
}

.btn-peak-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-peak-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    animation: fadeIn 0.3s ease-out;
}

.btn-peak-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
}

/* --- 3.9.8 分页控件 --- */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.5s 0.2s forwards;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--peak-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: transparent;
    background: transparent;
}

.page-info {
    font-size: 0.85rem;
    color: var(--peak-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* --- 4.4 搜索框回归: Inline Search Pill --- */
.nav-search-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 14px;
    height: 40px;
    margin: 0 auto 0 8px;
    /* Pulled much closer to the left tabs */
    flex: initial;
    /* Don't occupy full width */
    width: 320px;
    /* Fixed base width */
    max-width: 400px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-search-pill:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.1);
    max-width: 480px;
}

.search-icon-mini {
    color: var(--peak-muted);
    opacity: 0.5;
    flex-shrink: 0;
    transition: 0.3s;
}

.nav-search-pill:focus-within .search-icon-mini {
    color: var(--peak-primary);
    opacity: 1;
}

.nav-search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    height: 100%;
    padding-left: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    font-family: inherit;
}

.nav-search-input::placeholder {
    color: var(--peak-muted);
    opacity: 0.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-peak-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--peak-muted);
    width: 36px;
    height: 36px;
    /* Reduced from 44px */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.btn-peak-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn-peak-icon svg {
    width: 17px;
    /* Reduced from 20px */
    height: 17px;
    stroke-width: 2.2;
    /* Slightly bolder */
}

.p-pkg-v36 {
    font-size: 0.8rem;
    color: var(--peak-muted);
    font-weight: 600;
    opacity: 0.6;
    margin-top: 2px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 3.9 批量模式 (Batch Mode) --- */
.peak-item.batch-mode {
    border-color: rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.02);
}

.peak-item.batch-mode .p-actions-v36 {
    display: none;
}

.peak-checkbox-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    height: 48px;
    padding-left: 1.5rem;
}

.peak-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--peak-muted);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.peak-checkbox:hover {
    border-color: var(--peak-primary);
    background: rgba(0, 210, 255, 0.1);
}

.peak-checkbox.checked {
    background: var(--peak-primary);
    border-color: var(--peak-primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.peak-checkbox.checked::after {
    content: '✔';
    font-size: 14px;
    color: #000;
    font-weight: 900;
}

.btn-peak-link {
    background: transparent;
    border: none;
    color: var(--peak-primary);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: 0.2s;
}

.btn-peak-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.peak-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--peak-border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    transition: 0.3s;
    outline: none;
}

.peak-input:focus {
    border-color: var(--peak-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.field-hint {
    font-size: 0.7rem;
    color: var(--peak-muted);
    margin: 8px 4px 0;
    font-weight: 600;
}

#adbStatusHint.success {
    color: var(--peak-accent);
}

#adbStatusHint.error {
    color: var(--peak-danger);
}

/* --- 4.5 Animations --- */
.animated-zoom {
    animation: peakZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes peakZoom {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 目录浏览器核心样式 */
.explorer-path-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.modal-env-tags {
    display: flex;
    gap: 8px;
}

.modal-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--peak-muted);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.modal-tag.active {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--peak-primary);
    color: var(--peak-primary);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.1);
}

.btn-peak-icon-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--peak-primary);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.btn-peak-icon-small:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--peak-primary);
}

.btn-peak-icon-small:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.explorer-path-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--peak-muted);
    word-break: break-all;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    flex: 1;
}

.path-segment {
    cursor: pointer;
    transition: 0.2s;
    color: var(--peak-primary);
}

.path-segment:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.explorer-list-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.explorer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.explorer-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.explorer-item svg {
    color: var(--peak-primary);
    opacity: 0.7;
}

/* 强制目录浏览器居中，不再全屏黑 */
#folderExplorerModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

#folderExplorerModal .glass-card {
    width: 550px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.explorer-list-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow-y: auto;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 滚动条美化 */
.explorer-list-container::-webkit-scrollbar {
    width: 6px;
}

.explorer-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.explorer-list-container::-webkit-scrollbar-track {
    background: transparent;
}

/* --- 4.6 Input Action Button --- */
.btn-input-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--peak-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}

.btn-input-action:hover {
    background: rgba(var(--peak-primary-rgb), 0.2);
    color: var(--peak-primary);
    border-color: var(--peak-primary);
}

.peak-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.peak-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.peak-checkbox.checked {
    background: var(--peak-primary);
    border-color: var(--peak-primary);
}

.peak-checkbox.checked::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-input-action svg {
    width: 18px;
    height: 18px;
}

/* --- 旗舰级流光扫描动画 --- */
@keyframes scan-line {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    30% {
        opacity: 0.15;
    }

    70% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.peak-list-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(0, 210, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 5;
    animation: scan-line 8s infinite linear;
}

.peak-list-view {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    border-radius: 32px;
}

/* --- 5.0 上传进度条 (v3.7) --- */
.peak-progress-container {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0 12px;
    width: 200px;
    /* 与操作按钮区域宽度接近 */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.peak-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.peak-progress-value {
    height: 100%;
    background: var(--peak-primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.peak-progress-text {
    font-size: 0.75rem;
    color: var(--peak-primary);
    font-weight: 700;
    min-width: 32px;
    text-align: right;
}

/* 上传解析脉冲动画 */
.peak-progress-value.pulsing {
    width: 100% !important;
    animation: breath 1.5s infinite;
}

.uploading-state .p-actions-v36 {
    display: none !important;
}

.upload-error-actions {
    display: flex;
    gap: 8px;
}

/* --- V3.8.6 Hotfix: 补充缺失的列表样式 (v36) --- */

/* 列表容器布局补全 */
.p-identity-box {
    display: flex;
    align-items: center;
    flex: 0.7;
    /* 进一步压缩名字区域 */
    min-width: 180px;
    overflow: visible !important;
    position: relative;
    gap: 8px;
}

.p-name-v36 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    flex: 1;
    /* 名字占据剩余空间 */
}

.p-qr-v36 {
    width: 24px;
    height: 24px;
    background: #fff;
    padding: 1px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    opacity: 0.8;
    transition: 0.2s;
    flex-shrink: 0;
    z-index: 2;
}

.p-qr-v36:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    transform: none !important;
    width: 24px !important;
    height: 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.p-qr-v36 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
}

/* 确保 Flex Row 布局不会被压缩 */
.peak-item {
    display: flex !important;
    /* 强制生效 */
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    flex-wrap: nowrap;
    /* 不换行 */
}

.p-icon-v36 {
    width: 40px;
    height: 40px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--peak-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.p-env-v36 {
    width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.p-ver-v36 {
    width: 110px;
    /* 加宽以展示更长版本号 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.v-txt {
    font-weight: 800;
    font-size: 0.9rem
}

.b-txt {
    font-size: 0.7rem;
    color: var(--peak-muted)
}

.p-time-v36 {
    width: 120px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--peak-muted);
    flex-shrink: 0;
}

.p-tag-v36 {
    flex: 3;
    padding: 0 1rem;
    color: var(--peak-muted);
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
    word-break: break-all;
}

.p-actions-v36 {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.p-spacer-v36 {
    display: none;
}