/* 收藏 / 网盘：业务样式（布局壳见 workspace.css） */

/* 兼容旧 class 名 → 映射到工作区规范（过渡期） */
.fav-app { /* replaced by .ws-app */ }
.disk-app { /* replaced by .ws-app */ }

.fav-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.fav-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fav-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fav-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

.fav-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #eef6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.fav-card-body {
    flex: 1;
    min-width: 0;
}

/* 不用 h1–h6，避免 Bootstrap 标题字号在 SSR / AJAX 两套渲染下不一致 */
.fav-card-title,
.ws-app .fav-card-title,
.fav-list .fav-card-title {
    display: block;
    margin: 0 0 4px;
    padding: 0;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-card-text,
.ws-app .fav-card-text,
.fav-list .fav-card-text {
    display: -webkit-box;
    margin: 0;
    padding: 0;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #666;
    line-height: 1.4 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}

.fav-card-meta,
.ws-app .fav-card-meta,
.fav-list .fav-card-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: #999;
}

.fav-card-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.fav-card-actions .btn {
    padding: 2px 8px;
    color: #576b95;
    font-size: 12px;
}

.fav-card-actions .btn.is-danger {
    color: #fa5151;
}

.fav-send-list {
    max-height: 360px;
    overflow-y: auto;
}

.fav-send-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    padding: 10px 4px;
    text-align: left;
}

.fav-send-item:hover {
    background: #f7f7f7;
}

.fav-send-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.fav-send-avatar.is-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999;
}

/* 网盘网格 */
.disk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.disk-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
    text-align: center;
}

.disk-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}

.disk-card-icon {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #4facfe;
    background: #f5f9ff;
    border-radius: 6px;
}

.disk-card-name {
    margin-top: 8px;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.disk-card-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.disk-card-actions {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.disk-card {
    position: relative;
}

.disk-card.is-selected {
    border-color: #4caf50;
    box-shadow: 0 0 0 1px #4caf50;
}

.disk-card-check {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.disk-share-row {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.disk-share-row-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.disk-share-row-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.disk-share-row-link {
    font-size: 12px;
    color: #576b95;
    word-break: break-all;
    margin-bottom: 8px;
}

.disk-share-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 公开分享落地页 */
.disk-share-page {
    max-width: 640px;
    margin: 24px auto;
    padding: 0 16px 40px;
}

.disk-share-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.disk-share-brand {
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 8px;
}

.disk-share-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    word-break: break-word;
}

.disk-share-meta {
    margin: 0 0 20px;
    font-size: 13px;
    color: #999;
}

.disk-share-pwd-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.disk-share-pwd-row .form-control {
    flex: 1;
}

.disk-share-err {
    margin-top: 10px;
    color: #fa5151;
    font-size: 13px;
}

.disk-share-actions {
    margin-bottom: 16px;
}

.disk-share-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.disk-share-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.disk-share-file:hover {
    background: #fafafa;
}

.disk-share-file img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}

.disk-share-file-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f9ff;
    border-radius: 6px;
    color: #4facfe;
    font-size: 22px;
}

.disk-share-file-name {
    font-size: 14px;
    color: #222;
    word-break: break-all;
}

.disk-share-file-size {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .fav-card-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
