:root {
  --primary: #0188fb;
  --primary-strong: #0166c7;
  --text: #333;
  --border: #e4e8eb;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 6px 18px rgba(0, 0, 0, .06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, .08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background: #f5f7fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: normal;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--primary-strong);
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

input, textarea {
  font-family: inherit;
  font-size: 16px;
  outline: none;
  border-radius: var(--radius-sm);
}

@font-face {
  font-family: 'iconfont';
  src: url('fonts/iconfont.eot');
  src: url('fonts/iconfont.eot?#iefix') format('embedded-opentype'),
       url('fonts/iconfont.woff2') format('woff2'),
       url('fonts/iconfont.woff') format('woff'),
       url('fonts/iconfont.ttf') format('truetype'),
       url('fonts/iconfont.svg#iconfont') format('svg');
  font-weight: normal;
  font-style: normal;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  z-index: 100;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.main .wrap {
  display: block;
  height: auto;
}

.header .name {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #1a1a1a;
  white-space: nowrap;
}

.header .name a {
  color: inherit;
  line-height: 1;
}

.head {
  display: flex;
  align-items: center;
  height: 100%;
}

.menuico {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: background .2s;
}

.menuico:hover {
  background: rgba(0, 0, 0, .05);
}

.menuico span {
  width: 24px;
  height: 2px;
  background: #2c3e50;
  margin: 3px 0;
  transition: all .3s ease;
  border-radius: 2px;
}

.menuico.on span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menuico.on span:nth-child(2) {
  opacity: 0;
}

.menuico.on span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.menu {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
  z-index: 100;
}

.menu ul {
  display: flex;
  align-items: center;
  height: 100%;
}

.menu li {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 12px;
}

.menu li:first-child {
  margin-left: 0;
}

.menu li a {
  font-size: 16px;
  color: #2c3e50;
  padding: 8px 4px;
  transition: color .2s;
  white-space: nowrap;
}

.menu li a:hover {
  color: var(--primary);
}

.menu li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s;
  border-radius: 2px;
}

.menu li:hover::after,
.menu li.on::after {
  width: 100%;
}

.fademask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 99;
}

.fademask.on {
  opacity: 1;
  visibility: visible;
}

.main.fixed {
  padding-top: 60px;
  flex: 1;
}

.content {
  width: 100%;
}

.block {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  padding: 32px;
  transition: box-shadow .3s ease;
}

.block:hover {
  box-shadow: var(--shadow-hover);
}

.keyword-description {
  text-align: center;
  padding: 40px 0 20px;
}

.keyword-description h1.keyword-name {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
}

.keyword-description h1.keyword-name::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #5cb8ff);
  margin: 16px auto 0;
  border-radius: 4px;
}

.related-block {
  padding: 24px 28px 20px;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaeef2;
  position: relative;
  display: flex;
  align-items: center;
}

.related-title span {
  position: relative;
  z-index: 1;
}

.related-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.related-list li {
  border-bottom: 1px dashed #e0e5ea;
  transition: background .2s;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list li:hover {
  background: #f8fafc;
}

.related-list a {
  display: flex;
  align-items: center;
  padding: 14px 8px;
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.5;
  transition: color .2s, padding-left .2s;
  position: relative;
}

.related-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-right: 14px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.5em;
  transition: background .2s;
}

.related-list a:hover {
  color: var(--primary);
  padding-left: 16px;
}

.related-list a:hover::before {
  background: var(--primary);
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
  background: #fff;
  border-top: 1px solid #eaeef2;
  margin-top: auto;
}

.footer .wrap {
  height: auto;
  display: block;
}

.footer span {
  display: block;
  line-height: 1.8;
}

a:focus-visible,
.menuico:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }

  .header.fixed {
    height: 56px;
  }

  .header .name {
    font-size: 20px;
  }

  .menuico {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    padding: 12px 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
    margin-left: 0;
  }

  .menu.on {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .menu li {
    margin: 0;
    height: auto;
    border-bottom: 1px solid #f0f2f5;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu li::after {
    display: none;
  }

  .menu li a {
    display: block;
    width: 100%;
    padding: 14px 8px;
    font-size: 16px;
  }

  .main.fixed {
    padding-top: 56px;
  }

  .block {
    padding: 20px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .keyword-description {
    padding: 24px 0 12px;
  }

  .keyword-description h1.keyword-name {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .keyword-description h1.keyword-name::after {
    width: 60px;
    height: 3px;
    margin-top: 12px;
  }

  .related-block {
    padding: 18px 14px 14px;
  }

  .related-title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .related-list a {
    font-size: 15px;
    padding: 12px 4px;
    align-items: flex-start;
  }

  .related-list a::before {
    margin-top: 0.5em;
    width: 5px;
    height: 5px;
    margin-right: 10px;
  }

  .footer {
    padding: 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .keyword-description h1.keyword-name {
    font-size: 28px;
  }

  .related-list a {
    white-space: normal;
  }
}

body.menu-open {
  overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
  body.menu-open {
    position: fixed;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}