    .analyze-layout {
        display: flex;
        gap: 20px;
        min-height: calc(100vh - 200px);
    }

    /* 左侧面板 — 独立固定，不随右侧滚动 */
    .side-panel {
        width: 380px;
        flex-shrink: 0;
        position: sticky;
        top: 76px;       /* 导航栏高度 */
        align-self: flex-start;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }
    .side-panel .card {
        border: none;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        margin-bottom: 16px;
    }

    /* 功能导航 */
    .func-nav .nav-link {
        border-radius: 8px;
        padding: 10px 14px;
        color: #555;
        margin-bottom: 4px;
        transition: all 0.15s;
    }
    .func-nav .nav-link:hover {
        background: #f0e6f6;
        color: #8e44ad;
    }
    .func-nav .nav-link.active {
        background: #8e44ad;
        color: white;
    }
    .func-nav .nav-link .bi {
        margin-right: 8px;
    }

    /* 右侧内容区 */
    .main-area {
        flex: 1;
        min-width: 0;
    }
    .main-area .card {
        border: none;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        margin-bottom: 16px;
    }

    /* 统计 */
    .stat-box {
        padding: 16px;
        border-radius: 10px;
        text-align: center;
    }
    .stat-total { background: #ebf5fb; color: #2980b9; }
    .stat-color { background: #fff3e0; color: #e67e22; }
    .stat-bw    { background: #eaf2f8; color: #7f8c8d; }
    .stat-number { font-size: 1.8rem; font-weight: bold; }
    .stat-label  { font-size: 0.75rem; }

    /* 缩略图网格 */
    .thumb-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .thumb-item {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        background: white;
        cursor: pointer;
        transition: transform 0.15s, box-shadow 0.15s;
        border: 2px solid transparent;
    }
    .thumb-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }
    .thumb-item img { width: 100%; display: block; }
    .thumb-badge {
        position: absolute;
        top: 6px; right: 6px;
        padding: 4px 8px;
        border-radius: 8px;
        font-size: 11px; font-weight: bold;
        pointer-events: none;
        z-index: 2;
    }
    .badge-color { background: #f39c12; color: white; }
    .badge-bw    { background: #7f8c8d; color: white; }
    .thumb-label {
        padding: 3px 6px; font-size: 10px;
        text-align: center; color: #666;
    }
    .printer-strip { height: 4px; }
    .printer-color { background: #f39c12; }
    .printer-bw    { background: #95a5a6; }
    .thumb-item.toggled { border-color: #e74c3c !important; }
    .dup-indicator {
        font-size: 9px; padding: 1px 5px; border-radius: 6px;
        display: inline-block;
    }
    .dup-forced {
        background: #fff8e1; color: #e67e22;
        border: 1px solid #f39c12;
    }

    /* 双面开关 */
    #duplex-slider::before {
        content: "";
        position: absolute; height: 18px; width: 18px;
        left: 3px; bottom: 3px;
        background-color: white; border-radius: 50%; transition: .3s;
    }
    #duplex-toggle:checked + #duplex-slider {
        background-color: #27ae60 !important;
    }
    #duplex-toggle:checked + #duplex-slider::before {
        transform: translateX(20px);
    }

    /* 进度 */
    .progress-container { display: none; margin-top: 12px; }
    .spinner-container { display: none; text-align: center; margin-top: 12px; }

    /* 空状态 */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #bdc3c7;
    }
    .empty-state .bi {
        font-size: 4rem;
    }

    /* 费用估算 */
    .cost-row {
        display: flex; justify-content: space-between;
        padding: 3px 0; font-size: 0.8rem;
    }
    .cost-total-row {
        display: flex; justify-content: space-between;
        padding: 4px 0; font-weight: bold; font-size: 0.9rem;
        border-top: 1px dashed #ddd; margin-top: 4px;
    }
    #summary-table td { font-size: 0.85rem; }

    /* 响应式：仅手机宽度才上下堆叠，桌面始终预览在右 */
    @media (max-width: 576px) {
        .analyze-layout {
            flex-direction: column;
        }
        .side-panel {
            width: 100%;
            position: static;
            max-height: none;
        }
    }
