/* ==========================================================================
 * p1-advsearch.css — Shard-C2 高级检索构造器（与 P0 基础检索共存，只新增入口）
 * .p1-adv- 前缀；复用 p1-core 玻璃 token；禁原生 select/date；375 无横溢
 * ========================================================================== */

/* H4：关键词框旁的玻璃 chip 入口 */
.p1-adv-entry{ display:inline-flex; align-items:center; gap:6px; min-height:38px; padding:0 14px;
  border-radius:999px; border:1px solid #C7D2FE; background:#EEF2FF; color:#4F46E5;
  font-size:13px; cursor:pointer; font-family:inherit; margin:2px 0 8px; }
.p1-adv-entry:hover{ background:#E0E7FF; border-color:#4F46E5; }
.p1-adv-entry .p1-ic{ width:15px; height:15px; }

/* 构造器底部弹层 */
.p1-adv-mask{ position:fixed; inset:0; z-index:19004; background:rgba(15,23,42,.4);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); display:flex; align-items:flex-end; justify-content:center; }
@media (min-width:640px){ .p1-adv-mask{ align-items:center; } }
.p1-adv-sheet{ width:100%; max-width:560px; height:94vh; max-height:94vh; display:flex; flex-direction:column;
  border-radius:18px 18px 0 0; overflow:hidden; }
@media (min-width:640px){ .p1-adv-sheet{ height:86vh; border-radius:18px; } }
.p1-adv-head{ display:flex; align-items:center; gap:10px; padding:14px 16px 8px; flex:0 0 auto; }
.p1-adv-head h3{ font-size:16px; font-weight:700; margin:0; flex:1; }
.p1-adv-close{ width:34px; height:34px; border-radius:50%; border:none; background:transparent; cursor:pointer; color:#9DA5B0; display:grid; place-items:center; }
.p1-adv-body{ flex:1 1 auto; overflow-y:auto; padding:4px 16px calc(16px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling:touch; }
.p1-adv-field{ margin-bottom:12px; }
.p1-adv-field > label{ display:block; font-size:12px; font-weight:600; color:#57606A; margin-bottom:6px; }
.p1-adv-input{ width:100%; min-height:42px; border:1px solid #E5E7EB; border-radius:10px; padding:0 12px;
  font-size:14px; font-family:inherit; background:#fff; box-sizing:border-box; }
.p1-adv-input:focus{ outline:none; border-color:#4F46E5; }
.p1-adv-row2{ display:flex; gap:8px; }
.p1-adv-row2 > *{ flex:1 1 0; min-width:0; }
.p1-adv-hr{ border:none; border-top:1px solid #E5E7EB; margin:14px 0; }
.p1-adv-sub{ font-size:12px; color:#9DA5B0; line-height:1.6; margin:0 0 8px; }
.p1-adv-foot{ flex:0 0 auto; display:flex; gap:10px; padding:10px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid #E5E7EB; }
.p1-adv-foot .p1-btn{ flex:1; }

/* 结果面板 */
.p1-adv-results{ margin-top:10px; }
.p1-adv-total{ font-size:13px; color:#57606A; margin:4px 0 8px; }
.p1-adv-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.p1-adv-chipdel{ display:inline-flex; align-items:center; gap:4px; font-size:12px; padding:5px 10px;
  border-radius:999px; background:#EEF2FF; border:1px solid #C7D2FE; color:#4F46E5; cursor:pointer; font-family:inherit; }
.p1-adv-chipdel .x{ font-weight:700; }
.p1-adv-rrow{ padding:11px 12px; border:1px solid #E5E7EB; border-radius:10px; background:#fff; margin-bottom:8px; cursor:pointer; }
.p1-adv-rrow:hover{ border-color:#C7D2FE; }
.p1-adv-rrow__t{ font-size:14px; color:#1F2328; font-weight:600; line-height:1.5; }
.p1-adv-rrow__m{ font-size:12px; color:#9DA5B0; margin-top:4px; }
.p1-adv-rrow__txt{ font-size:12px; color:#57606A; margin-top:4px; line-height:1.6; }

@media (prefers-reduced-motion: reduce){ *{ transition:none !important; } }
