:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --highlight: #fef08a;
}
.prec-header { background: linear-gradient(135deg, #1a56db 0%, #1e429f 100%); color: #fff; padding: 40px 20px 30px; text-align: center; }
.prec-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; }
.prec-header h1 span { color: #93c5fd; }
.prec-header .subtitle { margin-top: 6px; opacity: .85; font-size: .95rem; }
.search-wrap { background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 24px; max-width: 860px; margin: -20px auto 0; position: relative; }
.search-main { display: flex; gap: 8px; }
.search-main input { flex: 1; padding: 14px 18px; border: 2px solid var(--border); border-radius: 10px; font-size: 1rem; outline: none; transition: border .2s; }
.search-main input:focus { border-color: var(--primary); }
.search-main button { padding: 14px 24px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.search-main button:hover { background: var(--primary-dark); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.filters select, .filters input[type=number] { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; background: #fff; color: var(--text); cursor: pointer; }
.filters label { font-size: .85rem; color: var(--muted); margin-right: -6px; align-self: center; }
.btn-reset { padding: 8px 16px; background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; cursor: pointer; color: var(--muted); }
.btn-reset:hover { background: #e2e8f0; }
.main-wrap { max-width: 860px; margin: 30px auto; padding: 0 16px; }
.result-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.result-info .count { font-size: .95rem; color: var(--muted); }
.result-info .count strong { color: var(--primary); font-size: 1.1rem; }
.result-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; transition: box-shadow .2s; }
.result-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); text-decoration: none; display: block; margin-bottom: 6px; }
.card-title:hover { text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.card-meta .badge { background: #eff6ff; color: var(--primary); padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.card-meta .badge.type { background: #f0fdf4; color: #166534; }
.card-excerpt { font-size: .9rem; color: #475569; line-height: 1.7; }
mark { background: var(--highlight); padding: 0 2px; border-radius: 2px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .icon { font-size: 3rem; margin-bottom: 12px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: .85rem; color: var(--muted); }
.quick-types { margin-top: 24px; }
.quick-types h3 { font-size: .95rem; color: var(--muted); margin-bottom: 12px; text-align: center; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.type-chip { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; padding: 6px 16px; border-radius: 20px; font-size: .85rem; text-decoration: none; transition: all .2s; }
.type-chip:hover { background: var(--primary); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); font-size: .9rem; text-decoration: none; color: var(--text); }
.pagination a:hover { background: #eff6ff; border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.pagination .dots { border: none; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
@media (max-width: 600px) {
  .prec-header h1 { font-size: 1.5rem; }
  .search-wrap { border-radius: 12px; padding: 16px; }
  .hero-stats { gap: 24px; }
}
