/* =====================================================
   LM Content 前台资源区样式 v1.5
   卡片式布局 / 网盘品牌色图标 / 柔和阴影 / 移动端适配
   ===================================================== */

/* ===== 资源容器 ===== */
.lmc-resources { margin: 28px 0; }

/* ===== 外层面板 ===== */
.lmc-panel-box {
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    padding: 18px 20px 16px;
    margin: 18px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 1px 3px rgba(15, 40, 80, .05), 0 8px 24px -12px rgba(15, 40, 80, .08);
}
.lmc-panel-box > h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1a2233;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .2px;
}
.lmc-panel-box > h3::before {
    content: "";
    display: inline-block;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3b82f6, #2563eb) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M5 20h14v-2H5v2zm7-18l-5 5h3v6h4V7h3l-5-5z' transform='rotate(180 12 12)'/></svg>") center/13px no-repeat;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .35);
}

/* ===== 单个资源卡片 ===== */
.lmc-res-box {
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    background: #fff;
    transition: box-shadow .2s ease;
}
.lmc-res-box:hover { box-shadow: 0 4px 16px -8px rgba(15, 40, 80, .12); }
.lmc-res-box h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1a2233;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* ===== 可见性角标 ===== */
.lmc-vis-badge {
    display: inline-block !important;
    padding: 1px 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

/* ===== 子项行（网盘下载项）===== */
.lmc-urls { margin: 0; padding-left: 0; list-style: none; }

.lmc-url-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 8px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    color: #1a2233;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lmc-url-item:hover {
    background: #fff;
    border-color: #cfe0f5;
    box-shadow: 0 4px 14px -6px rgba(34, 113, 177, .18);
    transform: translateY(-1px);
}

/* 默认平台高亮 */
.lmc-url-default {
    background: linear-gradient(180deg, #f2f8ff 0%, #eaf3fe 100%);
    border-color: #b9d4f2;
}
.lmc-url-default:hover { border-color: #8fbdec; }

/* 左侧：网盘品牌图标 + 名称 */
.lmc-pan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
    flex-shrink: 0;
    font-size: 13px;
    order: 0;
}
.lmc-pan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px -1px rgba(15, 40, 80, .3);
}
.lmc-pan-badge svg { width: 15px; height: 15px; display: block; }
.lmc-pan img,
.lmc-pan i,
.lmc-pan svg {
    width: 22px; height: 22px;
    display: inline-block;
    vertical-align: middle;
}
.lmc-pan-name { white-space: nowrap; }

/* 中间：文件标题（粗体）+ 角标 */
.lmc-file-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a2233;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-all;
    order: 1;
}

/* 默认角标（跟随文件标题） */
.lmc-def-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: 1px;
    background: #e8f2fe;
    color: #1d6fc4;
    border: 1px solid #b9d4f2;
}

/* 提取码 chip */
.lmc-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    flex-shrink: 0;
    order: 2;
}
.lmc-code-label { color: #94a3b8; }
.lmc-copy {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 7px;
    padding: 3px 11px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: all .15s;
    font-family: inherit;
}
.lmc-copy:hover {
    background: #334155;
    border-color: #334155;
    color: #fff;
}
.lmc-copy.is-copied {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* 右侧：主按钮 */
.lmc-dl {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all .18s;
    flex-shrink: 0;
    line-height: 1.4;
    box-shadow: 0 2px 6px -1px rgba(37, 99, 235, .35);
    order: 3;
}
.lmc-dl:hover {
    background: linear-gradient(135deg, #2f6fe0, #1d4fc0);
    color: #fff !important;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, .45);
    transform: translateY(-1px);
}
.lmc-dl .lmc-dl-arrow { font-size: 14px; transition: transform .18s; }
.lmc-dl:hover .lmc-dl-arrow { transform: translateX(2px); }

/* ===== 未购提示条 ===== */
.lmc-links-hidden {
    padding: 12px 16px;
    margin: 4px 0;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lmc-links-buy { display: inline-flex; align-items: center; }

/* ===== 锁定/付费墙 ===== */
.lmc-locked { background: #fef5f5; border-color: #f3d4d4; }
.lmc-wall {
    border: 1px solid #e3eaf3;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    border-radius: 14px;
    padding: 28px 24px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(34, 113, 177, .07);
    color: #1f2937;
}
.lmc-wall .button { margin: 6px; }
.lmc-wall-pay .lmc-wall-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #b45309;
}
.lmc-wall-pay .lmc-wall-icon { color: #f59e0b; flex-shrink: 0; }
.lmc-wall-pay .lmc-wall-title {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}
.lmc-wall-pay .lmc-wall-amount-inline {
    color: #dc2626;
    font-weight: 700;
    font-size: 17px;
    margin: 0 2px;
}
.lmc-wall-pay .lmc-wall-price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 6px 0 14px;
    color: #dc2626;
}
.lmc-wall-pay .lmc-wall-amount {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}
.lmc-wall-pay .lmc-wall-unit {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}
.lmc-wall-pay .lmc-wall-balance {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 14px;
}
.lmc-wall-pay .lmc-wall-balance b {
    color: #111827;
    font-weight: 600;
    margin: 0 2px;
}
.lmc-wall-pay .lmc-wall-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}
.lmc-wall-pay .lmc-btn,
.lmc-links-hidden .lmc-btn {
    display: inline-block;
    padding: 9px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}
.lmc-wall-pay .lmc-btn-primary,
.lmc-links-hidden .lmc-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    border-color: #2563eb;
    box-shadow: 0 2px 6px -1px rgba(37, 99, 235, .35);
}
.lmc-wall-pay .lmc-btn-primary:hover,
.lmc-links-hidden .lmc-btn-primary:hover {
    background: linear-gradient(135deg, #2f6fe0, #1d4fc0);
    border-color: #1d4fc0;
    color: #fff !important;
}
.lmc-wall-pay .lmc-btn-ghost,
.lmc-links-hidden .lmc-btn-ghost {
    background: #fff;
    color: #2563eb !important;
    border-color: #cbd5e1;
}
.lmc-wall-pay .lmc-btn-ghost:hover,
.lmc-links-hidden .lmc-btn-ghost:hover {
    border-color: #2563eb;
    background: #f0f6fc;
    color: #2563eb !important;
}
.lmc-wall-pay .lmc-wall-tip {
    font-size: 12px;
    color: #9ca3af;
}
.lmc-wall-info {
    text-align: center;
    color: #4b5563;
    font-size: 14px;
}
.lmc-wall-info p { margin: 0 0 12px; }
.lmc-wall-info b { color: #2563eb; }

/* ===== 会员购买表单 ===== */
.lmc-buy-form {
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    padding: 20px;
    margin: 18px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 40, 80, .05);
}
.lmc-level-card {
    padding: 12px 0;
    border-bottom: 1px dashed #e5e9f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.lmc-level-card:last-child { border-bottom: none; }

/* ===== 资源库资源卡 ===== */
.lmc-lib-res { background: #fff; }
.lmc-lib-desc {
    margin: 0 0 10px;
    padding: 9px 14px;
    background: #f6f8fa;
    border-left: 3px solid #93b8e4;
    border-radius: 6px;
    color: #5b6b7b;
    font-size: 13px;
    white-space: pre-wrap;
}
.lmc-lib-empty {
    padding: 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ===== 资源大全列表 / 分页 ===== */
.lmc-res-list .lmc-res-box { margin: 0 0 14px; }
.lmc-res-pagination {
    margin: 18px 0;
    text-align: center;
}
.lmc-res-pagination .page-numbers {
    display: inline-block;
    padding: 6px 13px;
    margin: 0 2px;
    border: 1px solid #d9e2ec;
    border-radius: 7px;
    color: #2563eb !important;
    text-decoration: none !important;
    font-size: 13px;
    background: #fff;
    transition: all .15s;
}
.lmc-res-pagination .page-numbers.current {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #2563eb;
    color: #fff !important;
}
.lmc-res-pagination .page-numbers:hover:not(.current) {
    background: #f0f6fc;
    border-color: #b9d4f2;
}

/* ===== 推荐角标 ===== */
.lmc-rec-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: 1px;
    background: linear-gradient(135deg, #fff7e6, #ffefc2);
    color: #d48806;
    border: 1px solid #ffd666;
}

/* ===== 其他下载地址折叠按钮 ===== */
.lmc-urls-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 4px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 40, 80, .04);
}
.lmc-urls-toggle:hover {
    color: #2563eb;
    border-color: #93b8e4;
    background: #f7fbff;
}
.lmc-urls-toggle .lmc-toggle-arrow {
    font-size: 11px;
    display: inline-block;
    transition: transform .2s;
}
.lmc-urls-toggle.is-open .lmc-toggle-arrow { transform: rotate(0deg); }
.lmc-urls-extra {
    margin-top: 6px;
    padding-top: 2px;
    animation: lmcFadeIn .2s ease;
}
@keyframes lmcFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
    .lmc-panel-box { padding: 14px 12px 12px; }
    .lmc-url-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .lmc-pan { justify-content: flex-start; }
    .lmc-file-title { flex: none; }
    .lmc-code { order: 2; }
    .lmc-dl {
        order: 3;
        justify-content: center;
        text-align: center;
    }
    .lmc-wall { padding: 20px 14px; }
}

/* ===== 下载会员购买卡片（与用户中心「我的会员」购买 UI 同风格） ===== */
.lmc-buy-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; max-width: 1080px; margin: 20px auto; font-family: inherit; color: #1f2937; }
.lmc-buy-title { font-size: 20px; font-weight: 600; color: #111827; margin: 0 0 10px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 8px; }
.lmc-buy-title::before { content: ''; display: inline-block; width: 4px; height: 18px; background: #2271b1; border-radius: 2px; }
.lmc-buy-balance { margin: 0 0 14px; color: #6b7280; font-size: 14px; }
.lmc-buy-balance strong { color: #2271b1; font-size: 16px; }
.lm-buy-list { display: flex; flex-direction: column; gap: 10px; }
.lm-buy-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
    background: #fff; transition: all .15s ease;
}
.lm-buy-item:hover { border-color: #c7d8eb; box-shadow: 0 2px 10px rgba(34, 113, 177, .1); }
.lm-bi-main { display: flex; flex-direction: column; gap: 2px; }
.lm-bi-name { font-size: 15px; font-weight: 600; color: #111827; }
.lm-bi-dur { font-size: 12px; color: #9ca3af; }
.lm-bi-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.lm-bi-price { font-size: 18px; font-weight: 700; color: #2271b1; }
.lmc-buy-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lmc-buy-inline { display: inline-block; margin: 0; }
.lmc-btn { display: inline-block; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.lmc-btn-primary { background: #2271b1; color: #fff !important; border-color: #2271b1; box-shadow: 0 1px 2px rgba(34, 113, 177, .25); }
.lmc-btn-primary:hover { background: #135e96; border-color: #135e96; }
.lmc-btn-ghost { background: #fff; color: #2271b1 !important; border-color: #cbd5e1; }
.lmc-btn-ghost:hover { border-color: #2271b1; background: #f0f6fc; }

/* ===== 资源大全：搜索栏 ===== */
.lmc-ressearch {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 12px; padding: 12px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
}
.lmc-ressearch-kw {
    flex: 1 1 220px; padding: 9px 14px;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 13.5px; font-family: inherit; color: #111827;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lmc-ressearch-kw:focus { outline: none; border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34, 113, 177, .12); }
.lmc-ressearch select {
    padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 13px; background: #fff; font-family: inherit; color: #374151; cursor: pointer;
}
.lmc-ressearch-btn {
    padding: 9px 24px; border: 1px solid #2271b1; border-radius: 8px;
    background: #2271b1; color: #fff; font-size: 13.5px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: background .15s ease;
}
.lmc-ressearch-btn:hover { background: #135e96; border-color: #135e96; }
.lmc-ressearch-reset { font-size: 13px; color: #2271b1; text-decoration: none !important; }
.lmc-ressearch-reset:hover { text-decoration: underline; }

/* ===== 资源大全：卡片网格 ===== */
.lmc-reslist-wrap { margin: 10px 0; }
/* 分类目录筛选条 */
.lmc-rescats {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 0 0 16px; padding: 12px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
}
.lmc-rescat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 999px;
    border: 1px solid #e5e7eb; background: #fff;
    color: #374151; font-size: 13.5px; font-weight: 500;
    text-decoration: none !important; transition: all .15s ease;
}
.lmc-rescat-pill:hover { border-color: #2271b1; color: #2271b1; transform: translateY(-1px); }
.lmc-rescat-pill.is-active { background: #2271b1; border-color: #2271b1; color: #fff; }
.lmc-rescat-pill .n {
    font-size: 11px; background: rgba(34, 113, 177, .1); color: #2271b1;
    border-radius: 999px; padding: 1px 7px; line-height: 1.4;
}
.lmc-rescat-pill.is-active .n { background: rgba(255, 255, 255, .25); color: #fff; }
.lmc-reslist-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px; margin: 0 0 18px;
}
.lmc-rescard {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; transition: all .15s ease;
}
.lmc-rescard:hover { border-color: #c7d8eb; box-shadow: 0 4px 16px rgba(34, 113, 177, .12); }
.lmc-rescard.is-open { border-color: #2271b1; }
.lmc-rescard-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; cursor: pointer; user-select: none;
}
.lmc-rescard-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700;
}
.lmc-rescard-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lmc-rescard-name { font-size: 15px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lmc-rescard-desc {
    font-size: 12.5px; color: #9ca3af;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.lmc-rescard-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.lmc-rescard-cats { display: flex; gap: 6px; }
.lmc-rescard-cat {
    font-size: 11px; color: #2271b1; background: #f0f6fc;
    border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.lmc-rescard-stats { display: flex; gap: 10px; font-size: 12px; color: #9ca3af; white-space: nowrap; }
.lmc-rescard-btn {
    border: 1px solid #2271b1; background: #f0f6fc; color: #2271b1;
    border-radius: 999px; padding: 4px 14px; font-size: 12.5px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .15s ease; white-space: nowrap;
}
.lmc-rescard:hover .lmc-rescard-btn,
.lmc-rescard.is-open .lmc-rescard-btn { background: #2271b1; color: #fff; }
/* 展开区：承载完整资源内容（权限/付费墙/下载地址） */
.lmc-rescard-body { border-top: 1px dashed #eef2f7; padding: 12px 16px 14px; background: #fafbfc; }
.lmc-rescard-body .lmc-res-box {
    border: none; border-radius: 8px; padding: 0; margin: 0;
    background: transparent; box-shadow: none;
}
/* 分页 */
.lmc-res-pagination { margin: 18px 0 6px; text-align: center; }
.lmc-res-pagination .page-numbers {
    display: inline-block; padding: 6px 13px; margin: 0 3px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    background: #fff; color: #374151; text-decoration: none !important; font-size: 13px;
}
.lmc-res-pagination .page-numbers:hover { border-color: #2271b1; color: #2271b1; }
.lmc-res-pagination .page-numbers.current { background: #2271b1; border-color: #2271b1; color: #fff; }
.lmc-res-pagination .page-numbers.dots { border: none; background: none; }
/* 窄屏：卡片改上下布局 */
@media (max-width: 560px) {
    .lmc-reslist-grid { grid-template-columns: 1fr; }
    .lmc-rescard-meta { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ===== 资源详情弹窗 ===== */
#lmc-resmodal-overlay {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(15, 23, 42, .55);
    align-items: center; justify-content: center; padding: 20px;
}
#lmc-resmodal-overlay.is-open { display: flex; }
.lmc-resmodal {
    background: #fff; width: 100%; max-width: 640px; max-height: 86vh;
    display: flex; flex-direction: column;
    border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    overflow: hidden;
}
.lmc-resmodal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid #eef2f7; background: #f8fafc;
    flex-shrink: 0;
}
.lmc-resmodal-title { font-size: 16px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lmc-resmodal-close {
    border: none; background: transparent; font-size: 24px; line-height: 1;
    color: #94a3b8; cursor: pointer; padding: 0 4px; border-radius: 6px; flex-shrink: 0;
}
.lmc-resmodal-close:hover { color: #475569; background: #eef2f7; }
.lmc-resmodal-body { padding: 16px 18px; overflow-y: auto; }
.lmc-resmodal-body .lmc-res-box:last-child { margin-bottom: 0; }
body.lmc-resmodal-noscroll { overflow: hidden; }

/* ===== 资源详情分享页 ===== */
.lmc-resinfo { max-width: 920px; margin: 0 auto; }
/* Hero 横幅 */
.lmc-resinfo-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(130deg, #1d4ed8 0%, #2271b1 55%, #0ea5e9 100%);
    color: #fff; border-radius: 16px; padding: 26px 28px; margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(29, 78, 216, .28);
}
.lmc-resinfo-hero-deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.lmc-resinfo-hero-deco.d1 { width: 180px; height: 180px; right: -50px; top: -70px; }
.lmc-resinfo-hero-deco.d2 { width: 110px; height: 110px; right: 90px; bottom: -60px; background: rgba(255, 255, 255, .07); }
.lmc-resinfo-icon {
    width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; position: relative; z-index: 1;
}
.lmc-resinfo-headinfo { position: relative; z-index: 1; min-width: 0; }
.lmc-resinfo-title {
    font-size: 24px; font-weight: 700; margin: 0 0 8px; color: #fff; line-height: 1.35;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.lmc-resinfo-title .lmc-vis-badge { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
.lmc-resinfo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lmc-chip {
    font-size: 12px; padding: 3px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); color: #fff;
}
/* 卡片通用 */
.lmc-resinfo-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.lmc-resinfo-cardtitle {
    font-size: 15.5px; font-weight: 700; color: #111827;
    margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #eef2f7;
    display: flex; align-items: center; gap: 8px;
}
.lmc-resinfo-cardtitle::before {
    content: ''; display: inline-block; width: 4px; height: 15px;
    background: #2271b1; border-radius: 2px;
}
.lmc-resinfo-desc { color: #374151; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
/* 信息/下载 双栏 */
.lmc-resinfo-grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 14px; align-items: start; margin-bottom: 14px;
}
.lmc-resinfo-grid .lmc-resinfo-card { margin-bottom: 0; }
@media (max-width: 860px) { .lmc-resinfo-grid { grid-template-columns: 1fr; } }
/* 文件信息表 */
.lmc-resinfo-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lmc-resinfo-table th, .lmc-resinfo-table td {
    text-align: left; padding: 9px 8px; border-bottom: 1px solid #f1f5f9;
}
.lmc-resinfo-table tr:nth-child(odd) { background: #fafbfc; }
.lmc-resinfo-table tr:last-child th, .lmc-resinfo-table tr:last-child td { border-bottom: none; }
.lmc-resinfo-table th { width: 96px; color: #6b7280; font-weight: 500; }
.lmc-resinfo-table td { color: #111827; font-weight: 500; }
.lmc-resinfo-none { color: #cbd5e1; }
.lmc-resinfo-empty { color: #9ca3af; margin: 6px 0; }
/* 下载地址行 */
.lmc-resinfo-url {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid #eef2f7; border-radius: 10px;
    background: #fafbfc; padding: 12px 14px; margin-bottom: 10px;
    transition: all .15s ease;
}
.lmc-resinfo-url:hover { border-color: #c7d8eb; background: #f0f6fc; }
.lmc-resinfo-url:last-of-type { margin-bottom: 0; }
.lmc-resinfo-pan {
    color: #fff; border-radius: 8px; padding: 7px 14px;
    font-size: 13px; font-weight: 600; flex-shrink: 0; min-width: 76px; text-align: center;
}
.lmc-resinfo-urlmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lmc-resinfo-filetitle { font-size: 13.5px; font-weight: 600; color: #111827; }
.lmc-resinfo-filetitle .lmc-rec-badge { margin-left: 4px; }
.lmc-resinfo-code {
    font-size: 12.5px; color: #9a3412;
    background: #fff7ed; border: 1px dashed #fdba74;
    border-radius: 999px; padding: 2px 12px; align-self: flex-start;
}
.lmc-resinfo-code .lmc-copy { background: none; border: none; padding: 0; cursor: pointer; color: #c2410c; font-weight: 600; font-family: inherit; font-size: 12.5px; }
.lmc-resinfo-go {
    flex-shrink: 0; text-decoration: none !important;
    background: #2271b1; color: #fff !important;
    border-radius: 8px; padding: 9px 18px; font-size: 13.5px; font-weight: 600;
    transition: background .15s ease;
}
.lmc-resinfo-go:hover { background: #135e96; }
.lmc-resinfo-tip { margin: 10px 0 0; font-size: 12.5px; color: #9ca3af; }
/* 说明/声明 */
.lmc-resinfo-note ol { margin: 0; padding-left: 22px; color: #4b5563; font-size: 13.5px; line-height: 1.9; }
.lmc-resinfo-declare { background: #fffbeb; border-color: #fde68a; box-shadow: none; }
.lmc-resinfo-declare p { margin: 0; color: #92400e; font-size: 13px; line-height: 1.8; }
.lmc-resinfo-missing { text-align: center; padding: 30px 20px; }
.lmc-resinfo-missing h3 { margin: 0 0 8px; }
.lmc-resinfo-missing p { color: #9ca3af; margin: 0; }
.lmc-rescard-name .lmc-vis-badge { margin-left: 6px; }
@media (max-width: 640px) {
    .lm-buy-item { flex-direction: column; align-items: flex-start; }
    .lm-bi-side { width: 100%; justify-content: space-between; }
}
