/* 让我帮你搜索一下吧 */
.hs-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1020px; margin: 0 auto; }
.hs-side { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 26px; min-width: 0; }

/* 带 q 参数进入演示模式时，隐藏配置面板，动画区占满全宽 */
.hs-wrap:has(.hs-animation-area:not([hidden])) .hs-side { display: none; }

.hs-header h2 { margin: 0 0 6px; font-size: 1.3rem; }
.hs-header p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }

.hs-search { display: flex; gap: 10px; margin-bottom: 20px; }
.hs-search input { flex: 1; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: .95rem; }
.hs-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hs-search #hs-button { padding: 12px 20px; border: none; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s ease; white-space: nowrap; }
.hs-search #hs-button:hover { background: #35a171; }

.hs-engine { margin-bottom: 20px; }
.hs-engine > label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.hs-engine-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-engine-btn { padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: .82rem; cursor: pointer; transition: all .15s ease; }
.hs-engine-btn:hover { border-color: var(--accent); color: var(--accent); }
.hs-engine-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.hs-steps { display: flex; flex-direction: column; gap: 12px; }
.hs-step-line { font-size: .88rem; color: var(--muted); padding: 10px 14px; background: var(--bg2); border-radius: var(--radius-sm); }

.hs-link-row { display: flex; gap: 8px; margin-top: 12px; }
.hs-link-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: .85rem; }
.copy-btn { padding: 10px 16px; border: none; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.copy-btn:hover { background: #35a171; }

/* 动画区 */
.hs-animation-area { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); position: relative; min-height: 340px; }
.hs-anim-search { display: flex; justify-content: center; gap: 10px; padding-top: 120px; }
.hs-anim-input { width: 70%; max-width: 400px; padding: 12px 16px; border: 2px solid #fff; border-radius: 6px; background: #fff; font-size: .95rem; color: #333; }
.hs-anim-btn { padding: 12px 20px; border-radius: 6px; font-size: .92rem; color: #fff; cursor: pointer; transition: transform .1s ease; }
.hs-anim-btn.clicked { transform: scale(.95); }
.hs-anim-tip { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; text-align: center; font-size: .86rem; }
.hs-anim-tip span { display: block; }

.hs-mouse { display: none; position: absolute; z-index: 100; pointer-events: none; width: 18px; height: 24px; }
.hs-mouse::after { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 0; border-left: 7px solid #fff; border-top: 5px solid transparent; border-bottom: 14px solid transparent; filter: drop-shadow(0 0 2px rgba(0,0,0,.4)); }
.hs-mouse::before { content: ''; position: absolute; left: -1px; top: -1px; width: 0; height: 0; border-left: 8px solid #333; border-top: 0 solid transparent; border-bottom: 15px solid transparent; }

.hs-tips { max-width: 1020px; margin: 24px auto 0; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px 24px; }
.hs-tips h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin: 0 0 10px; }
.hs-tips h3 i { color: var(--accent); }
.hs-tips p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }

@media (max-width: 900px) {
  .hs-animation-area { min-height: 320px; }
}