@charset "UTF-8";
:root {
  --site-accent: #2d6cdf;
  --site-bg: #f4f5f7;
  --site-card: #fff;
  --site-text: #222;
  --site-muted: #667;
  --site-line: #e6e8ee;
  --site-radius: 10px;
  --site-max: 1180px;
  --site-bar-h: 56px;
  --site-gap: 12px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
html,
body {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  overflow-wrap: anywhere;
  background: var(--site-bg);
  color: var(--site-text);
  font: 15px/1.55 "PingFang SC", "Microsoft YaHei", sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--site-accent);
}
button,
input {
  font: inherit;
}
body {
  padding-top: var(--site-bar-h);
}
.site-hide {
  display: none !important;
}
.site-wrap {
  width: 100%;
  max-width: var(--site-max);
  min-width: 0;
  margin: 0 auto;
  padding: 0 12px;
}
.page-title {
  margin: 16px 0 8px;
  font-size: 22px;
  line-height: 1.35;
}
.page-lead {
  margin: 0 0 16px;
  color: var(--site-muted);
}

.site-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  background: var(--site-card);
  box-shadow: 0 1px 0 var(--site-line);
}
.site-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--site-max);
  min-width: 0;
  min-height: var(--site-bar-h);
  margin: 0 auto;
  padding: 8px 12px;
}
.site-bar__brand {
  display: block;
  max-width: 140px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
  color: var(--site-accent);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.site-bar__brand img {
  display: block;
  max-height: 36px;
  width: auto;
}
.site-bar__toggle {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: var(--site-card);
  cursor: pointer;
}
.site-bar__nav,
.site-bar__user {
  display: none;
  width: 100%;
}
.site-bar.is-open .site-bar__nav,
.site-bar.is-open .site-bar__user {
  display: flex;
}
.site-bar__nav {
  flex-direction: column;
  gap: 4px;
}
.site-bar__link {
  display: block;
  padding: 8px 0;
}
.view-home .site-bar__link--home,
.view-update .site-bar__link--update,
.view-rank .site-bar__link--rank,
.view-type .site-bar__link--type,
.word-page .site-bar__link--word,
.word-list .site-bar__link--word {
  color: var(--site-accent);
  font-weight: 600;
}
.site-bar__search {
  display: flex;
  width: 100%;
  gap: 8px;
}
.site-bar__q {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  background: var(--site-bg);
}
.site-bar__go {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--site-accent);
  color: #fff;
  cursor: pointer;
}
.site-bar__user {
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
}
.site-bar__user-link {
  color: var(--site-muted);
}
.site-bar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.site-foot {
  margin-top: 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 13px;
}
.site-foot__nav,
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.site-foot p {
  margin: 6px 0;
}
.site-top {
  position: fixed;
  right: 12px;
  bottom: 16px;
  z-index: 30;
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  cursor: pointer;
}
.site-top.is-on {
  display: block;
}

.work-hero {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 8px;
  padding-bottom: 4px;
}
.work-hero__item {
  flex: 0 0 78%;
  min-width: 0;
  scroll-snap-align: start;
}
.work-hero__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--site-radius);
  background: var(--site-line);
}
.work-hero__name,
.work-hero__link {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.work-hero__name {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.work-hero__link {
  display: block;
}

.page-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}
.page-chip__link {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--site-card);
  color: var(--site-text);
}

.work-section,
.work-section__head {
  min-width: 0;
}
.work-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
}
.work-section__title {
  margin: 0;
  font-size: 18px;
}
.work-section__more {
  color: var(--site-muted);
  font-size: 13px;
}

.work-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.work-shelf__item {
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: var(--site-radius);
  background: var(--site-card);
  border: 1px solid var(--site-line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
.work-card {
  min-width: 0;
}
.work-card__cover {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--site-radius);
  background: var(--site-line);
}
.work-card__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.work-card__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  color: #fff;
  font-size: 12px;
}
.work-card__name,
.work-card__meta {
  margin: 8px 0 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.work-card__name {
  font-size: 14px;
  font-weight: 600;
}
.work-card__meta {
  margin: 0;
  color: var(--site-muted);
  font-size: 12px;
}
.work-card__link,
.work-card__meta-link {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.work-author {
  color: inherit;
}
.work-card__body,
.work-list {
  min-width: 0;
}
.work-card--row {
  display: grid;
  grid-template-columns: 28px 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--site-line);
}
.work-card--row .work-card__cover img {
  aspect-ratio: 3 / 4;
}
.work-card__num {
  font-weight: 700;
  color: var(--site-muted);
}
.work-card--row:nth-child(-n+3) .work-card__num {
  color: var(--site-accent);
}

.page-filter {
  margin: 8px 0 16px;
  padding: 12px;
  border-radius: var(--site-radius);
  background: var(--site-card);
}
.page-filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  align-items: center;
}
.page-filter__row:last-child {
  margin-bottom: 0;
}
.page-filter__label {
  flex: 0 0 auto;
  color: var(--site-muted);
  font-weight: 500;
}
.page-filter__link {
  padding: 4px 8px;
  border-radius: 6px;
}
.page-filter__link.is-on {
  background: var(--site-accent);
  color: #fff;
}
.page-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--site-muted);
}
.page-sort__link.is-on {
  color: var(--site-accent);
  font-weight: 600;
}

.site-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}
.site-pager__link,
.site-pager span {
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--site-card);
  text-align: center;
}
.site-pager__link.is-on {
  background: var(--site-accent);
  color: #fff;
}
.site-pager__jump {
  min-width: 88px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--site-card);
  color: inherit;
}

.page-rank__board {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.page-rank__col {
  min-width: 0;
  padding: 12px;
  border-radius: var(--site-radius);
  background: var(--site-card);
}
.page-rank__title {
  margin: 0 0 10px;
  font-size: 16px;
}

.page-update {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.page-update__tab {
  display: inline-block;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--site-card);
  color: inherit;
  text-decoration: none;
}
.page-update__tab.is-on {
  background: var(--site-accent);
  color: #fff;
}

.work-crumb,
.word-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--site-muted);
}
.work-crumb__link,
.word-crumb__link {
  color: inherit;
}
.work-crumb__now,
.word-crumb__now {
  overflow-wrap: anywhere;
  color: var(--site-text);
}
.work-tag {
  margin-right: 6px;
}

.work-page__hero {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 12px 0 20px;
  padding: 16px;
  border-radius: var(--site-radius);
  background: var(--site-card);
}
.work-page__body {
  min-width: 0;
}
.work-page__name,
.page-title {
  overflow-wrap: anywhere;
}
.work-page__cover {
  width: 100%;
  max-width: 180px;
  border-radius: var(--site-radius);
  overflow: hidden;
}
.work-page__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.work-page__name {
  margin: 0 0 8px;
  font-size: 22px;
}
.work-page__meta,
.work-page__intro {
  margin: 0 0 8px;
  color: var(--site-muted);
}
.work-page__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.work-page__score {
  margin-top: 8px;
}
.site-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}
.site-btn--main {
  background: var(--site-accent);
  color: #fff;
}
.site-btn--side {
  background: var(--site-bg);
}
.site-btn--side.is-on {
  color: var(--site-accent);
}
.site-btn.is-off {
  opacity: 0.45;
  pointer-events: none;
}
.work-chapter__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 12px;
}
.work-chapter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-chapter__link {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--site-card);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.work-chapter__item.is-read .work-chapter__link {
  color: var(--site-muted);
}

.talk-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--site-radius);
  background: var(--site-card);
}
.talk-box__title {
  margin: 0 0 12px;
}
.talk-box__nick {
  margin: 0 0 6px;
  color: var(--site-muted);
  font-size: 13px;
}
.talk-editor {
  min-height: 72px;
  padding: 8px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
}
.talk-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  margin: 14px 0;
}
.talk-item__body,
.talk-item__text,
.talk-reply,
.talk-reply__text,
.talk-editor {
  min-width: 0;
  overflow-wrap: anywhere;
}
.talk-item__face img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.talk-item__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.talk-item__time {
  color: var(--site-muted);
  font-size: 12px;
}
.talk-emoji {
  position: relative;
  display: inline-block;
}
.talk-faces {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: min(280px, 72vw);
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.talk-faces li {
  width: 40px;
  height: 40px;
}
.talk-faces img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  cursor: pointer;
}
.talk-face {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}
.talk-empty {
  text-align: center;
  color: var(--site-muted);
}
.talk-reply {
  margin-top: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--site-line);
}
.talk-reply img:not(.talk-face) {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.page-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.page-help__link {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--site-card);
}
.page-help__link.is-on {
  background: var(--site-accent);
  color: #fff;
}
.page-help__body {
  min-width: 0;
  padding: 16px;
  border-radius: var(--site-radius);
  background: var(--site-card);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.page-help__heading {
  font-size: 18px;
}
.page-help__detail {
  margin: 0 0 16px;
}
.page-help__detail dt {
  font-weight: 600;
}
.page-help__detail dd {
  margin: 4px 0 0;
  color: var(--site-muted);
}
.page-help__map {
  display: grid;
  gap: 16px;
}
.page-help__group {
  min-width: 0;
}
.page-help__title {
  margin: 0 0 8px;
  font-size: 16px;
}
.page-help__map ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.word-page__body {
  margin: 16px 0 24px;
  padding: 20px;
  background: var(--site-card);
  border-radius: var(--site-radius);
}
.word-page__name {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}
.word-page__text {
  margin: 0;
  min-height: 4.5em;
  color: var(--site-text);
  line-height: 1.75;
}
.word-page__books,
.word-page__near {
  margin: 24px 0;
}
.word-page__title {
  margin: 0 0 12px;
  font-size: 18px;
}
.word-page__go {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 40px;
}
.word-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.word-index__item {
  margin: 0;
}
.word-index__link {
  display: inline-block;
  padding: 4px 0;
}

@media (min-width: 720px) {
  .work-hero__item {
    flex-basis: 42%;
  }
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .work-chapter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .work-page__hero {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .page-rank__board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .site-bar__inner {
    flex-wrap: nowrap;
  }
  .site-bar__toggle {
    display: none;
  }
  .site-bar__nav,
  .site-bar__user {
    display: flex;
    width: auto;
    flex: 0 0 auto;
  }
  .site-bar__nav {
    flex-direction: row;
    gap: 18px;
    margin-left: 16px;
  }
  .site-bar__search {
    flex: 1 1 160px;
    width: auto;
    max-width: 280px;
    min-width: 0;
    margin-left: auto;
  }
  .site-bar__user {
    width: auto;
    padding: 0;
  }
  .work-hero__item {
    flex-basis: 23%;
  }
  .work-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .page-rank__board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.site-modal__box {
  width: min(700px, 96vw);
  max-height: 90vh;
  overflow: auto;
  padding: 16px;
  border-radius: var(--site-radius);
  background: var(--site-card);
}
.site-modal.is-wide .site-modal__box {
  width: min(800px, 96vw);
}
.site-modal__head,
.site-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.site-modal__foot {
  margin: 16px 0 0;
  justify-content: flex-end;
}
.site-modal__x {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--site-muted);
}
.site-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}
.site-toast.is-on {
  opacity: 1;
}
.site-toast.is-ok {
  background: #2a7;
}
.site-load {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
}
.site-load__spin {
  width: 36px;
  height: 36px;
  border: 3px solid var(--site-line);
  border-top-color: var(--site-accent);
  border-radius: 50%;
  animation: site-spin 0.7s linear infinite;
}
@keyframes site-spin {
  to {
    transform: rotate(360deg);
  }
}
.work-page__score-stars {
  display: flex;
  gap: 4px;
}
.work-page__score-star {
  border: 0;
  background: transparent;
  color: #ccc;
  font-size: 22px;
  cursor: pointer;
}
.work-page__score-star.is-on {
  color: #f5a623;
}
@media (min-width: 900px) {
  .account-avatar__row {
    grid-template-columns: minmax(0, 1fr) 160px;
  }
}
