/* ============================================================
   紧凑列表（列表页专用）：一行一条，缩略图 + 标题/元信息/一句话 + 右侧数值
   目标：首屏能看到 2–3 倍的信息量，层级清楚，对比度够
   配合 partials/_l2_row.blade.php 使用
   ============================================================ */
:root {
  --l2-line: #e7eef1;
  --l2-ink: #0c2a31;
  --l2-ink-2: #47676f;
  --l2-ink-3: #7b98a0;
}

/* ---------- 区块标题：小而清楚，紧一点 ---------- */
.l2-sec { display: flex; align-items: center; gap: 9px; margin: 16px 0 10px; }
.l2-sec::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
.l2-sec h2 { font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; color: var(--l2-ink); margin: 0; letter-spacing: -.2px; }
.l2-sec .n { font-size: .76rem; font-weight: 600; color: var(--l2-ink-3); }
.l2-sec .sub { font-size: .76rem; color: var(--l2-ink-3); margin-left: 2px; }

/* ---------- 工具栏：一行放下，粘顶 ---------- */
.l2-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--l2-line); border-radius: 12px; padding: 9px 11px; margin-bottom: 10px; }
.l2-bar form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.l2-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.l2-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border: 1px solid var(--l2-line); background: #fff; color: var(--l2-ink-2); border-radius: 999px; font-size: .76rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.l2-chip:hover { border-color: var(--primary-300); color: var(--primary-600); }
.l2-chip.on { background: var(--l2-ink); border-color: var(--l2-ink); color: #fff; }
.l2-chip .n { font-size: .7rem; opacity: .7; }
.l2-input { height: 30px; border: 1px solid var(--l2-line); border-radius: 9px; padding: 0 10px; font-size: .8rem; color: var(--l2-ink); background: #fff; }
.l2-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.l2-sel { height: 30px; border: 1px solid var(--l2-line); border-radius: 9px; padding: 0 8px; font-size: .8rem; color: var(--l2-ink); background: #fff; }

/* ---------- 列表 ---------- */
.l2-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 1080px) { .l2-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.l2-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 13px 10px 10px; background: #fff;
  border: 1px solid var(--l2-line); border-radius: 13px;
  text-decoration: none; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.l2-row:hover { border-color: var(--primary-300); box-shadow: 0 3px 14px rgba(12, 42, 49, .07); transform: translateY(-1px); }
.l2-row.noimg { grid-template-columns: minmax(0, 1fr) auto; }

.l2-thumb {
  width: 96px; height: 68px; border-radius: 10px; overflow: hidden; background: var(--primary-50);
  display: flex; align-items: center; justify-content: center; color: var(--primary-600); font-size: 1.1rem;
}
.l2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.l2-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.l2-titlerow { display: flex; align-items: center; gap: 7px; min-width: 0; }
.l2-title { flex: 0 1 auto; min-width: 0; font-size: .96rem; font-weight: 700; color: var(--l2-ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.1px; }
.l2-badge { flex: 0 0 auto; font-style: normal; font-size: .68rem; font-weight: 800; border-radius: 5px; padding: 2px 6px; line-height: 1.3; }
.l2-gold   { background: #fff4e0; color: #a15c00; }
.l2-teal   { background: #e2f7f0; color: #0a7d5c; }
.l2-blue   { background: #e7f1fd; color: #1a5fa8; }
.l2-violet { background: #efeafe; color: #5b45b0; }
.l2-rose   { background: #fdeaef; color: #b3375c; }
.l2-gray   { background: #eef3f5; color: #4c6b73; }
.l2-dark   { background: var(--l2-ink); color: #fff; }

.l2-meta { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--l2-ink-2); min-width: 0; overflow: hidden; white-space: nowrap; }
.l2-meta i { font-style: normal; color: #c3d4d9; }
.l2-meta span { overflow: hidden; text-overflow: ellipsis; }
.l2-desc { font-size: .76rem; color: var(--l2-ink-3); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
@media (min-width: 1080px) { .l2-list.two .l2-desc { -webkit-line-clamp: 1; } }

.l2-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 62px; max-width: 168px; text-align: right; }
.l2-right b { font-family: var(--font-head); font-size: .96rem; font-weight: 800; color: var(--l2-ink); letter-spacing: -.2px; }
/* 右侧是长句（如「218 个景点 · 45 篇指南」）时降级成次要信息，不跟标题抢 */
.l2-right.long b, .l2-right b.long { font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--l2-ink-2); line-height: 1.45; letter-spacing: 0; }
.l2-right b.free { color: var(--accent-600); }
.l2-right em { font-style: normal; font-size: .68rem; color: var(--l2-ink-3); }
.l2-star { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 700; color: #b45309; }

/* 列表页顶部压缩：hero / 统计条 / 说明都收一收 */
.l2-tight .hero-compact { padding: 18px 0 14px; }
.l2-tight .hero-compact h1 { font-size: 1.45rem; margin-bottom: 3px; }
.l2-tight .hero-compact p { font-size: .82rem; line-height: 1.65; margin: 0; max-width: 760px; }
.l2-tight .lx-stats { gap: 8px; margin-bottom: 8px; }
.l2-tight .lx-stat { padding: 9px 12px; }
.l2-tight .lx-stat .n { font-size: 1.05rem; }
.l2-tight .page-hero { padding: 20px 0 14px; }
.l2-tight .page-hero h1 { font-size: 1.5rem; }
.l2-tight .section-header { margin: 14px 0 8px; }
.l2-tight .section-header h2 { font-size: 1.02rem; }

/* 省份胶囊条：一行横向滚动，不再占 4 行 */
.l2-chipstrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
.l2-chipstrip::-webkit-scrollbar { height: 5px; }
.l2-chipstrip::-webkit-scrollbar-thumb { background: #d7e5e9; border-radius: 999px; }
.l2-chipstrip .l2-chip { flex: 0 0 auto; height: 26px; font-size: .74rem; }

/* 空态 */
.l2-empty { text-align: center; padding: 34px 16px; border: 1px dashed var(--l2-line); border-radius: 14px; color: var(--l2-ink-3); font-size: .84rem; background: #fcfefe; }
.l2-empty i { display: block; font-size: 1.6rem; color: var(--primary-200); margin-bottom: 8px; }

/* 分页：紧凑且会换行（行程广场 590 条 → 分页很长，手机上会撑破页面） */
.l2-list + .pagination, .l2-pager { margin-top: 14px; }
.pagination { flex-wrap: wrap; gap: 4px; row-gap: 6px; }
.pagination .page-link { padding: .26rem .6rem; font-size: .78rem; border-radius: 8px; line-height: 1.4; }
@media (max-width: 700px) {
  .pagination { justify-content: center; }
  .pagination .page-item { display: none; }
  .pagination .page-item.active,
  .pagination .page-item:first-child,
  .pagination .page-item:last-child,
  .pagination .page-item.active + .page-item,
  .pagination .page-item:has(+ .page-item.active) { display: block; }
}

/* ---------- 手机：缩略图更小，右侧数值/按钮移到文字下面一行 ---------- */
@media (max-width: 700px) {
  .l2-row { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 9px; }
  .l2-row.noimg { grid-template-columns: minmax(0, 1fr); }
  .l2-thumb { width: 76px; height: 58px; }
  .l2-titlerow { flex-wrap: wrap; gap: 5px; }
  .l2-title { font-size: .9rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .l2-right, .l2-right.has-acts { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 3px; max-width: none; text-align: left; }
  .l2-right b { font-size: .86rem; }
  .l2-right.long b, .l2-right b.long { font-size: .74rem; }
  .l2-acts { margin-top: 0; }
  .l2-desc { -webkit-line-clamp: 2; }
  .l2-sec h2 { font-size: .96rem; }
}

/* 行内标题做成链接（trips 等行里有按钮，不能整行套 <a>） */
.l2-row .l2-title { color: var(--l2-ink); text-decoration: none; }
.l2-row .l2-title:hover { color: var(--primary-600); }
.l2-acts { display: flex; gap: 6px; margin-top: 6px; }
.l2-acts .tp-btn, .l2-acts .bd-btn { padding: 4px 9px; font-size: .72rem; white-space: nowrap; }
.l2-right.has-acts { max-width: 230px; }

/* ============================================================
   列表页顶部压缩：不动结构，直接把现有类压紧
   （hero / 统计条 / 筛选 / 区块标题）
   ============================================================ */
.lx-head { padding: 16px 0 8px; }
.lx-head h1 { font-size: 1.55rem; margin: 3px 0 5px; letter-spacing: -.4px; }
.lx-head .lx-lead { font-size: .82rem; line-height: 1.6; max-width: 720px; margin: 0; }
.lx-head .eyebrow { font-size: .72rem; }

.lx-hero { padding: 16px 0 10px; }
.lx-hero h1 { font-size: 1.5rem; margin-bottom: 3px; }
.lx-hero p { font-size: .82rem; line-height: 1.6; margin: 0; max-width: 720px; }

/* 省份胶囊：多行自动换行（不再横向滚动，避免出现横向滚动条） */
.lx-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.lx-filters .lx-pill { flex: 0 0 auto; height: 27px; padding: 0 11px; font-size: .75rem; }
.lx-toolbar { margin-bottom: 8px; padding: 8px 10px; }

/* 速览统计条：一行小字，不再是 5 个盒子 */
.snapbar { gap: 14px; margin: 8px 0 6px; flex-wrap: wrap; }
.snap-item { padding: 0; background: none; border: none; box-shadow: none; gap: 5px; }
.snap-emoji { font-size: .9rem; }
.snap-num { font-size: .95rem; font-weight: 800; color: var(--l2-ink); }
.snap-lbl { font-size: .7rem; color: var(--l2-ink-3); }

/* 区块标题：去掉 kicker 与副标题，只留标题 + 计数 */
.lx-sec { margin-top: 12px; }
.lx-sec .st-head { margin-bottom: 8px; }
.lx-sec .st-kicker, .lx-sec .st-sub { display: none; }
.lx-sec h2 { font-size: 1.02rem; }
.st-section .st-kicker { display: none; }
.st-section .st-head { margin-bottom: 8px; }
.st-section .st-head h2 { font-size: 1.05rem; }

/* 筛选面板（/scenic-spots 的两列筛选条）压紧 */
.lx-jump { padding: 8px 10px; }
.lx-filter-grid { row-gap: 5px; }
.lx-pill { height: 26px; padding: 0 10px; font-size: .74rem; }
.lx-flabel { font-size: .72rem; }
.spot-main-tabs { margin-top: 6px; }
.spot-main-tab { padding: 5px 12px; font-size: .78rem; }
