/*
Design Rule
- 白底黑字
- 搜索栏居中并放大
- 搜索下方显示快捷网站导航
- 保持百度联想输入体验
*/

:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #4f46e5;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
}
.shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 28px;
  margin: 0 auto;
  padding: 48px 0;
}
.hero {
  width: min(920px, 100%);
  margin: 0 auto;
}
.search-panel--compact {
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.search-panel--compact .suggestions {
  min-height: 0;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.22s ease, padding 0.22s ease;
}
.search-panel--compact:focus-within .suggestions,
.search-panel--compact.has-results .suggestions {
  max-height: 320px;
  padding: 8px 0 10px;
  opacity: 1;
}
.search-panel--compact .search-panel__foot { display: none; }
.search-panel__bar {
  display: grid;
  grid-template-columns: 44px 1fr 60px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  background: var(--brand);
}
.search-panel input,
.icon-button {
  border: 0;
  font: inherit;
  background: transparent;
}
.search-panel input {
  width: 100%;
  min-width: 0;
  height: 82px;
  color: #111827;
  outline: none;
}
.search-panel input::placeholder { color: #9ca3af; }
.icon-button {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: #4b5563;
  font-size: 34px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.icon-button:hover,
.icon-button:focus-visible {
  color: var(--brand);
  transform: scale(1.06);
}
.suggestions {
  display: grid;
  min-height: 0;
  padding: 8px 0 10px;
}
.suggestion-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border: 0;
  color: #111827;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.suggestion-item::before {
  color: #6b7280;
  font-size: 22px;
  content: "⌕";
}
.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: #f3f4f6;
  outline: none;
}
.search-panel__foot {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: #98a0ae;
  font-size: 12px;
  text-align: right;
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(920px, 100%);
  margin: 0 auto;
}
.quick-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.quick-group h2 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.3;
}
.quick-links {
  display: grid;
  gap: 8px;
}
.quick-links a {
  display: grid;
  min-height: 40px;
  place-items: center start;
  padding: 0 12px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #f9fafb;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: #c7d2fe;
  background: #eef2ff;
  outline: none;
  transform: translateX(3px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
    gap: 18px;
    padding: 24px 0;
  }
  .search-panel__bar {
    grid-template-columns: 34px 1fr 44px;
    min-height: 68px;
    padding: 0 14px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .search-panel input { height: 68px; }
  .icon-button {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .quick {
    grid-template-columns: 1fr;
  }
}