/* =========================================================
   list.css - 应用题搜索结果页
   时间: 2026-10-08
   设计: 紧凑头部 + 卡片网格，无大 hero
   ========================================================= */

/* === 页面容器 === */
.lst-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* === 紧凑头部 === */
.lst-header {
    padding: 16px 0 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

/* 面包屑 */
.lst-crumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.lst-crumbs a {
    color: #3b82f6;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.lst-crumbs a:hover { background: #eff6ff; }
.lst-crumbs .sep { color: #d1d5db; padding: 0 2px; }
.lst-crumbs .current { color: #374151; font-weight: 600; padding: 3px 6px; }

/* 搜索框 */
.lst-search { margin: 0; }
.lst-search-row {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 5px;
    transition: border-color 0.2s;
}
.lst-search-row:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.lst-search input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 15px;
    background: transparent;
    color: #1f2937;
    font-family: inherit;
    min-width: 0;
}
.lst-search input::placeholder { color: #9ca3af; }
.lst-search select {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}
.lst-search-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lst-search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.30); }

/* === 搜索摘要 === */
.lst-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
    color: #4b5563;
}
.lst-summary-text b { color: #1f2937; }
.lst-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}
.lst-chip--gray { background: #6b7280; }
.lst-clear {
    color: #ef4444;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fff;
    transition: all 0.15s;
}
.lst-clear:hover { background: #fef2f2; border-color: #fca5a5; }

/* === 卡片网格 === */
.lst-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.lst-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.lst-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.lst-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.lst-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}
.lst-tag-grade { color: #fff; }
.lst-tag-stype { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.lst-tag-diff { color: #fff; }

.lst-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    line-height: 1.4;
}
.lst-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lst-card-cta {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
    margin-top: auto;
}
.lst-card-cta .arrow { transition: transform 0.2s; display: inline-block; }
.lst-card:hover .lst-card-cta .arrow { transform: translateX(3px); }

/* === 空状态 === */
.lst-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}
.lst-empty-icon { font-size: 56px; margin-bottom: 12px; opacity: 0.6; }
.lst-empty-title { font-size: 18px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.lst-empty-tip { font-size: 14px; color: #6b7280; }
.lst-empty-tip a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.lst-empty-tip a:hover { text-decoration: underline; }

/* === 分页 === */
.lst-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.lst-pager-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}
.lst-pager-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}
.lst-pager-info {
    font-size: 13px;
    color: #6b7280;
}
.lst-pager-info b { color: #1f2937; font-weight: 700; }

/* === 底部 === */
.lst-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
}
.lst-footer a {
    color: #6b7280;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}
.lst-footer a:hover { background: #f3f4f6; color: #1f2937; }

/* === 响应式 === */
@media (min-width: 600px) {
    .lst-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .lst-grid { grid-template-columns: repeat(3, 1fr); }
    .lst-search-row { gap: 8px; }
}

/* === 暗色模式 === */
body.dark-mode .lst-header { border-color: #334155; }
body.dark-mode .lst-search-row { background: #1e293b; border-color: #334155; }
body.dark-mode .lst-search-row:focus-within { border-color: #60a5fa; }
body.dark-mode .lst-search input[type="search"] { color: #e2e8f0; }
body.dark-mode .lst-search input::placeholder { color: #64748b; }
body.dark-mode .lst-search select { background: #0f172a; color: #cbd5e1; border-color: #334155; }
body.dark-mode .lst-summary { background: #1e293b; color: #94a3b8; }
body.dark-mode .lst-summary-text b { color: #e2e8f0; }
body.dark-mode .lst-card { background: #1e293b; border-color: #334155; }
body.dark-mode .lst-card:hover { border-color: #60a5fa; box-shadow: 0 6px 20px rgba(96, 165, 250, 0.2); }
body.dark-mode .lst-card-title { color: #f1f5f9; }
body.dark-mode .lst-card-desc { color: #94a3b8; }
body.dark-mode .lst-card-cta { color: #60a5fa; }
body.dark-mode .lst-empty { background: #1e293b; border-color: #475569; }
body.dark-mode .lst-empty-title { color: #e2e8f0; }
body.dark-mode .lst-empty-tip { color: #94a3b8; }
body.dark-mode .lst-pager-btn { background: #1e293b; border-color: #334155; color: #60a5fa; }
body.dark-mode .lst-pager-btn:hover { background: #0f172a; }
body.dark-mode .lst-pager-info { color: #94a3b8; }
body.dark-mode .lst-footer { border-color: #334155; }
body.dark-mode .lst-footer a { color: #94a3b8; }
body.dark-mode .lst-footer a:hover { background: #1e293b; color: #e2e8f0; }
body.dark-mode .lst-clear { background: #1e293b; border-color: #7f1d1d; color: #fca5a5; }
body.dark-mode .lst-crumbs { color: #94a3b8; }
body.dark-mode .lst-crumbs .current { color: #e2e8f0; }
body.dark-mode .lst-crumbs a { color: #60a5fa; }
body.dark-mode .lst-crumbs a:hover { background: #1e3a8a; }
body.dark-mode .lst-tag-stype { background: #1e3a8a; color: #93c5fd; border-color: #1e40af; }
