* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f2f4f7;
  color: #333;
  font: 12px/1.6 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}
a { color: #333; text-decoration: none; }
a:hover { color: #1a6fd4; }
h1, h2, h3, h4, p, ul, ol, form { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: 1200px; max-width: calc(100% - 24px); margin: 0 auto; }

/* 顶栏 */
.topbar {
  background: #f7f8fa;
  border-bottom: 1px solid #e6e8eb;
  color: #8a9099;
  height: 32px;
  line-height: 32px;
  font-size: 12px;
}
.topbar-inner { display: flex; justify-content: space-between; }
.topbar-links a { color: #8a9099; margin-left: 16px; }
.topbar-links a:hover { color: #1a6fd4; }

/* 头部 */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; gap: 44px; height: 94px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2b7de9, #0b4fa8);
  color: #fff; font-size: 25px; font-weight: 700;
  box-shadow: 0 5px 12px rgba(26, 111, 212, .28);
}
.logo-text { font-size: 27px; font-weight: 700; color: #1a6fd4; letter-spacing: -.5px; line-height: 1.05; }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: #9aa1ab; letter-spacing: .2px; margin-top: 4px; }
.header-search { flex: 1; max-width: 610px; margin-left: auto; }
.search-form {
  display: flex; height: 44px;
  border: 2px solid #1a6fd4;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.search-form input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
}
.search-form input::placeholder { color: #a8afb8; }
.search-form button {
  width: 98px; border: 0;
  background: #1a6fd4; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: #155cb3; }
.hotwords {
  margin-top: 7px; font-size: 12px; color: #9aa1ab;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hotwords a { color: #6b7280; margin-left: 9px; }
.hotwords a:first-child { margin-left: 0; }
.hotwords a:hover { color: #1a6fd4; text-decoration: underline; }

/* 主导航 */
.mainnav { background: #1a6fd4; height: 40px; }
.nav-inner { display: flex; align-items: center; height: 40px; }
.nav-inner > a {
  color: #fff; font-size: 14px;
  padding: 0 18px; height: 40px; line-height: 40px;
  white-space: nowrap;
}
.nav-inner > a:hover { background: #2b7de9; color: #fff; }
.nav-inner > a.active { background: #0f56ab; font-weight: 600; }
.nav-count { margin-left: auto; color: rgba(255,255,255,.78); font-size: 12px; white-space: nowrap; }

/* 页面 */
.page { padding: 16px 0 30px; }

/* 查询面板 */
.query-panel {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 22px 24px 16px;
  margin-bottom: 12px;
}
.query-copy { text-align: center; margin-bottom: 15px; }
.query-copy h1 { font-size: 26px; color: #1f2937; font-weight: 700; letter-spacing: 1px; }
.query-copy p { margin-top: 5px; font-size: 12px; color: #8a9099; }
.big-search {
  display: flex; max-width: 780px; height: 50px;
  margin: 0 auto;
  border: 2px solid #1a6fd4;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.big-search input {
  flex: 1; min-width: 0; border: 0; outline: 0;
  padding: 0 16px; font-family: inherit; font-size: 15px; color: #333;
}
.big-search input::placeholder { color: #a8afb8; }
.big-search button {
  width: 132px; border: 0;
  background: #1a6fd4; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.big-search button:hover { background: #155cb3; }
.quick-links { text-align: center; margin-top: 13px; font-size: 12px; color: #9aa1ab; }
.quick-links a { display: inline-block; margin: 0 6px; color: #4b5563; }
.quick-links a:hover { color: #1a6fd4; text-decoration: underline; }

/* 数据条 */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  margin-bottom: 14px;
}
.stats > div { text-align: center; padding: 13px 8px; border-right: 1px solid #eef0f3; }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 22px; line-height: 1.2; color: #1a6fd4; font-weight: 700; }
.stats span { font-size: 12px; color: #8a9099; }

/* 布局 */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }

/* 分类 */
.cat-block {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}
.cat-head {
  display: flex; align-items: center;
  height: 42px; padding: 0 14px;
  background: #fafbfc;
  border-bottom: 1px solid #eef0f3;
}
.cat-head h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #1f2937; }
.cat-head h2 em { font-style: normal; font-weight: 400; font-size: 11px; color: #a0a6ae; margin-left: 2px; }
.cat-icon {
  width: 23px; height: 23px; border-radius: 4px;
  display: grid; place-items: center;
  background: #eaf2fd; color: #1a6fd4;
}
.cat-icon svg { width: 14px; height: 14px; }
.cat-head .more { margin-left: auto; font-size: 12px; color: #8a9099; }
.cat-head .more:hover { color: #1a6fd4; }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 8px 8px; }
.tool-link {
  display: block;
  padding: 8px 10px 7px;
  border-bottom: 1px dashed #f1f3f6;
  border-radius: 3px;
  min-width: 0;
}
.tool-link:hover { background: #f5f9ff; }
.tool-link b { display: block; font-size: 13px; font-weight: 400; color: #333; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-link b::before {
  content: ""; display: inline-block;
  width: 3px; height: 3px; margin-right: 6px;
  background: #b9d2f3; vertical-align: middle;
  border-radius: 1px;
}
.tool-link:hover b { color: #1a6fd4; }
.tool-link span {
  display: block;
  font-size: 11px;
  color: #a0a6ae;
  line-height: 1.5;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 侧栏 */
.side-box {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}
.side-head {
  height: 42px; display: flex; align-items: center;
  padding: 0 12px;
  background: #fafbfc;
  border-bottom: 1px solid #eef0f3;
}
.side-head h3 { font-size: 14px; font-weight: 700; color: #1f2937; padding-left: 8px; border-left: 3px solid #1a6fd4; line-height: 1.1; }
.rank-list { padding: 7px 12px 10px; }
.rank-list li { display: flex; align-items: center; gap: 8px; height: 30px; font-size: 13px; }
.rank-list li a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank {
  flex: none; width: 18px; height: 18px; line-height: 18px;
  text-align: center; font-size: 11px; font-weight: 700;
  color: #fff; background: #c7ccd4; border-radius: 2px;
}
.rank.r1 { background: #e74c3c; }
.rank.r2 { background: #f39c12; }
.rank.r3 { background: #e6a23c; }

.new-list { padding: 8px 12px 10px; }
.new-list li { display: flex; justify-content: space-between; gap: 10px; height: 29px; line-height: 29px; font-size: 12.5px; }
.new-list li a { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-list li span { flex: none; color: #b0b6bf; font-size: 11px; }

.guide p { padding: 3px 12px; font-size: 12px; color: #7b838d; line-height: 1.7; }
.guide p:first-of-type { padding-top: 10px; }
.guide p:last-of-type { padding-bottom: 12px; }

/* 页脚 */
.site-footer { background: #262a31; color: #9aa1ab; margin-top: 18px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px; padding: 30px 0 26px;
}
.footer-brand strong { font-size: 19px; color: #fff; letter-spacing: .5px; }
.footer-brand p { margin-top: 9px; font-size: 12px; line-height: 1.9; color: #8b929c; }
.footer-col h4 { font-size: 13px; color: #fff; margin-bottom: 9px; font-weight: 600; }
.footer-col a { display: block; color: #9aa1ab; font-size: 12px; line-height: 2.05; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #343941; padding: 13px 0; font-size: 12px; color: #7d848e; }

/* 响应式 */
@media (max-width: 1100px) {
  .header-inner { gap: 24px; }
  .logo-text { font-size: 24px; }
  .nav-inner > a { padding: 0 13px; font-size: 13px; }
  .nav-count { display: none; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 14px 0; gap: 12px; }
  .logo { width: 100%; }
  .header-search { max-width: none; width: 100%; margin: 0; }
  .search-form { height: 42px; }
  .hotwords { margin-top: 6px; }
  .mainnav { height: auto; }
  .nav-inner { overflow-x: auto; height: 38px; }
  .nav-inner > a { height: 38px; line-height: 38px; padding: 0 12px; font-size: 13px; }
  .layout { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .side-box { margin-bottom: 0; }
  .side-box.guide { grid-column: 1 / -1; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { max-width: calc(100% - 20px); }
  .nav-inner { flex-wrap: wrap; height: auto; overflow: visible; padding: 3px 0; }
  .nav-inner > a { height: 32px; line-height: 32px; padding: 0 10px; font-size: 12.5px; }
  .logo-mark { width: 38px; height: 38px; font-size: 21px; }
  .logo-text { font-size: 20px; }
  .logo-text small { font-size: 10px; }
  .query-panel { padding: 16px 12px 13px; }
  .query-copy h1 { font-size: 21px; letter-spacing: .5px; }
  .query-copy p { font-size: 11.5px; line-height: 1.7; }
  .big-search { height: 46px; }
  .big-search button { width: 92px; font-size: 14px; }
  .quick-links { line-height: 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid #eef0f3; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .cat-head h2 em { display: none; }
  .side-col { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
}
