/* 解决方案 · 对照 03-解决方案-0909改版；动效对照华康服务案例 */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #F5F5F5;
  color: #111;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }

.s-wrap { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }

.s-banner {
  position: relative;
  height: 360px;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.s-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  max-width: none;
}
.s-banner .s-scrim { position: absolute; inset: 0; background: rgba(17,17,17,.42); }
.s-banner h1 {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .08em;
}

.s-head {
  padding: 48px 0 28px;
  text-align: center;
  background: #fff;
}
.s-head h2 { margin: 0; font-size: 28px; font-weight: 700; }
.s-crumb { margin-top: 10px; font-size: 13px; color: #888; }
.s-crumb b { color: #111; font-weight: 400; }

.s-body { padding: 32px 0 72px; }
.s-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.s-side { background: #fff; padding: 24px 20px 28px; }
.s-search {
  height: 40px;
  border: 1px solid #E5E5E5;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #AAA;
  background: #fff;
}
.s-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: #111;
}
.s-search input::placeholder { color: #AAA; }
.s-search span { flex: none; color: #AAA; }
.s-side-title {
  margin-top: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EEE;
  font-size: 16px;
  font-weight: 700;
}
.s-side-nav a,
.s-side-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #F2F2F2;
}
.s-side-nav .is-on { color: #111; font-weight: 600; }
.s-hot { margin-top: 8px; }
.s-hot a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F2F2F2;
}
.s-hot img { width: 56px; height: 40px; object-fit: cover; flex: none; max-width: none; }
.s-hot span { font-size: 13px; color: #444; line-height: 1.4; }

.s-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  transition: opacity .35s ease;
}
.s-grid.is-out { opacity: 0; }
.s-card { background: #fff; align-self: start; }
.s-pic { overflow: hidden; }
.s-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  max-width: none;
  transition: transform .5s ease;
}
.s-card:hover img { transform: scale(1.1); }
.s-card .s-b { padding: 16px 16px 18px; }
.s-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  min-height: 44px;
}
.s-go { margin-top: 10px; font-size: 13px; color: #888; }
.s-card:hover h3,
.s-card:hover .s-go { color: #111; }

.s-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.s-cats,
.s-search-m { display: none; }

/* 详情 */
.s-main { padding: 40px 0 72px; }
.s-paper {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  background: #fff;
  padding: 56px 80px 64px;
}
.s-paper > h1 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}
.s-cat {
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #EEE;
  text-align: center;
  font-size: 13px;
  color: #888;
}
.s-cat b { color: #111; font-weight: 400; }
.s-rich { padding: 36px 0 8px; font-size: 15px; line-height: 1.85; color: #333; }
.s-rich p { margin: 0 0 16px; }
.s-rich h3 { font-size: 16px; font-weight: 600; color: #111; margin: 4px 0 16px; }
.s-rich ul { margin: 0 0 20px 1.2em; padding: 0; }
.s-rich li { margin-bottom: 6px; }
.s-rich .s-hero-img { width: 780px; max-width: 100%; margin: 28px auto 8px; }
.s-rich .s-hero-img img { width: 100%; height: 420px; object-fit: cover; max-width: none; }

.s-latest h2 { font-size: 22px; font-weight: 700; margin: 48px 0 20px; }
.s-latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.s-latest a .s-pic { overflow: hidden; }
.s-latest a img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  max-width: none;
  transition: transform .5s ease;
}
.s-latest a:hover img { transform: scale(1.1); }
.s-latest a h3 {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  min-height: 42px;
}

@media (max-width: 1199px) {
  .s-wrap { width: calc(100% - 32px); }
  .s-banner { height: 220px; }
  .s-banner h1 { font-size: 26px; }

  .s-head { padding: 28px 16px 18px; }
  .s-head h2 { font-size: 22px; }
  .s-crumb { margin-top: 8px; font-size: 12px; }

  .s-body { padding: 0 0 32px; }
  .s-layout { display: block; }
  .s-side { display: none; }

  .s-search-m {
    display: flex;
    margin: 16px 16px 0;
  }
  .s-cats {
    display: grid;
    margin: 16px 16px 0;
    background: #fff;
    padding: 12px 16px 14px;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    font-size: 13px;
    color: #888;
  }
  .s-cats button {
    text-align: left;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
  }
  .s-cats .is-on { color: #111; font-weight: 600; }
  .s-cats .is-on::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #111;
    margin-top: 6px;
  }

  .s-grid {
    padding: 16px 16px 0;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .s-card img { height: 110px; }
  .s-card .s-b { padding: 12px 10px 14px; }
  .s-card h3 { font-size: 13px; line-height: 1.4; min-height: 36px; }
  .s-go { margin-top: 8px; font-size: 12px; }

  .s-main { padding: 12px 0 32px; }
  .s-paper {
    width: auto;
    margin: 0 12px;
    padding: 28px 20px 32px;
  }
  .s-paper > h1 { font-size: 20px; }
  .s-cat { margin-top: 16px; padding-bottom: 16px; font-size: 12px; }
  .s-rich { padding: 24px 0 4px; font-size: 14px; line-height: 1.8; }
  .s-rich p { margin-bottom: 14px; }
  .s-rich h3 { font-size: 15px; margin: 0 0 12px; }
  .s-rich ul { margin: 0 0 16px 1.15em; }
  .s-rich .s-hero-img { width: 100%; margin: 20px 0 8px; }
  .s-rich .s-hero-img img { height: 180px; }

  .s-latest h2 { font-size: 18px; margin: 28px 0 14px; }
  .s-latest-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .s-latest a img { height: 96px; }
  .s-latest a h3 { margin-top: 8px; font-size: 13px; min-height: 38px; }
}

