:root {
  --mdui-blue: #2196f3;
  --mdui-pink: #e91e63;
  --mdui-red: #ff0000;
  --mdui-text: #212121;
  --mdui-secondary: #757575;
  --mdui-line: #eeeeee;
  --mdui-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--mdui-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--mdui-text);
  background: var(--mdui-bg);
  font-family: Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.jlijli-wrap {
  width: min(calc(100% - 32px), 720px);
  margin: 16px auto 30px;
}

.jlijli-card {
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
}

.intro-card {
  padding: 16px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #333;
}

.hero-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--mdui-pink);
  font-size: 18px;
  font-weight: 700;
}

.hero-brand strong {
  font-size: 16px;
  font-weight: 500;
}

.hero-brand.has-logo-image {
  min-height: 112px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-brand.has-logo-image .hero-brand-mark {
  flex: 0 1 auto;
}

.hero-brand.has-logo-image strong {
  flex: 0 1 auto;
}

.hero-brand-mark.has-image {
  width: auto;
  min-width: 100px;
  max-width: 310px;
  height: 104px;
  padding: 3px 0;
  border-radius: 4px;
  background: transparent;
}

.hero-brand-mark.has-image img {
  width: auto;
  max-width: 310px;
  height: 100%;
  object-fit: contain;
}

.eyebrow-line {
  margin-bottom: 6px;
  color: var(--mdui-blue);
  font-size: 12px;
  font-weight: 500;
}

.link-banner {
  margin-bottom: 16px;
  padding: 13px 16px;
  border-radius: 2px;
  color: #212121;
  background: #fff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.link-banner::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mdui-pink);
  content: "";
  vertical-align: 2px;
}

.link-banner:empty,
.link-banner[hidden] {
  display: none;
}

.site-search {
  display: flex;
  height: 44px;
  align-items: center;
  margin: 0 0 16px;
  padding-left: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
}

.site-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  color: #212121;
  background: transparent;
  font-size: 13px;
}

.site-search button {
  align-self: stretch;
  padding: 0 15px;
  border: 0;
  border-radius: 0 2px 2px 0;
  color: #fff;
  background: var(--mdui-blue);
  cursor: pointer;
  font-size: 13px;
}

.site-search button:hover {
  background: #1688d8;
}

.site-search button:active {
  background: #0878c4;
}

.site-search[hidden] {
  display: none;
}

.intro-card h1 {
  margin: 0 0 10px;
  color: #212121;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}

.publish-pages {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: #424242;
  font-size: 14px;
}

.publish-pages:empty {
  display: none;
}

.publish-page {
  line-height: 1.45;
}

.publish-page strong {
  color: #616161;
  font-weight: 500;
}

.publish-page span,
.publish-page a {
  color: var(--mdui-blue);
}

.publish-page a {
  text-decoration: none;
}

.publish-page a:hover {
  text-decoration: underline;
}

.intro-text,
.browser-warning,
.notice-text {
  margin: 0 0 10px;
  color: #424242;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}

.browser-warning {
  color: var(--mdui-red);
  font-weight: 600;
}

.browser-warning b {
  font-weight: 700;
}

.bookmark-block {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 2px;
  color: #fff;
  background: var(--mdui-blue);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .18);
  text-align: center;
  cursor: default;
}

.recommend-title {
  margin-top: 14px;
  color: #212121;
  font-size: 14px;
  font-weight: 500;
}

.link-grid {
  margin-bottom: 16px;
}

.link-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-grid-inner > .jlijli-card {
  margin-bottom: 0;
}

.link-card {
  min-width: 0;
}

.link-card .link-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  padding: 16px;
}

.link-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--mdui-pink);
  font-size: 22px;
  font-weight: 700;
}

.link-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.icon-fallback[hidden] {
  display: none;
}

.link-title-wrap {
  min-width: 0;
  flex: 1;
  margin-left: 14px;
}

.link-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.link-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #212121;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-badge {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 2px;
  color: #fff;
  background: var(--mdui-pink);
  font-size: 10px;
  line-height: 16px;
}

.link-subtitle {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--mdui-secondary);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.link-card .link-content {
  padding: 4px 16px 16px;
  text-align: left;
}

.access-button {
  display: inline-block;
  min-width: 88px;
  padding: 7px 16px;
  border-radius: 2px;
  color: #fff;
  background: var(--mdui-pink);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .16);
  font-size: 14px;
  line-height: 1.4;
  transition: box-shadow .2s ease, background .2s ease;
}

.access-button:hover {
  background: #d81558;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .22);
}

.site-declaration {
  margin-bottom: 12px;
  padding: 15px 16px;
  border-radius: 2px;
  color: #757575;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  white-space: pre-line;
}

.site-declaration[hidden] {
  display: none;
}

.site-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0 14px;
  color: #9e9e9e;
  font-size: 11px;
  text-align: center;
}

.site-footer-line span:empty {
  display: none;
}

.notice-card {
  padding: 16px;
}

.notice-heading {
  margin-bottom: 6px;
  color: #212121;
  font-size: 14px;
  font-weight: 600;
}

.notice-text {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 2px;
  color: #fff;
  background: rgba(33, 33, 33, .92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.empty-card {
  grid-column: 1 / -1;
  padding: 30px 16px;
  color: var(--mdui-secondary);
  text-align: center;
}

@media (max-width: 600px) {
  .hero-brand.has-logo-image {
    min-height: 88px;
    justify-content: center;
  }

  .hero-brand-mark.has-image {
    min-width: 80px;
    max-width: 230px;
    height: 82px;
  }

  .hero-brand-mark.has-image img {
    max-width: 230px;
  }

  .jlijli-wrap {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .link-grid-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .link-grid {
    margin-bottom: 12px;
  }

  .link-card .link-header {
    min-height: 88px;
    padding: 14px;
  }

  .link-avatar {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  .jlijli-card {
    margin-bottom: 12px;
  }

  .intro-card h1 {
    font-size: 21px;
  }
}
