/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-page: #fdf3f3;
    --bg-surface: #fffaf8;
    --bg-card: #fffaf8;
    --bg-input: #fdf5f5;
    --bg-hover: #f8e9ea;
    --border: #ecd8d8;
    --border-light: #f0e0e0;
    --divider: #ecd8d8;
    --text-primary: #2b1f20;
    --text-secondary: #7a6a6d;
    --text-muted: #a89090;
    --accent: #a55a6a;
    --accent-light: #c48090;
    --accent-bg: #fdf0f1;
    --danger: #d4626a;
    --success: #6ba58a;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 999px;
    --shadow-xs: 0 1px 2px rgba(43,31,32,0.03);
    --shadow-sm: 0 2px 8px rgba(43,31,32,0.04);
    --shadow-md: 0 4px 16px rgba(43,31,32,0.06);
    --shadow-lg: 0 8px 32px rgba(43,31,32,0.08);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* === Top Bar === */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253,243,243,0.88);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--divider);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.search-box {
    flex: 1;
    max-width: 440px;
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(165,90,106,0.08);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder { color: var(--text-muted); }

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.btn-icon:hover { color: var(--accent); }

.header-actions { flex-shrink: 0; }

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all var(--transition);
}
.btn-primary:hover {
    background: #944f5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(165,90,106,0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-cancel {
    padding: 10px 22px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.btn-cancel:hover {
    background: var(--bg-hover);
    border-color: #d4c0c0;
    color: var(--text-primary);
}

/* === Tag Bar === */
.tag-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 28px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-filter {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.tag-filter:hover {
    border-color: var(--accent-light);
    color: var(--accent);
    background: var(--accent-bg);
}
.tag-filter.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === Main Content === */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px 48px;
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.result-count {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 2px;
}

.sort-label {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 4px 0 14px;
    font-weight: 500;
}

.sort-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    transition: all var(--transition);
}
.sort-btn:hover { color: var(--accent); }
.sort-btn.active {
    background: var(--bg-input);
    color: var(--accent);
    font-weight: 600;
}

/* === Card Grid === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* === Card === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    animation: cardIn 0.4s ease backwards;
}
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.10s; }
.card:nth-child(6) { animation-delay: 0.12s; }
.card:nth-child(7) { animation-delay: 0.14s; }
.card:nth-child(8) { animation-delay: 0.16s; }
.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-md);
}

.card-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8edee;
    position: relative;
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-cover img { transform: scale(1.03); }

.card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #c8b0b3;
    background: linear-gradient(135deg, #f8edee 0%, #fdf5f5 100%);
}
.card-cover-placeholder span {
    font-size: 12px;
    font-weight: 500;
    color: #b89a9d;
}

.card-body {
    padding: 16px 16px 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    min-height: 22px;
}

.card-tag {
    padding: 3px 10px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
}

.card-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.card-stats .stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* === Loading === */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--text-muted);
}
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}
.empty-state .empty-icon { color: #d4c0c0; opacity: 0.6; }
.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 8px;
}
.empty-state p {
    font-size: 14px;
    margin-bottom: 28px;
    color: var(--text-secondary);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 36px 0 8px;
}
.pagination button {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}
.pagination button:hover:not(:disabled) {
    border-color: var(--accent-light);
    color: var(--accent);
    background: var(--accent-bg);
}
.pagination button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(43,31,32,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(43,31,32,0.1);
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-detail { max-width: 620px; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--divider);
}
.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

/* === Form === */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.required { color: var(--danger); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(165,90,106,0.08);
}
.form-group textarea { min-height: 80px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.upload-files-row { grid-template-columns: 1fr 1fr; }

/* === Upload Zone === */
.upload-zone {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-input);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-light);
    background: var(--accent-bg);
}
.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.upload-zone-content svg { opacity: 0.35; }
.upload-zone-content p { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.upload-hint { font-size: 11px; color: var(--text-muted); }

.cover-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute; top: 0; left: 0;
}
.upload-zone-group { position: relative; }
.upload-zone-group .upload-zone { width: 100%; }

.file-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success);
}
.file-display .file-icon { font-size: 28px; }
.file-display .file-name { font-size: 14px; font-weight: 500; }
.file-display .file-size { font-size: 12px; color: var(--text-muted); }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.form-error {
    padding: 10px 14px;
    background: rgba(212,98,106,0.06);
    border: 1px solid rgba(212,98,106,0.2);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 16px;
}

/* === Detail Modal === */
.detail-cover-area {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f8edee;
    margin-bottom: 20px;
    position: relative;
}
.detail-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8b0b3;
    background: linear-gradient(135deg, #f8edee 0%, #fdf5f5 100%);
}
.detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #faf5f5;
}

.detail-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.detail-author {
    color: var(--accent);
    font-weight: 600;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.detail-tag {
    padding: 4px 14px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.detail-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 18px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    white-space: pre-wrap;
    word-break: break-word;
}

.btn-download {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 12px 24px;
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 24px rgba(43,31,32,0.15);
    animation: toastIn 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--accent); }

@keyframes toastIn {
    from { transform: translateX(-50%) translateY(14px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* === Card Type Badge === */
.card-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.9);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(43,31,32,0.08);
}

/* === Card Like Button === */
.card-like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    transition: all var(--transition);
}
.card-like-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(212,98,106,0.06);
}
.card-like-btn.liked {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(212,98,106,0.08);
}

/* === Recently Viewed === */
.recent-section {
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 0 28px;
    display: none;
}
.recent-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.recent-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.recent-list::-webkit-scrollbar { height: 4px; }
.recent-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.recent-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.recent-item:hover {
    border-color: var(--accent-light);
    background: var(--accent-bg);
}
.recent-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.recent-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8edee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8b0b3;
}
.recent-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Detail Action Buttons === */
.detail-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}
.btn-outline:hover {
    border-color: var(--accent-light);
    color: var(--accent);
    background: var(--accent-bg);
}
.btn-outline.liked {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(212,98,106,0.06);
}
.btn-outline.liked:hover {
    background: rgba(212,98,106,0.1);
}
.btn-download-full {
    flex: 1;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .top-bar-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    .search-box { order: 3; max-width: 100%; flex: 100%; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .upload-files-row { grid-template-columns: 1fr; }
    .modal { max-width: 100%; max-height: 90vh; }
    .modal-body { padding: 20px; }
    .modal-header { padding: 18px 20px; }
    .sort-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 13px; }
    .header-actions .btn-primary { padding: 8px 14px; font-size: 13px; }
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === Lightbox === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(43,31,32,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.3);
    cursor: default;
    animation: zoomIn 0.25s ease;
}
@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* === Skeleton Loading === */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.skeleton-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, #f0e8e8 25%, #f8f0f0 50%, #f0e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-body { padding: 16px; }
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0e8e8 25%, #f8f0f0 50%, #f0e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-line:first-child { width: 70%; margin-bottom: 8px; }
.skeleton-line:nth-child(2) { width: 40%; margin-bottom: 14px; }
.skeleton-line:nth-child(3) { width: 55%; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Tag Count Badge === */
.tag-count {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.6;
}
.tag-filter.active .tag-count { opacity: 0.8; }

/* === Card Entrance Animation === */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Search Shortcut Hint === */
.search-box { position: relative; }
.search-shortcut {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-family: inherit;
    opacity: 0.5;
    transition: opacity var(--transition);
}
.search-box:focus-within .search-shortcut { opacity: 0; }
