/* === Downloads CPT styles, added 20260619 === */
/* 蓝曼智能 — 软件与文档下载样式（隔离加载，不影响其他页面） */

.lm-dl-wrap{margin:32px 0;color:#1e293b}

/* ---------- 软件下载表格 ---------- */
.lm-dl-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 12px rgba(15,23,42,.06);
}
.lm-dl-table thead{
    background:#1e3a5f;
    color:#fff;
}
.lm-dl-table thead th{
    padding:14px 16px;
    text-align:center;
    font-weight:600;
    font-size:14px;
    letter-spacing:.5px;
    border:none;
}
.lm-dl-table tbody td{
    padding:12px 16px;
    border-top:1px solid #e2e8f0;
    text-align:center;
    font-size:14px;
    vertical-align:middle;
    line-height:1.5;
}
.lm-dl-table tbody tr:nth-child(even) td{background:#f8fafc;}
.lm-dl-table tbody tr:hover td{background:#f1f5f9;}
.lm-dl-table .col-name{text-align:left;min-width:200px;}
.lm-dl-table .col-name .lm-dl-title{
    display:block;
    font-weight:600;
    color:#1e3a5f;
    font-size:15px;
    margin-bottom:4px;
}
.lm-dl-table .col-name .lm-dl-summary{
    display:block;
    color:#64748b;
    font-size:13px;
    line-height:1.5;
}
.lm-dl-table .col-version{color:#0284c7;font-weight:600;}
.lm-dl-table .col-platform{min-width:140px;}
.lm-dl-table .col-size{color:#64748b;}
.lm-dl-table .col-date{color:#64748b;font-size:13px;white-space:nowrap;}
.lm-dl-table .col-action{width:120px;}

/* ---------- 适用平台 badge ---------- */
.lm-dl-badge{
    display:inline-block;
    padding:3px 10px;
    margin:2px 3px;
    border-radius:4px;
    font-size:12px;
    font-weight:500;
    background:#f1f5f9;
    color:#1e3a5f;
    border:1px solid #e2e8f0;
    line-height:1.4;
    white-space:nowrap;
}
.lm-dl-badge-win{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;}
.lm-dl-badge-mac{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe;}
.lm-dl-badge-linux{background:#fef3c7;color:#92400e;border-color:#fde68a;}
.lm-dl-badge-other{background:#f1f5f9;color:#475569;border-color:#e2e8f0;}

.lm-dl-dash{color:#cbd5e1;}

/* ---------- 下载按钮（软件 + 文档共用主样式） ---------- */
.lm-dl-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 16px;
    background:#1e3a5f;
    color:#fff !important;
    border-radius:6px;
    text-decoration:none !important;
    font-size:14px;
    font-weight:500;
    line-height:1;
    transition:all .2s ease;
    white-space:nowrap;
}
.lm-dl-btn:hover{
    background:#0f2540;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(30,58,95,.25);
}
.lm-dl-btn-icon{
    font-size:14px;
    line-height:1;
}

/* ---------- 文档下载卡片网格 ---------- */
.lm-doc-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:24px;
    margin:24px 0;
}
.lm-doc-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:24px;
    box-shadow:0 2px 8px rgba(15,23,42,.05);
    transition:all .25s ease;
    display:flex;
    flex-direction:column;
}
.lm-doc-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 24px rgba(15,23,42,.12);
    border-color:#1e3a5f;
}
.lm-doc-icon{
    font-size:32px;
    line-height:1;
    margin-bottom:12px;
    color:#1e3a5f;
}
.lm-doc-title{
    font-size:17px;
    font-weight:600;
    color:#1e3a5f;
    margin:0 0 10px;
    line-height:1.45;
    word-break:break-word;
}
.lm-doc-summary{
    color:#64748b;
    font-size:14px;
    line-height:1.6;
    margin:0 0 14px;
    flex:1;
}
.lm-doc-meta{
    list-style:none;
    padding:0;
    margin:0 0 16px;
    border-top:1px dashed #e2e8f0;
    padding-top:12px;
}
.lm-doc-meta li{
    color:#475569;
    font-size:13px;
    line-height:1.7;
    margin:0;
}
.lm-doc-meta-key{
    color:#94a3b8;
    margin-right:4px;
}
.lm-doc-btn{
    align-self:flex-start;
}
.lm-doc-missing{
    color:#94a3b8;
    font-size:13px;
}

/* ---------- 空数据占位 ---------- */
.lm-dl-empty{
    padding:48px 24px;
    text-align:center;
    color:#64748b;
    font-size:15px;
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    border-radius:8px;
    line-height:1.7;
}

/* ---------- 移动端：表格 → 卡片化 ---------- */
@media (max-width: 768px){
    .lm-dl-table thead{display:none;}
    .lm-dl-table,
    .lm-dl-table tbody,
    .lm-dl-table tr,
    .lm-dl-table td{display:block;width:100%;box-sizing:border-box;}
    .lm-dl-table{
        border:none;
        background:transparent;
        box-shadow:none;
    }
    .lm-dl-table tbody tr{
        background:#fff;
        margin-bottom:16px;
        border:1px solid #e2e8f0;
        border-radius:8px;
        padding:8px 0;
        box-shadow:0 2px 8px rgba(15,23,42,.05);
    }
    .lm-dl-table tbody tr:nth-child(even) td,
    .lm-dl-table tbody tr:hover td{background:transparent;}
    .lm-dl-table tbody td{
        text-align:right;
        border-top:none;
        border-bottom:1px dashed #f1f5f9;
        padding:10px 16px;
        position:relative;
        padding-left:42%;
        min-height:44px;
    }
    .lm-dl-table tbody td:last-child{border-bottom:none;}
    .lm-dl-table tbody td::before{
        content:attr(data-label);
        position:absolute;
        left:16px;
        top:10px;
        width:38%;
        text-align:left;
        color:#94a3b8;
        font-size:13px;
        font-weight:500;
    }
    .lm-dl-table .col-name{padding-left:16px;text-align:left;}
    .lm-dl-table .col-name::before{display:none;}
    .lm-dl-table .col-name .lm-dl-title{font-size:16px;}
    .lm-dl-table .col-action{padding-left:16px;text-align:left;}
    .lm-dl-table .col-action::before{display:none;}
}
@media (max-width: 480px){
    .lm-doc-grid{grid-template-columns:1fr;gap:16px;}
    .lm-doc-card{padding:20px;}
}
