:root {
  --font-main: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  --paper: #fffdf8;
  --ink: #20212a;
  --muted: #686b78;
  --line: rgba(32, 33, 42, .12);
  --accent: #e85d2a;
  --accent-2: #1e9f86;
  --accent-3: #f6c65b;
  --soft: #fff3e7;
  --panel: #ffffff;
  --header-h: 70px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 33, 42, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 33, 42, .03) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.72;
  overflow-x: hidden;
}

body.blog-nav-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.blog-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(16px);
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.blog-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
  box-shadow: 5px 5px 0 var(--accent-3);
}

.blog-brand strong,
.blog-brand small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-brand strong {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.blog-brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.blog-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 14px;
  font-weight: 900;
}

.blog-nav a:hover,
.blog-nav a:focus-visible {
  background: var(--soft);
  color: var(--accent);
  outline: none;
}

.blog-download-mini,
.blog-main-download,
.blog-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--ink);
}

.blog-download-mini {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.blog-menu {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.blog-menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  border-radius: 4px;
  background: var(--ink);
}

.blog-hero {
  padding: 44px 0 54px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: stretch;
}

.blog-carousel {
  position: relative;
  min-width: 0;
}

.blog-carousel-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent-2) 48%, transparent);
}

.blog-slide {
  position: absolute;
  inset: 0;
  display: none;
  height: 100%;
}

.blog-slide:first-child,
.blog-slide.is-active {
  display: block;
}

.blog-carousel.has-js .blog-slide:first-child:not(.is-active) {
  display: none;
}

.blog-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, .96) 0%, rgba(255, 253, 248, .72) 48%, rgba(255, 253, 248, .18) 100%),
    linear-gradient(0deg, rgba(32, 33, 42, .18), rgba(32, 33, 42, 0) 55%);
}

.blog-slide-copy {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 2;
  max-width: 560px;
}

.blog-slide-copy span,
.blog-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.blog-slide-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 54px;
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.blog-slide-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
  font-size: 18px;
  font-weight: 800;
}

.blog-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  transform: translateY(-50%);
  cursor: pointer;
}

.blog-arrow.prev {
  left: 14px;
}

.blog-arrow.next {
  right: 14px;
}

.blog-dots {
  position: absolute;
  left: 34px;
  top: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.blog-dots button {
  width: 32px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.blog-dots button.is-active {
  background: var(--accent);
}

.blog-brief {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 10px 10px 0 var(--accent-3);
}

.blog-date {
  justify-self: start;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.blog-brief h1,
.blog-article h2,
.blog-section-head h2,
.blog-flow h2,
.blog-download h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  line-height: 1.16;
  letter-spacing: 0;
}

.blog-brief p:not(.blog-date):not(.blog-note),
.blog-section-head > p:not(.blog-kicker),
.blog-flow p,
.blog-download p:not(.blog-kicker):not(.blog-note) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.blog-brief-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.blog-brief-stats div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 55%, #fff);
}

.blog-brief-stats span,
.blog-brief-stats strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-brief-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.blog-brief-stats strong {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 950;
}

.blog-main-download,
.blog-download-button {
  min-height: 48px;
  padding: 0 22px;
}

.blog-note {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-3) 64%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-3) 20%, #fff);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.blog-note.inline {
  display: inline-flex;
  margin-top: 14px;
}

.blog-content,
.blog-columns,
.blog-gallery,
.blog-flow,
.blog-download,
.blog-footer {
  padding-block: 72px;
}

.blog-content {
  background: #fff;
  border-block: 1px solid var(--line);
}

.blog-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.blog-article {
  min-width: 0;
}

.blog-article h2 {
  max-width: 780px;
  font-size: 44px;
}

.blog-rich {
  max-width: 820px;
  margin-top: 22px;
  columns: 2 280px;
  column-gap: 42px;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  font-size: 18px;
  font-weight: 760;
}

.blog-rich p {
  break-inside: avoid;
  margin: 0 0 18px;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 22px);
}

.blog-index {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--soft) 64%, #fff);
}

.blog-index strong {
  font-size: 18px;
  font-weight: 950;
}

.blog-index a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.blog-columns {
  background: var(--paper);
}

.blog-section-head {
  max-width: 820px;
}

.blog-section-head h2 {
  font-size: 42px;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.blog-post {
  min-height: 250px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent) 52%, transparent);
}

.blog-post span {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.blog-post h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.24;
}

.blog-post p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.blog-gallery {
  background: #fff;
  border-block: 1px solid var(--line);
}

.blog-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
  margin-top: 32px;
}

.blog-gallery-grid figure {
  margin: 0;
}

.blog-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.blog-gallery-grid figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.blog-gallery-grid figure:first-child {
  grid-row: span 2;
}

.blog-flow {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, #fff), #fff 48%, color-mix(in srgb, var(--accent-2) 12%, #fff));
}

.blog-flow-grid {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.blog-flow-list {
  display: grid;
  gap: 12px;
}

.blog-flow-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.blog-flow-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.blog-flow-list strong {
  font-size: 22px;
  line-height: 1.26;
}

.blog-download {
  background: #fff;
}

.blog-download-grid {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 34px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.blog-download-symbol {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
  box-shadow: 6px 6px 0 var(--accent-3);
}

.blog-download h2 {
  font-size: 36px;
}

.blog-download p:not(.blog-kicker):not(.blog-note) {
  max-width: 780px;
}

.blog-footer {
  padding-bottom: 42px;
  background: color-mix(in srgb, var(--ink) 5%, #fff);
}

.blog-footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, .6fr) minmax(220px, .55fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.blog-footer strong {
  font-size: 28px;
  font-weight: 950;
}

.blog-footer p {
  max-width: 380px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.blog-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.blog-footer-links a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.blog-footer-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.blog-dragon {
  --paper: #fffdf2;
  --ink: #163222;
  --muted: #65755f;
  --accent: #15945a;
  --accent-2: #e34b3f;
  --accent-3: #f5c94f;
  --soft: #eaf8de;
}

.blog-blue {
  --paper: #f8fcff;
  --ink: #162640;
  --muted: #60758d;
  --accent: #226be8;
  --accent-2: #12a89a;
  --accent-3: #f4c85a;
  --soft: #eaf4ff;
}

.blog-smile {
  --paper: #fff9fb;
  --ink: #321829;
  --muted: #7c6170;
  --accent: #ee4d86;
  --accent-2: #24add0;
  --accent-3: #ffd166;
  --soft: #fff0f7;
}

.blog-sun {
  --paper: #fffaf1;
  --ink: #321e14;
  --muted: #806452;
  --accent: #f05c2b;
  --accent-2: #1687c9;
  --accent-3: #ffd36a;
  --soft: #fff0df;
}

.blog-focus {
  --paper: #fbf8ff;
  --ink: #251f3c;
  --muted: #6c627d;
  --accent: #7754d8;
  --accent-2: #12ad95;
  --accent-3: #f0c256;
  --soft: #f1edff;
}

.blog-rose {
  --paper: #fff8fa;
  --ink: #331927;
  --muted: #765f69;
  --accent: #c94670;
  --accent-2: #d58a25;
  --accent-3: #7ea3ef;
  --soft: #fff0f5;
}

.blog-green {
  --paper: #f8fff9;
  --ink: #172f22;
  --muted: #5e7668;
  --accent: #178d52;
  --accent-2: #df5942;
  --accent-3: #f0c85d;
  --soft: #ebf8e6;
}

.blog-wing {
  --paper: #fafaff;
  --ink: #20203d;
  --muted: #656681;
  --accent: #6750db;
  --accent-2: #18aac0;
  --accent-3: #f1c76a;
  --soft: #f1f0ff;
}

.blog-vlog {
  --paper: #fff8fb;
  --ink: #351b2d;
  --muted: #795e70;
  --accent: #ee4b86;
  --accent-2: #8060e6;
  --accent-3: #ffd166;
  --soft: #fff0f7;
}

.blog-crest {
  --paper: #fafbff;
  --ink: #20253e;
  --muted: #656c82;
  --accent: #5d61be;
  --accent-2: #9b62d8;
  --accent-3: #e8bd63;
  --soft: #eef2ff;
}

@media (max-width: 1100px) {
  .blog-hero-grid,
  .blog-content-grid,
  .blog-flow-grid {
    grid-template-columns: 1fr;
  }

  .blog-brief {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-sidebar {
    position: static;
  }

  .blog-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .blog-container {
    width: min(100% - 36px, 760px);
  }

  .blog-header {
    gap: 10px;
    padding: 0 16px;
  }

  .blog-brand strong,
  .blog-brand small {
    max-width: 168px;
  }

  .blog-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 18px 18px;
    border-bottom: 2px solid var(--ink);
    background: rgba(255, 253, 248, .98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .blog-nav-open .blog-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .blog-nav a {
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
  }

  .blog-menu {
    display: block;
  }

  .blog-download-mini {
    margin-left: auto;
    min-height: 40px;
    padding: 0 14px;
  }

  .blog-hero {
    padding: 24px 0 44px;
  }

  .blog-slide::after {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, .94) 0%, rgba(255, 253, 248, .66) 52%, rgba(255, 253, 248, .95) 100%);
  }

  .blog-slide-copy {
    left: 20px;
    right: 20px;
    bottom: 26px;
  }

  .blog-slide-copy h2 {
    font-size: 40px;
    line-height: 1.08;
  }

  .blog-slide-copy p {
    font-size: 16px;
  }

  .blog-dots {
    left: 20px;
    top: 18px;
  }

  .blog-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .blog-arrow.prev {
    left: auto;
    right: 66px;
  }

  .blog-arrow.next {
    right: 18px;
  }

  .blog-content,
  .blog-columns,
  .blog-gallery,
  .blog-flow,
  .blog-download,
  .blog-footer {
    padding-block: 54px;
  }

  .blog-article h2,
  .blog-section-head h2,
  .blog-flow h2,
  .blog-download h2 {
    font-size: 30px;
  }

  .blog-rich {
    columns: 1;
    font-size: 16px;
  }

  .blog-posts,
  .blog-gallery-grid,
  .blog-download-grid,
  .blog-footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-gallery-grid figure:first-child {
    grid-row: auto;
  }

  .blog-download-button {
    width: 100%;
  }

  .blog-flow-list article {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .blog-container {
    width: calc(100% - 28px);
  }

  .blog-header {
    padding: 0 10px;
  }

  .blog-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 12px;
    box-shadow: 3px 3px 0 var(--accent-3);
  }

  .blog-brand strong,
  .blog-brand small {
    max-width: 120px;
  }

  .blog-download-mini {
    padding: 0 11px;
  }

  .blog-slide-copy h2 {
    font-size: 25px;
  }

  .blog-slide-copy p {
    display: none;
  }

  .blog-brief {
    padding: 18px;
    box-shadow: 6px 6px 0 var(--accent-3);
  }

  .blog-brief h1 {
    font-size: 27px;
  }

  .blog-post {
    min-height: 220px;
  }

  .blog-flow-list strong {
    font-size: 19px;
  }
}
