:root {
  font-family: Inter,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  color: #202838;
  background: #f5f6f8;
  --blue: #2865dc;
  --muted: #687384;
  --line: #e6e9ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none!important;
}

.wrap {
  width: min(1320px,calc(100% - 64px));
  margin: auto;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

header .wrap {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.brand {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -1.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand svg {
  width: 31px;
  height: 31px;
}

.brand small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  color: #7b8494;
  border-left: 1px solid #d9dee7;
  padding-left: 12px;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: #596477;
}

nav a:hover {
  color: var(--blue);
}

.header-end {
  margin-left: auto;
  font-size: 13px;
  color: #788292;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #eff4fa;
  border-bottom: 1px solid #e4eaf2;
  text-align: center;
  padding: 58px 20px 48px;
  isolation: isolate;
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 0% 95%,#dfe7fa 0,transparent 46%),radial-gradient(ellipse at 100% 0%,#dceef4 0,transparent 43%),linear-gradient(180deg,#f7f9fc,#eef3f8);
}

.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#93a9ca14 1px,transparent 1px),linear-gradient(90deg,#93a9ca14 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(black,transparent 90%);
}

.hero-art {
  position: absolute;
  z-index: -1;
  width: 270px;
  height: 230px;
  color: #9fb9dc;
  opacity: .42;
  top: 35px;
  pointer-events: none;
}

.hero-art.left {
  left: 1%;
}

.hero-art.right {
  right: 1%;
  transform: rotate(-12deg);
}

h1 {
  margin: 0;
  font-size: clamp(30px,4vw,46px);
  letter-spacing: -1.8px;
  line-height: 1.3;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: #2865dc;
}

.hero p {
  margin: 14px 0 29px;
  color: #596679;
  font-size: 16px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 690px;
  margin: auto;
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 16px #263b6010;
}

.search svg {
  width: 20px;
  color: #8492a6;
  flex: none;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  padding: 10px 0;
  font-size: 15px;
}

.search input:focus-visible {
  outline: none;
}

.search:focus-within {
  border-color: #78a3f5;
}

.search button {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
}

.search .clear {
  background: none;
  color: #738092;
  padding: 8px;
}

.hot {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: #8791a1;
}

.hot button {
  border: 0;
  background: none;
  color: #3666b8;
  padding: 0;
}

.hot button:hover {
  text-decoration: underline;
}

main {
  padding: 30px 0 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  gap: 12px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -.5px;
}

.section-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.featured {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.feature {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s,box-shadow .18s;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px #263b6012;
}

.cover {
  height: 150px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 19px;
  isolation: isolate;
}

.cover svg {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 59%;
  height: 100%;
  z-index: -1;
}

.cover small {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: .8;
}

.cover strong {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-top: 9px;
  max-width: 76%;
}

.cover.ins {
  background: #162c4d;
  color: #fff;
}

.cover.learn {
  background: #fff0d5;
  color: #63451f;
}

.cover.guyuan {
  background: #dce9ef;
  color: #274b60;
}

.cover.game {
  background: #e9e4f5;
  color: #4b386e;
}

.cover.media {
  background: #f6f7fa;
  color: #27385d;
}

.cover.media small,
.cover.media strong {
  max-width: 58%;
}

.cover.media .cover-art {
  position: absolute;
  right: 0;
  top: 50%;
  width: 52%;
  max-width: 158px;
  height: auto;
  transform: translateY(-50%);
  z-index: -1;
}

.cover.default-cover {
  background: #e9f0ff;
  color: #294e86;
  overflow-wrap: anywhere;
}

.feature-body {
  padding: 15px 16px 17px;
}

.feature-body b {
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.feature-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.6;
}

.arrow {
  color: #8c98aa;
  font-weight: 400;
}

.feature:hover .arrow, .site:hover .arrow {
  color: var(--blue);
}

.lower {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.panel {
  background: white;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  padding: 20px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 17px;
  border-bottom: 1px solid #edf0f4;
}

.filter {
  border: 0;
  background: #f2f4f7;
  color: #546071;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px;
}

.filter[aria-pressed=true] {
  background: #e9f0ff;
  color: #245dcc;
  font-weight: 650;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 17px;
}

.site {
  border: 1px solid #e6eaf0;
  border-radius: 9px;
  padding: 15px;
  display: flex;
  gap: 12px;
  min-width: 0;
  transition: border-color .15s,background .15s;
}

.site:hover {
  border-color: #9ebcf5;
  background: #fbfcff;
}

.mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 9px;
  background: #edf2fa;
  color: #426598;
}

.mark svg {
  width: 24px;
  height: 24px;
}

.site-text {
  min-width: 0;
  flex: 1;
}

.site b {
  font-size: 15px;
  display: block;
}

.site p {
  font-size: 13px;
  color: #687384;
  margin: 5px 0;
  line-height: 1.55;
}

.site small {
  font-size: 11px;
  color: #8490a1;
  overflow-wrap: anywhere;
}

.site .arrow {
  align-self: flex-start;
}

.aside {
  display: grid;
  gap: 16px;
}

.aside h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.guide {
  display: block;
  padding: 13px 0;
  border-top: 1px solid #edf0f4;
}

.guide b {
  font-size: 14px;
}

.guide p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 5px 0 0;
}

.guide:hover b {
  color: var(--blue);
}

.quick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #edf0f4;
  font-size: 13px;
}

.quick span {
  color: #8b99ae;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.quick:hover {
  color: var(--blue);
}

.quick .arrow {
  margin-left: auto;
}

.empty {
  margin: 0;
  padding: 32px 8px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}

.count {
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: #828c9b;
  font-size: 12px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media(max-width:1000px) {
  .lower {
    grid-template-columns: minmax(0,1fr) 250px;
  }
  .featured {
    gap: 12px;
  }
  .cover {
    height: 128px;
  }
  .cover strong {
    font-size: 21px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    opacity: .24;
  }
}

@media(max-width:720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  header .wrap {
    height: 58px;
    gap: 18px;
  }
  .brand small, .header-end {
    display: none;
  }
  nav {
    margin-left: auto;
    gap: 16px;
    font-size: 12px;
  }
  .hero {
    padding: 43px 16px 35px;
  }
  .hero p {
    font-size: 14px;
    margin: 12px 0 22px;
  }
  .hero-art {
    width: 120px;
    opacity: .22;
  }
  .search {
    padding-left: 12px;
  }
  .search button {
    padding: 11px 17px;
  }
  .hot {
    gap: 10px;
  }
  .featured {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .cover {
    height: 110px;
    padding: 12px;
  }
  .cover strong {
    font-size: 19px;
  }
  .feature-body {
    padding: 12px;
  }
  .feature-body b {
    font-size: 14px;
  }
  .feature-body p {
    font-size: 12px;
  }
  .lower {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 25px;
  }
  .panel {
    padding: 14px;
  }
  .section-head h2 {
    font-size: 19px;
  }
  .section-head p {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .aside {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 24px;
  }
  footer .wrap {
    flex-wrap: wrap;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.site-text,
.feature-body {
  overflow-wrap: anywhere;
}

.empty .filter {
  display: block;
  margin: 10px auto 0;
}

@media (max-width: 360px) {
  header .wrap {
    gap: 10px;
    width: calc(100% - 24px);
  }

  nav {
    gap: 10px;
  }

  .brand {
    gap: 6px;
  }
}
