.tool-page {
  width: 1300px;
  margin: 0 auto 44px;
  color: #1f2d3d;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.tool-page .top {
  transform: translateY(-20px);
}

.tool-hero {
  margin-top: -4px;
  padding: 24px 32px 22px;
  background: #fff;
  border-top: 2px solid #0152bf;
  border-bottom: 1px solid #d8e2ef;
  text-align: center;
}

.tool-hero h1 {
  margin: 0 0 8px;
  color: #064899;
  font-size: 26px;
  font-weight: 800;
}

.tool-hero p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.tool-shell {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #dbe3ec;
  padding: 22px;
}

.tool-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #dbe3ec;
  padding-bottom: 14px;
}

.tool-title-row h2 {
  color: #004fae;
  font-size: 24px;
  font-weight: 800;
}

.tool-title-row span {
  color: #7a8798;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.tool-tabs button {
  height: 42px;
  border: 1px solid #9bb0cc;
  background: #f8fbff;
  color: #1d2d44;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.tool-tabs button.active,
.tool-tabs button:hover {
  background: #0152bf;
  color: #fff;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tool-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e0e6ee;
  background: #fff;
  color: #223247;
}

.tool-card:hover {
  border-color: #0152bf;
  box-shadow: 0 6px 18px rgba(7, 89, 189, .12);
}

.tool-card-img {
  grid-row: 1 / span 2;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf4ff;
  border: 1px solid #d7e4f5;
}

.tool-card-img img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.tool-card strong {
  font-size: 17px;
  font-weight: 800;
  color: #0d397c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card p {
  align-self: start;
  margin-top: 7px;
  color: #6b7788;
  line-height: 1.55;
  font-size: 13px;
}

.tool-empty {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  border: 1px dashed #b7c5d8;
  color: #768398;
  background: #f8fbff;
}

@media (max-width: 1320px) {
  .tool-page {
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
  }

  .tool-page .top .nav {
    width: 100%;
  }
}

body.classic-inner .tool-page {
  width: 1300px;
}

body.classic-inner .tool-page .top {
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
  margin-top: 32px;
}

body.classic-inner .tool-shell {
  margin-top: 18px;
  padding: 0 10px 16px;
  border: 0;
  background: #fff;
}

body.classic-inner .tool-title-row {
  display: none;
}

body.classic-inner .tool-tabs {
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 14px 0 16px;
}

body.classic-inner .tool-tabs button {
  height: 42px;
  border: 1px solid #0759bd;
  border-radius: 0;
  background: #fff;
  color: #111;
}

body.classic-inner .tool-tabs button.active,
body.classic-inner .tool-tabs button:hover {
  background: #0759bd;
  color: #fff;
}

body.classic-inner .tool-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 20px;
}

body.classic-inner .tool-card {
  display: block;
  min-height: 108px;
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

body.classic-inner .tool-card-img {
  width: 100%;
  height: 76px;
  border: 0;
  background: #fff;
}

body.classic-inner .tool-card-img img {
  max-width: 170px;
  max-height: 70px;
}

body.classic-inner .tool-card strong {
  display: block;
  margin-top: 5px;
  color: red;
  font-size: 16px;
  font-weight: 400;
}

body.classic-inner .tool-card strong::before {
  content: "热";
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  margin-right: 6px;
  border-radius: 4px;
  background: #ff2600;
  color: #fff;
  font-size: 14px;
}

body.classic-inner .tool-card p {
  display: none;
}
