/**
 * Equipment 前台样式
 *
 * 所有选择器都带 eqp- 前缀，只作用于本插件输出的装备墙和弹窗，
 * 不修改主题的通用类名（如 .page-header / .glass-card / .equip-card）。
 */

.eqp-shelf,
.eqp-shelf *,
.eqp-modal-mask,
.eqp-modal-mask *,
.eqp-lightbox,
.eqp-lightbox * {
    box-sizing: border-box;
}

div.eqp-shelf {
    --eqp-ink: #1e293b;
    --eqp-ink-strong: #0f172a;
    --eqp-muted: #64748b;
    --eqp-soft: #94a3b8;
    --eqp-line: #f1f5f9;
    --eqp-blue: #3b82f6;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    color: var(--eqp-ink);
    font-size: 14px;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
}

.eqp-shelf .eqp-panel {
    background: #ffffff;
    border: 1px solid var(--eqp-line);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ===== 顶部 ===== */

.eqp-shelf .eqp-topbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
}

.eqp-shelf .eqp-title {
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--eqp-ink);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
}

.eqp-shelf .eqp-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eqp-shelf .eqp-count {
    font-size: 13px;
    color: var(--eqp-muted);
    background: var(--eqp-line);
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.eqp-shelf .eqp-intro {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--eqp-muted);
    line-height: 1.75;
}

/* ===== 卡片网格 ===== */

.eqp-shelf .eqp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.eqp-shelf .eqp-item {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--eqp-line);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.eqp-shelf .eqp-item:hover,
.eqp-shelf .eqp-item:focus-visible {
    transform: translateY(-3px);
    border-color: #dbeafe;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    outline: none;
}

.eqp-shelf .eqp-item.is-retired {
    opacity: 0.78;
}

.eqp-shelf .eqp-item-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8fafc;
}

.eqp-shelf .eqp-item-media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    transition: transform 0.35s ease;
}

.eqp-shelf .eqp-item:hover .eqp-item-media img {
    transform: scale(1.035);
}

.eqp-shelf .eqp-item-media-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 36px;
    line-height: 1;
}

.eqp-shelf .eqp-item-media::after {
    content: '🔍 点击查看详情';
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.75);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.eqp-shelf .eqp-item:hover .eqp-item-media::after,
.eqp-shelf .eqp-item:focus-visible .eqp-item-media::after {
    opacity: 1;
}

.eqp-shelf .eqp-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.eqp-shelf .eqp-badge.is-active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.eqp-shelf .eqp-badge.is-retired {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.eqp-shelf .eqp-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}

.eqp-shelf .eqp-item-name {
    margin: 0;
    padding: 0;
    color: var(--eqp-ink-strong);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    border: 0;
    word-break: normal;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eqp-shelf .eqp-item-model {
    color: var(--eqp-soft);
    font-size: 12px;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eqp-shelf .eqp-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
}

.eqp-star.is-on {
    color: #f59e0b;
}

.eqp-star.is-off {
    color: #e2e8f0;
}

.eqp-shelf .eqp-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
}

.eqp-shelf .eqp-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px dashed var(--eqp-line);
    font-size: 12px;
}

.eqp-shelf .eqp-meta-row:last-child {
    border-bottom: 0;
}

.eqp-shelf .eqp-meta-row > span:first-child {
    color: var(--eqp-muted);
    white-space: nowrap;
}

.eqp-shelf .eqp-meta-row > span:last-child {
    color: var(--eqp-ink);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* ===== 空状态 ===== */

.eqp-shelf .eqp-empty {
    padding: 60px 24px;
    text-align: center;
}

.eqp-shelf .eqp-empty-icon {
    display: block;
    margin-bottom: 16px;
    font-size: 56px;
    line-height: 1;
}

.eqp-shelf .eqp-empty-title {
    margin: 4px 0;
    color: var(--eqp-soft);
    font-size: 15px;
}

.eqp-shelf .eqp-empty-hint {
    margin: 12px 0 0;
    color: #cbd5e1;
    font-size: 13px;
}

/* ============================================================
   详情弹窗
   ============================================================ */

.eqp-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.eqp-modal-mask.is-open {
    opacity: 1;
    visibility: visible;
}

.eqp-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

.eqp-modal-mask.is-open .eqp-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.eqp-modal-head {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f7ff, #e0eaff);
}

.eqp-modal-cover {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.eqp-modal-cover img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    cursor: zoom-in;
}

.eqp-modal-cover-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 36px;
    line-height: 1;
}

.eqp-modal-title-wrap {
    flex: 1;
    min-width: 0;
    padding-right: 40px;
}

.eqp-modal-name {
    margin: 0 0 6px;
    padding: 0;
    color: var(--eqp-ink-strong);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    border: 0;
    word-break: break-word;
}

.eqp-modal-model {
    margin-bottom: 8px;
    color: var(--eqp-muted);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.eqp-modal-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.eqp-modal-rating-text {
    margin-left: 6px;
    color: var(--eqp-muted);
    font-size: 13px;
    font-weight: 500;
}

.eqp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--eqp-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.eqp-modal-close:hover,
.eqp-modal-close:focus-visible {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
    outline: none;
}

.eqp-modal-body {
    flex: 1;
    padding: 20px 24px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.eqp-modal-body::-webkit-scrollbar {
    width: 6px;
}

.eqp-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.eqp-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.eqp-modal-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef2ff;
    font-size: 14px;
}

.eqp-modal-row:last-child {
    border-bottom: 0;
}

.eqp-modal-label {
    flex-shrink: 0;
    color: var(--eqp-muted);
    font-weight: 500;
}

.eqp-modal-value {
    color: var(--eqp-ink-strong);
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    word-break: break-word;
}

.eqp-modal-value.is-sale {
    color: #ef4444;
}

/* 日均成本 */

.eqp-cost {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f0f7ff;
}

.eqp-cost.is-retired {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.eqp-cost-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.eqp-cost-status {
    color: #16a34a;
    font-size: 13px;
    font-weight: 700;
}

.eqp-cost.is-retired .eqp-cost-status {
    color: var(--eqp-muted);
}

.eqp-cost-days {
    padding: 2px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: var(--eqp-muted);
    font-size: 12px;
    white-space: nowrap;
}

.eqp-cost-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.eqp-cost-price {
    color: var(--eqp-ink-strong);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.eqp-cost-daily {
    color: var(--eqp-blue);
    font-size: 14px;
    font-weight: 600;
}

.eqp-cost.is-retired .eqp-cost-daily {
    color: var(--eqp-soft);
}

/* 评价 / 出售原因 */

.eqp-block {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.75;
}

.eqp-block-label {
    display: block;
    margin-bottom: 6px;
    color: var(--eqp-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.eqp-block.is-review {
    border-left: 3px solid var(--eqp-blue);
    background: #f0f7ff;
    color: var(--eqp-ink);
}

.eqp-block.is-reason {
    border-left: 3px solid var(--eqp-soft);
    background: #f8fafc;
    color: #475569;
}

.eqp-block.is-reason .eqp-block-label {
    color: var(--eqp-muted);
}

.eqp-modal-empty {
    padding: 20px 0;
    color: var(--eqp-soft);
    text-align: center;
}

/* ===== 图片放大 ===== */

.eqp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.eqp-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.eqp-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    cursor: default;
}

/* ===== 响应式 ===== */

@media (max-width: 768px) {
    div.eqp-shelf {
        gap: 16px;
    }

    .eqp-shelf .eqp-topbar {
        padding: 12px 16px;
    }

    .eqp-shelf .eqp-title {
        font-size: 18px;
    }

    .eqp-shelf .eqp-intro {
        padding: 14px 18px;
        font-size: 13px;
    }

    .eqp-shelf .eqp-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .eqp-modal {
        max-height: 94vh;
        border-radius: 20px;
    }

    .eqp-modal-head {
        gap: 14px;
        padding: 16px 18px;
    }

    .eqp-modal-cover {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }

    .eqp-modal-name {
        font-size: 17px;
    }

    .eqp-modal-body {
        padding: 16px 18px 20px;
    }

    .eqp-modal-row {
        font-size: 13px;
    }

    .eqp-block {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .eqp-shelf .eqp-topbar {
        padding: 12px 14px;
    }

    .eqp-shelf .eqp-title {
        font-size: 17px;
    }

    .eqp-shelf .eqp-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .eqp-shelf .eqp-item-body {
        padding: 10px 12px 12px;
    }

    .eqp-shelf .eqp-item-model {
        font-size: 11px;
    }

    .eqp-shelf .eqp-meta-row {
        font-size: 11px;
    }

    .eqp-modal-head {
        flex-direction: column;
        align-items: center;
        padding: 20px 16px 16px;
        text-align: center;
    }

    .eqp-modal-cover {
        width: 100px;
        height: 100px;
    }

    .eqp-modal-title-wrap {
        padding-right: 0;
    }

    .eqp-modal-name {
        font-size: 16px;
    }

    .eqp-modal-row {
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }

    .eqp-modal-value {
        text-align: left;
    }

    .eqp-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* ============================================================
   AUO 黑夜模式
   主题的 html.auo-dark 会给正文标题 / 文本换成浅色；
   这里把装备墙的面板同步换成深色，避免白底浅字。
   ============================================================ */

html.auo-dark div.eqp-shelf {
    color: #d5dfee;
}

html.auo-dark .eqp-shelf .eqp-panel,
html.auo-dark .eqp-shelf .eqp-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

html.auo-dark .eqp-shelf .eqp-item:hover,
html.auo-dark .eqp-shelf .eqp-item:focus-visible {
    border-color: #475569;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.auo-dark .eqp-shelf .eqp-count {
    background: #334155;
    color: #cbd5e1;
}

html.auo-dark .eqp-shelf .eqp-intro {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-item-media {
    background: #0f172a;
}

html.auo-dark .eqp-shelf .eqp-item-media-icon {
    color: #475569;
}

html.auo-dark .eqp-shelf .eqp-item-model {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-star.is-off {
    color: #475569;
}

html.auo-dark .eqp-shelf .eqp-meta-row {
    border-bottom-color: #334155;
}

html.auo-dark .eqp-shelf .eqp-meta-row > span:first-child {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-meta-row > span:last-child {
    color: #e2e8f0;
}

html.auo-dark .eqp-shelf .eqp-empty-title {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-empty-hint {
    color: #64748b;
}

html.auo-dark .eqp-modal {
    background: #1e293b;
    color: #e2e8f0;
}

html.auo-dark .eqp-modal-head {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

html.auo-dark .eqp-modal-cover {
    background: #0f172a;
    border-color: #334155;
}

html.auo-dark .eqp-modal-cover-icon {
    color: #475569;
}

html.auo-dark .eqp-modal-name {
    color: #f1f5f9;
}

html.auo-dark .eqp-modal-model,
html.auo-dark .eqp-modal-rating-text,
html.auo-dark .eqp-modal-label {
    color: #94a3b8;
}

html.auo-dark .eqp-modal-value {
    color: #e2e8f0;
}

html.auo-dark .eqp-modal-value.is-sale {
    color: #f87171;
}

html.auo-dark .eqp-modal-row {
    border-bottom-color: #334155;
}

html.auo-dark .eqp-modal-close {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

html.auo-dark .eqp-modal-close:hover,
html.auo-dark .eqp-modal-close:focus-visible {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

html.auo-dark .eqp-modal-body::-webkit-scrollbar-thumb {
    background: #475569;
}

html.auo-dark .eqp-cost {
    background: #172554;
    border-color: #1e3a8a;
}

html.auo-dark .eqp-cost.is-retired {
    background: #1e293b;
    border-color: #334155;
}

html.auo-dark .eqp-cost-price {
    color: #f1f5f9;
}

html.auo-dark .eqp-cost-daily {
    color: #93c5fd;
}

html.auo-dark .eqp-cost.is-retired .eqp-cost-daily {
    color: #94a3b8;
}

html.auo-dark .eqp-cost-days {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

html.auo-dark .eqp-block.is-review {
    background: #172554;
    border-left-color: #3b82f6;
    color: #e2e8f0;
}

html.auo-dark .eqp-block.is-reason {
    background: #1e293b;
    border-left-color: #64748b;
    color: #cbd5e1;
}

html.auo-dark .eqp-modal-empty {
    color: #64748b;
}

/* ============================================================
   装备 / M85C 标签切换
   ============================================================ */

.eqp-shelf .eqp-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eqp-shelf .eqp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.eqp-shelf .eqp-tab:hover {
    border-color: #bfdbfe;
    color: #2563eb;
}

.eqp-shelf .eqp-tab.is-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.eqp-shelf .eqp-tab:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.eqp-shelf .eqp-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.eqp-shelf .eqp-tab.is-active .eqp-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.eqp-shelf .eqp-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eqp-shelf [hidden] {
    display: none !important;
}

.eqp-shelf .eqp-topbar-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   M85C 资料卡
   ============================================================ */

.eqp-shelf .eqp-m85c {
    gap: 20px;
}

.eqp-shelf .eqp-m85c-hero {
    display: flex;
    align-items: stretch;
    max-width: 520px;
    margin: 0 auto;
    overflow: visible;
    border-radius: 16px;
}

.eqp-shelf .eqp-m85c-hero-img {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 160px;
    padding: 12px;
    border-right: 1px dashed #e2e8f0;
    border-radius: 16px 0 0 16px;
    background: #f8fafc;
}

.eqp-shelf .eqp-m85c-hero-img img {
    display: block;
    max-width: 100%;
    max-height: 160px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.eqp-shelf .eqp-m85c-hero-img img:hover {
    transform: scale(1.03);
}

.eqp-shelf .eqp-m85c-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    color: #cbd5e1;
    font-size: 48px;
    line-height: 1;
}

.eqp-shelf .eqp-m85c-hero-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 0 16px 16px 0;
}

.eqp-shelf .eqp-m85c-title {
    margin: 0 0 12px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid #eef2ff;
    color: #1e293b;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1px;
    word-break: normal;
    overflow-wrap: break-word;
}

.eqp-shelf .eqp-m85c-info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.eqp-shelf .eqp-m85c-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.eqp-shelf .eqp-m85c-info-label {
    flex-shrink: 0;
    width: 85px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.eqp-shelf .eqp-m85c-info-value {
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

.eqp-shelf .eqp-m85c-empty-info {
    margin: 2px 0;
    color: #94a3b8;
    font-size: 12px;
}

/* 里程提示气泡 */
.eqp-shelf .eqp-m85c-hint {
    position: relative;
    border-bottom: 2px dashed #cbd5e1;
    cursor: help;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.eqp-shelf .eqp-m85c-hint:hover {
    border-bottom-color: #3b82f6;
    color: #3b82f6;
}

.eqp-shelf .eqp-m85c-hint::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 8;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.95);
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(2px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.eqp-shelf .eqp-m85c-hint:hover::after,
.eqp-shelf .eqp-m85c-hint:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   M85C 维修记录
   ============================================================ */

.eqp-shelf .eqp-m85c-records {
    padding: 20px 22px;
    border-radius: 16px;
}

.eqp-shelf .eqp-m85c-records-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.eqp-shelf .eqp-m85c-records-title {
    margin: 0;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 4px solid #3b82f6;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.eqp-shelf .eqp-m85c-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eqp-shelf .eqp-m85c-group {
    margin: 0;
    overflow: hidden;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.eqp-shelf .eqp-m85c-group[open] {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.eqp-shelf .eqp-m85c-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.eqp-shelf .eqp-m85c-summary::-webkit-details-marker {
    display: none;
}

.eqp-shelf .eqp-m85c-summary:hover {
    background: #f8fafc;
}

.eqp-shelf .eqp-m85c-summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.eqp-shelf .eqp-m85c-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.eqp-shelf .eqp-m85c-names {
    display: inline-block;
    max-width: 360px;
    padding: 2px 10px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2ff;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.eqp-shelf .eqp-m85c-count {
    padding: 2px 10px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    white-space: nowrap;
}

.eqp-shelf .eqp-m85c-chevron {
    flex-shrink: 0;
    margin-left: 10px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.eqp-shelf .eqp-m85c-group[open] .eqp-m85c-chevron {
    color: #3b82f6;
    transform: rotate(180deg);
}

.eqp-shelf .eqp-m85c-body {
    padding: 0 20px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fcfcfc;
}

.eqp-shelf .eqp-m85c-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eqp-shelf .eqp-m85c-record {
    display: flex;
    align-items: flex-start;
    gap: 8px 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 14px;
    line-height: 1.7;
}

.eqp-shelf .eqp-m85c-record:last-child {
    border-bottom: 0;
}

.eqp-shelf .eqp-m85c-record-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    flex: 0 1 auto;
}

.eqp-shelf .eqp-m85c-record-item,
.eqp-shelf .eqp-m85c-record-price {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.eqp-shelf .eqp-m85c-record-price {
    color: #e74c3c;
    font-weight: 600;
}

.eqp-shelf .eqp-m85c-label {
    flex-shrink: 0;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.eqp-shelf .eqp-m85c-record-note {
    flex: 1 1 240px;
    min-width: 0;
    color: #64748b;
    font-style: italic;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.eqp-shelf .eqp-m85c-record-note .eqp-m85c-label {
    font-style: normal;
}

.eqp-shelf .eqp-m85c-empty {
    padding: 44px 20px;
    text-align: center;
}

.eqp-shelf .eqp-m85c-empty .eqp-empty-title {
    margin: 0 0 4px;
}

/* ============================================================
   M85C 响应式
   ============================================================ */

@media (max-width: 768px) {
    .eqp-shelf .eqp-topbar {
        align-items: flex-start;
    }

    .eqp-shelf .eqp-tabs {
        width: 100%;
    }

    .eqp-shelf .eqp-tab {
        flex: 1 1 auto;
        justify-content: center;
    }

    .eqp-shelf .eqp-m85c-hero {
        flex-direction: column;
        max-width: 100%;
    }

    .eqp-shelf .eqp-m85c-hero-img {
        width: 100%;
        border-right: 0;
        border-bottom: 1px dashed #e2e8f0;
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }

    .eqp-shelf .eqp-m85c-hero-info {
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }

    .eqp-shelf .eqp-m85c-title {
        text-align: center;
        font-size: 20px;
    }

    .eqp-shelf .eqp-m85c-info-row {
        align-items: flex-start;
    }

    .eqp-shelf .eqp-m85c-hint::after {
        left: 0;
        transform: translateY(2px);
        max-width: 220px;
        white-space: normal;
    }

    .eqp-shelf .eqp-m85c-hint:hover::after,
    .eqp-shelf .eqp-m85c-hint:focus::after {
        transform: translateY(0);
    }

    .eqp-shelf .eqp-m85c-summary {
        padding: 15px 16px;
    }

    .eqp-shelf .eqp-m85c-names {
        max-width: 150px;
        font-size: 12px;
    }

    .eqp-shelf .eqp-m85c-record {
        flex-direction: column;
        gap: 8px;
    }

    .eqp-shelf .eqp-m85c-record-main {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .eqp-shelf .eqp-m85c-record-item,
    .eqp-shelf .eqp-m85c-record-price,
    .eqp-shelf .eqp-m85c-record-note {
        flex: 1 1 100%;
        width: 100%;
    }

    .eqp-shelf .eqp-m85c-label {
        width: 52px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .eqp-shelf .eqp-m85c-names {
        max-width: 110px;
        padding: 1px 8px;
        font-size: 11px;
    }

    .eqp-shelf .eqp-m85c-count {
        padding: 1px 8px;
        font-size: 11px;
    }

    .eqp-shelf .eqp-m85c-date {
        font-size: 14px;
    }

    .eqp-shelf .eqp-m85c-records {
        padding: 16px;
    }

    .eqp-shelf .eqp-m85c-body {
        padding: 0 16px 16px;
    }
}

/* ============================================================
   AUO 黑夜模式：标签 / M85C
   ============================================================ */

html.auo-dark .eqp-shelf .eqp-tab {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

html.auo-dark .eqp-shelf .eqp-tab:hover {
    border-color: #475569;
    color: #93c5fd;
}

html.auo-dark .eqp-shelf .eqp-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

html.auo-dark .eqp-shelf .eqp-tab-count {
    background: #334155;
    color: #cbd5e1;
}

html.auo-dark .eqp-shelf .eqp-tab.is-active .eqp-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

html.auo-dark .eqp-shelf .eqp-m85c-hero-img {
    background: #0f172a;
    border-color: #334155;
}

html.auo-dark .eqp-shelf .eqp-m85c-hero-icon {
    color: #475569;
}

html.auo-dark .eqp-shelf .eqp-m85c-title {
    border-bottom-color: #334155;
    color: #f1f5f9;
}

html.auo-dark .eqp-shelf .eqp-m85c-info-row {
    color: #cbd5e1;
}

html.auo-dark .eqp-shelf .eqp-m85c-info-label {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-m85c-info-value {
    color: #e2e8f0;
}

html.auo-dark .eqp-shelf .eqp-m85c-empty-info {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-m85c-hint {
    border-bottom-color: #475569;
}

html.auo-dark .eqp-shelf .eqp-m85c-hint:hover {
    border-bottom-color: #93c5fd;
    color: #93c5fd;
}

html.auo-dark .eqp-shelf .eqp-m85c-records-title {
    color: #f1f5f9;
}

html.auo-dark .eqp-shelf .eqp-m85c-group {
    background: #1e293b;
    border-color: #334155;
}

html.auo-dark .eqp-shelf .eqp-m85c-group[open] {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

html.auo-dark .eqp-shelf .eqp-m85c-summary {
    color: #e2e8f0;
}

html.auo-dark .eqp-shelf .eqp-m85c-summary:hover {
    background: #172033;
}

html.auo-dark .eqp-shelf .eqp-m85c-date {
    color: #e2e8f0;
}

html.auo-dark .eqp-shelf .eqp-m85c-names {
    background: #172554;
    color: #93c5fd;
}

html.auo-dark .eqp-shelf .eqp-m85c-count {
    background: #334155;
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-m85c-chevron {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-m85c-group[open] .eqp-m85c-chevron {
    color: #93c5fd;
}

html.auo-dark .eqp-shelf .eqp-m85c-body {
    background: #0f172a;
    border-top-color: #334155;
}

html.auo-dark .eqp-shelf .eqp-m85c-record {
    border-bottom-color: #334155;
}

html.auo-dark .eqp-shelf .eqp-m85c-label {
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-m85c-record-price {
    color: #f87171;
}

html.auo-dark .eqp-shelf .eqp-m85c-record-note {
    color: #cbd5e1;
}

/* ============================================================
   分组目录
   ============================================================ */

.eqp-shelf {
    min-width: 0;
}

.eqp-shelf .eqp-toc {
    padding: 14px 18px;
    border-radius: 16px;
}

.eqp-shelf .eqp-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.eqp-shelf .eqp-toc-label {
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.eqp-shelf .eqp-toc-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eqp-shelf .eqp-toc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.eqp-shelf .eqp-toc-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.eqp-shelf .eqp-toc-count {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.6;
}

/* ============================================================
   分组标题
   ============================================================ */

.eqp-shelf .eqp-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 90px;
}

.eqp-shelf .eqp-group-head {
    padding: 16px 20px;
    border-radius: 16px;
}

.eqp-shelf .eqp-group-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eqp-shelf .eqp-group-title {
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
}

.eqp-shelf .eqp-group-count {
    padding: 2px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}

.eqp-shelf .eqp-group-desc {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .eqp-shelf .eqp-group-head {
        padding: 14px 16px;
    }

    .eqp-shelf .eqp-group-title {
        font-size: 18px;
    }

    .eqp-shelf .eqp-toc {
        padding: 12px 14px;
    }
}

/* ============================================================
   AUO 黑夜模式：目录 / 分组
   ============================================================ */

html.auo-dark .eqp-shelf .eqp-toc-label {
    color: #f1f5f9;
}

html.auo-dark .eqp-shelf .eqp-toc-link {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

html.auo-dark .eqp-shelf .eqp-toc-link:hover {
    border-color: #3b82f6;
    background: #172554;
    color: #93c5fd;
}

html.auo-dark .eqp-shelf .eqp-toc-count {
    background: #334155;
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-group-title {
    color: #f1f5f9;
}

html.auo-dark .eqp-shelf .eqp-group-count {
    background: #334155;
    color: #94a3b8;
}

html.auo-dark .eqp-shelf .eqp-group-desc {
    color: #94a3b8;
}
