/* Shared styles for the community's imported WeChat articles. */
:root {
  --article-green: #184735;
  --article-deep: #11382c;
  --article-medium: #32644c;
  --article-paper: #fffcf7;
  --article-cream: #f7f5ef;
  --article-ink: #26332c;
  --article-muted: #607066;
  --article-line: #e2e5dc;
  --article-bronze: #b89164;
  --article-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --article-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.article-page {
  margin: 0;
  background: var(--article-paper);
  color: var(--article-ink);
  font-family: var(--article-sans);
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.article-page *,
.article-list * {
  box-sizing: border-box;
}

.article-page a {
  color: var(--article-green);
  text-underline-offset: 0.22em;
}

.article-page :focus-visible,
.article-list :focus-visible {
  outline: 3px solid var(--article-bronze);
  outline-offset: 5px;
}

.article-skip {
  position: absolute;
  top: -90px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid var(--article-green);
  border-radius: 6px;
}

.article-skip:focus {
  top: 12px;
}

.article-site-header {
  border-bottom: 1px solid var(--article-line);
  background: var(--article-paper);
}

.article-site-nav {
  width: min(1120px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.article-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: var(--article-deep);
  text-decoration: none;
}

.article-brand strong {
  font-family: var(--article-serif);
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.article-brand small {
  color: var(--article-muted);
  font-size: 11px;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

.article-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.article-back:hover {
  text-decoration: underline;
}

.article-shell {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 28px;
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.6;
}

.article-breadcrumb a {
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--article-medium);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.article-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--article-bronze);
}

.article-title {
  margin: 0 0 22px;
  color: var(--article-deep);
  font: 700 clamp(30px, 4.2vw, 43px) / 1.5 var(--article-serif);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.8;
}

.article-lead {
  margin: 30px 0;
  padding: 22px 25px;
  border-left: 3px solid var(--article-bronze);
  background: var(--article-cream);
  color: #45614f;
  font-size: 19px;
  line-height: 1.95;
}

.article-body {
  margin-top: 34px;
  overflow-wrap: anywhere;
}

.article-body p {
  margin: 0 0 1.5em;
  line-height: 2;
}

.article-body h2,
.article-body h3 {
  color: var(--article-deep);
  font-family: var(--article-serif);
  line-height: 1.6;
}

.article-body h2 {
  margin: 2em 0 0.8em;
  font-size: 28px;
}

.article-body h3 {
  margin: 1.7em 0 0.7em;
  font-size: 23px;
}

.article-body strong {
  font-weight: 700;
  color: var(--article-deep);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}

.article-body li + li {
  margin-top: 0.6em;
}

.article-body blockquote {
  margin: 1.8em 0;
  padding: 20px 25px;
  border-left: 3px solid var(--article-bronze);
  background: var(--article-cream);
  color: #45614f;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body img,
.article-hero {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
}

.article-hero {
  width: 100%;
  margin-top: 32px;
  margin-bottom: 32px;
}

.article-body figure {
  margin: 30px 0 34px;
}

.article-body figcaption {
  margin-top: 11px;
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.article-body hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--article-line);
}

.article-source {
  margin-top: 42px;
  padding: 23px 0;
  border-top: 1px solid var(--article-line);
  border-bottom: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.9;
}

.article-source p {
  margin: 0;
}

.article-source p + p {
  margin-top: 8px;
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.article-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--article-green);
  border-radius: 6px;
  background: var(--article-green);
  color: #fff !important;
  font: 650 15px / 1.6 var(--article-sans);
  text-decoration: none;
  transition: background-color 0.2s;
}

.article-button:hover {
  background: #286249;
}

.article-site-footer {
  padding: 30px 24px;
  background: #102d23;
  color: #d4dfd3;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

.article-site-footer strong {
  display: block;
  color: #fff;
  font: 700 21px / 1.7 var(--article-serif);
}

.article-site-footer p {
  margin: 7px 0 0;
}

/* The list can also be placed in an existing homepage section. */
.community-story-heading { margin: 34px 0 0; color: #184735; font-size: 18px; font-weight: 700; }
.article-list.article-list-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.article-list-feature .article-card { border-left: 4px solid #b89164; }
.article-list-feature .article-card-copy { padding: 27px 30px; }
.article-list-feature .article-card p { max-width: 850px; }
.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.article-list > li {
  display: flex;
  min-width: 0;
}

.article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: 9px;
  background: #fff;
  color: var(--article-ink);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
  border-color: #a9bcac;
  box-shadow: 0 10px 28px rgba(30, 60, 44, 0.08);
}

.article-card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--article-cream);
}

.article-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 22px;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 10px;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.7;
}

.article-card h3 {
  margin: 0 0 12px;
  color: var(--article-deep);
  font: 700 22px / 1.65 var(--article-serif);
  overflow-wrap: anywhere;
}

.article-card p {
  margin: 0 0 20px;
  color: var(--article-muted);
  font-size: 15px;
  line-height: 1.9;
}

.article-card-more {
  margin-top: auto;
  color: var(--article-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.article-card:hover .article-card-more {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 930px) {
  .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .article-list.article-list-feature { grid-template-columns: 1fr; }
  .article-page {
    font-size: 17px;
  }

  .article-site-nav {
    width: calc(100% - 36px);
    min-height: 78px;
    gap: 12px;
  }

  .article-brand strong {
    font-size: 22px;
  }

  .article-brand small {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .article-site-nav .article-back {
    font-size: 14px;
  }

  .article-shell {
    width: calc(100% - 36px);
    padding: 35px 0 48px;
  }

  .article-breadcrumb {
    margin-bottom: 23px;
    font-size: 13px;
  }

  .article-title {
    font-size: 29px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .article-meta {
    gap: 5px 15px;
    padding-bottom: 21px;
  }

  .article-lead {
    margin: 25px 0;
    padding: 18px;
    font-size: 18px;
  }

  .article-body {
    margin-top: 27px;
  }

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

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

  .article-body figure {
    margin: 25px 0 30px;
  }

  .article-body blockquote {
    padding: 17px 18px;
  }

  .article-actions {
    align-items: stretch;
  }

  .article-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 26px;
  }

  .article-card-copy {
    padding: 20px;
  }

  .article-card h3 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-page *,
  .article-list * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .article-page {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .article-site-nav,
  .article-shell {
    width: 100%;
  }

  .article-shell {
    padding: 20px 0;
  }

  .article-breadcrumb,
  .article-site-nav .article-back,
  .article-actions,
  .article-site-footer {
    display: none;
  }

  .article-body img {
    max-height: 230mm;
    object-fit: contain;
  }

  .article-body figure {
    break-inside: avoid;
  }

  .article-body h2,
  .article-body h3 {
    break-after: avoid;
  }
}
