:root {
  color-scheme: light;
  --blue: #0878ee;
  --deep-blue: #082454;
  --pink: #ff429d;
  --muted: #858990;
  --line: #e5e7eb;
  --surface: #fff;
  --shadow: 0 3px 10px rgba(18, 42, 73, .11);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: #f3f6fb; scroll-behavior: smooth; }
body { margin: 0; color: #131722; background: #f3f6fb; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page {
  width: min(100%, 943px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 40px rgba(33, 72, 120, .09);
}

.hero { aspect-ratio: 943 / 323; background: linear-gradient(120deg, #0756db, #0eb5f1); }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.content {
  position: relative;
  min-height: 70vh;
  margin-top: -13px;
  padding: 14px 32px 42px;
  border-radius: 23px 23px 0 0;
  background: #fff;
}

.search-wrap { position: relative; z-index: 5; }
.search {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid #edf0f3;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 43, 71, .06);
}
.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding: 0 15px;
  border-radius: 24px;
  background: #f3f3f3;
  color: #8e9399;
  transition: box-shadow .2s, background .2s;
}
.search-field:focus-within { background: #f7faff; box-shadow: 0 0 0 2px rgba(8, 120, 238, .14); }
.search-field > svg { width: 29px; height: 29px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search input { width: 100%; height: 46px; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; font-size: 17px; color: #17191c; }
.search input::placeholder { color: #a4a5a8; font-size: 15px; }
.search input::-webkit-search-cancel-button { display: none; }
.clear { display: none; width: 30px; height: 30px; padding: 4px; border: 0; background: transparent; color: #a7abb1; cursor: pointer; }
.clear.show { display: block; }
.clear svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.clear:hover { color: #747b84; }
.clear:active { transform: scale(.88); }
.search-btn {
  flex: 0 0 112px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #087bf4, #075de7);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(8, 105, 234, .2);
  transition: transform .15s, box-shadow .15s;
}
.search-btn:active { transform: scale(.96); box-shadow: 0 2px 8px rgba(8, 105, 234, .18); }

.suggestions {
  position: absolute;
  top: calc(100% - 8px);
  left: 20px;
  right: 146px;
  display: none;
  overflow: hidden;
  border: 1px solid #e6ebf1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 45, 78, .16);
}
.suggestions.show { display: block; animation: float-in .18s ease-out; }
.suggestion { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 16px; border: 0; border-bottom: 1px solid #f0f2f5; background: #fff; text-align: left; cursor: pointer; }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion.active { background: #f5f9ff; }
.suggestion svg { width: 17px; height: 17px; fill: none; stroke: #97a0ab; stroke-width: 1.7; }
.suggestion span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion mark { background: transparent; color: var(--blue); font-weight: 700; }

.tabs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin: 22px 0 16px;
}
.tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 48px;
  padding: 0 8px;
  border: 1px solid #ecedef;
  border-radius: 22px;
  background: #fff;
  color: #17191d;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(17, 31, 49, .13);
  transition: color .2s, background .2s, transform .15s, box-shadow .2s;
}
.tab svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--blue); transform: translateY(-2px); box-shadow: 0 7px 14px rgba(8, 92, 197, .14); }
.tab:active { transform: scale(.94); }
.tab.active { border-color: transparent; background: linear-gradient(135deg, #0a84fa, #0866e8); color: #fff; box-shadow: 0 7px 16px rgba(8, 104, 232, .25); animation: tab-pop .28s ease-out; }
.tab.search-mode { color: #17191d; background: #fff; }

.result-head { display: none; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 3px 14px; color: #69717d; }
.result-head.show { display: flex; }
.result-head p { margin: 0; font-size: 14px; }
.result-head strong { color: var(--blue); }
.result-head button { padding: 5px 8px; border: 0; background: transparent; color: var(--blue); font-size: 14px; cursor: pointer; }

.qa-list { display: grid; gap: 20px; }
.qa-card {
  position: relative;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 30px;
  column-gap: 10px;
  padding: 18px 16px 20px 21px;
  border: 1px solid #e1e3e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.qa-card:hover { transform: translateY(-1px); border-color: #d7e6fa; box-shadow: 0 7px 18px rgba(18, 52, 91, .12); }
.qa-card:focus-visible { outline: 3px solid rgba(8, 120, 238, .25); outline-offset: 2px; }
.number-col { grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dceaff;
  color: #0871ed;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.answer-icon { width: 20px; height: 20px; object-fit: contain; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s; }
.qa-card.open .answer-icon { opacity: 1; transform: scale(1); }
.question { align-self: center; min-width: 0; color: var(--deep-blue); font-size: 17px; font-weight: 750; line-height: 1.55; }
.hot { display: inline-block; margin-right: 8px; padding: 2px 12px; border-radius: 12px; background: var(--pink); color: #fff; font-size: 13px; font-weight: 700; vertical-align: 2px; }
.toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.toggle img { width: 20px; height: 20px; object-fit: contain; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.qa-card.open .toggle img { transform: rotate(180deg); }
.answer {
  grid-column: 2 / 3;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
}
.answer-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.answer-full { display: none; white-space: pre-line; }
.qa-card.open .answer { color: #15171a; animation: answer-in .25s ease-out; }
.qa-card.open .answer-preview { display: none; }
.qa-card.open .answer-full { display: block; }
.answer a { color: var(--blue); overflow-wrap: anywhere; }
.empty { padding: 70px 20px 100px; text-align: center; color: #7d8794; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: #edf5ff; color: var(--blue); font-size: 30px; }
.empty h2 { margin: 0 0 8px; color: #25334a; font-size: 20px; }
.empty p { margin: 0; font-size: 14px; }
.empty button { margin-top: 22px; padding: 9px 24px; border: 0; border-radius: 20px; background: var(--blue); color: #fff; cursor: pointer; }

@keyframes tab-pop { 50% { transform: scale(1.06); } }
@keyframes answer-in { from { opacity: .5; transform: translateY(-4px); } }
@keyframes float-in { from { opacity: 0; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

@media (max-width: 720px) {
  .hero { height: auto; aspect-ratio: 943 / 323; overflow: hidden; }
  .hero img { width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
  .content { margin-top: -8px; padding: 12px 14px 30px; border-radius: 17px 17px 0 0; }
  .search { gap: 8px; padding: 10px; border-radius: 15px; }
  .search-field { padding: 0 10px; }
  .search-field > svg { width: 23px; height: 23px; }
  .search input { height: 42px; padding: 0 8px; font-size: 16px; }
  .search input::placeholder { font-size: 13.5px; }
  .clear { width: 32px; height: 32px; padding: 5px; flex: 0 0 auto; }
  .search-btn { flex-basis: 72px; font-size: 16px; letter-spacing: 1px; }
  .suggestions { left: 10px; right: 90px; }
  .tabs { gap: 7px; margin: 15px 0 14px; overflow-x: auto; grid-template-columns: repeat(8, minmax(78px, 1fr)); padding: 2px 1px 9px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { height: 41px; font-size: 14px; border-radius: 20px; box-shadow: 0 3px 7px rgba(17,31,49,.11); }
  .tab svg { width: 16px; height: 16px; }
  .qa-list { gap: 13px; }
  .qa-card { grid-template-columns: 36px minmax(0, 1fr) 25px; gap: 7px; padding: 14px 10px 15px 12px; border-radius: 14px; }
  .number { width: 30px; height: 30px; font-size: 13px; }
  .answer-icon { width: 17px; height: 17px; }
  .question { font-size: 15px; line-height: 1.48; }
  .hot { margin-right: 5px; padding: 1px 8px; font-size: 11px; }
  .answer { margin-top: 5px; font-size: 13.5px; line-height: 1.65; }
  .toggle { width: 25px; height: 25px; padding: 3px; }
}

@media (max-width: 380px) {
  .search-btn { flex-basis: 62px; }
}
