@charset "UTF-8";

body.articles-page,
body.article-detail-page {
  background: #f7f8fb;
}

.articles-hero {
  position: relative;
  padding: 88px 0 76px;
  background:
    linear-gradient(rgba(237, 239, 246, 0.68) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 239, 246, 0.68) 1px, transparent 1px),
    linear-gradient(180deg, #fff, #fbfbfe);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  overflow: hidden;
}

.articles-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 45%;
  height: 520px;
  background: radial-gradient(circle, rgba(100, 86, 231, 0.15), transparent 68%);
  pointer-events: none;
}

.articles-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.articles-kicker {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5a5f69;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.articles-kicker span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #725ee8, #347fd9);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(95, 90, 229, 0.09);
}

.articles-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.articles-hero-summary {
  max-width: 660px;
  margin: 24px 0 0;
  color: #707580;
  font-size: 15px;
  line-height: 1.9;
}

.articles-hero-stats {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.articles-hero-stats span {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: #5c61c9;
  background: rgba(239, 240, 255, 0.92);
  border: 1px solid #e0e2ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
}

.articles-library {
  padding: 66px 0 112px;
}

.articles-library-head {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.articles-library-head small {
  display: block;
  margin-bottom: 6px;
  color: #666ee6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.articles-library-head h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.articles-library-head p {
  max-width: 460px;
  margin: 0 0 3px;
  color: #777c86;
  font-size: 12px;
  line-height: 1.75;
  text-align: right;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.articles-grid[aria-busy="true"] {
  min-height: 280px;
  opacity: 0.62;
}

a.article-preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 19px;
  box-shadow: 0 14px 42px rgba(24, 27, 39, 0.052);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

a.article-preview:hover {
  border-color: #cac8f3;
  box-shadow: 0 20px 52px rgba(39, 39, 79, 0.11);
  transform: translateY(-4px);
}

.article-preview-cover {
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(103, 89, 229, 0.16), rgba(55, 126, 216, 0.1)),
    #eff0f5;
}

.article-preview-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

a.article-preview:hover .article-preview-cover img {
  transform: scale(1.035);
}

.article-preview-copy {
  min-height: 0;
  padding: 20px 21px 22px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.article-preview-category {
  align-self: flex-start;
  margin-bottom: 9px;
  color: #6167d4;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.article-preview h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #292c34;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-preview-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #7a7f89;
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-preview-meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  color: #989ca5;
  font-size: 11px;
}

.articles-empty {
  min-height: 300px;
  padding: 44px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #838893;
  background: #fff;
  border: 1px dashed #d9dce4;
  border-radius: 19px;
  text-align: center;
}

.articles-grid > .articles-empty {
  grid-column: 1 / -1;
}

.articles-empty[hidden] {
  display: none;
}

.articles-empty strong {
  color: #424650;
  font-size: 18px;
}

.articles-empty p {
  max-width: 430px;
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

.articles-pagination {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.articles-pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.articles-pagination a,
.articles-pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 740;
}

.articles-pagination a {
  color: #5057c4;
  background: #fff;
  border: 1px solid #dfe1e8;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.articles-pagination a:hover {
  color: #343bba;
  background: #f2f3ff;
  border-color: #cfd2ff;
}

.articles-pagination .is-current {
  color: #fff;
  background: #555cca;
  border-color: #555cca;
  pointer-events: none;
}

.articles-pagination-direction {
  padding: 0 14px;
}

.articles-pagination .is-disabled {
  color: #a6a9b2;
  background: #f0f1f4;
  border: 1px solid #e2e4e9;
}

.articles-pagination-gap {
  min-width: 24px !important;
  color: #989ca5;
}

.article-status-page {
  padding: 72px 0 112px;
}

.article-status-page .articles-empty {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
}

.articles-empty a,
.articles-empty button {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 720;
}

.article-detail {
  padding: 58px 0 112px;
}

.article-detail-shell {
  width: min(calc(100% - 32px), 980px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px);
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 24px;
  box-shadow: 0 20px 62px rgba(24, 27, 39, 0.07);
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #969aa3;
  font-size: 12px;
}

.article-breadcrumbs a {
  color: #6268d5;
  font-weight: 680;
}

.article-breadcrumbs a:hover {
  color: #343bba;
}

.article-detail-header {
  max-width: 780px;
  margin: 38px auto 0;
}

.article-detail-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: #6066d2;
  background: #eff0ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.article-detail-header h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.article-detail-summary {
  margin: 20px 0 0;
  color: #707580;
  font-size: 16px;
  line-height: 1.9;
}

.article-detail-summary:empty {
  display: none;
}

.article-detail-meta {
  margin-top: 22px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #92969f;
  border-bottom: 1px solid #eceef2;
  font-size: 12px;
}

.article-detail-cover {
  max-width: 860px;
  aspect-ratio: 16 / 8.5;
  margin: 34px auto 0;
  overflow: hidden;
  background: #eff0f5;
  border-radius: 18px;
}

.article-detail-cover[hidden] {
  display: none;
}

.article-detail-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-detail-body {
  max-width: 720px;
  margin: 40px auto 0;
  color: #3f434c;
  font-size: 16px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.article-detail-body > :first-child {
  margin-top: 0;
}

.article-detail-body > :last-child {
  margin-bottom: 0;
}

.article-detail-body p,
.article-detail-body ul,
.article-detail-body ol,
.article-detail-body blockquote,
.article-detail-body pre {
  margin: 0 0 1.45em;
}

.article-detail-body h2,
.article-detail-body h3 {
  color: #282b32;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.article-detail-body h2 {
  margin: 2em 0 0.75em;
  font-size: 27px;
}

.article-detail-body h3 {
  margin: 1.7em 0 0.65em;
  font-size: 21px;
}

.article-detail-body ul,
.article-detail-body ol {
  padding-left: 1.45em;
}

.article-detail-body blockquote {
  padding: 16px 20px;
  color: #5f6470;
  background: #f6f7fa;
  border-left: 3px solid #7075df;
  border-radius: 0 10px 10px 0;
}

.article-detail-body a {
  color: #545bd0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-detail-body pre {
  padding: 18px;
  overflow-x: auto;
  color: #eef0ff;
  background: #252833;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.75;
}

.article-detail-body :not(pre) > code {
  padding: 2px 5px;
  color: #4f55bc;
  background: #eff0ff;
  border-radius: 5px;
  font-size: 0.92em;
}

.article-content-section {
  position: relative;
  margin: 0 0 24px;
  padding: 24px 24px 24px 82px;
  background: #fafbfc;
  border: 1px solid #e8eaf0;
  border-radius: 16px;
}

.article-content-section-number {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #5b58c9;
  background: #eeefff;
  border-radius: 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
}

.article-detail-body .article-content-section-title {
  margin: 0;
  color: #262a34;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 830;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.article-content-section-text {
  margin: 10px 0 0 !important;
  color: #565c68;
  line-height: 1.9;
  white-space: pre-wrap;
}

.article-content-section-title + .article-content-section-image,
.article-content-section-text + .article-content-section-image,
.article-content-section-title + .article-content-section-gallery,
.article-content-section-text + .article-content-section-gallery {
  margin-top: 20px;
}

.article-content-section-gallery {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.article-content-section-gallery > .article-content-section-image {
  min-width: 0;
  margin: 0;
}

.article-content-section-gallery > .article-content-section-image:only-child {
  grid-column: 1 / -1;
}

.article-content-section-image {
  margin: 0;
}

.article-content-section-image img {
  width: 100%;
  max-height: 760px;
  display: block;
  object-fit: contain;
  background: #f1f2f6;
  border: 1px solid #e4e6ec;
  border-radius: 12px;
}

.article-content-section-image figcaption {
  margin-top: 9px;
  color: #777c87;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.article-content-section-action {
  min-height: 42px;
  margin-top: 18px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: #5958cc;
  border: 1px solid #5958cc;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(89, 88, 204, 0.18);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.article-content-section-action:hover {
  background: #4847b8;
  box-shadow: 0 11px 25px rgba(72, 71, 184, 0.24);
  transform: translateY(-1px);
}

.article-content-section-action:focus-visible {
  outline: 3px solid rgba(89, 88, 204, 0.25);
  outline-offset: 3px;
}

.article-content-section-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-content-section-actions .article-content-section-action {
  margin-top: 0;
}

.article-body-image {
  margin: 2em 0;
}

.article-body-image img {
  width: 100%;
  max-height: 760px;
  display: block;
  object-fit: contain;
  background: #f4f5f8;
  border: 1px solid #eceef3;
  border-radius: 14px;
}

.article-body-image figcaption {
  margin-top: 9px;
  color: #777c87;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.article-detail-video {
  max-width: 720px;
  margin: 42px auto 0;
}

.article-detail-video-header {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.article-detail-video-header h2 {
  margin: 0;
  color: #282b32;
  font-size: 20px;
  line-height: 1.4;
}

.article-detail-video-header a {
  color: #6066d2;
  font-size: 11px;
  font-weight: 720;
}

.article-bilibili-player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(251, 114, 153, 0.2), transparent 35%),
    linear-gradient(145deg, #20222b, #111218);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(20, 23, 34, 0.16);
}

.article-bilibili-load {
  width: 100%;
  height: 100%;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.article-bilibili-load span {
  padding: 5px 9px;
  color: #ff9ab6;
  background: rgba(251, 114, 153, 0.13);
  border: 1px solid rgba(251, 114, 153, 0.28);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
}

.article-bilibili-load strong {
  font-size: clamp(23px, 4vw, 34px);
  letter-spacing: -0.035em;
}

.article-bilibili-load small {
  color: #afb2bd;
  font-size: 11px;
}

.article-bilibili-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.article-detail-tags {
  max-width: 720px;
  margin: 34px auto 0;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eceef2;
}

.article-detail-tags:empty,
.article-detail-tags[hidden] {
  display: none;
}

.article-detail-tags a,
.article-detail-tags span {
  padding: 6px 10px;
  color: #6066d2;
  background: #eff0ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
}

.article-detail-actions {
  max-width: 720px;
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-detail-actions a {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f55c6;
  background: #f0f1ff;
  border: 1px solid #dfe1ff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 740;
}

.article-detail-actions a:hover {
  background: #e7e9ff;
  border-color: #cfd2ff;
}

a.article-preview:focus-visible,
.articles-empty a:focus-visible,
.articles-empty button:focus-visible,
.article-breadcrumbs a:focus-visible,
.article-detail-actions a:focus-visible {
  outline: 3px solid rgba(86, 96, 221, 0.24);
  outline-offset: 3px;
}

.article-detail-video-header a:focus-visible,
.article-bilibili-load:focus-visible {
  outline: 3px solid rgba(251, 114, 153, 0.3);
  outline-offset: 3px;
}

.articles-pagination a:focus-visible {
  outline: 3px solid rgba(86, 96, 221, 0.24);
  outline-offset: 3px;
}

.articles-footer {
  background: #fff;
}

@media (max-width: 980px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-detail-shell {
    padding: 46px clamp(28px, 6vw, 56px) 58px;
  }
}

@media (max-width: 680px) {
  .articles-hero {
    padding: 62px 0 58px;
  }

  .articles-hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .articles-hero-summary {
    font-size: 14px;
  }

  .articles-library {
    padding: 48px 0 86px;
  }

  .articles-library-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .articles-library-head p {
    text-align: left;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .articles-pagination {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 9px;
  }

  .articles-pagination-pages {
    width: 100%;
    order: -1;
    flex-wrap: wrap;
  }

  .articles-pagination-direction {
    flex: 1 1 calc(50% - 5px);
  }

  a.article-preview {
    border-radius: 16px;
  }

  .article-preview-copy {
    padding: 18px;
  }

  .article-detail {
    padding: 30px 0 78px;
  }

  .article-detail-shell {
    width: min(calc(100% - 20px), 980px);
    padding: 27px 18px 38px;
    border-radius: 18px;
  }

  .article-detail-header {
    margin-top: 28px;
  }

  .article-detail-header h1 {
    font-size: clamp(32px, 10vw, 43px);
  }

  .article-detail-summary {
    font-size: 15px;
  }

  .article-detail-cover {
    margin-top: 28px;
    border-radius: 13px;
  }

  .article-detail-body {
    margin-top: 31px;
    font-size: 15px;
    line-height: 1.95;
  }

  .article-detail-body h2 {
    font-size: 24px;
  }

  .article-detail-body h3 {
    font-size: 20px;
  }

  .article-content-section {
    padding: 69px 15px 17px;
    border-radius: 13px;
  }

  .article-content-section-number {
    top: 15px;
    left: 15px;
  }

  .article-detail-body .article-content-section-title {
    font-size: 21px;
  }

  .article-content-section-action {
    width: 100%;
  }

  .article-content-section-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-body-image img,
  .article-content-section-image img,
  .article-bilibili-player {
    border-radius: 11px;
  }

  .article-detail-video {
    margin-top: 34px;
  }

  .article-detail-video-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .article-bilibili-load {
    padding: 20px;
  }

  .article-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .article-detail-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.article-preview,
  .article-preview-cover img,
  .article-content-section-action {
    transition: none;
  }
}
