/* =========================================================
   知识库 list.css - 截图样式：水平卡片布局
   左侧文件图标 | 中间标题+元数据 | 右侧格式标签
   ========================================================= */

/* 筛选栏 (select 美化) */
.filter-bar {
    display: flex; gap: 12px;
    padding: 12px 16px;
    background: transparent;
    margin-bottom: 0;
}
.filter-item {
    flex: 1; position: relative;
}
.filter-item label {
    display: block;
    font-size: 11.5px; font-weight: 600; color: var(--text-3);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}
.filter-item select {
    width: 100%; height: 40px;
    padding: 0 34px 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center / 16px 16px;
    font-size: 13.5px; color: var(--text-1);
    outline: 0; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    box-shadow: var(--shadow-sm);
    transition: all .18s;
}
.filter-item select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* 覆盖 common.css 中的 doc-card 样式，改为水平布局 */
.doc-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 14px;
}
.doc-card:active {
    transform: scale(0.985);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* 左侧文件图标区域 */
.doc-card .doc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 图标内部装饰：文档叠层效果 */
.doc-card .doc-icon::before {
    content: '';
    position: absolute;
    top: 8px; right: 6px;
    width: 18px; height: 22px;
    border-radius: 3px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    transform: rotate(8deg);
}
.doc-card .doc-icon::after {
    content: '';
    position: absolute;
    bottom: 6px; right: 4px;
    width: 14px; height: 16px;
    border-radius: 2px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    transform: rotate(-5deg);
}

/* PDF 红色图标 */
.doc-card .doc-icon.type-pdf {
    background: linear-gradient(135deg, #FF5252, #D32F2F);
}
/* Word 蓝色图标 */
.doc-card .doc-icon.type-doc,
.doc-card .doc-icon.type-docx {
    background: linear-gradient(135deg, #42A5F5, #1565C0);
}
/* PPT 橙色图标 */
.doc-card .doc-icon.type-ppt,
.doc-card .doc-icon.type-pptx {
    background: linear-gradient(135deg, #FF7043, #E64A19);
}
/* Excel 绿色图标 */
.doc-card .doc-icon.type-xls,
.doc-card .doc-icon.type-xlsx {
    background: linear-gradient(135deg, #66BB6A, #2E7D32);
}
/* 其他 */
.doc-card .doc-icon.type-txt {
    background: linear-gradient(135deg, #78909C, #455A64);
}

/* 中间内容区域 */
.doc-card .doc-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.doc-card .doc-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 0;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}
.doc-card .doc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #A0AEC0;
}
.doc-card .doc-meta .meta-dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #CBD5E0;
}

/* 隐藏旧 footer */
.doc-card .doc-card-header {
    margin-bottom: 0;
}
.doc-card .doc-card-footer {
    display: none;
}

/* 右侧格式标签 */
.doc-card .doc-badge {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.doc-card .doc-badge .badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.doc-card .doc-badge.badge-pdf {
    background: rgba(255,82,82,0.12);
    color: #FF5252;
}
.doc-card .doc-badge.badge-doc,
.doc-card .doc-badge.badge-docx {
    background: rgba(66,165,245,0.12);
    color: #42A5F5;
}
.doc-card .doc-badge.badge-ppt,
.doc-card .doc-badge.badge-pptx {
    background: rgba(255,112,67,0.12);
    color: #FF7043;
}
.doc-card .doc-badge.badge-xls,
.doc-card .doc-badge.badge-xlsx {
    background: rgba(102,187,106,0.12);
    color: #66BB6A;
}
.doc-card .doc-badge.badge-default {
    background: rgba(120,144,156,0.12);
    color: #78909C;
}

/* 底部留空 */
.document-list {
    padding-bottom: calc(var(--h-nav) + var(--safe-bottom) + 24px);
}

/* 列表项间距 */
.document-list .doc-card + .doc-card {
    margin-top: 10px;
}

/* 底部提示 */
.list-end-hint {
    text-align: center;
    padding: 20px 0 8px;
    font-size: 13px;
    color: var(--text-3);
}

/* Extracted inline style attributes from mobile/knowledge/list.html. */
.u-style-cb458930 { display:none; }
